]> git.lyx.org Git - lyx.git/blob - lib/doc/Additional.lyx
Improve and fix description of multipart documents.
[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 \end_layout
6305
6306 \begin_layout Standard
6307 The \SpecialChar LyX
6308  server works through the use of a pair of named pipes.
6309  These are usually located in 
6310 \begin_inset Flex Code
6311 status collapsed
6312
6313 \begin_layout Plain Layout
6314 UserDir
6315 \end_layout
6316
6317 \end_inset
6318
6319 , (except on Windows, where 
6320 \emph on
6321 local
6322 \emph default
6323  named pipes are special objects located in 
6324 \begin_inset Flex Code
6325 status collapsed
6326
6327 \begin_layout Plain Layout
6328
6329 \backslash
6330
6331 \backslash
6332 .
6333 \backslash
6334 pipe
6335 \end_layout
6336
6337 \end_inset
6338
6339 ) and have the names 
6340 \begin_inset Quotes eld
6341 \end_inset
6342
6343
6344 \begin_inset Flex Code
6345 status collapsed
6346
6347 \begin_layout Plain Layout
6348 lyxpipe.in
6349 \end_layout
6350
6351 \end_inset
6352
6353
6354 \begin_inset Quotes erd
6355 \end_inset
6356
6357  and 
6358 \begin_inset Quotes eld
6359 \end_inset
6360
6361
6362 \begin_inset Flex Code
6363 status collapsed
6364
6365 \begin_layout Plain Layout
6366 lyxpipe.out
6367 \end_layout
6368
6369 \end_inset
6370
6371
6372 \begin_inset Quotes erd
6373 \end_inset
6374
6375 .
6376  External programs write into 
6377 \begin_inset Flex Code
6378 status collapsed
6379
6380 \begin_layout Plain Layout
6381 lyxpipe.in
6382 \end_layout
6383
6384 \end_inset
6385
6386  and read back data from 
6387 \begin_inset Flex Code
6388 status collapsed
6389
6390 \begin_layout Plain Layout
6391 lyxpipe.out
6392 \end_layout
6393
6394 \end_inset
6395
6396 .
6397  The stem of the pipe names can be defined in the 
6398 \begin_inset Flex Noun
6399 status collapsed
6400
6401 \begin_layout Plain Layout
6402 Tools\SpecialChar menuseparator
6403 Preferences
6404 \end_layout
6405
6406 \end_inset
6407
6408  dialog, for example 
6409 \begin_inset Flex Code
6410 status collapsed
6411
6412 \begin_layout Plain Layout
6413 "/home/myhome/lyxpipe"
6414 \end_layout
6415
6416 \end_inset
6417
6418 , or 
6419 \begin_inset Flex Code
6420 status collapsed
6421
6422 \begin_layout Plain Layout
6423 "
6424 \backslash
6425
6426 \backslash
6427 .
6428 \backslash
6429 pipe
6430 \backslash
6431 lyxpipe"
6432 \end_layout
6433
6434 \end_inset
6435
6436  on Windows (where any working path instead of lyxpipe can be used, for
6437  example 
6438 \begin_inset Flex Code
6439 status collapsed
6440
6441 \begin_layout Plain Layout
6442 "
6443 \backslash
6444
6445 \backslash
6446 .
6447 \backslash
6448 pipe
6449 \backslash
6450 my
6451 \backslash
6452 lyx
6453 \backslash
6454 pipe"
6455 \end_layout
6456
6457 \end_inset
6458
6459  would also work).
6460  You 
6461 \emph on
6462 must
6463 \emph default
6464  configure this manually in order for the server to start.
6465 \end_layout
6466
6467 \begin_layout Standard
6468 \SpecialChar LyX
6469  will add the '
6470 \begin_inset Flex Code
6471 status collapsed
6472
6473 \begin_layout Plain Layout
6474 .in
6475 \end_layout
6476
6477 \end_inset
6478
6479 ' and '
6480 \begin_inset Flex Code
6481 status collapsed
6482
6483 \begin_layout Plain Layout
6484 .out
6485 \end_layout
6486
6487 \end_inset
6488
6489 ' to create the pipes.
6490  If one of the pipes already exists, \SpecialChar LyX
6491  will assume that another \SpecialChar LyX
6492  process
6493  is already running and will not start the server.
6494  On POSIX (Unix like) systems, if for some other reason, an unused 
6495 \begin_inset Quotes eld
6496 \end_inset
6497
6498 stale
6499 \begin_inset Quotes erd
6500 \end_inset
6501
6502  pipe is left in existence when \SpecialChar LyX
6503  closes, then \SpecialChar LyX
6504  will try to delete it.
6505  If this fails for some reason, you will need to delete the pipes manually
6506  and then restart \SpecialChar LyX
6507 .
6508  On Windows, pipes are deleted by the OS on program termination or crash,
6509  so 
6510 \begin_inset Quotes eld
6511 \end_inset
6512
6513 stale
6514 \begin_inset Quotes erd
6515 \end_inset
6516
6517  pipes should not be possible.
6518 \end_layout
6519
6520 \begin_layout Standard
6521 To have several \SpecialChar LyX
6522  processes with servers at the same time, you have to use
6523  different configurations, perhaps by using separate user directories, each
6524  with its own 
6525 \begin_inset Flex Code
6526 status collapsed
6527
6528 \begin_layout Plain Layout
6529 preferences
6530 \end_layout
6531
6532 \end_inset
6533
6534  file, for each process.
6535 \end_layout
6536
6537 \begin_layout Standard
6538 If you are developing a client program, you might find it useful to enable
6539  debugging information from the \SpecialChar LyX
6540  server.
6541  Do this by starting \SpecialChar LyX
6542  as 
6543 \begin_inset Flex Code
6544 status collapsed
6545
6546 \begin_layout Plain Layout
6547 lyx -dbg lyxserver
6548 \end_layout
6549
6550 \end_inset
6551
6552 .
6553 \end_layout
6554
6555 \begin_layout Standard
6556 You can find a complete example client written in C++ in the source distribution
6557  as 
6558 \begin_inset Flex Code
6559 status collapsed
6560
6561 \begin_layout Plain Layout
6562 development/lyxserver/server_monitor.cpp
6563 \end_layout
6564
6565 \end_inset
6566
6567 .
6568 \end_layout
6569
6570 \begin_layout Standard
6571 Another useful tool is the command-line based client found in 
6572 \begin_inset Flex Code
6573 status collapsed
6574
6575 \begin_layout Plain Layout
6576 src/client/lyxclient
6577 \end_layout
6578
6579 \end_inset
6580
6581 .
6582 \end_layout
6583
6584 \begin_layout Section
6585 Normal communication
6586 \end_layout
6587
6588 \begin_layout Standard
6589 To issue a \SpecialChar LyX
6590  call, the client writes a line of ASCII text into the input
6591  pipe.
6592  This line has the following format:
6593 \end_layout
6594
6595 \begin_layout Quote
6596 LYXCMD:
6597 \emph on
6598 clientname
6599 \emph default
6600 :
6601 \emph on
6602 function
6603 \emph default
6604 :
6605 \emph on
6606 argument
6607 \end_layout
6608
6609 \begin_layout Description
6610 clientname is a name that the client can choose arbitrarily.
6611  Its only use is that \SpecialChar LyX
6612  will echo it if it sends an answer—so a client can
6613  dispatch results from different requesters.
6614 \end_layout
6615
6616 \begin_layout Description
6617 function is the function you want \SpecialChar LyX
6618  to perform.
6619  It is the same as the commands you'd use in the minibuffer.
6620 \end_layout
6621
6622 \begin_layout Description
6623 argument is an optional argument which is meaningful only to some functions
6624  (for instance, the 
6625 \begin_inset Quotes eld
6626 \end_inset
6627
6628 self-insert
6629 \begin_inset Quotes erd
6630 \end_inset
6631
6632  LFUN will insert the argument as text at the cursor position).
6633 \end_layout
6634
6635 \begin_layout Standard
6636 The answer from \SpecialChar LyX
6637  will arrive in the output pipe and be of the form
6638 \end_layout
6639
6640 \begin_layout Quote
6641 INFO:
6642 \emph on
6643 clientname
6644 \emph default
6645 :
6646 \emph on
6647 function
6648 \emph default
6649 :
6650 \emph on
6651 data
6652 \end_layout
6653
6654 \begin_layout Standard
6655 where 
6656 \emph on
6657 clientname
6658 \emph default
6659  and 
6660 \emph on
6661 function
6662 \emph default
6663  are just echoed from the command request, while 
6664 \emph on
6665 data
6666 \emph default
6667  is more or less useful information filled according to how the command
6668  execution worked out.
6669  Some commands, such as 
6670 \begin_inset Quotes eld
6671 \end_inset
6672
6673 font-state
6674 \begin_inset Quotes erd
6675 \end_inset
6676
6677 , will return information about the internal state of \SpecialChar LyX
6678 , while other will
6679  return an empty data-response.
6680  This means that the command execution went fine.
6681 \end_layout
6682
6683 \begin_layout Standard
6684 In case of errors, the response from \SpecialChar LyX
6685  will have this form
6686 \end_layout
6687
6688 \begin_layout Quote
6689 ERROR:
6690 \emph on
6691 clientname
6692 \emph default
6693 :
6694 \emph on
6695 function
6696 \emph default
6697 :
6698 \emph on
6699 error message
6700 \end_layout
6701
6702 \begin_layout Standard
6703 where the 
6704 \emph on
6705 error message
6706 \emph default
6707  should contain an explanation of why the command failed.
6708 \end_layout
6709
6710 \begin_layout Standard
6711 Examples:
6712 \end_layout
6713
6714 \begin_layout LyX-Code
6715 echo "LYXCMD:test:beginning-of-buffer:" >~/.lyxpipe.in
6716 \begin_inset Newline newline
6717 \end_inset
6718
6719 echo "LYXCMD:test:get-xy:" >~/.lyxpipe.in
6720 \begin_inset Newline newline
6721 \end_inset
6722
6723 read a <~/.lyxpipe.out
6724 \begin_inset Newline newline
6725 \end_inset
6726
6727 echo $a
6728 \end_layout
6729
6730 \begin_layout Subsection
6731 AppleScript (Mac OS X)
6732 \end_layout
6733
6734 \begin_layout Standard
6735 Since \SpecialChar LyX
6736  2.1, \SpecialChar LyX
6737  supports basic interactions with AppleScript for normal communicatio
6738 n through the command run.
6739  This command takes a direct argument (the 
6740 \series bold
6741 function
6742 \series default
6743  to perform) and an optional argument.
6744  It either returns the output of the function or triggers an error with
6745  the error message and code.
6746 \end_layout
6747
6748 \begin_layout Standard
6749 Example:
6750 \end_layout
6751
6752 \begin_layout LyX-Code
6753 tell application "\SpecialChar LyX
6754 "
6755 \end_layout
6756
6757 \begin_layout LyX-Code
6758   try
6759 \end_layout
6760
6761 \begin_layout LyX-Code
6762     -- Stores the current file name into f
6763 \end_layout
6764
6765 \begin_layout LyX-Code
6766     set f to (run "server-get-filename" with argument "")
6767 \end_layout
6768
6769 \begin_layout LyX-Code
6770     on error the error_message number the error_number
6771 \end_layout
6772
6773 \begin_layout LyX-Code
6774       display dialog "Error: " & the error_number & ".
6775  " ¬
6776 \end_layout
6777
6778 \begin_layout LyX-Code
6779               & the error_message buttons {"OK"} default button 1
6780 \end_layout
6781
6782 \begin_layout LyX-Code
6783   end try
6784 \end_layout
6785
6786 \begin_layout LyX-Code
6787 end tell
6788 \end_layout
6789
6790 \begin_layout Section
6791 Notification
6792 \end_layout
6793
6794 \begin_layout Standard
6795 \SpecialChar LyX
6796  can notify clients of events going on asynchronously.
6797  Currently it will only do this if the user binds a key sequence with the
6798  function 
6799 \begin_inset Quotes eld
6800 \end_inset
6801
6802 notify
6803 \begin_inset Quotes erd
6804 \end_inset
6805
6806 .
6807  The format of the string \SpecialChar LyX
6808  sends is as follows:
6809 \end_layout
6810
6811 \begin_layout Quote
6812 \begin_inset Flex Code
6813 status collapsed
6814
6815 \begin_layout Plain Layout
6816 NOTIFY:
6817 \end_layout
6818
6819 \end_inset
6820
6821
6822 \emph on
6823 key-sequence
6824 \end_layout
6825
6826 \begin_layout Standard
6827 where 
6828 \emph on
6829 key-sequence
6830 \emph default
6831  is the printed representation of the key sequence that was actually typed
6832  by the user.
6833 \end_layout
6834
6835 \begin_layout Standard
6836 This mechanism can be used to extend \SpecialChar LyX
6837 's command set and implement macros.
6838  Bind some key sequence to 
6839 \begin_inset Quotes eld
6840 \end_inset
6841
6842 notify
6843 \begin_inset Quotes erd
6844 \end_inset
6845
6846 .
6847  Then start a client that listens on the output pipe, dispatches the command
6848  according to the sequence, and starts a function that may use \SpecialChar LyX
6849  calls and
6850  \SpecialChar LyX
6851  requests to issue a command or a series of commands to \SpecialChar LyX
6852 .
6853 \end_layout
6854
6855 \begin_layout Section
6856 The simple \SpecialChar LyX
6857  Server Protocol
6858 \end_layout
6859
6860 \begin_layout Standard
6861 \SpecialChar LyX
6862  implements a simple protocol that can be used for session management.
6863  All messages are of the form
6864 \end_layout
6865
6866 \begin_layout Quote
6867 LYXSRV:
6868 \emph on
6869 clientname
6870 \emph default
6871 :
6872 \emph on
6873 protocol message
6874 \end_layout
6875
6876 \begin_layout Standard
6877 where 
6878 \emph on
6879 protocol message
6880 \emph default
6881  can be 
6882 \begin_inset Quotes eld
6883 \end_inset
6884
6885 hello
6886 \begin_inset Quotes erd
6887 \end_inset
6888
6889  or 
6890 \begin_inset Quotes eld
6891 \end_inset
6892
6893 bye
6894 \begin_inset Quotes erd
6895 \end_inset
6896
6897 .
6898  If 
6899 \begin_inset Quotes eld
6900 \end_inset
6901
6902 hello
6903 \begin_inset Quotes erd
6904 \end_inset
6905
6906  is received from a client, \SpecialChar LyX
6907  will report back to inform the client that
6908  it's listening to it's messages, while 
6909 \begin_inset Quotes eld
6910 \end_inset
6911
6912 bye
6913 \begin_inset Quotes erd
6914 \end_inset
6915
6916  sent from \SpecialChar LyX
6917  will inform clients that \SpecialChar LyX
6918  is closing.
6919 \end_layout
6920
6921 \begin_layout Section
6922 Reverse DVI/PDF search
6923 \end_layout
6924
6925 \begin_layout Standard
6926 Some DVI/PDF viewers
6927 \begin_inset Foot
6928 status collapsed
6929
6930 \begin_layout Plain Layout
6931 The following viewers offer the reverse PDF search feature: Okular on KDE/Linux,
6932  Qpdfview on Unix, Skim on Mac OSX and SumatraPDF on Windows.
6933 \end_layout
6934
6935 \end_inset
6936
6937  provide 
6938 \emph on
6939 reverse search
6940 \emph default
6941  facility (also called 
6942 \emph on
6943 inverse search
6944 \emph default
6945 ).
6946  This means that you can tell \SpecialChar LyX
6947  to put the cursor to a specific line in the
6948  document by clicking at the respective position in the DVI/PDF output.
6949  To achieve this, the viewer must be able to communicate with \SpecialChar LyX
6950 .
6951  This is done via the \SpecialChar LyX
6952  server either by using the named pipe (
6953 \emph on
6954 lyxpipe
6955 \emph default
6956 ), or the UNIX domain socket (
6957 \emph on
6958 lyxsocket
6959 \emph default
6960 ) that \SpecialChar LyX
6961  creates in its temporary directory (this is the way the 
6962 \begin_inset Flex Code
6963 status collapsed
6964
6965 \begin_layout Plain Layout
6966 lyxclient
6967 \end_layout
6968
6969 \end_inset
6970
6971  program communicates with \SpecialChar LyX
6972 ).
6973  In some cases, you need a helper script that mediates between the viewer
6974  and \SpecialChar LyX
6975 , in others, the viewer can communicate with \SpecialChar LyX
6976  directly.
6977  This depends on the selected viewer and on your operating system.
6978  The same applies to the way viewers need to be configured and the way the
6979  reverse search is actually performed.
6980  In what follows, we will thus describe how to setup reverse search for
6981  specific viewers.
6982  Before we turn to this, though, we will explain what needs to be done generally
6983  to enable reverse search in the DVI/PDF output.
6984 \end_layout
6985
6986 \begin_layout Subsection
6987 Automatic setup
6988 \begin_inset CommandInset label
6989 LatexCommand label
6990 name "subsec:rev-search"
6991
6992 \end_inset
6993
6994
6995 \end_layout
6996
6997 \begin_layout Standard
6998 In most cases \SpecialChar LyX
6999  will do the work for you by 
7000 \change_inserted -712698321 1500975045
7001 pressing the following button in the toolbar: 
7002 \begin_inset Info
7003 type  "icon"
7004 arg   "buffer-toggle-output-sync"
7005 \end_inset
7006
7007 .
7008  Alternatively, you can also enable the feature by checking 
7009 \family sans
7010 Synchronize with Output
7011 \family default
7012  in 
7013 \begin_inset Flex Noun
7014 status collapsed
7015
7016 \begin_layout Plain Layout
7017
7018 \change_inserted -712698321 1500975071
7019 Document\SpecialChar menuseparator
7020 Settings\SpecialChar menuseparator
7021 Formats
7022 \end_layout
7023
7024 \end_inset
7025
7026
7027 \change_deleted -712698321 1500974764
7028 enabling the option 
7029 \begin_inset Flex Noun
7030 status collapsed
7031
7032 \begin_layout Plain Layout
7033 Synchronize with Output
7034 \end_layout
7035
7036 \end_inset
7037
7038  in the menu 
7039 \begin_inset Flex Noun
7040 status collapsed
7041
7042 \begin_layout Plain Layout
7043 Document\SpecialChar menuseparator
7044 Settings\SpecialChar menuseparator
7045 Output
7046 \end_layout
7047
7048 \end_inset
7049
7050
7051 \change_unchanged
7052 .
7053  In such a case \SpecialChar LyX
7054  will automatically insert the necessary Sync\SpecialChar TeX
7055  macro (for
7056  PDF) or load the srcltx package (for DVI) respectively.
7057  This option can be easily reached also on 
7058 \begin_inset Flex Code
7059 status collapsed
7060
7061 \begin_layout Plain Layout
7062 View/Update
7063 \end_layout
7064
7065 \end_inset
7066
7067  Toolbar.
7068 \end_layout
7069
7070 \begin_layout Standard
7071 If you need a different setting, you can select or input a custom macro
7072  from the drop down box just below 
7073 \begin_inset Flex Noun
7074 status collapsed
7075
7076 \begin_layout Plain Layout
7077 Document\SpecialChar menuseparator
7078 Settings\SpecialChar menuseparator
7079 Output\SpecialChar menuseparator
7080 Synchronize with Output
7081 \end_layout
7082
7083 \end_inset
7084
7085 .
7086 \end_layout
7087
7088 \begin_layout Standard
7089 Note that the method 
7090 \begin_inset Flex Code
7091 status collapsed
7092
7093 \begin_layout Plain Layout
7094
7095 \backslash
7096 synctex=1
7097 \end_layout
7098
7099 \end_inset
7100
7101  enables gzip compression.
7102  If your viewer does not support it, you should instead use 
7103 \begin_inset Flex Code
7104 status collapsed
7105
7106 \begin_layout Plain Layout
7107
7108 \backslash
7109 synctex=-1
7110 \end_layout
7111
7112 \end_inset
7113
7114 .
7115 \end_layout
7116
7117 \begin_layout Standard
7118 Please also note that including the 
7119 \begin_inset Flex Code
7120 status collapsed
7121
7122 \begin_layout Plain Layout
7123 srcltx
7124 \end_layout
7125
7126 \end_inset
7127
7128  package or 
7129 \begin_inset Flex Code
7130 status collapsed
7131
7132 \begin_layout Plain Layout
7133 src-specials
7134 \end_layout
7135
7136 \end_inset
7137
7138  sometimes has an undesired impact on the typesetting.
7139  Thus, you should switch output synchronization off for the final typesetting
7140  if you use the 
7141 \begin_inset Flex Code
7142 status collapsed
7143
7144 \begin_layout Plain Layout
7145 srcltx
7146 \end_layout
7147
7148 \end_inset
7149
7150  package or 
7151 \begin_inset Flex Code
7152 status collapsed
7153
7154 \begin_layout Plain Layout
7155 src-specials
7156 \end_layout
7157
7158 \end_inset
7159
7160 .
7161  
7162 \end_layout
7163
7164 \begin_layout Standard
7165 In case you need some more special settings that are not covered by the
7166  automatic settings, read the next section about how to set up output synchroniz
7167 ation manually.
7168  If the automatic setup suits your needs, you can readily jump to section
7169 \begin_inset space ~
7170 \end_inset
7171
7172
7173 \begin_inset CommandInset ref
7174 LatexCommand ref
7175 reference "subsec:configuring-viewers"
7176
7177 \end_inset
7178
7179 , where the necessary configuration steps in your viewer – needed both with
7180  the automatic and the manual setup – are described.
7181 \end_layout
7182
7183 \begin_layout Subsection
7184 Manual setup
7185 \end_layout
7186
7187 \begin_layout Standard
7188 \SpecialChar LaTeX
7189  provides several different methods for reverse search.
7190  Some are built-in in the 
7191 \begin_inset Flex Code
7192 status collapsed
7193
7194 \begin_layout Plain Layout
7195 latex/pdflatex
7196 \end_layout
7197
7198 \end_inset
7199
7200  program, some are provided by external packages.
7201  Your choice depends on whether your \SpecialChar LaTeX
7202  distribution already provides a given
7203  method (the built-in methods are rather new) and whether your viewer can
7204  cope with it.
7205  The available methods are described in the following.
7206 \end_layout
7207
7208 \begin_layout Subsubsection*
7209 Built-in DVI-search via src-specials (DVI only) 
7210 \end_layout
7211
7212 \begin_layout Standard
7213 This method provides the DVI file with the necessary information for reverse
7214  search.
7215  It is available in \SpecialChar LaTeX
7216  since quite some time (any somewhat recent \SpecialChar LaTeX
7217  distribution
7218  should include it), and it works reliably.
7219  To enable it, change the 
7220 \begin_inset Flex Noun
7221 status collapsed
7222
7223 \begin_layout Plain Layout
7224 La
7225 \family sans
7226 TeX
7227 \family default
7228  (plain)->DVI
7229 \end_layout
7230
7231 \end_inset
7232
7233  or 
7234 \begin_inset Flex Noun
7235 status collapsed
7236
7237 \begin_layout Plain Layout
7238 La
7239 \family sans
7240 TeX
7241 \family default
7242  (plain)->DraftDVI
7243 \end_layout
7244
7245 \end_inset
7246
7247  converter in 
7248 \begin_inset Flex Noun
7249 status collapsed
7250
7251 \begin_layout Plain Layout
7252 Preferences\SpecialChar menuseparator
7253 File Handling\SpecialChar menuseparator
7254 Converters
7255 \end_layout
7256
7257 \end_inset
7258
7259  to 
7260 \begin_inset Flex Code
7261 status collapsed
7262
7263 \begin_layout Plain Layout
7264 latex -src-specials $$i
7265 \end_layout
7266
7267 \end_inset
7268
7269 .
7270  If this doesn't work, check if your \SpecialChar TeX
7271  engine needs different options (the
7272  syntax might differ in some distributions).
7273 \end_layout
7274
7275 \begin_layout Subsubsection*
7276 External Packages (PDFSync and scrltx) 
7277 \end_layout
7278
7279 \begin_layout Standard
7280 The packages 
7281 \emph on
7282 pdfsync
7283 \emph default
7284  and 
7285 \emph on
7286 scrltx
7287 \emph default
7288  provide reverse search facility for PDF output (via pdflatex) and DVI output,
7289  respectively.
7290  In order to enable it, load the packages in the \SpecialChar LyX
7291  preamble: 
7292 \end_layout
7293
7294 \begin_layout Itemize
7295 \begin_inset Flex Code
7296 status collapsed
7297
7298 \begin_layout Plain Layout
7299
7300 \backslash
7301 usepackage{pdfsync}
7302 \end_layout
7303
7304 \end_inset
7305
7306  for reverse PDF search,
7307 \end_layout
7308
7309 \begin_layout Itemize
7310 \begin_inset Flex Code
7311 status collapsed
7312
7313 \begin_layout Plain Layout
7314
7315 \backslash
7316 usepackage[active]{srcltx}
7317 \end_layout
7318
7319 \end_inset
7320
7321  for reverse DVI search.
7322 \end_layout
7323
7324 \begin_layout Standard
7325 If you want to be able to perform both DVI and PDF reverse searches, you
7326  can also insert in the preamble the following lines
7327 \end_layout
7328
7329 \begin_layout LyX-Code
7330
7331 \backslash
7332 usepackage{ifpdf}
7333 \begin_inset Newline newline
7334 \end_inset
7335
7336
7337 \backslash
7338 ifpdf
7339 \begin_inset Newline newline
7340 \end_inset
7341
7342   
7343 \backslash
7344 usepackage{pdfsync}
7345 \begin_inset Newline newline
7346 \end_inset
7347
7348
7349 \backslash
7350 else
7351 \begin_inset Newline newline
7352 \end_inset
7353
7354   
7355 \backslash
7356 usepackage[active]{srcltx}
7357 \begin_inset Newline newline
7358 \end_inset
7359
7360
7361 \backslash
7362 fi
7363 \end_layout
7364
7365 \begin_layout Standard
7366 This way, you can preview the file as either DVI or PDF (pdflatex) and the
7367  right package will be used.
7368 \end_layout
7369
7370 \begin_layout Standard
7371 Note that PDFSync might affect the output layout of your document.
7372  It is therefore advised to disable PDFsync for final documents.
7373 \end_layout
7374
7375 \begin_layout Subsubsection*
7376 Built-in reverse search via Sync\SpecialChar TeX
7377  (DVI and PDF) 
7378 \end_layout
7379
7380 \begin_layout Standard
7381 Recent versions of 
7382 \begin_inset Flex Code
7383 status collapsed
7384
7385 \begin_layout Plain Layout
7386 (pdf)latex
7387 \end_layout
7388
7389 \end_inset
7390
7391  have built-in support for both PDF and DVI reverse search.
7392  This so-called 
7393 \emph on
7394 Sync\SpecialChar TeX
7395
7396 \emph default
7397  facility is basically the result of the integration of the PDFSync package
7398  to the pdftex program and its merge with the 
7399 \emph on
7400 scr-specials
7401 \emph default
7402  approach.
7403  You need at least \SpecialChar TeX
7404 Live 2008 or a recent Mik\SpecialChar TeX
7405  distribution in order to use
7406  it.
7407 \begin_inset Foot
7408 status collapsed
7409
7410 \begin_layout Plain Layout
7411 For some reason, Mik\SpecialChar TeX
7412  does not understand/obey the command \SpecialChar LyX
7413  inserts into
7414  the preamble when you check the "Enable Forward/Reverse Search" button
7415  in the toolbar and does not generate the necessary info.
7416 \end_layout
7417
7418 \begin_layout Plain Layout
7419 The generation of the required info can be forced by changing the converter
7420  "\SpecialChar LaTeX
7421  (pdflatex) -> PDF (pdflatex)" in Preferences->File handling->Converters
7422  from the default "pdflatex $$i" to "pdflatex -synctex=1 $$i" (i.e., by adding
7423  the -synctex=1 switch).
7424 \end_layout
7425
7426 \end_inset
7427
7428  Also note that only a few PDF viewers (
7429 \change_inserted -712698321 1500977288
7430 such as 
7431 \change_unchanged
7432 Okular and Qpdfview on Unix, Skim on the Mac, SumatraPDF on Windows
7433 \change_inserted -712698321 1500977299
7434 ; see the next section for details
7435 \change_unchanged
7436 ) already provide Sync\SpecialChar TeX
7437  support.
7438 \end_layout
7439
7440 \begin_layout Standard
7441 To enable Sync\SpecialChar TeX
7442  for DVI output, change the 
7443 \begin_inset Flex Noun
7444 status collapsed
7445
7446 \begin_layout Plain Layout
7447 La
7448 \family sans
7449 TeX
7450 \family default
7451  (plain) -> DVI
7452 \end_layout
7453
7454 \end_inset
7455
7456  or 
7457 \begin_inset Flex Noun
7458 status collapsed
7459
7460 \begin_layout Plain Layout
7461 La
7462 \family sans
7463 TeX
7464 \family default
7465  (plain) -> DraftDVI
7466 \end_layout
7467
7468 \end_inset
7469
7470  converter in 
7471 \begin_inset Flex Noun
7472 status collapsed
7473
7474 \begin_layout Plain Layout
7475 Preferences\SpecialChar menuseparator
7476 File Handling\SpecialChar menuseparator
7477 Converters
7478 \end_layout
7479
7480 \end_inset
7481
7482  to 
7483 \begin_inset Flex Code
7484 status collapsed
7485
7486 \begin_layout Plain Layout
7487 latex -synctex=1 $$i
7488 \end_layout
7489
7490 \end_inset
7491
7492 , and for PDF output, change the 
7493 \begin_inset Flex Noun
7494 status collapsed
7495
7496 \begin_layout Plain Layout
7497 La
7498 \family sans
7499 TeX
7500 \family default
7501  (pdflatex) -> PDF (pdflatex)
7502 \end_layout
7503
7504 \end_inset
7505
7506  
7507 \change_deleted -712698321 1500977453
7508 or
7509 \change_unchanged
7510  converter to 
7511 \begin_inset Flex Code
7512 status collapsed
7513
7514 \begin_layout Plain Layout
7515 pdflatex -synctex=1 $$i
7516 \end_layout
7517
7518 \end_inset
7519
7520 .
7521  
7522 \change_inserted -712698321 1500977740
7523 Should your viewer not be considered in the following description, or in
7524  case of missing success, please 
7525 \change_deleted -712698321 1500977741
7526 C
7527 \change_inserted -712698321 1500977744
7528 c
7529 \change_unchanged
7530 heck the documentation of your viewer whether the viewer needs to be configured
7531  for the use with Sync\SpecialChar TeX
7532 .
7533 \begin_inset Foot
7534 status collapsed
7535
7536 \begin_layout Plain Layout
7537 Note that the option 
7538 \begin_inset Flex Code
7539 status collapsed
7540
7541 \begin_layout Plain Layout
7542 -synctex=1
7543 \end_layout
7544
7545 \end_inset
7546
7547  option enables gzip compression.
7548  If your viewer does not support it, you should instead use 
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 .
7559 \end_layout
7560
7561 \end_inset
7562
7563
7564 \end_layout
7565
7566 \begin_layout Subsection
7567 Configuring and using specific viewers
7568 \begin_inset CommandInset label
7569 LatexCommand label
7570 name "subsec:configuring-viewers"
7571
7572 \end_inset
7573
7574
7575 \end_layout
7576
7577 \begin_layout Subsubsection*
7578 Xdvi (all platforms)
7579 \end_layout
7580
7581 \begin_layout Standard
7582 If you use 
7583 \begin_inset Flex Code
7584 status collapsed
7585
7586 \begin_layout Plain Layout
7587 xdvi
7588 \end_layout
7589
7590 \end_inset
7591
7592 , you don't need to do anything else for performing a reverse DVI search,
7593  as \SpecialChar LyX
7594  already provides the necessary hooks for automatically using the 
7595 \begin_inset Flex Code
7596 status collapsed
7597
7598 \begin_layout Plain Layout
7599 lyxclient
7600 \end_layout
7601
7602 \end_inset
7603
7604  program.
7605  Just setup your document as described above (reverse search is triggered
7606  by Ctrl-click or Alt-click on Mac OSX, respectively).
7607 \end_layout
7608
7609 \begin_layout Standard
7610 However, if for whatever reason you want to use the named pipe instead of
7611  the socket for communicating with \SpecialChar LyX
7612 , simply change the DVI viewer in 
7613 \begin_inset Flex Noun
7614 status collapsed
7615
7616 \begin_layout Plain Layout
7617 Preferences\SpecialChar menuseparator
7618 File Handling\SpecialChar menuseparator
7619 File formats
7620 \end_layout
7621
7622 \end_inset
7623
7624  to
7625 \begin_inset Foot
7626 status collapsed
7627
7628 \begin_layout Plain Layout
7629 On Mac OSX you have to use 
7630 \begin_inset Flex Code
7631 status collapsed
7632
7633 \begin_layout Plain Layout
7634 DISPLAY=:0.0 xdvi -editor "lyxeditor.sh %f %l"
7635 \end_layout
7636
7637 \end_inset
7638
7639
7640 \end_layout
7641
7642 \end_inset
7643
7644  
7645 \begin_inset Flex Code
7646 status collapsed
7647
7648 \begin_layout Plain Layout
7649 xdvi -editor "lyxeditor.sh %f %l"
7650 \end_layout
7651
7652 \end_inset
7653
7654 , where 
7655 \begin_inset Flex Code
7656 status collapsed
7657
7658 \begin_layout Plain Layout
7659 lyxeditor.sh
7660 \end_layout
7661
7662 \end_inset
7663
7664  is a suitable script.
7665  For example, a minimal shell script is the following one:
7666 \end_layout
7667
7668 \begin_layout LyX-Code
7669 #!/bin/sh
7670 \begin_inset Newline newline
7671 \end_inset
7672
7673 LYXPIPE="/path/to/lyxpipe"
7674 \begin_inset Newline newline
7675 \end_inset
7676
7677 COMMAND="LYXCMD:revdvi:server-goto-file-row:$1 $2"
7678 \begin_inset Newline newline
7679 \end_inset
7680
7681 echo "$COMMAND" > "${LYXPIPE}".in || exit
7682 \begin_inset Newline newline
7683 \end_inset
7684
7685 read TMP < "${LYXPIPE}".out || exit
7686 \end_layout
7687
7688 \begin_layout Standard
7689 where 
7690 \begin_inset Flex Code
7691 status collapsed
7692
7693 \begin_layout Plain Layout
7694 /path/to/lyxpipe
7695 \end_layout
7696
7697 \end_inset
7698
7699  is the LyXServer pipe path specified in 
7700 \begin_inset Flex Noun
7701 status collapsed
7702
7703 \begin_layout Plain Layout
7704 Preferences\SpecialChar menuseparator
7705 Paths
7706 \end_layout
7707
7708 \end_inset
7709
7710 .
7711 \begin_inset Foot
7712 status collapsed
7713
7714 \begin_layout Plain Layout
7715 In the 
7716 \begin_inset Flex Code
7717 status collapsed
7718
7719 \begin_layout Plain Layout
7720 development/tools
7721 \end_layout
7722
7723 \end_inset
7724
7725  folder of a source distribution you can find a 
7726 \begin_inset Flex Code
7727 status collapsed
7728
7729 \begin_layout Plain Layout
7730 lyxeditor
7731 \end_layout
7732
7733 \end_inset
7734
7735  script which is able to locate the 
7736 \emph on
7737 lyxpipe
7738 \emph default
7739  based on your preferences.
7740 \end_layout
7741
7742 \end_inset
7743
7744
7745 \end_layout
7746
7747 \begin_layout Subsubsection*
7748 MacDviX (Mac OSX)
7749 \end_layout
7750
7751 \begin_layout Standard
7752 At the end of 
7753 \begin_inset Flex Code
7754 status collapsed
7755
7756 \begin_layout Plain Layout
7757 /Applications/MacDviX_Folder/calleditor.script
7758 \end_layout
7759
7760 \end_inset
7761
7762 , add the following lines:
7763 \end_layout
7764
7765 \begin_layout LyX-Code
7766 /Applications/LyX.app/Contents/MacOS/lyxeditor "$2" $1
7767 \begin_inset Newline newline
7768 \end_inset
7769
7770 exit 1
7771 \end_layout
7772
7773 \begin_layout Standard
7774 Modify the lines accordingly if you install \SpecialChar LyX
7775  somewhere else than in the
7776  Applications folder.
7777 \end_layout
7778
7779 \begin_layout Standard
7780 Reverse search is triggered by Alt-click (OPTION-click).
7781 \end_layout
7782
7783 \begin_layout Subsubsection*
7784 Skim (Mac OSX)
7785 \end_layout
7786
7787 \begin_layout Standard
7788 Enter 
7789 \begin_inset Flex Code
7790 status collapsed
7791
7792 \begin_layout Plain Layout
7793 open -a Skim.app $$i
7794 \end_layout
7795
7796 \end_inset
7797
7798  to the viewer setting in 
7799 \begin_inset Flex Noun
7800 status collapsed
7801
7802 \begin_layout Plain Layout
7803 Preferences\SpecialChar menuseparator
7804 File Handling\SpecialChar menuseparator
7805 File formats\SpecialChar menuseparator
7806 PDF (pdflatex)
7807 \end_layout
7808
7809 \end_inset
7810
7811 , and then in 
7812 \begin_inset Flex Noun
7813 status collapsed
7814
7815 \begin_layout Plain Layout
7816 Skim\SpecialChar menuseparator
7817 Preferences\SpecialChar menuseparator
7818 Sync
7819 \end_layout
7820
7821 \end_inset
7822
7823  choose 
7824 \begin_inset Flex Noun
7825 status collapsed
7826
7827 \begin_layout Plain Layout
7828 custom
7829 \end_layout
7830
7831 \end_inset
7832
7833  preset and enter command 
7834 \begin_inset Flex Noun
7835 status collapsed
7836
7837 \begin_layout Plain Layout
7838 /Applications/\SpecialChar LyX
7839 .app/Contents/MacOS/lyxeditor
7840 \end_layout
7841
7842 \end_inset
7843
7844 .
7845 \end_layout
7846
7847 \begin_layout Standard
7848 Reverse search is triggered by COMMAND-SHIFT-click
7849 \end_layout
7850
7851 \begin_layout Subsubsection*
7852 Evince (GNOME)
7853 \end_layout
7854
7855 \begin_layout Standard
7856 Reverse search with evince does not work out of the box, but it can be achieved
7857  by means of some third party helper scripts.
7858  Please refer to 
7859 \begin_inset CommandInset href
7860 LatexCommand href
7861 target "http://wiki.lyx.org/LyX/SyncTeX"
7862 literal "false"
7863
7864 \end_inset
7865
7866  for details.
7867 \end_layout
7868
7869 \begin_layout Subsubsection*
7870 Okular (KDE)
7871 \end_layout
7872
7873 \begin_layout Standard
7874 Go to 
7875 \begin_inset Flex Noun
7876 status collapsed
7877
7878 \begin_layout Plain Layout
7879 Settings\SpecialChar menuseparator
7880 Configure Okular\SpecialChar menuseparator
7881 Editor
7882 \end_layout
7883
7884 \end_inset
7885
7886
7887 \change_inserted -712698321 1500981642
7888  and
7889 \change_deleted -712698321 1500981641
7890 ,
7891 \change_unchanged
7892  select 
7893 \change_deleted -712698321 1500981634
7894
7895 \begin_inset Quotes eld
7896 \end_inset
7897
7898 Custom Text Editor
7899 \change_inserted -712698321 1500981635
7900 LyX
7901 \change_unchanged
7902
7903 \begin_inset Quotes erd
7904 \end_inset
7905
7906  
7907 \change_inserted -712698321 1500981659
7908 as editor.
7909  This inserts the appropriate 
7910 \change_deleted -712698321 1500981663
7911 and add the 
7912 \change_unchanged
7913 command 
7914 \change_inserted -712698321 1500981665
7915 (
7916 \change_unchanged
7917
7918 \begin_inset Flex Code
7919 status collapsed
7920
7921 \begin_layout Plain Layout
7922 lyxclient -g %f %l
7923 \end_layout
7924
7925 \end_inset
7926
7927
7928 \change_inserted -712698321 1500981668
7929 )
7930 \change_unchanged
7931 .
7932 \end_layout
7933
7934 \begin_layout Standard
7935 Reverse search is triggered by SHIFT-click.
7936 \end_layout
7937
7938 \begin_layout Subsubsection*
7939 Qpdfview (Unix)
7940 \end_layout
7941
7942 \begin_layout Standard
7943 Qpdfview supports Sync\SpecialChar TeX
7944  since version 0.3.5.
7945  Go to 
7946 \begin_inset Flex Noun
7947 status collapsed
7948
7949 \begin_layout Plain Layout
7950 Edit\SpecialChar menuseparator
7951 Settings\SpecialChar menuseparator
7952 Behavior
7953 \end_layout
7954
7955 \end_inset
7956
7957 , click on the input field of the 
7958 \begin_inset Quotes eld
7959 \end_inset
7960
7961 Source editor
7962 \begin_inset Quotes erd
7963 \end_inset
7964
7965  item and add the command 
7966 \begin_inset Flex Code
7967 status collapsed
7968
7969 \begin_layout Plain Layout
7970 lyxclient -g %1 %2
7971 \end_layout
7972
7973 \end_inset
7974
7975 .
7976 \end_layout
7977
7978 \begin_layout Standard
7979 Reverse search is triggered by double-click or, in more recent versions,
7980  by context menu.
7981 \end_layout
7982
7983 \begin_layout Subsubsection*
7984 YAP (Windows)
7985 \end_layout
7986
7987 \begin_layout Standard
7988 Launch yap, choose its 
7989 \begin_inset Flex Noun
7990 status collapsed
7991
7992 \begin_layout Plain Layout
7993 View\SpecialChar menuseparator
7994 Options
7995 \end_layout
7996
7997 \end_inset
7998
7999  menu and select the 
8000 \begin_inset Quotes eld
8001 \end_inset
8002
8003 Inverse DVI Search
8004 \begin_inset Quotes erd
8005 \end_inset
8006
8007  tab.
8008  Click on the 
8009 \begin_inset Quotes eld
8010 \end_inset
8011
8012 New\SpecialChar ldots
8013
8014 \begin_inset Quotes erd
8015 \end_inset
8016
8017  button and, in the window that opens, enter 
8018 \begin_inset Quotes eld
8019 \end_inset
8020
8021 \SpecialChar LyX
8022  Editor
8023 \begin_inset Quotes erd
8024 \end_inset
8025
8026  (or any other name you like) in the 
8027 \begin_inset Quotes eld
8028 \end_inset
8029
8030 Name:
8031 \begin_inset Quotes erd
8032 \end_inset
8033
8034  field.
8035  Now click on the button labeled 
8036 \begin_inset Quotes eld
8037 \end_inset
8038
8039 \SpecialChar ldots
8040
8041 \begin_inset Quotes erd
8042 \end_inset
8043
8044  to open a file dialog and navigate to the directory containing the batch
8045  file 
8046 \begin_inset Flex Code
8047 status collapsed
8048
8049 \begin_layout Plain Layout
8050 lyxeditor.bat
8051 \end_layout
8052
8053 \end_inset
8054
8055  (see below).
8056  Select 
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  and then specify the program arguments as 
8067 \begin_inset Flex Code
8068 status collapsed
8069
8070 \begin_layout Plain Layout
8071 %f %l
8072 \end_layout
8073
8074 \end_inset
8075
8076 .
8077  The 
8078 \begin_inset Flex Code
8079 status collapsed
8080
8081 \begin_layout Plain Layout
8082 lyxeditor.bat
8083 \end_layout
8084
8085 \end_inset
8086
8087  wrapper is used for communicating with \SpecialChar LyX
8088  through the 
8089 \emph on
8090 lyxpipe
8091 \emph default
8092  and is as follows:
8093 \end_layout
8094
8095 \begin_layout LyX-Code
8096 @echo off
8097 \begin_inset Newline newline
8098 \end_inset
8099
8100 echo LYXCMD:revdvi:server-goto-file-row:%~1 %2> 
8101 \backslash
8102
8103 \backslash
8104 .
8105 \backslash
8106 pipe
8107 \backslash
8108 lyxpipe.in
8109 \begin_inset Newline newline
8110 \end_inset
8111
8112 type 
8113 \backslash
8114
8115 \backslash
8116 .
8117 \backslash
8118 pipe
8119 \backslash
8120 lyxpipe.out
8121 \end_layout
8122
8123 \begin_layout Standard
8124 Make sure that the \SpecialChar LyX
8125 Server pipe path you specified in \SpecialChar LyX
8126  is 
8127 \begin_inset Flex Code
8128 status collapsed
8129
8130 \begin_layout Plain Layout
8131
8132 \backslash
8133
8134 \backslash
8135 .
8136 \backslash
8137 pipe
8138 \backslash
8139 lyxpipe
8140 \end_layout
8141
8142 \end_inset
8143
8144 , otherwise change the 
8145 \begin_inset Flex Code
8146 status collapsed
8147
8148 \begin_layout Plain Layout
8149 lyxeditor.bat
8150 \end_layout
8151
8152 \end_inset
8153
8154  wrapper accordingly.
8155 \end_layout
8156
8157 \begin_layout Standard
8158 In yap, reverse search is triggered by double-click.
8159 \end_layout
8160
8161 \begin_layout Subsubsection*
8162 SumatraPDF (Windows)
8163 \end_layout
8164
8165 \begin_layout Standard
8166 In order to use SumatraPDF for inverse search, enter 
8167 \begin_inset Flex Code
8168 status collapsed
8169
8170 \begin_layout Plain Layout
8171 SumatraPDF -inverse-search "lyxeditor.bat "%f" %l"
8172 \end_layout
8173
8174 \end_inset
8175
8176  in the viewer setting in 
8177 \begin_inset Flex Noun
8178 status collapsed
8179
8180 \begin_layout Plain Layout
8181 Preferences\SpecialChar menuseparator
8182 File Handling\SpecialChar menuseparator
8183 File formats\SpecialChar menuseparator
8184 PDF (pdflatex)
8185 \end_layout
8186
8187 \end_inset
8188
8189 , where 
8190 \begin_inset Flex Code
8191 status collapsed
8192
8193 \begin_layout Plain Layout
8194 lyxeditor.bat
8195 \end_layout
8196
8197 \end_inset
8198
8199  is the previous wrapper.
8200  If SumatraPDF.exe is not in your command PATH, use its full file name.
8201 \end_layout
8202
8203 \begin_layout Standard
8204 Reverse search is triggered by double-click.
8205 \end_layout
8206
8207 \begin_layout Subsubsection*
8208 YAP (Cygwin)
8209 \end_layout
8210
8211 \begin_layout Standard
8212 First of all, make sure that yap is your default DVI viewer in the Windows
8213  environment, then launch it, choose its 
8214 \begin_inset Flex Noun
8215 status collapsed
8216
8217 \begin_layout Plain Layout
8218 View\SpecialChar menuseparator
8219 Options
8220 \end_layout
8221
8222 \end_inset
8223
8224  menu and select the 
8225 \begin_inset Quotes eld
8226 \end_inset
8227
8228 Inverse DVI Search
8229 \begin_inset Quotes erd
8230 \end_inset
8231
8232  tab.
8233  Click on the 
8234 \begin_inset Quotes eld
8235 \end_inset
8236
8237 New\SpecialChar ldots
8238
8239 \begin_inset Quotes erd
8240 \end_inset
8241
8242  button and, in the window that opens, enter 
8243 \begin_inset Quotes eld
8244 \end_inset
8245
8246 \SpecialChar LyX
8247  Editor
8248 \begin_inset Quotes erd
8249 \end_inset
8250
8251  (or any other name you like) in the 
8252 \begin_inset Quotes eld
8253 \end_inset
8254
8255 Name:
8256 \begin_inset Quotes erd
8257 \end_inset
8258
8259  field.
8260  Now click on the button labeled 
8261 \begin_inset Quotes eld
8262 \end_inset
8263
8264 \SpecialChar ldots
8265
8266 \begin_inset Quotes erd
8267 \end_inset
8268
8269  to open a file dialog and navigate to the directory containing the 
8270 \begin_inset Flex Code
8271 status collapsed
8272
8273 \begin_layout Plain Layout
8274 lyxeditor.exe
8275 \end_layout
8276
8277 \end_inset
8278
8279  program (which is installed by default on Cygwin along with the \SpecialChar LyX
8280  executable).
8281  Select 
8282 \begin_inset Flex Code
8283 status collapsed
8284
8285 \begin_layout Plain Layout
8286 lyxeditor.exe
8287 \end_layout
8288
8289 \end_inset
8290
8291  and then specify the program arguments as 
8292 \begin_inset Flex Code
8293 status collapsed
8294
8295 \begin_layout Plain Layout
8296 -g %f %l
8297 \end_layout
8298
8299 \end_inset
8300
8301 .
8302  In this way, you will be using the 
8303 \emph on
8304 lyxsocket
8305 \emph default
8306  for communicating with \SpecialChar LyX
8307 .
8308  If, for whatever reason, you want to use the 
8309 \emph on
8310 lyxpipe
8311 \emph default
8312 , omit the 
8313 \begin_inset Flex Code
8314 status collapsed
8315
8316 \begin_layout Plain Layout
8317 -g
8318 \end_layout
8319
8320 \end_inset
8321
8322  option and be sure to specify the \SpecialChar LyX
8323 Server pipe path in the \SpecialChar LyX
8324  preferences.
8325 \end_layout
8326
8327 \begin_layout Standard
8328 In yap, reverse search is triggered by double-click.
8329 \end_layout
8330
8331 \begin_layout Subsubsection*
8332 SumatraPDF (Cygwin)
8333 \end_layout
8334
8335 \begin_layout Standard
8336 In order to use SumatraPDF for inverse search, enter 
8337 \begin_inset Flex Code
8338 status collapsed
8339
8340 \begin_layout Plain Layout
8341 SumatraPDF -inverse-search "lyxeditor -g %f %l"
8342 \end_layout
8343
8344 \end_inset
8345
8346  in the viewer setting in 
8347 \begin_inset Flex Noun
8348 status collapsed
8349
8350 \begin_layout Plain Layout
8351 Preferences\SpecialChar menuseparator
8352 File Handling\SpecialChar menuseparator
8353 File formats\SpecialChar menuseparator
8354 PDF (pdflatex)
8355 \end_layout
8356
8357 \end_inset
8358
8359 .
8360  If SumatraPDF.exe is not in your command PATH, use its full posix path.
8361  The 
8362 \begin_inset Flex Code
8363 status collapsed
8364
8365 \begin_layout Plain Layout
8366 -g
8367 \end_layout
8368
8369 \end_inset
8370
8371  enables communication via the 
8372 \emph on
8373 lyxsocket
8374 \emph default
8375 .
8376  Again, omit the 
8377 \begin_inset Flex Code
8378 status collapsed
8379
8380 \begin_layout Plain Layout
8381 -g
8382 \end_layout
8383
8384 \end_inset
8385
8386  option if you want to use the 
8387 \emph on
8388 lyxpipe
8389 \emph default
8390 , and be sure to specify the \SpecialChar LyX
8391 Server pipe path in the \SpecialChar LyX
8392  preferences.
8393 \end_layout
8394
8395 \begin_layout Standard
8396 Reverse search is triggered by double-click.
8397 \end_layout
8398
8399 \begin_layout Section
8400 Forward search
8401 \end_layout
8402
8403 \begin_layout Standard
8404 Forward search is, as the name implies, in a sense the 
8405 \begin_inset Quotes eld
8406 \end_inset
8407
8408 opposite
8409 \begin_inset Quotes erd
8410 \end_inset
8411
8412  of reverse search.
8413  It allows you to let the viewer jump to a given position from within \SpecialChar LyX
8414 .
8415  If forward search is set up (as described in what follows), you can put
8416  the cursor anywhere in your \SpecialChar LyX
8417  document, and hit 
8418 \begin_inset Flex Noun
8419 status collapsed
8420
8421 \begin_layout Plain Layout
8422 Navigate\SpecialChar menuseparator
8423 Forward search
8424 \end_layout
8425
8426 \end_inset
8427
8428  (or select 
8429 \begin_inset Flex Noun
8430 status collapsed
8431
8432 \begin_layout Plain Layout
8433 Forward search
8434 \end_layout
8435
8436 \end_inset
8437
8438  in the context menu via right mouse click), and then the viewer will jump
8439  to that position as well.
8440  This implies, of course, that your viewer supports this function.
8441 \end_layout
8442
8443 \begin_layout Standard
8444 To make forward search possible, you first need to provide the generated
8445  output PDF/DVI file with additional information about the \SpecialChar TeX
8446  sources.
8447  This can be done via the methods described in the section 
8448 \begin_inset CommandInset ref
8449 LatexCommand ref
8450 reference "subsec:rev-search"
8451
8452 \end_inset
8453
8454 .
8455 \end_layout
8456
8457 \begin_layout Standard
8458 Additionally, you need to configure \SpecialChar LyX
8459  for using your viewers in 
8460 \begin_inset Flex Noun
8461 status collapsed
8462
8463 \begin_layout Plain Layout
8464 Tools\SpecialChar menuseparator
8465 Preferences\SpecialChar menuseparator
8466 Output\SpecialChar menuseparator
8467 General
8468 \end_layout
8469
8470 \end_inset
8471
8472 .
8473  We provide a range of tested configurations for some viewers, which you
8474  can select from the drop down list.
8475  If none of these configurations suits you, you have to find out and enter
8476  a suitable configuration yourself.
8477  The definition syntax uses the following placeholders:
8478 \end_layout
8479
8480 \begin_layout Itemize
8481 \noindent
8482 \begin_inset Flex Code
8483 status collapsed
8484
8485 \begin_layout Plain Layout
8486 $$n
8487 \end_layout
8488
8489 \end_inset
8490
8491 : row number
8492 \end_layout
8493
8494 \begin_layout Itemize
8495 \noindent
8496 \begin_inset Flex Code
8497 status collapsed
8498
8499 \begin_layout Plain Layout
8500 $$t
8501 \end_layout
8502
8503 \end_inset
8504
8505 : name of the (temporary) exported .tex file (without path)
8506 \end_layout
8507
8508 \begin_layout Itemize
8509 \noindent
8510 \begin_inset Flex Code
8511 status collapsed
8512
8513 \begin_layout Plain Layout
8514 $$f
8515 \end_layout
8516
8517 \end_inset
8518
8519 : name of the (temporary) exported .tex file (including path)
8520 \end_layout
8521
8522 \begin_layout Itemize
8523 \noindent
8524 \begin_inset Flex Code
8525 status collapsed
8526
8527 \begin_layout Plain Layout
8528 $$o
8529 \end_layout
8530
8531 \end_inset
8532
8533 : name of the exported output file (either dvi or pdf, depending on which
8534  one exists in the temporary directory)
8535 \end_layout
8536
8537 \begin_layout Standard
8538 Note that only some of the viewers provide full and usable forward search
8539  functionality out of the box, among them yap, xdvi, okular
8540 \begin_inset Foot
8541 status collapsed
8542
8543 \begin_layout Plain Layout
8544 You might want to set 
8545 \begin_inset Flex Code
8546 status collapsed
8547
8548 \begin_layout Plain Layout
8549 okular –unique
8550 \end_layout
8551
8552 \end_inset
8553
8554  in 
8555 \begin_inset Flex Noun
8556 status collapsed
8557
8558 \begin_layout Plain Layout
8559 Tools\SpecialChar menuseparator
8560 Preferences\SpecialChar menuseparator
8561 File Handling\SpecialChar menuseparator
8562 File
8563 \begin_inset space ~
8564 \end_inset
8565
8566 Formats
8567 \end_layout
8568
8569 \end_inset
8570
8571
8572 \end_layout
8573
8574 \end_inset
8575
8576 , qpdfview, and SumatraPDF
8577 \begin_inset Foot
8578 status collapsed
8579
8580 \begin_layout Plain Layout
8581 SumatraPDF can also use DDE commands through the external program CMCDDE
8582  — downloadable from 
8583 \begin_inset CommandInset href
8584 LatexCommand href
8585 target "http://www.istri.fr/spip/zip/CMCDDE.zip"
8586 literal "false"
8587
8588 \end_inset
8589
8590
8591 \end_layout
8592
8593 \end_inset
8594
8595 .
8596  Others, such as evince
8597 \begin_inset Foot
8598 status collapsed
8599
8600 \begin_layout Plain Layout
8601 Forward search with evince can be achieved by means of third party helper
8602  scripts.
8603  Please refer to 
8604 \begin_inset CommandInset href
8605 LatexCommand href
8606 target "http://wiki.lyx.org/LyX/SyncTeX"
8607 literal "false"
8608
8609 \end_inset
8610
8611  for details.
8612 \end_layout
8613
8614 \end_inset
8615
8616 , require some extra tools in order to use forward search.
8617  While many of the widespread PDF viewers (most notably Adobe Reader) do
8618  not support forward search at all, some other viewers – e.
8619 \begin_inset space \thinspace{}
8620 \end_inset
8621
8622 g.
8623  xpdf – allow at least to reload the document and jump to a specific page
8624  of the file, so you can at least navigate 
8625 \begin_inset Quotes eld
8626 \end_inset
8627
8628 near
8629 \begin_inset Quotes erd
8630 \end_inset
8631
8632 .
8633  This latter functionality is provided by an external call of synctex (see
8634  the predefined example configurations).
8635  
8636 \end_layout
8637
8638 \begin_layout Standard
8639 Forward search works both with DVI and PDF output.
8640  \SpecialChar LyX
8641  simply checks which preview format you have used before (i.
8642 \begin_inset space \thinspace{}
8643 \end_inset
8644
8645 e., which format is already there in the temporary directory) and chooses
8646  the appropriate configuration for the respective format.
8647 \end_layout
8648
8649 \begin_layout Chapter
8650 Special Document Classes
8651 \end_layout
8652
8653 \begin_layout Section
8654 A&A Paper
8655 \end_layout
8656
8657 \begin_layout Standard
8658 by 
8659 \noun on
8660 Peter Sütterlin
8661 \end_layout
8662
8663 \begin_layout Subsection
8664 Introduction
8665 \end_layout
8666
8667 \begin_layout Standard
8668 This section describes how \SpecialChar LyX
8669  can be used to write articles for submission
8670  to the scientific journal 
8671 \emph on
8672 Astronomy and Astrophysics
8673 \emph default
8674  (
8675 \begin_inset Flex URL
8676 status collapsed
8677
8678 \begin_layout Plain Layout
8679
8680 http://www.edpsciences.fr/aa/
8681 \end_layout
8682
8683 \end_inset
8684
8685 ) using Version 5.01 of the document class 
8686 \family typewriter
8687 aa.cls
8688 \family default
8689 .
8690  This package can be downloaded from the ftp site
8691 \end_layout
8692
8693 \begin_layout Standard
8694 \begin_inset VSpace medskip
8695 \end_inset
8696
8697
8698 \end_layout
8699
8700 \begin_layout Standard
8701 \align center
8702 \begin_inset Flex URL
8703 status collapsed
8704
8705 \begin_layout Plain Layout
8706
8707 ftp://ftp.edpsciences.org/pub/aa/readme.html
8708 \end_layout
8709
8710 \end_inset
8711
8712
8713 \end_layout
8714
8715 \begin_layout Standard
8716 \begin_inset VSpace medskip
8717 \end_inset
8718
8719
8720 \end_layout
8721
8722 \begin_layout Standard
8723 A manual comes together with that package, and this text is not meant to
8724  replace the original manual but is merely a short guide in how to realize
8725  the correct form of your paper.
8726  
8727 \end_layout
8728
8729 \begin_layout Standard
8730 Please note that the publisher of the journal was changed from Springer
8731  to EDP Sciences starting January 1, 2001.
8732  That change involved also some slight changes to the style files, namely
8733  the removal of the thesaurus command.
8734  The \SpecialChar LyX
8735  class aa supports the newest version of these style files, V 5.01.
8736  If you have an older version installed, please upgrade.
8737  For compatibility, the old (version 4) layout has been kept as 
8738 \family sans
8739 article (A&A V4)
8740 \family default
8741 .
8742  Please refer to the comments in 
8743 \family typewriter
8744 \SpecialChar LyX
8745 Dir/layouts/aapaper.layout
8746 \family default
8747 .
8748 \end_layout
8749
8750 \begin_layout Subsection
8751 Getting started
8752 \end_layout
8753
8754 \begin_layout Standard
8755 It is recommended you start from the example template distributed with \SpecialChar LyX
8756 .
8757  If you are not using a template, note the following settings:
8758 \end_layout
8759
8760 \begin_layout Itemize
8761 Select 
8762 \family sans
8763 article (A&A)
8764 \family default
8765  in the 
8766 \family sans
8767 Document\SpecialChar menuseparator
8768 Settings
8769 \family default
8770  dialog (OK, that one was obvious).
8771 \end_layout
8772
8773 \begin_layout Itemize
8774 Don't change the option 
8775 \family sans
8776 Page
8777 \begin_inset space ~
8778 \end_inset
8779
8780 style
8781 \family default
8782 : Leave it set to 
8783 \family sans
8784 default
8785 \family default
8786 .
8787  The whole layout is done by the macros, you shouldn't change anything.
8788 \end_layout
8789
8790 \begin_layout Subsection
8791 The header block
8792 \end_layout
8793
8794 \begin_layout Standard
8795 First thing to enter is the header information.
8796  It consists of seven entries, of which some are optional.
8797  They are
8798 \end_layout
8799
8800 \begin_layout Itemize
8801
8802 \family sans
8803 Title
8804 \family default
8805 : [required] 
8806 \end_layout
8807
8808 \begin_layout Itemize
8809
8810 \family sans
8811 Subtitle
8812 \family default
8813 : [optional] 
8814 \end_layout
8815
8816 \begin_layout Itemize
8817
8818 \family sans
8819 Author
8820 \family default
8821 : [required]
8822 \end_layout
8823
8824 \begin_layout Itemize
8825
8826 \family sans
8827 Address
8828 \family default
8829 : [required]
8830 \end_layout
8831
8832 \begin_layout Itemize
8833
8834 \family sans
8835 Offprints
8836 \family default
8837 : [optional] if more than one author: whom to contact for offprint requests.
8838 \end_layout
8839
8840 \begin_layout Itemize
8841
8842 \family sans
8843 Mail
8844 \family default
8845 : [optional] mail address for contacts.
8846 \end_layout
8847
8848 \begin_layout Itemize
8849
8850 \family sans
8851 Date
8852 \family default
8853 : [required].
8854  Suggested format is 
8855 \family typewriter
8856 Received: <date>; Accepted <date> 
8857 \end_layout
8858
8859 \begin_layout Standard
8860 There is no need to issue the 
8861 \family typewriter
8862
8863 \backslash
8864 maketitle
8865 \family default
8866  command, this is done automatically by \SpecialChar LyX
8867  when the header is finished.
8868  Although the order of the single header entries doesn't matter it is advised
8869  to keep the above sequence, just to get the best optics and meets the layout
8870  of the real document.
8871 \end_layout
8872
8873 \begin_layout Standard
8874 If you want to place footnotes in the header block, e.
8875 \begin_inset space \thinspace{}
8876 \end_inset
8877
8878 g.
8879 \begin_inset space \space{}
8880 \end_inset
8881
8882 to state your present address, just use the standard footnote via the menu
8883  
8884 \family sans
8885 Insert\SpecialChar menuseparator
8886 Footnote.
8887
8888 \family default
8889  \SpecialChar LyX
8890  will automagically use the term 
8891 \family typewriter
8892
8893 \backslash
8894 thanks{}
8895 \family default
8896  in that case.
8897 \change_inserted -712698321 1501150851
8898
8899 \end_layout
8900
8901 \begin_layout Standard
8902
8903 \change_inserted -712698321 1501150892
8904 Under 
8905 \family sans
8906 Edit\SpecialChar menuseparator
8907 Text Style
8908 \family default
8909 , you'll find two insets which are relevant for the titling:
8910 \end_layout
8911
8912 \begin_layout Itemize
8913
8914 \change_inserted -712698321 1501150936
8915
8916 \family sans
8917 Institute
8918 \family typewriter
8919  
8920 \family default
8921 to mark corresponding author\SpecialChar breakableslash
8922 institute pairs.
8923  The institutes are numbered sequentially as they appear in the 
8924 \family sans
8925 Address
8926 \family default
8927  field, so you have to put a marker to each author.
8928 \end_layout
8929
8930 \begin_layout Itemize
8931
8932 \change_inserted -712698321 1501150947
8933
8934 \family sans
8935 Email
8936 \family default
8937  to supply an email address for fast contact.
8938 \change_unchanged
8939
8940 \end_layout
8941
8942 \begin_layout Standard
8943 In addition to these topics, the macros use
8944 \change_deleted -712698321 1501150958
8945  three
8946 \change_inserted -712698321 1501150961
8947  one
8948 \change_unchanged
8949  additional \SpecialChar LaTeX
8950  command
8951 \change_deleted -712698321 1501150963
8952 s
8953 \change_unchanged
8954  that ha
8955 \change_deleted -712698321 1501150967
8956 ve
8957 \change_inserted -712698321 1501150967
8958 s
8959 \change_unchanged
8960  no counterpart in \SpecialChar LyX
8961 :
8962 \end_layout
8963
8964 \begin_layout Itemize
8965
8966 \family typewriter
8967
8968 \backslash
8969 and
8970 \family default
8971  to separate different names for more than one author and institute, respectivel
8972 y.
8973 \end_layout
8974
8975 \begin_layout Itemize
8976
8977 \change_deleted -712698321 1501150911
8978
8979 \family typewriter
8980
8981 \backslash
8982 inst{<nr>}
8983 \family default
8984 to mark corresponding author/institute pairs.
8985  The institutes are numbered sequentially as they appear in the 
8986 \family sans
8987 Address
8988 \family default
8989  field, so you have to put a marker to each author.
8990 \end_layout
8991
8992 \begin_layout Itemize
8993
8994 \change_deleted -712698321 1501150911
8995
8996 \family typewriter
8997
8998 \backslash
8999 email{address}
9000 \family default
9001  to supply an email address for fast contact.
9002 \change_unchanged
9003
9004 \end_layout
9005
9006 \begin_layout Standard
9007
9008 \change_deleted -712698321 1501150972
9009 In all cases, t
9010 \change_inserted -712698321 1501150972
9011 T
9012 \change_unchanged
9013 he appropriate command has to be entered in \SpecialChar LyX
9014  and marked as \SpecialChar LaTeX
9015  code.
9016  See the examples.
9017  
9018 \end_layout
9019
9020 \begin_layout Subsection
9021 The abstract
9022 \end_layout
9023
9024 \begin_layout Standard
9025 The abstract should immediately follow the header block.
9026  With version 5 the abstract environment was changed to a command, and there
9027  is now a resctriction to only one paragraph.
9028  In addition, it should contain an entry with the keywords.
9029  This is 
9030 \change_deleted -712698321 1501151111
9031 not yet implemented for \SpecialChar LyX
9032 , therefore you have to enter the \SpecialChar LaTeX
9033  command 
9034 \family typewriter
9035
9036 \backslash
9037 keywords{}
9038 \family default
9039  by hand and mark it as \SpecialChar LaTeX
9040  code
9041 \change_inserted -712698321 1501151122
9042 done via the paragraph style 
9043 \family sans
9044 Keywords
9045 \change_unchanged
9046
9047 \family default
9048 .
9049  Refer to the example paper.
9050 \end_layout
9051
9052 \begin_layout Subsection
9053 Supported environments
9054 \end_layout
9055
9056 \begin_layout Standard
9057 The A&A paper layout supports the following environments for structuring
9058  your text:
9059 \end_layout
9060
9061 \begin_layout Itemize
9062
9063 \family sans
9064 Standard
9065 \end_layout
9066
9067 \begin_layout Itemize
9068
9069 \family sans
9070 Section
9071 \end_layout
9072
9073 \begin_layout Itemize
9074
9075 \family sans
9076 Subsection
9077 \end_layout
9078
9079 \begin_layout Itemize
9080
9081 \family sans
9082 Subsubsection
9083 \end_layout
9084
9085 \begin_layout Itemize
9086
9087 \family sans
9088 Itemize
9089 \end_layout
9090
9091 \begin_layout Itemize
9092
9093 \family sans
9094 Enumerate
9095 \end_layout
9096
9097 \begin_layout Itemize
9098
9099 \family sans
9100 Description
9101 \end_layout
9102
9103 \begin_layout Itemize
9104
9105 \family sans
9106 Caption
9107 \end_layout
9108
9109 \begin_layout Itemize
9110
9111 \family sans
9112 Abstract
9113 \end_layout
9114
9115 \begin_layout Itemize
9116
9117 \family sans
9118 Acknowledgment
9119 \end_layout
9120
9121 \begin_layout Itemize
9122
9123 \family sans
9124 Bibliography
9125 \end_layout
9126
9127 \begin_layout Itemize
9128
9129 \family sans
9130 \SpecialChar LaTeX
9131
9132 \end_layout
9133
9134 \begin_layout Subsection
9135 Commands not supported by \SpecialChar LyX
9136
9137 \end_layout
9138
9139 \begin_layout Standard
9140 Some commands are not yet supported by the 
9141 \family sans
9142 paper (A&A)
9143 \family default
9144  layout for \SpecialChar LyX
9145 .
9146  Some have already been mentioned.
9147  For the sake of completeness, they are listed all together here:
9148 \end_layout
9149
9150 \begin_layout Itemize
9151
9152 \family typewriter
9153
9154 \backslash
9155 and
9156 \end_layout
9157
9158 \begin_layout Itemize
9159
9160 \change_deleted -712698321 1501151229
9161
9162 \family typewriter
9163
9164 \backslash
9165 email
9166 \change_unchanged
9167
9168 \end_layout
9169
9170 \begin_layout Itemize
9171
9172 \change_deleted -712698321 1501151308
9173
9174 \family typewriter
9175
9176 \backslash
9177 appendix
9178 \change_unchanged
9179
9180 \end_layout
9181
9182 \begin_layout Itemize
9183
9184 \family typewriter
9185
9186 \backslash
9187 authorrunning
9188 \end_layout
9189
9190 \begin_layout Itemize
9191
9192 \change_deleted -712698321 1501151231
9193
9194 \family typewriter
9195
9196 \backslash
9197 inst{}
9198 \end_layout
9199
9200 \begin_layout Itemize
9201
9202 \change_deleted -712698321 1501151231
9203
9204 \family typewriter
9205
9206 \backslash
9207 keywords{}
9208 \change_unchanged
9209
9210 \end_layout
9211
9212 \begin_layout Itemize
9213
9214 \family typewriter
9215
9216 \backslash
9217 object{}
9218 \end_layout
9219
9220 \begin_layout Itemize
9221
9222 \family typewriter
9223
9224 \backslash
9225 titlerunning{}
9226 \end_layout
9227
9228 \begin_layout Standard
9229 If you want to use any of these commands, you have to enter them yourself.
9230  
9231 \series bold
9232 Do not forget to mark them as \SpecialChar LaTeX
9233  code!
9234 \end_layout
9235
9236 \begin_layout Subsection
9237 Figure and Table Floats
9238 \end_layout
9239
9240 \begin_layout Standard
9241 \SpecialChar LyX
9242  provides support for the necessary float environments 
9243 \family sans
9244 figure, figure*, table
9245 \family default
9246  and 
9247 \family sans
9248 table*
9249 \family default
9250 , therefore we won't tell much about it here.
9251  Refer to the 
9252 \emph on
9253 User's
9254 \begin_inset space ~
9255 \end_inset
9256
9257 Guide
9258 \emph default
9259 .
9260  Just remember that tables should be left-aligned.
9261  For that, select the table and change the alignment in 
9262 \family sans
9263 Edit\SpecialChar menuseparator
9264 Paragraph
9265 \begin_inset space ~
9266 \end_inset
9267
9268 Settings.
9269 \end_layout
9270
9271 \begin_layout Standard
9272 There is only one special thing: the figures with caption besides the figure.
9273  To create such a figure, you have to do the following:
9274 \end_layout
9275
9276 \begin_layout Enumerate
9277 Create a wide figure float: 
9278 \family sans
9279 Insert\SpecialChar menuseparator
9280 Float\SpecialChar menuseparator
9281 Figure
9282 \family default
9283 , then right click in the figure and select 
9284 \family sans
9285 Span
9286 \begin_inset space ~
9287 \end_inset
9288
9289 columns
9290 \family default
9291 .
9292 \end_layout
9293
9294 \begin_layout Enumerate
9295 Enter your caption text.
9296 \end_layout
9297
9298 \begin_layout Enumerate
9299 Press 
9300 \family sans
9301 Return
9302 \family default
9303  to move the cursor above the caption.
9304 \end_layout
9305
9306 \begin_layout Enumerate
9307 Insert your figure
9308 \end_layout
9309
9310 \begin_layout Enumerate
9311 Position the cursor behind the figure and insert a horizontal fill: 
9312 \family sans
9313 Insert\SpecialChar menuseparator
9314 Special
9315 \begin_inset space ~
9316 \end_inset
9317
9318 Character\SpecialChar menuseparator
9319 Horizontal
9320 \begin_inset space ~
9321 \end_inset
9322
9323 Fill
9324 \family default
9325 .
9326 \end_layout
9327
9328 \begin_layout Enumerate
9329 Switch to \SpecialChar LaTeX
9330  mode: 
9331 \family sans
9332 M-c
9333 \begin_inset space ~
9334 \end_inset
9335
9336 t
9337 \family default
9338 .
9339 \end_layout
9340
9341 \begin_layout Enumerate
9342 Enter 
9343 \family typewriter
9344
9345 \backslash
9346 parbox[b]{55mm}{
9347 \family default
9348 .
9349  
9350 \series bold
9351 Do not close the brace!
9352 \end_layout
9353
9354 \begin_layout Enumerate
9355 Position the cursor behind the caption text, switch to \SpecialChar LaTeX
9356  mode and insert
9357  the closing brace: 
9358 \family sans
9359 M-c
9360 \begin_inset space ~
9361 \end_inset
9362
9363 t
9364 \family default
9365  
9366 \family typewriter
9367 }
9368 \family default
9369 .
9370 \end_layout
9371
9372 \begin_layout Standard
9373 Also, refer to the figures in the example paper.
9374 \end_layout
9375
9376 \begin_layout Subsection
9377 Referee layout
9378 \end_layout
9379
9380 \begin_layout Standard
9381 For submission, the paper has to be formated in a special double-spacing
9382  layout.
9383  For this purpose, you have to give the option 
9384 \family typewriter
9385 referee
9386 \family default
9387  to the documentclass.
9388  This must be done using the 
9389 \change_deleted -712698321 1501151486
9390 extra
9391 \change_inserted -712698321 1501151487
9392 custom
9393 \change_unchanged
9394  class options field in the 
9395 \family sans
9396 Document\SpecialChar menuseparator
9397 Settings
9398 \family default
9399  dialog.
9400  Just enter the string 
9401 \family typewriter
9402 referee
9403 \family default
9404  there.
9405 \end_layout
9406
9407 \begin_layout Subsection
9408 The example paper
9409 \end_layout
9410
9411 \begin_layout Standard
9412 The 
9413 \family sans
9414 Examples
9415 \family default
9416  directory contains an example paper written with \SpecialChar LyX
9417 .
9418  It is the example paper from the original macro package, translated to
9419  \SpecialChar LyX
9420 .
9421  Use it for inspiration, and compare the original \SpecialChar LaTeX
9422  code with \SpecialChar LyX
9423  way of writing.
9424 \end_layout
9425
9426 \begin_layout Section
9427 AAS\SpecialChar TeX
9428
9429 \end_layout
9430
9431 \begin_layout Standard
9432 by 
9433 \noun on
9434 Mike Ressler
9435 \end_layout
9436
9437 \begin_layout Subsection
9438 Introduction
9439 \end_layout
9440
9441 \begin_layout Standard
9442 AAS\SpecialChar TeX
9443  is a set of macros produced by the American Astronomical Society to
9444  facilitate electronic manuscript submission to the three journals they
9445  publish: the Astrophysical Journal (including the Letters and Supplement),
9446  the Astronomical Journal, and the Publications of the Astronomical Society
9447  of the Pacific.
9448  \SpecialChar LyX
9449  has proven to be an excellent tool for generating these documents, especially
9450  given its equation, citation, and figure handling capabilities.
9451  \SpecialChar LyX
9452  requires version 5.0 (or higher) of these macros; preferably 
9453 \change_deleted -712698321 1501152764
9454 5.2
9455 \change_inserted -712698321 1501152766
9456 6.0
9457 \change_unchanged
9458 , which is the version described here, or higher.
9459  Versions prior to 5.0 are intended for use with \SpecialChar LaTeX
9460 2.09 and are fundamentally
9461  incompatible with \SpecialChar LyX
9462 .
9463  The AAS\SpecialChar TeX
9464  package may be downloaded from the AAS\SpecialChar TeX
9465  Web site
9466 \end_layout
9467
9468 \begin_layout Standard
9469 \begin_inset VSpace medskip
9470 \end_inset
9471
9472
9473 \end_layout
9474
9475 \begin_layout Standard
9476 \align center
9477 \begin_inset Flex URL
9478 status collapsed
9479
9480 \begin_layout Plain Layout
9481
9482 https://aas.org/aastex/aastex-downloads
9483 \end_layout
9484
9485 \end_inset
9486
9487
9488 \end_layout
9489
9490 \begin_layout Standard
9491 \begin_inset VSpace medskip
9492 \end_inset
9493
9494
9495 \end_layout
9496
9497 \begin_layout Standard
9498 A complete user guide is contained in that package and you should familiarize
9499  yourself with it thoroughly before embarking on writing a paper in \SpecialChar LyX
9500 .
9501  \SpecialChar LyX
9502  will not reduce the need to figure out all the AAS\SpecialChar TeX
9503  commands, it will only
9504  reduce the drudgery of typing everything in.
9505  It is your responsibility to ensure that the final exported \SpecialChar LaTeX
9506  document conforms
9507  completely to the requirements of the journal to which you are submitting
9508  your paper.
9509 \end_layout
9510
9511 \begin_layout Subsection
9512 Starting a New Paper
9513 \end_layout
9514
9515 \begin_layout Standard
9516 I strongly suggest that you start with the AAS\SpecialChar TeX
9517  template file.
9518  Click on 
9519 \family sans
9520 File\SpecialChar menuseparator
9521 New from
9522 \family default
9523  
9524 \family sans
9525 Template
9526 \family default
9527 , enter the new file name, then choose the 
9528 \family typewriter
9529 aastex
9530 \change_inserted -712698321 1501152130
9531 6
9532 \change_unchanged
9533 .lyx
9534 \family default
9535  template.
9536  This will show the most common fields found in a manuscript.
9537  Simply overwrite the existing text (including the brackets, 
9538 \family typewriter
9539 <>
9540 \family default
9541 ) with the correct information.
9542  Many of the AAS\SpecialChar TeX
9543  commands and environments can be implemented directly in
9544  \SpecialChar LyX
9545 , but some cannot
9546 \change_deleted -712698321 1501152213
9547 : most noticeably 
9548 \family typewriter
9549
9550 \backslash
9551 altaffilmark
9552 \family default
9553  and 
9554 \family typewriter
9555
9556 \backslash
9557 altaffiltext
9558 \family default
9559 , which should stick out like a sore thumb if you actually just opened the
9560  template file
9561 \change_unchanged
9562 .
9563  For commands such as these, the \SpecialChar LaTeX
9564  code must be entered directly and marked
9565  as such.
9566  Such commands are referred to as \SpecialChar TeX
9567  code, or Evil Red Text.
9568  I tried to minimize the amount of \SpecialChar TeX
9569  code needed in an AAS\SpecialChar TeX
9570  document
9571 \change_deleted -712698321 1501152220
9572 , but there is still a bit more required than any of us would like
9573 \change_unchanged
9574 .
9575 \end_layout
9576
9577 \begin_layout Subsection
9578 Finishing Your Paper
9579 \end_layout
9580
9581 \begin_layout Standard
9582 When the paper is finished to your satisfaction and previews/prints correctly,
9583  there are a few 
9584 \begin_inset Quotes eld
9585 \end_inset
9586
9587 postprocessing
9588 \begin_inset Quotes erd
9589 \end_inset
9590
9591  actions which need to be done before you submit it to the journals.
9592  
9593 \end_layout
9594
9595 \begin_layout Enumerate
9596 Export your paper as a \SpecialChar LaTeX
9597  file (
9598 \family sans
9599 File\SpecialChar menuseparator
9600 Export\SpecialChar menuseparator
9601 \SpecialChar LaTeX
9602
9603 \family default
9604 ).
9605  
9606 \end_layout
9607
9608 \begin_layout Enumerate
9609 Edit the resulting 
9610 \family typewriter
9611 .tex
9612 \family default
9613  file with your favorite text editor
9614 \end_layout
9615
9616 \begin_deeper
9617 \begin_layout Enumerate
9618 remove the comment lines before the 
9619 \family typewriter
9620
9621 \backslash
9622 documentclass
9623 \family default
9624  command
9625 \end_layout
9626
9627 \begin_layout Enumerate
9628 remove the 
9629 \family typewriter
9630
9631 \backslash
9632 usepackage...{fontenc}
9633 \family default
9634  line if it appears (usually just after 
9635 \family typewriter
9636
9637 \backslash
9638 documentclass
9639 \family default
9640 }; also remove the 
9641 \family typewriter
9642
9643 \backslash
9644 secnumdepth
9645 \family default
9646  line if it appears.
9647 \end_layout
9648
9649 \begin_layout Enumerate
9650 remove everything between (and including) the 
9651 \family typewriter
9652
9653 \backslash
9654 makeatletter
9655 \family default
9656  and 
9657 \family typewriter
9658
9659 \backslash
9660 makeatother
9661 \family default
9662  commands, except for any commands you specifically put into the \SpecialChar LaTeX
9663  preamble
9664  (which should appear immediately after the 
9665 \begin_inset Quotes eld
9666 \end_inset
9667
9668 User specified \SpecialChar LaTeX
9669  commands
9670 \begin_inset Quotes erd
9671 \end_inset
9672
9673  comment in the 
9674 \family typewriter
9675 .tex
9676 \family default
9677  file).
9678 \end_layout
9679
9680 \end_deeper
9681 \begin_layout Enumerate
9682 Run the resulting file through \SpecialChar LaTeX
9683  to make sure it still processes correctly.
9684 \end_layout
9685
9686 \begin_layout Enumerate
9687 Reread the journal requirements to make sure your filenames and formats
9688  are correct.
9689 \end_layout
9690
9691 \begin_layout Enumerate
9692 Submit it.
9693 \end_layout
9694
9695 \begin_layout Subsection
9696 Comments On Specific Commands
9697 \end_layout
9698
9699 \begin_layout Standard
9700 I will not describe the detailed usage of the individual AAS\SpecialChar TeX
9701  commands: the
9702  AAS\SpecialChar TeX
9703  User Guide (
9704 \family typewriter
9705 aasguide.tex
9706 \family default
9707 ) gives a good description of each.
9708  Thus it's probably easiest for me to go down the list as found in the guide
9709  and offer comments where necessary.
9710  So let's begin \SpecialChar ldots
9711
9712 \end_layout
9713
9714 \begin_layout Subsubsection
9715 Things that work as expected
9716 \end_layout
9717
9718 \begin_layout Standard
9719 Because they work as you might expect, I simply list them and the section
9720  they are found in: 
9721 \family typewriter
9722
9723 \backslash
9724 documentclass
9725 \family default
9726  (2.1.1), 
9727 \family typewriter
9728
9729 \backslash
9730 begin{document}
9731 \family default
9732  (2.2), 
9733 \family typewriter
9734
9735 \backslash
9736 title
9737 \family default
9738  (2.3), 
9739 \family typewriter
9740
9741 \backslash
9742 author
9743 \family default
9744  (2.3), 
9745 \family typewriter
9746
9747 \backslash
9748 affil
9749 \family default
9750  (2.3), 
9751 \family typewriter
9752
9753 \backslash
9754 abstract
9755 \family default
9756  (2.4), 
9757 \family typewriter
9758
9759 \backslash
9760 keywords
9761 \family default
9762  (2.5), 
9763 \family typewriter
9764
9765 \backslash
9766 section
9767 \family default
9768  (2.7), 
9769 \family typewriter
9770
9771 \backslash
9772 subsection
9773 \family default
9774  (2.7), 
9775 \family typewriter
9776
9777 \backslash
9778 subsubsection
9779 \family default
9780  (2.7), 
9781 \family typewriter
9782
9783 \backslash
9784 paragraph
9785 \family default
9786  (2.7), 
9787 \family typewriter
9788
9789 \backslash
9790 facility
9791 \family default
9792  (2.10), 
9793 \family typewriter
9794
9795 \backslash
9796 begin{displaymath}
9797 \family default
9798  (2.12), 
9799 \family typewriter
9800
9801 \backslash
9802 begin{equation}
9803 \family default
9804  (2.12), 
9805 \family typewriter
9806
9807 \backslash
9808 begin{eqnarray}
9809 \family default
9810  (2.12), 
9811 \family typewriter
9812
9813 \backslash
9814 begin{mathletters}
9815 \family default
9816  (2.12), 
9817 \family typewriter
9818
9819 \backslash
9820 begin{thebibliography}
9821 \family default
9822  (2.13.1), 
9823 \family typewriter
9824
9825 \backslash
9826 bibitem
9827 \family default
9828  (2.13.2), all the cite commands and their variations (2.13.2), the generic
9829  graphicx figure commands (2.14.1), 
9830 \family typewriter
9831
9832 \backslash
9833 begin{table}
9834 \family default
9835  (2.15.4), 
9836 \family typewriter
9837
9838 \backslash
9839 begin{tabular}
9840 \family default
9841  (2.15.4), 
9842 \family typewriter
9843
9844 \backslash
9845 caption
9846 \family default
9847  (2.15.4), 
9848 \family typewriter
9849
9850 \backslash
9851 label
9852 \family default
9853  (2.15.4, amongst other places), 
9854 \family typewriter
9855
9856 \backslash
9857 tablerefs
9858 \family default
9859  (2.15.5), 
9860 \family typewriter
9861
9862 \backslash
9863 tablecomments
9864 \family default
9865  (2.15.5), 
9866 \family typewriter
9867
9868 \backslash
9869 url
9870 \family default
9871  (2.17.4), 
9872 \family typewriter
9873
9874 \backslash
9875 end{document}
9876 \family default
9877  (2.18).
9878 \end_layout
9879
9880 \begin_layout Standard
9881 The following style options also work correctly: 
9882 \family typewriter
9883 longabstract
9884 \family default
9885  (2.4), 
9886 \family typewriter
9887 preprint
9888 \family default
9889  (3.2.1), 
9890 \family typewriter
9891 preprint2
9892 \family default
9893  (3.2.2), 
9894 \family typewriter
9895 eqsecnum
9896 \family default
9897  (3.3), 
9898 \family typewriter
9899 flushrt
9900 \family default
9901  (3.4).
9902  Simply put them in the 
9903 \family sans
9904 Options
9905 \family default
9906  box in 
9907 \family sans
9908 Layout\SpecialChar menuseparator
9909 Document
9910 \family default
9911 .
9912 \end_layout
9913
9914 \begin_layout Subsubsection
9915 Things that work, but require more comment
9916 \end_layout
9917
9918 \begin_layout Standard
9919 The following items work, but require a little more discussion:
9920 \end_layout
9921
9922 \begin_layout Itemize
9923 These items are reserved for use by the journal editors, but you can put
9924  them into the \SpecialChar LaTeX
9925  preamble if you feel compelled to do so: 
9926 \family typewriter
9927
9928 \backslash
9929 received
9930 \family default
9931
9932 \family typewriter
9933
9934 \backslash
9935 revised
9936 \family default
9937
9938 \family typewriter
9939
9940 \backslash
9941 accepted
9942 \family default
9943
9944 \family typewriter
9945
9946 \backslash
9947 ccc
9948 \family default
9949
9950 \family typewriter
9951
9952 \backslash
9953 cpright
9954 \family default
9955  (all from 2.1.3)
9956 \end_layout
9957
9958 \begin_layout Itemize
9959 These items may be placed in the \SpecialChar LaTeX
9960  preamble, and are included as blanks in
9961  the template file: 
9962 \family typewriter
9963
9964 \backslash
9965 slugcomment
9966 \family default
9967  (2.1.4), 
9968 \family typewriter
9969
9970 \backslash
9971 shorttitle
9972 \family default
9973  (2.1.5), 
9974 \family typewriter
9975
9976 \backslash
9977 shortauthors
9978 \family default
9979  (2.1.5)
9980 \end_layout
9981
9982 \begin_layout Itemize
9983
9984 \family typewriter
9985
9986 \backslash
9987 email
9988 \family default
9989  (2.3) – can only be used 
9990 \begin_inset Quotes eld
9991 \end_inset
9992
9993 standalone
9994 \begin_inset Quotes erd
9995 \end_inset
9996
9997 , not in the middle of a paragraph.
9998  Use \SpecialChar TeX
9999  code if you need to embed it.
10000 \end_layout
10001
10002 \begin_layout Itemize
10003
10004 \family typewriter
10005
10006 \backslash
10007 and
10008 \family default
10009  (2.3) – will have extra {} after it.
10010  This should not cause an error.
10011 \end_layout
10012
10013 \begin_layout Itemize
10014
10015 \family typewriter
10016
10017 \backslash
10018 notetoeditor
10019 \family default
10020  (2.6) – can only be used 
10021 \begin_inset Quotes eld
10022 \end_inset
10023
10024 standalone
10025 \begin_inset Quotes erd
10026 \end_inset
10027
10028 , not in the middle of a paragraph.
10029  Use \SpecialChar TeX
10030  code if you need to embed it.
10031 \end_layout
10032
10033 \begin_layout Itemize
10034
10035 \family typewriter
10036
10037 \backslash
10038 placetable
10039 \family default
10040  (2.8) – can't insert a cross-reference tag, you must type the tag name by
10041  hand
10042 \end_layout
10043
10044 \begin_layout Itemize
10045
10046 \family typewriter
10047
10048 \backslash
10049 placefigure
10050 \family default
10051  (2.8) – same as for 
10052 \family typewriter
10053
10054 \backslash
10055 placetable
10056 \end_layout
10057
10058 \begin_layout Itemize
10059
10060 \family typewriter
10061
10062 \backslash
10063 acknowledgements
10064 \family default
10065  (2.9) – will have extra {} after it.
10066  This should not cause an error.
10067 \end_layout
10068
10069 \begin_layout Itemize
10070
10071 \family typewriter
10072
10073 \backslash
10074 appendix
10075 \family default
10076  (2.11) – 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 figcaption
10086 \family default
10087  (2.14.2) – you can insert an optional filename argument by placing the cursor
10088  at the beginning of the text and selecting 
10089 \family sans
10090 Insert\SpecialChar menuseparator
10091 Short Title
10092 \family default
10093 .
10094  
10095 \begin_inset Quotes eld
10096 \end_inset
10097
10098 Short Title
10099 \begin_inset Quotes erd
10100 \end_inset
10101
10102  inserts an optional argument of the type needed by 
10103 \family typewriter
10104
10105 \backslash
10106 figcaption
10107 \family default
10108 .
10109  Hopefully it will be renamed someday.
10110 \end_layout
10111
10112 \begin_layout Itemize
10113
10114 \family typewriter
10115
10116 \backslash
10117 objectname
10118 \family default
10119  (2.17.1) – same as 
10120 \family typewriter
10121
10122 \backslash
10123 figcaption
10124 \family default
10125  for the catalog ID optional parameter
10126 \end_layout
10127
10128 \begin_layout Itemize
10129
10130 \family typewriter
10131
10132 \backslash
10133 dataset
10134 \family default
10135  (2.17.1) – same as 
10136 \family typewriter
10137
10138 \backslash
10139 figcaption
10140 \family default
10141  for the catalog ID optional parameter
10142 \end_layout
10143
10144 \begin_layout Subsubsection
10145 Things not implemented, use \SpecialChar TeX
10146  code
10147 \end_layout
10148
10149 \begin_layout Standard
10150
10151 \change_deleted -712698321 1501152401
10152
10153 \family typewriter
10154
10155 \backslash
10156 altaffilmark
10157 \family default
10158  (2.3), 
10159 \family typewriter
10160
10161 \backslash
10162 altaffiltext
10163 \family default
10164  (2.3), 
10165 \change_unchanged
10166
10167 \family typewriter
10168
10169 \backslash
10170 eqnum
10171 \family default
10172  (2.12), 
10173 \family typewriter
10174
10175 \backslash
10176 setcounter{equation}
10177 \family default
10178  (2.12), Journal name abbreviations (2.13.4), 
10179 \family typewriter
10180
10181 \backslash
10182 figurenum
10183 \family default
10184  (2.14.1), 
10185 \family typewriter
10186
10187 \backslash
10188 epsscale
10189 \family default
10190  (2.14.1), 
10191 \family typewriter
10192
10193 \backslash
10194 plotone
10195 \family default
10196  (2.14.1), 
10197 \family typewriter
10198
10199 \backslash
10200 plottwo
10201 \family default
10202  (2.14.1), 
10203 \family typewriter
10204
10205 \backslash
10206 tablenum
10207 \family default
10208  (2.15.4), 
10209 \family typewriter
10210
10211 \backslash
10212 tableline
10213 \family default
10214  (2.15.4, insert it as the first element in the lefthand cell after where
10215  you want it.
10216  Don't use any of \SpecialChar LyX
10217 's rules in the table), 
10218 \family typewriter
10219
10220 \backslash
10221 tablenotemark
10222 \family default
10223  (2.15.5), 
10224 \family typewriter
10225
10226 \backslash
10227 tablenotetext
10228 \family default
10229  (2.15.5), much of Misc (2.17, except 
10230 \family typewriter
10231
10232 \backslash
10233 objectname
10234 \family default
10235
10236 \family typewriter
10237
10238 \backslash
10239 dataset
10240 \family default
10241
10242 \family typewriter
10243
10244 \backslash
10245 url
10246 \family default
10247 , and 
10248 \family typewriter
10249
10250 \backslash
10251 email
10252 \family default
10253 ; see above), 
10254 \family typewriter
10255
10256 \backslash
10257 singlespace
10258 \family default
10259  (3.1), 
10260 \family typewriter
10261
10262 \backslash
10263 doublespace
10264 \family default
10265  (3.1), 
10266 \family typewriter
10267
10268 \backslash
10269 onecolumn
10270 \family default
10271  (3.2), 
10272 \family typewriter
10273
10274 \backslash
10275 twocolumn
10276 \family default
10277  (3.2)
10278 \end_layout
10279
10280 \begin_layout Subsubsection
10281 Things that cannot be implemented
10282 \end_layout
10283
10284 \begin_layout Standard
10285 \SpecialChar ldots
10286  at least in any meaningful sort of way, so I suggest ignoring them.
10287  They are the references environment (2.13.3), and the deluxetable environment
10288  (2.15).
10289  If you really, really need to use deluxetable, I suggest editing it in
10290  a separate file with a text editor, then using 
10291 \family sans
10292 Insert\SpecialChar menuseparator
10293 Child
10294 \begin_inset space ~
10295 \end_inset
10296
10297 Document
10298 \family default
10299  to include it in your \SpecialChar LyX
10300  document.
10301  See the 
10302 \family typewriter
10303 aas_sample.lyx
10304 \family default
10305  file to see an example of this.
10306 \end_layout
10307
10308 \begin_layout Subsection
10309 FAQs, Tips, Tricks, and Other Ruminations
10310 \end_layout
10311
10312 \begin_layout Subsubsection
10313 Getting \SpecialChar LyX
10314  and AAS\SpecialChar TeX
10315  to cooperate
10316 \end_layout
10317
10318 \begin_layout Standard
10319 It can be a bit tricky to get \SpecialChar LyX
10320  to recognize a new layout and document class.
10321  When all else fails, do this:
10322 \end_layout
10323
10324 \begin_layout Enumerate
10325 Make certain that \SpecialChar LaTeX
10326  can find AAS\SpecialChar TeX
10327 .
10328  Copy sample.tex (and perhaps table.tex) from the AAS\SpecialChar TeX
10329  distribution into a
10330  directory completely unrelated to \SpecialChar LaTeX
10331  or AAS\SpecialChar TeX
10332  and run \SpecialChar LaTeX
10333  on 
10334 \family typewriter
10335 sample.tex
10336 \family default
10337 .
10338 \end_layout
10339
10340 \begin_layout Enumerate
10341 Make certain that 
10342 \family typewriter
10343 aastex.layout
10344 \family default
10345  appears in \SpecialChar LyX
10346 's 
10347 \family typewriter
10348 layouts
10349 \family default
10350  folder
10351 \end_layout
10352
10353 \begin_layout Enumerate
10354 Rerun 
10355 \family sans
10356 Tools\SpecialChar menuseparator
10357 Reconfigure
10358 \family default
10359  in \SpecialChar LyX
10360 , then restart \SpecialChar LyX
10361 .
10362 \end_layout
10363
10364 \begin_layout Enumerate
10365 Open a regular new file, not from a template.
10366  Does AAS\SpecialChar TeX
10367  appear in the class list in 
10368 \family sans
10369 Document\SpecialChar menuseparator
10370 Settings
10371 \family default
10372 ?
10373 \end_layout
10374
10375 \begin_layout Standard
10376 If you get a warning from an existing AAS\SpecialChar TeX
10377  document about not being able
10378  to find the AAS\SpecialChar TeX
10379  layout or a message about 
10380 \begin_inset Quotes eld
10381 \end_inset
10382
10383 You should not mix title layouts with normal ones
10384 \begin_inset Quotes erd
10385 \end_inset
10386
10387 , things haven't been installed correctly.
10388 \end_layout
10389
10390 \begin_layout Subsubsection
10391 \SpecialChar LaTeX
10392  error processing a table 
10393 \end_layout
10394
10395 \begin_layout Standard
10396 \SpecialChar LyX
10397 , by default, attempts to center the table caption/title.
10398  This seems to produce a bad interaction in AAS\SpecialChar TeX
10399  so you should click somewhere
10400  in the caption/title, then select 
10401 \family sans
10402 Edit\SpecialChar menuseparator
10403 Paragraph
10404 \begin_inset space ~
10405 \end_inset
10406
10407 Settings
10408 \family default
10409 , then set the 
10410 \family sans
10411 Alignment
10412 \family default
10413  to 
10414 \family sans
10415 Block
10416 \family default
10417 .
10418  This took care of it for me.
10419 \end_layout
10420
10421 \begin_layout Subsubsection
10422 References
10423 \end_layout
10424
10425 \begin_layout Standard
10426 A couple of things: 1) I have noticed some funny spacing in the reference
10427  entries in the text.
10428  When you enter the bibliography item data, make sure their is 
10429 \emph on
10430 no
10431 \emph default
10432  space between the last author and the parenthesis setting off the year;
10433  
10434 \emph on
10435 e.
10436 \begin_inset space \thinspace{}
10437 \end_inset
10438
10439 g.
10440 \begin_inset space \space{}
10441 \end_inset
10442
10443
10444 \emph default
10445 type 
10446 \family typewriter
10447 Ressler(1992)
10448 \family default
10449 , not 
10450 \family typewriter
10451 Ressler (1992)
10452 \family default
10453 .
10454  2) Entering the references at all is not obvious.
10455  The easiest thing is to start typing your first reference at the end of
10456  the document, then mark it as type 
10457 \family sans
10458 References
10459 \family default
10460 .
10461  That will put a small gray box in front of what you just typed.
10462  Click on the box to fill in the rest of the information.
10463  For new references, go to the end of an existing reference and press return.
10464  That will create a new line with its own box, etc.
10465 \end_layout
10466
10467 \begin_layout Subsubsection
10468 Including EPS files
10469 \end_layout
10470
10471 \begin_layout Standard
10472 Even though AAS\SpecialChar TeX
10473  provides its own figure commands (
10474 \family typewriter
10475
10476 \backslash
10477 plotone
10478 \family default
10479 , for example), I much prefer \SpecialChar LaTeX
10480 's standard figure commands (with the default
10481  graphicx).
10482  You can insert the 
10483 \family typewriter
10484
10485 \backslash
10486 plotone
10487 \family default
10488 , etc.
10489 \begin_inset space ~
10490 \end_inset
10491
10492 commands as \SpecialChar TeX
10493  code into a Figure Float box if you desire, but I never have
10494  much luck getting the layout right.
10495  With the standard graphics, \SpecialChar LyX
10496  will insert a 
10497 \family typewriter
10498
10499 \backslash
10500 usepackage{graphicx}
10501 \family default
10502  command into the \SpecialChar LaTeX
10503  preamble and handle the figures in the standard \SpecialChar LaTeX2e
10504  way,
10505  interspersing the figures in the text.
10506  I believe ApJ accepts figures exactly this way now; AJ might still use
10507  the 
10508 \begin_inset Quotes eld
10509 \end_inset
10510
10511 stack everything at the end
10512 \begin_inset Quotes erd
10513 \end_inset
10514
10515  technique.
10516 \end_layout
10517
10518 \begin_layout Subsubsection
10519 Things I could have done, but didn't
10520 \end_layout
10521
10522 \begin_layout Standard
10523 There are a few 
10524 \begin_inset Quotes eld
10525 \end_inset
10526
10527 pretty
10528 \begin_inset Quotes erd
10529 \end_inset
10530
10531  things I could have implemented, but chose not to.
10532  For instance, I saw no point in double-spacing the text in the \SpecialChar LyX
10533  window,
10534  even though it is double-spaced in the paper manuscript.
10535  Also, I chose not to make separate layouts for the preprint and preprint2
10536  styles.
10537  Since I assume you will spend most of your time in the plain manuscript
10538  mode anyway, I decided not to chew up more disk space with this.
10539  
10540 \end_layout
10541
10542 \begin_layout Subsection
10543 Final Caveat
10544 \end_layout
10545
10546 \begin_layout Standard
10547 Your mileage may vary.
10548  I've now had papers published by both ApJ and AJ that have had 98% of the
10549  effort done in \SpecialChar LyX
10550 ; the last 2% was the \SpecialChar LaTeX
10551  post-processing and a few cleanups.
10552  I have had no trouble with the submission process, and I'm sure the journals
10553  were never aware that there might be a difference.
10554  So, go forth and publish!
10555 \end_layout
10556
10557 \begin_layout Section
10558 AMS \SpecialChar LaTeX
10559
10560 \end_layout
10561
10562 \begin_layout Standard
10563 by 
10564 \noun on
10565 David Johnson
10566 \noun default
10567 ; updated by 
10568 \noun on
10569 Richard Heck
10570 \end_layout
10571
10572 \begin_layout Standard
10573 \begin_inset VSpace bigskip
10574 \end_inset
10575
10576
10577 \end_layout
10578
10579 \begin_layout Standard
10580 \noindent
10581 The AMS \SpecialChar LaTeX
10582  layouts are set up to conform to suggested styles for mathematical
10583  papers to be submitted to American Mathematical Society publications.
10584  The layouts are not tailored to a specific journal, but easily can be.
10585  You should refer to the AMS documentation for specific instructions for
10586  each journal (usually it will entail only changing a single line in the
10587  \SpecialChar TeX
10588  output).
10589  That documentation is available on the Web at 
10590 \begin_inset Flex URL
10591 status open
10592
10593 \begin_layout Plain Layout
10594
10595 http://www.ams.org
10596 \end_layout
10597
10598 \end_inset
10599
10600  or by ftp at 
10601 \begin_inset Flex URL
10602 status open
10603
10604 \begin_layout Plain Layout
10605
10606 ftp://ftp.ams.org/pub/tex/amslatex/
10607 \end_layout
10608
10609 \end_inset
10610
10611 .
10612  These layouts are appropriate, and useful, for any mathematical writing.
10613  
10614 \end_layout
10615
10616 \begin_layout Standard
10617 There are two basic AMS \SpecialChar LaTeX
10618  layouts: 
10619 \end_layout
10620
10621 \begin_layout Itemize
10622 amsart: The standard AMS article format.
10623 \end_layout
10624
10625 \begin_layout Itemize
10626 amsbook: the standard AMS book (really, monograph) format.
10627  
10628 \end_layout
10629
10630 \begin_layout Standard
10631 The layouts themselves contain only the minimum necessary to use the AMS
10632  classes.
10633  They do not, in particular, contain any of the `theorem' environments used
10634  for setting theorems, lemmas, and the like.
10635  These are contained, instead, in the 
10636 \begin_inset Flex Code
10637 status collapsed
10638
10639 \begin_layout Plain Layout
10640 Theorems (AMS)
10641 \end_layout
10642
10643 \end_inset
10644
10645  module, which is loaded by default when you select one of the AMS classes.
10646  (It can also be used with other classes and can be removed, if you would
10647  rather use something else.) Less commonly used environments are in the 
10648 \begin_inset Flex Code
10649 status collapsed
10650
10651 \begin_layout Plain Layout
10652 Theorems (AMS-Extended)
10653 \end_layout
10654
10655 \end_inset
10656
10657  module, which must be loaded manually.
10658 \end_layout
10659
10660 \begin_layout Standard
10661 By default, theorems and the like are numbered consecutively throughout
10662  the document, but this may be modified by loading the module 
10663 \begin_inset Flex Code
10664 status collapsed
10665
10666 \begin_layout Plain Layout
10667 Theorems (Order by Section)
10668 \end_layout
10669
10670 \end_inset
10671
10672  or, if you are using 
10673 \begin_inset Flex Code
10674 status collapsed
10675
10676 \begin_layout Plain Layout
10677 book (AMS)
10678 \end_layout
10679
10680 \end_inset
10681
10682 , the module 
10683 \begin_inset Flex Code
10684 status collapsed
10685
10686 \begin_layout Plain Layout
10687 Theorems (Order by Chapter)
10688 \end_layout
10689
10690 \end_inset
10691
10692 .
10693  These will number the results as 
10694 \begin_inset Formula $n.m$
10695 \end_inset
10696
10697 , where the first number refers to the section (or chapter) and the second
10698  refers to the total number of results so far in that section (or chapter).
10699  Many environments are also available unnumbered.
10700  These are indicated by an asterisk at the end.
10701  If you happen to want 
10702 \emph on
10703 only
10704 \emph default
10705  unnumbered results, the module 
10706 \begin_inset Flex Code
10707 status collapsed
10708
10709 \begin_layout Plain Layout
10710 Theorems (Starred)
10711 \end_layout
10712
10713 \end_inset
10714
10715  provides that option.
10716 \end_layout
10717
10718 \begin_layout Standard
10719 Note that these modules do not 
10720 \emph on
10721 have
10722 \emph default
10723  to be used with the AMS classes.
10724  It is perfectly possible to use the 
10725 \begin_inset Flex Code
10726 status collapsed
10727
10728 \begin_layout Plain Layout
10729 Theorems (AMS)
10730 \end_layout
10731
10732 \end_inset
10733
10734  module, and the others mentioned, with other classes, such as 
10735 \begin_inset Flex Code
10736 status collapsed
10737
10738 \begin_layout Plain Layout
10739 article
10740 \end_layout
10741
10742 \end_inset
10743
10744
10745 \begin_inset Flex Code
10746 status collapsed
10747
10748 \begin_layout Plain Layout
10749 report
10750 \end_layout
10751
10752 \end_inset
10753
10754
10755 \begin_inset Flex Code
10756 status collapsed
10757
10758 \begin_layout Plain Layout
10759 book (KOMA-script)
10760 \end_layout
10761
10762 \end_inset
10763
10764 , and so forth.
10765 \end_layout
10766
10767 \begin_layout Subsection
10768 What these layouts provide
10769 \end_layout
10770
10771 \begin_layout Standard
10772 There is a long list of included environments provided by these layouts.
10773  In AMS-\SpecialChar LaTeX
10774 , there is, in fact, an opportunity to define an unlimited variety
10775  of `theorem' environments.
10776  However, the AMS recommends the environments that are available in \SpecialChar LyX
10777 .
10778  
10779 \end_layout
10780
10781 \begin_layout Standard
10782 The following environments—as well as the standard environments, such as
10783  
10784 \begin_inset Flex Noun
10785 status collapsed
10786
10787 \begin_layout Plain Layout
10788 section
10789 \end_layout
10790
10791 \end_inset
10792
10793
10794 \begin_inset Flex Noun
10795 status collapsed
10796
10797 \begin_layout Plain Layout
10798 bibliography
10799 \end_layout
10800
10801 \end_inset
10802
10803
10804 \begin_inset Flex Noun
10805 status collapsed
10806
10807 \begin_layout Plain Layout
10808 title
10809 \end_layout
10810
10811 \end_inset
10812
10813
10814 \begin_inset Flex Noun
10815 status collapsed
10816
10817 \begin_layout Plain Layout
10818 author
10819 \end_layout
10820
10821 \end_inset
10822
10823 , and 
10824 \begin_inset Flex Noun
10825 status collapsed
10826
10827 \begin_layout Plain Layout
10828 date
10829 \end_layout
10830
10831 \end_inset
10832
10833 —are provided by 
10834 \begin_inset Flex Code
10835 status collapsed
10836
10837 \begin_layout Plain Layout
10838 article (AMS)
10839 \end_layout
10840
10841 \end_inset
10842
10843  and 
10844 \begin_inset Flex Code
10845 status collapsed
10846
10847 \begin_layout Plain Layout
10848 book (AMS)
10849 \end_layout
10850
10851 \end_inset
10852
10853 :
10854 \end_layout
10855
10856 \begin_layout Description
10857 Address This should be the author's permanent address.
10858 \end_layout
10859
10860 \begin_layout Description
10861 Current
10862 \begin_inset space ~
10863 \end_inset
10864
10865 Address This should be the author's temporary address at the time of submission,
10866  if different from the Address.
10867 \end_layout
10868
10869 \begin_layout Description
10870 Email Author's e-mail address
10871 \end_layout
10872
10873 \begin_layout Description
10874 URL Author's Web address, if desired.
10875 \end_layout
10876
10877 \begin_layout Description
10878 Keywords Key words or phrases used to identify specific topics discussed
10879  in the paper.
10880 \end_layout
10881
10882 \begin_layout Description
10883 Subjectclass These refer to the AMS Subject Classifications, published and
10884  described in 
10885 \emph on
10886 Mathematical Reviews
10887 \emph default
10888 .
10889  These are also available online at the AMS cites listed above.
10890 \end_layout
10891
10892 \begin_layout Description
10893 Thanks
10894 \end_layout
10895
10896 \begin_layout Description
10897 Dedicatory
10898 \end_layout
10899
10900 \begin_layout Description
10901 Translator
10902 \end_layout
10903
10904 \begin_layout Standard
10905 The following environments are provided by both the 
10906 \begin_inset Flex Code
10907 status collapsed
10908
10909 \begin_layout Plain Layout
10910 Theorems
10911 \end_layout
10912
10913 \end_inset
10914
10915  and 
10916 \begin_inset Flex Code
10917 status collapsed
10918
10919 \begin_layout Plain Layout
10920 Theorems (AMS)
10921 \end_layout
10922
10923 \end_inset
10924
10925  modules, in the latter case in both starred (unnumbered) and unstarred
10926  (numbered) versions.
10927  These same environments are provided only in the starred versions by the
10928  
10929 \begin_inset Flex Code
10930 status collapsed
10931
10932 \begin_layout Plain Layout
10933 Theorems (Starred)
10934 \end_layout
10935
10936 \end_inset
10937
10938  module:
10939 \end_layout
10940
10941 \begin_layout Theorem
10942 This is typically used for the statements of major results.
10943  
10944 \end_layout
10945
10946 \begin_layout Corollary*
10947 This is used for statements which follow fairly directly from previous statement
10948 s.
10949  Again, these can be major results.
10950  
10951 \end_layout
10952
10953 \begin_layout Lemma
10954 These are smaller results needed to prove other statements.
10955 \end_layout
10956
10957 \begin_layout Proposition
10958 These are less major results which (hopefully) add to the general theory
10959  being discussed.
10960 \end_layout
10961
10962 \begin_layout Conjecture
10963 These are statements provided without justification, which the author does
10964  not know how to prove, but which seem to be true (to the author, at least).
10965 \end_layout
10966
10967 \begin_layout Definition*
10968 Guess what this is for.
10969  The font is different for this environment than for the previous ones.
10970  
10971 \end_layout
10972
10973 \begin_layout Example*
10974 Used for examples illustrating proven results.
10975 \end_layout
10976
10977 \begin_layout Problem
10978 It's not really known what this is for.
10979  You should figure it out.
10980 \end_layout
10981
10982 \begin_layout Exercise*
10983 Write a description for this one.
10984 \end_layout
10985
10986 \begin_layout Remark
10987 This environment is also a type of theorem, usually a lesser sort of observation.
10988 \end_layout
10989
10990 \begin_layout Claim*
10991 Often used in the course of giving a proof of a larger result.
10992 \end_layout
10993
10994 \begin_layout Case
10995 Generally, these are used to break up long arguments, using specific instances
10996  of some condition.
10997  
10998 \end_layout
10999
11000 \begin_layout Case
11001 The numbering scheme for cases is on its own, not together with other numbered
11002  statements.
11003  
11004 \end_layout
11005
11006 \begin_layout Proof
11007 At the end of this environment, a QED symbol (usually a square, but it can
11008  vary with different styles) is placed.
11009  If you want to have other environments within this one—for example, Case
11010  environments—and have the QED symbol appear only after them, then the other
11011  environments need to be nested within the proof environment.
11012  See the section 
11013 \emph on
11014 Nesting Environments
11015 \emph default
11016  of the 
11017 \emph on
11018 User's Guide
11019 \emph default
11020  for information on nesting.
11021 \end_layout
11022
11023 \begin_layout Standard
11024 And these environments are provided by 
11025 \begin_inset Flex Code
11026 status collapsed
11027
11028 \begin_layout Plain Layout
11029 Theorems (AMS-Extended)
11030 \end_layout
11031
11032 \end_inset
11033
11034 :
11035 \end_layout
11036
11037 \begin_layout Criterion*
11038 A required condition.
11039 \end_layout
11040
11041 \begin_layout Algorithm*
11042 A general procedure to be used.
11043 \end_layout
11044
11045 \begin_layout Axiom*
11046 This is a property or statement taken as true within the system being discussed.
11047 \end_layout
11048
11049 \begin_layout Condition*
11050 Sometimes used to state a condition assumed within the present context of
11051  discussion.
11052 \end_layout
11053
11054 \begin_layout Note*
11055 Similar to a Remark.
11056 \end_layout
11057
11058 \begin_layout Notation*
11059 Used for the explanation of, yes, notation.
11060 \end_layout
11061
11062 \begin_layout Summary
11063 Do we really need to tell you? 
11064 \end_layout
11065
11066 \begin_layout Acknowledgement*
11067 Acknowledgement.
11068 \end_layout
11069
11070 \begin_layout Conclusion*
11071 Sometimes used at the end of a long train of argument.
11072 \end_layout
11073
11074 \begin_layout Fact
11075 Used in a way similar to Proposition, though perhaps lower on the scale.
11076 \end_layout
11077
11078 \begin_layout Standard
11079 In addition, the AMS classes automatically provide the AMS \SpecialChar LaTeX
11080  and AMS fonts
11081  packages.
11082  They need to be available on your system in order to use these environments.
11083 \end_layout
11084
11085 \begin_layout Section
11086 AGU journals (
11087 \family sans
11088 aguplus
11089 \family default
11090 )
11091 \end_layout
11092
11093 \begin_layout Standard
11094 by 
11095 \shape smallcaps
11096 Martin Vermeer
11097 \end_layout
11098
11099 \begin_layout Subsection
11100 Description
11101 \end_layout
11102
11103 \begin_layout Standard
11104 These are the layout files for some of the journals of the American Geophysical
11105  Society.
11106  It is assumed that you have both the AGU's own class files and AGUplus
11107  installed (everything to be found at
11108 \begin_inset Flex URL
11109 status collapsed
11110
11111 \begin_layout Plain Layout
11112
11113 http://publications.agu.org/files/2013/08/AGU-LaTeX.zip
11114 \end_layout
11115
11116 \end_inset
11117
11118 ).
11119 \end_layout
11120
11121 \begin_layout Subsection
11122 New styles
11123 \end_layout
11124
11125 \begin_layout Standard
11126 Redefined are 
11127 \family sans
11128 Paragraph
11129 \family default
11130
11131 \family sans
11132 Paragraph*
11133 \family default
11134 .
11135  They are still called this in the \SpecialChar LyX
11136  GUI, though their \SpecialChar LaTeX
11137  equivalents in the
11138  AGU classes are 
11139 \family sans
11140 Subsubsubsection
11141 \family default
11142  and 
11143 \family sans
11144 Subsubsubsection*
11145 \family default
11146 .
11147 \end_layout
11148
11149 \begin_layout Standard
11150 Newly defined styles are 
11151 \family sans
11152 Left_Header
11153 \family default
11154
11155 \family sans
11156 Right_Header
11157 \family default
11158
11159 \family sans
11160 Received
11161 \family default
11162
11163 \family sans
11164 Revised
11165 \family default
11166
11167 \family sans
11168 Accepted
11169 \family default
11170
11171 \family sans
11172 CCC
11173 \family default
11174
11175 \family sans
11176 PaperId
11177 \family default
11178
11179 \family sans
11180 AuthorAddr
11181 \family default
11182
11183 \family sans
11184 SlugComment
11185 \family default
11186 .
11187  These are mostly manuscript attributes and defined in the AGU class documentati
11188 on.
11189 \end_layout
11190
11191 \begin_layout Standard
11192 I suspect this is still badly incomplete.
11193 \end_layout
11194
11195 \begin_layout Subsection
11196 New floats
11197 \end_layout
11198
11199 \begin_layout Standard
11200
11201 \family sans
11202 Planotable
11203 \family default
11204  and 
11205 \family sans
11206 Plate
11207 \family default
11208 .
11209  We also have a new 
11210 \family sans
11211 Table_Caption
11212 \family default
11213 .
11214 \end_layout
11215
11216 \begin_layout Subsection
11217 Supported journals
11218 \end_layout
11219
11220 \begin_layout Itemize
11221
11222 \emph on
11223 Journal of Geophysical Research
11224 \emph default
11225
11226 \family typewriter
11227 jgrga.layout
11228 \family default
11229  — Martin Vermeer
11230 \end_layout
11231
11232 \begin_layout Standard
11233 Add your own, it isn't so hard! Look at the 
11234 \family typewriter
11235 jgrga.layout
11236 \family default
11237  example and 
11238 \family typewriter
11239 aguplus.inc
11240 \family default
11241 .
11242 \end_layout
11243
11244 \begin_layout Subsection
11245 Bugs and things to remember
11246 \end_layout
11247
11248 \begin_layout Standard
11249 In order to use the new layouts, you must remember to do the following for
11250  a new document:
11251 \end_layout
11252
11253 \begin_layout Enumerate
11254
11255 \emph on
11256 Turn off babel
11257 \emph default
11258 .
11259  This can be done in the 
11260 \family sans
11261 Layout\SpecialChar menuseparator
11262 Document
11263 \family default
11264  or 
11265 \family sans
11266 Document\SpecialChar menuseparator
11267 Settings
11268 \family default
11269  menu item.
11270  (AGU articles are always in English, right? So 
11271 \emph on
11272 don't
11273 \emph default
11274  choose a language.)
11275 \end_layout
11276
11277 \begin_layout Enumerate
11278 Enter 
11279 \family typewriter
11280 jgrga
11281 \family default
11282  into the document's 
11283 \family sans
11284 Extra Options
11285 \family default
11286  field.
11287  (Yes, this is a bug.)
11288 \end_layout
11289
11290 \begin_layout Enumerate
11291 Make sure you use the 
11292 \family typewriter
11293 agu.bst
11294 \family default
11295  bibliography style, by entering 
11296 \family sans
11297 agu
11298 \family default
11299  into the second field of the Bib\SpecialChar TeX
11300  inset.
11301  None of the standard styles will do.
11302 \end_layout
11303
11304 \begin_layout Section
11305 Broadway
11306 \end_layout
11307
11308 \begin_layout Standard
11309 by 
11310 \shape smallcaps
11311 Garst Reese
11312 \end_layout
11313
11314 \begin_layout Subsection
11315 Introduction
11316 \end_layout
11317
11318 \begin_layout Standard
11319 Broadway is for writing plays.
11320  The format is more decorative than Hollywood, and much less standardized.
11321  This format should be suitable for workshops.
11322 \end_layout
11323
11324 \begin_layout Subsection
11325 Special problems
11326 \end_layout
11327
11328 \begin_layout Standard
11329 The same as in Hollywood.
11330 \end_layout
11331
11332 \begin_layout Subsection
11333 Special features
11334 \end_layout
11335
11336 \begin_layout Standard
11337 Insert the 
11338 \family sans
11339 Speaker
11340 \family default
11341  names as labels then cross-reference the label to insert the name.
11342  The cross-reference dialog will show the current cast of characters.
11343 \end_layout
11344
11345 \begin_layout Subsection
11346 Paper size and Margins
11347 \end_layout
11348
11349 \begin_layout Standard
11350 USLetter, left 1.6in, right 0.75in, top 0.5in, bottom 0.75in
11351 \end_layout
11352
11353 \begin_layout Subsection
11354 Environments
11355 \end_layout
11356
11357 \begin_layout Standard
11358 The following environments are available.
11359  You can use broadway.bind to get the bind keys shown at the right.
11360 \end_layout
11361
11362 \begin_layout Itemize
11363
11364 \family sans
11365 Standard
11366 \begin_inset Newline newline
11367 \end_inset
11368
11369
11370 \family default
11371 You should not have to use this, but it is here for anything that does not
11372  fit otherwise.
11373 \end_layout
11374
11375 \begin_layout Itemize
11376
11377 \family sans
11378 Narrative
11379 \begin_inset space \hfill{}
11380 \end_inset
11381
11382 M-z n
11383 \begin_inset Newline newline
11384 \end_inset
11385
11386
11387 \family default
11388 Used to describe stage setting and the action.
11389  First use of speaker names in all CAPs.
11390 \end_layout
11391
11392 \begin_layout Itemize
11393
11394 \family sans
11395 ACT
11396 \begin_inset space \hfill{}
11397 \end_inset
11398
11399 M-z a
11400 \begin_inset Newline newline
11401 \end_inset
11402
11403
11404 \family default
11405 Automatically numbered.
11406  On screen it will be arabic, but will print as Roman.
11407 \end_layout
11408
11409 \begin_layout Itemize
11410
11411 \family sans
11412 ACT*
11413 \begin_inset space \hfill{}
11414 \end_inset
11415
11416 M-z S at
11417 \begin_inset Newline newline
11418 \end_inset
11419
11420
11421 \family default
11422 Subtitle for 
11423 \family sans
11424 ACT.
11425
11426 \family default
11427  It is just centered text.
11428 \end_layout
11429
11430 \begin_layout Itemize
11431
11432 \family sans
11433 SCENE
11434 \begin_inset space \hfill{}
11435 \end_inset
11436
11437 M-z S-S
11438 \begin_inset Newline newline
11439 \end_inset
11440
11441
11442 \family default
11443 Not automatically numbered.
11444  You supply the number.
11445  This is because I couldn't figure out how.
11446 \end_layout
11447
11448 \begin_layout Itemize
11449
11450 \family sans
11451 AT_RISE:
11452 \begin_inset space \hfill{}
11453 \end_inset
11454
11455 M-z S-R
11456 \begin_inset Newline newline
11457 \end_inset
11458
11459
11460 \family default
11461 A special case of Narrative to describe the setting and action as the curtain
11462  rises.
11463 \end_layout
11464
11465 \begin_layout Itemize
11466
11467 \family sans
11468 Speaker
11469 \begin_inset space \hfill{}
11470 \end_inset
11471
11472 M-z s
11473 \begin_inset Newline newline
11474 \end_inset
11475
11476
11477 \family default
11478 The speaker's (actor's) title, centered in all CAPS.
11479 \end_layout
11480
11481 \begin_layout Itemize
11482
11483 \family sans
11484 Parenthetical
11485 \begin_inset space \hfill{}
11486 \end_inset
11487
11488 M-z p
11489 \begin_inset Newline newline
11490 \end_inset
11491
11492
11493 \family default
11494 Instructions to the speaker.
11495  The parentheses are automatically inserted.
11496  The ( will appear on screen, but both will be in the printed play.
11497  This environment is only used within 
11498 \family sans
11499 Dialogue
11500 \family default
11501 .
11502 \end_layout
11503
11504 \begin_layout Itemize
11505
11506 \family sans
11507 Dialogue
11508 \begin_inset space \hfill{}
11509 \end_inset
11510
11511 M-z d
11512 \begin_inset Newline newline
11513 \end_inset
11514
11515
11516 \family default
11517 What the Speaker says.
11518 \end_layout
11519
11520 \begin_layout Itemize
11521
11522 \family sans
11523 CURTAIN
11524 \begin_inset space \hfill{}
11525 \end_inset
11526
11527 M-z S-C
11528 \begin_inset Newline newline
11529 \end_inset
11530
11531
11532 \family default
11533 The curtain comes down.
11534 \end_layout
11535
11536 \begin_layout Itemize
11537
11538 \family sans
11539 Title
11540 \begin_inset space \hfill{}
11541 \end_inset
11542
11543 M-z S-T
11544 \end_layout
11545
11546 \begin_layout Itemize
11547
11548 \family sans
11549 Author
11550 \begin_inset space \hfill{}
11551 \end_inset
11552
11553 M-z S-A
11554 \end_layout
11555
11556 \begin_layout Itemize
11557
11558 \family sans
11559 Right_Address
11560 \begin_inset space \hfill{}
11561 \end_inset
11562
11563 M-z r
11564 \end_layout
11565
11566 \begin_layout Standard
11567 Hello there.
11568 \end_layout
11569
11570 \begin_layout Section
11571 Dinbrief
11572 \end_layout
11573
11574 \begin_layout Standard
11575 The document class 
11576 \family sans
11577 dinbrief
11578 \family default
11579  can be used to type letters according to German conventions.
11580  A template file is included in 
11581 \family typewriter
11582 .../lyx/share/templates
11583 \family default
11584  for you to use as a starting point.
11585 \end_layout
11586
11587 \begin_layout Section
11588 EGS journals (
11589 \family sans
11590 egs
11591 \family default
11592 )
11593 \end_layout
11594
11595 \begin_layout Standard
11596 by 
11597 \shape smallcaps
11598 Martin Vermeer
11599 \end_layout
11600
11601 \begin_layout Subsection
11602 Description
11603 \end_layout
11604
11605 \begin_layout Standard
11606 This is the layout file for the European Geophysical Society journals.
11607  The needed 
11608 \family typewriter
11609 egs.cls
11610 \family default
11611  can be downloaded from the web site of the EGS under 
11612 \begin_inset Flex URL
11613 status collapsed
11614
11615 \begin_layout Plain Layout
11616
11617 www.copernicus.org
11618 \end_layout
11619
11620 \end_inset
11621
11622 .
11623 \end_layout
11624
11625 \begin_layout Subsection
11626 New styles
11627 \end_layout
11628
11629 \begin_layout Standard
11630
11631 \family sans
11632 Right_address, Latex_Title, Affil, Journal, msnumber, FirstAuthor, Received,
11633  Accepted
11634 \family default
11635
11636 \family sans
11637 Offsets
11638 \family default
11639 .
11640  The current layout file is unfortunately very unmodular and would benefit
11641  from using the various 
11642 \family typewriter
11643 std*.inc
11644 \family default
11645  file inclusions.
11646 \end_layout
11647
11648 \begin_layout Section
11649 Elsevier Journals
11650 \end_layout
11651
11652 \begin_layout Standard
11653 See the \SpecialChar LyX
11654  template file 
11655 \family typewriter
11656 elsarticle.lyx
11657 \family default
11658 .
11659  It contains all infos you need.
11660 \end_layout
11661
11662 \begin_layout Section
11663 Foils [aka 
11664 \family sans
11665 Foil\SpecialChar TeX
11666
11667 \family default
11668 ]
11669 \begin_inset CommandInset label
11670 LatexCommand label
11671 name "sec:foiltex"
11672
11673 \end_inset
11674
11675
11676 \end_layout
11677
11678 \begin_layout Standard
11679 by 
11680 \noun on
11681 Allan Rae
11682 \end_layout
11683
11684 \begin_layout Subsection
11685 Introduction
11686 \end_layout
11687
11688 \begin_layout Standard
11689 This section describes how to use \SpecialChar LyX
11690  to make slides for overhead projectors.
11691  There are two document classes that can do this: the default slides class
11692  and the 
11693 \family sans
11694 Foil\SpecialChar TeX
11695
11696 \family default
11697  slides class.
11698  This section documents the latter.
11699 \end_layout
11700
11701 \begin_layout Standard
11702 I'm going to say this again, nice and clear, so that there's no misunderstanding
11703 :
11704 \end_layout
11705
11706 \begin_layout Standard
11707 \begin_inset VSpace bigskip
11708 \end_inset
11709
11710
11711 \end_layout
11712
11713 \begin_layout Standard
11714 \align center
11715
11716 \size large
11717 This section documents the class 
11718 \begin_inset Quotes eld
11719 \end_inset
11720
11721
11722 \family sans
11723 FoilTeX
11724 \family default
11725
11726 \begin_inset Quotes erd
11727 \end_inset
11728
11729  
11730 \emph on
11731 only.
11732 \end_layout
11733
11734 \begin_layout Standard
11735 \begin_inset VSpace bigskip
11736 \end_inset
11737
11738
11739 \end_layout
11740
11741 \begin_layout Standard
11742 If you're looking for the documentation for 
11743 \begin_inset Quotes eld
11744 \end_inset
11745
11746
11747 \family sans
11748 slides (default)
11749 \family default
11750
11751 \begin_inset Quotes erd
11752 \end_inset
11753
11754 , check out section
11755 \begin_inset space ~
11756 \end_inset
11757
11758
11759 \begin_inset CommandInset ref
11760 LatexCommand ref
11761 reference "sec:slitex"
11762
11763 \end_inset
11764
11765 .
11766  If your machine doesn't have the 
11767 \family sans
11768 foils
11769 \family default
11770  class 
11771 \family sans
11772 FoilTeX
11773 \family default
11774  installed, you'll probably have to use the default 
11775 \family sans
11776 slides
11777 \family default
11778  class, which isn't quite as good as 
11779 \family sans
11780 foils.
11781 \end_layout
11782
11783 \begin_layout Standard
11784 The 
11785 \family sans
11786 foils
11787 \family default
11788  class is designed for use with version
11789 \begin_inset space ~
11790 \end_inset
11791
11792 2.1 of the 
11793 \family sans
11794 foils.cls
11795 \family default
11796  \SpecialChar LaTeX
11797  class file which is now an integral part of \SpecialChar LaTeX2e
11798 .
11799 \end_layout
11800
11801 \begin_layout Subsection
11802 Getting Started
11803 \end_layout
11804
11805 \begin_layout Standard
11806 Obviously, to use this document class, you need to select 
11807 \family sans
11808 FoilTeX
11809 \family default
11810  from the 
11811 \family sans
11812 Class
11813 \family default
11814  entry in the 
11815 \family sans
11816 Document
11817 \begin_inset space ~
11818 \end_inset
11819
11820 Layout
11821 \family default
11822  dialog.
11823  There are some settings in the 
11824 \family sans
11825 Document
11826 \begin_inset space ~
11827 \end_inset
11828
11829 Layout
11830 \family default
11831  dialog that you should know about that are specific to this class:
11832 \end_layout
11833
11834 \begin_layout Itemize
11835 Don't change the options 
11836 \family sans
11837 Sides
11838 \family default
11839  and 
11840 \family sans
11841 Columns
11842 \family default
11843  on the 
11844 \family sans
11845 Document
11846 \begin_inset space ~
11847 \end_inset
11848
11849 Layout
11850 \family default
11851  dialog.
11852  They're ignored by the 
11853 \family sans
11854 foils
11855 \family default
11856  class.
11857 \end_layout
11858
11859 \begin_layout Itemize
11860 The default font size is 20
11861 \begin_inset space \thinspace{}
11862 \end_inset
11863
11864 pt with the other options being 17
11865 \begin_inset space \thinspace{}
11866 \end_inset
11867
11868 pt, 25
11869 \begin_inset space \thinspace{}
11870 \end_inset
11871
11872 pt and 30
11873 \begin_inset space \thinspace{}
11874 \end_inset
11875
11876 pt.
11877 \end_layout
11878
11879 \begin_layout Itemize
11880 The default font is 
11881 \family sans
11882 sans
11883 \family default
11884  
11885 \family sans
11886 serif
11887 \family default
11888  but all math equations are still typeset in the usual roman font.
11889 \end_layout
11890
11891 \begin_layout Itemize
11892
11893 \family sans
11894 Foil\SpecialChar TeX
11895
11896 \family default
11897  supports A4 and Letter paper sizes as well as a special size for working
11898  with 35
11899 \begin_inset space \thinspace{}
11900 \end_inset
11901
11902 mm slides.
11903  It doesn't support A5, B5, legal or executive paper sizes.
11904 \end_layout
11905
11906 \begin_layout Itemize
11907 Don't bother changing the 
11908 \family sans
11909 Float Placement
11910 \family default
11911  settings because they are ignored anyway.
11912  All floats appear where they are defined in the text.
11913 \end_layout
11914
11915 \begin_layout Itemize
11916 The 
11917 \family sans
11918 Pagestyle
11919 \family default
11920  setting behaves a bit differently for this class.
11921  
11922 \family sans
11923 Foil\SpecialChar TeX
11924
11925 \family default
11926  provides extensive footer and header capabilities including a user-defined
11927  logo.
11928  See section
11929 \begin_inset space ~
11930 \end_inset
11931
11932
11933 \begin_inset CommandInset ref
11934 LatexCommand ref
11935 reference "sec:foilfoot"
11936
11937 \end_inset
11938
11939  for more details.
11940  The title page is treated differently to all other pages in the document
11941  and is 
11942 \emph on
11943 always
11944 \emph default
11945  unnumbered and 
11946 \emph on
11947 always
11948 \emph default
11949  has the logo centered at the bottom of the page (if one is defined).
11950  The possible page style choices and what they do are as follows:
11951 \end_layout
11952
11953 \begin_deeper
11954 \begin_layout Labeling
11955 \labelwidthstring MMMMMMM
11956
11957 \family sans
11958 \series bold
11959 empty
11960 \family default
11961 \series default
11962  The final output contains no page numbers, or other headers or footers
11963  (except footnotes of course).
11964  
11965 \end_layout
11966
11967 \begin_layout Labeling
11968 \labelwidthstring MMMMMMM
11969
11970 \family sans
11971 \series bold
11972 plain
11973 \family default
11974 \series default
11975  The final output contains page numbers centered at the bottom of the page.
11976  No other headings or footers (other than footnotes).
11977 \end_layout
11978
11979 \begin_layout Labeling
11980 \labelwidthstring MMMMMMM
11981
11982 \series bold
11983 foilheadings
11984 \series default
11985  Page numbers in lower right corner.
11986  Additional headers and footers are also shown.
11987  This is also the default.
11988 \end_layout
11989
11990 \begin_layout Labeling
11991 \labelwidthstring MMMMMMM
11992
11993 \series bold
11994 fancy
11995 \series default
11996  Gives you access to the 
11997 \family sans
11998 fancyheadings
11999 \family default
12000  package although its use with 
12001 \family sans
12002 Foil\SpecialChar TeX
12003
12004 \family default
12005  is discouraged by the writer of the 
12006 \family sans
12007 Foil\SpecialChar TeX
12008
12009 \family default
12010  package because of some potential page layout clashes.
12011 \end_layout
12012
12013 \end_deeper
12014 \begin_layout Subsubsection
12015 Extra Options
12016 \end_layout
12017
12018 \begin_layout Standard
12019 The following options may be used in the extra class options in the 
12020 \family sans
12021 Document\SpecialChar menuseparator
12022 Settings
12023 \family default
12024  dialog.
12025 \end_layout
12026
12027 \begin_layout Labeling
12028 \labelwidthstring MMMMMMx
12029
12030 \series bold
12031 35mmSlide
12032 \series default
12033  This sets up the page layout for 7.33
12034 \begin_inset space \thinspace{}
12035 \end_inset
12036
12037 in by 11
12038 \begin_inset space \thinspace{}
12039 \end_inset
12040
12041 in paper, which is about the same aspect ratio as a 35
12042 \begin_inset space \thinspace{}
12043 \end_inset
12044
12045 mm slide, making it a bit easier to work with this medium.
12046 \end_layout
12047
12048 \begin_layout Labeling
12049 \labelwidthstring MMMMMMx
12050
12051 \series bold
12052 headrule
12053 \series default
12054  Places a rule across the page below the header on every page except the
12055  title page.
12056 \end_layout
12057
12058 \begin_layout Labeling
12059 \labelwidthstring MMMMMMx
12060
12061 \series bold
12062 footrule
12063 \series default
12064  Places a rule across the page above the footer on every page except the
12065  title page.
12066 \end_layout
12067
12068 \begin_layout Labeling
12069 \labelwidthstring MMMMMMx
12070
12071 \series bold
12072 dvips
12073 \series default
12074  This is automatically set each time you create a new 
12075 \family sans
12076 foils
12077 \family default
12078  document.
12079  This option tells 
12080 \family sans
12081 Foil\SpecialChar TeX
12082
12083 \family default
12084  to use the dvips driver to rotate those pages that are set as landscape
12085  foils.
12086 \end_layout
12087
12088 \begin_layout Labeling
12089 \labelwidthstring MMMMMMx
12090
12091 \series bold
12092 landscape
12093 \series default
12094  Simply changes the page dimensions to those of a landscape page but doesn't
12095  do any rotation.
12096  Thus if you use this option you need to use an external program to rotate
12097  each page or feed your paper through your printer as landscape.
12098  Note that this option effectively reverses the roles of the 
12099 \family sans
12100 Foilhead
12101 \family default
12102  and 
12103 \family sans
12104 Rotatefoilhead
12105 \family default
12106  environments (don't worry these are described in the next section).
12107 \end_layout
12108
12109 \begin_layout Labeling
12110 \labelwidthstring MMMMMMx
12111
12112 \series bold
12113 leqno
12114 \series default
12115  Equation numbers on the left.
12116 \end_layout
12117
12118 \begin_layout Labeling
12119 \labelwidthstring MMMMMMx
12120
12121 \series bold
12122 fleqn
12123 \series default
12124  Flush-left equations.
12125 \end_layout
12126
12127 \begin_layout Subsection
12128 Supported Environments
12129 \end_layout
12130
12131 \begin_layout Standard
12132 Most of the environments commonly supported in other classes are also supported
12133  by the 
12134 \family sans
12135 foils
12136 \family default
12137  class.
12138  There are several additional environments provided by 
12139 \family sans
12140 Foil\SpecialChar TeX
12141
12142 \family default
12143  as well as a couple added by \SpecialChar LyX
12144 .
12145  The following environments are shared with other classes:
12146 \end_layout
12147
12148 \begin_layout Standard
12149 \begin_inset Flex Multiple Columns
12150 status open
12151
12152 \begin_layout Itemize
12153
12154 \family sans
12155 Standard
12156 \end_layout
12157
12158 \begin_layout Itemize
12159
12160 \family sans
12161 Itemize
12162 \end_layout
12163
12164 \begin_layout Itemize
12165
12166 \family sans
12167 Enumerate
12168 \end_layout
12169
12170 \begin_layout Itemize
12171
12172 \family sans
12173 Description
12174 \end_layout
12175
12176 \begin_layout Itemize
12177
12178 \family sans
12179 List
12180 \end_layout
12181
12182 \begin_layout Itemize
12183
12184 \family sans
12185 \SpecialChar LyX
12186 -Code
12187 \end_layout
12188
12189 \begin_layout Itemize
12190
12191 \family sans
12192 Verse
12193 \end_layout
12194
12195 \begin_layout Itemize
12196
12197 \family sans
12198 Quote
12199 \end_layout
12200
12201 \begin_layout Itemize
12202
12203 \family sans
12204 Quotation
12205 \end_layout
12206
12207 \begin_layout Itemize
12208
12209 \family sans
12210 Title
12211 \change_deleted -712698321 1501158884
12212
12213 \end_layout
12214
12215 \begin_layout Itemize
12216
12217 \family sans
12218 Author
12219 \end_layout
12220
12221 \begin_layout Itemize
12222
12223 \family sans
12224 Date
12225 \end_layout
12226
12227 \begin_layout Itemize
12228
12229 \family sans
12230 Abstract
12231 \end_layout
12232
12233 \begin_layout Itemize
12234
12235 \family sans
12236 Bibliography
12237 \end_layout
12238
12239 \begin_layout Itemize
12240
12241 \family sans
12242 Address
12243 \end_layout
12244
12245 \begin_layout Itemize
12246
12247 \family sans
12248 RightAddress
12249 \end_layout
12250
12251 \begin_layout Itemize
12252
12253 \change_deleted -712698321 1501158888
12254
12255 \family sans
12256 Caption
12257 \change_unchanged
12258
12259 \end_layout
12260
12261 \begin_layout Itemize
12262
12263 \change_deleted -712698321 1501158891
12264
12265 \family sans
12266 Comment
12267 \change_unchanged
12268
12269 \end_layout
12270
12271 \end_inset
12272
12273
12274 \end_layout
12275
12276 \begin_layout Standard
12277 That is, all the major environments apart from the sectioning environments.
12278  Since foils are essentially self-contained sections, with a title and body,
12279  
12280 \family sans
12281 Foil\SpecialChar TeX
12282
12283 \family default
12284  provides specific commands for starting new foils and these are:
12285 \end_layout
12286
12287 \begin_layout Itemize
12288
12289 \family sans
12290 Foilhead
12291 \end_layout
12292
12293 \begin_layout Itemize
12294
12295 \family sans
12296 Rotatefoilhead
12297 \end_layout
12298
12299 \begin_layout Standard
12300 \SpecialChar LyX
12301  also provides slightly modified versions of these two environments called:
12302 \end_layout
12303
12304 \begin_layout Itemize
12305
12306 \family sans
12307 ShortFoilhead
12308 \end_layout
12309
12310 \begin_layout Itemize
12311
12312 \family sans
12313 ShortRotatefoilhead
12314 \end_layout
12315
12316 \begin_layout Standard
12317 and the differences will be explained in the next section.
12318 \end_layout
12319
12320 \begin_layout Standard
12321 Since foils are often used in presenting ideas or new theorems and such
12322  
12323 \family sans
12324 Foil\SpecialChar TeX
12325
12326 \family default
12327  also provides a comprehensive box of goodies for presenting them:
12328 \end_layout
12329
12330 \begin_layout Standard
12331 \begin_inset Flex Multiple Columns
12332 status open
12333
12334 \begin_layout Itemize
12335
12336 \family sans
12337 Theorem
12338 \end_layout
12339
12340 \begin_layout Itemize
12341
12342 \family sans
12343 Lemma
12344 \end_layout
12345
12346 \begin_layout Itemize
12347
12348 \family sans
12349 Corollary
12350 \end_layout
12351
12352 \begin_layout Itemize
12353
12354 \family sans
12355 Proposition
12356 \end_layout
12357
12358 \begin_layout Itemize
12359
12360 \family sans
12361 Definition
12362 \end_layout
12363
12364 \begin_layout Itemize
12365
12366 \family sans
12367 Proof
12368 \end_layout
12369
12370 \begin_layout Itemize
12371
12372 \family sans
12373 Theorem*
12374 \end_layout
12375
12376 \begin_layout Itemize
12377
12378 \family sans
12379 Lemma*
12380 \end_layout
12381
12382 \begin_layout Itemize
12383
12384 \family sans
12385 Corollary*
12386 \end_layout
12387
12388 \begin_layout Itemize
12389
12390 \family sans
12391 Proposition*
12392 \end_layout
12393
12394 \begin_layout Itemize
12395
12396 \family sans
12397 Definition*
12398 \end_layout
12399
12400 \end_inset
12401
12402
12403 \end_layout
12404
12405 \begin_layout Standard
12406 The starred versions are unnumbered while the unstarred versions are numbered.
12407  There are also two list environments added by \SpecialChar LyX
12408  and these are:
12409 \end_layout
12410
12411 \begin_layout Itemize
12412
12413 \family sans
12414 TickList
12415 \end_layout
12416
12417 \begin_layout Itemize
12418
12419 \family sans
12420 CrossList
12421 \end_layout
12422
12423 \begin_layout Standard
12424
12425 \family sans
12426 Foil\SpecialChar TeX
12427
12428 \family default
12429  provides some powerful header and footer capabilities that are best set
12430  in the preamble although they may be set at any point in a document.
12431  If you want to change these settings in your document the best place to
12432  do so is at the very top of a foil, i.
12433 \begin_inset space \thinspace{}
12434 \end_inset
12435
12436 e.
12437 \emph on
12438
12439 \begin_inset space \space{}
12440 \end_inset
12441
12442
12443 \emph default
12444 straight after the foilhead.
12445 \end_layout
12446
12447 \begin_layout Standard
12448 For this purpose, the following command styles are provided [
12449 \shape smallcaps
12450 Martin Vermeer
12451 \shape default
12452 ]:
12453 \end_layout
12454
12455 \begin_layout Standard
12456 \begin_inset Flex Multiple Columns
12457 status open
12458
12459 \begin_layout Itemize
12460
12461 \family sans
12462 My
12463 \begin_inset space ~
12464 \end_inset
12465
12466 Logo
12467 \end_layout
12468
12469 \begin_layout Itemize
12470
12471 \family sans
12472 Restriction
12473 \end_layout
12474
12475 \begin_layout Itemize
12476
12477 \family sans
12478 Right
12479 \begin_inset space ~
12480 \end_inset
12481
12482 Footer
12483 \end_layout
12484
12485 \begin_layout Itemize
12486
12487 \family sans
12488 Right
12489 \begin_inset space ~
12490 \end_inset
12491
12492 Header
12493 \end_layout
12494
12495 \begin_layout Itemize
12496
12497 \family sans
12498 Left
12499 \begin_inset space ~
12500 \end_inset
12501
12502 Header
12503 \end_layout
12504
12505 \begin_deeper
12506 \begin_layout Plain Layout
12507 \begin_inset space ~
12508 \end_inset
12509
12510
12511 \end_layout
12512
12513 \end_deeper
12514 \end_inset
12515
12516
12517 \end_layout
12518
12519 \begin_layout Standard
12520 There are also a few commands provided by 
12521 \family sans
12522 Foil\SpecialChar TeX
12523
12524 \family default
12525  that aren't directly supported by \SpecialChar LyX
12526  but I'll tell you what they do and how
12527  to use them in section
12528 \begin_inset space ~
12529 \end_inset
12530
12531
12532 \begin_inset CommandInset ref
12533 LatexCommand ref
12534 reference "sec:unsuppfoils"
12535
12536 \end_inset
12537
12538 .
12539 \end_layout
12540
12541 \begin_layout Subsection
12542 Building a Set of Foils
12543 \end_layout
12544
12545 \begin_layout Standard
12546 This section will give a simple introduction to using the different environments
12547  to build a set of foils.
12548  If you want to see an example set of foils, take a look at the 
12549 \family typewriter
12550 Foils.lyx
12551 \family default
12552  file you find in \SpecialChar LyX
12553 's 
12554 \family typewriter
12555 examples
12556 \family default
12557  folder.
12558 \end_layout
12559
12560 \begin_layout Subsubsection
12561 Give It a Title Page
12562 \end_layout
12563
12564 \begin_layout Standard
12565 Unlike other classes that provide 
12566 \family sans
12567 Title
12568 \family default
12569
12570 \family sans
12571 Author
12572 \family default
12573
12574 \family sans
12575 Date
12576 \family default
12577  and 
12578 \family sans
12579 Abstract
12580 \family default
12581  environments, 
12582 \family sans
12583 foils
12584 \family default
12585  creates the title on a page of its own.
12586  If you leave out the 
12587 \family sans
12588 Date
12589 \family default
12590  environment \SpecialChar LaTeX
12591  will substitute the current date (every time you regenerate
12592  the output).
12593 \end_layout
12594
12595 \begin_layout Subsubsection
12596 Start a New Foil
12597 \end_layout
12598
12599 \begin_layout Standard
12600 As I mentioned earlier, there are four ways of starting a new foil.
12601  For portrait foils you should use 
12602 \family sans
12603 Foilhead
12604 \family default
12605  or 
12606 \family sans
12607 ShortFoilhead.
12608
12609 \family default
12610  The difference between these two environments is the amount of space between
12611  the title of the foil (the foilhead) and the body of the foil.
12612 \end_layout
12613
12614 \begin_layout Standard
12615 Landscape foils are generated using the 
12616 \family sans
12617 Rotatefoilhead
12618 \family default
12619  and 
12620 \family sans
12621 ShortRotatefoilhead
12622 \family default
12623  environments.
12624  Again the only difference is the spacing between foilhead and body.
12625  Both of the short versions have 0.5
12626 \begin_inset space ~
12627 \end_inset
12628
12629 inches less separation between the foilhead and the body.
12630  
12631 \end_layout
12632
12633 \begin_layout Standard
12634 One problem with the support for landscape foils is the requirement that
12635  you have to use the 
12636 \family typewriter
12637 dvips
12638 \family default
12639  driver to generate the PostScript output otherwise the foils won't be rotated.
12640  It is possible to get landscape foils even if you haven't got the 
12641 \family typewriter
12642 dvips
12643 \family default
12644  driver provided you can feed your foils sideways through your printer ;-)
12645 \end_layout
12646
12647 \begin_layout Subsubsection
12648 Theorems, Lemmas, Proofs and more
12649 \end_layout
12650
12651 \begin_layout Standard
12652
12653 \change_deleted -712698321 1501160146
12654 Due to a small bug in \SpecialChar LyX
12655  y
12656 \change_inserted -712698321 1501160146
12657 Y
12658 \change_unchanged
12659 ou can't have two of the same type of these environments directly following
12660  each other.
12661  
12662 \change_inserted -712698321 1501160182
12663 If you use a normal paragraph break, 
12664 \change_deleted -712698321 1501160188
12665 They must be separated by something.
12666  If you try
12667 \change_unchanged
12668 , you will just be extending the previous environment as if you had merged
12669  the two environments together.
12670  
12671 \change_deleted -712698321 1501160194
12672 So, how do you get around this problem? The simplest option is to insert
12673  some text between the two environments or add a 
12674 \family sans
12675 \SpecialChar LaTeX
12676
12677 \family default
12678  environment between the two with just a 
12679 \begin_inset Quotes eld
12680 \end_inset
12681
12682
12683 \family typewriter
12684 %
12685 \family default
12686
12687 \begin_inset Quotes erd
12688 \end_inset
12689
12690  in it.
12691  This will force \SpecialChar LyX
12692  to produce two separate environments and hence the correct
12693  \SpecialChar LaTeX
12694  output.
12695  An example is provided in the example file included with the \SpecialChar LyX
12696  distribution.
12697  Remember, this problem only occurs if you are trying to place two of the
12698  same type of theorem-like environments one directly after the other.
12699
12700 \change_inserted -712698321 1501160255
12701  Rather than that, you need to insert a so-called separator.
12702  Please refer to the section entitled 
12703 \emph on
12704 Separate Nestings
12705 \emph default
12706  in the 
12707 \emph on
12708 User's Guide
12709 \emph default
12710 .
12711 \change_unchanged
12712
12713 \end_layout
12714
12715 \begin_layout Subsubsection
12716 Lists
12717 \end_layout
12718
12719 \begin_layout Standard
12720 You get all the commonly supported list styles found in other classes as
12721  well as two new ones.
12722  I'll only describe the new ones here.
12723  If you want to find out more about the other list environments check out
12724  the 
12725 \emph on
12726 User's Guide.
12727
12728 \emph default
12729  If you intend to use itemized lists you might also want to read about the
12730  
12731 \family sans
12732 Itemize
12733 \begin_inset space ~
12734 \end_inset
12735
12736 Bullet
12737 \begin_inset space ~
12738 \end_inset
12739
12740 Selection
12741 \family default
12742  dialog described above in section
12743 \begin_inset space ~
12744 \end_inset
12745
12746
12747 \begin_inset CommandInset ref
12748 LatexCommand ref
12749 reference "sec:bullet"
12750
12751 \end_inset
12752
12753 .
12754 \end_layout
12755
12756 \begin_layout Standard
12757 The two new list styles, 
12758 \family sans
12759 TickList
12760 \family default
12761  and 
12762 \family sans
12763 CrossList
12764 \family default
12765 , are designed to make it easier for you to create lists of do's and don'ts
12766  or right and wrong by providing dedicated environments that use a tick
12767  or a cross as the label of the list.
12768  These lists are in fact dedicated variants of the 
12769 \family sans
12770 Itemize
12771 \family default
12772  environment.
12773  They do however require that you have the 
12774 \family typewriter
12775 psnfss
12776 \family default
12777  packages installed.
12778 \end_layout
12779
12780 \begin_layout Subsubsection
12781 Figures and Tables
12782 \end_layout
12783
12784 \begin_layout Standard
12785
12786 \family sans
12787 Foil\SpecialChar TeX
12788
12789 \family default
12790  redefines the floating tables and figures so that they appear exactly where
12791  they are in the text rather than pushing them to the top of the page or
12792  to some user specified location.
12793  In fact if you change the float placement settings they are simply ignored.
12794 \end_layout
12795
12796 \begin_layout Subsubsection
12797 Page Headers and Footers
12798 \begin_inset CommandInset label
12799 LatexCommand label
12800 name "sec:foilfoot"
12801
12802 \end_inset
12803
12804
12805 \end_layout
12806
12807 \begin_layout Standard
12808
12809 \family sans
12810 My
12811 \begin_inset space ~
12812 \end_inset
12813
12814 Logo
12815 \family default
12816  and 
12817 \family sans
12818 Restriction
12819 \family default
12820  are two commands used to control the left-footer text string.
12821  The first is meant to allow you to include a graphic logo on your foils
12822  and defaults to 
12823 \begin_inset Quotes eld
12824 \end_inset
12825
12826 -Typeset by 
12827 \family sans
12828 Foil\SpecialChar TeX
12829
12830 \family default
12831 -
12832 \begin_inset Quotes erd
12833 \end_inset
12834
12835 .
12836  While the second is meant to provide a classification for the audience,
12837  
12838 \emph on
12839 e.
12840 \begin_inset space \thinspace{}
12841 \end_inset
12842
12843 g.
12844 \emph default
12845
12846 \begin_inset space \space{}
12847 \end_inset
12848
12849 Confidential.
12850  It is empty by default.
12851 \end_layout
12852
12853 \begin_layout Standard
12854 The remaining page corners can be filled by 
12855 \family sans
12856 Right
12857 \begin_inset space ~
12858 \end_inset
12859
12860 Footer
12861 \family default
12862  (which defaults to page numbers), 
12863 \family sans
12864 Right
12865 \begin_inset space ~
12866 \end_inset
12867
12868 Header
12869 \family default
12870  (top right) and 
12871 \family sans
12872 Left
12873 \begin_inset space ~
12874 \end_inset
12875
12876 Header
12877 \family default
12878  (top left).
12879 \end_layout
12880
12881 \begin_layout Subsection
12882 Unsupported 
12883 \family sans
12884 Foil\SpecialChar TeX
12885
12886 \family default
12887  Goodies
12888 \begin_inset CommandInset label
12889 LatexCommand label
12890 name "sec:unsuppfoils"
12891
12892 \end_inset
12893
12894
12895 \end_layout
12896
12897 \begin_layout Standard
12898 All the commands mentioned below need to be set in a 
12899 \family sans
12900 \SpecialChar LaTeX
12901
12902 \family default
12903  environment or as 
12904 \family sans
12905 \SpecialChar TeX
12906
12907 \family default
12908  within another environment.
12909 \end_layout
12910
12911 \begin_layout Subsubsection
12912 Lengths
12913 \end_layout
12914
12915 \begin_layout Standard
12916 All lengths are adjusted using the 
12917 \family typewriter
12918
12919 \backslash
12920 setlength{
12921 \family default
12922 \emph on
12923 lengthname
12924 \family typewriter
12925 \emph default
12926 }{
12927 \family default
12928 \emph on
12929 newlength
12930 \family typewriter
12931 \emph default
12932 }
12933 \family default
12934  command.
12935  Where 
12936 \emph on
12937 lengthname
12938 \emph default
12939  should be replaced by the name given to the length you want to change and
12940  
12941 \emph on
12942 newlength
12943 \emph default
12944  is the length value.
12945  All lengths should be specified in units of length such as inches (
12946 \family typewriter
12947 in
12948 \family default
12949 ), millimeters (
12950 \family typewriter
12951 mm
12952 \family default
12953 ) or points (
12954 \family typewriter
12955 pt
12956 \family default
12957 ) or relative to some document or font-based length such as 
12958 \family typewriter
12959
12960 \backslash
12961 textwidth
12962 \family default
12963 .
12964  
12965 \end_layout
12966
12967 \begin_layout Standard
12968 It's possible to change the spacing between a foilhead and the body of the
12969  foil by adjusting the length specified by 
12970 \family typewriter
12971
12972 \backslash
12973 foilheadskip
12974 \family default
12975 .
12976  For example, to make 
12977 \emph on
12978 all
12979 \emph default
12980  foilheads 0.5
12981 \begin_inset space \space{}
12982 \end_inset
12983
12984 in closer to their bodies put the following in the preamble: 
12985 \family typewriter
12986
12987 \backslash
12988 setlength{
12989 \backslash
12990 foilheadskip}{-0.5in}
12991 \end_layout
12992
12993 \begin_layout Standard
12994 The spacings around floats can be adjusted by setting these lengths:
12995 \end_layout
12996
12997 \begin_layout Labeling
12998 \labelwidthstring MMMMMMMMMMM
12999
13000 \family typewriter
13001
13002 \backslash
13003 abovefloatskip
13004 \family default
13005  Separation between the text and the top of the float
13006 \end_layout
13007
13008 \begin_layout Labeling
13009 \labelwidthstring MMMMMMMMMMM
13010
13011 \family typewriter
13012
13013 \backslash
13014 abovecaptionskip
13015 \family default
13016  Separation between the float and the caption
13017 \end_layout
13018
13019 \begin_layout Labeling
13020 \labelwidthstring MMMMMMMMMMM
13021
13022 \family typewriter
13023
13024 \backslash
13025 belowcaptionskip
13026 \family default
13027  Separation between the caption and the following text
13028 \end_layout
13029
13030 \begin_layout Labeling
13031 \labelwidthstring MMMMMMMMMMM
13032
13033 \family typewriter
13034
13035 \backslash
13036 captionwidth
13037 \family default
13038  You can make the captions narrower than the surrounding text by adjusting
13039  this length.
13040  Best done relative to 
13041 \family typewriter
13042
13043 \backslash
13044 textwidth
13045 \family default
13046 .
13047 \end_layout
13048
13049 \begin_layout Standard
13050 There are also several title page related lengths that you may find useful
13051  if you have a long title or several authors:
13052 \end_layout
13053
13054 \begin_layout Labeling
13055 \labelwidthstring MMMMMMMMMMM
13056
13057 \family typewriter
13058
13059 \backslash
13060 abovetitleskip
13061 \family default
13062  Separation from headers to 
13063 \family sans
13064 Title
13065 \end_layout
13066
13067 \begin_layout Labeling
13068 \labelwidthstring MMMMMMMMMMM
13069
13070 \family typewriter
13071
13072 \backslash
13073 titleauthorskip
13074 \family default
13075  between 
13076 \family sans
13077 Title
13078 \family default
13079  and 
13080 \family sans
13081 Author
13082 \family default
13083  environments
13084 \end_layout
13085
13086 \begin_layout Labeling
13087 \labelwidthstring MMMMMMMMMMM
13088
13089 \family typewriter
13090
13091 \backslash
13092 authorauthorskip
13093 \family default
13094  between multiple 
13095 \family sans
13096 Author
13097 \family default
13098  lines
13099 \end_layout
13100
13101 \begin_layout Labeling
13102 \labelwidthstring MMMMMMMMMMM
13103
13104 \family typewriter
13105
13106 \backslash
13107 authordateskip
13108 \family default
13109  between the 
13110 \family sans
13111 Author
13112 \family default
13113  and the 
13114 \family sans
13115 Date
13116 \end_layout
13117
13118 \begin_layout Labeling
13119 \labelwidthstring MMMMMMMMMMM
13120
13121 \family typewriter
13122
13123 \backslash
13124 dateabstractskip
13125 \family default
13126  between the 
13127 \family sans
13128 Date
13129 \family default
13130  and the 
13131 \family sans
13132 Abstract
13133 \end_layout
13134
13135 \begin_layout Standard
13136 The last length related command affects all the list environments.
13137  If you place 
13138 \family typewriter
13139
13140 \backslash
13141 zerolistvertdimens
13142 \family default
13143  
13144 \emph on
13145 inside
13146 \emph default
13147  a list environment then all the vertical spacing between the list items
13148  is removed.
13149  Note that this is a command not a length so it doesn't require 
13150 \family typewriter
13151
13152 \backslash
13153 setlength
13154 \family default
13155  like the stuff mentioned above.
13156 \end_layout
13157
13158 \begin_layout Subsubsection
13159 Headers and Footers
13160 \end_layout
13161
13162 \begin_layout Standard
13163 The 
13164 \family typewriter
13165
13166 \backslash
13167 LogoOn
13168 \family default
13169  and 
13170 \family typewriter
13171
13172 \backslash
13173 LogoOff
13174 \family default
13175  commands control whether the logo in the 
13176 \family sans
13177 MyLogo
13178 \family default
13179  definition appear on a given page.
13180  If you put 
13181 \family typewriter
13182
13183 \backslash
13184 LogoOff
13185 \family default
13186  in the preamble then none of the foils will have the logo on them.
13187  If you don't want the logo on a particular page place the 
13188 \family typewriter
13189
13190 \backslash
13191 LogoOff
13192 \family default
13193  directly after the foilhead of that page and the 
13194 \family typewriter
13195
13196 \backslash
13197 LogoOn
13198 \family default
13199  directly after the next foilhead.
13200 \end_layout
13201
13202 \begin_layout Standard
13203 If you decide to use the 
13204 \family sans
13205 fancy
13206 \family default
13207  page style setting in the 
13208 \family sans
13209 Document
13210 \begin_inset space ~
13211 \end_inset
13212
13213 Layout
13214 \family default
13215  dialog you should probably add 
13216 \family typewriter
13217
13218 \backslash
13219 let
13220 \backslash
13221 headwidth
13222 \backslash
13223 textwidth
13224 \family default
13225  to your preamble so headers and footers on landscape pages are correctly
13226  placed when rotated.
13227  This is due to some clashes between the page layouts provided by the 
13228 \family sans
13229 fancyheadings
13230 \family default
13231  package and the 
13232 \family sans
13233 foils
13234 \family default
13235  class.
13236 \end_layout
13237
13238 \begin_layout Section
13239 Hollywood (Hollywood spec scripts)
13240 \end_layout
13241
13242 \begin_layout Standard
13243 by 
13244 \shape smallcaps
13245 Garst Reese
13246 \end_layout
13247
13248 \begin_layout Subsection
13249 Introduction
13250 \end_layout
13251
13252 \begin_layout Standard
13253 Getting the format of a Hollywood script right is a 
13254 \begin_inset Quotes eld
13255 \end_inset
13256
13257 rite of passage.
13258 \begin_inset Quotes erd
13259 \end_inset
13260
13261  It is designed to make the readers focus on content and to be easy and
13262  familiar for the actors to read.
13263  Each page of a script should be one minute of film.
13264  Nothing goes in a script that you cannot see or hear on screen.
13265  The courier 12 pt font should be used throughout.
13266  No italics.
13267 \end_layout
13268
13269 \begin_layout Subsection
13270 Special problems
13271 \end_layout
13272
13273 \begin_layout Standard
13274 Speakers' lines should NEVER break in mid-sentence.
13275  If a speaker's lines continue over a page break, repeat the 
13276 \family sans
13277 Speaker
13278 \family default
13279  title followed by (Cont'd).
13280 \end_layout
13281
13282 \begin_layout Subsection
13283 Special features
13284 \end_layout
13285
13286 \begin_layout Standard
13287 Insert the 
13288 \family sans
13289 Speaker
13290 \family default
13291  names as labels then cross-reference the label to insert the name.
13292  The cross-reference dialog will show the current cast of characters.
13293  You can use this to insert the speaker name in narratives also.
13294 \end_layout
13295
13296 \begin_layout Subsection
13297 Paper size and Margins
13298 \end_layout
13299
13300 \begin_layout Standard
13301 USLetter, left 1.6in, right 0.75in, top 0.5in, bottom 0.75in
13302 \end_layout
13303
13304 \begin_layout Subsection
13305 Environments
13306 \end_layout
13307
13308 \begin_layout Standard
13309 The following environments are available.
13310  You can use hollywood.bind to get the bind keys shown at the right.
13311 \end_layout
13312
13313 \begin_layout Itemize
13314
13315 \family sans
13316 Standard
13317 \begin_inset Newline newline
13318 \end_inset
13319
13320
13321 \family default
13322 Used where nothing else works.
13323  Try to avoid it.
13324 \end_layout
13325
13326 \begin_layout Itemize
13327
13328 \family sans
13329 FADE_IN
13330 \family default
13331 :
13332 \begin_inset space \hfill{}
13333 \end_inset
13334
13335
13336 \family sans
13337 M-z S-I
13338 \family default
13339
13340 \begin_inset Newline newline
13341 \end_inset
13342
13343 Usually followed by something like 
13344 \begin_inset Quotes eld
13345 \end_inset
13346
13347 on Sally waking up.
13348 \begin_inset Quotes erd
13349 \end_inset
13350
13351
13352 \end_layout
13353
13354 \begin_layout Itemize
13355
13356 \family sans
13357 INT:
13358 \begin_inset space \hfill{}
13359 \end_inset
13360
13361 M-z i
13362 \begin_inset Newline newline
13363 \end_inset
13364
13365
13366 \family default
13367 Introduces a new INTERIOR camera set-up.
13368  Always followed by DAY or NIGHT, or something similar to define the lighting
13369  required.
13370  Everthing on this line in CAPS.
13371 \end_layout
13372
13373 \begin_layout Itemize
13374
13375 \family sans
13376 EXT:
13377 \begin_inset space \hfill{}
13378 \end_inset
13379
13380 M-z e
13381 \begin_inset Newline newline
13382 \end_inset
13383
13384
13385 \family default
13386 Introduces a new EXTERIOR camera set-up.
13387  Everthing on this line in CAPS.
13388 \end_layout
13389
13390 \begin_layout Itemize
13391
13392 \family sans
13393 Speaker
13394 \begin_inset space \hfill{}
13395 \end_inset
13396
13397 M-z s
13398 \begin_inset Newline newline
13399 \end_inset
13400
13401
13402 \family default
13403 The character speaking.
13404 \end_layout
13405
13406 \begin_layout Itemize
13407
13408 \family sans
13409 Parenthetical
13410 \begin_inset space \hfill{}
13411 \end_inset
13412
13413 M-z p
13414 \begin_inset Newline newline
13415 \end_inset
13416
13417
13418 \family default
13419 Instructions to the speaker.
13420  The () are automatically inserted
13421 \change_deleted -712698321 1501161286
13422 , but only the ( will show in \SpecialChar LyX
13423 .
13424  Both will be printed
13425 \change_unchanged
13426 .
13427 \end_layout
13428
13429 \begin_layout Itemize
13430
13431 \family sans
13432 Dialogue
13433 \begin_inset space \hfill{}
13434 \end_inset
13435
13436 M-z d
13437 \begin_inset Newline newline
13438 \end_inset
13439
13440
13441 \family default
13442 What the 
13443 \family sans
13444 Speaker
13445 \family default
13446  says.
13447 \end_layout
13448
13449 \begin_layout Itemize
13450
13451 \family sans
13452 Transition
13453 \begin_inset space \hfill{}
13454 \end_inset
13455
13456 M-z t
13457 \begin_inset Newline newline
13458 \end_inset
13459
13460
13461 \family default
13462 Camera movement instruction.
13463  e.
13464 \begin_inset space \thinspace{}
13465 \end_inset
13466
13467 g.
13468 \begin_inset space \space{}
13469 \end_inset
13470
13471 CUT TO:
13472 \end_layout
13473
13474 \begin_layout Itemize
13475
13476 \family sans
13477 FADE OUT:
13478 \begin_inset space \hfill{}
13479 \end_inset
13480
13481 M-z S-I
13482 \end_layout
13483
13484 \begin_layout Itemize
13485
13486 \family sans
13487 Author
13488 \begin_inset space \hfill{}
13489 \end_inset
13490
13491 M-z S-A
13492 \end_layout
13493
13494 \begin_layout Itemize
13495
13496 \family sans
13497 Title
13498 \begin_inset space \hfill{}
13499 \end_inset
13500
13501 M-z S-T
13502 \end_layout
13503
13504 \begin_layout Itemize
13505
13506 \family sans
13507 Right_Address
13508 \begin_inset space \hfill{}
13509 \end_inset
13510
13511 M-z r
13512 \end_layout
13513
13514 \begin_layout Subsection
13515 Script jargon
13516 \end_layout
13517
13518 \begin_layout Itemize
13519 (O.S) — off screen
13520 \end_layout
13521
13522 \begin_layout Itemize
13523 (V.0) — voice over
13524 \end_layout
13525
13526 \begin_layout Itemize
13527 b.
13528 \begin_inset space \thinspace{}
13529 \end_inset
13530
13531 g.
13532  — background
13533 \end_layout
13534
13535 \begin_layout Itemize
13536 C.U.
13537  — close-up
13538 \end_layout
13539
13540 \begin_layout Itemize
13541 PAN — camera movement
13542 \end_layout
13543
13544 \begin_layout Itemize
13545 INSERT — cut to close-up of
13546 \end_layout
13547
13548 \begin_layout Section
13549 ijmpc and ijmpd
13550 \end_layout
13551
13552 \begin_layout Standard
13553 by 
13554 \noun on
13555 Panayotis Papasotiriou
13556 \end_layout
13557
13558 \begin_layout Subsection
13559 Overview
13560 \end_layout
13561
13562 \begin_layout Standard
13563 The ijmpc package is a set of macros that facilitates electronic manuscript
13564  submission to the 
13565 \emph on
13566 International Journal of Modern Physics C
13567 \emph default
13568 .
13569  Similarly, the ijmpd package is for creating manuscripts to be submitted
13570  to the 
13571 \emph on
13572 International Journal of Modern Physics D
13573 \emph default
13574 .
13575  Both journals are published by World Scientific.
13576  The corresponding document classes are named 
13577 \family typewriter
13578 ws-ijmpc.cls
13579 \family default
13580  and 
13581 \family typewriter
13582 ws-ijmpd.cls
13583 \family default
13584 , respectively.
13585  These files, together with instructions for the authors, can be downloaded
13586  from the sites 
13587 \begin_inset Flex URL
13588 status collapsed
13589
13590 \begin_layout Plain Layout
13591
13592 http://www.worldscinet.com/ijmpc/mkt/guidelines.shtml
13593 \end_layout
13594
13595 \end_inset
13596
13597  and 
13598 \begin_inset Flex URL
13599 status collapsed
13600
13601 \begin_layout Plain Layout
13602
13603 http://www.worldscinet.com/ijmpd/mkt/guidelines.shtml
13604 \end_layout
13605
13606 \end_inset
13607
13608 .
13609  Both packages are modified versions of the standard 
13610 \begin_inset Quotes eld
13611 \end_inset
13612
13613 article
13614 \begin_inset Quotes erd
13615 \end_inset
13616
13617  package, and they are almost (but not exactly) identical.
13618  Most of their features are supported by \SpecialChar LyX
13619 .
13620  I have used \SpecialChar LyX
13621  successfully to write articles submitted to both journals
13622  without any problem.
13623 \end_layout
13624
13625 \begin_layout Subsection
13626 Writing a paper
13627 \end_layout
13628
13629 \begin_layout Standard
13630 As usual, the easiest way to write a paper is to start with a template.
13631  Click on 
13632 \family sans
13633 File\SpecialChar menuseparator
13634 New from
13635 \family default
13636  
13637 \family sans
13638 Template
13639 \family default
13640 , then choose the 
13641 \family typewriter
13642 ijmpc.lyx
13643 \family default
13644  or 
13645 \family typewriter
13646 ijmpd.lyx
13647 \family default
13648  template.
13649  This will give an (almost) empty document that includes the most common
13650  fields found in a manuscript.
13651  Simply overwrite the existing text (including the brackets, 
13652 \family typewriter
13653 <>
13654 \family default
13655 ) with your text.
13656  You should keep in mind the following remarks.
13657 \end_layout
13658
13659 \begin_layout Enumerate
13660 \SpecialChar LyX
13661  won't let you change the font size and the page style of the document,
13662  because such modifications are not allowed by both packages.
13663 \end_layout
13664
13665 \begin_layout Enumerate
13666 The language of the document should not be changed.
13667  Before previewing your paper, be sure that the babel package is not used.
13668  To do this, click on
13669 \change_inserted -712698321 1501082726
13670  
13671 \begin_inset Info
13672 type  "menu"
13673 arg   "dialog-show document"
13674 \end_inset
13675
13676
13677 \change_unchanged
13678  
13679 \change_deleted -712698321 1501082743
13680
13681 \family sans
13682 Tools
13683 \change_unchanged
13684 \SpecialChar menuseparator
13685
13686 \change_deleted -712698321 1501082747
13687 Preferences
13688 \change_inserted -712698321 1501082748
13689 Language
13690 \change_unchanged
13691
13692 \family default
13693
13694 \change_deleted -712698321 1501082762
13695 select the 
13696 \family sans
13697 Lang Opts
13698 \family default
13699  tab, deselect the 
13700 \family sans
13701 Use babel
13702 \family default
13703  checkbox in the language settings, and click on 
13704 \family sans
13705 Apply
13706 \family default
13707  (or 
13708 \family sans
13709 Save
13710 \family default
13711 , if you wish to make this change permanent)
13712 \change_inserted -712698321 1501082770
13713 and select 
13714 \begin_inset Quotes eld
13715 \end_inset
13716
13717 None
13718 \begin_inset Quotes erd
13719 \end_inset
13720
13721  as 
13722 \family sans
13723 Language Package
13724 \change_unchanged
13725
13726 \family default
13727 .
13728 \end_layout
13729
13730 \begin_layout Enumerate
13731 The 
13732 \begin_inset Quotes eld
13733 \end_inset
13734
13735 Keywords
13736 \begin_inset Quotes erd
13737 \end_inset
13738
13739  style must be used to define keywords.
13740 \end_layout
13741
13742 \begin_layout Enumerate
13743 The ijmpc package provides a style named 
13744 \begin_inset Quotes eld
13745 \end_inset
13746
13747 Classification Codes
13748 \begin_inset Quotes erd
13749 \end_inset
13750
13751 , which can be used to define classification codes, such as PACS numbers.
13752  Note that this facility is not supported by the ijmpd package.
13753 \end_layout
13754
13755 \begin_layout Enumerate
13756 Several new environments are available: 
13757 \begin_inset Quotes eld
13758 \end_inset
13759
13760 Definition
13761 \begin_inset Quotes erd
13762 \end_inset
13763
13764
13765 \begin_inset Quotes eld
13766 \end_inset
13767
13768 Step
13769 \begin_inset Quotes erd
13770 \end_inset
13771
13772
13773 \begin_inset Quotes eld
13774 \end_inset
13775
13776 Example
13777 \begin_inset Quotes erd
13778 \end_inset
13779
13780
13781 \begin_inset Quotes eld
13782 \end_inset
13783
13784 Remark
13785 \begin_inset Quotes erd
13786 \end_inset
13787
13788
13789 \begin_inset Quotes eld
13790 \end_inset
13791
13792 Notation
13793 \begin_inset Quotes erd
13794 \end_inset
13795
13796
13797 \begin_inset Quotes eld
13798 \end_inset
13799
13800 Theorem
13801 \begin_inset Quotes erd
13802 \end_inset
13803
13804
13805 \begin_inset Quotes eld
13806 \end_inset
13807
13808 Proof
13809 \begin_inset Quotes erd
13810 \end_inset
13811
13812
13813 \begin_inset Quotes eld
13814 \end_inset
13815
13816 Corollary
13817 \begin_inset Quotes erd
13818 \end_inset
13819
13820
13821 \begin_inset Quotes eld
13822 \end_inset
13823
13824 Lemma
13825 \begin_inset Quotes erd
13826 \end_inset
13827
13828
13829 \begin_inset Quotes eld
13830 \end_inset
13831
13832 Proposition
13833 \begin_inset Quotes erd
13834 \end_inset
13835
13836
13837 \begin_inset Quotes eld
13838 \end_inset
13839
13840 Prop
13841 \begin_inset Quotes erd
13842 \end_inset
13843
13844
13845 \begin_inset Quotes eld
13846 \end_inset
13847
13848 Question
13849 \begin_inset Quotes erd
13850 \end_inset
13851
13852
13853 \begin_inset Quotes eld
13854 \end_inset
13855
13856 Claim
13857 \begin_inset Quotes erd
13858 \end_inset
13859
13860 , and 
13861 \begin_inset Quotes eld
13862 \end_inset
13863
13864 Conjecture
13865 \begin_inset Quotes erd
13866 \end_inset
13867
13868 .
13869  Their use is more or less obvious.
13870  \SpecialChar LyX
13871  supports all these environments; it will use the proper label, text style,
13872  and numbering scheme for each of them.
13873 \end_layout
13874
13875 \begin_layout Enumerate
13876 Both packages use basic citations; the natbib package should not be used.
13877  In \SpecialChar LyX
13878 , citation references are shown as usual; in the output, citations are
13879  shown as superscripts.
13880  If you want to use a citation as normal text, you should use the 
13881 \family typewriter
13882 refcite
13883 \family default
13884  command, e.
13885 \begin_inset space \thinspace{}
13886 \end_inset
13887
13888 g.
13889 \begin_inset space \space{}
13890 \end_inset
13891
13892
13893 \begin_inset Quotes eld
13894 \end_inset
13895
13896 See Ref.
13897 \begin_inset space \space{}
13898 \end_inset
13899
13900
13901 \family typewriter
13902
13903 \backslash
13904 refcite{key}
13905 \family default
13906
13907 \begin_inset Quotes erd
13908 \end_inset
13909
13910 .
13911 \end_layout
13912
13913 \begin_layout Enumerate
13914 There is no 
13915 \begin_inset Quotes eld
13916 \end_inset
13917
13918 Acknowledgments
13919 \begin_inset Quotes erd
13920 \end_inset
13921
13922  section in both packages.
13923  To put acknowledgments, just use the 
13924 \begin_inset Quotes eld
13925 \end_inset
13926
13927 Section*
13928 \begin_inset Quotes erd
13929 \end_inset
13930
13931  environment.
13932 \end_layout
13933
13934 \begin_layout Enumerate
13935 Appendices may be added to the paper, 
13936 \emph on
13937 after
13938 \emph default
13939  the Acknowledgments and 
13940 \shape italic
13941 before
13942 \shape default
13943  the References.
13944  \SpecialChar LyX
13945  provides a special environment, called 
13946 \begin_inset Quotes eld
13947 \end_inset
13948
13949 Appendices Section
13950 \begin_inset Quotes erd
13951 \end_inset
13952
13953  which marks the beginning of the appendices.
13954  This environment should be left blank; it just sends a \SpecialChar LaTeX
13955  command, but nothing
13956  is really printed.
13957  In \SpecialChar LyX
13958 , the word 
13959 \begin_inset Quotes eld
13960 \end_inset
13961
13962 Appendix
13963 \begin_inset Quotes erd
13964 \end_inset
13965
13966  is printed with blue letters, as a signal that all sections after that
13967  point are appendices.
13968  To write an appendix, use the 
13969 \begin_inset Quotes eld
13970 \end_inset
13971
13972 Appendix
13973 \begin_inset Quotes erd
13974 \end_inset
13975
13976  environment.
13977  \SpecialChar LyX
13978  will number each appendix with capital letters, as required by both journals.
13979  Note that 
13980 \begin_inset Quotes eld
13981 \end_inset
13982
13983 Appendices Section
13984 \begin_inset Quotes erd
13985 \end_inset
13986
13987  
13988 \emph on
13989 must
13990 \emph default
13991  be present before the first appendix; if not, all appendices will be numbered
13992  as normal sections in the output.
13993 \end_layout
13994
13995 \begin_layout Enumerate
13996 The ijmpc and the ijmpd packages use the 
13997 \family typewriter
13998 tbl
13999 \family default
14000  command to implement table captions.
14001  As a result, a table created by \SpecialChar LyX
14002  is printed correctly, but its caption
14003  is ignored.
14004  However, you can use some \SpecialChar TeX
14005  code to overcome this problem, so that captions
14006  are printed as expected.
14007  To do so, create a float table as usual, remove the caption, and replace
14008  it with the \SpecialChar TeX
14009  code 
14010 \family typewriter
14011
14012 \backslash
14013 tbl{
14014 \emph on
14015 your table caption
14016 \emph default
14017 }{
14018 \family default
14019  (sic); you must also the \SpecialChar TeX
14020  code 
14021 \family typewriter
14022 }
14023 \family default
14024  immediately after the tabular material.
14025  Study the example table included in the template files to see how this
14026  trick is implemented.
14027  Alternatively, If you need table captions, you should implement the whole
14028  table float in a 
14029 \family typewriter
14030 .tex
14031 \family default
14032  file, then include this file to the \SpecialChar LyX
14033  document (
14034 \family sans
14035 Insert\SpecialChar menuseparator
14036 File\SpecialChar menuseparator
14037 Child
14038 \begin_inset space ~
14039 \end_inset
14040
14041 Document
14042 \family default
14043 ).
14044  Details on how to create a table float can be found in the files 
14045 \family typewriter
14046 ws-ijmpc.tex
14047 \family default
14048  and 
14049 \family typewriter
14050 ws-ijmpd.tex
14051 \family default
14052 , included in the corresponding packages.
14053 \end_layout
14054
14055 \begin_layout Subsection
14056 Preparing a paper for submission
14057 \end_layout
14058
14059 \begin_layout Standard
14060 Before you submit your paper you must export the \SpecialChar LyX
14061  document as a \SpecialChar LaTeX
14062  file (
14063 \family sans
14064 File\SpecialChar menuseparator
14065 Export\SpecialChar menuseparator
14066 \SpecialChar LaTeX
14067
14068 \family default
14069 )
14070 \begin_inset Foot
14071 status open
14072
14073 \begin_layout Plain Layout
14074 Actually you have the choice between \SpecialChar LaTeX
14075  (plain) and pdflatex.
14076  If you intend to use pdflatex to prepare the paper, you should use the
14077  pdflatex option so that included graphics are converted to PDF format,
14078  ready for use by pdflatex.
14079 \end_layout
14080
14081 \end_inset
14082
14083 , then make the following changes to the resulting 
14084 \family typewriter
14085 .tex
14086 \family default
14087  file.
14088 \end_layout
14089
14090 \begin_layout Enumerate
14091 Remove the comment lines before the 
14092 \family typewriter
14093
14094 \backslash
14095 documentclass
14096 \family default
14097  command.
14098 \end_layout
14099
14100 \begin_layout Enumerate
14101 Remove everything between (and including) the 
14102 \family typewriter
14103
14104 \backslash
14105 makeatletter
14106 \family default
14107  and 
14108 \family typewriter
14109
14110 \backslash
14111 makeatother
14112 \family default
14113  commands, except for any commands you specifically put into the \SpecialChar LaTeX
14114  preamble.
14115 \end_layout
14116
14117 \begin_layout Standard
14118 The modified 
14119 \family typewriter
14120 .tex
14121 \family default
14122  file should be saved and processed through \SpecialChar LaTeX
14123  as many times as necessary.
14124  You may also want to check the resulting 
14125 \family typewriter
14126 .dvi
14127 \family default
14128  document.
14129 \end_layout
14130
14131 \begin_layout Subsection
14132
14133 \change_deleted -712698321 1501082212
14134 Use of \SpecialChar TeX
14135  code
14136 \end_layout
14137
14138 \begin_layout Standard
14139
14140 \change_deleted -712698321 1501082212
14141 The use of \SpecialChar TeX
14142  code is reduced to two commands, which must be placed at the
14143  top of the document.
14144  If you started writing your paper by using the 
14145 \family typewriter
14146 ijmpc.lyx
14147 \family default
14148  or the 
14149 \family typewriter
14150 ijmpd.lyx
14151 \family default
14152  template, the \SpecialChar TeX
14153  code needed is already in its place; you usually don't need
14154  to delete it.
14155  You may only modify the first \SpecialChar TeX
14156  code to specify the information printed
14157  to the top of odd and even pages (authors' names and short paper's title,
14158  respectively).
14159  This \SpecialChar TeX
14160  code must have the form 
14161 \family typewriter
14162
14163 \backslash
14164 markboth{Authors' Names}{Short Paper's Title}
14165 \family default
14166 .
14167 \change_unchanged
14168
14169 \end_layout
14170
14171 \begin_layout Section
14172 iopart
14173 \end_layout
14174
14175 \begin_layout Standard
14176 by 
14177 \noun on
14178 Uwe Stöhr
14179 \end_layout
14180
14181 \begin_layout Subsection
14182 Overview
14183 \end_layout
14184
14185 \begin_layout Standard
14186 The iopart package provides a document class to create electronic manuscript
14187  submission to the journals published by the Institute of Physics.
14188  Instructions for the authors how to create a paper using the iopart class
14189  can be downloaded together with the iopart package from the site 
14190 \begin_inset Flex URL
14191 status collapsed
14192
14193 \begin_layout Plain Layout
14194
14195 ftp://ftp.iop.org/pub/journals/latex2e
14196 \end_layout
14197
14198 \end_inset
14199
14200 .
14201 \end_layout
14202
14203 \begin_layout Subsection
14204 Writing a paper
14205 \end_layout
14206
14207 \begin_layout Standard
14208 The easiest way to write a paper is to start with the 
14209 \change_deleted -712698321 1501162201
14210 file
14211 \change_inserted -712698321 1501162202
14212 template
14213 \change_unchanged
14214  
14215 \emph on
14216 IOP-article.lyx
14217 \emph default
14218  that is available 
14219 \change_deleted -712698321 1501162208
14220 in \SpecialChar LyX
14221 's examples files folder
14222 \change_inserted -712698321 1501162222
14223 via 
14224 \family sans
14225 File\SpecialChar menuseparator
14226 New From Template\SpecialChar ldots
14227
14228 \change_deleted -712698321 1501162219
14229
14230 \family default
14231 .
14232
14233 \change_unchanged
14234  
14235 \change_deleted -712698321 1501162234
14236 Open this file, save it under a new name, and start writing.
14237
14238 \change_unchanged
14239  The 
14240 \change_deleted -712698321 1501162238
14241 example file
14242 \change_inserted -712698321 1501162239
14243 template
14244 \change_unchanged
14245  explains how to use the special text environments.
14246  Here are the most important advices:
14247 \end_layout
14248
14249 \begin_layout Itemize
14250 To be able to compile your document to a PDF, PS, or DVI, ensure that the
14251  
14252 \change_deleted -712698321 1501162254
14253 two options 
14254 \family sans
14255 Use AMS math package
14256 \family default
14257  in the document settings under 
14258 \family sans
14259 Math Options
14260 \family default
14261  are not used
14262 \change_inserted -712698321 1501162277
14263 no AMS packages are loaded in 
14264 \family sans
14265 Document\SpecialChar menuseparator
14266 Settings\SpecialChar menuseparator
14267 Math Options
14268 \change_unchanged
14269
14270 \family default
14271 !
14272 \end_layout
14273
14274 \begin_layout Itemize
14275
14276 \size normal
14277 The title environment defines the kind of your paper.
14278  So use one of the following environments for the title:
14279 \end_layout
14280
14281 \begin_deeper
14282 \begin_layout Itemize
14283
14284 \family sans
14285 \size normal
14286 Title
14287 \family default
14288  for a Paper
14289 \end_layout
14290
14291 \begin_layout Itemize
14292
14293 \family sans
14294 \size normal
14295 Review
14296 \family default
14297  for a Review
14298 \end_layout
14299
14300 \begin_layout Itemize
14301
14302 \family sans
14303 \size normal
14304 Topical
14305 \family default
14306  for a Topical review
14307 \end_layout
14308
14309 \begin_layout Itemize
14310
14311 \family sans
14312 \size normal
14313 Comment
14314 \family default
14315  for a Comment
14316 \end_layout
14317
14318 \begin_layout Itemize
14319
14320 \family sans
14321 \size normal
14322 Note
14323 \family default
14324  for a Note
14325 \end_layout
14326
14327 \begin_layout Itemize
14328
14329 \family sans
14330 \size normal
14331 Paper
14332 \family default
14333  for a Paper (same as Title)
14334 \end_layout
14335
14336 \begin_layout Itemize
14337
14338 \family sans
14339 \size normal
14340 Prelim
14341 \family default
14342  for a Preliminary communication
14343 \end_layout
14344
14345 \begin_layout Itemize
14346
14347 \family sans
14348 \size normal
14349 Rapid
14350 \family default
14351  for a Rapid communication
14352 \end_layout
14353
14354 \begin_layout Itemize
14355
14356 \family sans
14357 \size normal
14358 Letter
14359 \family default
14360  for a Letter to the editor
14361 \end_layout
14362
14363 \end_deeper
14364 \begin_layout Itemize
14365
14366 \size normal
14367 All title environments except of 
14368 \family sans
14369 Letter
14370 \family default
14371  can have an optional short title.
14372 \end_layout
14373
14374 \begin_layout Itemize
14375 There is a general title environment 
14376 \family sans
14377 Article
14378 \family default
14379  which is not directly supported by
14380 \change_deleted -712698321 1501162663
14381  the
14382 \change_unchanged
14383  \SpecialChar LyX
14384 .
14385  This can be used as \SpecialChar TeX
14386  code when your document doesn't fit into one of the
14387  other title types.
14388 \end_layout
14389
14390 \begin_layout Standard
14391 For more informations like hints for special table and formula formatting,
14392  look at the IOP author guidelines.
14393 \end_layout
14394
14395 \begin_layout Section
14396 Kluwer
14397 \end_layout
14398
14399 \begin_layout Standard
14400 by 
14401 \noun on
14402 Panayotis Papasotiriou
14403 \end_layout
14404
14405 \begin_layout Subsection
14406 Overview
14407 \end_layout
14408
14409 \begin_layout Standard
14410 The Kluwer package is a set of macros produced by Kluwer Academic Publishers
14411  that facilitates electronic manuscript submission to the journals they
14412  publish.
14413  Most known of them (at least in my domain of interest) are 
14414 \emph on
14415 Astrophysics and Space Science
14416 \emph default
14417  and 
14418 \emph on
14419 Solar Physics
14420 \emph default
14421 , but there are many others (see a complete list at 
14422 \begin_inset Flex URL
14423 status collapsed
14424
14425 \begin_layout Plain Layout
14426
14427 http://www.wkap.nl/jrnllist.htm/JRNLHOME
14428 \end_layout
14429
14430 \end_inset
14431
14432 ).
14433  The Kluwer package may be downloaded from the site 
14434 \begin_inset Flex URL
14435 status collapsed
14436
14437 \begin_layout Plain Layout
14438
14439 http://www.wkap.nl/kaphtml.htm/STYLEFILES
14440 \end_layout
14441
14442 \end_inset
14443
14444 .
14445  A complete user guide is contained in that package (but it can also be
14446  downloaded separately).
14447 \end_layout
14448
14449 \begin_layout Standard
14450 \SpecialChar LyX
14451  supports many features of the package but not everything.
14452  However, the \SpecialChar TeX
14453  code needed is reduced to some 
14454 \begin_inset Quotes eld
14455 \end_inset
14456
14457 peculiar
14458 \begin_inset Quotes erd
14459 \end_inset
14460
14461  commands of the package (see
14462 \begin_inset space ~
14463 \end_inset
14464
14465
14466 \begin_inset CommandInset ref
14467 LatexCommand ref
14468 reference "subsec:kluwer_peculiarities"
14469
14470 \end_inset
14471
14472 ).
14473  I have recently used \SpecialChar LyX
14474  to write an article submitted to the 
14475 \emph on
14476 Astrophysics and Space Science
14477 \emph default
14478  without any problem.
14479 \end_layout
14480
14481 \begin_layout Subsection
14482 Writing a paper
14483 \end_layout
14484
14485 \begin_layout Standard
14486 The easiest way to write a paper is to start with the Kluwer template file.
14487  Click on 
14488 \family sans
14489 File\SpecialChar menuseparator
14490 New from
14491 \family default
14492  
14493 \family sans
14494 Template
14495 \family default
14496 , then choose the 
14497 \family typewriter
14498 kluwer.lyx
14499 \family default
14500  template.
14501  This will give an (almost) empty document that includes the most common
14502  fields found in a manuscript and a short description of their use.
14503  As in most templates, simply overwrite the existing text (including the
14504  brackets, 
14505 \family typewriter
14506 <>
14507 \family default
14508 ) with the correct information.
14509 \end_layout
14510
14511 \begin_layout Subsection
14512 Preparing a paper for submission
14513 \end_layout
14514
14515 \begin_layout Standard
14516 As in the AAS\SpecialChar TeX
14517  package, before you submit your paper to a journal you must
14518  
14519 \begin_inset Quotes eld
14520 \end_inset
14521
14522 postprocess
14523 \begin_inset Quotes erd
14524 \end_inset
14525
14526  it as follows.
14527 \end_layout
14528
14529 \begin_layout Enumerate
14530 Export your paper as a \SpecialChar LaTeX
14531  file.
14532  To do this, click on 
14533 \family sans
14534 File\SpecialChar menuseparator
14535 Export\SpecialChar menuseparator
14536 \SpecialChar LaTeX
14537
14538 \family default
14539 .
14540  
14541 \end_layout
14542
14543 \begin_layout Enumerate
14544 Edit the resulting 
14545 \family typewriter
14546 .tex
14547 \family default
14548  file with a text editor and make the following changes
14549 \end_layout
14550
14551 \begin_deeper
14552 \begin_layout Enumerate
14553 remove the comment lines before the 
14554 \family typewriter
14555
14556 \backslash
14557 documentclass
14558 \family default
14559  command,
14560 \end_layout
14561
14562 \begin_layout Enumerate
14563 remove everything between (and including) the 
14564 \family typewriter
14565
14566 \backslash
14567 makeatletter
14568 \family default
14569  and 
14570 \family typewriter
14571
14572 \backslash
14573 makeatother
14574 \family default
14575  commands, except for any commands you specifically put into the \SpecialChar LaTeX
14576  preamble.
14577 \end_layout
14578
14579 \begin_layout Standard
14580 Save the resulting 
14581 \family typewriter
14582 .tex
14583 \family default
14584  file.
14585 \end_layout
14586
14587 \end_deeper
14588 \begin_layout Enumerate
14589 Run the 
14590 \family typewriter
14591 .tex
14592 \family default
14593  file through \SpecialChar LaTeX
14594  as many times as necessary (usually up to three).
14595 \end_layout
14596
14597 \begin_layout Enumerate
14598 View the resulting 
14599 \family typewriter
14600 .dvi
14601 \family default
14602  document using, e.
14603 \begin_inset space \thinspace{}
14604 \end_inset
14605
14606 g.
14607 \begin_inset space \space{}
14608 \end_inset
14609
14610
14611 \family sans
14612 xdvi
14613 \family default
14614 , and check if everything is OK (it should, if you didn't make any mistake).
14615 \end_layout
14616
14617 \begin_layout Subsection
14618 \begin_inset Quotes eld
14619 \end_inset
14620
14621 Peculiarities
14622 \begin_inset Quotes erd
14623 \end_inset
14624
14625  of the Kluwer package
14626 \begin_inset CommandInset label
14627 LatexCommand label
14628 name "subsec:kluwer_peculiarities"
14629
14630 \end_inset
14631
14632
14633 \end_layout
14634
14635 \begin_layout Standard
14636 The Kluwer package has the following 
14637 \begin_inset Quotes eld
14638 \end_inset
14639
14640 peculiarities
14641 \begin_inset Quotes erd
14642 \end_inset
14643
14644 .
14645 \end_layout
14646
14647 \begin_layout Enumerate
14648 It is possible to write multiple articles in the same \SpecialChar LaTeX
14649  file
14650 \begin_inset Foot
14651 status collapsed
14652
14653 \begin_layout Plain Layout
14654 I can't imagine any good reason to do this.
14655 \end_layout
14656
14657 \end_inset
14658
14659 .
14660  Each article must be included in the environment 
14661 \begin_inset Quotes eld
14662 \end_inset
14663
14664 article
14665 \begin_inset Quotes erd
14666 \end_inset
14667
14668 .
14669  Unfortunately, this environment cannot be omitted, even if you write just
14670  one article.
14671  Therefore, each article starts with the command 
14672 \family typewriter
14673
14674 \backslash
14675 begin{article}
14676 \family default
14677  and, obviously, ends with the command 
14678 \family typewriter
14679
14680 \backslash
14681 end{article}
14682 \family default
14683 .
14684  Although this can be implemented in \SpecialChar LyX
14685 , I didn't included it, since it looks
14686  ugly and can confuse the novice user.
14687  Therefore, you need to enter them directly and mark them as \SpecialChar LaTeX
14688  code (the
14689  well-known 
14690 \begin_inset Quotes eld
14691 \end_inset
14692
14693 \SpecialChar TeX
14694  code
14695 \begin_inset Quotes erd
14696 \end_inset
14697
14698 ).
14699 \end_layout
14700
14701 \begin_layout Enumerate
14702 Information given at the beginning of the article (i.
14703 \begin_inset space \thinspace{}
14704 \end_inset
14705
14706 e.
14707 \begin_inset space \space{}
14708 \end_inset
14709
14710 title, subtitle, author, institution, running title, running author, abstract
14711  and keywords) must be included in an environment called 
14712 \begin_inset Quotes eld
14713 \end_inset
14714
14715 opening
14716 \begin_inset Quotes erd
14717 \end_inset
14718
14719 .
14720  This is not implemented in \SpecialChar LyX
14721 , so you must enter title, subtitle etc.
14722 \begin_inset space ~
14723 \end_inset
14724
14725 between two \SpecialChar TeX
14726  code lines (
14727 \family typewriter
14728
14729 \backslash
14730 begin{opening}
14731 \family default
14732  and 
14733 \family typewriter
14734
14735 \backslash
14736 end{opening}
14737 \family default
14738 ).
14739 \end_layout
14740
14741 \begin_layout Enumerate
14742 According to the user manual, the label of each bibliography item must be
14743  written as 
14744 \family typewriter
14745
14746 \backslash
14747 protect
14748 \backslash
14749 citeauthoryear{
14750 \family default
14751 \emph on
14752 author(s)
14753 \family typewriter
14754 \emph default
14755 }{
14756 \family default
14757 \emph on
14758 year
14759 \family typewriter
14760 \emph default
14761 }
14762 \family default
14763 .
14764 \end_layout
14765
14766 \begin_layout Standard
14767 The 
14768 \family typewriter
14769 kluwer.lyx
14770 \family default
14771  template takes care of all these 
14772 \begin_inset Quotes eld
14773 \end_inset
14774
14775 peculiarities
14776 \begin_inset Quotes erd
14777 \end_inset
14778
14779 .
14780  If you start a new paper using this template you don't need to do anything
14781  special.
14782  Just 
14783 \end_layout
14784
14785 \begin_layout Enumerate
14786 don't delete the \SpecialChar TeX
14787  code included in the template, and
14788 \end_layout
14789
14790 \begin_layout Enumerate
14791 copy the example bibliography item included in the template and modify it
14792  as necessary to enter new bibliography items.
14793 \end_layout
14794
14795 \begin_layout Section
14796 Koma-Script
14797 \end_layout
14798
14799 \begin_layout Standard
14800 by 
14801 \noun on
14802 Bernd Rellermeyer
14803 \end_layout
14804
14805 \begin_layout Subsection
14806 Overview
14807 \end_layout
14808
14809 \begin_layout Standard
14810 The \SpecialChar LyX
14811  document classes 
14812 \emph on
14813 article (koma-script)
14814 \emph default
14815
14816 \emph on
14817 report (koma-script)
14818 \emph default
14819
14820 \emph on
14821 book
14822 \emph default
14823  
14824 \emph on
14825 (koma-script)
14826 \emph default
14827 , and 
14828 \emph on
14829 letter
14830 \emph default
14831  
14832 \emph on
14833 (koma-script)
14834 \emph default
14835  correspond to the \SpecialChar LaTeX
14836  document classes 
14837 \family typewriter
14838 scrartcl.cls
14839 \family default
14840
14841 \family typewriter
14842 scrreprt.cls
14843 \family default
14844
14845 \family typewriter
14846 scrbook.cls
14847 \family default
14848 , and 
14849 \family typewriter
14850 scrlettr.cls
14851 \family default
14852 , resp.
14853 \begin_inset space ~
14854 \end_inset
14855
14856 of the Koma-Script family.
14857  They are replacements for the standard document classes 
14858 \family typewriter
14859 article.cls
14860 \family default
14861
14862 \family typewriter
14863 report.cls
14864 \family default
14865
14866 \family typewriter
14867 book.cls
14868 \family default
14869  and 
14870 \family typewriter
14871 letter.cls
14872 \family default
14873 , resp., and fit better to European typography conventions in a number of
14874  points.
14875 \end_layout
14876
14877 \begin_layout Itemize
14878 Standard character size is 11pt in 
14879 \emph on
14880 article (koma-script)
14881 \emph default
14882
14883 \emph on
14884 report (koma-script)
14885 \emph default
14886 , and 
14887 \emph on
14888 book (koma-script)
14889 \emph default
14890 , and 12pt in 
14891 \emph on
14892 letter (koma-script)
14893 \emph default
14894 .
14895 \end_layout
14896
14897 \begin_layout Itemize
14898 Headings, labels of the description environment, and a number of elements
14899  of the 
14900 \emph on
14901 letter (koma-script)
14902 \emph default
14903  document class are set in a bold sans serif font.
14904 \begin_inset Foot
14905 status collapsed
14906
14907 \begin_layout Plain Layout
14908 There is a big difference between the bold sans serif old cm fonts and new
14909  ec fonts, especially in the appearance of headings.
14910  In comparison, the ec bold sans serif fonts look a bit thin.
14911  Here the \SpecialChar LaTeX
14912  package 
14913 \family typewriter
14914 cmsd.sty by
14915 \family default
14916  
14917 \shape smallcaps
14918 Walter Schmidt
14919 \shape default
14920  helps to produce the 
14921 \begin_inset Quotes eld
14922 \end_inset
14923
14924 usual
14925 \begin_inset Quotes erd
14926 \end_inset
14927
14928  appearance when using the ec fonts.
14929 \end_layout
14930
14931 \end_inset
14932
14933  The numbering of chapter headings is made in the same way as the numbering
14934  of section headings, that is without the extra line 
14935 \begin_inset Quotes eld
14936 \end_inset
14937
14938 Chapter\SpecialChar ldots
14939
14940 \begin_inset Quotes erd
14941 \end_inset
14942
14943 .
14944  In addition, the appearance of the headings can be modified by using a
14945  number of options (in \SpecialChar LyX
14946  to be entered in the field 
14947 \family sans
14948 Extra
14949 \begin_inset space ~
14950 \end_inset
14951
14952 Options
14953 \family default
14954  of the dialog 
14955 \family sans
14956 Layout\SpecialChar menuseparator
14957 Document
14958 \family default
14959 ).
14960  
14961 \end_layout
14962
14963 \begin_layout Itemize
14964 The main means in the Koma-Script document classes to design the type area
14965  are the options 
14966 \family sans
14967 BCOR
14968 \family default
14969  and 
14970 \family sans
14971 DIV
14972 \family default
14973  (in \SpecialChar LyX
14974  to be entered in the extra class options field in the dialog 
14975 \family sans
14976 Document\SpecialChar menuseparator
14977 Settings
14978 \family default
14979 ).
14980  They make a clearer modification of page margins possible as do the options
14981  of the dialog 
14982 \family sans
14983 Document\SpecialChar menuseparator
14984 Settings
14985 \family default
14986 .
14987  
14988 \end_layout
14989
14990 \begin_layout Itemize
14991 The \SpecialChar LaTeX
14992  document classes of the Koma-Script family define a number of additional
14993  commands.
14994  Those part of it which makes sense in \SpecialChar LyX
14995  is implemented in corresponding
14996  paragraph types.
14997 \end_layout
14998
14999 \begin_layout Standard
15000 Detailed descriptions of the \SpecialChar LaTeX
15001  document classes of the Koma-Script family
15002  can be found in the Koma-Script documentation 
15003 \emph on
15004 scrguide
15005 \emph default
15006  (German) and 
15007 \emph on
15008 scrguien
15009 \emph default
15010  (English).
15011 \end_layout
15012
15013 \begin_layout Subsection
15014 article (koma-script), report (koma-script), and book (koma-script)
15015 \end_layout
15016
15017 \begin_layout Standard
15018 The document classes 
15019 \emph on
15020 article (koma-script)
15021 \emph default
15022
15023 \emph on
15024 report (koma-script)
15025 \emph default
15026 , and 
15027 \emph on
15028 book
15029 \emph default
15030  
15031 \emph on
15032 (koma-script)
15033 \emph default
15034  are implemented in the layout files 
15035 \family typewriter
15036 scrartcl.layout
15037 \family default
15038
15039 \family typewriter
15040 scrreprt.layout
15041 \family default
15042 , and 
15043 \family typewriter
15044 scrbook.layout
15045 \family default
15046 , resp.
15047  They contain all the paragraph types of the corresponding standard document
15048  classes 
15049 \emph on
15050 article
15051 \emph default
15052
15053 \emph on
15054 report
15055 \emph default
15056 , and 
15057 \emph on
15058 book
15059 \emph default
15060 , resp., partly modified, with the exception of the \SpecialChar LyX
15061  specific 
15062 \family sans
15063 List
15064 \family default
15065 -type, which is replaced by the new 
15066 \family sans
15067 Labeling
15068 \family default
15069 -type having the same functionality.
15070  Beside the 
15071 \family sans
15072 Labeling
15073 \family default
15074 -Type there is a number of new paragraph types added.
15075  They are 
15076 \emph on
15077 not
15078 \emph default
15079  part of 
15080 \emph on
15081 letter (koma-script)
15082 \emph default
15083 .
15084 \end_layout
15085
15086 \begin_layout Itemize
15087
15088 \family sans
15089 Addpart, Addchap
15090 \family default
15091
15092 \family sans
15093 Addsec
15094 \family default
15095 : are equivalents to 
15096 \family sans
15097 Part*, Chapter*
15098 \family default
15099  and 
15100 \family sans
15101 Section*
15102 \family default
15103 , resp., additionally inserting an entry in the table of contents.
15104  
15105 \family sans
15106 Addpart
15107 \family default
15108  and 
15109 \family sans
15110 Addchap
15111 \family default
15112  are not contained in 
15113 \emph on
15114 article (koma-script)
15115 \emph default
15116 .
15117 \end_layout
15118
15119 \begin_layout Itemize
15120
15121 \family sans
15122 Addchap*
15123 \family default
15124
15125 \family sans
15126 Addsec*
15127 \family default
15128 : behave exactly as 
15129 \family sans
15130 Addchap
15131 \family default
15132  and 
15133 \family sans
15134 Addsec
15135 \family default
15136 , resp., additionally clearing running heads.
15137  
15138 \family sans
15139 Addchap*
15140 \family default
15141  is not contained in 
15142 \emph on
15143 article (koma-script)
15144 \emph default
15145 .
15146 \begin_inset Foot
15147 status collapsed
15148
15149 \begin_layout Plain Layout
15150 There is also an 
15151 \family typewriter
15152
15153 \backslash
15154 addpart*
15155 \family default
15156  command in 
15157 \emph on
15158 book (koma-script)
15159 \emph default
15160  and in 
15161 \emph on
15162 report (koma-script)
15163 \emph default
15164 , but since this is identical to 
15165 \family sans
15166 Part*
15167 \family default
15168 , is has not been implemented in \SpecialChar LyX
15169 .
15170 \end_layout
15171
15172 \end_inset
15173
15174
15175 \end_layout
15176
15177 \begin_layout Itemize
15178
15179 \family sans
15180 Minisec
15181 \family default
15182 : generates a heading directly above the following paragraph in the standard
15183  character size without affecting the structure of the document.
15184 \end_layout
15185
15186 \begin_layout Itemize
15187
15188 \family sans
15189 Captionabove
15190 \family default
15191  and 
15192 \family sans
15193 Captionbelow
15194 \family default
15195  are special captions which respect the different space settings needed
15196  for captions placed above or below an element (if you follow strict typographic
15197  rules, you might want to place table captions always above the table).
15198  You can also use the class option 
15199 \family typewriter
15200 tablecaptionsabove
15201 \family default
15202 , which will switch 
15203 \family sans
15204 caption
15205 \family default
15206  to 
15207 \family sans
15208 captionabove
15209 \family default
15210  for tables and 
15211 \family sans
15212 captionbelow
15213 \family default
15214  for figures.
15215  You need at least Koma-Script version 2.8q to use this.
15216 \end_layout
15217
15218 \begin_layout Itemize
15219
15220 \family sans
15221 Dictum
15222 \family default
15223 : can be used to set a bonmot, e.
15224 \begin_inset space \thinspace{}
15225 \end_inset
15226
15227 g.
15228 \begin_inset space \space{}
15229 \end_inset
15230
15231 at the beginning of a chapter.
15232  If you use the optional argument (
15233 \family sans
15234 Insert\SpecialChar menuseparator
15235
15236 \change_deleted -712698321 1501163301
15237 Short
15238 \begin_inset space ~
15239 \end_inset
15240
15241 Title
15242 \change_inserted -712698321 1501163306
15243 Dictum
15244 \begin_inset space ~
15245 \end_inset
15246
15247 Author
15248 \change_unchanged
15249
15250 \family default
15251 ), you can insert the dictum's author there.
15252  Dictum and author are separated by a line.
15253  You need at least Koma-Script version 2.8q to use this.
15254  
15255 \family sans
15256 Dictum
15257 \family default
15258  is not contained in 
15259 \emph on
15260 article (koma-script)
15261 \emph default
15262 .
15263 \end_layout
15264
15265 \begin_layout Standard
15266 The following types, together with the standard types 
15267 \family sans
15268 Title
15269 \family default
15270
15271 \family sans
15272 Author
15273 \family default
15274 , and 
15275 \family sans
15276 Date
15277 \family default
15278 , form the title area of the document.
15279  They must be entered ahead of the first 
15280 \begin_inset Quotes eld
15281 \end_inset
15282
15283 ordinary
15284 \begin_inset Quotes erd
15285 \end_inset
15286
15287  paragraph.
15288 \begin_inset Foot
15289 status collapsed
15290
15291 \begin_layout Plain Layout
15292 The corresponding \SpecialChar LaTeX
15293  commands must appear before the 
15294 \family typewriter
15295
15296 \backslash
15297 maketitle
15298 \family default
15299  command.
15300 \end_layout
15301
15302 \end_inset
15303
15304  When such a type is used more than once, the latter usage overwrites the
15305  former one, that means, for every type only the latest usage is valid.
15306  The order of the different types however has, like 
15307 \family sans
15308 Title
15309 \family default
15310
15311 \family sans
15312 Author
15313 \family default
15314 , and 
15315 \family sans
15316 Date
15317 \family default
15318 , no effect on the appearance of the produced document.
15319 \end_layout
15320
15321 \begin_layout Itemize
15322
15323 \family sans
15324 Subject
15325 \family default
15326 : produces a centered paragraph above the ordinary title (
15327 \family sans
15328 Title
15329 \family default
15330
15331 \family sans
15332 Author
15333 \family default
15334
15335 \family sans
15336 Date
15337 \family default
15338 ) for the subject of the document.
15339 \end_layout
15340
15341 \begin_layout Itemize
15342
15343 \family sans
15344 Publishers
15345 \family default
15346 : produces a centered paragraph below the ordinary title (
15347 \family sans
15348 Title
15349 \family default
15350
15351 \family sans
15352 Author
15353 \family default
15354
15355 \family sans
15356 Date
15357 \family default
15358 ) for the publishers' name.
15359 \end_layout
15360
15361 \begin_layout Itemize
15362
15363 \family sans
15364 Dedication
15365 \family default
15366 : in 
15367 \emph on
15368 report (koma-script)
15369 \emph default
15370  and 
15371 \emph on
15372 book (koma-script)
15373 \emph default
15374  produces a centered paragraph on its own page behind the title page, or
15375  in 
15376 \emph on
15377 article (koma-script)
15378 \emph default
15379  produces a centered paragraph below the ordinary title (
15380 \family sans
15381 Title
15382 \family default
15383
15384 \family sans
15385 Author
15386 \family default
15387
15388 \family sans
15389 Date
15390 \family default
15391
15392 \family sans
15393 Publishers
15394 \family default
15395 ) for a dedication.
15396 \end_layout
15397
15398 \begin_layout Itemize
15399
15400 \family sans
15401 Titlehead
15402 \family default
15403 : produces a left aligned paragraph above the ordinary title (
15404 \family sans
15405 Title
15406 \family default
15407
15408 \family sans
15409 Author
15410 \family default
15411
15412 \family sans
15413 Date
15414 \family default
15415
15416 \family sans
15417 Subject
15418 \family default
15419 ) for a document`s head.
15420 \end_layout
15421
15422 \begin_layout Itemize
15423
15424 \family sans
15425 Uppertitleback
15426 \family default
15427 : produces in a double-sided print in 
15428 \emph on
15429 report (koma-script)
15430 \emph default
15431  and 
15432 \emph on
15433 book (koma-script)
15434 \emph default
15435  a left-aligned paragraph at the top of the title page`s back or has no
15436  effect in a single-sided print or in 
15437 \emph on
15438 article (koma-script)
15439 \emph default
15440 .
15441 \end_layout
15442
15443 \begin_layout Itemize
15444
15445 \family sans
15446 Lowertitleback
15447 \family default
15448 : produces in a double-sided print in 
15449 \emph on
15450 report (koma-script)
15451 \emph default
15452  and 
15453 \emph on
15454 book (koma-script)
15455 \emph default
15456  a left-aligned paragraph at the bottom of the title page`s back or has
15457  no effect in a single-sided print or in 
15458 \emph on
15459 article (koma-script)
15460 \emph default
15461 .
15462 \end_layout
15463
15464 \begin_layout Itemize
15465
15466 \family sans
15467 Extratitle
15468 \family default
15469 : produces a special 
15470 \begin_inset Quotes eld
15471 \end_inset
15472
15473 dirty
15474 \begin_inset Quotes erd
15475 \end_inset
15476
15477  page ahead of the actual document containing a paragraph without special
15478  formatting.
15479 \end_layout
15480
15481 \begin_layout Standard
15482 The layout files for the document classes 
15483 \emph on
15484 article (koma-script)
15485 \emph default
15486
15487 \emph on
15488 report (koma-script)
15489 \emph default
15490 , and 
15491 \emph on
15492 book (koma-script)
15493 \emph default
15494  do include the file 
15495 \family typewriter
15496 scrmacros.inc
15497 \family default
15498 .
15499  This is thought of as a place to define your own types.
15500  Copy scrmacros
15501 \family typewriter
15502 .inc
15503 \family default
15504  in your personal layout directory and edit the file!
15505 \end_layout
15506
15507 \begin_layout Subsection
15508 letter (koma-script)
15509 \end_layout
15510
15511 \begin_layout Description
15512
15513 \change_inserted -712698321 1501163945
15514 Note: This section discusses the obsolete 
15515 \family sans
15516 KOMA-Script-Letter (v.
15517 \begin_inset space ~
15518 \end_inset
15519
15520 1)
15521 \family default
15522 , which is not even included anymore in recent KOMA releases.
15523  Please refer to the next section for the current KOMA-Script-Letter class
15524  (v.
15525 \begin_inset space ~
15526 \end_inset
15527
15528 2)!
15529 \end_layout
15530
15531 \begin_layout Standard
15532 \noindent
15533 The document class 
15534 \emph on
15535 letter (koma-script)
15536 \emph default
15537  is implemented in the layout file 
15538 \family typewriter
15539 scrlettr.layout
15540 \family default
15541 .
15542  It contains all the paragraph types of the corresponding standard document
15543  class 
15544 \emph on
15545 letter
15546 \emph default
15547 , partly modified, with the exception of the \SpecialChar LyX
15548  specific types 
15549 \family sans
15550 \SpecialChar LyX
15551 -Code
15552 \family default
15553  and 
15554 \family sans
15555 Comment
15556 \family default
15557  and the 
15558 \family sans
15559 List
15560 \family default
15561  type, which is replaced by the new 
15562 \family sans
15563 Labeling
15564 \family default
15565  type.
15566  In addition, it contains, in contrast to the standard document class, the
15567  standard types 
15568 \family sans
15569 \SpecialChar LaTeX
15570
15571 \family default
15572
15573 \family sans
15574 Quotation
15575 \family default
15576
15577 \family sans
15578 Quote
15579 \family default
15580 , and 
15581 \family sans
15582 Verse
15583 \family default
15584 .
15585  Furthermore, there are a number of new letter specific types.
15586 \end_layout
15587
15588 \begin_layout Standard
15589 The appearance of the letter produced by this document class can be controlled
15590  by a number of \SpecialChar LaTeX
15591  commands, which you can put in the \SpecialChar LaTeX
15592  preamble.
15593 \begin_inset Foot
15594 status collapsed
15595
15596 \begin_layout Plain Layout
15597 For example, the standard appearance of the letter`s heading, consisting
15598  of name and address, is quite self-willed.
15599  An 
15600 \begin_inset Quotes eld
15601 \end_inset
15602
15603 ordinary
15604 \begin_inset Quotes erd
15605 \end_inset
15606
15607  heading is produced by the following \SpecialChar LaTeX
15608  commands in the preamble:
15609 \end_layout
15610
15611 \begin_layout LyX-Code
15612
15613 \backslash
15614 firsthead{
15615 \backslash
15616 parbox[b]{
15617 \backslash
15618 textwidth}
15619 \end_layout
15620
15621 \begin_layout LyX-Code
15622   {
15623 \backslash
15624 ignorespaces 
15625 \backslash
15626 fromname
15627 \backslash
15628
15629 \backslash
15630  
15631 \backslash
15632 ignorespaces 
15633 \backslash
15634 fromaddress}} 
15635 \end_layout
15636
15637 \begin_layout LyX-Code
15638
15639 \backslash
15640 nexthead{
15641 \backslash
15642 parbox[b]{
15643 \backslash
15644 textwidth}
15645 \end_layout
15646
15647 \begin_layout LyX-Code
15648   {
15649 \backslash
15650 ignorespaces 
15651 \backslash
15652 fromname 
15653 \backslash
15654 hfill 
15655 \backslash
15656 ignorespaces 
15657 \backslash
15658 pagename
15659 \backslash
15660  
15661 \backslash
15662 thepage}}
15663 \end_layout
15664
15665 \end_inset
15666
15667  A detailed German description of such \SpecialChar LaTeX
15668  commands can be found in the Koma-Script
15669  documentation 
15670 \emph on
15671 scrguide
15672 \emph default
15673 .
15674  With it, the letter's author can produce his personal letter layout.
15675 \end_layout
15676
15677 \begin_layout Standard
15678 The types 
15679 \family sans
15680 Letter
15681 \family default
15682  and 
15683 \family sans
15684 Opening
15685 \family default
15686  define the beginning of the letter and must be used in every letter.
15687  To emphasize them in the \SpecialChar LyX
15688  document class, they are marked with the letter
15689  
15690 \shape italic
15691 L
15692 \shape default
15693  or 
15694 \shape italic
15695 O
15696 \shape default
15697 , resp.
15698 \begin_inset space ~
15699 \end_inset
15700
15701 in the left margin.
15702  It is possible to write any number of letters in one file.
15703  An 
15704 \family sans
15705 Opening
15706 \family default
15707  type produces a new letter using the same addressee and a 
15708 \family sans
15709 Letter
15710 \family default
15711  type produces a new addressee.
15712  The types 
15713 \family sans
15714 Closing
15715 \family default
15716
15717 \family sans
15718 PS
15719 \family default
15720
15721 \family sans
15722 CC
15723 \family default
15724 , and 
15725 \family sans
15726 Encl
15727 \family default
15728  are ordinary paragraph types and can also be used several times in one
15729  and the same letter.
15730 \end_layout
15731
15732 \begin_layout Itemize
15733
15734 \family sans
15735 Letter
15736 \family default
15737 : produces a paragraph for the addressee and implicitly defines the beginning
15738  of the letter.
15739 \end_layout
15740
15741 \begin_layout Itemize
15742
15743 \family sans
15744 Opening
15745 \family default
15746 : produces a paragraph for the form of address and implicitly produces a
15747  new letter.
15748 \end_layout
15749
15750 \begin_layout Itemize
15751
15752 \family sans
15753 Closing
15754 \family default
15755 : produces a paragraph for a close.
15756 \end_layout
15757
15758 \begin_layout Itemize
15759
15760 \family sans
15761 PS
15762 \family default
15763 : produces a paragraph for a postscript.
15764 \end_layout
15765
15766 \begin_layout Itemize
15767
15768 \family sans
15769 CC
15770 \family default
15771 : produces a paragraph for a distribution list.
15772 \end_layout
15773
15774 \begin_layout Itemize
15775
15776 \family sans
15777 Encl
15778 \family default
15779 : produces a paragraph for enclosures.
15780 \end_layout
15781
15782 \begin_layout Standard
15783 The types 
15784 \family sans
15785 Name
15786 \family default
15787
15788 \family sans
15789 Signature
15790 \family default
15791
15792 \family sans
15793 Address
15794 \family default
15795
15796 \family sans
15797 Telephone
15798 \family default
15799
15800 \family sans
15801 Place
15802 \family default
15803
15804 \family sans
15805 Backaddress
15806 \family default
15807
15808 \family sans
15809 Specialmail
15810 \family default
15811
15812 \family sans
15813 Location
15814 \family default
15815
15816 \family sans
15817 Title
15818 \family default
15819 , and 
15820 \family sans
15821 Subject
15822 \family default
15823  are input types provided with a label to enter information, which will
15824  be processed by the document class.
15825 \begin_inset Foot
15826 status collapsed
15827
15828 \begin_layout Plain Layout
15829 It could be seen as a matter of inconsequence, that the types 
15830 \family sans
15831 Letter
15832 \family default
15833  and 
15834 \family sans
15835 Opening
15836 \family default
15837  described above are not such input types as well.
15838  Because of the special meaning of those types, however, I have implemented
15839  them as ordinary paragraph types with a one letter mark in the left margin.
15840  Moreover, it would affect my feeling of symmetry, if the 
15841 \family sans
15842 Opening
15843 \family default
15844  type and the 
15845 \family sans
15846 Closing
15847 \family default
15848  type had such a serious different appearance.
15849 \end_layout
15850
15851 \end_inset
15852
15853  The types must be used ahead of the corresponding 
15854 \family sans
15855 Opening
15856 \family default
15857  type.
15858 \end_layout
15859
15860 \begin_layout Standard
15861 An implementation of these types in a WYSIWYG fashion does not seem to make
15862  sense, because the real appearance of the produced letter does not only
15863  depend on the usage of the particular type, but also on other factors.
15864  For example, a signature entered in the 
15865 \family sans
15866 Signature
15867 \family default
15868  type will in the standard behavior appear in the produced letter only,
15869  when in the same letter also a 
15870 \family sans
15871 Closing
15872 \family default
15873  type is used.
15874  The entered value of the 
15875 \family sans
15876 Telephone
15877 \family default
15878  type will in the standard behavior not appear in the produced letter at
15879  all.
15880  The possibility to design the letter`s heading freely is already indicated
15881  in a footnote above.
15882 \end_layout
15883
15884 \begin_layout Standard
15885 The input types can also be used as empty paragraphs.
15886  This makes sense e.
15887 \begin_inset space \thinspace{}
15888 \end_inset
15889
15890 g.
15891 \begin_inset space \space{}
15892 \end_inset
15893
15894 for the 
15895 \family sans
15896 Signature
15897 \family default
15898  type.
15899  If the 
15900 \family sans
15901 Signature
15902 \family default
15903  type is not used at all, in the standard behavior the value of the 
15904 \family sans
15905 Name
15906 \family default
15907  type is used as signature, whereas if an empty 
15908 \family sans
15909 Signature
15910 \family default
15911  type is used, no signature value is defined.
15912 \end_layout
15913
15914 \begin_layout Standard
15915 By using the input types it is possible to write a letter template, containing
15916  filled input types with your personal dates (name, address, etc.) and empty
15917  input types for other dates you want to enter.
15918 \end_layout
15919
15920 \begin_layout Itemize
15921
15922 \family sans
15923 Name
15924 \family default
15925 : sender's name, in the standard behavior appears as a centered paragraph
15926  in small caps in the letter`s heading.
15927 \end_layout
15928
15929 \begin_layout Itemize
15930
15931 \family sans
15932 Signature
15933 \family default
15934 : sender's signature, in the standard behavior appears below the 
15935 \family sans
15936 Closing
15937 \family default
15938  type.
15939  If no 
15940 \family sans
15941 Signature
15942 \family default
15943  type is used, the value of the 
15944 \family sans
15945 Name
15946 \family default
15947  type appears instead.
15948 \end_layout
15949
15950 \begin_layout Itemize
15951
15952 \family sans
15953 Address
15954 \family default
15955 : sender's address, in the standard behavior appears in a centered paragraph
15956  in the letter`s heading below the sender's name.
15957 \end_layout
15958
15959 \begin_layout Itemize
15960
15961 \family sans
15962 Telephone
15963 \family default
15964 : sender's telephone number, in the standard behavior only sets the \SpecialChar LaTeX
15965  variable
15966  
15967 \family typewriter
15968
15969 \backslash
15970 telephonenum
15971 \family default
15972 .
15973 \end_layout
15974
15975 \begin_layout Itemize
15976
15977 \family sans
15978 Place
15979 \family default
15980 : place of the letter`s making.
15981 \end_layout
15982
15983 \begin_layout Itemize
15984
15985 \family sans
15986 Date
15987 \family default
15988 : date of the letter`s making.
15989  
15990 \family sans
15991 Place
15992 \family default
15993  and 
15994 \family sans
15995 Date
15996 \family default
15997 , in the standard behavior, produce the place and the date in a right-aligned
15998  line below the addressee's field.
15999  If an empty 
16000 \family sans
16001 Date
16002 \family default
16003  type is used, neither place nor date appear, independent of the value of
16004  the 
16005 \family sans
16006 Place
16007 \family default
16008  type.
16009  If no 
16010 \family sans
16011 Date
16012 \family default
16013  type is used, the date of the letter `s production is used.
16014 \end_layout
16015
16016 \begin_layout Itemize
16017
16018 \family sans
16019 Backaddress
16020 \family default
16021 : sender`s back address, in the standard behavior appears above the addressee's
16022  field in a small sans serif font.
16023 \end_layout
16024
16025 \begin_layout Itemize
16026
16027 \family sans
16028 Specialmail
16029 \family default
16030 : special mail information, in the standard behavior appears underlined
16031  above the addressee's field below the back address.
16032 \end_layout
16033
16034 \begin_layout Itemize
16035
16036 \family sans
16037 Location
16038 \family default
16039 : additional information, in the standard behavior appears on right side
16040  below the addressee`s field.
16041 \end_layout
16042
16043 \begin_layout Itemize
16044
16045 \family sans
16046 Title
16047 \family default
16048 : the letter's title, in the standard behavior appears in a big, bold, sans
16049  serif font above the subject.
16050 \end_layout
16051
16052 \begin_layout Itemize
16053
16054 \family sans
16055 Subject
16056 \family default
16057 : the letter's subject, in the standard behavior appears in a bold font
16058  above the 
16059 \family sans
16060 Opening
16061 \family default
16062  paragraph.
16063 \end_layout
16064
16065 \begin_layout Standard
16066 The types 
16067 \family sans
16068 Yourref
16069 \family default
16070
16071 \family sans
16072 Yourmail
16073 \family default
16074
16075 \family sans
16076 Myref
16077 \family default
16078
16079 \family sans
16080 Customer
16081 \family default
16082 , and 
16083 \family sans
16084 Invoice
16085 \family default
16086  produce a business letter like line above the 
16087 \family sans
16088 Title
16089 \family default
16090  line containing the fields 
16091 \begin_inset Quotes eld
16092 \end_inset
16093
16094 Your ref.
16095 \begin_inset Quotes erd
16096 \end_inset
16097
16098
16099 \begin_inset Quotes eld
16100 \end_inset
16101
16102 Your letter of
16103 \begin_inset Quotes erd
16104 \end_inset
16105
16106
16107 \begin_inset Quotes eld
16108 \end_inset
16109
16110 Our ref.
16111 \begin_inset Quotes erd
16112 \end_inset
16113
16114
16115 \begin_inset Quotes eld
16116 \end_inset
16117
16118 Customer no.
16119 \begin_inset Quotes erd
16120 \end_inset
16121
16122
16123 \begin_inset Quotes eld
16124 \end_inset
16125
16126 Invoice no.
16127 \begin_inset Quotes erd
16128 \end_inset
16129
16130 , and 
16131 \begin_inset Quotes eld
16132 \end_inset
16133
16134 Date
16135 \begin_inset Quotes erd
16136 \end_inset
16137
16138 .
16139  For the date field, the value of the 
16140 \family sans
16141 Date
16142 \family default
16143  type is used.
16144  If one of these 
16145 \begin_inset Quotes eld
16146 \end_inset
16147
16148 business letter types
16149 \begin_inset Quotes erd
16150 \end_inset
16151
16152  is used, the value of the 
16153 \family sans
16154 Place
16155 \family default
16156  type however does not appear, but only the \SpecialChar LaTeX
16157  variable 
16158 \family typewriter
16159
16160 \backslash
16161 fromplace
16162 \family default
16163  is set.
16164  The ordinary output of place and date in a right-aligned line below the
16165  addressee`s field is suppressed.
16166  The types are implemented as input types provided with a label and must
16167  be used ahead of the corresponding 
16168 \family sans
16169 Opening
16170 \family default
16171  type.
16172 \end_layout
16173
16174 \begin_layout Itemize
16175
16176 \family sans
16177 Yourref
16178 \family default
16179 : Your ref.
16180 \end_layout
16181
16182 \begin_layout Itemize
16183
16184 \family sans
16185 Yourmail
16186 \family default
16187 : Your letter of.
16188 \end_layout
16189
16190 \begin_layout Itemize
16191
16192 \family sans
16193 Myref
16194 \family default
16195 : Our ref.
16196 \end_layout
16197
16198 \begin_layout Itemize
16199
16200 \family sans
16201 Customer
16202 \family default
16203 : Customer no.
16204 \end_layout
16205
16206 \begin_layout Itemize
16207
16208 \family sans
16209 Invoice
16210 \family default
16211 : Invoice no.
16212 \end_layout
16213
16214 \begin_layout Subsection
16215 The new letter class: letter (koma-script v.2)
16216 \end_layout
16217
16218 \begin_layout Standard
16219 by 
16220 \noun on
16221 Jürgen Spitzmüller
16222 \end_layout
16223
16224 \begin_layout Standard
16225 \begin_inset VSpace medskip
16226 \end_inset
16227
16228
16229 \end_layout
16230
16231 \begin_layout Standard
16232 \noindent
16233 Koma-Script version 2.8 has introduced a new letter class 
16234 \family typewriter
16235 scrlttr2
16236 \family default
16237  which supersedes the now unsupported 
16238 \family typewriter
16239 scrlettr
16240 \family default
16241 .
16242  It has — on the \SpecialChar LaTeX
16243  side — a completely new interface and is not compatible
16244  with the old class.
16245  Therefore, \SpecialChar LyX
16246  supports both, though it is recommended you use the new class.
16247 \end_layout
16248
16249 \begin_layout Standard
16250 This class covers the same functionality as 
16251 \emph on
16252 letter (koma-script),
16253 \emph default
16254  and a few more.
16255  The basic items are 
16256 \family sans
16257 Address
16258 \family default
16259  (receiver's address, same as 
16260 \family sans
16261 Letter
16262 \family default
16263  in the old layout), 
16264 \family sans
16265 Opening
16266 \family default
16267 , and 
16268 \family sans
16269 Closing
16270 \family default
16271 .
16272  
16273 \family sans
16274 NextAddress
16275 \family default
16276  will start a new letter (i.
16277 \begin_inset space \thinspace{}
16278 \end_inset
16279
16280 e.
16281 \begin_inset space \space{}
16282 \end_inset
16283
16284 you can write several letters per document).
16285  New elements are sender's 
16286 \family sans
16287 E-Mail
16288 \family default
16289
16290 \family sans
16291 URL
16292 \family default
16293
16294 \family sans
16295 Fax
16296 \family default
16297
16298 \family sans
16299 Bank
16300 \family default
16301  and the possibility to use a 
16302 \family sans
16303 Logo
16304 \family default
16305  (via 
16306 \family sans
16307 Insert\SpecialChar menuseparator
16308 Graphics
16309 \family default
16310 ) in the header.
16311 \end_layout
16312
16313 \begin_layout Standard
16314 The biggest improvement is, though, that the letter's layout is configurable
16315  to meet almost any needs.
16316  This can be done via the preamble or with a special style file (Letter
16317  Class Option, extension 
16318 \family typewriter
16319 *.lco
16320 \family default
16321 ), that will be read in as a class option.
16322 \begin_inset Foot
16323 status collapsed
16324
16325 \begin_layout Plain Layout
16326 The KOMA package comes with some default 
16327 \family typewriter
16328 *.lco
16329 \family default
16330  files.
16331  There is, for instance, a 
16332 \family typewriter
16333 DIN.lco
16334 \family default
16335  file that follows german typesetting rules, or a 
16336 \family typewriter
16337 KOMAold.lco
16338 \family default
16339  that provides the default layout of the old 
16340 \family typewriter
16341 scrlettr
16342 \family default
16343  class.
16344  The latter can be loaded with the class option 
16345 \family typewriter
16346 KOMAold
16347 \family default
16348 , inserted via the 
16349 \family sans
16350 Layout\SpecialChar menuseparator
16351 Document\SpecialChar menuseparator
16352 Extra Options
16353 \family default
16354  field.
16355 \end_layout
16356
16357 \end_inset
16358
16359  Have a look at the 
16360 \emph on
16361 koma-letter2
16362 \emph default
16363  template that is included in \SpecialChar LyX
16364  for examples.
16365  A detailed description is to be found in the Koma-Script documentation
16366  (
16367 \emph on
16368 scrguide
16369 \emph default
16370 ).
16371 \end_layout
16372
16373 \begin_layout Subsection
16374 Problems
16375 \end_layout
16376
16377 \begin_layout Standard
16378 Visualizing the Koma-Script document classes in \SpecialChar LyX
16379 , the \SpecialChar LyX
16380  internals cause some
16381  problems.
16382 \end_layout
16383
16384 \begin_layout Itemize
16385 The chapter number of a 
16386 \family sans
16387 Chapter
16388 \family default
16389  type appears on a line of its own above the chapter heading instead of
16390  appearing in the same line ahead of it.
16391  The cause for that is the \SpecialChar LyX
16392  internal behavior for the labeltype 
16393 \family sans
16394 Counter_Chapter
16395 \family default
16396  in the layout file.
16397 \end_layout
16398
16399 \begin_layout Itemize
16400 The headings of the types 
16401 \family sans
16402 Addchap
16403 \family default
16404  and 
16405 \family sans
16406 Addsec
16407 \family default
16408  are only put in the 
16409 \begin_inset Quotes eld
16410 \end_inset
16411
16412 true
16413 \begin_inset Quotes erd
16414 \end_inset
16415
16416  \SpecialChar LaTeX
16417  table of contents, but not in the \SpecialChar LyX
16418  table of contents (
16419 \family sans
16420 Document\SpecialChar menuseparator
16421 Table
16422 \begin_inset space ~
16423 \end_inset
16424
16425 of
16426 \begin_inset space ~
16427 \end_inset
16428
16429 Contents
16430 \family default
16431 ).
16432 \end_layout
16433
16434 \begin_layout Itemize
16435 The paragraphs in a 
16436 \emph on
16437 letter
16438 \emph default
16439  document class appear in a skip separation mode, not indented.
16440  This is the standard behavior, no special \SpecialChar LaTeX
16441  commands are needed for that.
16442  But in the 
16443 \family sans
16444 Document\SpecialChar menuseparator
16445 Settings
16446 \family default
16447  dialog the corresponding radio button indicates 
16448 \family sans
16449 Indent
16450 \family default
16451 .
16452  A 
16453 \family sans
16454 Skip
16455 \family default
16456  value always has the effect that extra \SpecialChar LaTeX
16457  commands are inserted in the document
16458  to produce the gap, which is not what is wanted in this case.
16459 \end_layout
16460
16461 \begin_layout Section
16462 Memoir
16463 \end_layout
16464
16465 \begin_layout Standard
16466 By 
16467 \noun on
16468 Jürgen Spitzmüller
16469 \end_layout
16470
16471 \begin_layout Subsection
16472 Overview
16473 \end_layout
16474
16475 \begin_layout Standard
16476 Memoir is a very powerful and constantly evolving class.
16477  It has been designed with regard to fictional and non-fictional literature.
16478  Its aim is to let the user have maximum control over the typesetting of
16479  his document.
16480  Memoir is based on the standard book class, but it can also emulate the
16481  article class (see below).
16482 \end_layout
16483
16484 \begin_layout Standard
16485 Peter Wilson, the developer of Memoir, is known as the author of lots of
16486  useful packages in the \SpecialChar LaTeX
16487  world.
16488  Most of them have been merged with Memoir.
16489  Therefore, it is much easier to layout the table of contents, appendices,
16490  chapter designs and such.
16491  \SpecialChar LyX
16492 , though, does not support all of these goodies natively.
16493  Some of them might be added to forthcoming releases
16494 \begin_inset Foot
16495 status collapsed
16496
16497 \begin_layout Plain Layout
16498 You are invited to send suggestions to 
16499 \begin_inset Flex URL
16500 status collapsed
16501
16502 \begin_layout Plain Layout
16503
16504 lyx-devel@lists.lyx.org
16505 \end_layout
16506
16507 \end_inset
16508
16509 .
16510 \end_layout
16511
16512 \end_inset
16513
16514 , lots will probably never be supported, due to the limitations of \SpecialChar LyX
16515 's framework.
16516  Of course you can still use all features with the help of some native \SpecialChar LaTeX
16517
16518  commands (\SpecialChar TeX
16519  code
16520 \begin_inset Foot
16521 status collapsed
16522
16523 \begin_layout Plain Layout
16524 Cf.
16525 \begin_inset ERT
16526 status collapsed
16527
16528 \begin_layout Plain Layout
16529
16530
16531 \backslash
16532  
16533 \end_layout
16534
16535 \end_inset
16536
16537 section
16538 \begin_inset space ~
16539 \end_inset
16540
16541
16542 \begin_inset CommandInset ref
16543 LatexCommand ref
16544 reference "sec:Inserting-TeX-Code"
16545
16546 \end_inset
16547
16548  for details.
16549 \end_layout
16550
16551 \end_inset
16552
16553 ).
16554  In this section, we can only list those features that are natively supported
16555  by \SpecialChar LyX
16556 .
16557  For detailed descriptions (and for the rest of features) we recommend you
16558  have a look at the detailed manual of the Memoir class
16559 \begin_inset Foot
16560 status collapsed
16561
16562 \begin_layout Plain Layout
16563 Cf.
16564 \begin_inset ERT
16565 status collapsed
16566
16567 \begin_layout Plain Layout
16568
16569
16570 \backslash
16571  
16572 \end_layout
16573
16574 \end_inset
16575
16576
16577 \begin_inset Flex URL
16578 status collapsed
16579
16580 \begin_layout Plain Layout
16581
16582 CTAN:/macros/latex/memoir/memman.pdf
16583 \end_layout
16584
16585 \end_inset
16586
16587 .
16588 \end_layout
16589
16590 \end_inset
16591
16592 , which is not only a user guide for the class, but also both a comprehensive
16593  description on good typesetting and a superb example for good typesetting
16594  itself.
16595 \end_layout
16596
16597 \begin_layout Subsection
16598 Basic features and restrictions
16599 \end_layout
16600
16601 \begin_layout Standard
16602 Memoir supports basically all features of the standard book classes.
16603  There are, however, some differences, as follows:
16604 \end_layout
16605
16606 \begin_layout Description
16607 Font
16608 \begin_inset space ~
16609 \end_inset
16610
16611 sizes: Memoir has a broader range of font sizes: 9, 10, 11, 12, 14, 17
16612 \end_layout
16613
16614 \begin_layout Description
16615 Page
16616 \begin_inset space ~
16617 \end_inset
16618
16619 style: The fancy page style is not supported, due to a command clash between
16620  Memoir and the fancyhdr package (they both define a command with the same
16621  name, which confuses \SpecialChar LaTeX
16622 ).
16623  Instead, Memoir comes with a number of its own page styles (see 
16624 \change_deleted -712698321 1501165256
16625
16626 \family sans
16627 Layout\SpecialChar menuseparator
16628
16629 \change_unchanged
16630 Document\SpecialChar menuseparator
16631
16632 \change_inserted -712698321 1501165264
16633 Settings\SpecialChar menuseparator
16634
16635 \change_unchanged
16636 Page
16637 \begin_inset space ~
16638 \end_inset
16639
16640 Style
16641 \family default
16642 ).
16643  If you want to use these for the chapter pages, you have to use the command
16644  
16645 \family typewriter
16646
16647 \backslash
16648 chapterstyle
16649 \family default
16650  in the main text or in preamble (e.
16651 \begin_inset space \thinspace{}
16652 \end_inset
16653
16654 g.
16655 \begin_inset space \space{}
16656 \end_inset
16657
16658
16659 \family typewriter
16660
16661 \backslash
16662 chapterstyle{companion}
16663 \family default
16664 ).
16665 \end_layout
16666
16667 \begin_layout Description
16668 Sectioning: Sectionings (chapter, section, subsection etc.) come with an
16669  optional argument in the standard classes.
16670  With this, you can specify an alternative version of the title for the
16671  table of contents and the headers (for instance, if the title is too long).
16672  In \SpecialChar LyX
16673 , you can do this via 
16674 \family sans
16675 Insert\SpecialChar menuseparator
16676 Short
16677 \begin_inset space ~
16678 \end_inset
16679
16680 Title
16681 \family default
16682  at the beginning of a chapter/section.
16683  Memoir features a second optional argument and thus separates the table
16684  of contents from the header.
16685  You can define three variants of a title with this: one for the main text,
16686  one for the table of contents, and one for the headers.
16687  
16688 \change_deleted -712698321 1501165686
16689 Simply insert two optional arguments if you need this feature, the first
16690  one containing the short title for the Table of Contents, the second one
16691  containing an alternative short title for the headers
16692 \change_inserted -712698321 1501165708
16693 \SpecialChar LyX
16694  makes these available in form of specific 
16695 \family sans
16696 Short Title
16697 \family default
16698  variants in the 
16699 \family sans
16700 Insert
16701 \family default
16702  menu
16703 \change_unchanged
16704 .
16705 \end_layout
16706
16707 \begin_layout Description
16708 TOC/LOT/LOF: In the standard classes (and in many other classes), the table
16709  of contents, the list of figures and the list of table start a new page
16710  automatically.
16711  Memoir does not follow this route.
16712  You have to insert a page break yourself, if you want to have one.
16713 \end_layout
16714
16715 \begin_layout Description
16716 Titlepage: For some unknown reason, Memoir uses pagination on the title
16717  page (in the standard classes, title pages are 
16718 \begin_inset Quotes eld
16719 \end_inset
16720
16721 empty
16722 \begin_inset Quotes erd
16723 \end_inset
16724
16725 ).
16726  If you want an empty title page, type 
16727 \family typewriter
16728
16729 \backslash
16730 aliaspagestyle{title}{empty}
16731 \family default
16732  in the preamble.
16733 \end_layout
16734
16735 \begin_layout Description
16736 Article: With the class option 
16737 \emph on
16738 article
16739 \emph default
16740  (to be inserted in 
16741 \change_deleted -712698321 1501165976
16742
16743 \family sans
16744 Layout\SpecialChar menuseparator
16745
16746 \change_unchanged
16747 Document\SpecialChar menuseparator
16748
16749 \change_inserted -712698321 1501165986
16750 Settings\SpecialChar menuseparator
16751 Class Settings\SpecialChar menuseparator
16752
16753 \change_deleted -712698321 1501165988
16754 Extra
16755 \change_inserted -712698321 1501165989
16756 Custom
16757 \change_unchanged
16758
16759 \begin_inset space ~
16760 \end_inset
16761
16762 Options
16763 \family default
16764 ), you can emulate article style.
16765  That is, counters (footnotes, figures, tables etc.) will not be reset on
16766  new chapters, chapters don't start a new page (but are—in contrary to 
16767 \begin_inset Quotes eld
16768 \end_inset
16769
16770 real
16771 \begin_inset Quotes erd
16772 \end_inset
16773
16774  article classes—still allowed), parts, though, use their own page, as in
16775  book.
16776 \end_layout
16777
16778 \begin_layout Description
16779 Oldfontcommands: By default, Memoir does not allow the use of the deprecated
16780  font commands, which have been used in the old \SpecialChar LaTeX
16781  version 2.09 (e.
16782 \begin_inset space \thinspace{}
16783 \end_inset
16784
16785 g.
16786 \begin_inset space \space{}
16787 \end_inset
16788
16789
16790 \family typewriter
16791
16792 \backslash
16793 rm
16794 \family default
16795
16796 \family typewriter
16797
16798 \backslash
16799 it
16800 \family default
16801 ).
16802  It produces an error and stops \SpecialChar LaTeX
16803  whenever such a command appears.
16804  The class option 
16805 \emph on
16806 oldfontcommands
16807 \emph default
16808  reallows the commands and spits out warnings instead (which does at least
16809  not stop \SpecialChar LaTeX
16810 ).
16811  Since a lot of packages and particularly Bib\SpecialChar TeX
16812  style files are still using
16813  those commands, we have decided to use this option by default.
16814 \end_layout
16815
16816 \begin_layout Subsection
16817 Extra features
16818 \end_layout
16819
16820 \begin_layout Standard
16821 We will only describe the features supported by \SpecialChar LyX
16822  (which is not much currently).
16823  Please consult the Memoir manual
16824 \begin_inset Foot
16825 status collapsed
16826
16827 \begin_layout Plain Layout
16828 Cf.
16829 \begin_inset ERT
16830 status collapsed
16831
16832 \begin_layout Plain Layout
16833
16834
16835 \backslash
16836  
16837 \end_layout
16838
16839 \end_inset
16840
16841
16842 \begin_inset Flex URL
16843 status collapsed
16844
16845 \begin_layout Plain Layout
16846
16847 CTAN:/macros/latex/memoir/memman.pdf
16848 \end_layout
16849
16850 \end_inset
16851
16852 .
16853 \end_layout
16854
16855 \end_inset
16856
16857  for details.
16858 \end_layout
16859
16860 \begin_layout Description
16861 Abstract: You may wonder why an abstract is an extra feature.
16862  Well, it is in book class.
16863  Usually books don't have abstracts.
16864  Memoir, however, has.
16865  You can use it wherever and how often you like.
16866 \end_layout
16867
16868 \begin_layout Description
16869 Chapterprecis: You may know this older typesetting style: The contents of
16870  a chapter are summarized below the title and also in the table of contents
16871  (e.
16872 \begin_inset space \thinspace{}
16873 \end_inset
16874
16875 g.
16876 \begin_inset space \space{}
16877 \end_inset
16878
16879
16880 \emph on
16881 Our hero arrives in Troia; he loses some friends; he finds others
16882 \emph default
16883 ).
16884  Chapterprecis does exactly this.
16885  It is therefore only sensible below a chapter.
16886 \end_layout
16887
16888 \begin_layout Description
16889 Epigraph: An epigraph is a smart slogan or motto at the beginning of a chapter.
16890  The epigraph environment provides an elegant way of typesetting such a
16891  motto.
16892  The motto itself (text) and its 
16893 \change_inserted -712698321 1501166968
16894 (optional) 
16895 \change_unchanged
16896 author (source) are divided by a short line.
16897  
16898 \change_deleted -712698321 1501166972
16899 Unfortunately, we have to fool \SpecialChar LyX
16900  a bit here again, since the environment
16901  needs two arguments (text and source).
16902  In this case, we have to use curly brackets (in \SpecialChar TeX
16903  mode) between the two
16904  arguments: 
16905 \emph on
16906 <smart slogan>
16907 \emph default
16908  
16909 \family typewriter
16910 }{
16911 \family default
16912  
16913 \emph on
16914 <author of the slogan>
16915 \change_inserted -712698321 1501166996
16916
16917 \emph default
16918 The author (source) can be inserted via 
16919 \family sans
16920 Insert\SpecialChar menuseparator
16921 Epigraph Source
16922 \change_unchanged
16923
16924 \family default
16925 \emph on
16926 .
16927 \end_layout
16928
16929 \begin_layout Description
16930 Poemtitle: Memoir has lots of possibilities to typeset poetry (up to very
16931  complex figurative poems).
16932  \SpecialChar LyX
16933  can only support a few of them.
16934  One is poemtitle, which is a centered title for poems, which will also
16935  be added to the table of contents (verse is the standard environment for
16936  poems.
16937  Memoir has some enhanced versions of verse, but you need to use \SpecialChar TeX
16938  code,
16939  because they have to be nested inside regular verse environments, which
16940  is not possible with \SpecialChar LyX
16941 ).
16942 \end_layout
16943
16944 \begin_layout Description
16945 Poemtitle*: Same as poemtitle, but it adds no entry to the table of contents.
16946 \end_layout
16947
16948 \begin_layout Section
16949 Article (mwart), book (mwbk) and report (mwrep)
16950 \begin_inset Argument status
16951 status collapsed
16952
16953 \begin_layout Plain Layout
16954 The 
16955 \family typewriter
16956 mw
16957 \family default
16958  Classes
16959 \end_layout
16960
16961 \end_inset
16962
16963
16964 \end_layout
16965
16966 \begin_layout Standard
16967 by 
16968 \noun on
16969 Tomasz Luczak
16970 \end_layout
16971
16972 \begin_layout Standard
16973 The \SpecialChar LyX
16974  document classes 
16975 \emph on
16976 article (mwart)
16977 \emph default
16978
16979 \emph on
16980 report (mwrep)
16981 \emph default
16982  and 
16983 \emph on
16984 book
16985 \emph default
16986  
16987 \emph on
16988 (mwbk)
16989 \emph default
16990  correspond to the \SpecialChar LaTeX
16991  document classes 
16992 \family typewriter
16993 mwart.cls
16994 \family default
16995
16996 \family typewriter
16997 mwrep.cls
16998 \family default
16999  and 
17000 \family typewriter
17001 mwbk.cls
17002 \family default
17003 , resp.
17004  They are replacements for the standard document classes 
17005 \family typewriter
17006 article.cls
17007 \family default
17008
17009 \family typewriter
17010 report.cls
17011 \family default
17012  and 
17013 \family typewriter
17014 book.cls
17015 \family default
17016 , resp., and fit better to Polish typography conventions in a number of points.
17017  
17018 \end_layout
17019
17020 \begin_layout Standard
17021 Basic differences:
17022 \end_layout
17023
17024 \begin_layout Itemize
17025 Unnumbered titles (with star, e.
17026 \begin_inset space \thinspace{}
17027 \end_inset
17028
17029 g.
17030 \begin_inset space \space{}
17031 \end_inset
17032
17033
17034 \family sans
17035 Section*
17036 \family default
17037 ) are added into table of contents,
17038 \end_layout
17039
17040 \begin_layout Itemize
17041 Additional page styles:
17042 \end_layout
17043
17044 \begin_deeper
17045 \begin_layout Description
17046 uheadings header with separated lines,
17047 \end_layout
17048
17049 \begin_layout Description
17050 myheadings custom header, contents headers via commands: 
17051 \family typewriter
17052
17053 \backslash
17054 markright
17055 \family default
17056  and 
17057 \family typewriter
17058
17059 \backslash
17060 markboth
17061 \family default
17062 ,
17063 \end_layout
17064
17065 \begin_layout Description
17066 myuheadings custom header with separated lines,
17067 \end_layout
17068
17069 \begin_layout Description
17070 outer page number is placed on outer side of page
17071 \end_layout
17072
17073 \end_deeper
17074 \begin_layout Itemize
17075 Options 
17076 \end_layout
17077
17078 \begin_deeper
17079 \begin_layout Description
17080 rmheadings serif titles — default,
17081 \end_layout
17082
17083 \begin_layout Description
17084 sfheadings sansserif titles,
17085 \end_layout
17086
17087 \begin_layout Description
17088 authortitle on title page first placed is author next title — default,
17089 \end_layout
17090
17091 \begin_layout Description
17092 titleauthor on title page first placed is title next author,
17093 \end_layout
17094
17095 \begin_layout Description
17096 withmarginpar reserve place on page for margins.
17097 \end_layout
17098
17099 \end_deeper
17100 \begin_layout Section
17101 Paper
17102 \end_layout
17103
17104 \begin_layout Standard
17105 The document class 
17106 \family sans
17107 paper
17108 \family default
17109  provides an alternative to the standard 
17110 \family sans
17111 article
17112 \family default
17113  class.
17114  It provides similar functionality, but you might prefer this layout with
17115  sans serif sections, headings, and more.
17116 \end_layout
17117
17118 \begin_layout Section
17119 Rev\SpecialChar TeX
17120 4
17121 \end_layout
17122
17123 \begin_layout Standard
17124 by 
17125 \noun on
17126 Amir Karger
17127 \end_layout
17128
17129 \begin_layout Standard
17130 \begin_inset VSpace bigskip
17131 \end_inset
17132
17133
17134 \end_layout
17135
17136 \begin_layout Standard
17137 \noindent
17138 The 
17139 \family sans
17140 Revtex
17141 \begin_inset space ~
17142 \end_inset
17143
17144 4
17145 \family default
17146  textclass works with the American Physical Sociey's Rev\SpecialChar TeX
17147  4.0 (the 
17148 \begin_inset Formula $\beta$
17149 \end_inset
17150
17151  release of May, 1999) class.
17152 \end_layout
17153
17154 \begin_layout Standard
17155 \SpecialChar LyX
17156  has a 
17157 \family sans
17158 Revtex
17159 \family default
17160  textclass, which works with Rev\SpecialChar TeX
17161  3.1.
17162  However, v3.1 is basically obsolete, as it works with \SpecialChar LaTeX
17163  2.09.
17164  That means that it doesn't interact very well with \SpecialChar LyX
17165 , which requires \SpecialChar LaTeX2e
17166 , although
17167  it has been kludged to work.
17168  Since Rev\SpecialChar TeX
17169  4.0 has been designed to work much more cleanly with \SpecialChar LaTeX2e
17170 , \SpecialChar LyX
17171  with the
17172  
17173 \family sans
17174 Rev\SpecialChar TeX
17175
17176 \begin_inset space ~
17177 \end_inset
17178
17179 4
17180 \family default
17181  textclass should also be pretty easy to use.
17182 \end_layout
17183
17184 \begin_layout Standard
17185 These documents are supposed to be used in 
17186 \emph on
17187 addition
17188 \emph default
17189  to the Rev\SpecialChar TeX
17190  4.0 documents, so we don't describe any of the special Rev\SpecialChar TeX
17191  macros,
17192  and assume you'll know what to put in the preamble if necessary.
17193 \end_layout
17194
17195 \begin_layout Subsection
17196 Installation
17197 \end_layout
17198
17199 \begin_layout Standard
17200 All you need to do is install Rev\SpecialChar TeX
17201  4, as described in the package's README
17202  file.
17203  The package can be found at The Rev\SpecialChar TeX
17204  4 Web Site 
17205 \begin_inset Flex URL
17206 status collapsed
17207
17208 \begin_layout Plain Layout
17209
17210 http://publish.aps.org/revtex4/
17211 \end_layout
17212
17213 \end_inset
17214
17215 .
17216  Install it somewhere that \SpecialChar LaTeX
17217  can see it.
17218  Test it by trying to \SpecialChar LaTeX
17219  a short Rev\SpecialChar TeX
17220  4 document in some random directory (i.
17221 \begin_inset space \thinspace{}
17222 \end_inset
17223
17224 e.
17225 \begin_inset space \space{}
17226 \end_inset
17227
17228 not the directory where you installed the class file.) Then, if you reconfigure
17229  \SpecialChar LyX
17230 , it will find the class file and let you use the Rev\SpecialChar TeX
17231 4 textclass.
17232 \end_layout
17233
17234 \begin_layout Standard
17235 Probably the easiest way to get started is either to import a Rev\SpecialChar TeX
17236  4 document
17237  using 
17238 \family typewriter
17239 tex2lyx
17240 \family default
17241 , or to use the 
17242 \family sans
17243 Revtex
17244 \begin_inset space ~
17245 \end_inset
17246
17247 4
17248 \family default
17249  template, found in the templates directory.
17250 \end_layout
17251
17252 \begin_layout Subsection
17253 Preamble Matter
17254 \end_layout
17255
17256 \begin_layout Standard
17257 Optional arguments to 
17258 \family typewriter
17259
17260 \backslash
17261 documentclass
17262 \family default
17263 , like 
17264 \begin_inset Quotes eld
17265 \end_inset
17266
17267 preprint
17268 \begin_inset Quotes erd
17269 \end_inset
17270
17271  and 
17272 \begin_inset Quotes eld
17273 \end_inset
17274
17275 aps
17276 \begin_inset Quotes erd
17277 \end_inset
17278
17279 , go in the 
17280 \family sans
17281 Extra
17282 \begin_inset space ~
17283 \end_inset
17284
17285 Options
17286 \family default
17287  field in the 
17288 \family sans
17289 Document
17290 \begin_inset space ~
17291 \end_inset
17292
17293 Layout
17294 \family default
17295  dialog, as usual.
17296  Remember that in Rev\SpecialChar TeX
17297 , at least one optional argument is required! 
17298 \end_layout
17299
17300 \begin_layout Standard
17301 Other preamble matter, like 
17302 \family typewriter
17303
17304 \backslash
17305 draft
17306 \family default
17307  etc.
17308 \begin_inset space ~
17309 \end_inset
17310
17311 goes in the 
17312 \family sans
17313 \SpecialChar LaTeX
17314
17315 \begin_inset space ~
17316 \end_inset
17317
17318 Preamble
17319 \family default
17320  dialog, also as usual.
17321 \end_layout
17322
17323 \begin_layout Subsection
17324 Layouts
17325 \end_layout
17326
17327 \begin_layout Standard
17328 The layouts basically correspond to the commands in Rev\SpecialChar TeX
17329 4.0.
17330  For example, the Email layout corresponds to 
17331 \family typewriter
17332
17333 \backslash
17334 email{}
17335 \family default
17336 .
17337  Note that (at least as of Rev\SpecialChar TeX
17338  4.0 Beta), the 
17339 \family sans
17340 Address
17341 \family default
17342  and 
17343 \family sans
17344 Affiliation
17345 \family default
17346  layouts are exactly equivalent, so you shouldn't need to use both.
17347 \begin_inset Foot
17348 status collapsed
17349
17350 \begin_layout Plain Layout
17351 In case you're curious, both were included so that 
17352 \family typewriter
17353 tex2lyx
17354 \family default
17355  would be able to translate both 
17356 \family typewriter
17357
17358 \backslash
17359 address
17360 \family default
17361  and 
17362 \family typewriter
17363
17364 \backslash
17365 affiliation
17366 \family default
17367 .
17368 \end_layout
17369
17370 \end_inset
17371
17372
17373 \end_layout
17374
17375 \begin_layout Subsection
17376 Important Notes
17377 \end_layout
17378
17379 \begin_layout Standard
17380 There are a couple of important unique aspects of Rev\SpecialChar TeX
17381  4 which might cause
17382  bugs that will be even more confusing in \SpecialChar LyX
17383 .
17384 \end_layout
17385
17386 \begin_layout Standard
17387 In Rev\SpecialChar TeX
17388 , the 
17389 \family typewriter
17390
17391 \backslash
17392 thanks
17393 \family default
17394  command goes 
17395 \emph on
17396 outside
17397 \emph default
17398  the 
17399 \family typewriter
17400
17401 \backslash
17402 author
17403 \family default
17404  command.
17405  The \SpecialChar LyX
17406  equivalent is that there is a separate Thanks layout.
17407  Do 
17408 \emph on
17409 not
17410 \emph default
17411  write footnotes in the 
17412 \family sans
17413 Author
17414 \family default
17415  layout, or weird things may happen.
17416  See the Rev\SpecialChar TeX
17417  4 documentation for more details.
17418 \end_layout
17419
17420 \begin_layout Standard
17421 Also, the 
17422 \family sans
17423 Author
17424 \begin_inset space ~
17425 \end_inset
17426
17427 Email
17428 \family default
17429
17430 \family sans
17431 Author
17432 \begin_inset space ~
17433 \end_inset
17434
17435 URL
17436 \family default
17437 , and 
17438 \family sans
17439 Thanks
17440 \family default
17441  layouts must be placed 
17442 \emph on
17443 in between
17444 \emph default
17445  the 
17446 \family sans
17447 Author
17448 \family default
17449  layout and the corresponding 
17450 \family sans
17451 Address
17452 \family default
17453  (or equivalent 
17454 \family sans
17455 Affiliation
17456 \family default
17457 ) layout.
17458  If you put the 
17459 \family sans
17460 Thanks
17461 \family default
17462  after the 
17463 \family sans
17464 Address
17465 \family default
17466 , the \SpecialChar LaTeX
17467  won't compile.
17468 \end_layout
17469
17470 \begin_layout Subsection
17471
17472 \change_deleted -712698321 1501168252
17473 Drawbacks
17474 \end_layout
17475
17476 \begin_layout Standard
17477
17478 \change_deleted -712698321 1501168252
17479 The main problem with this layout is that you can't use the optional arguments
17480  to layouts like Email and Title.
17481  (The problem is not unique to this layout; you can't use optional arguments
17482  to the Section layouts either.) This means that after you export that file
17483  to \SpecialChar LaTeX
17484  (which you'll need to do eventually to send it in to APS), you'll need
17485  to edit the \SpecialChar LaTeX
17486  file with a text editor to add the optional arguments to set,
17487  e.
17488 \begin_inset space \thinspace{}
17489 \end_inset
17490
17491 g.
17492 \begin_inset space \space{}
17493 \end_inset
17494
17495 the running title for the page headers.
17496  Lacking these layouts makes the 
17497 \family typewriter
17498
17499 \backslash
17500 altaffiliation
17501 \family default
17502  (and the equivalent 
17503 \family typewriter
17504
17505 \backslash
17506 altaddress
17507 \family default
17508 ) useless, so the corresponding layouts don't exist, and will have to be
17509  added by hand.
17510 \begin_inset Foot
17511 status collapsed
17512
17513 \begin_layout Plain Layout
17514
17515 \emph on
17516 Note from JMarc:
17517 \emph default
17518  actually, \SpecialChar LyX
17519  1.3.0 supports some forms of optional arguments, but this layout
17520  has not been updated yet to take advantage of it.
17521 \end_layout
17522
17523 \end_inset
17524
17525  
17526 \change_unchanged
17527
17528 \end_layout
17529
17530 \begin_layout Section
17531 Springer Journals (
17532 \family sans
17533 svjour
17534 \family default
17535 )
17536 \end_layout
17537
17538 \begin_layout Standard
17539 by 
17540 \noun on
17541 Martin Vermeer
17542 \end_layout
17543
17544 \begin_layout Subsection
17545 Description
17546 \end_layout
17547
17548 \begin_layout Standard
17549 These are the layout files for some of the journal formats used by Springer
17550  Verlag and listed on 
17551 \begin_inset Flex URL
17552 status collapsed
17553
17554 \begin_layout Plain Layout
17555
17556 http://www.springer.de/author/tex/help-journals.html
17557 \end_layout
17558
17559 \end_inset
17560
17561 , where you should also go to fetch the class files (yes, these are \SpecialChar LaTeX2e
17562  now!).
17563  It is a modular system: the things common to all journals are implemented
17564  in 
17565 \family typewriter
17566 svjour.inc
17567 \family default
17568 , which journal-specific layout files (such as, e.
17569 \begin_inset space \thinspace{}
17570 \end_inset
17571
17572 g.
17573 \begin_inset space \space{}
17574 \end_inset
17575
17576
17577 \family typewriter
17578 svjog.layout
17579 \family default
17580  for Journal of Geodesy) can include.
17581 \end_layout
17582
17583 \begin_layout Standard
17584 This means that implementing support for any other Springer journal on this
17585  list is as simple as writing your own 
17586 \family typewriter
17587 sv
17588 \family default
17589 <myjournal>
17590 \family typewriter
17591 .layout
17592 \family default
17593  file following the outline given in 
17594 \family typewriter
17595 svjog.layout
17596 \family default
17597 .
17598  
17599 \end_layout
17600
17601 \begin_layout Standard
17602 It is reasonably well tested only for the Journal of Geodesy.
17603  
17604 \family typewriter
17605 svjour
17606 \family default
17607  and 
17608 \family typewriter
17609 svjog
17610 \family default
17611  come with the standard \SpecialChar LyX
17612  distribution.
17613  Install the relevant class file (downloaded from Springer) in a proper
17614  directory, reconfigure \SpecialChar LaTeX
17615  (in the te\SpecialChar TeX
17616  case by running 
17617 \family typewriter
17618 texhash
17619 \family default
17620 , as root if necessary — doesn't \SpecialChar LyX
17621  take care of this?), reconfigure \SpecialChar LyX
17622  and
17623  it should work.
17624 \end_layout
17625
17626 \begin_layout Subsection
17627 New styles
17628 \end_layout
17629
17630 \begin_layout Standard
17631 A large number of theorem-like styles — 
17632 \family sans
17633 Claim, Conjecture,
17634 \family default
17635  
17636 \family sans
17637 \SpecialChar ldots
17638 Theorem
17639 \family default
17640 .
17641 \end_layout
17642
17643 \begin_layout Standard
17644
17645 \family sans
17646 Headnote, Dedication, Subtitle, Running_\SpecialChar LaTeX
17647 _Title, Author_Running, Institute,
17648  Mail, Offprints, Keywords, Acknowledgements, Acknowledgement
17649 \family default
17650 .
17651  See the Springer class file documentation for details.
17652 \end_layout
17653
17654 \begin_layout Subsection
17655 Supported journals
17656 \end_layout
17657
17658 \begin_layout Itemize
17659
17660 \emph on
17661 Journal of Geodesy
17662 \emph default
17663
17664 \family typewriter
17665 svjog.layout
17666 \family default
17667  — Martin Vermeer
17668 \end_layout
17669
17670 \begin_layout Itemize
17671
17672 \emph on
17673 Probability Theory and Related Fields
17674 \emph default
17675
17676 \family typewriter
17677 svprobth.layout
17678 \family default
17679  — Jean-Marc Lasgouttes
17680 \end_layout
17681
17682 \begin_layout Standard
17683 Add your own, it isn't so hard!
17684 \end_layout
17685
17686 \begin_layout Subsection
17687 Credits
17688 \end_layout
17689
17690 \begin_layout Standard
17691 These files are partly based on the older 
17692 \family typewriter
17693 ejour2.layout
17694 \family default
17695 , which was again based on a tinkered-with version of an old \SpecialChar LaTeX
17696  2.09 style
17697  file from Springer.
17698  All this, and the 
17699 \family typewriter
17700 ejour2
17701 \family default
17702  layout, are now defunct.
17703  Jean-Marc Lasgouttes helped out big in making me find my way around the
17704  \SpecialChar LyX
17705  layout file mechanism.
17706 \end_layout
17707
17708 \begin_layout Subsection
17709 Bugs
17710 \end_layout
17711
17712 \begin_layout Standard
17713 Probably.
17714  But probably less than in the old hacked-\SpecialChar LaTeX
17715  
17716 \family typewriter
17717 ejour2
17718 \family default
17719 .
17720 \end_layout
17721
17722 \begin_layout Standard
17723
17724 \change_deleted -712698321 1501168901
17725 Limitations e.
17726 \begin_inset space \thinspace{}
17727 \end_inset
17728
17729 g.: does not display the number for theorem-like layouts, just #.
17730 \change_unchanged
17731
17732 \end_layout
17733
17734 \begin_layout Section
17735 Slides [aka 
17736 \noun on
17737 Sli\SpecialChar TeX
17738
17739 \noun default
17740 ]
17741 \begin_inset CommandInset label
17742 LatexCommand label
17743 name "sec:slitex"
17744
17745 \end_inset
17746
17747
17748 \end_layout
17749
17750 \begin_layout Standard
17751 by 
17752 \noun on
17753 John Weiss
17754 \noun default
17755  
17756 \end_layout
17757
17758 \begin_layout Subsection
17759 Introduction
17760 \end_layout
17761
17762 \begin_layout Standard
17763 This section describes how to use \SpecialChar LyX
17764  to make slides for overhead projectors.
17765  There are two document classes that can do this: the default slides class
17766  and the 
17767 \family sans
17768 Foil\SpecialChar TeX
17769
17770 \family default
17771  slides class.
17772  This section documents the former.
17773 \end_layout
17774
17775 \begin_layout Standard
17776 I'm going to say this again, nice and clear, so that there's no misunderstanding
17777 :
17778 \end_layout
17779
17780 \begin_layout Standard
17781 \begin_inset VSpace bigskip
17782 \end_inset
17783
17784
17785 \end_layout
17786
17787 \begin_layout Standard
17788 \align center
17789
17790 \size large
17791 This section documents the class 
17792 \begin_inset Quotes eld
17793 \end_inset
17794
17795
17796 \family sans
17797 slides (default)
17798 \family default
17799
17800 \begin_inset Quotes erd
17801 \end_inset
17802
17803  
17804 \emph on
17805 only.
17806 \end_layout
17807
17808 \begin_layout Standard
17809 \begin_inset VSpace bigskip
17810 \end_inset
17811
17812
17813 \end_layout
17814
17815 \begin_layout Standard
17816 If you're looking for the documentation for 
17817 \begin_inset Quotes eld
17818 \end_inset
17819
17820
17821 \family sans
17822 slides (Foil\SpecialChar TeX
17823 )
17824 \family default
17825
17826 \begin_inset Quotes erd
17827 \end_inset
17828
17829 , check out section
17830 \begin_inset space ~
17831 \end_inset
17832
17833
17834 \begin_inset CommandInset ref
17835 LatexCommand ref
17836 reference "sec:foiltex"
17837
17838 \end_inset
17839
17840 .
17841  The 
17842 \family sans
17843 foils
17844 \family default
17845  class [
17846 \begin_inset Quotes eld
17847 \end_inset
17848
17849
17850 \family sans
17851 slides (Foil\SpecialChar TeX
17852 )
17853 \family default
17854
17855 \begin_inset Quotes erd
17856 \end_inset
17857
17858 ] is actually somewhat better than the default 
17859 \family sans
17860 slides
17861 \family default
17862  class,
17863 \begin_inset Foot
17864 status collapsed
17865
17866 \begin_layout Plain Layout
17867 \SpecialChar ldots
17868 or so I've been told repeatedly by its advocates.
17869  Having never used it, I have no idea if this claim is true or not.
17870 \end_layout
17871
17872 \end_inset
17873
17874  which this section documents.
17875 \end_layout
17876
17877 \begin_layout Standard
17878 This class is the \SpecialChar LaTeX2e
17879  improvement of the old 
17880 \noun on
17881 Sli\SpecialChar TeX
17882
17883 \noun default
17884  package.
17885  Every \SpecialChar LaTeX2e
17886  distribution includes this class [which I'll just refer to as 
17887 \begin_inset Quotes eld
17888 \end_inset
17889
17890
17891 \family sans
17892 slides
17893 \family default
17894
17895 \begin_inset Quotes erd
17896 \end_inset
17897
17898  from now on], so you're bound to have it.
17899  As I noted earlier, there are other classes, such as 
17900 \family sans
17901 foils
17902 \family default
17903 , which also produce slides for overhead projectors and do a better job
17904  at it.
17905  However, there are some things which 
17906 \family sans
17907 slides
17908 \family default
17909  can do which the others can't, such as generate overlays.
17910  Read on to learn more!
17911 \end_layout
17912
17913 \begin_layout Subsection
17914 Getting Started
17915 \begin_inset CommandInset label
17916 LatexCommand label
17917 name "sec:slidesetup"
17918
17919 \end_inset
17920
17921
17922 \end_layout
17923
17924 \begin_layout Standard
17925 Obviously, to use this document class, you need to select 
17926 \begin_inset Quotes eld
17927 \end_inset
17928
17929
17930 \family sans
17931 slides (default)
17932 \family default
17933
17934 \begin_inset Quotes erd
17935 \end_inset
17936
17937  from the class list in the 
17938 \family sans
17939 Document\SpecialChar menuseparator
17940 Settings
17941 \family default
17942  dialog.
17943  There are some other special things you should know about this class:
17944 \end_layout
17945
17946 \begin_layout Itemize
17947 Don't bother changing the options 
17948 \family sans
17949 Sides and Columns
17950 \family default
17951 .
17952  They're not supported by the 
17953 \family sans
17954 slides
17955 \family default
17956  class, anyways.
17957 \end_layout
17958
17959 \begin_layout Itemize
17960 The option 
17961 \family sans
17962 Page
17963 \begin_inset space ~
17964 \end_inset
17965
17966 style
17967 \family default
17968  behaves a bit differently for this class.
17969  The possible choices and what they do are as follows:
17970 \end_layout
17971
17972 \begin_deeper
17973 \begin_layout Description
17974
17975 \family sans
17976 plain
17977 \family default
17978  The final output contains page numbers in the lower right corner.
17979 \end_layout
17980
17981 \begin_layout Description
17982
17983 \family sans
17984 headings
17985 \family default
17986  Like 
17987 \family sans
17988 plain
17989 \family default
17990 , but also prints out any time markers you've put in.
17991  This is the default.
17992 \end_layout
17993
17994 \begin_layout Description
17995
17996 \family sans
17997 empty
17998 \family default
17999  The final output contains no page numbers, time markers, or alignment markers.
18000 \end_layout
18001
18002 \end_deeper
18003 \begin_layout Itemize
18004 The 
18005 \family sans
18006 slides
18007 \family default
18008  class has an extra option: 
18009 \family typewriter
18010 clock
18011 \family default
18012 .
18013  To use it, put 
18014 \begin_inset Quotes eld
18015 \end_inset
18016
18017
18018 \family typewriter
18019 clock
18020 \family default
18021
18022 \begin_inset Quotes erd
18023 \end_inset
18024
18025  in the extra class options.
18026 \end_layout
18027
18028 \begin_deeper
18029 \begin_layout Standard
18030 Using this options allows you to add time markers to 
18031 \family sans
18032 Note
18033 \family default
18034 s.
18035  See section
18036 \begin_inset space ~
18037 \end_inset
18038
18039
18040 \begin_inset CommandInset ref
18041 LatexCommand ref
18042 reference "sec:slideNote"
18043
18044 \end_inset
18045
18046  for more details.
18047 \end_layout
18048
18049 \end_deeper
18050 \begin_layout Standard
18051 You can also use the template file 
18052 \begin_inset Quotes eld
18053 \end_inset
18054
18055
18056 \family typewriter
18057 slides.lyx
18058 \family default
18059
18060 \begin_inset Quotes erd
18061 \end_inset
18062
18063  to automatically set up a document to use the 
18064 \family sans
18065 slides
18066 \family default
18067  class [using 
18068 \family sans
18069 File\SpecialChar menuseparator
18070 New
18071 \begin_inset space ~
18072 \end_inset
18073
18074 from
18075 \begin_inset space ~
18076 \end_inset
18077
18078 Template
18079 \family default
18080  to open your new document].
18081  The template file also contains some examples of the special paragraph
18082  environments used by this class.
18083  I'll describe those next.
18084 \end_layout
18085
18086 \begin_layout Subsection
18087 Paragraph Environments
18088 \end_layout
18089
18090 \begin_layout Subsubsection
18091 Supported Environments
18092 \end_layout
18093
18094 \begin_layout Standard
18095 The first thing you'll notice when you start up a new 
18096 \family sans
18097 slides
18098 \family default
18099  document is the font size and type: it's the equivalent of the size 
18100 \begin_inset Quotes eld
18101 \end_inset
18102
18103
18104 \family sans
18105 Largest
18106 \family default
18107
18108 \begin_inset Quotes erd
18109 \end_inset
18110
18111  in the 
18112 \family sans
18113 Sans
18114 \begin_inset space ~
18115 \end_inset
18116
18117 Serif
18118 \family default
18119  font.
18120  This is also what's used in the output.
18121  Think of this as a 
18122 \begin_inset Quotes eld
18123 \end_inset
18124
18125 visual cue
18126 \begin_inset Quotes erd
18127 \end_inset
18128
18129  to remind you that this is a slide.
18130  Your final slides will use a larger font; ergo, you'll have less space.
18131  Of course, the larger default screen font isn't WYSIWYG, only a reminder.
18132 \end_layout
18133
18134 \begin_layout Standard
18135 The next thing that becomes obvious is the changes to the paragraph environment
18136  pull-down box [at the far-left end of the toolbar].
18137  Most of the paragraph environments you're used to seeing are missing.
18138  There are also five new ones.
18139  That's because the 
18140 \family sans
18141 slides
18142 \family default
18143  class itself only supports certain paragraph environments:
18144 \end_layout
18145
18146 \begin_layout Itemize
18147
18148 \family sans
18149 Standard
18150 \end_layout
18151
18152 \begin_layout Itemize
18153
18154 \family sans
18155 Itemize
18156 \end_layout
18157
18158 \begin_layout Itemize
18159
18160 \family sans
18161 Enumerate
18162 \end_layout
18163
18164 \begin_layout Itemize
18165
18166 \family sans
18167 Description
18168 \end_layout
18169
18170 \begin_layout Itemize
18171
18172 \family sans
18173 List
18174 \end_layout
18175
18176 \begin_layout Itemize
18177
18178 \family sans
18179 Quotation
18180 \end_layout
18181
18182 \begin_layout Itemize
18183
18184 \family sans
18185 Quote
18186 \end_layout
18187
18188 \begin_layout Itemize
18189
18190 \family sans
18191 Verse
18192 \end_layout
18193
18194 \begin_layout Itemize
18195
18196 \family sans
18197 Caption
18198 \end_layout
18199
18200 \begin_layout Itemize
18201
18202 \family sans
18203 \SpecialChar LyX
18204 -Code
18205 \end_layout
18206
18207 \begin_layout Itemize
18208
18209 \change_deleted -712698321 1501169265
18210
18211 \family sans
18212 Comment
18213 \change_unchanged
18214
18215 \end_layout
18216
18217 \begin_layout Standard
18218 All of the other standard environments, including the section-heading environmen
18219 ts, aren't used in the 
18220 \family sans
18221 slides
18222 \family default
18223  class.
18224 \end_layout
18225
18226 \begin_layout Standard
18227 On the other hand, you'll notice the following new environments:
18228 \end_layout
18229
18230 \begin_layout Itemize
18231
18232 \family sans
18233 Slide
18234 \end_layout
18235
18236 \begin_layout Itemize
18237
18238 \family sans
18239 Overlay
18240 \end_layout
18241
18242 \begin_layout Itemize
18243
18244 \family sans
18245 Note
18246 \end_layout
18247
18248 \begin_layout Itemize
18249
18250 \family sans
18251 InvisibleText
18252 \end_layout
18253
18254 \begin_layout Itemize
18255
18256 \family sans
18257 VisibleText
18258 \end_layout
18259
18260 \begin_layout Standard
18261 These five are kind of quirky, due to a 
18262 \begin_inset Quotes eld
18263 \end_inset
18264
18265 feature
18266 \begin_inset Quotes erd
18267 \end_inset
18268
18269  in \SpecialChar LyX
18270 .
18271  You see, \SpecialChar LyX
18272  doesn't permit you to nest any other paragraph environment into
18273  an empty environment.
18274  Now, that's fine and dandy, but it means that you wouldn't be able to start
18275  a slide with anything except plain text.
18276  To deal with this, I've performed a little 
18277 \begin_inset Quotes eld
18278 \end_inset
18279
18280 \SpecialChar LaTeX
18281  magic.
18282 \begin_inset Quotes erd
18283 \end_inset
18284
18285  
18286 \end_layout
18287
18288 \begin_layout Subsubsection
18289 Quirks of the New Environments
18290 \begin_inset CommandInset label
18291 LatexCommand label
18292 name "sec:slideQuirk"
18293
18294 \end_inset
18295
18296
18297 \end_layout
18298
18299 \begin_layout Standard
18300 All five of the new paragraph environments are somewhat quirky due to inherent
18301  limitiations in the current version of \SpecialChar LyX
18302 .
18303  As I just mentioned, \SpecialChar LyX
18304  forbids environments that begin with another environment.
18305  To get around this, the 
18306 \family sans
18307 Slide
18308 \family default
18309  environment isn't a paragraph environment as described in the 
18310 \emph on
18311 User's Guide
18312 \emph default
18313 .
18314  
18315 \end_layout
18316
18317 \begin_layout Standard
18318 You should consider 
18319 \family sans
18320 Slide
18321 \family default
18322
18323 \family sans
18324 Overlay
18325 \family default
18326 , and 
18327 \family sans
18328 Note
18329 \family default
18330  to be 
18331 \begin_inset Quotes eld
18332 \end_inset
18333
18334 pseudo-environments.
18335 \begin_inset Quotes erd
18336 \end_inset
18337
18338  They look like a section heading or a 
18339 \begin_inset Quotes eld
18340 \end_inset
18341
18342
18343 \family sans
18344 Caption
18345 \family default
18346 ,
18347 \begin_inset Quotes erd
18348 \end_inset
18349
18350  but really begin a [and, if necessary, end the previous] paragraph environment.
18351  Likewise, treat 
18352 \family sans
18353 InvisibleText
18354 \family default
18355  and 
18356 \family sans
18357 VisibleText
18358 \family default
18359  as 
18360 \begin_inset Quotes eld
18361 \end_inset
18362
18363 pseudo-commands.
18364 \begin_inset Quotes erd
18365 \end_inset
18366
18367  These two perform some action.
18368 \end_layout
18369
18370 \begin_layout Standard
18371 A common feature of all five environments, 
18372 \family sans
18373 Slide
18374 \family default
18375
18376 \family sans
18377 Overlay
18378 \family default
18379
18380 \family sans
18381 Note
18382 \family default
18383
18384 \family sans
18385 InvisibleText
18386 \family default
18387  and 
18388 \family sans
18389 VisibleText
18390 \family default
18391 , is a rather long-ish label.
18392  The text following this label — ordinarily the contents of the paragraph
18393  environment — is utterly irrelevant for 
18394 \family sans
18395 Slide
18396 \family default
18397
18398 \family sans
18399 Overlay
18400 \family default
18401
18402 \family sans
18403 Note
18404 \family default
18405
18406 \family sans
18407 InvisibleText
18408 \family default
18409  and 
18410 \family sans
18411 VisibleText
18412 \family default
18413 .
18414  \SpecialChar LyX
18415  completely ignores it.
18416  In fact, you can leave these five environments completely empty.
18417  
18418 \end_layout
18419
18420 \begin_layout Standard
18421 While you don't 
18422 \emph on
18423 have
18424 \emph default
18425  to put any text after the rather long-ish label, you might want to.
18426  This could be a short description of the contents of the 
18427 \family sans
18428 Slide
18429 \family default
18430 , for example.
18431  In that case, enter your descriptive comment and hit 
18432 \family sans
18433 Return
18434 \family default
18435  as you normally would.
18436 \end_layout
18437
18438 \begin_layout Standard
18439 If, on the other hand, you don't want to enter any descriptive text, you'll
18440  hit another \SpecialChar LyX
18441  quirk.
18442  \SpecialChar LyX
18443 , like nature, abhors a vacuum, and will not let you start a new paragraph
18444  environment until you put something in the old one.
18445  So, do this:
18446 \end_layout
18447
18448 \begin_layout Itemize
18449 Start entering the text that will 
18450 \emph on
18451 follow
18452 \emph default
18453  the new 
18454 \family sans
18455 Slide
18456 \family default
18457
18458 \family sans
18459 Overlay
18460 \family default
18461
18462 \family sans
18463 Note
18464 \family default
18465
18466 \family sans
18467 InvisibleText
18468 \family default
18469  or 
18470 \family sans
18471 VisibleText
18472 \family default
18473 .
18474  
18475 \end_layout
18476
18477 \begin_layout Itemize
18478 Now move to the beginning of that paragraph.
18479  
18480 \end_layout
18481
18482 \begin_layout Itemize
18483 Next, hit 
18484 \family sans
18485 Return
18486 \family default
18487 .
18488  
18489 \end_layout
18490
18491 \begin_layout Itemize
18492 Finally, change this new, empty paragraph to a 
18493 \family sans
18494 Slide
18495 \family default
18496
18497 \family sans
18498 Overlay
18499 \family default
18500
18501 \family sans
18502 Note
18503 \family default
18504
18505 \family sans
18506 InvisibleText
18507 \family default
18508  or 
18509 \family sans
18510 VisibleText
18511 \family default
18512 .
18513  
18514 \end_layout
18515
18516 \begin_layout Standard
18517 Some future version of \SpecialChar LyX
18518  will, hopefully, resolve this quirkiness\SpecialChar ldots
18519
18520 \end_layout
18521
18522 \begin_layout Subsection
18523 Making a Presentation with 
18524 \family sans
18525 Slide
18526 \family default
18527
18528 \family sans
18529 Overlay
18530 \family default
18531  and 
18532 \family sans
18533 Note
18534 \end_layout
18535
18536 \begin_layout Subsubsection
18537 Using the 
18538 \family sans
18539 Slide
18540 \family default
18541  Environment
18542 \end_layout
18543
18544 \begin_layout Standard
18545 If you're expecting this section to teach you how to actually make a presentatio
18546 n, you'll be sorely disappointed.
18547  Naturally, I'll describe all of the ways the 
18548 \family sans
18549 slides
18550 \family default
18551  class can assist you in preparing the materials for a presentation.
18552  Filling in the contents, however, is up to you.
18553  [Then again, that 
18554 \emph on
18555 is
18556 \emph default
18557  the \SpecialChar LyX
18558  philosophy.]
18559 \end_layout
18560
18561 \begin_layout Standard
18562 Choosing the 
18563 \family sans
18564 Slide
18565 \family default
18566  environment [in the manner described in section
18567 \begin_inset space ~
18568 \end_inset
18569
18570
18571 \begin_inset CommandInset ref
18572 LatexCommand ref
18573 reference "sec:slideQuirk"
18574
18575 \end_inset
18576
18577 ] tells \SpecialChar LyX
18578  to begin a new slide [duh].
18579  The label for this environment/
18580 \begin_inset Quotes erd
18581 \end_inset
18582
18583 pseudo-command
18584 \begin_inset Quotes erd
18585 \end_inset
18586
18587  is an 
18588 \begin_inset Quotes eld
18589 \end_inset
18590
18591 ASCII line,
18592 \begin_inset Quotes erd
18593 \end_inset
18594
18595  in cool blue, followed by the label, 
18596 \begin_inset Quotes eld
18597 \end_inset
18598
18599 NewSlide:
18600 \begin_inset Quotes erd
18601 \end_inset
18602
18603 .
18604  Any text or paragraph environments that follow this one go on the new slide.
18605  It's that simple.
18606 \end_layout
18607
18608 \begin_layout Standard
18609 Slides are probably the only time you'll need to forcibly end pages in \SpecialChar LyX
18610
18611  (this can be specified in the 
18612 \family sans
18613 Paragraph Layout
18614 \family default
18615  dialog).
18616  In fact, you'll want to, once you finish entering the contents of one slide.
18617  If you've entered more text than can physically fit on a slide, the extra
18618  overflows onto a new slide.
18619  I don't recommend doing this, however, since the overflow slide won't have
18620  any page number on it.
18621  Furthermore, it may interfere with any 
18622 \family sans
18623 Overlay
18624 \family default
18625  you've made to accompany the oversized 
18626 \family sans
18627 Slide
18628 \family default
18629 .
18630 \end_layout
18631
18632 \begin_layout Standard
18633 The 
18634 \family sans
18635 Overlay
18636 \family default
18637  and 
18638 \family sans
18639 Note
18640 \family default
18641  environments work the same way as the 
18642 \family sans
18643 Slide
18644 \family default
18645  environment.
18646  They both create an 
18647 \begin_inset Quotes eld
18648 \end_inset
18649
18650 ASCII line
18651 \begin_inset Quotes erd
18652 \end_inset
18653
18654  followed by a label [
18655 \begin_inset Quotes eld
18656 \end_inset
18657
18658 NewOverlay:
18659 \begin_inset Quotes erd
18660 \end_inset
18661
18662  and 
18663 \begin_inset Quotes eld
18664 \end_inset
18665
18666 NewNote:
18667 \begin_inset Quotes erd
18668 \end_inset
18669
18670 , respectively].
18671  The color is a stunning magenta instead of blue, and the 
18672 \begin_inset Quotes eld
18673 \end_inset
18674
18675 ASCII line
18676 \begin_inset Quotes erd
18677 \end_inset
18678
18679  will look different, in style and in length.
18680  The label fonts of all three also differ from one another.
18681 \end_layout
18682
18683 \begin_layout Standard
18684 As with a 
18685 \family sans
18686 Slide
18687 \family default
18688 , if the contents of a 
18689 \family sans
18690 Note
18691 \family default
18692  or 
18693 \family sans
18694 Overlay
18695 \family default
18696  exceed the physical size of a slide or sheet of paper, the extra will overflow
18697  onto a new sheet.
18698  Again, you should avoid this.
18699  It defeats the whole purpose of 
18700 \family sans
18701 Note
18702 \family default
18703 s and 
18704 \family sans
18705 Overlay
18706 \family default
18707 s.
18708 \end_layout
18709
18710 \begin_layout Subsubsection
18711 Using 
18712 \family sans
18713 Overlay
18714 \family default
18715  with 
18716 \family sans
18717 Slide
18718 \end_layout
18719
18720 \begin_layout Standard
18721 The idea behind an 
18722 \family sans
18723 Overlay
18724 \family default
18725  is a slide that sits atop another slide.
18726  Perhaps you wish to discuss a figure on the main 
18727 \family sans
18728 Slide
18729 \family default
18730  before displaying the text associated with it.
18731  One way to accomplish this is tape a flap of dark paper over the part of
18732  the 
18733 \family sans
18734 Slide
18735 \family default
18736  you want to display later.
18737  This method fails, however, if you wish to overlap one graph with another,
18738  for example.
18739  You would then have to fumble while speaking to align the two separate,
18740  overlapping 
18741 \family sans
18742 Slide
18743 \family default
18744 s to align the two graphs.
18745  The use of an 
18746 \family sans
18747 Overlay
18748 \family default
18749  environment in both cases makes life much easier.
18750 \end_layout
18751
18752 \begin_layout Standard
18753 Each 
18754 \family sans
18755 Overlay
18756 \family default
18757  receives the page number of its 
18758 \begin_inset Quotes eld
18759 \end_inset
18760
18761 parent
18762 \begin_inset Quotes erd
18763 \end_inset
18764
18765  
18766 \family sans
18767 Slide
18768 \family default
18769 , appended by 
18770 \begin_inset Quotes eld
18771 \end_inset
18772
18773
18774 \family typewriter
18775 -a
18776 \family default
18777
18778 \begin_inset Quotes erd
18779 \end_inset
18780
18781 .
18782 \begin_inset Foot
18783 status collapsed
18784
18785 \begin_layout Plain Layout
18786 Presumably, mutliple 
18787 \family sans
18788 Overlay
18789 \family default
18790 s would have 
18791 \begin_inset Quotes eld
18792 \end_inset
18793
18794
18795 \family typewriter
18796 -a
18797 \family default
18798
18799 \begin_inset Quotes erd
18800 \end_inset
18801
18802
18803 \begin_inset Quotes eld
18804 \end_inset
18805
18806
18807 \family typewriter
18808 -b
18809 \family default
18810
18811 \begin_inset Quotes erd
18812 \end_inset
18813
18814
18815 \begin_inset Quotes eld
18816 \end_inset
18817
18818
18819 \family typewriter
18820 -c
18821 \family default
18822
18823 \begin_inset Quotes erd
18824 \end_inset
18825
18826 , etc.
18827 \begin_inset space ~
18828 \end_inset
18829
18830 appended to the page number of the parent 
18831 \family sans
18832 Slide
18833 \family default
18834 .
18835  
18836 \end_layout
18837
18838 \end_inset
18839
18840  Clearly, you want the contents of both the 
18841 \family sans
18842 Slide
18843 \family default
18844  and the 
18845 \family sans
18846 Overlay
18847 \family default
18848  to each fit on a single physical slide! You should probably consider an
18849  
18850 \family sans
18851 Overlay
18852 \family default
18853  as 
18854 \begin_inset Quotes eld
18855 \end_inset
18856
18857 part of
18858 \begin_inset Quotes erd
18859 \end_inset
18860
18861  a 
18862 \family sans
18863 Slide
18864 \family default
18865 .
18866  Indeed, the \SpecialChar LyX
18867  
18868 \family sans
18869 slides
18870 \family default
18871  class provides a visual cue for this: the label at the start of an 
18872 \family sans
18873 Overlay
18874 \family default
18875  is shorter than that at the start of a 
18876 \family sans
18877 Slide
18878 \family default
18879 .
18880  Lastly, when you generate printable output, you'll find alignment markers
18881  in all four corners of both the 
18882 \family sans
18883 Overlay
18884 \family default
18885  page and its parent 
18886 \family sans
18887 Slide
18888 \family default
18889 .
18890  These will assist you in lining up the two physical slides.
18891 \end_layout
18892
18893 \begin_layout Standard
18894 The major problem in overlaying two slides is aligning the contents of the
18895  two transparencies.
18896  How much space should you leave for that graph on the second slide? Worse
18897  still, what if you want a graph and a sentence on second slide, but there
18898  is text on the main transparency that goes in between them? You could try
18899  and insert vertical space of the right size.
18900  The better way is to use 
18901 \family sans
18902 InvisibleText
18903 \family default
18904  and 
18905 \family sans
18906 VisibleText
18907 \family default
18908 .
18909 \end_layout
18910
18911 \begin_layout Standard
18912 As their names imply, 
18913 \family sans
18914 InvisibleText
18915 \family default
18916  and 
18917 \family sans
18918 VisibleText
18919 \family default
18920  are two command-like paragraph environments that make all subsequent text
18921  invisible and visible, respectively.
18922  Note from section
18923 \begin_inset space ~
18924 \end_inset
18925
18926
18927 \begin_inset CommandInset ref
18928 LatexCommand ref
18929 reference "sec:slideQuirk"
18930
18931 \end_inset
18932
18933  that you don't place anything 
18934 \emph on
18935 into
18936 \emph default
18937  these two environments, however.
18938  When you create an 
18939 \family sans
18940 InvisibleText
18941 \family default
18942 , it inserts a centered, sky-blue label into the page reading 
18943 \begin_inset Quotes eld
18944 \end_inset
18945
18946 <Invisible Text Follows>
18947 \begin_inset Quotes erd
18948 \end_inset
18949
18950 .
18951  For paragraphs following this label, the parts of the 
18952 \family sans
18953 Slide
18954 \family default
18955  [or 
18956 \family sans
18957 Overlay
18958 \family default
18959 ; it doesn't matter which] where they would be contain instead blank space.
18960  
18961 \end_layout
18962
18963 \begin_layout Standard
18964 For 
18965 \family sans
18966 VisibleText
18967 \family default
18968 , the corresponding centered label is 
18969 \begin_inset Quotes eld
18970 \end_inset
18971
18972 <Visible Text Follows>
18973 \begin_inset Quotes erd
18974 \end_inset
18975
18976  in blazing green.
18977  Paragraphs following this label behave normally.
18978  Note that the beginning of a new 
18979 \family sans
18980 Slide
18981 \family default
18982
18983 \family sans
18984 Overlay
18985 \family default
18986 , or 
18987 \family sans
18988 Note
18989 \family default
18990  automatically shuts off an 
18991 \family sans
18992 InvisibleText
18993 \family default
18994 .
18995  It's therefore not necessary to use 
18996 \family sans
18997 VisibleText
18998 \family default
18999  at the end of a 
19000 \family sans
19001 Slide
19002 \family default
19003 .
19004 \end_layout
19005
19006 \begin_layout Standard
19007 By now, it should be obvious how to create overlay transparencies using
19008  the proper combination of 
19009 \family sans
19010 InvisibleText
19011 \family default
19012  and 
19013 \family sans
19014 VisibleText
19015 \family default
19016  on a 
19017 \family sans
19018 Slide
19019 \family default
19020  and 
19021 \family sans
19022 Overlay
19023 \family default
19024 :
19025 \end_layout
19026
19027 \begin_layout Enumerate
19028 Create a 
19029 \family sans
19030 Slide
19031 \family default
19032 , including everything that will appear on it, whether on the main slide
19033  or on the 
19034 \family sans
19035 Overlay
19036 \family default
19037 .
19038 \end_layout
19039
19040 \begin_layout Enumerate
19041 Before each figure or paragraph that will appear only on the 
19042 \family sans
19043 Overlay
19044 \family default
19045 , insert an 
19046 \family sans
19047 InvisibleText
19048 \family default
19049  environment.
19050  If necessary, insert a 
19051 \family sans
19052 VisibleText
19053 \family default
19054  environment after the 
19055 \family sans
19056 Overlay
19057 \family default
19058 -only text.
19059 \end_layout
19060
19061 \begin_layout Enumerate
19062 Start an 
19063 \family sans
19064 Overlay
19065 \family default
19066  immediately following the 
19067 \family sans
19068 Slide
19069 \family default
19070 .
19071 \end_layout
19072
19073 \begin_layout Enumerate
19074 Copy the contents of this 
19075 \family sans
19076 Slide
19077 \family default
19078  into the 
19079 \family sans
19080 Overlay
19081 \family default
19082 .
19083 \end_layout
19084
19085 \begin_layout Enumerate
19086 Within the 
19087 \family sans
19088 Overlay
19089 \family default
19090 , change all of the 
19091 \family sans
19092 InvisibleText
19093 \family default
19094  lines to 
19095 \family sans
19096 VisibleText
19097 \family default
19098  and vice-versa.
19099 \end_layout
19100
19101 \begin_layout Standard
19102 That's it.
19103  You've just made an 
19104 \family sans
19105 Overlay
19106 \family default
19107 .
19108 \end_layout
19109
19110 \begin_layout Standard
19111 There's one problem with the way I've designed the \SpecialChar LyX
19112  
19113 \family sans
19114 slides
19115 \family default
19116  class: you can't make text in the middle of a paragraph invisible, nor
19117  make text in the middle of an invisible paragraph visible again.
19118  To accomplish this feat, you'll need to use some inlined \SpecialChar LaTeX
19119  codes.
19120 \begin_inset Foot
19121 status collapsed
19122
19123 \begin_layout Plain Layout
19124 The commands of interest are: 
19125 \end_layout
19126
19127 \begin_layout Itemize
19128
19129 \family typewriter
19130 {
19131 \backslash
19132 invisible \SpecialChar ldots
19133  }
19134 \end_layout
19135
19136 \begin_layout Itemize
19137
19138 \family typewriter
19139 {
19140 \backslash
19141 visible \SpecialChar ldots
19142  }
19143 \end_layout
19144
19145 \begin_layout Plain Layout
19146 \SpecialChar ldots
19147 and need to be marked as \SpecialChar TeX
19148 .
19149  The text whose 
19150 \begin_inset Quotes eld
19151 \end_inset
19152
19153 visibility
19154 \begin_inset Quotes erd
19155 \end_inset
19156
19157  you wish to change goes in between the brackets [and after the 
19158 \family typewriter
19159
19160 \backslash
19161 invisible
19162 \family default
19163  or 
19164 \family typewriter
19165
19166 \backslash
19167 visible
19168 \family default
19169  command].
19170  If you don't know how to mark text as \SpecialChar TeX
19171 , see the appropriate section of
19172  the 
19173 \emph on
19174 User's Guide
19175 \emph default
19176 .
19177 \end_layout
19178
19179 \end_inset
19180
19181
19182 \end_layout
19183
19184 \begin_layout Subsubsection
19185 Using 
19186 \family sans
19187 Note
19188 \family default
19189  with 
19190 \family sans
19191 Slide
19192 \family default
19193
19194 \begin_inset CommandInset label
19195 LatexCommand label
19196 name "sec:slideNote"
19197
19198 \end_inset
19199
19200
19201 \end_layout
19202
19203 \begin_layout Standard
19204 Like an 
19205 \family sans
19206 Overlay
19207 \family default
19208 , a 
19209 \family sans
19210 Note
19211 \family default
19212  is associated with a 
19213 \begin_inset Quotes eld
19214 \end_inset
19215
19216 parent
19217 \begin_inset Quotes erd
19218 \end_inset
19219
19220  
19221 \family sans
19222 Slide
19223 \family default
19224 .
19225  Here, too, the \SpecialChar LyX
19226  
19227 \family sans
19228 slides
19229 \family default
19230  class provides visual cues.
19231  The label for a 
19232 \family sans
19233 Note
19234 \family default
19235  is shorter than that of a 
19236 \family sans
19237 Slide
19238 \family default
19239  [yet longer than that of an 
19240 \family sans
19241 Overlay
19242 \family default
19243 ] and, like the label of an 
19244 \family sans
19245 Overlay
19246 \family default
19247  is shockingly magenta.
19248  Additionally, the printed 
19249 \family sans
19250 Note
19251 \family default
19252  has the page number of its 
19253 \begin_inset Quotes eld
19254 \end_inset
19255
19256 parent
19257 \begin_inset Quotes erd
19258 \end_inset
19259
19260  
19261 \family sans
19262 Slide
19263 \family default
19264 , appended by 
19265 \begin_inset Quotes eld
19266 \end_inset
19267
19268
19269 \family typewriter
19270 -
19271 \family default
19272 1
19273 \begin_inset Quotes erd
19274 \end_inset
19275
19276
19277 \begin_inset Quotes eld
19278 \end_inset
19279
19280
19281 \family typewriter
19282 -
19283 \family default
19284 2
19285 \begin_inset Quotes erd
19286 \end_inset
19287
19288
19289 \begin_inset Quotes eld
19290 \end_inset
19291
19292
19293 \family typewriter
19294 -
19295 \family default
19296 3
19297 \begin_inset Quotes erd
19298 \end_inset
19299
19300 , etc.
19301  You can have multiple 
19302 \family sans
19303 Note
19304 \family default
19305 s associated with a single 
19306 \family sans
19307 Slide
19308 \family default
19309 , and, as with 
19310 \family sans
19311 Slide
19312 \family default
19313  and 
19314 \family sans
19315 Overlay
19316 \family default
19317 , you'll probably want to break up long 
19318 \family sans
19319 Note
19320 \family default
19321 s so that they fit on a single sheet of paper.
19322 \end_layout
19323
19324 \begin_layout Standard
19325 The purpose of a 
19326 \family sans
19327 Note
19328 \family default
19329  is obvious: it contains anything additional you might want to say about
19330  a 
19331 \family sans
19332 Slide
19333 \family default
19334 .
19335  It could also be used as a sheet of reminders for a particular 
19336 \family sans
19337 Slide
19338 \family default
19339 .
19340  In the case of the latter, you might want to make use of time markers.
19341  Currently, the \SpecialChar LyX
19342  
19343 \family sans
19344 slides
19345 \family default
19346  class has no 
19347 \begin_inset Quotes eld
19348 \end_inset
19349
19350 native
19351 \begin_inset Quotes erd
19352 \end_inset
19353
19354  support for time markers, a 
19355 \noun on
19356 Sli\SpecialChar TeX
19357
19358 \noun default
19359  feature.
19360  So, you'll have to resort to using the \SpecialChar LaTeX
19361  codes.
19362 \end_layout
19363
19364 \begin_layout Standard
19365 To use time markers, you'll need to specify the extra class option 
19366 \begin_inset Quotes eld
19367 \end_inset
19368
19369
19370 \family typewriter
19371 clock
19372 \family default
19373
19374 \begin_inset Quotes erd
19375 \end_inset
19376
19377  [see section
19378 \begin_inset space ~
19379 \end_inset
19380
19381
19382 \begin_inset CommandInset ref
19383 LatexCommand ref
19384 reference "sec:slidesetup"
19385
19386 \end_inset
19387
19388 ].
19389  This option turns on timing marks, which will appear in the lower-left-hand
19390  corner of every 
19391 \family sans
19392 Note
19393 \family default
19394  you generate.
19395  To set what appears in the time marker, you use the \SpecialChar LaTeX
19396  commands 
19397 \begin_inset Quotes eld
19398 \end_inset
19399
19400
19401 \family typewriter
19402
19403 \backslash
19404 settime{}
19405 \family default
19406
19407 \begin_inset Quotes erd
19408 \end_inset
19409
19410  and 
19411 \begin_inset Quotes eld
19412 \end_inset
19413
19414
19415 \family typewriter
19416
19417 \backslash
19418 addtime{}
19419 \family default
19420
19421 \begin_inset Quotes erd
19422 \end_inset
19423
19424 .
19425  The arguments of both commands are time measured in seconds.
19426  
19427 \begin_inset Quotes eld
19428 \end_inset
19429
19430
19431 \family typewriter
19432
19433 \backslash
19434 settime{}
19435 \family default
19436
19437 \begin_inset Quotes erd
19438 \end_inset
19439
19440  sets the time marker to a given time.
19441  
19442 \begin_inset Quotes eld
19443 \end_inset
19444
19445
19446 \family typewriter
19447
19448 \backslash
19449 addtime{}
19450 \family default
19451
19452 \begin_inset Quotes erd
19453 \end_inset
19454
19455  increments the time marker by the specified amount.
19456  Using time markers and 
19457 \family sans
19458 Note
19459 \family default
19460 s in this fashion, you can remind yourself how much time to spend on a particula
19461
19462 \family sans
19463 Slide
19464 \family default
19465 .
19466 \end_layout
19467
19468 \begin_layout Standard
19469 There's one last feature to describe.
19470  Clearly, you'd like to print out all of your 
19471 \family sans
19472 Slide
19473 \family default
19474 s and 
19475 \family sans
19476 Overlay
19477 \family default
19478 s on transparencies while printing all of your 
19479 \family sans
19480 Note
19481 \family default
19482 s on plain paper.
19483  However, a 
19484 \family sans
19485 Note
19486 \family default
19487  
19488 \emph on
19489 must
19490 \emph default
19491  follow the 
19492 \family sans
19493 Slide
19494 \family default
19495  with which it is associated.
19496  What's a person to do?
19497 \end_layout
19498
19499 \begin_layout Standard
19500 Luckily, there are two \SpecialChar LaTeX
19501  commands that allow you to select what to print
19502  out.
19503  Both must be placed into the preamble of your document.
19504  The command 
19505 \begin_inset Quotes eld
19506 \end_inset
19507
19508
19509 \family typewriter
19510
19511 \backslash
19512 onlyslides{
19513 \backslash
19514 slides}
19515 \family default
19516
19517 \begin_inset Quotes erd
19518 \end_inset
19519
19520  will cause the output to contain only the 
19521 \family sans
19522 Slide
19523 \family default
19524 s and 
19525 \family sans
19526 Overlay
19527 \family default
19528 s.
19529  Correspondingly, the command 
19530 \begin_inset Quotes eld
19531 \end_inset
19532
19533
19534 \family typewriter
19535
19536 \backslash
19537 onlynotes{
19538 \backslash
19539 notes}
19540 \family default
19541
19542 \begin_inset Quotes erd
19543 \end_inset
19544
19545  prevents the output of anything but 
19546 \family sans
19547 Note
19548 \family default
19549 s.
19550  I'd advise placing both commands in the preamble and initially comment
19551  both out.
19552  You can then preview your entire presentation as you write.
19553  When you're done writing, you can then uncomment one of the two to select
19554  what you want to print.
19555  I like to uncomment 
19556 \begin_inset Quotes eld
19557 \end_inset
19558
19559
19560 \family typewriter
19561
19562 \backslash
19563 onlyslides{
19564 \backslash
19565 slides}
19566 \family default
19567
19568 \begin_inset Quotes erd
19569 \end_inset
19570
19571  , print to a file with 
19572 \begin_inset Quotes eld
19573 \end_inset
19574
19575
19576 \family typewriter
19577 -slides
19578 \family default
19579
19580 \begin_inset Quotes erd
19581 \end_inset
19582
19583  in its name, comment it back out, then uncomment 
19584 \begin_inset Quotes eld
19585 \end_inset
19586
19587
19588 \family typewriter
19589
19590 \backslash
19591 onlynotes{
19592 \backslash
19593 notes}
19594 \family default
19595
19596 \begin_inset Quotes erd
19597 \end_inset
19598
19599  and print to a 
19600 \begin_inset Quotes eld
19601 \end_inset
19602
19603
19604 \family typewriter
19605 *-notes.ps
19606 \family default
19607
19608 \begin_inset Quotes erd
19609 \end_inset
19610
19611  file.
19612  I can then send either file to a printer, loading transparencies or plain
19613  paper as appropriate.
19614 \end_layout
19615
19616 \begin_layout Standard
19617 You can also provide other arguments to the 
19618 \begin_inset Quotes eld
19619 \end_inset
19620
19621
19622 \family typewriter
19623
19624 \backslash
19625 onlyslides{}
19626 \family default
19627
19628 \begin_inset Quotes erd
19629 \end_inset
19630
19631  and 
19632 \begin_inset Quotes eld
19633 \end_inset
19634
19635
19636 \family typewriter
19637
19638 \backslash
19639 onlynotes{}
19640 \family default
19641
19642 \begin_inset Quotes erd
19643 \end_inset
19644
19645  commands.
19646  See a good \SpecialChar LaTeX
19647  book for details.
19648 \end_layout
19649
19650 \begin_layout Subsection
19651 The 
19652 \family sans
19653 slides
19654 \family default
19655  Class Template File
19656 \end_layout
19657
19658 \begin_layout Standard
19659 I have also provided a template file, 
19660 \begin_inset Quotes eld
19661 \end_inset
19662
19663
19664 \family typewriter
19665 slides.lyx
19666 \family default
19667
19668 \begin_inset Quotes erd
19669 \end_inset
19670
19671 , with the 
19672 \family sans
19673 slides
19674 \family default
19675  class.
19676  To use it, begin your new presentation with 
19677 \family sans
19678 File\SpecialChar menuseparator
19679 New
19680 \begin_inset space ~
19681 \end_inset
19682
19683 from
19684 \begin_inset space ~
19685 \end_inset
19686
19687 Template
19688 \family default
19689 .
19690  Your new \SpecialChar LyX
19691  presentation file will contain an example 
19692 \family sans
19693 Slide
19694 \family default
19695  – 
19696 \family sans
19697 Overlay
19698 \family default
19699  – 
19700 \family sans
19701 Note
19702 \family default
19703  triplet.
19704  The 
19705 \family sans
19706 Slide
19707 \family default
19708  and 
19709 \family sans
19710 Overlay
19711 \family default
19712  additionally contain an example of the use of 
19713 \family sans
19714 InvisibleText
19715 \family default
19716  and 
19717 \family sans
19718 VisibleText
19719 \family default
19720 .
19721  Lastly, the preamble will contain:
19722 \end_layout
19723
19724 \begin_layout LyX-Code
19725 % Uncomment to print out only slides and overlays
19726 \end_layout
19727
19728 \begin_layout LyX-Code
19729 %
19730 \end_layout
19731
19732 \begin_layout LyX-Code
19733 %
19734 \backslash
19735 onlyslides{
19736 \backslash
19737 slides}
19738 \begin_inset Newline newline
19739 \end_inset
19740
19741  
19742 \end_layout
19743
19744 \begin_layout LyX-Code
19745 % Uncomment to print out only notes
19746 \end_layout
19747
19748 \begin_layout LyX-Code
19749 %
19750 \end_layout
19751
19752 \begin_layout LyX-Code
19753 %
19754 \backslash
19755 onlynotes{
19756 \backslash
19757 notes}
19758 \end_layout
19759
19760 \begin_layout Standard
19761 One final thing: I created this class to support the \SpecialChar LaTeX2e
19762  
19763 \begin_inset Quotes eld
19764 \end_inset
19765
19766
19767 \noun on
19768 Sli\SpecialChar TeX
19769
19770 \noun default
19771  emulation
19772 \begin_inset Quotes erd
19773 \end_inset
19774
19775  class, one of the built-in \SpecialChar LaTeX2e
19776  classes.
19777  Neither I nor the rest of the \SpecialChar LyX
19778  Team endorse or oppose the use of this built-in
19779  slide class.
19780  It's here if you want it or need it.
19781  There exist other \SpecialChar LaTeX2e
19782  classes for creating presentations, such as the 
19783 \family sans
19784 Foils
19785 \family default
19786  class [see section
19787 \begin_inset space ~
19788 \end_inset
19789
19790
19791 \begin_inset CommandInset ref
19792 LatexCommand ref
19793 reference "sec:foiltex"
19794
19795 \end_inset
19796
19797 ] or the 
19798 \begin_inset Quotes eld
19799 \end_inset
19800
19801
19802 \family typewriter
19803 seminar
19804 \family default
19805
19806 \begin_inset Quotes erd
19807 \end_inset
19808
19809  package [present on some \SpecialChar TeX
19810  distributions].
19811  The latter is not yet supported under \SpecialChar LyX
19812 .
19813 \begin_inset Foot
19814 status collapsed
19815
19816 \begin_layout Plain Layout
19817 Perhaps you can take on the task\SpecialChar ldots
19818
19819 \end_layout
19820
19821 \end_inset
19822
19823  I know nothing about these other classes.
19824  Try them out to see what sort of alternative they provide.
19825 \end_layout
19826
19827 \begin_layout Chapter
19828 \SpecialChar LyX
19829  Features needing Extra Software
19830 \end_layout
19831
19832 \begin_layout Section
19833 Checking \SpecialChar TeX
19834
19835 \end_layout
19836
19837 \begin_layout Standard
19838 by 
19839 \noun on
19840 Asger Alstrup
19841 \end_layout
19842
19843 \begin_layout Subsection
19844 Introduction
19845 \end_layout
19846
19847 \begin_layout Standard
19848 If you have the 
19849 \family typewriter
19850 chktex
19851 \family default
19852  program installed
19853 \begin_inset Foot
19854 status collapsed
19855
19856 \begin_layout Plain Layout
19857
19858 \family typewriter
19859 chktex
19860 \family default
19861  is not yet available when you are using the \SpecialChar LaTeX
19862  distribution MiK\SpecialChar TeX
19863 .
19864 \end_layout
19865
19866 \end_inset
19867
19868 , you'll find in the 
19869 \family sans
19870 Tools
19871 \family default
19872  menu the entry: 
19873 \family sans
19874 Check
19875 \begin_inset space ~
19876 \end_inset
19877
19878 TeX
19879 \family default
19880 .
19881  You can get 
19882 \family typewriter
19883 chktex
19884 \family default
19885  from CTAN,
19886 \begin_inset Newline newline
19887 \end_inset
19888
19889
19890 \begin_inset CommandInset href
19891 LatexCommand href
19892 target "http://www.ctan.org/tex-archive/help/Catalogue/entries/chktex.html"
19893 literal "false"
19894
19895 \end_inset
19896
19897 .
19898 \end_layout
19899
19900 \begin_layout Standard
19901 The 
19902 \family sans
19903 Chk\SpecialChar TeX
19904
19905 \family default
19906  package is a program that was written by 
19907 \begin_inset Flex Noun
19908 status collapsed
19909
19910 \begin_layout Plain Layout
19911 Jens T.
19912 \begin_inset space ~
19913 \end_inset
19914
19915 Berger Thielemann
19916 \end_layout
19917
19918 \end_inset
19919
19920  in frustration because some constructs in \SpecialChar LaTeX
19921  are sometimes non-intuitive,
19922  and easy to forget.
19923  The program runs over your \SpecialChar LaTeX
19924  file, checks the integrity of the file, and
19925  flags some common errors.
19926  In other technical words, it is 
19927 \family typewriter
19928 lint
19929 \family default
19930  for \SpecialChar LaTeX
19931 .
19932 \end_layout
19933
19934 \begin_layout Standard
19935 Well, what is a syntax checker doing in \SpecialChar LyX
19936  which is supposed to produce correct
19937  \SpecialChar LaTeX
19938  anyways? The answer is simple: Just as 
19939 \family typewriter
19940 Lint
19941 \family default
19942  not only checks the 
19943 \emph on
19944 syntax
19945 \emph default
19946  of C programs, but also does 
19947 \emph on
19948 semantic
19949 \emph default
19950  checks for type-errors, 
19951 \family sans
19952 Chk\SpecialChar TeX
19953
19954 \family default
19955  catches some common 
19956 \emph on
19957 typographic
19958 \emph default
19959  errors, in addition to the syntactical ones.
19960  Specifically, 
19961 \family sans
19962 Chk\SpecialChar TeX
19963
19964 \family default
19965  is capable of detecting several common errors, such as
19966 \end_layout
19967
19968 \begin_layout Itemize
19969 Ellipsis detection:
19970 \begin_inset Newline newline
19971 \end_inset
19972
19973 Use \SpecialChar ldots
19974  instead of ...
19975 \end_layout
19976
19977 \begin_layout Itemize
19978 No space in front of/after parenthesis:
19979 \begin_inset Newline newline
19980 \end_inset
19981
19982 ( wrong spacing )
19983 \end_layout
19984
19985 \begin_layout Itemize
19986 Enforcement of normal space after common abbreviations:
19987 \begin_inset Newline newline
19988 \end_inset
19989
19990 e.
19991 \begin_inset space \thinspace{}
19992 \end_inset
19993
19994 g.
19995 \begin_inset space \space{}
19996 \end_inset
19997
19998 is too wide spacing.
19999 \end_layout
20000
20001 \begin_layout Itemize
20002 Enforcement of end-of-sentence space when the last sentence ends with a
20003  capital letter:
20004 \begin_inset Newline newline
20005 \end_inset
20006
20007 This is a TEST.
20008  And this is wrong spacing.
20009 \end_layout
20010
20011 \begin_layout Itemize
20012 Space in front of labels and similar commands:
20013 \begin_inset Newline newline
20014 \end_inset
20015
20016 The label should stick right up to the text to avoid falling to a wrong
20017  page.
20018  
20019 \begin_inset CommandInset label
20020 LatexCommand label
20021 name "sec:chktex"
20022
20023 \end_inset
20024
20025  
20026 \begin_inset Foot
20027 status collapsed
20028
20029 \begin_layout Plain Layout
20030 This footnote is in danger of falling off to a wrong page
20031 \end_layout
20032
20033 \end_inset
20034
20035  The label is separated too much.
20036 \end_layout
20037
20038 \begin_layout Itemize
20039 Space in front of references, instead of hard spaces:
20040 \begin_inset Newline newline
20041 \end_inset
20042
20043 If you have bad luck, the text will break right between the referenced text
20044  and reference number, and that's a pity.
20045  See section 
20046 \begin_inset CommandInset ref
20047 LatexCommand ref
20048 reference "sec:chktex"
20049
20050 \end_inset
20051
20052 .
20053 \end_layout
20054
20055 \begin_layout Itemize
20056 Use of 
20057 \begin_inset Quotes eld
20058 \end_inset
20059
20060 x
20061 \begin_inset Quotes erd
20062 \end_inset
20063
20064  instead of 
20065 \begin_inset Formula $\times$
20066 \end_inset
20067
20068  between numbers:
20069 \begin_inset Newline newline
20070 \end_inset
20071
20072 2x2 looks cheap compared to 
20073 \begin_inset Formula $2\times2$
20074 \end_inset
20075
20076 .
20077 \end_layout
20078
20079 \begin_layout Standard
20080 and more \SpecialChar ldots
20081  It is an invaluable tool when you are 
20082 \begin_inset Quotes eld
20083 \end_inset
20084
20085 finishing up
20086 \begin_inset Quotes erd
20087 \end_inset
20088
20089  your document before printing, and you should run it right after the obligatory
20090  spelling check, and before you go fine tuning the typesetting.
20091 \end_layout
20092
20093 \begin_layout Subsection
20094 How to use it
20095 \end_layout
20096
20097 \begin_layout Standard
20098 If you have the program installed, usage is as simple as choosing 
20099 \family sans
20100 Tools\SpecialChar menuseparator
20101 Check
20102 \begin_inset space ~
20103 \end_inset
20104
20105 TeX
20106 \family default
20107 .
20108  This will make \SpecialChar LyX
20109  generate a \SpecialChar LaTeX
20110  file of your document, start 
20111 \family sans
20112 Chk\SpecialChar TeX
20113
20114 \family default
20115  to check it, and then make \SpecialChar LyX
20116  insert 
20117 \begin_inset Quotes eld
20118 \end_inset
20119
20120 error boxes
20121 \begin_inset Quotes erd
20122 \end_inset
20123
20124  with the warnings from 
20125 \family sans
20126 Chk\SpecialChar TeX
20127
20128 \family default
20129 , if there were any.
20130  The warnings will be placed close to the point of the mistake, and you
20131  can quickly find them by using the 
20132 \family sans
20133 Navigate\SpecialChar menuseparator
20134 Error
20135 \family default
20136  menu item, or the shortcut key 
20137 \family sans
20138 C-g
20139 \family default
20140  from the default 
20141 \family typewriter
20142 cua
20143 \family default
20144  bind file.
20145  Open the error boxes by clicking on them with the mouse, or use the shortcut
20146  key 
20147 \family sans
20148 C-i
20149 \family default
20150  from 
20151 \family typewriter
20152 cua
20153 \family default
20154  bindings, or the corresponding 
20155 \family sans
20156 C-o
20157 \family default
20158  for the alternate 
20159 \family typewriter
20160 emacs
20161 \family default
20162  bind file.
20163  Read the warning and correct the mistake, if it is a mistake.
20164  If you have trouble understanding what the warning is about, you can safely
20165  ignore it.
20166  Remember that there is a hidden layer between the document on screen and
20167  the technical details in invoking 
20168 \family sans
20169 Chk\SpecialChar TeX
20170
20171 \family default
20172 , and this gap can make some warnings seem arcane or just plain silly.
20173 \end_layout
20174
20175 \begin_layout Standard
20176 This document is an excellent testing bed for the feature, and it should
20177  provide quite a few warnings for you to fiddle with.
20178  Since computers are only so smart, expect most of the warnings to be false
20179  alarms, though.
20180 \end_layout
20181
20182 \begin_layout Subsection
20183 How to fine tune it
20184 \end_layout
20185
20186 \begin_layout Standard
20187 Sometimes, you'll find that 
20188 \family sans
20189 Chk\SpecialChar TeX
20190
20191 \family default
20192  makes more noise than suits your mood.
20193  Then you can choose not to use it, wait until your mood changes, or try
20194  to customize 
20195 \family sans
20196 Chk\SpecialChar TeX
20197
20198 \family default
20199  to get better along with you.
20200 \end_layout
20201
20202 \begin_layout Standard
20203 Although 
20204 \family sans
20205 Chk\SpecialChar TeX
20206
20207 \family default
20208  
20209 \emph on
20210 is
20211 \emph default
20212  very configurable and extensible, you should not expect to solve all problems
20213  with 
20214 \family sans
20215 Chk\SpecialChar TeX
20216
20217 \family default
20218  in \SpecialChar LyX
20219  this way.
20220  Since \SpecialChar LyX
20221  has to generate a somewhat special \SpecialChar LaTeX
20222  file to be able to match the
20223  line numbers from the 
20224 \family sans
20225 Chk\SpecialChar TeX
20226
20227 \family default
20228  output
20229 \begin_inset Foot
20230 status collapsed
20231
20232 \begin_layout Plain Layout
20233 You can inspect the specific output from 
20234 \family sans
20235 chktex
20236 \family default
20237  by using 
20238 \family sans
20239 Document\SpecialChar menuseparator
20240 \SpecialChar LaTeX
20241
20242 \begin_inset space ~
20243 \end_inset
20244
20245 Log
20246 \family default
20247  right after a 
20248 \family sans
20249 chktex
20250 \family default
20251  run.
20252 \end_layout
20253
20254 \end_inset
20255
20256  to the internal document structure, some of the warnings will not appear
20257  correctly.
20258  There are two things you can do about this:
20259 \end_layout
20260
20261 \begin_layout Itemize
20262 Fine tune the 
20263 \family sans
20264 Chk\SpecialChar TeX
20265
20266 \family default
20267  invocation command line in 
20268 \begin_inset Flex Noun
20269 status collapsed
20270
20271 \begin_layout Plain Layout
20272 Tools\SpecialChar menuseparator
20273 Preferences\SpecialChar menuseparator
20274 Output\SpecialChar menuseparator
20275 LaTeX\SpecialChar menuseparator
20276 CheckTeX command
20277 \end_layout
20278
20279 \end_inset
20280
20281 , or the global 
20282 \family sans
20283 Chk\SpecialChar TeX
20284
20285 \family default
20286  installation configuration file (usually with the file 
20287 \family typewriter
20288 chktexrc
20289 \family default
20290 ).
20291  See below to learn what warnings can be enabled and disabled on the command
20292  line.
20293 \end_layout
20294
20295 \begin_layout Itemize
20296 Export your document as a raw \SpecialChar LaTeX
20297  file using 
20298 \family sans
20299 File\SpecialChar menuseparator
20300 Export\SpecialChar menuseparator
20301 \SpecialChar LaTeX
20302
20303 \family default
20304  and run 
20305 \family typewriter
20306 chktex
20307 \family default
20308  manually on that.
20309  Invoked in this way, it can be a hassle to find the corresponding place
20310  in the document inside \SpecialChar LyX
20311 , but with a little patience, you should be able
20312  to do it.
20313 \end_layout
20314
20315 \begin_layout Standard
20316 Here follows the warning messages that can be enabled and disabled in 
20317 \family sans
20318 Preferences
20319 \family default
20320 .
20321  Use 
20322 \family typewriter
20323 -n#
20324 \family default
20325  to disable a warning, and 
20326 \family typewriter
20327 -w#
20328 \family default
20329  to enable a warning.
20330  The emphasized entries are disabled by default, because the default is
20331  "
20332 \family typewriter
20333 chktex -n1 -n3 -n6 -n9 -n22 -n25 -n30 -n38
20334 \family default
20335 ".
20336 \end_layout
20337
20338 \begin_layout Standard
20339 Notice that you should only use the options that enable and disable warnings,
20340  because \SpecialChar LyX
20341  relies on some of the other command line parameters to be set
20342  in a specific way to have a chance to communicate with 
20343 \family typewriter
20344 chktex
20345 \family default
20346 .
20347 \end_layout
20348
20349 \begin_layout Enumerate
20350
20351 \size small
20352 \emph on
20353 Command terminated with space.
20354 \end_layout
20355
20356 \begin_layout Enumerate
20357
20358 \size small
20359 Non-breaking space (
20360 \begin_inset Quotes eld
20361 \end_inset
20362
20363
20364 \family typewriter
20365 ~
20366 \family default
20367
20368 \begin_inset Quotes erd
20369 \end_inset
20370
20371 ) should have been used.
20372 \end_layout
20373
20374 \begin_layout Enumerate
20375
20376 \size small
20377 \emph on
20378 You should enclose the previous parenthesis with 
20379 \begin_inset Quotes eld
20380 \end_inset
20381
20382
20383 \family typewriter
20384 {}
20385 \family default
20386
20387 \begin_inset Quotes erd
20388 \end_inset
20389
20390 .
20391 \end_layout
20392
20393 \begin_layout Enumerate
20394
20395 \size small
20396 Italic correction (
20397 \begin_inset Quotes eld
20398 \end_inset
20399
20400
20401 \family typewriter
20402
20403 \backslash
20404 /
20405 \family default
20406
20407 \begin_inset Quotes erd
20408 \end_inset
20409
20410 ) found in non-italic buffer.
20411 \end_layout
20412
20413 \begin_layout Enumerate
20414
20415 \size small
20416 Italic correction (
20417 \begin_inset Quotes eld
20418 \end_inset
20419
20420
20421 \family typewriter
20422
20423 \backslash
20424 /
20425 \family default
20426
20427 \begin_inset Quotes erd
20428 \end_inset
20429
20430 ) found more than once.
20431 \end_layout
20432
20433 \begin_layout Enumerate
20434
20435 \size small
20436 \emph on
20437 No italic correction (
20438 \begin_inset Quotes eld
20439 \end_inset
20440
20441
20442 \family typewriter
20443
20444 \backslash
20445 /
20446 \family default
20447
20448 \begin_inset Quotes erd
20449 \end_inset
20450
20451 ) found.
20452 \end_layout
20453
20454 \begin_layout Enumerate
20455
20456 \size small
20457 Accent command 
20458 \begin_inset Quotes eld
20459 \end_inset
20460
20461
20462 \family typewriter
20463 cmd
20464 \family default
20465
20466 \begin_inset Quotes erd
20467 \end_inset
20468
20469  needs use of 
20470 \begin_inset Quotes eld
20471 \end_inset
20472
20473
20474 \family typewriter
20475 cmd
20476 \family default
20477
20478 \begin_inset Quotes erd
20479 \end_inset
20480
20481 .
20482 \end_layout
20483
20484 \begin_layout Enumerate
20485
20486 \size small
20487 Wrong length of dash may have been used.
20488 \end_layout
20489
20490 \begin_layout Enumerate
20491
20492 \size small
20493 \emph on
20494 \begin_inset Quotes eld
20495 \end_inset
20496
20497
20498 \family typewriter
20499 %s
20500 \family default
20501
20502 \begin_inset Quotes erd
20503 \end_inset
20504
20505  expected, found 
20506 \begin_inset Quotes eld
20507 \end_inset
20508
20509
20510 \family typewriter
20511 %s
20512 \family default
20513
20514 \begin_inset Quotes erd
20515 \end_inset
20516
20517 .
20518 \end_layout
20519
20520 \begin_layout Enumerate
20521
20522 \size small
20523 Solo 
20524 \begin_inset Quotes eld
20525 \end_inset
20526
20527
20528 \family typewriter
20529 %s
20530 \family default
20531
20532 \begin_inset Quotes erd
20533 \end_inset
20534
20535  found.
20536 \end_layout
20537
20538 \begin_layout Enumerate
20539
20540 \size small
20541 You should use 
20542 \begin_inset Quotes eld
20543 \end_inset
20544
20545
20546 \family typewriter
20547 %s
20548 \family default
20549
20550 \begin_inset Quotes erd
20551 \end_inset
20552
20553  to achieve an ellipsis.
20554 \end_layout
20555
20556 \begin_layout Enumerate
20557
20558 \size small
20559 Inter-word spacing (
20560 \begin_inset Quotes eld
20561 \end_inset
20562
20563
20564 \family typewriter
20565
20566 \backslash
20567
20568 \family default
20569  
20570 \begin_inset Quotes eld
20571 \end_inset
20572
20573 ) should perhaps be used.
20574 \end_layout
20575
20576 \begin_layout Enumerate
20577
20578 \size small
20579 Inter-sentence spacing (
20580 \begin_inset Quotes eld
20581 \end_inset
20582
20583
20584 \family typewriter
20585
20586 \backslash
20587 @
20588 \family default
20589
20590 \begin_inset Quotes erd
20591 \end_inset
20592
20593 ) should perhaps be used.
20594 \end_layout
20595
20596 \begin_layout Enumerate
20597
20598 \size small
20599 Could not find argument for command.
20600 \end_layout
20601
20602 \begin_layout Enumerate
20603
20604 \size small
20605 No match found for 
20606 \begin_inset Quotes eld
20607 \end_inset
20608
20609
20610 \family typewriter
20611 %s
20612 \family default
20613
20614 \begin_inset Quotes erd
20615 \end_inset
20616
20617 .
20618 \end_layout
20619
20620 \begin_layout Enumerate
20621
20622 \size small
20623 Math mode still on at end of \SpecialChar LaTeX
20624  file.
20625 \end_layout
20626
20627 \begin_layout Enumerate
20628
20629 \size small
20630 Number of 
20631 \begin_inset Quotes eld
20632 \end_inset
20633
20634
20635 \family typewriter
20636 char
20637 \family default
20638
20639 \begin_inset Quotes erd
20640 \end_inset
20641
20642  doesn't match the number of 
20643 \begin_inset Quotes eld
20644 \end_inset
20645
20646
20647 \family typewriter
20648 char
20649 \family default
20650
20651 \begin_inset Quotes erd
20652 \end_inset
20653
20654 .
20655 \end_layout
20656
20657 \begin_layout Enumerate
20658
20659 \size small
20660 You should use either 
20661 \family typewriter
20662
20663 \begin_inset Quotes eld
20664 \end_inset
20665
20666
20667 \family default
20668  or 
20669 \family typewriter
20670
20671 \begin_inset Quotes erd
20672 \end_inset
20673
20674
20675 \family default
20676  as an alternative to 
20677 \begin_inset Quotes eld
20678 \end_inset
20679
20680
20681 \family typewriter
20682 "
20683 \family default
20684
20685 \begin_inset Quotes erd
20686 \end_inset
20687
20688 .
20689 \end_layout
20690
20691 \begin_layout Enumerate
20692
20693 \size small
20694 You should use "
20695 \family typewriter
20696 '
20697 \family default
20698 " (ASCII 39) instead of "
20699 \family typewriter
20700 ´
20701 \family default
20702 " (ASCII 180).
20703 \end_layout
20704
20705 \begin_layout Enumerate
20706
20707 \size small
20708 User-specified pattern found.
20709 \end_layout
20710
20711 \begin_layout Enumerate
20712
20713 \size small
20714 This command might not be intended.
20715 \end_layout
20716
20717 \begin_layout Enumerate
20718
20719 \size small
20720 \emph on
20721 Comment displayed.
20722 \end_layout
20723
20724 \begin_layout Enumerate
20725
20726 \size small
20727 Either 
20728 \family typewriter
20729 ''
20730 \backslash
20731 ,'
20732 \family default
20733  or 
20734 \family typewriter
20735 '
20736 \backslash
20737 ,''
20738 \family default
20739  will look better.
20740 \end_layout
20741
20742 \begin_layout Enumerate
20743
20744 \size small
20745 Delete this space to maintain correct page references.
20746 \end_layout
20747
20748 \begin_layout Enumerate
20749
20750 \size small
20751 \emph on
20752 You might wish to put this between a pair of 
20753 \begin_inset Quotes eld
20754 \end_inset
20755
20756
20757 \family typewriter
20758 {}
20759 \family default
20760
20761 \begin_inset Quotes erd
20762 \end_inset
20763
20764 .
20765 \end_layout
20766
20767 \begin_layout Enumerate
20768
20769 \size small
20770 You ought to remove spaces in front of punctuation.
20771 \end_layout
20772
20773 \begin_layout Enumerate
20774
20775 \size small
20776 Could not execute \SpecialChar LaTeX
20777  command.
20778 \end_layout
20779
20780 \begin_layout Enumerate
20781
20782 \size small
20783 Don't use 
20784 \family typewriter
20785
20786 \backslash
20787 /
20788 \family default
20789  in front of small punctuation.
20790 \end_layout
20791
20792 \begin_layout Enumerate
20793
20794 \family typewriter
20795 \size small
20796 $
20797 \backslash
20798 times$
20799 \family default
20800  may look prettier here.
20801 \end_layout
20802
20803 \begin_layout Enumerate
20804
20805 \size small
20806 \emph on
20807 Multiple spaces detected in output.
20808 \end_layout
20809
20810 \begin_layout Enumerate
20811
20812 \size small
20813 This text may be ignored.
20814 \end_layout
20815
20816 \begin_layout Enumerate
20817
20818 \size small
20819 Use 
20820 \family typewriter
20821
20822 \begin_inset Quotes eld
20823 \end_inset
20824
20825
20826 \family default
20827  to begin quotation, not 
20828 \family typewriter
20829 '
20830 \family default
20831 .
20832 \end_layout
20833
20834 \begin_layout Enumerate
20835
20836 \size small
20837 Use 
20838 \family typewriter
20839 '
20840 \family default
20841  to end quotation, not 
20842 \family typewriter
20843
20844 \begin_inset Quotes eld
20845 \end_inset
20846
20847
20848 \family default
20849 .
20850 \end_layout
20851
20852 \begin_layout Enumerate
20853
20854 \size small
20855 Don't mix quotes.
20856 \end_layout
20857
20858 \begin_layout Enumerate
20859
20860 \size small
20861 You should perhaps use 
20862 \begin_inset Quotes eld
20863 \end_inset
20864
20865
20866 \family typewriter
20867 cmd
20868 \family default
20869
20870 \begin_inset Quotes erd
20871 \end_inset
20872
20873  instead.
20874 \end_layout
20875
20876 \begin_layout Enumerate
20877
20878 \size small
20879 You should put a space in front of/after parenthesis.
20880 \end_layout
20881
20882 \begin_layout Enumerate
20883
20884 \size small
20885 You should avoid spaces in front of/after parenthesis.
20886 \end_layout
20887
20888 \begin_layout Enumerate
20889
20890 \size small
20891 \emph on
20892 You should not use punctuation in front of/after quotes.
20893 \end_layout
20894
20895 \begin_layout Enumerate
20896
20897 \size small
20898 Double space found.
20899 \end_layout
20900
20901 \begin_layout Enumerate
20902
20903 \size small
20904 You should put punctuation outside inner/inside display math mode.
20905 \end_layout
20906
20907 \begin_layout Enumerate
20908
20909 \size small
20910 You ought to not use primitive \SpecialChar TeX
20911  in \SpecialChar LaTeX
20912  code.
20913 \end_layout
20914
20915 \begin_layout Enumerate
20916
20917 \size small
20918 You should remove spaces in front of 
20919 \begin_inset Quotes eld
20920 \end_inset
20921
20922
20923 \family typewriter
20924 %s
20925 \family default
20926
20927 \begin_inset Quotes erd
20928 \end_inset
20929
20930
20931 \end_layout
20932
20933 \begin_layout Enumerate
20934
20935 \size small
20936 \begin_inset Quotes eld
20937 \end_inset
20938
20939
20940 \family typewriter
20941 %s
20942 \family default
20943
20944 \begin_inset Quotes erd
20945 \end_inset
20946
20947  is normally not followed by 
20948 \begin_inset Quotes eld
20949 \end_inset
20950
20951
20952 \family typewriter
20953 %c
20954 \family default
20955
20956 \begin_inset Quotes erd
20957 \end_inset
20958
20959 .
20960 \end_layout
20961
20962 \begin_layout Standard
20963 In later versions of \SpecialChar LyX
20964 , we hope to provide a more complete interface to this
20965  tool (and it's smaller cousin 
20966 \family typewriter
20967 lacheck
20968 \family default
20969 ) to exploit the full power of it.
20970  But it's not exactly useless as it is now: go try it on one of your existing
20971  documents of a certain length and be surprised.
20972 \end_layout
20973
20974 \begin_layout Section
20975 Version Control in \SpecialChar LyX
20976
20977 \end_layout
20978
20979 \begin_layout Standard
20980 by
20981 \noun on
20982  Lars Gullik Bjønnes 
20983 \noun default
20984 and 
20985 \noun on
20986 Pavel Sanda
20987 \end_layout
20988
20989 \begin_layout Subsection
20990 Introduction
20991 \end_layout
20992
20993 \begin_layout Standard
20994 \SpecialChar LyX
20995  supports some of the most basic RCS/CVS/SVN/GIT commands.
20996  If you need something a bit more sophisticated you will have to do that
20997  manually in a terminal.
20998 \end_layout
20999
21000 \begin_layout Standard
21001 Also note that CVS support is not as good as subversion support so we advise
21002  using SVN instead.
21003  A good place to start learning Subversion is SVN Book
21004 \begin_inset Foot
21005 status collapsed
21006
21007 \begin_layout Plain Layout
21008 \begin_inset CommandInset href
21009 LatexCommand href
21010 target "http://svnbook.red-bean.com/"
21011 literal "false"
21012
21013 \end_inset
21014
21015
21016 \end_layout
21017
21018 \end_inset
21019
21020 .
21021  In the case of RCS you should read 
21022 \begin_inset Quotes eld
21023 \end_inset
21024
21025 rcsintro
21026 \begin_inset Quotes erd
21027 \end_inset
21028
21029  (a man file, read it with 
21030 \family typewriter
21031 man rcsintro
21032 \family default
21033 ).
21034  This file describes all the basic features of RCS.
21035  You should especially notice the comment about a RCS directory, and the
21036  notion of a master RCS file (the file ending in 
21037 \family typewriter
21038 ,v
21039 \family default
21040 ).
21041 \end_layout
21042
21043 \begin_layout Standard
21044 Before you begin to use the version control features in \SpecialChar LyX
21045 , you should be
21046  familiar with RCS/CVS/SVN/GIT usage.
21047  The implementation in \SpecialChar LyX
21048  assumes a recent version of the GNU RCS or CVS/SVN
21049  package — no guarantees are made for older versions.
21050  Most of the log messages are not currently displayed after operations —
21051  you can check them in the Messages pane if unsure.
21052  Regular users of version control will appreciate VC toolbar, which can
21053  be enabled via 
21054 \family sans
21055 View\SpecialChar menuseparator
21056 Toolbars\SpecialChar menuseparator
21057 Version
21058 \begin_inset space ~
21059 \end_inset
21060
21061 Control
21062 \family default
21063 .
21064 \end_layout
21065
21066 \begin_layout Standard
21067 For introducing your own external commands consult vc-command in the manual
21068  of \SpecialChar LyX
21069  functions.
21070 \end_layout
21071
21072 \begin_layout Standard
21073 It is strongly recommended to store documents in uncompressed format if
21074  using version control (uncheck 
21075 \family sans
21076 Document\SpecialChar menuseparator
21077 Compressed
21078 \family default
21079  if it is checked): Uncompressed LyX documents are text files and therefore
21080  for merging two different versions by version control systems.
21081  Compressed LyX documents are binary files, which cannot be merged by version
21082  control systems.
21083 \end_layout
21084
21085 \begin_layout Subsection
21086 RCS commands in \SpecialChar LyX
21087
21088 \end_layout
21089
21090 \begin_layout Standard
21091 The following sections describe the RCS commands supported by \SpecialChar LyX
21092 .
21093  You can find them in the 
21094 \family sans
21095 File\SpecialChar menuseparator
21096 Version
21097 \begin_inset space ~
21098 \end_inset
21099
21100 Control
21101 \family default
21102  submenu.
21103  \SpecialChar LyX
21104  was tested against RCS 5.7/5.8.
21105 \end_layout
21106
21107 \begin_layout Subsubsection
21108
21109 \family sans
21110 Register
21111 \end_layout
21112
21113 \begin_layout Standard
21114 If your document is not under revision control, this is the only item shown
21115  in the menu.
21116  And if it is under revision control, the 
21117 \family sans
21118 Register
21119 \family default
21120  item is not visible.
21121  
21122 \end_layout
21123
21124 \begin_layout Standard
21125 This command registers your document with RCS (unless you are under the
21126  directory managed by CVS)\SpecialChar endofsentence
21127  You are asked interactively to supply an initial
21128  description of the document.
21129  The document is now set in Read-Only mode and you have to 
21130 \family sans
21131 Check
21132 \begin_inset space ~
21133 \end_inset
21134
21135 Out
21136 \begin_inset space ~
21137 \end_inset
21138
21139 For
21140 \begin_inset space ~
21141 \end_inset
21142
21143 Edit
21144 \family default
21145 , before making any changes to it.
21146  A document under revision control has a 
21147 \begin_inset Quotes eld
21148 \end_inset
21149
21150 [RCS:<version> <locker>]
21151 \begin_inset Quotes erd
21152 \end_inset
21153
21154  item tagged to the filename in the minibuffer.
21155 \end_layout
21156
21157 \begin_layout Standard
21158 RCS command that is run: 
21159 \family typewriter
21160 ci -q -u -i -t-"<initial description>" <file-name>
21161 \end_layout
21162
21163 \begin_layout Standard
21164 Read 
21165 \family typewriter
21166 man ci
21167 \family default
21168  to understand the switches.
21169  
21170 \end_layout
21171
21172 \begin_layout Subsubsection
21173
21174 \family sans
21175 Check In Changes
21176 \end_layout
21177
21178 \begin_layout Standard
21179 When you are finished editing a file, you check in your changes.
21180  When you do this, you are asked for a description of the changes.
21181  This is stored in the history log.
21182  The version number is bumped, your changes are applied to the master RCS
21183  file, the document is unlocked and set to Read-Only mode.
21184 \end_layout
21185
21186 \begin_layout Standard
21187 RCS command: 
21188 \family typewriter
21189 ci -q -u -m"<description>" <file-name>
21190 \end_layout
21191
21192 \begin_layout Subsubsection
21193
21194 \family sans
21195 Check Out For Edit
21196 \end_layout
21197
21198 \begin_layout Standard
21199 By doing this you lock the document so that only you can edit it.
21200  This will also make the document Read-Write only for you.
21201  You will usually continue editing for a while and when you are finished
21202  you check in your changes.
21203  The status line is changed to reflect that you have locked the file.
21204 \end_layout
21205
21206 \begin_layout Standard
21207 RCS command: 
21208 \family typewriter
21209 co -q -l <file-name>
21210 \end_layout
21211
21212 \begin_layout Subsubsection
21213
21214 \family sans
21215 Revert To Repository Version
21216 \end_layout
21217
21218 \begin_layout Standard
21219 This will discard all changes made to the document since the last check
21220  in.
21221  You get a warning before changes are discarded.
21222 \end_layout
21223
21224 \begin_layout Standard
21225 RCS command: 
21226 \family typewriter
21227 co -f -u<version> <file-name>
21228 \end_layout
21229
21230 \begin_layout Subsubsection
21231
21232 \family sans
21233 Copy
21234 \end_layout
21235
21236 \begin_layout Standard
21237 This will create a copy of the current document.
21238  Since RCS does not support copy operations natively, the version history
21239  is not preserved, and the copy is added as a new file.
21240  It requires a clean document without any changes since the last checkin.
21241  You are asked for a file name and a description of the copy operation.
21242  After that the copy is created, both locally and in the repository.
21243  If the parent directories of the copied and original document differ, all
21244  relative paths of included files of the copy are adjusted (like in 
21245 \family sans
21246 File\SpecialChar menuseparator
21247 Save As
21248 \family default
21249 \SpecialChar ldots
21250 ).
21251  Finally, the copy is loaded instead of the original document.
21252 \end_layout
21253
21254 \begin_layout Labeling
21255 \labelwidthstring 00.00.0000
21256 RCS
21257 \begin_inset space ~
21258 \end_inset
21259
21260 commands: 
21261 \begin_inset space ~
21262 \end_inset
21263
21264
21265 \begin_inset Newline newline
21266 \end_inset
21267
21268 Copy 
21269 \begin_inset Flex Code
21270 status collapsed
21271
21272 \begin_layout Plain Layout
21273
21274 \family typewriter
21275 \begin_inset Quotes eld
21276 \end_inset
21277
21278 <file-name>
21279 \begin_inset Quotes erd
21280 \end_inset
21281
21282
21283 \end_layout
21284
21285 \end_inset
21286
21287  to 
21288 \begin_inset Flex Code
21289 status collapsed
21290
21291 \begin_layout Plain Layout
21292
21293 \family typewriter
21294 \begin_inset Quotes eld
21295 \end_inset
21296
21297 <new-file-name>
21298 \begin_inset Quotes erd
21299 \end_inset
21300
21301
21302 \end_layout
21303
21304 \end_inset
21305
21306
21307 \begin_inset Newline newline
21308 \end_inset
21309
21310
21311 \begin_inset Flex Code
21312 status collapsed
21313
21314 \begin_layout Plain Layout
21315 ci -q -u 
21316 \family typewriter
21317 -i 
21318 \begin_inset Quotes eld
21319 \end_inset
21320
21321 <new-file-name>
21322 \begin_inset Quotes erd
21323 \end_inset
21324
21325
21326 \end_layout
21327
21328 \end_inset
21329
21330
21331 \end_layout
21332
21333 \begin_layout Subsubsection
21334
21335 \family sans
21336 Undo Last Checkin
21337 \end_layout
21338
21339 \begin_layout Standard
21340 This makes as if the last check in never happened.
21341  No changes are made to the document loaded into \SpecialChar LyX
21342 , but the last version
21343  is removed from the master RCS file.
21344 \end_layout
21345
21346 \begin_layout Standard
21347 RCS command: 
21348 \family typewriter
21349 rcs -o<version> <file-name>
21350 \end_layout
21351
21352 \begin_layout Subsubsection
21353
21354 \family sans
21355 Show History
21356 \end_layout
21357
21358 \begin_layout Standard
21359 This shows the complete history of the RCS document.
21360  The output of 
21361 \family typewriter
21362 rlog <file-name>
21363 \family default
21364  is shown in a browser.
21365  See 
21366 \family typewriter
21367 man rlog
21368 \family default
21369  for more info.
21370 \end_layout
21371
21372 \begin_layout Subsubsection
21373 Revision info
21374 \end_layout
21375
21376 \begin_layout Standard
21377 \SpecialChar LyX
21378  supports RCS version number, author name, date and time of last commit.
21379  All those are extracted from 
21380 \family typewriter
21381 rlog -r <file-name>
21382 \family default
21383 .
21384  See 
21385 \begin_inset CommandInset ref
21386 LatexCommand ref
21387 reference "subsec:VCS-Revision-Information"
21388
21389 \end_inset
21390
21391  for details.
21392 \end_layout
21393
21394 \begin_layout Subsection
21395 CVS commands in \SpecialChar LyX
21396
21397 \end_layout
21398
21399 \begin_layout Standard
21400 A subset of CVS operations is supported by \SpecialChar LyX
21401 .
21402  You can find the commands in the 
21403 \family sans
21404 File\SpecialChar menuseparator
21405 Version
21406 \begin_inset space ~
21407 \end_inset
21408
21409 Control
21410 \family default
21411  submenu.
21412  The version control system SVN is more powerful, so please use it instead
21413  of CVS if possible.
21414 \end_layout
21415
21416 \begin_layout Subsubsection
21417
21418 \family sans
21419 General CVS usage
21420 \end_layout
21421
21422 \begin_layout Standard
21423 If you start from scratch with CVS you have to create your repository and
21424  checkout the working copy with external tools.
21425  If you're using a client-server setup you may need to login before doing
21426  the first repository checkout.
21427 \end_layout
21428
21429 \begin_layout Standard
21430 If your documents are under revision control and others are using the same
21431  repository problems arise when different changes to the same document at
21432  the same location happen.
21433  Standard CVS repositories don't operate with a file locking mechanism.
21434  This may be surprising, but conflicts only occur if people disagree on
21435  the proper content of the same part of a document.
21436  So, if co-workers are used to communicate regularly, these conflicts occur
21437  rarely.
21438  If they don't communicate they have a fundamental problem anyway.
21439  Nevertheless some people like to work with so called 
21440 \begin_inset Quotes eld
21441 \end_inset
21442
21443 reserved checkouts
21444 \begin_inset Quotes erd
21445 \end_inset
21446
21447 .
21448  If they do so the working copy of all files is readonly when checked out
21449  first and the user starts editing after using a special command to make
21450  the working copy writable.
21451  When the changes are checked in the working copy returns to readonly state.
21452  With \SpecialChar LyX
21453  one has to edit the 
21454 \begin_inset Flex Code
21455 status collapsed
21456
21457 \begin_layout Plain Layout
21458 .cvsrc
21459 \end_layout
21460
21461 \end_inset
21462
21463  file and add the line 
21464 \begin_inset Flex Code
21465 status collapsed
21466
21467 \begin_layout Plain Layout
21468 cvs -r
21469 \end_layout
21470
21471 \end_inset
21472
21473  to work with reserved checkouts.
21474  The benefit is the possibility to see who is using a writable copy of some
21475  document.
21476  It's not guaranteed only one user makes a copy writable.
21477 \end_layout
21478
21479 \begin_layout Standard
21480 \SpecialChar LyX
21481  tries to guess if you're using reserved or non-reserved checkouts.
21482  If your working copy is readonly or it is writable and an additional copy
21483  of your document exists in the CVS/Base sub-directory a reserved otherwise
21484  a non-reserved checkout is assumed.
21485  When a reserved checkout is detected you have to use 
21486 \begin_inset Flex Noun
21487 status collapsed
21488
21489 \begin_layout Plain Layout
21490 Check Out
21491 \end_layout
21492
21493 \end_inset
21494
21495  to make your working copy writable if it's readonly.
21496  After doing so the 
21497 \begin_inset Flex Noun
21498 status collapsed
21499
21500 \begin_layout Plain Layout
21501 Check In
21502 \end_layout
21503
21504 \end_inset
21505
21506  operation is possible and that makes your working copy readonly again after
21507  transferring your changes to the repository.
21508 \end_layout
21509
21510 \begin_layout Standard
21511 More information about CVS can be found here 
21512 \begin_inset Flex URL
21513 status collapsed
21514
21515 \begin_layout Plain Layout
21516
21517 http://www.nongnu.org/cvs
21518 \end_layout
21519
21520 \end_inset
21521
21522  and here 
21523 \begin_inset Flex URL
21524 status collapsed
21525
21526 \begin_layout Plain Layout
21527
21528 http://ximbiot.com/cvs
21529 \end_layout
21530
21531 \end_inset
21532
21533 .
21534 \end_layout
21535
21536 \begin_layout Standard
21537 Read 
21538 \family typewriter
21539 man cvs
21540 \family default
21541  to understand the sub-commands and the switches mentioned below.
21542 \end_layout
21543
21544 \begin_layout Subsubsection
21545
21546 \family sans
21547 Register
21548 \end_layout
21549
21550 \begin_layout Standard
21551 If your document is not under revision control, this is the only item shown
21552  in the menu.
21553  And if it is under revision control, the 
21554 \family sans
21555 Register
21556 \family default
21557  item is not visible.
21558  
21559 \end_layout
21560
21561 \begin_layout Standard
21562 This command registers in CVS your document 
21563 \begin_inset Flex Strong
21564 status collapsed
21565
21566 \begin_layout Plain Layout
21567
21568 \emph on
21569 only
21570 \end_layout
21571
21572 \end_inset
21573
21574  in the case you have already the documents directory under CVS control
21575  (in particular 
21576 \family typewriter
21577 CVS/Entries
21578 \family default
21579  file exists).
21580  This means you have to create or checkout the archive by yourself using
21581  external tools.
21582  (In case you forget that step \SpecialChar LyX
21583  registers the document with RCS.)
21584 \end_layout
21585
21586 \begin_layout Standard
21587 Then you are asked interactively to supply an initial description of the
21588  document.
21589  Don't forget that registered file is not yet checked in.
21590 \end_layout
21591
21592 \begin_layout Standard
21593 CVS command that is run: 
21594 \family typewriter
21595 cvs -q add -m"<entered message>" "<file-name>"
21596 \end_layout
21597
21598 \begin_layout Standard
21599 The term 
21600 \family typewriter
21601 "<file-name>"
21602 \family default
21603  above and for all other CVS commands is an abbreviation for 
21604 \begin_inset Quotes eld
21605 \end_inset
21606
21607 change the current working directory to file location and use the file name
21608  without path component as argument
21609 \begin_inset Quotes erd
21610 \end_inset
21611
21612 .
21613 \end_layout
21614
21615 \begin_layout Subsubsection
21616
21617 \family sans
21618 Check In Changes
21619 \end_layout
21620
21621 \begin_layout Standard
21622 When you are finished editing a file, you commit your changes.
21623  When you do this and you had changed the document, you are asked for a
21624  description of the changes.
21625  After that changes are written to the repository.
21626  In case you didn't change the document and a reserved checkout is detected
21627  the reservation made on 
21628 \begin_inset Flex Noun
21629 status collapsed
21630
21631 \begin_layout Plain Layout
21632 Check Out
21633 \end_layout
21634
21635 \end_inset
21636
21637  is undone.
21638 \end_layout
21639
21640 \begin_layout Labeling
21641 \labelwidthstring 00.00.0000
21642 CVS
21643 \begin_inset space ~
21644 \end_inset
21645
21646 command: 
21647 \begin_inset space ~
21648 \end_inset
21649
21650
21651 \begin_inset Newline newline
21652 \end_inset
21653
21654
21655 \begin_inset Flex Code
21656 status collapsed
21657
21658 \begin_layout Plain Layout
21659 cvs 
21660 \family typewriter
21661 -q commit -m"<description>" "<file-name>"
21662 \end_layout
21663
21664 \end_inset
21665
21666  or
21667 \begin_inset Newline newline
21668 \end_inset
21669
21670
21671 \begin_inset Flex Code
21672 status collapsed
21673
21674 \begin_layout Plain Layout
21675 cvs -q unedit 
21676 \family typewriter
21677 "<file-name>"
21678 \end_layout
21679
21680 \end_inset
21681
21682
21683 \end_layout
21684
21685 \begin_layout Subsubsection
21686
21687 \family sans
21688 Check Out Changes
21689 \end_layout
21690
21691 \begin_layout Standard
21692 When you are sharing a repository with others, you may have to incorporate
21693  their changes into your working copy.
21694 \end_layout
21695
21696 \begin_layout Standard
21697 CVS command: 
21698 \family typewriter
21699 cvs -q update "<file-name>"
21700 \end_layout
21701
21702 \begin_layout Standard
21703 If a readonly checkout is detected the working copy is made writable and
21704  reserved.
21705 \end_layout
21706
21707 \begin_layout Standard
21708 CVS command: 
21709 \family typewriter
21710 cvs -q edit "<file-name>"
21711 \end_layout
21712
21713 \begin_layout Subsubsection
21714
21715 \family sans
21716 Revert To Repository Version
21717 \end_layout
21718
21719 \begin_layout Standard
21720 This will discard all changes made to the document since the last check
21721  in.
21722  You get a warning before changes are discarded.
21723  Firstly the file is deleted, secondly CVS update command is run.
21724 \end_layout
21725
21726 \begin_layout Standard
21727 CVS command: 
21728 \family typewriter
21729 cvs -q update "<file-name>"
21730 \end_layout
21731
21732 \begin_layout Standard
21733 If a reserved checkout is detected and the working copy has no changes only
21734  the reservation is undone.
21735 \end_layout
21736
21737 \begin_layout Standard
21738 CVS command: 
21739 \family typewriter
21740 cvs -q unedit "<file-name>"
21741 \end_layout
21742
21743 \begin_layout Subsubsection
21744
21745 \family sans
21746 Copy
21747 \end_layout
21748
21749 \begin_layout Standard
21750 This will create a copy of the current document.
21751  Since CVS does not support copy operations natively, the version history
21752  is not preserved, and the copy is added as a new file.
21753  It requires a clean document without any changes since the last checkin.
21754  You are asked for a file name and a description of the copy operation.
21755  After that the copy is created, both locally and in the repository.
21756  If the parent directories of the copied and original document differ, all
21757  relative paths of included files of the copy are adjusted (like in 
21758 \family sans
21759 File\SpecialChar menuseparator
21760 Save As
21761 \family default
21762 \SpecialChar ldots
21763 ).
21764  Finally, the copy is loaded instead of the original document.
21765 \end_layout
21766
21767 \begin_layout Labeling
21768 \labelwidthstring 00.00.0000
21769 CVS
21770 \begin_inset space ~
21771 \end_inset
21772
21773 commands: 
21774 \begin_inset space ~
21775 \end_inset
21776
21777
21778 \begin_inset Newline newline
21779 \end_inset
21780
21781 Copy 
21782 \begin_inset Flex Code
21783 status collapsed
21784
21785 \begin_layout Plain Layout
21786
21787 \family typewriter
21788 \begin_inset Quotes eld
21789 \end_inset
21790
21791 <file-name>
21792 \begin_inset Quotes erd
21793 \end_inset
21794
21795
21796 \end_layout
21797
21798 \end_inset
21799
21800  to 
21801 \begin_inset Flex Code
21802 status collapsed
21803
21804 \begin_layout Plain Layout
21805
21806 \family typewriter
21807 \begin_inset Quotes eld
21808 \end_inset
21809
21810 <new-file-name>
21811 \begin_inset Quotes erd
21812 \end_inset
21813
21814
21815 \end_layout
21816
21817 \end_inset
21818
21819
21820 \begin_inset Newline newline
21821 \end_inset
21822
21823
21824 \begin_inset Flex Code
21825 status collapsed
21826
21827 \begin_layout Plain Layout
21828 cvs -q add 
21829 \family typewriter
21830
21831 \begin_inset Quotes eld
21832 \end_inset
21833
21834 <new-file-name>
21835 \begin_inset Quotes erd
21836 \end_inset
21837
21838
21839 \end_layout
21840
21841 \end_inset
21842
21843
21844 \end_layout
21845
21846 \begin_layout Subsubsection
21847
21848 \family sans
21849 Rename
21850 \end_layout
21851
21852 \begin_layout Standard
21853 This will rename the current document.
21854  Since CVS does not support rename operations natively, the version history
21855  is not preserved, the renamed document is added as a new file, and the
21856  original document is deleted.
21857  It requires a clean document without any changes since the last checkin.
21858  You are asked for a file name and a description of the rename operation.
21859  After that the document is renamed, both locally and in the repository.
21860  If the parent directories of the new and old file names differ, all relative
21861  paths of included files are adjusted (like in 
21862 \family sans
21863 File\SpecialChar menuseparator
21864 Save As
21865 \family default
21866 \SpecialChar ldots
21867 ).
21868  Finally, the document is reloaded using the new name.
21869 \end_layout
21870
21871 \begin_layout Labeling
21872 \labelwidthstring 00.00.0000
21873 CVS
21874 \begin_inset space ~
21875 \end_inset
21876
21877 commands: 
21878 \begin_inset space ~
21879 \end_inset
21880
21881
21882 \begin_inset Newline newline
21883 \end_inset
21884
21885 Rename 
21886 \begin_inset Flex Code
21887 status collapsed
21888
21889 \begin_layout Plain Layout
21890
21891 \family typewriter
21892 \begin_inset Quotes eld
21893 \end_inset
21894
21895 <file-name>
21896 \begin_inset Quotes erd
21897 \end_inset
21898
21899
21900 \end_layout
21901
21902 \end_inset
21903
21904  to 
21905 \begin_inset Flex Code
21906 status collapsed
21907
21908 \begin_layout Plain Layout
21909
21910 \family typewriter
21911 \begin_inset Quotes eld
21912 \end_inset
21913
21914 <new-file-name>
21915 \begin_inset Quotes erd
21916 \end_inset
21917
21918
21919 \end_layout
21920
21921 \end_inset
21922
21923
21924 \begin_inset Newline newline
21925 \end_inset
21926
21927
21928 \begin_inset Flex Code
21929 status collapsed
21930
21931 \begin_layout Plain Layout
21932 cvs -q add 
21933 \family typewriter
21934
21935 \begin_inset Quotes eld
21936 \end_inset
21937
21938 <new-file-name>
21939 \begin_inset Quotes erd
21940 \end_inset
21941
21942
21943 \end_layout
21944
21945 \end_inset
21946
21947
21948 \begin_inset Newline newline
21949 \end_inset
21950
21951
21952 \begin_inset Flex Code
21953 status collapsed
21954
21955 \begin_layout Plain Layout
21956 cvs -q remove 
21957 \family typewriter
21958
21959 \begin_inset Quotes eld
21960 \end_inset
21961
21962 <file-name>
21963 \begin_inset Quotes erd
21964 \end_inset
21965
21966
21967 \end_layout
21968
21969 \end_inset
21970
21971
21972 \end_layout
21973
21974 \begin_layout Subsubsection
21975 Update of the local directory checkout from repository
21976 \end_layout
21977
21978 \begin_layout Standard
21979 Once your documents gets more complex, containing sub-documents and pictures,
21980  including external 
21981 \begin_inset Flex Code
21982 status collapsed
21983
21984 \begin_layout Plain Layout
21985 .tex
21986 \end_layout
21987
21988 \end_inset
21989
21990  files and so on using version control becomes more complicated.
21991  \SpecialChar LyX
21992  supports updating the whole tree in which resides the document.
21993  This become especially useful once you cooperate with people which neither
21994  have detailed knowledge about CVS usage nor they have ambition to commit
21995  additional material to the repository.
21996  You have to organize the files structure so that all external files are
21997  in the same directory or subdirectories of the document.
21998  It's good practice anyway to store multipart documents in an extra directory.
21999 \end_layout
22000
22001 \begin_layout Standard
22002 The 
22003 \begin_inset Flex Code
22004 status collapsed
22005
22006 \begin_layout Plain Layout
22007 Update local directory from repository
22008 \end_layout
22009
22010 \end_inset
22011
22012  command updates the whole directory.
22013  If local changes are detected user is warned before update starts.
22014  In case of merge conflicts both versions of the conflicting document parts
22015  are placed in the final document.
22016  You have to review and correct the result of the merge.
22017  You'll find the conflicts enclosed in pairs of 
22018 \begin_inset Flex Code
22019 status collapsed
22020
22021 \begin_layout Plain Layout
22022 <<<<<<<
22023 \end_layout
22024
22025 \end_inset
22026
22027  and 
22028 \begin_inset Flex Code
22029 status collapsed
22030
22031 \begin_layout Plain Layout
22032 >>>>>>>
22033 \end_layout
22034
22035 \end_inset
22036
22037  separated by 
22038 \begin_inset Flex Code
22039 status collapsed
22040
22041 \begin_layout Plain Layout
22042 =======
22043 \end_layout
22044
22045 \end_inset
22046
22047 .
22048  The first part is your version as before the update operation with the
22049  document name prepended.
22050  The second one is the repository version with the version number after
22051  the sequence of 
22052 \begin_inset Flex Code
22053 status collapsed
22054
22055 \begin_layout Plain Layout
22056 >
22057 \end_layout
22058
22059 \end_inset
22060
22061  signs.
22062 \end_layout
22063
22064 \begin_layout Labeling
22065 \labelwidthstring 00.00.0000
22066 CVS
22067 \begin_inset space ~
22068 \end_inset
22069
22070 commands: 
22071 \begin_inset space ~
22072 \end_inset
22073
22074
22075 \begin_inset Newline newline
22076 \end_inset
22077
22078
22079 \begin_inset Flex Code
22080 status collapsed
22081
22082 \begin_layout Plain Layout
22083 cd $path; cvs diff 
22084 \family typewriter
22085 "."
22086 \end_layout
22087
22088 \end_inset
22089
22090  (Ask if changes are detected.)
22091 \begin_inset Newline newline
22092 \end_inset
22093
22094
22095 \begin_inset Flex Code
22096 status collapsed
22097
22098 \begin_layout Plain Layout
22099 cd $path; cvs -q update 
22100 \family typewriter
22101 "."
22102 \end_layout
22103
22104 \end_inset
22105
22106
22107 \end_layout
22108
22109 \begin_layout Standard
22110 where 
22111 \begin_inset Flex Code
22112 status collapsed
22113
22114 \begin_layout Plain Layout
22115 $path
22116 \end_layout
22117
22118 \end_inset
22119
22120  stands for the path to the document.
22121 \end_layout
22122
22123 \begin_layout Subsubsection
22124
22125 \family sans
22126 Show History
22127 \end_layout
22128
22129 \begin_layout Standard
22130 This shows the complete history of the CVS document.
22131  The output of 
22132 \family typewriter
22133 cvs log "<file-name>"
22134 \family default
22135  is shown in a browser.
22136 \end_layout
22137
22138 \begin_layout Subsubsection
22139 Revision info
22140 \end_layout
22141
22142 \begin_layout Standard
22143 \SpecialChar LyX
22144  supports CVS version number, author name, date and time of last commit.
22145  All those are extracted from 
22146 \family typewriter
22147 cvs log -r <file-name>
22148 \family default
22149 .
22150  See 
22151 \begin_inset CommandInset ref
22152 LatexCommand ref
22153 reference "subsec:VCS-Revision-Information"
22154
22155 \end_inset
22156
22157  for details.
22158 \end_layout
22159
22160 \begin_layout Subsection
22161 SVN commands in \SpecialChar LyX
22162
22163 \end_layout
22164
22165 \begin_layout Standard
22166 SVN is now partially supported by \SpecialChar LyX
22167 .
22168  You can find the commands in the 
22169 \family sans
22170 File\SpecialChar menuseparator
22171 Version
22172 \begin_inset space ~
22173 \end_inset
22174
22175 Control
22176 \family default
22177  submenu.
22178  Please note that if you use password protected access to repository via
22179  ssh, you will be asked in terminal window.
22180  \SpecialChar LyX
22181  was tested against SVN 1.5, 1.6, 1.7 and 1.8
22182 \begin_inset Foot
22183 status open
22184
22185 \begin_layout Plain Layout
22186 Most of the commands will work with 1.4 too, see 
22187 \begin_inset CommandInset ref
22188 LatexCommand ref
22189 reference "subsec:SVN-Repo-Update"
22190
22191 \end_inset
22192
22193 .
22194  There seems to be currently unresolved permissions problem under SVN 1.8
22195  with reverting changes when file is locked.
22196 \end_layout
22197
22198 \end_inset
22199
22200
22201 \end_layout
22202
22203 \begin_layout Subsubsection
22204
22205 \family sans
22206 Register
22207 \end_layout
22208
22209 \begin_layout Standard
22210 If your document is not under revision control, this is the only item shown
22211  in the menu.
22212  And if it is under revision control, the 
22213 \family sans
22214 Register
22215 \family default
22216  item is not visible.
22217 \end_layout
22218
22219 \begin_layout Standard
22220 This command registers in SVN your document ONLY in case you have already
22221  the documents directory under SVN control (in particular 
22222 \family typewriter
22223 .svn/entries
22224 \family default
22225  file exists).
22226  This means you have to checkout the archive by yourself.
22227 \end_layout
22228
22229 \begin_layout Standard
22230 Then you are asked interactively to supply an initial description of the
22231  document.
22232  Don't forget that registered file is not yet commited.
22233 \end_layout
22234
22235 \begin_layout Standard
22236 SVN command that is run: 
22237 \family typewriter
22238 svn add -q 
22239 \begin_inset Quotes eld
22240 \end_inset
22241
22242 <file-name>
22243 \begin_inset Quotes erd
22244 \end_inset
22245
22246
22247 \end_layout
22248
22249 \begin_layout Standard
22250 Read 
22251 \family typewriter
22252 man svn
22253 \family default
22254  to understand the switches.
22255 \end_layout
22256
22257 \begin_layout Subsubsection
22258
22259 \family sans
22260 Check In Changes
22261 \end_layout
22262
22263 \begin_layout Standard
22264 When you are finished editing a file, you commit your changes.
22265  When you do this, you are asked for a description of the changes.
22266  After that changes are commited.
22267 \end_layout
22268
22269 \begin_layout Standard
22270 SVN command:
22271 \begin_inset Foot
22272 status collapsed
22273
22274 \begin_layout Plain Layout
22275 In case locking is not enabled.
22276  See Section 
22277 \begin_inset CommandInset ref
22278 LatexCommand ref
22279 reference "subsec:SVN-File-Locking"
22280
22281 \end_inset
22282
22283 .
22284 \end_layout
22285
22286 \end_inset
22287
22288  
22289 \family typewriter
22290 svn commit -q -m"<description>" <file-name>
22291 \end_layout
22292
22293 \begin_layout Subsubsection
22294
22295 \family sans
22296 Check Out For Edit
22297 \end_layout
22298
22299 \begin_layout Standard
22300 Updates the changes of this file from the repository.
22301  Be sure you understand SVN merging and conflicts resolving before using
22302  this function, because all conflicts has to be resolved manually by you!
22303 \end_layout
22304
22305 \begin_layout Standard
22306 SVN command:
22307 \begin_inset Foot
22308 status collapsed
22309
22310 \begin_layout Plain Layout
22311 Ditto.
22312 \end_layout
22313
22314 \end_inset
22315
22316  
22317 \family typewriter
22318 svn update --non-interactive 
22319 \begin_inset Quotes eld
22320 \end_inset
22321
22322 <file-name>
22323 \begin_inset Quotes erd
22324 \end_inset
22325
22326
22327 \end_layout
22328
22329 \begin_layout Subsubsection
22330
22331 \family sans
22332 Revert To Repository Version
22333 \end_layout
22334
22335 \begin_layout Standard
22336 This will discard all changes made to the document since the last check
22337  in.
22338  You get a warning before changes are discarded.
22339 \end_layout
22340
22341 \begin_layout Standard
22342 SVN command: 
22343 \family typewriter
22344 svn revert -q 
22345 \begin_inset Quotes eld
22346 \end_inset
22347
22348 <file-name>
22349 \begin_inset Quotes erd
22350 \end_inset
22351
22352
22353 \end_layout
22354
22355 \begin_layout Subsubsection
22356
22357 \family sans
22358 Copy
22359 \end_layout
22360
22361 \begin_layout Standard
22362 This will create a copy of the current document including the version history.
22363  It requires a clean document without any changes since the last checkin.
22364  You are asked for a file name and a description of the copy operation.
22365  After that the copy is created, both locally and in the repository.
22366  If the parent directories of the copied and original document differ, all
22367  relative paths of included files of the copy are adjusted (like in 
22368 \family sans
22369 File\SpecialChar menuseparator
22370 Save As
22371 \family default
22372 \SpecialChar ldots
22373 ).
22374  Finally, the copy is loaded instead of the original document.
22375 \end_layout
22376
22377 \begin_layout Labeling
22378 \labelwidthstring 00.00.0000
22379 SVN
22380 \begin_inset space ~
22381 \end_inset
22382
22383 commands: 
22384 \begin_inset space ~
22385 \end_inset
22386
22387
22388 \begin_inset Newline newline
22389 \end_inset
22390
22391
22392 \begin_inset Flex Code
22393 status collapsed
22394
22395 \begin_layout Plain Layout
22396 svn copy -q 
22397 \family typewriter
22398
22399 \begin_inset Quotes eld
22400 \end_inset
22401
22402 <file-name>
22403 \begin_inset Quotes erd
22404 \end_inset
22405
22406  
22407 \begin_inset Quotes eld
22408 \end_inset
22409
22410 <new-file-name>
22411 \begin_inset Quotes erd
22412 \end_inset
22413
22414
22415 \end_layout
22416
22417 \end_inset
22418
22419
22420 \begin_inset Newline newline
22421 \end_inset
22422
22423
22424 \begin_inset Flex Code
22425 status collapsed
22426
22427 \begin_layout Plain Layout
22428 svn commit
22429 \end_layout
22430
22431 \end_inset
22432
22433
22434 \end_layout
22435
22436 \begin_layout Subsubsection
22437
22438 \family sans
22439 Rename
22440 \end_layout
22441
22442 \begin_layout Standard
22443 This will rename the current document including the version history.
22444  It requires a clean document without any changes since the last checkin.
22445  You are asked for a file name and a description of the rename operation.
22446  After that the document is renamed, both locally and in the repository.
22447  If the parent directories of the new and old file names differ, all relative
22448  paths of included files are adjusted (like in 
22449 \family sans
22450 File\SpecialChar menuseparator
22451 Save As
22452 \family default
22453 \SpecialChar ldots
22454 ).
22455  Finally, the document is reloaded using the new name.
22456 \end_layout
22457
22458 \begin_layout Labeling
22459 \labelwidthstring 00.00.0000
22460 SVN
22461 \begin_inset space ~
22462 \end_inset
22463
22464 commands: 
22465 \begin_inset space ~
22466 \end_inset
22467
22468
22469 \begin_inset Newline newline
22470 \end_inset
22471
22472
22473 \begin_inset Flex Code
22474 status collapsed
22475
22476 \begin_layout Plain Layout
22477 svn move -q 
22478 \family typewriter
22479
22480 \begin_inset Quotes eld
22481 \end_inset
22482
22483 <file-name>
22484 \begin_inset Quotes erd
22485 \end_inset
22486
22487  
22488 \begin_inset Quotes eld
22489 \end_inset
22490
22491 <new-file-name>
22492 \begin_inset Quotes erd
22493 \end_inset
22494
22495
22496 \end_layout
22497
22498 \end_inset
22499
22500
22501 \begin_inset Newline newline
22502 \end_inset
22503
22504
22505 \begin_inset Flex Code
22506 status collapsed
22507
22508 \begin_layout Plain Layout
22509 svn commit
22510 \end_layout
22511
22512 \end_inset
22513
22514
22515 \end_layout
22516
22517 \begin_layout Subsubsection
22518 \begin_inset CommandInset label
22519 LatexCommand label
22520 name "subsec:SVN-Repo-Update"
22521
22522 \end_inset
22523
22524 Update of the local directory checkout from repository
22525 \begin_inset Foot
22526 status collapsed
22527
22528 \begin_layout Plain Layout
22529 Note that this command will work only with subversion 
22530 \begin_inset Formula $\geqq1.5$
22531 \end_inset
22532
22533
22534 \end_layout
22535
22536 \end_inset
22537
22538
22539 \end_layout
22540
22541 \begin_layout Standard
22542 All the commands above have one shortcomming - they deal with the current
22543  document only.
22544  Once your document contains pictures, includes external 
22545 \begin_inset Flex Code
22546 status collapsed
22547
22548 \begin_layout Plain Layout
22549 .tex
22550 \end_layout
22551
22552 \end_inset
22553
22554  files and so on administration becomes more complicated.
22555  \SpecialChar LyX
22556  now supports updating the whole tree in which resides the document
22557 \begin_inset Foot
22558 status collapsed
22559
22560 \begin_layout Plain Layout
22561 One need to organize the files structure so that all external files are
22562  in the same directory or subdirectories of the document.
22563  
22564 \end_layout
22565
22566 \end_inset
22567
22568 .
22569  This become especially useful once you cooperate with people which neither
22570  know about subversion management nor they have ambition to commit additional
22571  material to the repository.
22572  
22573 \end_layout
22574
22575 \begin_layout Standard
22576 \begin_inset Flex Code
22577 status collapsed
22578
22579 \begin_layout Plain Layout
22580 Update local directory from repository
22581 \end_layout
22582
22583 \end_inset
22584
22585  command updates the whole directory and in case of merge conflicts local
22586  version of the files are left, so no unintended data loss occurs.
22587  If local changes are detected user is warned before update starts.
22588 \end_layout
22589
22590 \begin_layout Labeling
22591 \labelwidthstring 00.00.0000
22592 SVN
22593 \begin_inset space ~
22594 \end_inset
22595
22596 commands: 
22597 \begin_inset space ~
22598 \end_inset
22599
22600
22601 \begin_inset Newline newline
22602 \end_inset
22603
22604
22605 \begin_inset Flex Code
22606 status collapsed
22607
22608 \begin_layout Plain Layout
22609 svn diff $path
22610 \end_layout
22611
22612 \end_inset
22613
22614  (Ask if changes are detected.)
22615 \begin_inset Newline newline
22616 \end_inset
22617
22618
22619 \begin_inset Flex Code
22620 status collapsed
22621
22622 \begin_layout Plain Layout
22623 svn update –accept mine-full $path
22624 \end_layout
22625
22626 \end_inset
22627
22628
22629 \end_layout
22630
22631 \begin_layout Standard
22632 where 
22633 \begin_inset Flex Code
22634 status collapsed
22635
22636 \begin_layout Plain Layout
22637 $path
22638 \end_layout
22639
22640 \end_inset
22641
22642  stands for the path to the document.
22643 \end_layout
22644
22645 \begin_layout Subsubsection
22646
22647 \family sans
22648 Show History
22649 \end_layout
22650
22651 \begin_layout Standard
22652 This shows the complete history of the SVN document.
22653  The output of 
22654 \family typewriter
22655 svn log 
22656 \begin_inset Quotes eld
22657 \end_inset
22658
22659 <file-name>
22660 \begin_inset Quotes erd
22661 \end_inset
22662
22663
22664 \family default
22665  is shown in a browser.
22666 \end_layout
22667
22668 \begin_layout Subsubsection
22669 File Locking
22670 \begin_inset CommandInset label
22671 LatexCommand label
22672 name "subsec:SVN-File-Locking"
22673
22674 \end_inset
22675
22676
22677 \end_layout
22678
22679 \begin_layout Standard
22680 The file exchange through various revision control systems brings the problem
22681  of merge conflicts in case two different users try to edit the same (parts
22682  of) document.
22683  When such a conflict happens it needs manual resolving and one reasonable
22684  alternative is to provide some kind of locking mechanism, which guarantees
22685  that only one user is allowed to edit file at the given time.
22686 \end_layout
22687
22688 \begin_layout Standard
22689 SVN has two such mechanisms to provide mutual exclusivity for file access
22690  - locks and automatic setting of write permissions (see sec.
22691  
22692 \begin_inset CommandInset ref
22693 LatexCommand ref
22694 reference "subsec:Automatical-Locking-Property"
22695
22696 \end_inset
22697
22698 ) based on 
22699 \begin_inset Flex Code
22700 status collapsed
22701
22702 \begin_layout Plain Layout
22703 svn:needs-lock
22704 \end_layout
22705
22706 \end_inset
22707
22708  file svn property
22709 \begin_inset Foot
22710 status open
22711
22712 \begin_layout Plain Layout
22713 http://svnbook.red-bean.com/en/1.2/svn.advanced.locking.html
22714 \end_layout
22715
22716 \end_inset
22717
22718 .
22719  If this property is detected for a given document \SpecialChar LyX
22720  starts to use SVN locks
22721  for document editing automatically and the whole check-in/out mechanism
22722  switches to the same regimen as for RCS.
22723  This in particular means there are two different modes of file use in \SpecialChar LyX
22724 :
22725 \end_layout
22726
22727 \begin_layout Itemize
22728 Unlocked state.
22729  The loaded file is in the read-only mode.
22730  For editing on needs to check-out.
22731  
22732 \emph on
22733 Check-out
22734 \emph default
22735  consists of updating from the repository and gaining write lock.
22736  If the lock is not possible to obtain, we remain in unlocked state.
22737 \end_layout
22738
22739 \begin_layout Itemize
22740 Locked state.
22741  The loaded file is in the 'normal' edit mode.
22742  No other user is allowed to edit the file.
22743  
22744 \emph on
22745 Check-in
22746 \emph default
22747  consists of commiting changes and releasing write-lock.
22748  If no changes have been made to the document, no commit will be produced
22749 \begin_inset Foot
22750 status collapsed
22751
22752 \begin_layout Plain Layout
22753 Don't be puzzled by the fact that you will be asked for commit message anyway.
22754 \end_layout
22755
22756 \end_inset
22757
22758  and only the write-lock will be released.
22759 \end_layout
22760
22761 \begin_layout Standard
22762 SVN commands:
22763 \end_layout
22764
22765 \begin_layout Labeling
22766 \labelwidthstring 00.00.0000
22767 Check-in:
22768 \family typewriter
22769  svn commit -q -m"<description>" "<file-name>"
22770 \begin_inset Newline newline
22771 \end_inset
22772
22773 svn unlock "<file-name>"
22774 \end_layout
22775
22776 \begin_layout Labeling
22777 \labelwidthstring 00.00.0000
22778 Check-out: 
22779 \family typewriter
22780 svn update "<file-name>"
22781 \begin_inset Newline newline
22782 \end_inset
22783
22784 svn lock "<file-name>"
22785 \end_layout
22786
22787 \begin_layout Subsubsection
22788
22789 \family typewriter
22790 \begin_inset CommandInset label
22791 LatexCommand label
22792 name "subsec:Automatical-Locking-Property"
22793
22794 \end_inset
22795
22796
22797 \family default
22798 Automatic Locking Property
22799 \end_layout
22800
22801 \begin_layout Standard
22802 The above mentioned automatic setting of write permissions of the .lyx file
22803  can be set through
22804 \family sans
22805  File\SpecialChar menuseparator
22806 Version
22807 \begin_inset space ~
22808 \end_inset
22809
22810 Control\SpecialChar menuseparator
22811 Toggle locking property
22812 \family default
22813 .
22814  This command is active only when the file is not locked on the svn server
22815  (i.e.
22816  you need to check-out before proceeding).
22817 \end_layout
22818
22819 \begin_layout Labeling
22820 \labelwidthstring 00.00.0000
22821 SVN
22822 \begin_inset space ~
22823 \end_inset
22824
22825 commands:
22826 \end_layout
22827
22828 \begin_layout Labeling
22829 \labelwidthstring 00.00.0000
22830 Set:
22831 \family typewriter
22832  svn propset svn:needs-lock ON "<file-name>"
22833 \end_layout
22834
22835 \begin_layout Labeling
22836 \labelwidthstring 00.00.0000
22837 Unset: 
22838 \family typewriter
22839 svn propdel svn:needs-lock "<file-name>"
22840 \end_layout
22841
22842 \begin_layout Subsubsection
22843 \begin_inset CommandInset label
22844 LatexCommand label
22845 name "subsec:VCS-Revision-Information"
22846
22847 \end_inset
22848
22849 Revision Information in Documents
22850 \end_layout
22851
22852 \begin_layout Standard
22853 There are more possibilities how to activate revision information in our
22854  document.
22855 \end_layout
22856
22857 \begin_layout Itemize
22858 \SpecialChar LyX
22859  supports directly:
22860 \end_layout
22861
22862 \begin_deeper
22863 \begin_layout Itemize
22864 tree revision information (
22865 \begin_inset Flex Code
22866 status collapsed
22867
22868 \begin_layout Plain Layout
22869 vcs-tree-revision
22870 \end_layout
22871
22872 \end_inset
22873
22874 ).
22875  The result is the output of the 
22876 \begin_inset Flex Code
22877 status collapsed
22878
22879 \begin_layout Plain Layout
22880 svnversion
22881 \end_layout
22882
22883 \end_inset
22884
22885  command, the following table gives you an idea, how to read the results.
22886 \end_layout
22887
22888 \begin_layout Standard
22889 \align center
22890 \begin_inset Tabular
22891 <lyxtabular version="3" rows="6" columns="2">
22892 <features tabularvalignment="middle">
22893 <column alignment="center" valignment="top">
22894 <column alignment="center" valignment="top">
22895 <row>
22896 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22897 \begin_inset Text
22898
22899 \begin_layout Plain Layout
22900 Output
22901 \end_layout
22902
22903 \end_inset
22904 </cell>
22905 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
22906 \begin_inset Text
22907
22908 \begin_layout Plain Layout
22909 Meaning
22910 \end_layout
22911
22912 \end_inset
22913 </cell>
22914 </row>
22915 <row>
22916 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
22917 \begin_inset Text
22918
22919 \begin_layout Plain Layout
22920 4123:4168
22921 \end_layout
22922
22923 \end_inset
22924 </cell>
22925 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
22926 \begin_inset Text
22927
22928 \begin_layout Plain Layout
22929 mixed revision working copy
22930 \end_layout
22931
22932 \end_inset
22933 </cell>
22934 </row>
22935 <row>
22936 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
22937 \begin_inset Text
22938
22939 \begin_layout Plain Layout
22940 4168M
22941 \end_layout
22942
22943 \end_inset
22944 </cell>
22945 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
22946 \begin_inset Text
22947
22948 \begin_layout Plain Layout
22949 modified working copy
22950 \end_layout
22951
22952 \end_inset
22953 </cell>
22954 </row>
22955 <row>
22956 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
22957 \begin_inset Text
22958
22959 \begin_layout Plain Layout
22960 4123S
22961 \end_layout
22962
22963 \end_inset
22964 </cell>
22965 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
22966 \begin_inset Text
22967
22968 \begin_layout Plain Layout
22969 switched working copy
22970 \end_layout
22971
22972 \end_inset
22973 </cell>
22974 </row>
22975 <row>
22976 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
22977 \begin_inset Text
22978
22979 \begin_layout Plain Layout
22980 4123P
22981 \end_layout
22982
22983 \end_inset
22984 </cell>
22985 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
22986 \begin_inset Text
22987
22988 \begin_layout Plain Layout
22989 partial working copy, from a sparse checkout
22990 \end_layout
22991
22992 \end_inset
22993 </cell>
22994 </row>
22995 <row>
22996 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22997 \begin_inset Text
22998
22999 \begin_layout Plain Layout
23000 4123:4168MS
23001 \end_layout
23002
23003 \end_inset
23004 </cell>
23005 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
23006 \begin_inset Text
23007
23008 \begin_layout Plain Layout
23009 mixed revision, modified, switched working copy
23010 \end_layout
23011
23012 \end_inset
23013 </cell>
23014 </row>
23015 </lyxtabular>
23016
23017 \end_inset
23018
23019
23020 \end_layout
23021
23022 \begin_layout Itemize
23023 file revision information.
23024  The result comes from parsing the output of 
23025 \begin_inset Flex Code
23026 status collapsed
23027
23028 \begin_layout Plain Layout
23029 svn
23030 \begin_inset space ~
23031 \end_inset
23032
23033 info
23034 \begin_inset space ~
23035 \end_inset
23036
23037 –xml
23038 \begin_inset space ~
23039 \end_inset
23040
23041 file.lyx
23042 \end_layout
23043
23044 \end_inset
23045
23046 .
23047  Supported flags are:
23048 \end_layout
23049
23050 \begin_deeper
23051 \begin_layout Itemize
23052 version number of the last commit (
23053 \begin_inset Flex Code
23054 status collapsed
23055
23056 \begin_layout Plain Layout
23057 vcs-revision
23058 \end_layout
23059
23060 \end_inset
23061
23062 )
23063 \end_layout
23064
23065 \begin_layout Itemize
23066 author of the last commit (
23067 \begin_inset Flex Code
23068 status collapsed
23069
23070 \begin_layout Plain Layout
23071 vcs-author
23072 \end_layout
23073
23074 \end_inset
23075
23076 )
23077 \end_layout
23078
23079 \begin_layout Itemize
23080 date of the last commit (
23081 \begin_inset Flex Code
23082 status collapsed
23083
23084 \begin_layout Plain Layout
23085 vcs-date
23086 \end_layout
23087
23088 \end_inset
23089
23090 )
23091 \end_layout
23092
23093 \begin_layout Itemize
23094 time of the last commit (
23095 \begin_inset Flex Code
23096 status collapsed
23097
23098 \begin_layout Plain Layout
23099 vcs-time
23100 \end_layout
23101
23102 \end_inset
23103
23104 )
23105 \end_layout
23106
23107 \end_deeper
23108 \begin_layout Standard
23109 You can obtain this info via InsetInfo (e.g.
23110  
23111 \begin_inset Flex Code
23112 status collapsed
23113
23114 \begin_layout Plain Layout
23115 info-insert buffer vcs-date
23116 \end_layout
23117
23118 \end_inset
23119
23120 ).
23121  The information will be available only when you have the file stored under
23122  svn managment (i.e.
23123  the 
23124 \begin_inset Flex Code
23125 status collapsed
23126
23127 \begin_layout Plain Layout
23128 .svn
23129 \end_layout
23130
23131 \end_inset
23132
23133  directory is available with your document).
23134 \end_layout
23135
23136 \end_deeper
23137 \begin_layout Itemize
23138 Another—a hacking one—possibility is to use svn keywords
23139 \begin_inset Foot
23140 status collapsed
23141
23142 \begin_layout Plain Layout
23143 http://svnbook.red-bean.com/en/1.4/svn.advanced.props.special.keywords.html
23144 \end_layout
23145
23146 \end_inset
23147
23148 .
23149  In short – you set file keywords property (e.g.
23150  
23151 \family sans
23152 svn propset svn:keywords 'Rev' file.lyx
23153 \family default
23154 ) and then paste keyword \SpecialChar TeX
23155  code
23156 \begin_inset Foot
23157 status collapsed
23158
23159 \begin_layout Plain Layout
23160 This is an easy way how to ensure that \SpecialChar LyX
23161  won't break the line in the middle
23162  of keyword tag.
23163 \end_layout
23164
23165 \end_inset
23166
23167  tag in your document (e.g.
23168  
23169 \begin_inset ERT
23170 status open
23171
23172 \begin_layout Plain Layout
23173
23174 $Rev$
23175 \end_layout
23176
23177 \end_inset
23178
23179 ).
23180  This way svn client will automatically substitute revision number (e.g.
23181  
23182 \begin_inset ERT
23183 status open
23184
23185 \begin_layout Plain Layout
23186
23187 $Rev: 59 $
23188 \end_layout
23189
23190 \end_inset
23191
23192 ) after each update and commit.
23193  There are more problems with this approach.
23194  Firstly, the '$' character is used in \SpecialChar TeX
23195  world for math equations, so any
23196  occurence of math formula 
23197 \begin_inset Formula $Rev$
23198 \end_inset
23199
23200  become 
23201 \begin_inset Formula $Rev:59$
23202 \end_inset
23203
23204  in your \SpecialChar LyX
23205  document.
23206  Similarly for other keywords like Id, Date, Author, etc.
23207  Secondly svn output is dependent on your locales, so its very easy that
23208  svn would produce some problematic strings once Date is used.
23209  Thirdly you get the whole 'Rev: 59' string in your document instead of
23210  the plain number.
23211  Until subversion implements user's custom keywords it will be hard to use
23212  this approach reliably or let \SpecialChar LyX
23213  to support it directly.
23214 \end_layout
23215
23216 \begin_layout Subsection
23217 SVN and Windows Environment
23218 \end_layout
23219
23220 \begin_layout Quote
23221 My inclination is to say that if the user cannot figure out the command
23222  line operations on their own fairly quickly, they would be well advised
23223  to use TortoiseSVN.
23224  —P.
23225  A.
23226  Rubin
23227 \end_layout
23228
23229 \begin_layout Subsubsection
23230 Preparation
23231 \end_layout
23232
23233 \begin_layout Standard
23234 In addition to installing \SpecialChar LyX
23235 , and having access to a Subversion repository,
23236  the user will need to install the Subversion client program.
23237  A Windows installer for the client program is available from 
23238 \begin_inset CommandInset href
23239 LatexCommand href
23240 name "CollabNet"
23241 target "http://www.collab.net/nonav/downloads/subversion/"
23242 literal "false"
23243
23244 \end_inset
23245
23246 .
23247  The user may also want to install 
23248 \begin_inset CommandInset href
23249 LatexCommand href
23250 name "TortoiseSVN"
23251 target "http://tortoisesvn.tigris.org/"
23252 literal "false"
23253
23254 \end_inset
23255
23256 , which integrates Subversion operations into the context (rightclick) menu
23257  of Windows Explorer.
23258  Operations done outside \SpecialChar LyX
23259  will typically be more convenient using the Explorer
23260  context menu.
23261  Note that TortoiseSVN is not a replacement for the client program, which
23262  is what \SpecialChar LyX
23263  itself will use.
23264 \end_layout
23265
23266 \begin_layout Subsubsection
23267 Bringing a document under Subversion control
23268 \end_layout
23269
23270 \begin_layout Standard
23271 Before a \SpecialChar LyX
23272  document can be brought under version control in Subversion, its
23273  parent directory needs to be under version control.
23274  If the document is being added to a project already in the repository,
23275  this is accomplished by checking the project out to the directory where
23276  the new document will be placed.
23277  If the project itself is not yet under version control (for instance, if
23278  this document starts a new project), the directory must be imported into
23279  the repository.
23280  This is done outside \SpecialChar LyX
23281 .
23282  Both import and checkout are easily accomplished from the Explorer context
23283  menu using TortoiseSVN, or alternatively can be done using the command
23284  line client at a DOS prompt.
23285  The procedure for importing the project using TortoiseSVN is described
23286  below, assuming an existing repository and a new project being started
23287  in 
23288 \family typewriter
23289 C:
23290 \backslash
23291 new project
23292 \family default
23293 .
23294  For information on using the Subversion client program, run 
23295 \family typewriter
23296 svn --help 
23297 \family default
23298 in a DOS shell.
23299 \end_layout
23300
23301 \begin_layout Enumerate
23302 Locate 
23303 \family typewriter
23304 C:
23305 \backslash
23306 new project 
23307 \family default
23308 in Windows Explorer, right click it, and select 
23309 \family sans
23310 TortoiseSVN\SpecialChar menuseparator
23311 Repo-browser
23312 \family default
23313 .
23314  If necessary, adjust the URL for the repository, then click OK.
23315 \end_layout
23316
23317 \begin_layout Enumerate
23318 Right click the level of the repository under which you want to place the
23319  new project folder (typically the top level) and click 
23320 \family sans
23321 Create folder
23322 \family default
23323  Supply a name for the project folder and click OK.
23324  Add a message for the log file if desired, then click OK again.
23325  The new project folder should appear in the repository.
23326  Finally, click OK again to exit the repository browser.
23327 \end_layout
23328
23329 \begin_layout Enumerate
23330 Once again right click 
23331 \family typewriter
23332 C:
23333 \backslash
23334 new project
23335 \family default
23336 , this time selecting SVN Checkout\SpecialChar ldots
23337  Select the URL of the project folder
23338  you just created in the repository, and set the checkout directory to 
23339 \family typewriter
23340 C:
23341 \backslash
23342 new project.
23343
23344 \family default
23345  Click OK.
23346  You will be warned about a non-empty folder; click OK to proceed.
23347  You should now have a 
23348 \family typewriter
23349 .svn
23350 \family default
23351  directory under 
23352 \family typewriter
23353 C:
23354 \backslash
23355 new project.
23356 \end_layout
23357
23358 \begin_layout Enumerate
23359 Create or open your document in \SpecialChar LyX
23360  and click 
23361 \family sans
23362 File\SpecialChar menuseparator
23363 Version
23364 \begin_inset space ~
23365 \end_inset
23366
23367 Control\SpecialChar menuseparator
23368 Register.
23369  
23370 \family default
23371 Add a log message and click OK to commit the document to version control.
23372 \end_layout
23373
23374 \begin_layout Standard
23375 From this point onward, you should have full functionality in the 
23376 \family sans
23377 File\SpecialChar menuseparator
23378 Version
23379 \begin_inset space ~
23380 \end_inset
23381
23382 Control
23383 \family default
23384  menu.
23385  You also have the option of checking the document in and out, viewing its
23386  history, etc.
23387  using the TortoiseSVN context menu in Windows Explorer or the Subversion
23388  client program from a command prompt.
23389 \end_layout
23390
23391 \begin_layout Subsubsection
23392 SSH tunnel used with SVN under Windows
23393 \end_layout
23394
23395 \begin_layout Standard
23396 Compared with Linux setting up an svn client to communicate over ssh under
23397  Windows is a rather troublesome task.
23398  We will at least offer some hints how to setup the client side but prior
23399  knowledge about ssh and the Windows command line is needed, also be prepared
23400  for a great deal of frustration\SpecialChar ldots
23401
23402 \end_layout
23403
23404 \begin_layout Enumerate
23405 Get an svn client for windows, as described in the previous sections.
23406  When it is a fresh install run some svn command (e.g.
23407  
23408 \begin_inset Flex Code
23409 status collapsed
23410
23411 \begin_layout Plain Layout
23412 svn –version
23413 \end_layout
23414
23415 \end_inset
23416
23417 ) to create config files, which you will need to change later on.
23418 \end_layout
23419
23420 \begin_layout Enumerate
23421 Choose an ssh client for Windows.
23422  There are several possibilities, we will use the one from Putty tools
23423 \begin_inset Foot
23424 status collapsed
23425
23426 \begin_layout Plain Layout
23427 \begin_inset Flex URL
23428 status collapsed
23429
23430 \begin_layout Plain Layout
23431
23432 http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html
23433 \end_layout
23434
23435 \end_inset
23436
23437
23438 \end_layout
23439
23440 \end_inset
23441
23442 .
23443  You will need to set the connection up so that the client doesn't ask for
23444  any password from you.
23445  To keep things easy we will use only keys without any additional password
23446  protection etc.
23447 \end_layout
23448
23449 \begin_deeper
23450 \begin_layout Enumerate
23451 Generate keys by 
23452 \begin_inset Flex Code
23453 status collapsed
23454
23455 \begin_layout Plain Layout
23456 puttygen
23457 \end_layout
23458
23459 \end_inset
23460
23461 .
23462  Save your private .ppk key file and put the public one on the server side.
23463  If the SVN server runs on Linux, note that the format of the public key
23464  is not compatible with Linux openssh and you will need to direcly copy-paste
23465  the key from the “
23466 \emph on
23467 Public key for pasting into OpenSSH authorized_keys file
23468 \emph default
23469 :” edit field into the server's 
23470 \begin_inset Flex Code
23471 status collapsed
23472
23473 \begin_layout Plain Layout
23474 ~/.ssh/authorized_keys
23475 \end_layout
23476
23477 \end_inset
23478
23479  / 
23480 \begin_inset Flex Code
23481 status collapsed
23482
23483 \begin_layout Plain Layout
23484 authorized_keys2
23485 \end_layout
23486
23487 \end_inset
23488
23489  file.
23490 \end_layout
23491
23492 \begin_layout Enumerate
23493 Get the Putty's 
23494 \begin_inset Flex Code
23495 status collapsed
23496
23497 \begin_layout Plain Layout
23498 plink
23499 \end_layout
23500
23501 \end_inset
23502
23503 .
23504  In the SVN config file
23505 \begin_inset Foot
23506 status collapsed
23507
23508 \begin_layout Plain Layout
23509 Exact path depends on Windows version, usually somewhere around 
23510 \begin_inset Flex Code
23511 status collapsed
23512
23513 \begin_layout Plain Layout
23514 c:
23515 \backslash
23516 Documents and Settings
23517 \backslash
23518 user
23519 \backslash
23520 Application Data
23521 \backslash
23522 Subversion
23523 \backslash
23524 config
23525 \end_layout
23526
23527 \end_inset
23528
23529  / 
23530 \begin_inset Flex Code
23531 status collapsed
23532
23533 \begin_layout Plain Layout
23534 AppData
23535 \backslash
23536 Roaming
23537 \backslash
23538 Subversion
23539 \end_layout
23540
23541 \end_inset
23542
23543 .
23544 \end_layout
23545
23546 \end_inset
23547
23548 , section [tunnels], setup ssh command, e.g.
23549  
23550 \begin_inset Flex Code
23551 status collapsed
23552
23553 \begin_layout Plain Layout
23554 ssh=c:/path/plink.exe -i c:/path/private_key.ppk
23555 \end_layout
23556
23557 \end_inset
23558
23559 .
23560 \begin_inset Foot
23561 status collapsed
23562
23563 \begin_layout Plain Layout
23564 It will usually take a lot of time to get exact command right and it depends
23565  on many things.
23566  For example do not have some remote server saved as a default session in
23567  Putty etc.
23568  If things fail, try to connect via plink without SVN first.
23569 \end_layout
23570
23571 \end_inset
23572
23573
23574 \end_layout
23575
23576 \end_deeper
23577 \begin_layout Enumerate
23578 Checkout the SVN archive, e.
23579 \begin_inset space \thinspace{}
23580 \end_inset
23581
23582 g.
23583 \begin_inset Newline newline
23584 \end_inset
23585
23586
23587 \begin_inset Flex Code
23588 status collapsed
23589
23590 \begin_layout Plain Layout
23591 svn co svn+ssh://user@server/repository_path
23592 \end_layout
23593
23594 \end_inset
23595
23596 .
23597 \end_layout
23598
23599 \begin_layout Subsubsection
23600 End-of-Line Conversions
23601 \end_layout
23602
23603 \begin_layout Standard
23604 When the collaborators are mixing Linux and Windows environments, \SpecialChar LyX
23605  will
23606  use different line endings inside the .lyx files.
23607  This is not a problem as far as \SpecialChar LyX
23608  functionality is concerned, but the commit
23609  diffs will be huge and merge-conflicts prone.
23610  Fortunately SVN itself knows
23611 \begin_inset Foot
23612 status collapsed
23613
23614 \begin_layout Plain Layout
23615 \begin_inset Flex URL
23616 status collapsed
23617
23618 \begin_layout Plain Layout
23619
23620 http://svnbook.red-bean.com/en/1.4/svn.advanced.props.file-portability.html
23621 \end_layout
23622
23623 \end_inset
23624
23625
23626 \end_layout
23627
23628 \end_inset
23629
23630  how to deal with CR/LF problems when switching .lyx files to the 
23631 \begin_inset Flex Code
23632 status collapsed
23633
23634 \begin_layout Plain Layout
23635 native
23636 \end_layout
23637
23638 \end_inset
23639
23640  mode.
23641 \begin_inset Foot
23642 status collapsed
23643
23644 \begin_layout Plain Layout
23645 For the lazy guys: 
23646 \begin_inset Flex Code
23647 status collapsed
23648
23649 \begin_layout Plain Layout
23650 svn propset svn:eol-style native FILE_NAME
23651 \end_layout
23652
23653 \end_inset
23654
23655
23656 \end_layout
23657
23658 \end_inset
23659
23660
23661 \end_layout
23662
23663 \begin_layout Subsection
23664 GIT commands in \SpecialChar LyX
23665
23666 \end_layout
23667
23668 \begin_layout Standard
23669 A minimal subset of GIT commands is now supported by \SpecialChar LyX
23670 .
23671  You can find the commands in the 
23672 \family sans
23673 File\SpecialChar menuseparator
23674 Version
23675 \begin_inset space ~
23676 \end_inset
23677
23678 Control
23679 \family default
23680  submenu.
23681  Please note that if you use password protected access to repository via
23682  ssh, you will be asked in terminal window.
23683  \SpecialChar LyX
23684  was tested against GIT 1.7.
23685 \begin_inset Foot
23686 status open
23687
23688 \begin_layout Plain Layout
23689 Windows users please note that you need to ensure that git is on the path.
23690  This can be set from within \SpecialChar LyX
23691  at 
23692 \family sans
23693 Tools\SpecialChar menuseparator
23694 Preferences\SpecialChar menuseparator
23695 Paths\SpecialChar menuseparator
23696 PATH prefix
23697 \family default
23698 .
23699 \end_layout
23700
23701 \end_inset
23702
23703
23704 \end_layout
23705
23706 \begin_layout Standard
23707 One big difference of GIT and the other supported version control systems
23708  is the distributed nature of GIT: With traditional version control systems
23709  there is one central server which hosts the repository.
23710  Users commit their changes to the server, and get updates made by other
23711  users from it.
23712  With GIT, users commit to a local repository.
23713  The local repository can be synchronized with one or more remote repositories
23714  using the 
23715 \begin_inset Flex Code
23716 status collapsed
23717
23718 \begin_layout Plain Layout
23719 pull
23720 \end_layout
23721
23722 \end_inset
23723
23724  and 
23725 \begin_inset Flex Code
23726 status collapsed
23727
23728 \begin_layout Plain Layout
23729 push
23730 \end_layout
23731
23732 \end_inset
23733
23734  GIT commands.
23735  \SpecialChar LyX
23736  does not interact in any way with remote GIT repositories.
23737  It works exclusively with the local repository in a very similar way as
23738  with a central CVS or SVN repository.
23739  If you use remote GIT repositories you need to do the 
23740 \begin_inset Flex Code
23741 status collapsed
23742
23743 \begin_layout Plain Layout
23744 pull
23745 \end_layout
23746
23747 \end_inset
23748
23749  and 
23750 \begin_inset Flex Code
23751 status collapsed
23752
23753 \begin_layout Plain Layout
23754 push
23755 \end_layout
23756
23757 \end_inset
23758
23759  operations with your favourite GIT client.
23760 \end_layout
23761
23762 \begin_layout Subsubsection
23763
23764 \family sans
23765 Register
23766 \end_layout
23767
23768 \begin_layout Standard
23769 If your document is not under revision control, this is the only item shown
23770  in the menu.
23771  And if it is under revision control, the 
23772 \family sans
23773 Register
23774 \family default
23775  item is not visible.
23776 \end_layout
23777
23778 \begin_layout Standard
23779 This command registers in GIT your document ONLY in case you have already
23780  the documents directory under GIT control (in particular 
23781 \family typewriter
23782 .git/index
23783 \family default
23784  file exists).
23785  This means you have to checkout the archive by yourself.
23786 \end_layout
23787
23788 \begin_layout Standard
23789 Then you are asked interactively to supply an initial description of the
23790  document.
23791  Don't forget that registered file is not yet commited.
23792 \end_layout
23793
23794 \begin_layout Standard
23795 GIT command that is run: 
23796 \family typewriter
23797 git add 
23798 \begin_inset Quotes eld
23799 \end_inset
23800
23801 <file-name>
23802 \begin_inset Quotes erd
23803 \end_inset
23804
23805
23806 \end_layout
23807
23808 \begin_layout Standard
23809 Read 
23810 \family typewriter
23811 man git
23812 \family default
23813  to understand the switches.
23814 \end_layout
23815
23816 \begin_layout Subsubsection
23817
23818 \family sans
23819 Check In Changes
23820 \end_layout
23821
23822 \begin_layout Standard
23823 When you are finished editing a file, you commit your changes.
23824  When you do this, you are asked for a description of the changes.
23825  After that changes are commited.
23826 \end_layout
23827
23828 \begin_layout Standard
23829 GIT command: 
23830 \family typewriter
23831 git commit -q -m"<description>" <file-name>
23832 \end_layout
23833
23834 \begin_layout Subsubsection
23835
23836 \family sans
23837 Revert To Repository Version
23838 \end_layout
23839
23840 \begin_layout Standard
23841 This will discard all changes made to the document since the last check
23842  in.
23843  You get a warning before changes are discarded.
23844 \end_layout
23845
23846 \begin_layout Standard
23847 GIT command: 
23848 \family typewriter
23849 git checkout -q 
23850 \begin_inset Quotes eld
23851 \end_inset
23852
23853 <file-name>
23854 \begin_inset Quotes erd
23855 \end_inset
23856
23857
23858 \end_layout
23859
23860 \begin_layout Subsubsection
23861
23862 \family sans
23863 Rename
23864 \end_layout
23865
23866 \begin_layout Standard
23867 This will rename the current document including the version history.
23868  It requires a clean document without any changes since the last checkin.
23869  You are asked for a file name and a description of the rename operation.
23870  After that the document is renamed, both locally and in the repository.
23871  If the parent directories of the new and old file names differ, all relative
23872  paths of included files are adjusted (like in 
23873 \family sans
23874 File\SpecialChar menuseparator
23875 Save As
23876 \family default
23877 \SpecialChar ldots
23878 ).
23879  Finally, the document is reloaded using the new name.
23880 \end_layout
23881
23882 \begin_layout Labeling
23883 \labelwidthstring 00.00.0000
23884 GIT
23885 \begin_inset space ~
23886 \end_inset
23887
23888 commands: 
23889 \begin_inset space ~
23890 \end_inset
23891
23892
23893 \begin_inset Newline newline
23894 \end_inset
23895
23896
23897 \begin_inset Flex Code
23898 status collapsed
23899
23900 \begin_layout Plain Layout
23901 git mv 
23902 \family typewriter
23903
23904 \begin_inset Quotes eld
23905 \end_inset
23906
23907 <file-name>
23908 \begin_inset Quotes erd
23909 \end_inset
23910
23911  
23912 \begin_inset Quotes eld
23913 \end_inset
23914
23915 <new-file-name>
23916 \begin_inset Quotes erd
23917 \end_inset
23918
23919
23920 \end_layout
23921
23922 \end_inset
23923
23924
23925 \begin_inset Newline newline
23926 \end_inset
23927
23928
23929 \begin_inset Flex Code
23930 status collapsed
23931
23932 \begin_layout Plain Layout
23933 git commit
23934 \end_layout
23935
23936 \end_inset
23937
23938
23939 \end_layout
23940
23941 \begin_layout Subsubsection
23942
23943 \family sans
23944 Show History
23945 \end_layout
23946
23947 \begin_layout Standard
23948 This shows the complete history of the GIT document.
23949  The output of 
23950 \family typewriter
23951 git log 
23952 \begin_inset Quotes eld
23953 \end_inset
23954
23955 <file-name>
23956 \begin_inset Quotes erd
23957 \end_inset
23958
23959
23960 \family default
23961  is shown in a browser.
23962 \end_layout
23963
23964 \begin_layout Subsubsection
23965 Version Info
23966 \end_layout
23967
23968 \begin_layout Standard
23969 \SpecialChar LyX
23970  supports GIT hash number of the last commit to the file, author name, date
23971  and time of last commit.
23972  All those are extracted from 
23973 \family typewriter
23974 git log -n 1 --pretty=format:%H%n%an%n%ai
23975 \family default
23976 .
23977  Tree version information is obtained via 
23978 \family typewriter
23979 git describe --abbrev --dirty --long
23980 \family default
23981 .
23982  See 
23983 \begin_inset CommandInset ref
23984 LatexCommand ref
23985 reference "subsec:VCS-Revision-Information"
23986
23987 \end_inset
23988
23989  for other details.
23990 \end_layout
23991
23992 \begin_layout Subsection
23993 Further tuning
23994 \end_layout
23995
23996 \begin_layout Standard
23997 With the recent addition of the vc-command function \SpecialChar LyX
23998  power users are allowed
23999  to create their own commands for revision control.
24000 \end_layout
24001
24002 \begin_layout Standard
24003 As an example you can see how two TortoiseSVN commands could be integrated
24004  directly:
24005 \end_layout
24006
24007 \begin_layout Description
24008 Commit: 
24009 \begin_inset Flex Code
24010 status collapsed
24011
24012 \begin_layout Plain Layout
24013 vc-command DR "." "TortoiseProc /command:commit /path:$$p"
24014 \end_layout
24015
24016 \end_inset
24017
24018
24019 \end_layout
24020
24021 \begin_layout Description
24022 Revert: 
24023 \begin_inset Flex Code
24024 status collapsed
24025
24026 \begin_layout Plain Layout
24027 vc-command DR "." "TortoiseProc /command:revert /path:$$p"
24028 \end_layout
24029
24030 \end_inset
24031
24032
24033 \end_layout
24034
24035 \begin_layout Subsection
24036 Version control and Document comparison
24037 \end_layout
24038
24039 \begin_layout Standard
24040 One of the typical uses of version control is to inspect the changes between
24041  revisions, usually by creating 
24042 \begin_inset Flex Code
24043 status collapsed
24044
24045 \begin_layout Plain Layout
24046 diff
24047 \end_layout
24048
24049 \end_inset
24050
24051  dumps.
24052  While this is useful for plain text files, it is much less useful in the
24053  case of \SpecialChar LyX
24054  files, which have more a complicated structure.
24055  Hence we provide binding to the Document comparison feature.
24056  There are two ways of calling this feature - either by direct call of 
24057 \begin_inset Flex Code
24058 status collapsed
24059
24060 \begin_layout Plain Layout
24061 VC_COMPARE
24062 \end_layout
24063
24064 \end_inset
24065
24066  \SpecialChar LyX
24067  function (for details see \SpecialChar LyX
24068  functions manual) or by icon/menu item 
24069 \begin_inset Flex Noun
24070 status collapsed
24071
24072 \begin_layout Plain Layout
24073 Compare with older revision...
24074 \end_layout
24075
24076 \end_inset
24077
24078 .
24079  One can either compare two chosen revisions of the document or he can simply
24080  compare the current version of edited text with older revisions (where
24081  '
24082 \begin_inset Flex Noun
24083 status collapsed
24084
24085 \begin_layout Plain Layout
24086 0
24087 \end_layout
24088
24089 \end_inset
24090
24091 ' revisions back means comparison of the edited file with last commited
24092  revision).
24093  
24094 \end_layout
24095
24096 \begin_layout Standard
24097 This feature is supported for SVN and RCS though due to the more complicated
24098  versioning scheme of RCS there is a constraint – when addressing the revisions
24099  in dialog, numbers always point to the last number in RCS revision number,
24100  i.e.
24101  '35' in '1.2.35'.
24102  We don't currently support GIT addressing of revisions, one can just compare
24103  edited document with its revision X steps backs, where X is addressed as
24104  HEAD~X.
24105 \end_layout
24106
24107 \begin_layout Section
24108 Literate Programming
24109 \end_layout
24110
24111 \begin_layout Standard
24112 Updated by 
24113 \noun on
24114 Kayvan Sylvan 
24115 \noun default
24116 (kayvan@sylvan.com)
24117 \noun on
24118
24119 \noun default
24120 original documentation written by 
24121 \noun on
24122 Edmar Wienskoski Jr.
24123
24124 \noun default
24125  (edmar-w-jr@technologist.com)
24126 \end_layout
24127
24128 \begin_layout Subsection
24129 Introduction
24130 \end_layout
24131
24132 \begin_layout Standard
24133 The main purpose of this documentation is to show you how to use \SpecialChar LyX
24134  for literate
24135  programming, where it is assumed that you are familiar with this programming
24136  technique, and know what 
24137 \begin_inset Quotes eld
24138 \end_inset
24139
24140 tangling
24141 \begin_inset Quotes erd
24142 \end_inset
24143
24144  and 
24145 \begin_inset Quotes eld
24146 \end_inset
24147
24148 weaving
24149 \begin_inset Quotes erd
24150 \end_inset
24151
24152  means.
24153  If that is not the case, please follow the web links provided in the following
24154  sections.
24155  There is a lot of good documentation out there covering old development
24156  history to the latest tools tips.
24157 \end_layout
24158
24159 \begin_layout Standard
24160 It is also assumed that you are familiar with \SpecialChar LyX
24161  itself to a point that you
24162  are comfortable changing your \SpecialChar LyX
24163  preferences, and X resources file.
24164  If that is not the case please refer to other \SpecialChar LyX
24165  documentation to cover your
24166  specific needs.
24167 \end_layout
24168
24169 \begin_layout Subsection
24170 Literate Programming
24171 \end_layout
24172
24173 \begin_layout Standard
24174 From the Literate Programming FAQ: 
24175 \end_layout
24176
24177 \begin_layout Quotation
24178 Literate programming is the combination of documentation and source together
24179  in a fashion suited for reading by human beings.
24180  In fact, literate programs should be enjoyable reading, even inviting!
24181  (Sorry Bob, I couldn't resist!) In general, literate programs combine source
24182  and documentation in a single file.
24183  Literate programming tools then parse the file to produce either readable
24184  documentation or compilable source.
24185  The WEB style of literate programming was created by D.
24186 \begin_inset space \thinspace{}
24187 \end_inset
24188
24189 E.
24190  Knuth during the development of his \SpecialChar TeX
24191  typesetting software.
24192  
24193 \end_layout
24194
24195 \begin_layout Standard
24196 Another excerpt says:
24197 \end_layout
24198
24199 \begin_layout Quotation
24200
24201 \emph on
24202 How is literate programming different from verbose commenting?
24203 \end_layout
24204
24205 \begin_layout Quotation
24206 There are three distinguishing characteristics.
24207  In order of importance, they are: 
24208 \end_layout
24209
24210 \begin_deeper
24211 \begin_layout Itemize
24212 flexible order of elaboration 
24213 \end_layout
24214
24215 \begin_layout Itemize
24216 automatic support for browsing 
24217 \end_layout
24218
24219 \begin_layout Itemize
24220 typeset documentation, especially diagrams and mathematics 
24221 \end_layout
24222
24223 \end_deeper
24224 \begin_layout Standard
24225 Now that I sparked your curiosity, take a look in the references.
24226 \end_layout
24227
24228 \begin_layout Subsubsection
24229 References
24230 \end_layout
24231
24232 \begin_layout Standard
24233 The complete Literate Programming FAQ can be found at:
24234 \end_layout
24235
24236 \begin_layout Quote
24237 Literate Programming FAQ 
24238 \begin_inset Flex URL
24239 status collapsed
24240
24241 \begin_layout Plain Layout
24242
24243 http://www.literateprogramming.com/lpfaq.pdf
24244 \end_layout
24245
24246 \end_inset
24247
24248
24249 \end_layout
24250
24251 \begin_layout Standard
24252 The FAQ lists 23 (twenty three!) different literate programming tools.
24253  Where some are specialized or 
24254 \begin_inset Quotes eld
24255 \end_inset
24256
24257 tailored
24258 \begin_inset Quotes erd
24259 \end_inset
24260
24261  for particular programming languages, while other have general scope.
24262  I selected 
24263 \noun on
24264 Noweb
24265 \noun default
24266  for my own use for several reasons:
24267 \end_layout
24268
24269 \begin_layout Itemize
24270 It can generate the documentation either in \SpecialChar LaTeX
24271  or HTML.
24272 \end_layout
24273
24274 \begin_layout Itemize
24275 It has a open architecture, i.
24276 \begin_inset space \thinspace{}
24277 \end_inset
24278
24279 e.
24280 \begin_inset space \space{}
24281 \end_inset
24282
24283 it is easy to plug in new filters and to perform special processing that
24284  you may need.
24285  
24286 \end_layout
24287
24288 \begin_layout Itemize
24289 There is a good selection of filters available already (the HTML is one
24290  of them).
24291 \end_layout
24292
24293 \begin_layout Itemize
24294 It is free.
24295 \end_layout
24296
24297 \begin_layout Standard
24298 The Noweb web page can be found at: 
24299 \end_layout
24300
24301 \begin_layout Quote
24302 Noweb home page 
24303 \begin_inset Flex URL
24304 status collapsed
24305
24306 \begin_layout Plain Layout
24307
24308 http://www.cs.virginia.edu/~nr/noweb/
24309 \end_layout
24310
24311 \end_inset
24312
24313
24314 \end_layout
24315
24316 \begin_layout Standard
24317 Starting from there you can reach many other interesting links and even
24318  some literate program examples.
24319 \end_layout
24320
24321 \begin_layout Subsection
24322 \SpecialChar LyX
24323  and Literate Programming with Noweb
24324 \end_layout
24325
24326 \begin_layout Standard
24327 The \SpecialChar LyX
24328  support for Literate Programming is provided by using the generic \SpecialChar LyX
24329
24330  converters mechanism.
24331  This support is provided in a 
24332 \begin_inset Quotes eld
24333 \end_inset
24334
24335 Noweb independent
24336 \begin_inset Quotes erd
24337 \end_inset
24338
24339  way, i.
24340 \begin_inset space \thinspace{}
24341 \end_inset
24342
24343 e.
24344 \begin_inset space \space{}
24345 \end_inset
24346
24347 you will be able to use this new \SpecialChar LyX
24348  feature with some other literate programming
24349  tool of your choice by just changing your \SpecialChar LyX
24350  preferences.
24351 \end_layout
24352
24353 \begin_layout Subsubsection
24354 Generating documents and code (weaving and tangling)
24355 \end_layout
24356
24357 \begin_layout Paragraph
24358 Using the noweb module
24359 \end_layout
24360
24361 \begin_layout Standard
24362 If you have installed Noweb and \SpecialChar LyX
24363  successfully, whenever you open a new document,
24364  after you have chosen its document class, use the Document->Settings menu
24365  to add the 
24366 \begin_inset Quotes eld
24367 \end_inset
24368
24369 noweb
24370 \begin_inset Quotes erd
24371 \end_inset
24372
24373  module.
24374  If Noweb is correctly installed, when you click on the 
24375 \begin_inset Quotes eld
24376 \end_inset
24377
24378 Modules
24379 \begin_inset Quotes erd
24380 \end_inset
24381
24382  link, you will see the 
24383 \begin_inset Quotes eld
24384 \end_inset
24385
24386 noweb
24387 \begin_inset Quotes erd
24388 \end_inset
24389
24390  module in the available list and you can add it to your document.
24391 \end_layout
24392
24393 \begin_layout Paragraph
24394 Typing code in
24395 \end_layout
24396
24397 \begin_layout Standard
24398 \SpecialChar LyX
24399  enables you to write code with a layout named 
24400 \begin_inset Flex Noun
24401 status collapsed
24402
24403 \begin_layout Plain Layout
24404 Chunk
24405 \end_layout
24406
24407 \end_inset
24408
24409 .
24410  Noweb delimits chunks like this:
24411 \end_layout
24412
24413 \begin_layout LyX-Code
24414 <<My code>>=
24415 \end_layout
24416
24417 \begin_layout LyX-Code
24418   code
24419 \end_layout
24420
24421 \begin_layout LyX-Code
24422   more code
24423 \end_layout
24424
24425 \begin_layout LyX-Code
24426   even more code
24427 \end_layout
24428
24429 \begin_layout LyX-Code
24430   @
24431 \end_layout
24432
24433 \begin_layout Standard
24434 The problem is that whatever is written in between the << and the 
24435 \family typewriter
24436 @
24437 \family default
24438  must be taken literally, i.
24439 \begin_inset space \thinspace{}
24440 \end_inset
24441
24442 e.
24443 \begin_inset space \space{}
24444 \end_inset
24445
24446 \SpecialChar LyX
24447  should be prevented from making any special interpretation of what has
24448  been written.
24449  This is also handled by 
24450 \begin_inset Flex Noun
24451 status collapsed
24452
24453 \begin_layout Plain Layout
24454 Chunk
24455 \end_layout
24456
24457 \end_inset
24458
24459 , that works like a normal paragraph but has a free spacing capability.
24460 \end_layout
24461
24462 \begin_layout Standard
24463 As a special note, you can also use the 
24464 \begin_inset Quotes eld
24465 \end_inset
24466
24467 %def
24468 \begin_inset Quotes erd
24469 \end_inset
24470
24471  construct of Noweb in your chunks to add items to Noweb's identifier cross-refe
24472 rence:
24473 \end_layout
24474
24475 \begin_layout LyX-Code
24476 <<My chunk>>=
24477 \end_layout
24478
24479 \begin_layout LyX-Code
24480 def some_function(args):
24481 \end_layout
24482
24483 \begin_layout LyX-Code
24484    "This is the doc string for this function."
24485 \end_layout
24486
24487 \begin_layout LyX-Code
24488    print "My args: ", args
24489 \end_layout
24490
24491 \begin_layout LyX-Code
24492 @ %def some_function
24493 \end_layout
24494
24495 \begin_layout Standard
24496 For an example of this usage and the resulting cross-reference output, look
24497  at the Literate python program in 
24498 \emph on
24499 LIBDIR/examples/listerrors.lyx
24500 \emph default
24501  which should make this all clear.
24502 \end_layout
24503
24504 \begin_layout Paragraph
24505 Generating the documentation
24506 \end_layout
24507
24508 \begin_layout Standard
24509 At this point you already have a new document file with a proper document
24510  class, and with some code and text on it.
24511  How do I print it? The answer is simple, you select 
24512 \family sans
24513 View\SpecialChar menuseparator
24514 DVI,
24515 \family default
24516  etc.
24517  Just like you would do for a plain document.
24518  No special procedure is required.
24519 \end_layout
24520
24521 \begin_layout Standard
24522 To help orientate you, I will now explain what happens inside \SpecialChar LyX
24523 :
24524 \end_layout
24525
24526 \begin_layout Enumerate
24527 When the 
24528 \family sans
24529 Update\SpecialChar menuseparator
24530 DVI
24531 \family default
24532  menu option is chosen, a \SpecialChar LaTeX
24533  file is generated.
24534  
24535 \end_layout
24536
24537 \begin_deeper
24538 \begin_layout Standard
24539 If the document is of any literate class the generated file will be named
24540  with an extension name defined by the 
24541 \begin_inset Quotes eld
24542 \end_inset
24543
24544 literate
24545 \begin_inset Quotes erd
24546 \end_inset
24547
24548  format (defined in the Preferences panel), otherwise the file will have
24549  the usual 
24550 \family typewriter
24551 .tex
24552 \family default
24553  extension.
24554 \end_layout
24555
24556 \end_deeper
24557 \begin_layout Enumerate
24558 Note that the only difference so far is in the name of the file, no special
24559  processing is required by \SpecialChar LyX
24560 .
24561  Given that you formatted the code using the 
24562 \begin_inset Flex Noun
24563 status collapsed
24564
24565 \begin_layout Plain Layout
24566 Chunk
24567 \end_layout
24568
24569 \end_inset
24570
24571  layout that, by itself, takes care of the business.
24572 \end_layout
24573
24574 \begin_layout Enumerate
24575 If the document is of any literate class \SpecialChar LyX
24576  will then use the internal \SpecialChar LyX
24577  to
24578  Noweb converter, followed by the Noweb to \SpecialChar LaTeX
24579  converter
24580 \begin_inset Foot
24581 status collapsed
24582
24583 \begin_layout Plain Layout
24584 The converters are defined in the 
24585 \family sans
24586 Tools\SpecialChar menuseparator
24587 Preferences
24588 \family default
24589  panel, under the 
24590 \begin_inset Quotes eld
24591 \end_inset
24592
24593 Conversion
24594 \begin_inset Quotes erd
24595 \end_inset
24596
24597  tab.
24598  See section 
24599 \emph on
24600 Converters
24601 \emph default
24602  of the 
24603 \emph on
24604 Customization
24605 \emph default
24606  manual for general information about converters.
24607 \end_layout
24608
24609 \end_inset
24610
24611  to generate the \SpecialChar LaTeX
24612  file.
24613 \end_layout
24614
24615 \begin_deeper
24616 \begin_layout Standard
24617 Otherwise it will just skip this step.
24618 \end_layout
24619
24620 \end_deeper
24621 \begin_layout Enumerate
24622 Finally, \SpecialChar LaTeX
24623  is invoked and the regular post processing continues as in a plain
24624  document.
24625 \end_layout
24626
24627 \begin_layout Standard
24628 Independence from a particular 
24629 \begin_inset Quotes eld
24630 \end_inset
24631
24632 literate tool
24633 \begin_inset Quotes erd
24634 \end_inset
24635
24636  is easily achieved by changing the commands that are run by the various
24637  converters.
24638 \end_layout
24639
24640 \begin_layout Paragraph
24641 Generating the code
24642 \end_layout
24643
24644 \begin_layout Standard
24645 When the build menu option is chosen or the corresponding button in the
24646  toolbar is pressed, a \SpecialChar LaTeX
24647  file is generated just like step 1 above.
24648  Next, \SpecialChar LyX
24649  invokes the 
24650 \family typewriter
24651 Noweb->Program
24652 \family default
24653  converter.
24654  This converter needs to be defined by the user and is not installed by
24655  default, though the Program format is.
24656  This converter (like any other converter) will have two parts:
24657 \end_layout
24658
24659 \begin_layout Enumerate
24660 The converter program itself.
24661  This program performs the conversion from the one format to the other (in
24662  this case, from the Noweb format to the Program pseudo-format).
24663 \end_layout
24664
24665 \begin_layout Enumerate
24666 The error log parser.
24667  This is a program whose sole purpose is to rewrite error messages in a
24668  format that \SpecialChar LyX
24669  understands.
24670  This makes it possible for \SpecialChar LyX
24671  to place error boxes in the right places in
24672  the file buffer.
24673 \end_layout
24674
24675 \begin_layout Standard
24676 The first part, the 
24677 \begin_inset Quotes eld
24678 \end_inset
24679
24680 Converter
24681 \begin_inset Quotes erd
24682 \end_inset
24683
24684  setting, should be set to
24685 \begin_inset Newline newline
24686 \end_inset
24687
24688
24689 \begin_inset Quotes eld
24690 \end_inset
24691
24692
24693 \family typewriter
24694 build-script $$i
24695 \family default
24696  $$r
24697 \begin_inset Quotes erd
24698 \end_inset
24699
24700 .
24701 \begin_inset Newline newline
24702 \end_inset
24703
24704 This basically means that \SpecialChar LyX
24705  will call 
24706 \begin_inset Quotes eld
24707 \end_inset
24708
24709 build-script
24710 \begin_inset Quotes erd
24711 \end_inset
24712
24713  (a program or script) with the name of the Noweb file (normally a file
24714  in the \SpecialChar LyX
24715  temp directory) and the directory path of the original \SpecialChar LyX
24716  file.
24717  
24718 \end_layout
24719
24720 \begin_layout Standard
24721 This is an implementation of 
24722 \begin_inset Quotes eld
24723 \end_inset
24724
24725 build-script
24726 \begin_inset Quotes erd
24727 \end_inset
24728
24729  that you can place in a directory on your path:
24730 \end_layout
24731
24732 \begin_layout Standard
24733 \begin_inset VSpace defskip
24734 \end_inset
24735
24736
24737 \end_layout
24738
24739 \begin_layout Standard
24740 \begin_inset Newpage pagebreak
24741 \end_inset
24742
24743
24744 \end_layout
24745
24746 \begin_layout Standard
24747
24748 \family sans
24749 #!/bin/sh
24750 \end_layout
24751
24752 \begin_layout Standard
24753
24754 \family sans
24755 #
24756 \end_layout
24757
24758 \begin_layout Standard
24759
24760 \family sans
24761 notangle -Rbuild-script $1 | env NOWEB_SOURCE=$1 NOWEB_OUTPUT_DIR=$2 sh
24762 \end_layout
24763
24764 \begin_layout Standard
24765 \begin_inset VSpace defskip
24766 \end_inset
24767
24768
24769 \end_layout
24770
24771 \begin_layout Standard
24772 The next part of the converter setting is the 
24773 \begin_inset Quotes eld
24774 \end_inset
24775
24776 Flags
24777 \begin_inset Quotes erd
24778 \end_inset
24779
24780  which is to be set to
24781 \begin_inset Newline newline
24782 \end_inset
24783
24784
24785 \begin_inset Quotes eld
24786 \end_inset
24787
24788
24789 \family typewriter
24790 parselog=$$s/scripts/listerrors
24791 \family default
24792
24793 \begin_inset Quotes erd
24794 \end_inset
24795
24796 .
24797 \begin_inset Newline newline
24798 \end_inset
24799
24800 This will run any errors that are generated by the 
24801 \begin_inset Quotes eld
24802 \end_inset
24803
24804 build-script
24805 \begin_inset Quotes erd
24806 \end_inset
24807
24808  process through the 
24809 \begin_inset Quotes eld
24810 \end_inset
24811
24812 listerrors
24813 \begin_inset Quotes erd
24814 \end_inset
24815
24816  program.
24817 \end_layout
24818
24819 \begin_layout Standard
24820 The build will normally take place in \SpecialChar LyX
24821 's temporary directory, so the files
24822  produced by the conversion will be in that directory.
24823  \SpecialChar LyX
24824  will copy out what it regards as the `main' file, but the 
24825 \family typewriter
24826 Noweb->Program
24827 \family default
24828  conversion may produce several files, and so most of these would then be
24829  deleted when \SpecialChar LyX
24830  was closed.
24831  This is why we pass in the NOWEB_OUTPUT_DIR environment variable so that
24832  the build-script chunk can place the generated files in that location.
24833 \end_layout
24834
24835 \begin_layout Paragraph
24836 Build instructions in the document
24837 \end_layout
24838
24839 \begin_layout Standard
24840 The last piece of the integration between \SpecialChar LyX
24841  and noweb is the 
24842 \begin_inset Quotes eld
24843 \end_inset
24844
24845 build-script
24846 \begin_inset Quotes erd
24847 \end_inset
24848
24849  chunk.
24850  Generally, the instructions for building your program should be embedded
24851  in a chunk of its own.
24852  The noweb-specific 
24853 \begin_inset Quotes eld
24854 \end_inset
24855
24856 build-script
24857 \begin_inset Quotes erd
24858 \end_inset
24859
24860  above uses the notangle command to look for this chunk (called 
24861 \begin_inset Quotes eld
24862 \end_inset
24863
24864 build-script
24865 \begin_inset Quotes erd
24866 \end_inset
24867
24868 ) and runs its contents through 
24869 \begin_inset Quotes eld
24870 \end_inset
24871
24872 sh
24873 \begin_inset Quotes erd
24874 \end_inset
24875
24876 .
24877 \end_layout
24878
24879 \begin_layout Standard
24880 Typically, such a chunk would look something like this:
24881 \end_layout
24882
24883 \begin_layout LyX-Code
24884 <<build-script>>=
24885 \end_layout
24886
24887 \begin_layout LyX-Code
24888 #!/bin/sh
24889 \begin_inset Newline newline
24890 \end_inset
24891
24892 if [ -z "${NOWEB_SOURCE}" ]
24893 \begin_inset Newline newline
24894 \end_inset
24895
24896 then
24897 \end_layout
24898
24899 \begin_layout LyX-Code
24900 NOWEB_SOURCE=myfile.nw
24901 \begin_inset Newline newline
24902 \end_inset
24903
24904 fi
24905 \begin_inset Newline newline
24906 \end_inset
24907
24908 [...
24909  code to extract files ...
24910  use NOWEB_OUTPUT_DIR here ...]
24911 \begin_inset Newline newline
24912 \end_inset
24913
24914 [...
24915  code to compile files ...]
24916 \begin_inset Newline newline
24917 \end_inset
24918
24919 @
24920 \end_layout
24921
24922 \begin_layout Standard
24923 Look in 
24924 \emph on
24925 LIBDIR/examples/listerrors.lyx
24926 \emph default
24927  or in 
24928 \emph on
24929 LIBDIR/examples/Literate.lyx
24930 \emph default
24931  which implement two versions of the 
24932 \begin_inset Quotes eld
24933 \end_inset
24934
24935 listerrors
24936 \begin_inset Quotes erd
24937 \end_inset
24938
24939  program for some illustrations of how all of these pieces go together or
24940  in 
24941 \emph on
24942 LIBDIR/examples/noweb2lyx.lyx.
24943
24944 \emph default
24945  Interestingly, these three files show off the language-indepence of the
24946  \SpecialChar LyX
24947  literate programming support since they are written in Python, C and Perl
24948  respectively.
24949 \end_layout
24950
24951 \begin_layout Subsubsection
24952 Configuring \SpecialChar LyX
24953
24954 \end_layout
24955
24956 \begin_layout Standard
24957 All the Literate Programming support is configured by the 
24958 \family sans
24959 Tools\SpecialChar menuseparator
24960 Preferences
24961 \family default
24962  panel in the 
24963 \begin_inset Quotes eld
24964 \end_inset
24965
24966 File Handling
24967 \begin_inset Quotes erd
24968 \end_inset
24969
24970  tab.
24971  The important parts are:
24972 \end_layout
24973
24974 \begin_layout Description
24975 the
24976 \begin_inset space ~
24977 \end_inset
24978
24979
24980 \begin_inset Quotes eld
24981 \end_inset
24982
24983 NoWeb
24984 \begin_inset Quotes erd
24985 \end_inset
24986
24987
24988 \begin_inset space ~
24989 \end_inset
24990
24991 format Set up via the File Formats tab, this is where the Noweb-specific
24992  pieces are set up.
24993  The 
24994 \family sans
24995 GUI Name
24996 \family default
24997  is set to 
24998 \family typewriter
24999 NoWeb
25000 \family default
25001 , the file extension is set to 
25002 \family typewriter
25003 .nw
25004 \family default
25005 .
25006  This tells \SpecialChar LyX
25007  to create a file with a 
25008 \family typewriter
25009 .nw
25010 \family default
25011  extension in the first step of the conversion process.
25012 \end_layout
25013
25014 \begin_layout Description
25015 the
25016 \begin_inset space ~
25017 \end_inset
25018
25019
25020 \family sans
25021 Program
25022 \family default
25023
25024 \begin_inset space ~
25025 \end_inset
25026
25027 format This is an empty format whose sole purpose is to be the endpoint
25028  of a conversion (which then allows us to set up a converter for it).
25029 \end_layout
25030
25031 \begin_layout Description
25032
25033 \family sans
25034 NoWeb
25035 \family default
25036 ->
25037 \family sans
25038 \SpecialChar LaTeX
25039
25040 \family default
25041  This converter performs the 
25042 \begin_inset Quotes eld
25043 \end_inset
25044
25045 weaving
25046 \begin_inset Quotes erd
25047 \end_inset
25048
25049  of the literate document.
25050  For Noweb, it is set to 
25051 \begin_inset Quotes eld
25052 \end_inset
25053
25054
25055 \family typewriter
25056 noweave -delay -index $$i > $$o
25057 \family default
25058
25059 \begin_inset Quotes erd
25060 \end_inset
25061
25062
25063 \end_layout
25064
25065 \begin_layout Description
25066
25067 \family sans
25068 NoWeb
25069 \family default
25070 ->
25071 \family sans
25072 Program
25073 \family default
25074  This performs the 
25075 \begin_inset Quotes eld
25076 \end_inset
25077
25078 tangling step
25079 \begin_inset Quotes erd
25080 \end_inset
25081
25082 .
25083  As stated above, the Converter is set to 
25084 \begin_inset Quotes eld
25085 \end_inset
25086
25087
25088 \family typewriter
25089 build-script $$i
25090 \family default
25091  $$r
25092 \begin_inset Quotes erd
25093 \end_inset
25094
25095 , with Flags set to
25096 \begin_inset Newline newline
25097 \end_inset
25098
25099
25100 \begin_inset Quotes eld
25101 \end_inset
25102
25103
25104 \family typewriter
25105 parselog=$$s/scripts/listerrors
25106 \family default
25107
25108 \begin_inset Quotes erd
25109 \end_inset
25110
25111 .
25112 \end_layout
25113
25114 \begin_layout Subsubsection
25115 Debug extensions
25116 \end_layout
25117
25118 \begin_layout Standard
25119 There is also a new function implemented in the \SpecialChar LyX
25120  server, the 
25121 \begin_inset Quotes eld
25122 \end_inset
25123
25124 server-goto-file-row" function, to be used with ddd/gdb or other debugger.
25125  
25126 \end_layout
25127
25128 \begin_layout Standard
25129 When debugging code with ddd/gdb, it is possible to invoke a text editor
25130  at the current execution position with a single key stroke.
25131  The default ddd configuration for that is shift-ctrl-V.
25132  It happens that you can define the editor command line invocation in ddd
25133  by accessing the 
25134 \family sans
25135 Edit\SpecialChar menuseparator
25136 Preferences\SpecialChar menuseparator
25137 Helpers
25138 \family default
25139  dialog and changing the "Edit Sources" entry.
25140 \end_layout
25141
25142 \begin_layout Standard
25143 I take advantage of the newly created \SpecialChar LyX
25144  server function and this ddd feature,
25145  and set 
25146 \begin_inset Quotes eld
25147 \end_inset
25148
25149 Edit Sources
25150 \begin_inset Quotes erd
25151 \end_inset
25152
25153  to:
25154 \end_layout
25155
25156 \begin_layout Standard
25157 \begin_inset VSpace defskip
25158 \end_inset
25159
25160
25161 \end_layout
25162
25163 \begin_layout Standard
25164
25165 \family sans
25166 echo "LYXCMD:monitor:server-goto-file-row:@FILE@ @LINE@" >~/.lyxpipe.in
25167 \end_layout
25168
25169 \begin_layout Standard
25170 \begin_inset VSpace defskip
25171 \end_inset
25172
25173
25174 \end_layout
25175
25176 \begin_layout Standard
25177 With this, whenever you are using ddd and find a point in the program that
25178  you want to edit, you just press shift-ctrl-V (in the ddd window), and
25179  ddd will forward this information to \SpecialChar LyX
25180  through the \SpecialChar LyX
25181  server and then the
25182  \SpecialChar LyX
25183  window will show the same file with the cursor at the same position ddd
25184  was pointing to.
25185  No more guessing or long scrolling to locate a point in the program back
25186  from debugging !
25187 \end_layout
25188
25189 \begin_layout Standard
25190 Note however that you must enable the \SpecialChar LyX
25191  server to get this feature working
25192  (it is disabled by default).
25193  You can enable it in 
25194 \family sans
25195 Preferences
25196 \family default
25197  (tabs 
25198 \family sans
25199 Inputs
25200 \family default
25201
25202 \family sans
25203 Paths
25204 \family default
25205 ) by entering in the 
25206 \family sans
25207 \SpecialChar LyX
25208 server pipe
25209 \family default
25210  a path like 
25211 \begin_inset Quotes eld
25212 \end_inset
25213
25214
25215 \family typewriter
25216 /home/<your-home-directory>/.lyx/lyxpipe
25217 \family default
25218
25219 \begin_inset Quotes erd
25220 \end_inset
25221
25222
25223 \end_layout
25224
25225 \begin_layout Standard
25226 Read the \SpecialChar LyX
25227  server documentation in the 
25228 \emph on
25229 Customization Manual
25230 \emph default
25231  for further information.
25232 \end_layout
25233
25234 \begin_layout Subsubsection
25235 Toolbar extensions
25236 \end_layout
25237
25238 \begin_layout Standard
25239 There are six new buttons that can be added to your \SpecialChar LyX
25240  toolbar.
25241  Five of these buttons are short cuts to layout styles: 
25242 \family sans
25243 Standard
25244 \family default
25245
25246 \family sans
25247 Section
25248 \family default
25249
25250 \family sans
25251 \SpecialChar LaTeX
25252
25253 \family default
25254
25255 \family sans
25256 \SpecialChar LyX
25257 -Code
25258 \family default
25259 , and 
25260 \family sans
25261 Chunk
25262 \family default
25263 .
25264  The last one is a short cut to the 
25265 \begin_inset Quotes eld
25266 \end_inset
25267
25268 Build Program
25269 \begin_inset Quotes erd
25270 \end_inset
25271
25272  File menu entry.
25273  
25274 \end_layout
25275
25276 \begin_layout Standard
25277 \SpecialChar LyX
25278  has a range of buttons that are available for tool bar customization.
25279  In my toolbar I like to combine the six short cuts above with two more:
25280  One for 
25281 \family sans
25282 Document
25283 \family default
25284 \SpecialChar menuseparator
25285
25286 \family sans
25287 Update
25288 \family default
25289 \SpecialChar menuseparator
25290
25291 \family sans
25292 DVI
25293 \family default
25294  and the other for 
25295 \family sans
25296 Document\SpecialChar menuseparator
25297 View\SpecialChar menuseparator
25298 DVI
25299 \family default
25300  File menu entries.
25301  Here is how it looks like:
25302 \end_layout
25303
25304 \begin_layout LyX-Code
25305 Toolbar
25306 \end_layout
25307
25308 \begin_layout LyX-Code
25309   Layouts
25310 \end_layout
25311
25312 \begin_layout LyX-Code
25313   Icon "layout Standard"
25314 \end_layout
25315
25316 \begin_layout LyX-Code
25317   Icon "layout Section"
25318 \end_layout
25319
25320 \begin_layout LyX-Code
25321   Icon "layout \SpecialChar LaTeX
25322 "
25323 \end_layout
25324
25325 \begin_layout LyX-Code
25326   Icon "layout \SpecialChar LyX
25327 -Code"
25328 \end_layout
25329
25330 \begin_layout LyX-Code
25331   Icon "layout Chunk"
25332 \end_layout
25333
25334 \begin_layout LyX-Code
25335   Separator
25336 \end_layout
25337
25338 \begin_layout LyX-Code
25339   Icon "buffer-view"
25340 \end_layout
25341
25342 \begin_layout LyX-Code
25343   Icon "buffer-typeset"
25344 \end_layout
25345
25346 \begin_layout LyX-Code
25347   Icon "build-program"
25348 \end_layout
25349
25350 \begin_layout LyX-Code
25351   Separator
25352 \end_layout
25353
25354 \begin_layout LyX-Code
25355 .
25356 \end_layout
25357
25358 \begin_layout LyX-Code
25359 .
25360 \end_layout
25361
25362 \begin_layout LyX-Code
25363 .
25364 \end_layout
25365
25366 \begin_layout LyX-Code
25367 End
25368 \end_layout
25369
25370 \begin_layout Subsubsection
25371 Colors customization
25372 \end_layout
25373
25374 \begin_layout Standard
25375 There are a number of colors in \SpecialChar LyX
25376  that can be customized in 
25377 \family sans
25378 Preferences
25379 \family default
25380 .
25381  One of the things that bothers people is the \SpecialChar LaTeX
25382  font color.
25383  The default color is red, since the chunks uses \SpecialChar LaTeX
25384  font, and there is a lot
25385  of chunks in literate documents, you may get tired of seeing everything
25386  in red.
25387  You can change it by going to the tabs 
25388 \family sans
25389 Look&Feel
25390 \family default
25391
25392 \family sans
25393 Colors.
25394 \end_layout
25395
25396 \begin_layout Standard
25397 The next thing is the visible presence of the newline character in the screen.
25398  You can choose the color of this particular character and make it blend
25399  in the background.
25400  I recommend you choosing a color that is close to the background but not
25401  equal, that way you still can see it is there, but it is not bothering
25402  you anymore.
25403 \end_layout
25404
25405 \begin_layout Subsection
25406 \SpecialChar LyX
25407  and knitr/Sweave
25408 \end_layout
25409
25410 \begin_layout Standard
25411 Support for 
25412 \family sans
25413 knitr
25414 \family default
25415  and 
25416 \family sans
25417 Sweave
25418 \family default
25419  is documented in the 
25420 \emph on
25421 knitr.lyx
25422 \emph default
25423  example file and in the Sweave manual (menu 
25424 \family sans
25425 Help\SpecialChar menuseparator
25426 Specific Manuals
25427 \family default
25428 ).
25429 \end_layout
25430
25431 \begin_layout Chapter
25432 Special features
25433 \end_layout
25434
25435 \begin_layout Standard
25436 You can do everything with \SpecialChar LyX
25437  that you can do with \SpecialChar LaTeX
25438 .
25439  However, \SpecialChar LyX
25440  cannot support every \SpecialChar LaTeX
25441  feature directly.
25442  But you can always use \SpecialChar TeX
25443  Code.
25444  This chapter shows you some more special things you might want to use.
25445  For other special things you can do with figures, tables, floats, boxes
25446  and notes, have a look at the 
25447 \emph on
25448 Embedded
25449 \begin_inset space ~
25450 \end_inset
25451
25452 Objects
25453 \emph default
25454  manual.
25455 \end_layout
25456
25457 \begin_layout Section
25458 Multiple Text Columns
25459 \end_layout
25460
25461 \begin_layout Standard
25462 This feature is independent of the option 
25463 \family sans
25464 Two-column document
25465 \family default
25466  in the document settings under 
25467 \family sans
25468 Text Layout
25469 \family default
25470 .
25471  If you want to have 2
25472 \begin_inset space ~
25473 \end_inset
25474
25475 columns for the whole document, it is recommended to use the 
25476 \family sans
25477 Two-column document
25478 \family default
25479  option.
25480  For all other cases use this feature.
25481 \end_layout
25482
25483 \begin_layout Standard
25484 To use multiple text columns in your document, you have to load the module
25485  
25486 \family sans
25487 Multiple Columns
25488 \family default
25489  (menu 
25490 \family sans
25491 Document\SpecialChar menuseparator
25492 Settings\SpecialChar menuseparator
25493 Modules
25494 \family default
25495 ) and must have the \SpecialChar LaTeX
25496 -package 
25497 \series bold
25498 multicol
25499 \series default
25500  installed.
25501 \end_layout
25502
25503 \begin_layout Standard
25504 Footnotes within multiple columns will be placed at the bottom of the page
25505  and not under each column.
25506  Within the different columns you can use everything, with the limitation
25507  that for floats you need to use the float option 
25508 \family sans
25509 Span columns
25510 \family default
25511 .
25512 \end_layout
25513
25514 \begin_layout Subsection
25515 Basics
25516 \end_layout
25517
25518 \begin_layout Standard
25519 If you want to have 2
25520 \begin_inset space ~
25521 \end_inset
25522
25523 columns in your text, insert a multicolumn inset via the menu 
25524 \family sans
25525 Insert\SpecialChar menuseparator
25526 Custom
25527 \begin_inset space ~
25528 \end_inset
25529
25530 Insets\SpecialChar menuseparator
25531 Multiple
25532 \begin_inset space ~
25533 \end_inset
25534
25535 Columns
25536 \family default
25537  where the columns should start.
25538  Write all text that should be printed in 2
25539 \begin_inset space ~
25540 \end_inset
25541
25542 columns into this inset.
25543 \end_layout
25544
25545 \begin_layout Standard
25546 Here is an example:
25547 \end_layout
25548
25549 \begin_layout Standard
25550 \noindent
25551 \begin_inset Flex Multiple Columns
25552 status open
25553
25554 \begin_layout Plain Layout
25555 \noindent
25556
25557 \series bold
25558 \size small
25559 The Adventure of the Empty House
25560 \series default
25561
25562 \begin_inset Newline newline
25563 \end_inset
25564
25565 by Sir Arthur Conan Doyle
25566 \end_layout
25567
25568 \begin_layout Plain Layout
25569
25570 \size small
25571 It was in the spring of the year 1894 that all London was interested, and
25572  the fashionable world dismayed, by the murder of the Honourable Ronald
25573  Adair under most unusual and inexplicable circumstances.
25574  The public has already learned those particulars of the crime which came
25575  out in the police investigation, but a good deal was suppressed upon that
25576  occasion, since the case for the prosecution was so overwhelmingly strong
25577  that it was not necessary to bring forward all the facts.
25578  Only now, at the end of nearly ten years, am I allowed to supply those
25579  missing links which make up the whole of that remarkable chain.
25580  The crime was of interest in itself, but that interest was as nothing to
25581  me compared to the inconceivable sequel, which afforded me the greatest
25582  shock and surprise of any event in my adventurous life.
25583  Even now, after this long interval, I find myself thrilling as I think
25584  of it, and feeling once more that sudden flood of joy, amazement, and increduli
25585 ty which utterly submerged my mind.
25586  Let me say to that public, which has shown some interest in those glimpses
25587  which I have occasionally given them of the thoughts and actions of a very
25588  remarkable man, that they are not to blame me if I have not shared my knowledge
25589  with them, for I should have considered it my first duty to do so, had
25590  I not been barred by a positive prohibition from his own lips, which was
25591  only withdrawn upon the third of last month.
25592 \end_layout
25593
25594 \end_inset
25595
25596
25597 \end_layout
25598
25599 \begin_layout Standard
25600 To get 3 or more columns, set the cursor into the multicolumn inset and
25601  use the menu 
25602 \family sans
25603 Insert\SpecialChar menuseparator
25604 Number
25605 \begin_inset space ~
25606 \end_inset
25607
25608 of
25609 \begin_inset space ~
25610 \end_inset
25611
25612 Columns
25613 \family default
25614 .
25615  The number of the desired columns is written into that inset (for 3
25616 \begin_inset space ~
25617 \end_inset
25618
25619 columns write 
25620 \begin_inset Quotes eld
25621 \end_inset
25622
25623 3
25624 \begin_inset Quotes erd
25625 \end_inset
25626
25627 ).
25628 \begin_inset Newline newline
25629 \end_inset
25630
25631 Here is an example with 3
25632 \begin_inset space ~
25633 \end_inset
25634
25635 columns:
25636 \end_layout
25637
25638 \begin_layout Standard
25639 \begin_inset Flex Multiple Columns
25640 status open
25641
25642 \begin_layout Plain Layout
25643
25644 \size footnotesize
25645 \begin_inset Argument 1
25646 status open
25647
25648 \begin_layout Plain Layout
25649 3
25650 \end_layout
25651
25652 \end_inset
25653
25654 It can be imagined that my close intimacy with Sherlock Holmes had interested
25655  me deeply in crime, and that after his disappearance I never failed to
25656  read with care the various problems which came before the public.
25657  And I even attempted, more than once, for my own private satisfaction,
25658  to employ his methods in their solution, though with indifferent success.
25659  There was none, however, which appealed to me like this tragedy of Ronald
25660  Adair.
25661  As I read the evidence at the inquest, which led up to a verdict of willful
25662  murder against some person or persons unknown, I realized more clearly
25663  than I had ever done the loss which the community had sustained by the
25664  death of Sherlock Holmes.
25665  There were points about this strange business which would, I was sure,
25666  have specially appealed to him, and the efforts of the police would have
25667  been supplemented, or more probably anticipated, by the trained observation
25668  and the alert mind of the first criminal agent in Europe.
25669  All day, as I drove upon my round, I turned over the case in my mind and
25670  found no explanation which appeared to me to be adequate.
25671  At the risk of telling a twice-told tale, I will recapitulate the facts
25672  as they were known to the public at the conclusion of the inquest.
25673 \end_layout
25674
25675 \end_inset
25676
25677
25678 \end_layout
25679
25680 \begin_layout Standard
25681 You can have up to 10
25682 \begin_inset space ~
25683 \end_inset
25684
25685 columns if you want to, but that might not be very pleasant for the readers
25686  of your document.
25687 \end_layout
25688
25689 \begin_layout Standard
25690 \begin_inset Newpage newpage
25691 \end_inset
25692
25693
25694 \end_layout
25695
25696 \begin_layout Subsection
25697 Columns inside Columns
25698 \end_layout
25699
25700 \begin_layout Standard
25701 You can also have columns inside columns:
25702 \end_layout
25703
25704 \begin_layout Standard
25705 \begin_inset Flex Multiple Columns
25706 status open
25707
25708 \begin_layout Plain Layout
25709
25710 \size footnotesize
25711 The Honourable Ronald Adair was the second son of the Earl of Maynooth,
25712  at that time governor of one of the Australian colonies.
25713  Adair's mother had returned from Australia to undergo the operation for
25714  cataract, and she, her son Ronald, and her daughter Hilda were living together
25715  at 427 Park Lane.
25716 \end_layout
25717
25718 \begin_layout Plain Layout
25719 \begin_inset Flex Multiple Columns
25720 status open
25721
25722 \begin_layout Plain Layout
25723
25724 \size footnotesize
25725 The youth moved in the best society–had, so far as was known, no enemies
25726  and no particular vices.
25727  He had been engaged to Miss Edith Woodley, of Carstairs, but the engagement
25728  had been broken off by mutual consent some months before, and there was
25729  no sign that it had left any very profound feeling behind it.
25730  For the rest {sic} the man's life moved in a narrow and conventional circle,
25731  for his habits were quiet and his nature unemotional.
25732  Yet it was upon this easy-going young aristocrat that death came, in most
25733  strange and unexpected form, between the hours of ten and eleven-twenty
25734  on the night of March 30, 1894.
25735 \end_layout
25736
25737 \end_inset
25738
25739
25740 \end_layout
25741
25742 \begin_layout Plain Layout
25743
25744 \size footnotesize
25745 Ronald Adair was fond of cards–playing continually, but never for such stakes
25746  as would hurt him.
25747  He was a member of the Baldwin, the Cavendish, and the Bagatelle card clubs.
25748  It was shown that, after dinner on the day of his death, he had played
25749  a rubber of whist at the latter club.
25750  He had also played there in the afternoon.
25751
25752 \size default
25753  
25754 \size footnotesize
25755 The evidence of those who had played with him– Mr.
25756  Murray, Sir John Hardy, and Colonel Moran–showed that the game was whist,
25757  and that there was a fairly equal fall of the cards.
25758  Adair might have lost five pounds, but not more.
25759  His fortune was a considerable one, and such a loss could not in any way
25760  affect him.
25761  He had played nearly every day at one club or other, but he was a cautious
25762  player, and usually rose a winner.
25763  It came out in evidence that, in partnership with Colonel Moran, he had
25764  actually won as much as four hundred and twenty pounds in a sitting, some
25765  weeks before, from Godfrey Milner and Lord Balmoral.
25766  So much for his recent history as it came out at the inquest.
25767 \end_layout
25768
25769 \end_inset
25770
25771
25772 \end_layout
25773
25774 \begin_layout Subsection
25775 Advanced Examples
25776 \end_layout
25777
25778 \begin_layout Standard
25779 The examples in this section show some more special features of multiple
25780  columns.
25781 \end_layout
25782
25783 \begin_layout Standard
25784 For more features of multiple columns, have a look at the documentation
25785  of the \SpecialChar LaTeX
25786 -package 
25787 \series bold
25788 multicol
25789 \series default
25790
25791 \begin_inset CommandInset citation
25792 LatexCommand cite
25793 key "multicol"
25794 literal "true"
25795
25796 \end_inset
25797
25798 .
25799 \end_layout
25800
25801 \begin_layout Subsubsection
25802 Preface
25803 \end_layout
25804
25805 \begin_layout Standard
25806 To add a preface text for multiple columns, set the cursor into the multicolumn
25807  inset and use the menu 
25808 \family sans
25809 Insert\SpecialChar menuseparator
25810 Preface
25811 \family default
25812 .
25813  Write your preface text into that inset.
25814 \begin_inset Newline newline
25815 \end_inset
25816
25817 This is an example with some preface text:
25818 \end_layout
25819
25820 \begin_layout Standard
25821 \begin_inset VSpace bigskip
25822 \end_inset
25823
25824
25825 \end_layout
25826
25827 \begin_layout Standard
25828 \begin_inset Flex Multiple Columns
25829 status open
25830
25831 \begin_layout Plain Layout
25832 \begin_inset Argument 2
25833 status open
25834
25835 \begin_layout Plain Layout
25836 And the story continues and continues and continues and continues\SpecialChar ldots
25837
25838 \end_layout
25839
25840 \end_inset
25841
25842
25843 \size small
25844 On the evening of the crime, he returned from the club exactly at ten.
25845  His mother and sister were out spending the evening with a relation.
25846  The servant deposed that she heard him enter the front room on the second
25847  floor, generally used as his sitting-room.
25848  She had lit a fire there, and as it smoked she had opened the window.
25849  No sound was heard from the room until eleven-twenty, the hour of the return
25850  of Lady Maynooth and her daughter.
25851  Desiring to say good-night, she attempted to enter her son's room.
25852  The door was locked on the inside, and no answer could be got to their
25853  cries and knocking.
25854  Help was obtained, and the door forced.
25855  The unfortunate young man was found lying near the table.
25856  His head had been horribly mutilated by an expanding revolver bullet, but
25857  no weapon of any sort was to be found in the room.
25858 \end_layout
25859
25860 \end_inset
25861
25862
25863 \end_layout
25864
25865 \begin_layout Standard
25866 You can also use a section heading as the preface if you use a section command
25867  as \SpecialChar TeX
25868  Code.
25869  For example the command
25870 \end_layout
25871
25872 \begin_layout Standard
25873
25874 \series bold
25875
25876 \backslash
25877 subsection{subsection title}
25878 \end_layout
25879
25880 \begin_layout Standard
25881 creates a subsection.
25882  In this example the preface is a subsubsection:
25883 \end_layout
25884
25885 \begin_layout Standard
25886 \begin_inset Flex Multiple Columns
25887 status open
25888
25889 \begin_layout Plain Layout
25890 \begin_inset Argument 2
25891 status open
25892
25893 \begin_layout Plain Layout
25894 \begin_inset ERT
25895 status collapsed
25896
25897 \begin_layout Plain Layout
25898
25899
25900 \backslash
25901 subsubsection{
25902 \end_layout
25903
25904 \end_inset
25905
25906 This is a subsubsection heading as a preface
25907 \begin_inset ERT
25908 status collapsed
25909
25910 \begin_layout Plain Layout
25911
25912 }
25913 \end_layout
25914
25915 \end_inset
25916
25917
25918 \end_layout
25919
25920 \end_inset
25921
25922
25923 \size small
25924 A minute examination of the circumstances served only to make the case more
25925  complex.
25926  In the first place, no reason could be given why the young man should have
25927  fastened the door upon the inside.
25928  There was the possibility that the murderer had done this, and had afterwards
25929  escaped by the window.
25930  The drop was at least twenty feet, however, and a bed of crocuses in full
25931  bloom lay beneath.
25932  Neither the flowers nor the earth showed any sign of having been disturbed,
25933  nor were there any marks upon the narrow strip of grass which separated
25934  the house from the road.
25935  Apparently, therefore, it was the young man himself who had fastened the
25936  door.
25937  But how did he come by his death? No one could have climbed up to the window
25938  without leaving traces.
25939  Suppose a man had fired through the window, he would indeed be a remarkable
25940  shot who could with a revolver inflict so deadly a wound.
25941  Again, Park Lane is a frequented thoroughfare; there is a cab stand within
25942  a hundred yards of the house.
25943  No one had heard a shot.
25944 \end_layout
25945
25946 \end_inset
25947
25948
25949 \end_layout
25950
25951 \begin_layout Standard
25952 If there is less vertical space than 6
25953 \begin_inset space ~
25954 \end_inset
25955
25956 text lines is left on the page at the beginning of the multiple columns,
25957  a page break will be inserted before the multiple columns.
25958  Depending on the number of lines of the preface text, you might want to
25959  change this space.
25960  This is done by setting the cursor into the mulitcolumn inset behind the
25961  preface (if there is any) and using the menu 
25962 \family sans
25963 Insert\SpecialChar menuseparator
25964 Space
25965 \begin_inset space ~
25966 \end_inset
25967
25968 Before
25969 \begin_inset space ~
25970 \end_inset
25971
25972 Page
25973 \begin_inset space ~
25974 \end_inset
25975
25976 Break
25977 \family default
25978 .
25979  Insert into that inset the amount of space like e.
25980 \begin_inset space \thinspace{}
25981 \end_inset
25982
25983 g.
25984 \begin_inset space \space{}
25985 \end_inset
25986
25987
25988 \begin_inset Quotes eld
25989 \end_inset
25990
25991 5cm
25992 \begin_inset Quotes erd
25993 \end_inset
25994
25995 .
25996 \begin_inset Newline newline
25997 \end_inset
25998
25999 In this example the space is set to 7
26000 \begin_inset space ~
26001 \end_inset
26002
26003 text lines by using 
26004 \begin_inset Quotes eld
26005 \end_inset
26006
26007 7
26008 \backslash
26009 baselineskip
26010 \begin_inset Quotes erd
26011 \end_inset
26012
26013  (where the command 
26014 \series bold
26015
26016 \backslash
26017 baselineskip
26018 \series default
26019  needs to be inserted as \SpecialChar TeX
26020  code):
26021 \end_layout
26022
26023 \begin_layout Standard
26024 \begin_inset Flex Multiple Columns
26025 status open
26026
26027 \begin_layout Plain Layout
26028 \begin_inset Argument 3
26029 status open
26030
26031 \begin_layout Plain Layout
26032 7
26033 \begin_inset ERT
26034 status collapsed
26035
26036 \begin_layout Plain Layout
26037
26038
26039 \backslash
26040 baselineskip
26041 \end_layout
26042
26043 \end_inset
26044
26045
26046 \end_layout
26047
26048 \end_inset
26049
26050
26051 \size small
26052 On the evening of the crime, he returned from the club exactly at ten.
26053  His mother and sister were out spending the evening with a relation.
26054  The servant deposed that she heard him enter the front room on the second
26055  floor, generally used as his sitting-room.
26056  She had lit a fire there, and as it smoked she had opened the window.
26057  No sound was heard from the room until eleven-twenty, the hour of the return
26058  of Lady Maynooth and her daughter.
26059  Desiring to say good-night, she attempted to enter her son's room.
26060  The door was locked on the inside, and no answer could be got to their
26061  cries and knocking.
26062  Help was obtained, and the door forced.
26063  The unfortunate young man was found lying near the table.
26064  His head had been horribly mutilated by an expanding revolver bullet, but
26065  no weapon of any sort was to be found in the room.
26066 \end_layout
26067
26068 \end_inset
26069
26070
26071 \end_layout
26072
26073 \begin_layout Subsubsection
26074 Surrounding Space
26075 \end_layout
26076
26077 \begin_layout Standard
26078 The amount of space before and after multiple columns can be changed by
26079  changing the length 
26080 \series bold
26081
26082 \backslash
26083 multicolsep
26084 \series default
26085 .
26086  For example the command
26087 \end_layout
26088
26089 \begin_layout Standard
26090
26091 \series bold
26092
26093 \backslash
26094 setlength{
26095 \backslash
26096 multicolsep}{3cm}
26097 \end_layout
26098
26099 \begin_layout Standard
26100 in \SpecialChar TeX
26101  Code changes its value to 3
26102 \begin_inset space \thinspace{}
26103 \end_inset
26104
26105 cm.
26106  The change must be made before the multiple columns' start.
26107  The predefined value is 13
26108 \begin_inset space \thinspace{}
26109 \end_inset
26110
26111 pt.
26112 \end_layout
26113
26114 \begin_layout Standard
26115 For this example 
26116 \series bold
26117
26118 \backslash
26119 multicolsep
26120 \series default
26121  was set to 2.5
26122 \begin_inset space \thinspace{}
26123 \end_inset
26124
26125 cm:
26126 \end_layout
26127
26128 \begin_layout Standard
26129 \begin_inset ERT
26130 status open
26131
26132 \begin_layout Plain Layout
26133
26134
26135 \backslash
26136 setlength{
26137 \backslash
26138 multicolsep}{2.5cm}
26139 \end_layout
26140
26141 \end_inset
26142
26143
26144 \end_layout
26145
26146 \begin_layout Standard
26147 \begin_inset Flex Multiple Columns
26148 status open
26149
26150 \begin_layout Plain Layout
26151
26152 \size small
26153 All day I turned these facts over in my mind, endeavouring to hit upon some
26154  theory which could reconcile them all, and to find that line of least resistanc
26155 e which my poor friend had declared to be the starting-point of every investigat
26156 ion.
26157  I confess that I made little progress.
26158  In the evening I strolled across the Park, and found myself about six o'clock
26159  at the Oxford Street end of Park Lane.
26160  A group of loafers upon the pavements, all staring up at a particular window,
26161  directed me to the house which I had come to see.
26162  A tall, thin man with coloured glasses, whom I strongly suspected of being
26163  a plain-clothes detective, was pointing out some theory of his own, while
26164  the others crowded round to listen to what he said.
26165  I got as near him as I could, but his observations seemed to me to be absurd,
26166  so I withdrew again in some disgust.
26167  As I did so I struck against an elderly, deformed man, who had been behind
26168  me, and I knocked down several books which he was carrying.
26169 \end_layout
26170
26171 \end_inset
26172
26173
26174 \end_layout
26175
26176 \begin_layout Standard
26177 \begin_inset Note Greyedout
26178 status open
26179
26180 \begin_layout Plain Layout
26181
26182 \series bold
26183 Note:
26184 \series default
26185  The values you set with 
26186 \series bold
26187
26188 \backslash
26189 setlength
26190 \series default
26191  will be used for all following multiple columns until you change them again.
26192 \end_layout
26193
26194 \end_inset
26195
26196
26197 \end_layout
26198
26199 \begin_layout Standard
26200 \begin_inset ERT
26201 status collapsed
26202
26203 \begin_layout Plain Layout
26204
26205
26206 \backslash
26207 setlength{
26208 \backslash
26209 multicolsep}{13pt}
26210 \end_layout
26211
26212 \end_inset
26213
26214
26215 \begin_inset Note Note
26216 status collapsed
26217
26218 \begin_layout Plain Layout
26219 go back to the default
26220 \end_layout
26221
26222 \end_inset
26223
26224
26225 \end_layout
26226
26227 \begin_layout Standard
26228 \begin_inset Newpage newpage
26229 \end_inset
26230
26231
26232 \end_layout
26233
26234 \begin_layout Subsubsection
26235 Column Breaks
26236 \end_layout
26237
26238 \begin_layout Standard
26239 A column break can be forced by inserting the command 
26240 \series bold
26241
26242 \backslash
26243 columnbreak{}
26244 \series default
26245  as \SpecialChar TeX
26246  Code to that position in the text where the column should be broken.
26247  Note that this leads in most cases to whitespace in the text.
26248 \begin_inset Newline newline
26249 \end_inset
26250
26251 Here is an example:
26252 \end_layout
26253
26254 \begin_layout Standard
26255 \begin_inset Flex Multiple Columns
26256 status open
26257
26258 \begin_layout Plain Layout
26259
26260 \size small
26261 \begin_inset Quotes eld
26262 \end_inset
26263
26264 You're surprised to see me, sir,
26265 \begin_inset Quotes erd
26266 \end_inset
26267
26268  said he, in a strange, croaking voice.
26269 \end_layout
26270
26271 \begin_layout Plain Layout
26272
26273 \size small
26274 I acknowledged that I was.
26275 \end_layout
26276
26277 \begin_layout Plain Layout
26278
26279 \size small
26280 \begin_inset Quotes eld
26281 \end_inset
26282
26283 Well, I've a conscience, sir, and when I chanced to see you go into this
26284  house, as I came hobbling after you, I thought to myself, I'll just step
26285  in and see that kind gentleman, and tell him that if I was a bit gruff
26286  in my manner there was not any harm meant, and that I am much obliged to
26287  him for picking up my books.
26288 \begin_inset Quotes erd
26289 \end_inset
26290
26291
26292 \end_layout
26293
26294 \begin_layout Plain Layout
26295
26296 \size small
26297 \begin_inset Quotes eld
26298 \end_inset
26299
26300 You make too much of a trifle,
26301 \begin_inset Quotes erd
26302 \end_inset
26303
26304  said I.
26305  
26306 \begin_inset Quotes eld
26307 \end_inset
26308
26309 May I ask how you knew who I was?
26310 \begin_inset Quotes erd
26311 \end_inset
26312
26313  AFTER THIS SENTENCE THE COLUMN BREAK IS FORCED.
26314 \begin_inset ERT
26315 status collapsed
26316
26317 \begin_layout Plain Layout
26318
26319
26320 \backslash
26321 columnbreak{}
26322 \end_layout
26323
26324 \end_inset
26325
26326
26327 \end_layout
26328
26329 \begin_layout Plain Layout
26330
26331 \size small
26332 \begin_inset Quotes eld
26333 \end_inset
26334
26335 Well, sir, if it isn't too great a liberty, I am a neighbour of yours, for
26336  you'll find my little bookshop at the corner of Church Street, and very
26337  happy to see you, I am sure.
26338  Maybe you collect yourself, sir.
26339  Here's 
26340 \noun on
26341 British
26342 \begin_inset space ~
26343 \end_inset
26344
26345 Birds
26346 \noun default
26347 , and 
26348 \noun on
26349 Catullus
26350 \noun default
26351 , and 
26352 \noun on
26353 The Holy War
26354 \noun default
26355 –a bargain, every one of them.
26356  With five volumes you could just fill that gap on that second shelf.
26357  It looks untidy, does it not, sir?
26358 \begin_inset Quotes erd
26359 \end_inset
26360
26361
26362 \end_layout
26363
26364 \end_inset
26365
26366
26367 \end_layout
26368
26369 \begin_layout Subsubsection
26370 Column Separation
26371 \end_layout
26372
26373 \begin_layout Standard
26374 The width of the columns is automatically calculated, but you can modify
26375  the space between the columns.
26376  This is done by changing the length 
26377 \series bold
26378
26379 \backslash
26380 columnsep
26381 \series default
26382 .
26383  Its predefined value is 10
26384 \begin_inset space \thinspace{}
26385 \end_inset
26386
26387 pt.
26388  Here is an example where 
26389 \series bold
26390
26391 \backslash
26392 columnsep
26393 \series default
26394  is set to 3
26395 \begin_inset space \thinspace{}
26396 \end_inset
26397
26398 cm:
26399 \end_layout
26400
26401 \begin_layout Standard
26402 \begin_inset ERT
26403 status open
26404
26405 \begin_layout Plain Layout
26406
26407
26408 \backslash
26409 setlength{
26410 \backslash
26411 columnsep}{3cm}
26412 \end_layout
26413
26414 \end_inset
26415
26416
26417 \end_layout
26418
26419 \begin_layout Standard
26420 \begin_inset Flex Multiple Columns
26421 status open
26422
26423 \begin_layout Plain Layout
26424
26425 \size small
26426 My observations of No.
26427 \begin_inset space \space{}
26428 \end_inset
26429
26430 427 Park Lane did little to clear up the problem in which I was interested.
26431  The house was separated from the street by a low wall and railing, the
26432  whole not more than five feet high.
26433  It was perfectly easy, therefore, for anyone to get into the garden, but
26434  the window was entirely inaccessible, since there was no water pipe or
26435  anything which could help the most active man to climb it.
26436  More puzzled than ever, I retraced my steps to Kensington.
26437  I had not been in my study five minutes when the maid entered to say that
26438  a person desired to see me.
26439  To my astonishment it was none other than my strange old book collector,
26440  his sharp, wizened face peering out from a frame of white hair, and his
26441  precious volumes, a dozen of them at least, wedged under his right arm.
26442 \end_layout
26443
26444 \end_inset
26445
26446
26447 \end_layout
26448
26449 \begin_layout Standard
26450 \begin_inset ERT
26451 status collapsed
26452
26453 \begin_layout Plain Layout
26454
26455
26456 \backslash
26457 setlength{
26458 \backslash
26459 columnsep}{10pt}
26460 \end_layout
26461
26462 \end_inset
26463
26464
26465 \begin_inset Note Note
26466 status collapsed
26467
26468 \begin_layout Plain Layout
26469 go back to the default
26470 \end_layout
26471
26472 \end_inset
26473
26474
26475 \end_layout
26476
26477 \begin_layout Subsubsection
26478 Vertical Lines
26479 \end_layout
26480
26481 \begin_layout Standard
26482 Between the columns a rule with a width of the length 
26483 \series bold
26484
26485 \backslash
26486 columnseprule
26487 \series default
26488  is placed.
26489  If this rule width is set to 0
26490 \begin_inset space \thinspace{}
26491 \end_inset
26492
26493 pt (this is the default), the rule is suppressed.
26494  In the following example the rule is 2
26495 \begin_inset space \thinspace{}
26496 \end_inset
26497
26498 pt wide:
26499 \end_layout
26500
26501 \begin_layout Standard
26502 \begin_inset ERT
26503 status open
26504
26505 \begin_layout Plain Layout
26506
26507
26508 \backslash
26509 setlength{
26510 \backslash
26511 columnseprule}{2pt}
26512 \end_layout
26513
26514 \end_inset
26515
26516
26517 \end_layout
26518
26519 \begin_layout Standard
26520 \begin_inset Flex Multiple Columns
26521 status open
26522
26523 \begin_layout Plain Layout
26524
26525 \size small
26526 \begin_inset Quotes eld
26527 \end_inset
26528
26529 You're surprised to see me, sir,
26530 \begin_inset Quotes erd
26531 \end_inset
26532
26533  said he, in a strange, croaking voice.
26534 \end_layout
26535
26536 \begin_layout Plain Layout
26537
26538 \size small
26539 I acknowledged that I was.
26540 \end_layout
26541
26542 \begin_layout Plain Layout
26543
26544 \size small
26545 \begin_inset Quotes eld
26546 \end_inset
26547
26548 Well, I've a conscience, sir, and when I chanced to see you go into this
26549  house, as I came hobbling after you, I thought to myself, I'll just step
26550  in and see that kind gentleman, and tell him that if I was a bit gruff
26551  in my manner there was not any harm meant, and that I am much obliged to
26552  him for picking up my books.
26553 \begin_inset Quotes erd
26554 \end_inset
26555
26556
26557 \end_layout
26558
26559 \begin_layout Plain Layout
26560
26561 \size small
26562 \begin_inset Quotes eld
26563 \end_inset
26564
26565 You make too much of a trifle,
26566 \begin_inset Quotes erd
26567 \end_inset
26568
26569  said I.
26570  
26571 \begin_inset Quotes eld
26572 \end_inset
26573
26574 May I ask how you knew who I was?
26575 \begin_inset Quotes erd
26576 \end_inset
26577
26578
26579 \end_layout
26580
26581 \begin_layout Plain Layout
26582
26583 \size small
26584 \begin_inset Quotes eld
26585 \end_inset
26586
26587 Well, sir, if it isn't too great a liberty, I am a neighbour of yours, for
26588  you'll find my little bookshop at the corner of Church Street, and very
26589  happy to see you, I am sure.
26590  Maybe you collect yourself, sir.
26591  Here's 
26592 \noun on
26593 British
26594 \begin_inset space ~
26595 \end_inset
26596
26597 Birds
26598 \noun default
26599 , and 
26600 \noun on
26601 Catullus
26602 \noun default
26603 , and 
26604 \noun on
26605 The Holy War
26606 \noun default
26607 –a bargain, every one of them.
26608  With five volumes you could just fill that gap on that second shelf.
26609  It looks untidy, does it not, sir?
26610 \begin_inset Quotes erd
26611 \end_inset
26612
26613
26614 \end_layout
26615
26616 \end_inset
26617
26618
26619 \end_layout
26620
26621 \begin_layout Standard
26622 \begin_inset VSpace defskip
26623 \end_inset
26624
26625
26626 \end_layout
26627
26628 \begin_layout Standard
26629 The rule can be colored by redefining the command 
26630 \series bold
26631
26632 \backslash
26633 columnseprulecolor
26634 \series default
26635 .
26636  This is done by inserting the command
26637 \begin_inset Newline newline
26638 \end_inset
26639
26640
26641 \series bold
26642
26643 \backslash
26644 renewcommand{
26645 \backslash
26646 columnseprulecolor}{
26647 \backslash
26648 color{red}}
26649 \series default
26650
26651 \begin_inset Newline newline
26652 \end_inset
26653
26654 as \SpecialChar TeX
26655  Code before the multicolumn inset.
26656  Replace 
26657 \series bold
26658 red
26659 \series default
26660  in this command by a color of your choice.
26661  You can use all pre- and self-defined colors.
26662  See the 
26663 \emph on
26664 EmbeddedObjects
26665 \emph default
26666  manual, section 
26667 \emph on
26668 Colored
26669 \begin_inset space ~
26670 \end_inset
26671
26672 Tables
26673 \emph default
26674  for more information about pre- and self-defined colors.
26675  To go back to the default color insert the command
26676 \begin_inset Newline newline
26677 \end_inset
26678
26679
26680 \series bold
26681
26682 \backslash
26683 renewcommand{
26684 \backslash
26685 columnseprulecolor}{
26686 \backslash
26687 normalcolor}
26688 \series default
26689
26690 \begin_inset Newline newline
26691 \end_inset
26692
26693 Here is the example with a cyan rule and 1
26694 \begin_inset space \thinspace{}
26695 \end_inset
26696
26697 cm column separation:
26698 \end_layout
26699
26700 \begin_layout Standard
26701 \begin_inset ERT
26702 status open
26703
26704 \begin_layout Plain Layout
26705
26706
26707 \backslash
26708 setlength{
26709 \backslash
26710 columnsep}{1cm}
26711 \end_layout
26712
26713 \begin_layout Plain Layout
26714
26715
26716 \backslash
26717 renewcommand{
26718 \backslash
26719 columnseprulecolor}{
26720 \backslash
26721 color{cyan}}
26722 \end_layout
26723
26724 \end_inset
26725
26726
26727 \end_layout
26728
26729 \begin_layout Standard
26730 \begin_inset Flex Multiple Columns
26731 status open
26732
26733 \begin_layout Plain Layout
26734
26735 \size small
26736 \begin_inset Quotes eld
26737 \end_inset
26738
26739 You're surprised to see me, sir,
26740 \begin_inset Quotes erd
26741 \end_inset
26742
26743  said he, in a strange, croaking voice.
26744 \end_layout
26745
26746 \begin_layout Plain Layout
26747
26748 \size small
26749 I acknowledged that I was.
26750 \end_layout
26751
26752 \begin_layout Plain Layout
26753
26754 \size small
26755 \begin_inset Quotes eld
26756 \end_inset
26757
26758 Well, I've a conscience, sir, and when I chanced to see you go into this
26759  house, as I came hobbling after you, I thought to myself, I'll just step
26760  in and see that kind gentleman, and tell him that if I was a bit gruff
26761  in my manner there was not any harm meant, and that I am much obliged to
26762  him for picking up my books.
26763 \begin_inset Quotes erd
26764 \end_inset
26765
26766
26767 \end_layout
26768
26769 \begin_layout Plain Layout
26770
26771 \size small
26772 \begin_inset Quotes eld
26773 \end_inset
26774
26775 You make too much of a trifle,
26776 \begin_inset Quotes erd
26777 \end_inset
26778
26779  said I.
26780  
26781 \begin_inset Quotes eld
26782 \end_inset
26783
26784 May I ask how you knew who I was?
26785 \begin_inset Quotes erd
26786 \end_inset
26787
26788
26789 \end_layout
26790
26791 \begin_layout Plain Layout
26792
26793 \size small
26794 \begin_inset Quotes eld
26795 \end_inset
26796
26797 Well, sir, if it isn't too great a liberty, I am a neighbour of yours, for
26798  you'll find my little bookshop at the corner of Church Street, and very
26799  happy to see you, I am sure.
26800  Maybe you collect yourself, sir.
26801  Here's 
26802 \noun on
26803 British
26804 \begin_inset space ~
26805 \end_inset
26806
26807 Birds
26808 \noun default
26809 , and 
26810 \noun on
26811 Catullus
26812 \noun default
26813 , and 
26814 \noun on
26815 The Holy War
26816 \noun default
26817 –a bargain, every one of them.
26818  With five volumes you could just fill that gap on that second shelf.
26819  It looks untidy, does it not, sir?
26820 \begin_inset Quotes erd
26821 \end_inset
26822
26823
26824 \end_layout
26825
26826 \end_inset
26827
26828
26829 \end_layout
26830
26831 \begin_layout Standard
26832 \begin_inset ERT
26833 status collapsed
26834
26835 \begin_layout Plain Layout
26836
26837
26838 \backslash
26839 setlength{
26840 \backslash
26841 columnseprule}{0pt}
26842 \end_layout
26843
26844 \begin_layout Plain Layout
26845
26846
26847 \backslash
26848 renewcommand{
26849 \backslash
26850 columnseprulecolor}{
26851 \backslash
26852 normalcolor}
26853 \end_layout
26854
26855 \end_inset
26856
26857
26858 \begin_inset Note Note
26859 status collapsed
26860
26861 \begin_layout Plain Layout
26862 go back to the default
26863 \end_layout
26864
26865 \end_inset
26866
26867
26868 \end_layout
26869
26870 \begin_layout Section
26871 Non-standard Paragraph Shapes
26872 \end_layout
26873
26874 \begin_layout Standard
26875 \noindent
26876 \SpecialChar LaTeX
26877  as well as any other text processor uses by default rectangular paragraphs.
26878  For special cases like for example posters, invitation cards or poems you
26879  can modify the paragraph shape to one of your choice.
26880  This can be done by using the \SpecialChar LaTeX
26881 -package 
26882 \series bold
26883 shapepar
26884 \series default
26885  which is loaded by using in the document settings the module 
26886 \family sans
26887 Custom paragraph shapes
26888 \family default
26889 .
26890 \end_layout
26891
26892 \begin_layout Subsection
26893 Predefined shapes
26894 \end_layout
26895
26896 \begin_layout Standard
26897
26898 \series bold
26899 shapepar
26900 \series default
26901  provides the following shapes:
26902 \end_layout
26903
26904 \begin_layout Standard
26905 \begin_inset Tabular
26906 <lyxtabular version="3" rows="13" columns="3">
26907 <features booktabs="true" islongtable="true" longtabularalignment="center">
26908 <column alignment="center" valignment="middle" width="16col%">
26909 <column alignment="center" valignment="middle" width="40col%">
26910 <column alignment="center" valignment="middle" width="35col%">
26911 <row endhead="true">
26912 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26913 \begin_inset Text
26914
26915 \begin_layout Plain Layout
26916 Name
26917 \end_layout
26918
26919 \end_inset
26920 </cell>
26921 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26922 \begin_inset Text
26923
26924 \begin_layout Plain Layout
26925 Description
26926 \end_layout
26927
26928 \end_inset
26929 </cell>
26930 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
26931 \begin_inset Text
26932
26933 \begin_layout Plain Layout
26934 Annotation
26935 \end_layout
26936
26937 \end_inset
26938 </cell>
26939 </row>
26940 <row>
26941 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
26942 \begin_inset Text
26943
26944 \begin_layout Plain Layout
26945 CDlabel
26946 \end_layout
26947
26948 \end_inset
26949 </cell>
26950 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
26951 \begin_inset Text
26952
26953 \begin_layout Plain Layout
26954 Circle with circular hole (in the size of a CD/DVD)
26955 \end_layout
26956
26957 \end_inset
26958 </cell>
26959 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
26960 \begin_inset Text
26961
26962 \begin_layout Plain Layout
26963 Cannot be scaled, take care there is not too much text
26964 \end_layout
26965
26966 \end_inset
26967 </cell>
26968 </row>
26969 <row>
26970 <cell alignment="center" valignment="top" topline="true" usebox="none">
26971 \begin_inset Text
26972
26973 \begin_layout Plain Layout
26974 Circle
26975 \end_layout
26976
26977 \end_inset
26978 </cell>
26979 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
26980 \begin_inset Text
26981
26982 \begin_layout Plain Layout
26983 Circle
26984 \end_layout
26985
26986 \end_inset
26987 </cell>
26988 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
26989 \begin_inset Text
26990
26991 \begin_layout Plain Layout
26992 Fragile, calculation might fail
26993 \end_layout
26994
26995 \end_inset
26996 </cell>
26997 </row>
26998 <row>
26999 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27000 \begin_inset Text
27001
27002 \begin_layout Plain Layout
27003 Diamond
27004 \end_layout
27005
27006 \end_inset
27007 </cell>
27008 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27009 \begin_inset Text
27010
27011 \begin_layout Plain Layout
27012 Rhomboid (symbolizing a 
27013 \begin_inset Quotes eld
27014 \end_inset
27015
27016 diamond
27017 \begin_inset Quotes erd
27018 \end_inset
27019
27020 )
27021 \end_layout
27022
27023 \end_inset
27024 </cell>
27025 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
27026 \begin_inset Text
27027
27028 \begin_layout Plain Layout
27029 -
27030 \end_layout
27031
27032 \end_inset
27033 </cell>
27034 </row>
27035 <row>
27036 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27037 \begin_inset Text
27038
27039 \begin_layout Plain Layout
27040 Heart
27041 \end_layout
27042
27043 \end_inset
27044 </cell>
27045 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27046 \begin_inset Text
27047
27048 \begin_layout Plain Layout
27049 Heart-like shape
27050 \end_layout
27051
27052 \end_inset
27053 </cell>
27054 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
27055 \begin_inset Text
27056
27057 \begin_layout Plain Layout
27058 -
27059 \end_layout
27060
27061 \end_inset
27062 </cell>
27063 </row>
27064 <row>
27065 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27066 \begin_inset Text
27067
27068 \begin_layout Plain Layout
27069 Hexagon
27070 \end_layout
27071
27072 \end_inset
27073 </cell>
27074 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27075 \begin_inset Text
27076
27077 \begin_layout Plain Layout
27078 Hexagon
27079 \end_layout
27080
27081 \end_inset
27082 </cell>
27083 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
27084 \begin_inset Text
27085
27086 \begin_layout Plain Layout
27087 -
27088 \end_layout
27089
27090 \end_inset
27091 </cell>
27092 </row>
27093 <row>
27094 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27095 \begin_inset Text
27096
27097 \begin_layout Plain Layout
27098 Nut
27099 \end_layout
27100
27101 \end_inset
27102 </cell>
27103 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27104 \begin_inset Text
27105
27106 \begin_layout Plain Layout
27107 Nut for bolt (hexagon with circular hole)
27108 \end_layout
27109
27110 \end_inset
27111 </cell>
27112 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
27113 \begin_inset Text
27114
27115 \begin_layout Plain Layout
27116 -
27117 \end_layout
27118
27119 \end_inset
27120 </cell>
27121 </row>
27122 <row>
27123 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27124 \begin_inset Text
27125
27126 \begin_layout Plain Layout
27127 Square
27128 \end_layout
27129
27130 \end_inset
27131 </cell>
27132 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27133 \begin_inset Text
27134
27135 \begin_layout Plain Layout
27136 Square
27137 \end_layout
27138
27139 \end_inset
27140 </cell>
27141 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
27142 \begin_inset Text
27143
27144 \begin_layout Plain Layout
27145 -
27146 \end_layout
27147
27148 \end_inset
27149 </cell>
27150 </row>
27151 <row>
27152 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
27153 \begin_inset Text
27154
27155 \begin_layout Plain Layout
27156 Star
27157 \end_layout
27158
27159 \end_inset
27160 </cell>
27161 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
27162 \begin_inset Text
27163
27164 \begin_layout Plain Layout
27165 Five-point star
27166 \end_layout
27167
27168 \end_inset
27169 </cell>
27170 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
27171 \begin_inset Text
27172
27173 \begin_layout Plain Layout
27174 -
27175 \end_layout
27176
27177 \end_inset
27178 </cell>
27179 </row>
27180 <row>
27181 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27182 \begin_inset Text
27183
27184 \begin_layout Plain Layout
27185 Candle
27186 \end_layout
27187
27188 \end_inset
27189 </cell>
27190 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27191 \begin_inset Text
27192
27193 \begin_layout Plain Layout
27194 Burning candle
27195 \end_layout
27196
27197 \end_inset
27198 </cell>
27199 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
27200 \begin_inset Text
27201
27202 \begin_layout Plain Layout
27203 -
27204 \end_layout
27205
27206 \end_inset
27207 </cell>
27208 </row>
27209 <row>
27210 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27211 \begin_inset Text
27212
27213 \begin_layout Plain Layout
27214 Drop down/up
27215 \end_layout
27216
27217 \end_inset
27218 </cell>
27219 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27220 \begin_inset Text
27221
27222 \begin_layout Plain Layout
27223 Normal/reversed rain drop
27224 \end_layout
27225
27226 \end_inset
27227 </cell>
27228 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
27229 \begin_inset Text
27230
27231 \begin_layout Plain Layout
27232 Fragile, calculation might fail
27233 \end_layout
27234
27235 \end_inset
27236 </cell>
27237 </row>
27238 <row>
27239 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27240 \begin_inset Text
27241
27242 \begin_layout Plain Layout
27243 \SpecialChar TeX
27244
27245 \end_layout
27246
27247 \end_inset
27248 </cell>
27249 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27250 \begin_inset Text
27251
27252 \begin_layout Plain Layout
27253 The \SpecialChar TeX
27254  logo
27255 \end_layout
27256
27257 \end_inset
27258 </cell>
27259 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
27260 \begin_inset Text
27261
27262 \begin_layout Plain Layout
27263 -
27264 \end_layout
27265
27266 \end_inset
27267 </cell>
27268 </row>
27269 <row>
27270 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
27271 \begin_inset Text
27272
27273 \begin_layout Plain Layout
27274 Triangle up/down/
27275 \begin_inset Newline newline
27276 \end_inset
27277
27278 left/right
27279 \end_layout
27280
27281 \end_inset
27282 </cell>
27283 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
27284 \begin_inset Text
27285
27286 \begin_layout Plain Layout
27287 Triangles in different orientations
27288 \end_layout
27289
27290 \end_inset
27291 </cell>
27292 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
27293 \begin_inset Text
27294
27295 \begin_layout Plain Layout
27296 -
27297 \end_layout
27298
27299 \end_inset
27300 </cell>
27301 </row>
27302 </lyxtabular>
27303
27304 \end_inset
27305
27306
27307 \end_layout
27308
27309 \begin_layout Standard
27310 To use a shape for your paragraph, simply select it in \SpecialChar LyX
27311 's pull-down box
27312  for environments in the toolbar.
27313 \end_layout
27314
27315 \begin_layout Standard
27316 \begin_inset Newpage newpage
27317 \end_inset
27318
27319
27320 \end_layout
27321
27322 \begin_layout Standard
27323 Here is an example paragraph in the shape of a nut:
27324 \end_layout
27325
27326 \begin_layout Standard
27327 \begin_inset VSpace bigskip
27328 \end_inset
27329
27330
27331 \end_layout
27332
27333 \begin_layout Nut
27334
27335 \lang latin
27336 Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
27337  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
27338  voluptua.
27339  At vero eos et accusam et justo duo dolores et ea rebum.
27340  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
27341  sit amet.
27342  Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
27343  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
27344  voluptua.
27345 \end_layout
27346
27347 \begin_layout Standard
27348 \begin_inset VSpace bigskip
27349 \end_inset
27350
27351
27352 \end_layout
27353
27354 \begin_layout Standard
27355 \begin_inset Note Greyedout
27356 status open
27357
27358 \begin_layout Plain Layout
27359
27360 \series bold
27361 Note
27362 \series default
27363 : shapepar paragraphs cannot run over a page break.
27364 \end_layout
27365
27366 \end_inset
27367
27368
27369 \end_layout
27370
27371 \begin_layout Standard
27372 \begin_inset VSpace bigskip
27373 \end_inset
27374
27375
27376 \end_layout
27377
27378 \begin_layout Standard
27379
27380 \series bold
27381 shapepar
27382 \series default
27383  takes care that the shape will always be preserved, no matter how much
27384  text is in the paragraph.
27385  Therefore the paragraph size changes with the amount of contained text.
27386  This can lead to paragraph sizes exceeding the page margins.
27387  To demonstrate the size scaling, here is the same example paragraph but
27388  with twice as much text:
27389 \end_layout
27390
27391 \begin_layout Standard
27392 \begin_inset Newpage newpage
27393 \end_inset
27394
27395
27396 \end_layout
27397
27398 \begin_layout Nut
27399
27400 \lang latin
27401 Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
27402  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
27403  voluptua.
27404  At vero eos et accusam et justo duo dolores et ea rebum.
27405  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
27406  sit amet.
27407  Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
27408  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
27409  voluptua.
27410  Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
27411  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
27412  voluptua.
27413  At vero eos et accusam et justo duo dolores et ea rebum.
27414  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
27415  sit amet.
27416  Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
27417  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
27418  voluptua.
27419 \end_layout
27420
27421 \begin_layout Standard
27422 \begin_inset VSpace bigskip
27423 \end_inset
27424
27425
27426 \end_layout
27427
27428 \begin_layout Standard
27429 An exception is the shape 
27430 \family sans
27431 CDlabel
27432 \family default
27433 .
27434  It cannot be scaled because it must fit the size of a CD/DVD.
27435  Therefore the amount of text that fits into the shape is limited.
27436 \begin_inset Newline newline
27437 \end_inset
27438
27439 The 
27440 \family sans
27441 drop
27442 \family default
27443  shapes and the 
27444 \family sans
27445 circle
27446 \family default
27447  shape are fragile, meaning that the calculation of their size can fail,
27448  depending on the amount of text.
27449  You will then get the \SpecialChar LaTeX
27450  error 
27451 \begin_inset Quotes eld
27452 \end_inset
27453
27454 Arithmetic overflow
27455 \begin_inset Quotes erd
27456 \end_inset
27457
27458 .
27459  In this case one can try to remove or add some text; if nothing works one
27460  has to use another shape.
27461 \end_layout
27462
27463 \begin_layout Standard
27464 \begin_inset VSpace bigskip
27465 \end_inset
27466
27467
27468 \end_layout
27469
27470 \begin_layout Standard
27471 For shapes with tips you will maybe see that \SpecialChar LaTeX
27472 's hyphenation routine fails
27473  for text in the tips.
27474  Therefore it is often necessary to add hyphenation points 
27475 \family sans
27476 (
27477 \begin_inset Info
27478 type  "shortcut"
27479 arg   "specialchar-insert hyphenation"
27480 \end_inset
27481
27482
27483 \family default
27484 ) to the corresponding text parts.
27485 \end_layout
27486
27487 \begin_layout Standard
27488 \begin_inset VSpace bigskip
27489 \end_inset
27490
27491
27492 \end_layout
27493
27494 \begin_layout Standard
27495 Shapepar paragraphs are either always centered or placed on the page so
27496  that their left border touches the left page margin.
27497  You can therefore not use the paragraph dialog to align such paragraphs.
27498  A solution is to put the paragraph into a minipage or parbox and align
27499  the box.
27500  The problem is hereby to find the right width for the box.
27501  Because if it is too wide and you center the box, the paragraph is not
27502  centered too because it sticks at the left side of the box.
27503  So you might have to play a bit with the width until it fits.
27504  Here are two heart-shaped paragraphs, the first one is not aligned, the
27505  second one is right-aligned:
27506 \end_layout
27507
27508 \begin_layout Standard
27509 \begin_inset Newpage newpage
27510 \end_inset
27511
27512
27513 \end_layout
27514
27515 \begin_layout Heart
27516 \noindent
27517
27518 \lang latin
27519 Lo\SpecialChar softhyphen
27520 rem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
27521  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
27522  voluptua.
27523  At vero eos et accusam et justo duo dolores et ea rebum.
27524  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
27525  sit amet.
27526 \end_layout
27527
27528 \begin_layout Standard
27529 \begin_inset VSpace bigskip
27530 \end_inset
27531
27532
27533 \end_layout
27534
27535 \begin_layout Standard
27536 \noindent
27537 \align right
27538 \begin_inset Box Frameless
27539 position "t"
27540 hor_pos "c"
27541 has_inner_box 1
27542 inner_pos "t"
27543 use_parbox 1
27544 use_makebox 0
27545 width "42col%"
27546 special "none"
27547 height "1in"
27548 height_special "totalheight"
27549 thickness "0.4pt"
27550 separation "3pt"
27551 shadowsize "4pt"
27552 framecolor "black"
27553 backgroundcolor "none"
27554 status open
27555
27556 \begin_layout Heart
27557 \noindent
27558
27559 \lang latin
27560 Lo\SpecialChar softhyphen
27561 rem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
27562  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
27563  voluptua.
27564  At vero eos et accusam et justo duo dolores et ea rebum.
27565  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
27566  sit amet.
27567 \end_layout
27568
27569 \end_inset
27570
27571
27572 \end_layout
27573
27574 \begin_layout Subsection
27575 Custom shapes
27576 \end_layout
27577
27578 \begin_layout Standard
27579 You can define any shape you want.
27580  Doing this manually is a lot of work because every coordinate must be specified.
27581  But there is a way to let the computer calculate the coordinates:
27582 \end_layout
27583
27584 \begin_layout Enumerate
27585 Install the program 
27586 \begin_inset CommandInset href
27587 LatexCommand href
27588 name "Jpgfdraw"
27589 target "http://www.ctan.org/tex-archive/graphics/jpgfdraw"
27590 literal "false"
27591
27592 \end_inset
27593
27594 .
27595 \end_layout
27596
27597 \begin_layout Enumerate
27598 In 
27599 \family sans
27600 Jpgfdraw
27601 \family default
27602  go to the menu 
27603 \family sans
27604 TeX/LaTeX\SpecialChar menuseparator
27605 Settings\SpecialChar menuseparator
27606 Set Normal Size
27607 \family default
27608  and select the font size you are using in your document.
27609  For example this document uses the size 12
27610 \begin_inset space \thinspace{}
27611 \end_inset
27612
27613 pt.
27614 \end_layout
27615
27616 \begin_layout Enumerate
27617 Draw a shape.
27618 \end_layout
27619
27620 \begin_layout Enumerate
27621 Use the menu 
27622 \family sans
27623 TeX/LaTeX\SpecialChar menuseparator
27624 Shapepar
27625 \family default
27626  to export the shape to coordinates.
27627  In the appearing dialog use either the outline of your shape for the coordinate
27628 s or the path itself.
27629 \begin_inset Foot
27630 status collapsed
27631
27632 \begin_layout Plain Layout
27633 For more information see 
27634 \begin_inset CommandInset href
27635 LatexCommand href
27636 target "http://www.dickimaw-books.com/apps/jpgfdraw/manual/shapepar.html"
27637 literal "false"
27638
27639 \end_inset
27640
27641
27642 \end_layout
27643
27644 \end_inset
27645
27646
27647 \end_layout
27648
27649 \begin_layout Standard
27650 The coordinates are written into a \SpecialChar TeX
27651  file.
27652  To use it for your \SpecialChar LyX
27653  document
27654 \end_layout
27655
27656 \begin_layout Enumerate
27657 Place the cursor before the first character of your paragraph (or into a
27658  new empty one).
27659 \end_layout
27660
27661 \begin_layout Enumerate
27662 Open in \SpecialChar LyX
27663  the menu 
27664 \family sans
27665 Insert\SpecialChar menuseparator
27666 File\SpecialChar menuseparator
27667 Child
27668 \begin_inset space ~
27669 \end_inset
27670
27671 Document
27672 \family default
27673 , select the file and use 
27674 \family sans
27675 Input
27676 \family default
27677  as 
27678 \family sans
27679 Include Type.
27680 \end_layout
27681
27682 \begin_layout Standard
27683 \begin_inset VSpace defskip
27684 \end_inset
27685
27686
27687 \end_layout
27688
27689 \begin_layout Standard
27690 \begin_inset Note Greyedout
27691 status open
27692
27693 \begin_layout Plain Layout
27694
27695 \series bold
27696 Note
27697 \series default
27698 : The changed shape only applies to the current paragraph; everything is
27699  reset to normal for the next paragraph.
27700  Therefore the shape definition file must be input into every paragraph
27701  with the desired shape.
27702 \end_layout
27703
27704 \end_inset
27705
27706
27707 \end_layout
27708
27709 \begin_layout Standard
27710 \begin_inset VSpace bigskip
27711 \end_inset
27712
27713
27714 \end_layout
27715
27716 \begin_layout Standard
27717 Here is an example:
27718 \end_layout
27719
27720 \begin_layout Standard
27721 \begin_inset VSpace bigskip
27722 \end_inset
27723
27724
27725 \end_layout
27726
27727 \begin_layout Standard
27728 \begin_inset CommandInset include
27729 LatexCommand input
27730 filename "SpecialParagraphShape.tex"
27731
27732 \end_inset
27733
27734
27735 \lang latin
27736 Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
27737  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
27738  voluptua.
27739  At vero eos et accusam et justo duo dolores et ea rebum.
27740  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
27741  sit amet.
27742  Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
27743  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
27744  voluptua.
27745 \end_layout
27746
27747 \begin_layout Standard
27748 \begin_inset VSpace bigskip
27749 \end_inset
27750
27751
27752 \end_layout
27753
27754 \begin_layout Standard
27755
27756 \series bold
27757 A tip:
27758 \series default
27759  to draw complexer shapes in 
27760 \family sans
27761 Jpgfdraw
27762 \family default
27763  you can draw the shape in a program of your choice and import the resulting
27764  image to 
27765 \family sans
27766 Jpgfdraw
27767 \family default
27768 .
27769  Then you only need to draw a line or spline along the outline of the image.
27770 \end_layout
27771
27772 \begin_layout Standard
27773 \begin_inset VSpace bigskip
27774 \end_inset
27775
27776
27777 \end_layout
27778
27779 \begin_layout Standard
27780 The module 
27781 \family sans
27782 Custom paragraph shapes
27783 \family default
27784  also provides the two commands 
27785 \family sans
27786 shapepar
27787 \family default
27788  and 
27789 \family sans
27790 Shapepar
27791 \family default
27792  which can be used to define custom shapes coordinate by coordinate.
27793 \begin_inset Foot
27794 status collapsed
27795
27796 \begin_layout Plain Layout
27797 These commands are internally used for all shapes described here.
27798 \end_layout
27799
27800 \end_inset
27801
27802  For information how these styles are used and about further customization
27803  possibilities, have a look at the documentation of the package 
27804 \series bold
27805 shapepar
27806 \series default
27807
27808 \begin_inset CommandInset citation
27809 LatexCommand cite
27810 key "shapepar"
27811 literal "true"
27812
27813 \end_inset
27814
27815 .
27816 \end_layout
27817
27818 \begin_layout Bibliography
27819 \begin_inset CommandInset bibitem
27820 LatexCommand bibitem
27821 key "multicol"
27822 literal "true"
27823
27824 \end_inset
27825
27826 Documentation of the \SpecialChar LaTeX
27827 -package 
27828 \begin_inset CommandInset href
27829 LatexCommand href
27830 name "multicol"
27831 target "http://mirror.ctan.org/macros/latex/required/tools/multicol.pdf"
27832 literal "false"
27833
27834 \end_inset
27835
27836
27837 \end_layout
27838
27839 \begin_layout Bibliography
27840 \begin_inset CommandInset bibitem
27841 LatexCommand bibitem
27842 key "shapepar"
27843 literal "true"
27844
27845 \end_inset
27846
27847 Documentation of the \SpecialChar LaTeX
27848 -package 
27849 \begin_inset CommandInset href
27850 LatexCommand href
27851 name "shapepar"
27852 target "http://mirrors.ctan.org/macros/latex/contrib/shapepar/shapepar.pdf"
27853 literal "false"
27854
27855 \end_inset
27856
27857
27858 \end_layout
27859
27860 \end_body
27861 \end_document