]> git.lyx.org Git - lyx.git/blob - lib/doc/Additional.lyx
A couple of typos in Additional.lyx
[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 \author 34634807 "Jean-Pierre"
131 \end_header
132
133 \begin_body
134
135 \begin_layout Title
136 Additional \SpecialChar LyX
137  Features
138 \end_layout
139
140 \begin_layout Subtitle
141 Version 2.3.x
142 \end_layout
143
144 \begin_layout Author
145 by the \SpecialChar LyX
146  Team
147 \begin_inset Foot
148 status collapsed
149
150 \begin_layout Plain Layout
151 \noindent
152 Principal maintainer of this file is
153 \noun on
154  Richard Heck
155 \noun default
156 .
157  If you have comments or error corrections, please send them to the \SpecialChar LyX
158  Documentati
159 on mailing list, 
160 \begin_inset Flex Code
161 status collapsed
162
163 \begin_layout Plain Layout
164 \noindent
165 <lyx-docs@lists.lyx.org>
166 \end_layout
167
168 \end_inset
169
170 .
171 \end_layout
172
173 \end_inset
174
175
176 \end_layout
177
178 \begin_layout Standard
179 \begin_inset CommandInset toc
180 LatexCommand tableofcontents
181
182 \end_inset
183
184
185 \end_layout
186
187 \begin_layout Chapter
188 Introduction
189 \end_layout
190
191 \begin_layout Standard
192 This manual is essentially Part II of the 
193 \emph on
194 User's Guide\SpecialChar endofsentence
195
196 \emph default
197  The reason for separating the two documents is simple: the 
198 \emph on
199 User's Guide
200 \emph default
201  is already quite lengthy, and it contains information on all of the basic
202  features one needs to know in order to prepare most documents.
203  However, the \SpecialChar LyX
204  Team has worked to make \SpecialChar LyX
205  extensible through various configuration
206  files and external packages.
207  That means that if you want to support the Fizzwizzle \SpecialChar LaTeX
208  package, you can
209  create a layout file (or module) for it without having to alter \SpecialChar LyX
210  itself.
211  We've already had contributions of several new features this way, and some
212  of them are documented here.
213  There are also some more `advanced' features, such as how to control the
214  presentation of bibliographies and how to work with multi-part documents,
215  that are not covered in the 
216 \emph on
217 User's Guide
218 \emph default
219  and are discussed here.
220 \end_layout
221
222 \begin_layout Standard
223 This manual also documents some special features, like fax support, version
224  control, and SGML support, which require additional software to work properly.
225  There is also a chapter on \SpecialChar LyX
226 's support for HTML.
227  And lastly, there's a chapter of \SpecialChar LaTeX
228  tools and tips, things you can use to
229  spruce up your documents by directly using the powerful features of \SpecialChar LaTeX
230 .
231  After all, \SpecialChar LyX
232  
233 \emph on
234 is
235 \emph default
236  only WYSIWYM and will only ever interface to some, not all, \SpecialChar LaTeX
237  features.
238 \end_layout
239
240 \begin_layout Standard
241 If you haven't read the 
242 \emph on
243 Introduction
244 \emph default
245  yet, you are definitely in the wrong manual.
246  The 
247 \emph on
248 Introduction
249 \emph default
250  is the first place to go, since it describes the notation and format of
251  all of the manuals.
252  You should also be thoroughly familiar with the 
253 \emph on
254 User's Guide
255 \emph default
256  and all of the basic features of \SpecialChar LyX
257  before attempting to read this one.
258 \end_layout
259
260 \begin_layout Standard
261 Since many of the topics in this manual depend heavily on \SpecialChar LyX
262 's interaction
263  with \SpecialChar LaTeX
264 , this first chapter covers the inner workings of \SpecialChar LyX
265  and how to direct
266  \SpecialChar LyX
267  to generate exactly the \SpecialChar LaTeX
268  code you want.
269  It is obviously for more seasoned \SpecialChar LyX
270  users.
271 \end_layout
272
273 \begin_layout Chapter
274 \SpecialChar LyX
275  and \SpecialChar LaTeX
276
277 \end_layout
278
279 \begin_layout Section
280 How \SpecialChar LyX
281  Uses \SpecialChar LaTeX
282
283 \end_layout
284
285 \begin_layout Standard
286 This chapter is for both \SpecialChar TeX
287 -nicians and the \SpecialChar LaTeX
288 -curious.
289  In it, we'll explain how \SpecialChar LyX
290  and \SpecialChar LaTeX
291  work together to produce printable output.
292  This is the only place in any of the manuals where we assume you know something
293  about \SpecialChar LaTeX
294 .
295 \end_layout
296
297 \begin_layout Standard
298 At one time, \SpecialChar LyX
299  was called a 
300 \begin_inset Quotes eld
301 \end_inset
302
303 WYSIWYM frontend to \SpecialChar LaTeX
304 ,
305 \begin_inset Quotes erd
306 \end_inset
307
308  but that's no longer true.
309  There are frontends to \SpecialChar LaTeX
310  out there.
311 \begin_inset Foot
312 status collapsed
313
314 \begin_layout Plain Layout
315 Some familar ones are \SpecialChar TeX
316 maker and kile, on Linux, and \SpecialChar TeX
317 shop, OSX.
318  There are also the \SpecialChar LaTeX
319  modes for vi and emacs, of course.
320 \end_layout
321
322 \end_inset
323
324  These are basically text editors with the ability to run \SpecialChar LaTeX
325  and mark any
326  errors in the file you're editing.
327  Although \SpecialChar LyX
328  
329 \emph on
330 is
331 \emph default
332  an editor, and it 
333 \emph on
334 does
335 \emph default
336  run \SpecialChar LaTeX
337 , and it also indicates errors in the file, it also does much, much
338  more.
339  For one thing, you don't need to know \SpecialChar LaTeX
340  to use \SpecialChar LyX
341  effectively.
342  And \SpecialChar LyX
343  has added its own extensions to \SpecialChar LaTeX
344 .
345  Try the following sometime: select 
346 \begin_inset Flex Noun
347 status collapsed
348
349 \begin_layout Plain Layout
350 Export\SpecialChar menuseparator
351 LaTeX
352 \end_layout
353
354 \end_inset
355
356  from the 
357 \begin_inset Flex Noun
358 status collapsed
359
360 \begin_layout Plain Layout
361 File
362 \end_layout
363
364 \end_inset
365
366  menu (or 
367 \begin_inset Flex Noun
368 status collapsed
369
370 \begin_layout Plain Layout
371 View\SpecialChar menuseparator
372 Source
373 \begin_inset space ~
374 \end_inset
375
376 Pane
377 \end_layout
378
379 \end_inset
380
381 ), then look at the preamble of the resulting 
382 \begin_inset Flex Code
383 status collapsed
384
385 \begin_layout Plain Layout
386 .tex
387 \end_layout
388
389 \end_inset
390
391  file.
392  You'll notice a variety of new macros defined specifically by \SpecialChar LyX
393 .
394  These macros are defined automatically, according to the features you use
395  in the document.
396 \end_layout
397
398 \begin_layout Standard
399 There are several commands that automatically invoke \SpecialChar LaTeX
400 .
401  They are:
402 \end_layout
403
404 \begin_layout Itemize
405 \begin_inset Flex Noun
406 status collapsed
407
408 \begin_layout Plain Layout
409 Document\SpecialChar menuseparator
410 View
411 \end_layout
412
413 \end_inset
414
415
416 \end_layout
417
418 \begin_layout Itemize
419 \begin_inset Flex Noun
420 status collapsed
421
422 \begin_layout Plain Layout
423 Document\SpecialChar menuseparator
424 Update
425 \end_layout
426
427 \end_inset
428
429
430 \end_layout
431
432 \begin_layout Standard
433 They will only invoke \SpecialChar LaTeX
434  if the file has changed since the last time \SpecialChar LaTeX
435  was
436  run.
437  
438 \end_layout
439
440 \begin_layout Standard
441 When \SpecialChar LyX
442  runs \SpecialChar LaTeX
443  on the file you're editing, it performs these steps:
444 \end_layout
445
446 \begin_layout Enumerate
447 Convert the document to \SpecialChar LaTeX
448  and save to a file with the extension 
449 \begin_inset Flex Code
450 status collapsed
451
452 \begin_layout Plain Layout
453 .tex
454 \end_layout
455
456 \end_inset
457
458  in place of 
459 \begin_inset Flex Code
460 status collapsed
461
462 \begin_layout Plain Layout
463 .lyx
464 \end_layout
465
466 \end_inset
467
468 .
469 \end_layout
470
471 \begin_layout Enumerate
472 Run \SpecialChar LaTeX
473  on the 
474 \begin_inset Flex Code
475 status collapsed
476
477 \begin_layout Plain Layout
478 .tex
479 \end_layout
480
481 \end_inset
482
483  file (maybe several times), and run any other commands (such as 
484 \begin_inset Flex Code
485 status collapsed
486
487 \begin_layout Plain Layout
488 bibtex
489 \end_layout
490
491 \end_inset
492
493  or 
494 \begin_inset Flex Code
495 status collapsed
496
497 \begin_layout Plain Layout
498 makeindex
499 \end_layout
500
501 \end_inset
502
503 ) needed to compile the \SpecialChar LaTeX
504  file.
505 \end_layout
506
507 \begin_layout Enumerate
508 If there are any errors, show the error log.
509 \end_layout
510
511 \begin_layout Standard
512 If you have run \SpecialChar LaTeX
513  using 
514 \begin_inset Flex Noun
515 status collapsed
516
517 \begin_layout Plain Layout
518 View\SpecialChar menuseparator
519 DVI
520 \end_layout
521
522 \end_inset
523
524 , \SpecialChar LyX
525  then runs a DVI viewer to display the DVI-file.
526  If you have used 
527 \begin_inset Flex Noun
528 status collapsed
529
530 \begin_layout Plain Layout
531 View\SpecialChar menuseparator
532 PostScript
533 \end_layout
534
535 \end_inset
536
537 , \SpecialChar LyX
538  performs further steps:
539 \end_layout
540
541 \begin_layout Itemize
542 Run 
543 \begin_inset Flex Code
544 status collapsed
545
546 \begin_layout Plain Layout
547 dvips
548 \end_layout
549
550 \end_inset
551
552  to convert the DVI file to PostScript.
553 \end_layout
554
555 \begin_layout Itemize
556 Run a PostScript viewer, such as 
557 \begin_inset Flex Code
558 status collapsed
559
560 \begin_layout Plain Layout
561 ghostview
562 \end_layout
563
564 \end_inset
565
566 , to display the PostScript file.
567 \end_layout
568
569 \begin_layout Standard
570 \SpecialChar LyX
571  does similar things when viewing, or exporting, other formats.
572 \end_layout
573
574 \begin_layout Section
575 Translating \SpecialChar LaTeX
576  files into \SpecialChar LyX
577
578 \end_layout
579
580 \begin_layout Standard
581 You can import a \SpecialChar LaTeX
582  file into \SpecialChar LyX
583  by using the 
584 \begin_inset Flex Noun
585 status collapsed
586
587 \begin_layout Plain Layout
588 File\SpecialChar menuseparator
589 Import\SpecialChar menuseparator
590 LaTeX
591 \end_layout
592
593 \end_inset
594
595  command in \SpecialChar LyX
596 .
597  This will call a program named 
598 \begin_inset Flex Code
599 status collapsed
600
601 \begin_layout Plain Layout
602 tex2lyx
603 \end_layout
604
605 \end_inset
606
607  which will create a file 
608 \begin_inset Flex Code
609 status collapsed
610
611 \begin_layout Plain Layout
612 foo.lyx
613 \end_layout
614
615 \end_inset
616
617  from the file 
618 \begin_inset Flex Code
619 status collapsed
620
621 \begin_layout Plain Layout
622 foo.tex
623 \end_layout
624
625 \end_inset
626
627 .
628  \SpecialChar LyX
629  will then open that file.
630 \begin_inset Foot
631 status collapsed
632
633 \begin_layout Plain Layout
634 \begin_inset Flex Code
635 status collapsed
636
637 \begin_layout Plain Layout
638 tex2lyx
639 \end_layout
640
641 \end_inset
642
643  can also be run from the command line, of course.
644 \end_layout
645
646 \end_inset
647
648
649 \end_layout
650
651 \begin_layout Standard
652 \begin_inset Flex Code
653 status collapsed
654
655 \begin_layout Plain Layout
656 tex2lyx
657 \end_layout
658
659 \end_inset
660
661  will translate most legal \SpecialChar LaTeX
662 , but not everything.
663  It will put things it doesn't understand into \SpecialChar TeX
664  code, so after translating
665  a file with 
666 \begin_inset Flex Code
667 status collapsed
668
669 \begin_layout Plain Layout
670 tex2lyx
671 \end_layout
672
673 \end_inset
674
675 , you can look for \SpecialChar TeX
676  code and hand-edit it until it looks right.
677 \end_layout
678
679 \begin_layout Standard
680 If you don't know what \SpecialChar TeX
681  code is, read the next section.
682 \end_layout
683
684 \begin_layout Section
685 \begin_inset CommandInset label
686 LatexCommand label
687 name "sec:Inserting-TeX-Code"
688
689 \end_inset
690
691 Inserting \SpecialChar TeX
692  Code into \SpecialChar LyX
693  Documents 
694 \end_layout
695
696 \begin_layout Standard
697 Anything you can do in \SpecialChar LaTeX
698  you can do in \SpecialChar LyX
699 , for a very simple reason: You can
700  always insert \SpecialChar TeX
701  code into any \SpecialChar LyX
702  document.
703  \SpecialChar LyX
704  cannot, and will never be able to, display every possible \SpecialChar LaTeX
705  construct.
706  If ever you need to insert \SpecialChar LaTeX
707  commands into your \SpecialChar LyX
708  document, you can use the
709  
710 \begin_inset Flex Code
711 status collapsed
712
713 \begin_layout Plain Layout
714 \SpecialChar TeX
715  Code
716 \end_layout
717
718 \end_inset
719
720  box, which you can insert into your document with 
721 \begin_inset Flex Noun
722 status collapsed
723
724 \begin_layout Plain Layout
725 Insert\SpecialChar menuseparator
726
727 \family sans
728 TeX
729 \family default
730  Code
731 \end_layout
732
733 \end_inset
734
735  or the keyboard shortcut 
736 \begin_inset Info
737 type  "shortcut"
738 arg   "ert-insert"
739 \end_inset
740
741 .
742 \end_layout
743
744 \begin_layout Standard
745 Here's an example of inserting \SpecialChar LaTeX
746  commands in a \SpecialChar LyX
747  document.
748  The code looks like this:
749 \end_layout
750
751 \begin_layout LyX-Code
752
753 \backslash
754 begin{tabular}{ll}
755 \begin_inset Newline newline
756 \end_inset
757
758
759 \backslash
760 begin{minipage}{5cm}
761 \begin_inset Newline newline
762 \end_inset
763
764 This is an example of a minipage environment.
765  You 
766 \begin_inset Newline newline
767 \end_inset
768
769 can put nearly everything in it, even (non-floating) 
770 \begin_inset Newline newline
771 \end_inset
772
773 figures and tables.
774  
775 \begin_inset Newline newline
776 \end_inset
777
778
779 \backslash
780 end{minipage}
781 \begin_inset Newline newline
782 \end_inset
783
784 &
785 \begin_inset Newline newline
786 \end_inset
787
788
789 \backslash
790 begin{minipage}{5cm}
791 \begin_inset Newline newline
792 \end_inset
793
794
795 \backslash
796 begin{verbatim}
797 \begin_inset Newline newline
798 \end_inset
799
800
801 \backslash
802 begin{minipage}{5cm}
803 \begin_inset Newline newline
804 \end_inset
805
806 This ...
807  
808 \begin_inset Newline newline
809 \end_inset
810
811
812 \backslash
813 end{minipage}
814 \begin_inset Newline newline
815 \end_inset
816
817
818 \backslash
819 end{verbatim}
820 \begin_inset Newline newline
821 \end_inset
822
823
824 \backslash
825 end{minipage}
826 \begin_inset Newline newline
827 \end_inset
828
829
830 \backslash
831 end{tabular}
832 \end_layout
833
834 \begin_layout LyX-Code
835
836 \end_layout
837
838 \begin_layout Standard
839 The 
840 \begin_inset Flex Code
841 status collapsed
842
843 \begin_layout Plain Layout
844 \SpecialChar TeX
845  Code
846 \end_layout
847
848 \end_inset
849
850  box containing this text is directly after this paragraph.
851  Those of you reading the manual in \SpecialChar LyX
852  will only see the \SpecialChar TeX
853  code inset.
854  Those reading a printed version of the manuals will see the actual results:
855 \begin_inset VSpace bigskip
856 \end_inset
857
858
859 \end_layout
860
861 \begin_layout Standard
862 \begin_inset ERT
863 status open
864
865 \begin_layout Plain Layout
866
867
868 \backslash
869 begin{tabular}{ll}
870 \end_layout
871
872 \begin_layout Plain Layout
873
874
875 \backslash
876 begin{minipage}{5cm}
877 \end_layout
878
879 \begin_layout Plain Layout
880
881 This is an example of a minipage environment.
882  You can put nearly everything in it, even (non-floating) figures and tables.
883  
884 \end_layout
885
886 \begin_layout Plain Layout
887
888
889 \backslash
890 end{minipage}
891 \end_layout
892
893 \begin_layout Plain Layout
894
895 &
896 \end_layout
897
898 \begin_layout Plain Layout
899
900
901 \backslash
902 begin{minipage}{5cm}
903 \end_layout
904
905 \begin_layout Plain Layout
906
907
908 \backslash
909 begin{verbatim}
910 \end_layout
911
912 \begin_layout Plain Layout
913
914
915 \backslash
916 begin{minipage}{5cm}
917 \end_layout
918
919 \begin_layout Plain Layout
920
921 This ...
922  
923 \end_layout
924
925 \begin_layout Plain Layout
926
927
928 \backslash
929 end{minipage}
930 \end_layout
931
932 \begin_layout Plain Layout
933
934
935 \backslash
936 end{verbatim}
937 \end_layout
938
939 \begin_layout Plain Layout
940
941
942 \backslash
943 end{minipage}
944 \end_layout
945
946 \begin_layout Plain Layout
947
948
949 \backslash
950 end{tabular}
951 \end_layout
952
953 \end_inset
954
955
956 \begin_inset VSpace bigskip
957 \end_inset
958
959
960 \end_layout
961
962 \begin_layout Standard
963 In addition to using \SpecialChar TeX
964  code, you can also create a separate file containing
965  some complex \SpecialChar LaTeX
966  structure and then use 
967 \begin_inset Flex Noun
968 status collapsed
969
970 \begin_layout Plain Layout
971 Insert\SpecialChar menuseparator
972 Child
973 \begin_inset space ~
974 \end_inset
975
976 Document
977 \end_layout
978
979 \end_inset
980
981  to include your file (you should select the type 
982 \begin_inset Flex Code
983 status collapsed
984
985 \begin_layout Plain Layout
986 Input
987 \end_layout
988
989 \end_inset
990
991 ).
992  We recommend that you only do this if you have a 
993 \begin_inset Flex Code
994 status collapsed
995
996 \begin_layout Plain Layout
997 .tex
998 \end_layout
999
1000 \end_inset
1001
1002  file which you 
1003 \emph on
1004 know
1005 \emph default
1006  works already.
1007  Otherwise, you'll have a big job tracking down \SpecialChar LaTeX
1008  errors.
1009 \end_layout
1010
1011 \begin_layout Standard
1012 There are a few last points to emphasize:
1013 \end_layout
1014
1015 \begin_layout Itemize
1016 \SpecialChar LyX
1017  
1018 \emph on
1019 does not
1020 \emph default
1021  check if your \SpecialChar LaTeX
1022  code is correct.
1023 \end_layout
1024
1025 \begin_layout Itemize
1026 Beware of reinventing the wheel.
1027 \end_layout
1028
1029 \begin_layout Standard
1030 On that last point, \SpecialChar LyX
1031  does have quite a few features tucked into it, and
1032  more are coming.
1033  Be sure to check the manuals to make sure that \SpecialChar LyX
1034  doesn't have such-and-such
1035  feature before you decide you have to do it by hand.
1036  Moreover, there are numerous \SpecialChar LaTeX
1037  packages out there to do all sorts of things,
1038  from labels to envelopes to fancy multipage tables.
1039  Check out 
1040 \begin_inset CommandInset href
1041 LatexCommand href
1042 name "CTAN"
1043 target "http://www.ctan.org/"
1044 literal "false"
1045
1046 \end_inset
1047
1048  for details.
1049 \end_layout
1050
1051 \begin_layout Standard
1052 If you do need to do some wild and fancy things within your document, be
1053  sure to check out a good \SpecialChar LaTeX
1054  book for assistance.
1055  There are a number of them listed in the bibliography of the 
1056 \emph on
1057 User's Guide
1058 \emph default
1059 .
1060 \end_layout
1061
1062 \begin_layout Section
1063 \SpecialChar LyX
1064  and the \SpecialChar LaTeX
1065  Preamble
1066 \end_layout
1067
1068 \begin_layout Subsection
1069 About the \SpecialChar LaTeX
1070  Preamble
1071 \end_layout
1072
1073 \begin_layout Standard
1074 If you already know \SpecialChar LaTeX
1075 , there is no need to explain here what the preamble
1076  is good for.
1077  If you don't, the following will give you some ideas—we recommend again
1078  that you consult a \SpecialChar LaTeX
1079  book for further information.
1080  In any case, you should read the points below, because they explain what
1081  you can do and what you don't need to do in the \SpecialChar LaTeX
1082  preamble of a \SpecialChar LyX
1083  document.
1084 \end_layout
1085
1086 \begin_layout Standard
1087 The \SpecialChar LaTeX
1088  preamble comes at the very beginning of a document, 
1089 \emph on
1090 before
1091 \emph default
1092  the text.
1093  It serves to:
1094 \end_layout
1095
1096 \begin_layout Itemize
1097 Declare the document class.
1098  
1099 \begin_inset Newline newline
1100 \end_inset
1101
1102 \SpecialChar LyX
1103  already does this for you.
1104  If you're a seasoned \SpecialChar LaTeX
1105 -nician, and you have a custom document class you
1106  want to use, check out the 
1107 \emph on
1108 Customization Manual
1109 \emph default
1110  for information on how to make \SpecialChar LyX
1111  interface to it.
1112 \end_layout
1113
1114 \begin_layout Itemize
1115 Declare the usage of packages.
1116  
1117 \begin_inset Newline newline
1118 \end_inset
1119
1120 \SpecialChar LaTeX
1121  packages provide special commands, which are only available within a document
1122  when the package has been declared in the preamble.
1123  In addition to providing special commands, the inclusion of a package can
1124  change the document.
1125  For example, the package 
1126 \begin_inset Flex Code
1127 status collapsed
1128
1129 \begin_layout Plain Layout
1130 indentfirst
1131 \end_layout
1132
1133 \end_inset
1134
1135  forces all paragraphs to be indented.
1136  There are other packages for labels, envelopes, margins, etc.
1137  
1138 \end_layout
1139
1140 \begin_layout Itemize
1141 Set counters, variables, lengths and widths.
1142  
1143 \begin_inset Newline newline
1144 \end_inset
1145
1146 There are several \SpecialChar LaTeX
1147  counters and variables that 
1148 \emph on
1149 must
1150 \emph default
1151  be set globally from within the preamble in order to have the desired effect.
1152  (There are variables that you can set and reset inside the document, too.)
1153  Margins are a good example of something that must be set in the preamble.
1154  Another example is the label format for lists.
1155  You can actually set these just about anywhere, but it's best to do it
1156  just once, inside the preamble.
1157 \end_layout
1158
1159 \begin_layout Itemize
1160 Declare user defined commands (with 
1161 \begin_inset Flex Code
1162 status collapsed
1163
1164 \begin_layout Plain Layout
1165
1166 \backslash
1167 newcommand
1168 \end_layout
1169
1170 \end_inset
1171
1172  or 
1173 \begin_inset Flex Code
1174 status collapsed
1175
1176 \begin_layout Plain Layout
1177
1178 \backslash
1179 renewcommand
1180 \end_layout
1181
1182 \end_inset
1183
1184 ).
1185 \begin_inset Newline newline
1186 \end_inset
1187
1188 These are abbreviations for \SpecialChar LaTeX
1189  commands which appear very often inside a document.
1190  Although the preamble is a good place to declare such commands, they 
1191 \emph on
1192 can
1193 \emph default
1194  be declared anywhere (before they are used for the first time, of course).
1195  This can be useful if there is a lot of raw \SpecialChar LaTeX
1196  code in your document, which
1197  normally should not be the case.
1198 \end_layout
1199
1200 \begin_layout Standard
1201 \SpecialChar LyX
1202  adds its own set of definitions to the preamble of the 
1203 \begin_inset Flex Code
1204 status collapsed
1205
1206 \begin_layout Plain Layout
1207 .tex
1208 \end_layout
1209
1210 \end_inset
1211
1212  file it produces.
1213  This makes \SpecialChar LaTeX
1214  files generated by \SpecialChar LyX
1215  portable.
1216 \end_layout
1217
1218 \begin_layout Subsection
1219 Changing the Preamble
1220 \end_layout
1221
1222 \begin_layout Standard
1223 The commands which \SpecialChar LyX
1224  adds to the preamble of a \SpecialChar LaTeX
1225  file are fixed; you can't
1226  change them without patching \SpecialChar LyX
1227  itself.
1228  You can, however, add your own stuff to the preamble by selecting 
1229 \begin_inset Flex Noun
1230 status collapsed
1231
1232 \begin_layout Plain Layout
1233 \SpecialChar LaTeX
1234
1235 \begin_inset space ~
1236 \end_inset
1237
1238 Preamble
1239 \end_layout
1240
1241 \end_inset
1242
1243  in the 
1244 \begin_inset Flex Noun
1245 status collapsed
1246
1247 \begin_layout Plain Layout
1248 Document\SpecialChar menuseparator
1249 Settings
1250 \end_layout
1251
1252 \end_inset
1253
1254  dialog.
1255  \SpecialChar LyX
1256  adds anything in the 
1257 \begin_inset Flex Noun
1258 status collapsed
1259
1260 \begin_layout Plain Layout
1261 Preamble
1262 \end_layout
1263
1264 \end_inset
1265
1266  dialog to its own built-in preamble.
1267  Before adding your own declarations in the preamble, you should make sure
1268  that \SpecialChar LyX
1269  doesn't already support what you want to do.
1270  (Remember what we said about reinventing the wheel?) Also, 
1271 \emph on
1272 make sure your preamble code is correct
1273 \emph default
1274 .
1275  \SpecialChar LyX
1276  doesn't check it for you.
1277  If there is an error, you're likely to get an error like 
1278 \begin_inset Quotes eld
1279 \end_inset
1280
1281
1282 \begin_inset Flex Code
1283 status collapsed
1284
1285 \begin_layout Plain Layout
1286 Missing 
1287 \backslash
1288 begin{document}
1289 \end_layout
1290
1291 \end_inset
1292
1293
1294 \begin_inset Quotes erd
1295 \end_inset
1296
1297 .
1298  If you see this error, check your preamble.
1299 \end_layout
1300
1301 \begin_layout Subsection
1302 Examples
1303 \end_layout
1304
1305 \begin_layout Standard
1306 Here are some examples of what you can add to a preamble, and what they
1307  do.
1308 \end_layout
1309
1310 \begin_layout Subsubsection
1311 Example #1: Offsets
1312 \end_layout
1313
1314 \begin_layout Standard
1315 There are two variables under \SpecialChar LaTeX
1316  that control page position: 
1317 \begin_inset Flex Code
1318 status collapsed
1319
1320 \begin_layout Plain Layout
1321
1322 \backslash
1323 hoffset
1324 \end_layout
1325
1326 \end_inset
1327
1328  and 
1329 \begin_inset Flex Code
1330 status collapsed
1331
1332 \begin_layout Plain Layout
1333
1334 \backslash
1335 voffset
1336 \end_layout
1337
1338 \end_inset
1339
1340 .
1341  Their names should be self-explanatory.
1342  These variables are useful if you think for a moment about computer labels.
1343  Sometimes, the size of a print medium and the area of the medium that you
1344  can actually print on aren't the same.
1345  This is where 
1346 \begin_inset Flex Code
1347 status collapsed
1348
1349 \begin_layout Plain Layout
1350
1351 \backslash
1352 hoffset
1353 \end_layout
1354
1355 \end_inset
1356
1357  and 
1358 \begin_inset Flex Code
1359 status collapsed
1360
1361 \begin_layout Plain Layout
1362
1363 \backslash
1364 voffset
1365 \end_layout
1366
1367 \end_inset
1368
1369  come in.
1370 \end_layout
1371
1372 \begin_layout Standard
1373 The default values for 
1374 \begin_inset Flex Code
1375 status collapsed
1376
1377 \begin_layout Plain Layout
1378
1379 \backslash
1380 hoffset
1381 \end_layout
1382
1383 \end_inset
1384
1385  and 
1386 \begin_inset Flex Code
1387 status collapsed
1388
1389 \begin_layout Plain Layout
1390
1391 \backslash
1392 voffset
1393 \end_layout
1394
1395 \end_inset
1396
1397  are both 0
1398 \begin_inset space \thinspace{}
1399 \end_inset
1400
1401 points, i.
1402 \begin_inset space \thinspace{}
1403 \end_inset
1404
1405 e.
1406 \begin_inset space \space{}
1407 \end_inset
1408
1409 the page isn't shifted.
1410  Unfortunately, some DVI drivers always seem to shift the page.
1411  We have no idea why, or why the sysadmin hasn't fixed such behavior.
1412  If you're using \SpecialChar LyX
1413  on a system that you don't personally maintain, and your
1414  sysadmin is a doofus, 
1415 \begin_inset Flex Code
1416 status collapsed
1417
1418 \begin_layout Plain Layout
1419
1420 \backslash
1421 hoffset
1422 \end_layout
1423
1424 \end_inset
1425
1426  and 
1427 \begin_inset Flex Code
1428 status collapsed
1429
1430 \begin_layout Plain Layout
1431
1432 \backslash
1433 voffset
1434 \end_layout
1435
1436 \end_inset
1437
1438  can save the day.
1439  Suppose your left and top margins are always 0.5
1440 \begin_inset space \thinspace{}
1441 \end_inset
1442
1443 inches too big.
1444  You can add this to the preamble:
1445 \end_layout
1446
1447 \begin_layout LyX-Code
1448
1449 \backslash
1450 setlength{
1451 \backslash
1452 hoffset}{-0.5 in}
1453 \end_layout
1454
1455 \begin_layout LyX-Code
1456
1457 \backslash
1458 setlength{
1459 \backslash
1460 voffset}{-0.5 in}
1461 \end_layout
1462
1463 \begin_layout Standard
1464 and your margins should now be correct.
1465 \end_layout
1466
1467 \begin_layout Subsubsection
1468 Example #2: Labels
1469 \end_layout
1470
1471 \begin_layout Standard
1472 Speaking of labels, suppose you wanted to print out a bunch of address labels.
1473  There's a rather nice package, available at your nearest CTAN archive,
1474  for printing sheets of labels: 
1475 \begin_inset Flex Code
1476 status collapsed
1477
1478 \begin_layout Plain Layout
1479 labels.sty
1480 \end_layout
1481
1482 \end_inset
1483
1484 .
1485  Now, your system may not have this package installed by default.
1486  We leave that up to you to check.
1487  You'll also want to read the documentation for it; we're not going to do
1488  that for you.
1489  Since this is an example, however, we'll give you an example of how you
1490  use this package.
1491 \end_layout
1492
1493 \begin_layout Standard
1494 First, make sure you're using the 
1495 \begin_inset Flex Code
1496 status collapsed
1497
1498 \begin_layout Plain Layout
1499 article
1500 \end_layout
1501
1502 \end_inset
1503
1504  document class.
1505  Next, you need to put the following in your preamble:
1506 \end_layout
1507
1508 \begin_layout LyX-Code
1509
1510 \backslash
1511 usepackage{labels}
1512 \end_layout
1513
1514 \begin_layout LyX-Code
1515
1516 \backslash
1517 LabelCols=3
1518 \end_layout
1519
1520 \begin_layout LyX-Code
1521
1522 \backslash
1523 LabelRows=7
1524 \end_layout
1525
1526 \begin_layout LyX-Code
1527
1528 \backslash
1529 LeftBorder=8mm
1530 \end_layout
1531
1532 \begin_layout LyX-Code
1533
1534 \backslash
1535 RightBorder=8mm
1536 \end_layout
1537
1538 \begin_layout LyX-Code
1539
1540 \backslash
1541 TopBorder=9mm
1542 \end_layout
1543
1544 \begin_layout LyX-Code
1545
1546 \backslash
1547 BottomBorder=2mm
1548 \end_layout
1549
1550 \begin_layout Standard
1551 This sets things up for Avery label sheets, stock #5360.
1552  You're now ready to print labels, but you'll need to insert \SpecialChar LaTeX
1553  code, placing
1554  the commands 
1555 \begin_inset Flex Code
1556 status collapsed
1557
1558 \begin_layout Plain Layout
1559
1560 \backslash
1561 begin{labels}
1562 \end_layout
1563
1564 \end_inset
1565
1566  and 
1567 \begin_inset Flex Code
1568 status collapsed
1569
1570 \begin_layout Plain Layout
1571
1572 \backslash
1573 end{labels}
1574 \end_layout
1575
1576 \end_inset
1577
1578  around each label text.
1579  This and other special features of 
1580 \begin_inset Flex Code
1581 status collapsed
1582
1583 \begin_layout Plain Layout
1584 labels.sty
1585 \end_layout
1586
1587 \end_inset
1588
1589  are explained in its documentation.
1590 \end_layout
1591
1592 \begin_layout Standard
1593 Someday, someone may write a \SpecialChar LyX
1594  layout file to support this package directly.
1595  Maybe that someone is you.
1596 \end_layout
1597
1598 \begin_layout Subsubsection
1599 Example #3: Paragraph Indentation
1600 \end_layout
1601
1602 \begin_layout Standard
1603 Americans are trained to indent the first line of 
1604 \emph on
1605 every
1606 \emph default
1607  paragraph.
1608  As with all of their other weird quirks, most Americans will whine and
1609  moan until they can have their way and indent the first line of all paragraphs.
1610  (Yes, we're joking.
1611  (We are?) 
1612 \emph on
1613 Yeah
1614 \emph default
1615 , we are.)
1616 \end_layout
1617
1618 \begin_layout Standard
1619 Of course, this behavior isn't standard typography.
1620  In books, you typically only indent the first line of a paragraph 
1621 \emph on
1622 if
1623 \emph default
1624  it follows another one.
1625  The idea behind indenting the first line of a paragraph is to distinguish
1626  neighboring paragraphs from one another.
1627  If there is no previous paragraph—for example, if it follows a figure or
1628  is the first paragraph in a section—then there is no need for indentation.
1629  
1630 \end_layout
1631
1632 \begin_layout Standard
1633 If you're a typical American (we're still joking!), though, you don't care
1634  about such esoteric things; you want your indentation! Add this to the
1635  preamble:
1636 \end_layout
1637
1638 \begin_layout LyX-Code
1639
1640 \backslash
1641 usepackage{indentfirst}
1642 \end_layout
1643
1644 \begin_layout Standard
1645 If your \SpecialChar TeX
1646  distribution isn't braindead, you'll have this package, and all
1647  of your paragraphs will get the indentation the Founding Fathers intended
1648  they should have.
1649 \end_layout
1650
1651 \begin_layout Subsubsection
1652 Example #4: This Document
1653 \end_layout
1654
1655 \begin_layout Standard
1656 You can also check out the preamble of this document to get an idea of some
1657  of the advanced things you can do.
1658 \end_layout
1659
1660 \begin_layout Section
1661 \SpecialChar LyX
1662  and \SpecialChar LaTeX
1663  Errors
1664 \end_layout
1665
1666 \begin_layout Standard
1667 When \SpecialChar LyX
1668  calls \SpecialChar LaTeX
1669 , it tells \SpecialChar LaTeX
1670  to blithely ignore any errors and keep going.
1671  It then uses the logfile from the \SpecialChar LaTeX
1672  run to do a post-mortem.
1673  After analyzing the logfile, \SpecialChar LyX
1674  displays a dialog listing the errors.
1675  Clicking on any one of them will take you to the position in your \SpecialChar LyX
1676  file
1677  where the error occurred.
1678 \begin_inset Foot
1679 status collapsed
1680
1681 \begin_layout Plain Layout
1682 Well, usually.
1683  Analyzing the logfile is a tough job, and \SpecialChar LyX
1684  doesn't always go to the right
1685  line.
1686  There are also cases where \SpecialChar LaTeX
1687  reports the error on one line, but the actual
1688  error is earlier.
1689  This is not unlike forgetting a closing brace in a program: You'll get
1690  an error, but only later.
1691 \end_layout
1692
1693 \end_inset
1694
1695
1696 \end_layout
1697
1698 \begin_layout Standard
1699 Some folks also like to look at the log file directly: It is available from
1700  
1701 \begin_inset Flex Noun
1702 status collapsed
1703
1704 \begin_layout Plain Layout
1705 Document\SpecialChar menuseparator
1706 LaTeX
1707 \begin_inset space ~
1708 \end_inset
1709
1710 Log
1711 \end_layout
1712
1713 \end_inset
1714
1715 .
1716  There are some fairly common error messages and warnings.
1717  We'll cover those here.
1718  You should look at a good \SpecialChar LaTeX
1719  book for a complete listing.
1720 \end_layout
1721
1722 \begin_layout Itemize
1723 \begin_inset Flex Code
1724 status collapsed
1725
1726 \begin_layout Plain Layout
1727 LaTeX Warning
1728 \end_layout
1729
1730 \end_inset
1731
1732
1733 \begin_inset Newline newline
1734 \end_inset
1735
1736 Anything beginning with these words is a warning message for the purpose
1737  of 
1738 \begin_inset Quotes eld
1739 \end_inset
1740
1741 debugging
1742 \begin_inset Quotes erd
1743 \end_inset
1744
1745  the \SpecialChar LaTeX
1746  code itself.
1747  You'll get messages like this if you added or changed cross-references
1748  or bibliography entries, in which case, \SpecialChar LaTeX
1749  is trying to tell you that you
1750  need to make another run.
1751  You can by-and-large ignore these.
1752 \end_layout
1753
1754 \begin_layout Itemize
1755 \begin_inset Flex Code
1756 status collapsed
1757
1758 \begin_layout Plain Layout
1759 LaTeX Font Warning
1760 \end_layout
1761
1762 \end_inset
1763
1764
1765 \begin_inset Newline newline
1766 \end_inset
1767
1768 Another warning message, this time about fonts which \SpecialChar LaTeX
1769  couldn't find.
1770  The rest of the message will often say something about a replacement font
1771  that \SpecialChar LaTeX
1772  used.
1773  You can safely ignore these, too.
1774 \end_layout
1775
1776 \begin_layout Itemize
1777 \begin_inset Flex Code
1778 status collapsed
1779
1780 \begin_layout Plain Layout
1781 Overfull 
1782 \backslash
1783 hbox
1784 \end_layout
1785
1786 \end_inset
1787
1788
1789 \begin_inset Newline newline
1790 \end_inset
1791
1792 \SpecialChar LaTeX
1793  absolutely 
1794 \emph on
1795 loves
1796 \emph default
1797  to spew these out.
1798  
1799 \change_inserted -712698321 1501222056
1800 It seems to generate at least one of these messages for just about any document
1801  you write.
1802  
1803 \change_unchanged
1804 They are warnings about lines that were too long and run past the right
1805  margin.
1806
1807 \change_inserted -712698321 1501222913
1808  This happens if \SpecialChar LaTeX
1809  does not find a reasonable way to break the lines (notoriously
1810  often with typewriter font, since this does not allow for automatic break
1811  points).
1812
1813 \change_unchanged
1814  
1815 \change_deleted -712698321 1501221633
1816 Almost always
1817 \change_inserted -712698321 1501221635
1818 In many cases
1819 \change_unchanged
1820 , this is unnoticeable in the final output.
1821  (It can be just a point or two.) 
1822 \change_deleted -712698321 1501221644
1823 Or, only one or two characters extend past the margin
1824 \change_inserted -712698321 1501222092
1825 Sometimes, however, the lines run rather visibly into the margin; something
1826  you will not want to have in your final print
1827 \change_unchanged
1828 .
1829  
1830 \change_deleted -712698321 1501222038
1831 \SpecialChar LaTeX
1832  seems to generate at least one of these messages for just about any document
1833  you write.
1834 \change_unchanged
1835
1836 \begin_inset Newline newline
1837 \end_inset
1838
1839
1840 \change_deleted -712698321 1501222960
1841 You can ignore these messages.
1842  Your eyes will tell you if there's a problem with something that's too
1843  wide; just look at the output.
1844 \begin_inset Foot
1845 status collapsed
1846
1847 \begin_layout Plain Layout
1848 You can also enable the `draft' option in 
1849 \begin_inset Flex Noun
1850 status collapsed
1851
1852 \begin_layout Plain Layout
1853 Document\SpecialChar menuseparator
1854 Settings
1855 \end_layout
1856
1857 \end_inset
1858
1859 , and then \SpecialChar LaTeX
1860  will draw a black box in the margin of lines that are overfull.
1861 \end_layout
1862
1863 \end_inset
1864
1865
1866 \change_inserted -712698321 1501223436
1867 There are several global ways to try to minimize the overfull lines.
1868  Clicking 
1869 \family sans
1870 Enable micro-typographic extensions
1871 \family default
1872  in 
1873 \family sans
1874 Document\SpecialChar menuseparator
1875 Settings\SpecialChar menuseparator
1876 Fonts
1877 \family default
1878  might already improve things a lot.
1879  Furthermore, \SpecialChar LaTeX
1880  code such as the following in 
1881 \family sans
1882 Document\SpecialChar menuseparator
1883 Settings\SpecialChar menuseparator
1884 Preamble
1885 \family default
1886  usually reduces the overfull lines drastically (we use this in the preamble
1887  of this document):
1888 \end_layout
1889
1890 \begin_deeper
1891 \begin_layout LyX-Code
1892
1893 \change_inserted -712698321 1501223447
1894
1895 \backslash
1896 tolerance 1414
1897 \begin_inset Newline newline
1898 \end_inset
1899
1900
1901 \backslash
1902 hbadness 1414
1903 \begin_inset Newline newline
1904 \end_inset
1905
1906
1907 \backslash
1908 emergencystretch 1.5em
1909 \begin_inset Newline newline
1910 \end_inset
1911
1912
1913 \backslash
1914 hfuzz 0.3pt
1915 \end_layout
1916
1917 \begin_layout Standard
1918
1919 \change_inserted -712698321 1501223436
1920 In some cases, however, you eventually have to rewrite the text to get the
1921  line breaking right.
1922 \begin_inset Foot
1923 status collapsed
1924
1925 \begin_layout Plain Layout
1926
1927 \change_inserted -712698321 1501223436
1928 For more information, see 
1929 \begin_inset Flex URL
1930 status open
1931
1932 \begin_layout Plain Layout
1933
1934 \change_inserted -712698321 1501223436
1935
1936 http://www.tex.ac.uk/FAQ-overfull.html
1937 \end_layout
1938
1939 \end_inset
1940
1941
1942 \end_layout
1943
1944 \end_inset
1945
1946
1947 \end_layout
1948
1949 \begin_layout Standard
1950
1951 \change_inserted -712698321 1501223436
1952 In any case, you should check the respective lines, at least for the final
1953  version of your document.
1954  Your eyes will tell you if there's a problem with something that's too
1955  wide.
1956 \begin_inset Foot
1957 status collapsed
1958
1959 \begin_layout Plain Layout
1960
1961 \change_inserted -712698321 1501223436
1962 You can also enable the `draft' option in 
1963 \begin_inset Flex Noun
1964 status collapsed
1965
1966 \begin_layout Plain Layout
1967
1968 \change_inserted -712698321 1501223436
1969 Document\SpecialChar menuseparator
1970 Settings
1971 \end_layout
1972
1973 \end_inset
1974
1975 , and then \SpecialChar LaTeX
1976  will draw a black box in the margin of lines that are overfull.
1977 \end_layout
1978
1979 \end_inset
1980
1981  
1982 \end_layout
1983
1984 \end_deeper
1985 \begin_layout Itemize
1986 \begin_inset Flex Code
1987 status collapsed
1988
1989 \begin_layout Plain Layout
1990 Underfull 
1991 \backslash
1992 hbox
1993 \end_layout
1994
1995 \end_inset
1996
1997
1998 \begin_inset Newline newline
1999 \end_inset
2000
2001 Not quite as common as its cousin.
2002
2003 \change_inserted -712698321 1501223875
2004  This happens again if
2005 \change_unchanged
2006  \SpecialChar LaTeX
2007  
2008 \change_inserted -712698321 1501223913
2009 does not find a reasonable break point and consequently generates too loose
2010  lines.
2011  
2012 \change_deleted -712698321 1501223919
2013 seems to like to print lines that are a bit too wide as opposed to ones
2014  that are a bit too narrow.
2015  We have no idea why.
2016 \change_inserted -712698321 1501223940
2017 As with the overfull lines, you should check if this is a visible problem.
2018 \change_unchanged
2019
2020 \end_layout
2021
2022 \begin_layout Itemize
2023 \begin_inset Flex Code
2024 status collapsed
2025
2026 \begin_layout Plain Layout
2027 Overfull 
2028 \backslash
2029 vbox
2030 \end_layout
2031
2032 \end_inset
2033
2034  and 
2035 \begin_inset Flex Code
2036 status collapsed
2037
2038 \begin_layout Plain Layout
2039 Underfull 
2040 \backslash
2041 vbox
2042 \end_layout
2043
2044 \end_inset
2045
2046
2047 \begin_inset Newline newline
2048 \end_inset
2049
2050 Warnings about troubles breaking the page.
2051  Once again, just look at the output.
2052  Your eyes will tell you where something has gone wrong.
2053 \end_layout
2054
2055 \begin_layout Itemize
2056 \begin_inset Flex Code
2057 status collapsed
2058
2059 \begin_layout Plain Layout
2060 LaTeX Error: File 
2061 \begin_inset Quotes els
2062 \end_inset
2063
2064 Xxxx
2065 \begin_inset Quotes ers
2066 \end_inset
2067
2068  not found
2069 \end_layout
2070
2071 \end_inset
2072
2073
2074 \begin_inset Newline newline
2075 \end_inset
2076
2077 The file 
2078 \begin_inset Quotes eld
2079 \end_inset
2080
2081 Xxxx
2082 \begin_inset Quotes erd
2083 \end_inset
2084
2085  isn't installed on this system.
2086  This usually appears because some package your document needs isn't installed.
2087  If you didn't touch the preamble or didn't use the 
2088 \begin_inset Flex Code
2089 status collapsed
2090
2091 \begin_layout Plain Layout
2092
2093 \backslash
2094 usepackage{}
2095 \end_layout
2096
2097 \end_inset
2098
2099  command, then one of the packages \SpecialChar LyX
2100  tried to load is missing.
2101  Use 
2102 \begin_inset Flex Noun
2103 status collapsed
2104
2105 \begin_layout Plain Layout
2106 Help\SpecialChar menuseparator
2107 \SpecialChar LaTeX
2108  Configuration
2109 \end_layout
2110
2111 \end_inset
2112
2113  to get a list of packages that \SpecialChar LyX
2114  knows about.
2115  This file is updated whenever you reconfigure \SpecialChar LyX
2116  (using 
2117 \begin_inset Flex Noun
2118 status collapsed
2119
2120 \begin_layout Plain Layout
2121 Tools\SpecialChar menuseparator
2122 Reconfigure
2123 \end_layout
2124
2125 \end_inset
2126
2127 ) and tells you which packages have been detected and what they do.
2128 \begin_inset Newline newline
2129 \end_inset
2130
2131 If you did use the 
2132 \begin_inset Flex Code
2133 status collapsed
2134
2135 \begin_layout Plain Layout
2136
2137 \backslash
2138 usepackage{}
2139 \end_layout
2140
2141 \end_inset
2142
2143  command and the package in question isn't installed, then you'll need to
2144  install it yourself.
2145 \end_layout
2146
2147 \begin_layout Itemize
2148 \begin_inset Flex Code
2149 status collapsed
2150
2151 \begin_layout Plain Layout
2152 LaTeX Error: Unknown option
2153 \end_layout
2154
2155 \end_inset
2156
2157
2158 \begin_inset Newline newline
2159 \end_inset
2160
2161 Error messages beginning with this are trying to tell you that you specified
2162  a bad or undefined option to a package.
2163  Check the package's documentation.
2164 \end_layout
2165
2166 \begin_layout Itemize
2167 \begin_inset Flex Code
2168 status collapsed
2169
2170 \begin_layout Plain Layout
2171 Undefined control sequence
2172 \end_layout
2173
2174 \end_inset
2175
2176
2177 \begin_inset Newline newline
2178 \end_inset
2179
2180 If you've inserted \SpecialChar LaTeX
2181  code into your document, but made a typo, you'll get
2182  one of these.
2183  You may have forgotten to load a package.
2184  In any case, this error message usually means that you used an undefined
2185  command.
2186  
2187 \end_layout
2188
2189 \begin_layout Standard
2190 There are other error and warning messages.
2191  Some are self-explanatory.
2192  These are usually \SpecialChar LaTeX
2193  messages.
2194  Others are downright cryptic.
2195  These are usually \SpecialChar TeX
2196  error messages, and we really have 
2197 \emph on
2198 no clue
2199 \emph default
2200  what they mean or how to decipher them.
2201  No-one does.
2202 \end_layout
2203
2204 \begin_layout Standard
2205 There's a general sequence you should follow if you get error messages:
2206 \end_layout
2207
2208 \begin_layout Enumerate
2209 Look at the \SpecialChar LaTeX
2210  code you inserted for typos.
2211 \end_layout
2212
2213 \begin_layout Enumerate
2214 If there are no typos, check that you used the command(s) correctly.
2215 \end_layout
2216
2217 \begin_layout Enumerate
2218 If you get a bunch of error boxes piled up at the very top of the document—and
2219  especially if you see a 
2220 \begin_inset Quotes eld
2221 \end_inset
2222
2223
2224 \begin_inset Flex Code
2225 status collapsed
2226
2227 \begin_layout Plain Layout
2228 Missing 
2229 \backslash
2230 begin{document}
2231 \end_layout
2232
2233 \end_inset
2234
2235
2236 \begin_inset Quotes erd
2237 \end_inset
2238
2239  error—it means that there are errors in the preamble.
2240  Start debugging your preamble.
2241 \end_layout
2242
2243 \begin_layout Enumerate
2244 If you didn't add anything to the preamble and didn't add any \SpecialChar LaTeX
2245  code to the
2246  document, the first suspect is your \SpecialChar LaTeX
2247  distribution itself.
2248  Check for missing packages and install them.
2249 \end_layout
2250
2251 \begin_layout Enumerate
2252 Okay, so there are no missing packages.
2253  Did you use any of the fine-tuning options in \SpecialChar LyX
2254 ? Specifically, did you 
2255 \emph on
2256 misuse
2257 \emph default
2258  any of them, like trying to manually insert lots of 
2259 \begin_inset Flex Code
2260 status collapsed
2261
2262 \begin_layout Plain Layout
2263 Protected
2264 \begin_inset space ~
2265 \end_inset
2266
2267 Blanks
2268 \end_layout
2269
2270 \end_inset
2271
2272
2273 \begin_inset Flex Code
2274 status collapsed
2275
2276 \begin_layout Plain Layout
2277 Linebreaks
2278 \end_layout
2279
2280 \end_inset
2281
2282 , or 
2283 \begin_inset Flex Code
2284 status collapsed
2285
2286 \begin_layout Plain Layout
2287 Pagebreaks
2288 \end_layout
2289
2290 \end_inset
2291
2292 ? Did you try to kludge something together with these instead of using the
2293  appropriate paragraph environment?
2294 \end_layout
2295
2296 \begin_layout Enumerate
2297 All right, you didn't use any of the fine-tuning options, you played by
2298  the rules.
2299  Did you try to pull a fancy maneuver? Did you do something funky inside
2300  a table or an equation, like inserting a graphic into a table cell?
2301 \end_layout
2302
2303 \begin_layout Enumerate
2304 Do you have long sections of text where \SpecialChar LaTeX
2305  cannot find a place to break a
2306  line? By default, \SpecialChar LaTeX
2307  is rather strict about how much extra inter-word spacing
2308  it will add in order to break a line.
2309  Preferably, you should rework the paragraph to avoid the problem.
2310 \end_layout
2311
2312 \begin_layout Enumerate
2313 Did you go overboard with the nesting? \SpecialChar LyX
2314  (currently) doesn't check to make
2315  sure you're in the limits for nesting environments.
2316  If you nested a bunch of environments to the 
2317 \begin_inset Formula $17^{\mathrm{th}}$
2318 \end_inset
2319
2320  level, that's the problem.
2321  (The limit in \SpecialChar LaTeX
2322  is five.)
2323 \end_layout
2324
2325 \begin_layout Enumerate
2326 Okay, you didn't get any error messages, but your output looks awful.
2327  If you have a table or figure that's too wide or long for the page, you
2328  need to:
2329 \end_layout
2330
2331 \begin_deeper
2332 \begin_layout Enumerate
2333 rescale the figure so it fits.
2334 \end_layout
2335
2336 \begin_layout Enumerate
2337 trim down the table so it fits.
2338 \end_layout
2339
2340 \end_deeper
2341 \begin_layout Enumerate
2342 If something else is wrong with the output, and you didn't try to pull anything
2343  fancy or kludge the fine-tuning options, we're not sure what's wrong.
2344 \end_layout
2345
2346 \begin_layout Standard
2347 If all this doesn't help—well, then 
2348 \emph on
2349 perhaps
2350 \emph default
2351  you might have found a bug in \SpecialChar LyX
2352 \SpecialChar ldots
2353 .
2354 \end_layout
2355
2356 \begin_layout Chapter
2357 Supplemental Tools
2358 \end_layout
2359
2360 \begin_layout Section
2361 Customizing Bibliographies with Bib\SpecialChar TeX
2362  or Biblatex
2363 \end_layout
2364
2365 \begin_layout Standard
2366 The most basic information about how to use Bib\SpecialChar TeX
2367  or 
2368 \family sans
2369 Biblatex
2370 \family default
2371  with \SpecialChar LyX
2372  is contained in the section 
2373 \emph on
2374 Bibliography databases
2375 \emph default
2376  of the 
2377 \emph on
2378 User's Guide
2379 \emph default
2380 .
2381  The following subsections explain special bibliography features supported
2382  by \SpecialChar LyX
2383 .
2384 \end_layout
2385
2386 \begin_layout Subsection
2387 Alternative Citation Styles
2388 \end_layout
2389
2390 \begin_layout Standard
2391 Standard Bib\SpecialChar TeX
2392  uses numbers (e.
2393 \begin_inset space \thinspace{}
2394 \end_inset
2395
2396 g.
2397 \begin_inset space \space{}
2398 \end_inset
2399
2400
2401 \begin_inset Quotes eld
2402 \end_inset
2403
2404 [12]
2405 \begin_inset Quotes erd
2406 \end_inset
2407
2408 ) to refer to a cited work.
2409  However, in many scientific disciplines, other citation styles are in use.
2410  The most common one is the author-year style (e.
2411 \begin_inset space \thinspace{}
2412 \end_inset
2413
2414 g.
2415 \begin_inset space \space{}
2416 \end_inset
2417
2418
2419 \begin_inset Quotes eld
2420 \end_inset
2421
2422 Knuth 1984a
2423 \begin_inset Quotes erd
2424 \end_inset
2425
2426 ).
2427  \SpecialChar LyX
2428  supports three packages that provide this style, 
2429 \begin_inset Flex Code
2430 status collapsed
2431
2432 \begin_layout Plain Layout
2433 biblatex
2434 \end_layout
2435
2436 \end_inset
2437
2438
2439 \begin_inset Flex Code
2440 status collapsed
2441
2442 \begin_layout Plain Layout
2443 natbib
2444 \end_layout
2445
2446 \end_inset
2447
2448 , and 
2449 \begin_inset Flex Code
2450 status collapsed
2451
2452 \begin_layout Plain Layout
2453 jurabib
2454 \end_layout
2455
2456 \end_inset
2457
2458 .
2459  Each of these packages has their pros and cons, which cannot be listed
2460  in detail.
2461  If you only want to have simple author-year (or author-numerical) style,
2462  or if you want to use one of the countless style files for 
2463 \begin_inset Flex Code
2464 status collapsed
2465
2466 \begin_layout Plain Layout
2467 natbib
2468 \end_layout
2469
2470 \end_inset
2471
2472 , then the established 
2473 \begin_inset Flex Code
2474 status collapsed
2475
2476 \begin_layout Plain Layout
2477 natbib
2478 \end_layout
2479
2480 \end_inset
2481
2482  package is probably your choice.
2483  If you look for specific citation styles common in law studies, you might
2484  consider the 
2485 \begin_inset Flex Code
2486 status collapsed
2487
2488 \begin_layout Plain Layout
2489 jurabib
2490 \end_layout
2491
2492 \end_inset
2493
2494  package.
2495  If you want to have full control over the formatting or look for advanced
2496  features such as ibidem, footnote citations, full title citations, advanced
2497  date formats (such as 400 BC) or full localization to other languages than
2498  English, you should definitely consider 
2499 \begin_inset Flex Code
2500 status collapsed
2501
2502 \begin_layout Plain Layout
2503 biblatex
2504 \end_layout
2505
2506 \end_inset
2507
2508 , which exceeds all other packages in terms of features, but is also quite
2509  heavy and more resource-hungry.
2510 \end_layout
2511
2512 \begin_layout Standard
2513 The handling of these packages in \SpecialChar LyX
2514  is basically the same.
2515  Go to 
2516 \begin_inset Flex Noun
2517 status collapsed
2518
2519 \begin_layout Plain Layout
2520 Document\SpecialChar menuseparator
2521 Settings
2522 \end_layout
2523
2524 \end_inset
2525
2526  and select under 
2527 \begin_inset Flex Noun
2528 status collapsed
2529
2530 \begin_layout Plain Layout
2531 Bibliography
2532 \end_layout
2533
2534 \end_inset
2535
2536  the 
2537 \begin_inset Flex Noun
2538 status collapsed
2539
2540 \begin_layout Plain Layout
2541 Style Format
2542 \end_layout
2543
2544 \end_inset
2545
2546  
2547 \begin_inset Flex Noun
2548 status collapsed
2549
2550 \begin_layout Plain Layout
2551 Biblatex
2552 \end_layout
2553
2554 \end_inset
2555
2556
2557 \begin_inset Flex Noun
2558 status collapsed
2559
2560 \begin_layout Plain Layout
2561 Biblatex (Natbib mode)
2562 \end_layout
2563
2564 \end_inset
2565
2566
2567 \begin_inset Flex Noun
2568 status collapsed
2569
2570 \begin_layout Plain Layout
2571 Natbib (BibTeX)
2572 \end_layout
2573
2574 \end_inset
2575
2576  or 
2577 \begin_inset Flex Noun
2578 status collapsed
2579
2580 \begin_layout Plain Layout
2581 Jurabib (BibTeX)
2582 \end_layout
2583
2584 \end_inset
2585
2586  (see sec.
2587 \begin_inset space ~
2588 \end_inset
2589
2590 6.5.3 in the User's Guide for more information on these choices).
2591  With all these packages, you will get some extra features in the citation
2592  dialog and you can select the style of the reference (
2593 \begin_inset Quotes eld
2594 \end_inset
2595
2596 Knuth 1984
2597 \begin_inset Quotes erd
2598 \end_inset
2599
2600
2601 \begin_inset Quotes eld
2602 \end_inset
2603
2604 Knuth (1984)
2605 \begin_inset Quotes erd
2606 \end_inset
2607
2608
2609 \begin_inset Quotes eld
2610 \end_inset
2611
2612 Knuth, 1984
2613 \begin_inset Quotes erd
2614 \end_inset
2615
2616
2617 \begin_inset Quotes eld
2618 \end_inset
2619
2620 1984
2621 \begin_inset Quotes erd
2622 \end_inset
2623
2624  etc.).
2625  Note that either package needs specifically designed style files.
2626  They all ship their own, but there are lots of additional style files,
2627  and there is even an interactive style file builder
2628 \begin_inset Foot
2629 status collapsed
2630
2631 \begin_layout Plain Layout
2632 See 
2633 \begin_inset Flex URL
2634 status open
2635
2636 \begin_layout Plain Layout
2637
2638 ftp://ctan.tug.org/tex-archive/macros/latex/contrib/custom-bib/
2639 \end_layout
2640
2641 \end_inset
2642
2643
2644 \end_layout
2645
2646 \end_inset
2647
2648  for 
2649 \begin_inset Flex Code
2650 status collapsed
2651
2652 \begin_layout Plain Layout
2653 natbib
2654 \end_layout
2655
2656 \end_inset
2657
2658 .
2659 \end_layout
2660
2661 \begin_layout Subsection
2662 Subdivided Bibliographies
2663 \end_layout
2664
2665 \begin_layout Standard
2666 Sometimes you might need to divide your bibliography into several sections.
2667  If you are for instance a historian, the possibility to separate sources
2668  and scientific works is most likely a 
2669 \begin_inset Quotes eld
2670 \end_inset
2671
2672 must have
2673 \begin_inset Quotes erd
2674 \end_inset
2675
2676 .
2677  Unfortunately, Bib\SpecialChar TeX
2678  itself does not allow you to do this.
2679  But with the help of some \SpecialChar LaTeX
2680  packages, Bib\SpecialChar TeX
2681  can be extended to fit your needs.
2682 \end_layout
2683
2684 \begin_layout Standard
2685 \SpecialChar LyX
2686  provides native support for one of these packages, 
2687 \family typewriter
2688 bibtopic
2689 \family default
2690 .
2691 \begin_inset Foot
2692 status collapsed
2693
2694 \begin_layout Plain Layout
2695 Available from 
2696 \begin_inset Flex URL
2697 status open
2698
2699 \begin_layout Plain Layout
2700
2701 ftp://ctan.tug.org/tex-archive/macros/latex/contrib/bibtopic/
2702 \end_layout
2703
2704 \end_inset
2705
2706
2707 \end_layout
2708
2709 \end_inset
2710
2711  The advantage of this package (compared to other packages such as 
2712 \family typewriter
2713 multibib
2714 \family default
2715 ) is that you don't need to define new citation commands.
2716  Instead, you need to prepare different bibliographic databases which include
2717  the entries for the different sections of the bibliography.
2718  For example: If you want to divide your bibliography into the sections
2719  
2720 \begin_inset Quotes eld
2721 \end_inset
2722
2723 Sources
2724 \begin_inset Quotes erd
2725 \end_inset
2726
2727  and 
2728 \begin_inset Quotes eld
2729 \end_inset
2730
2731 Scientific works
2732 \begin_inset Quotes erd
2733 \end_inset
2734
2735 , you first need to create two bibliographic databases, e.
2736 \begin_inset space \thinspace{}
2737 \end_inset
2738
2739 g.
2740 \begin_inset space \space{}
2741 \end_inset
2742
2743
2744 \begin_inset Flex Code
2745 status collapsed
2746
2747 \begin_layout Plain Layout
2748 sources.bib
2749 \end_layout
2750
2751 \end_inset
2752
2753  and 
2754 \begin_inset Flex Code
2755 status collapsed
2756
2757 \begin_layout Plain Layout
2758 scientific.bib
2759 \end_layout
2760
2761 \end_inset
2762
2763 .
2764  
2765 \end_layout
2766
2767 \begin_layout Standard
2768 Go to 
2769 \begin_inset Flex Noun
2770 status collapsed
2771
2772 \begin_layout Plain Layout
2773 Document\SpecialChar menuseparator
2774 Settings
2775 \end_layout
2776
2777 \end_inset
2778
2779  and check under 
2780 \begin_inset Flex Noun
2781 status collapsed
2782
2783 \begin_layout Plain Layout
2784 Bibliography
2785 \end_layout
2786
2787 \end_inset
2788
2789  the option 
2790 \begin_inset Flex Noun
2791 status collapsed
2792
2793 \begin_layout Plain Layout
2794 Subdivided bibliography
2795 \end_layout
2796
2797 \end_inset
2798
2799 .
2800  Now you can insert multiple Bib\SpecialChar TeX
2801  bibliographies, one for each section of
2802  your bibliography.
2803  Returning to our example: Insert the Bib\SpecialChar TeX
2804  bibliography 
2805 \begin_inset Flex Code
2806 status collapsed
2807
2808 \begin_layout Plain Layout
2809 sources.bib
2810 \end_layout
2811
2812 \end_inset
2813
2814  and a second one for the database 
2815 \begin_inset Flex Code
2816 status collapsed
2817
2818 \begin_layout Plain Layout
2819 scientific.bib
2820 \end_layout
2821
2822 \end_inset
2823
2824 .
2825  You are free to use the same or different styles for each section.
2826  Additionally, you can choose if the bibliography section should contain
2827  
2828 \begin_inset Quotes eld
2829 \end_inset
2830
2831 all cited references
2832 \begin_inset Quotes erd
2833 \end_inset
2834
2835  of the specified database(s) (which is the default), 
2836 \begin_inset Quotes eld
2837 \end_inset
2838
2839 all uncited references
2840 \begin_inset Quotes erd
2841 \end_inset
2842
2843  or even 
2844 \begin_inset Quotes eld
2845 \end_inset
2846
2847 all references
2848 \begin_inset Quotes erd
2849 \end_inset
2850
2851 .
2852  This might be useful if you would like to separate your bibliography into
2853  three sections: 
2854 \begin_inset Quotes eld
2855 \end_inset
2856
2857 Cited sources
2858 \begin_inset Quotes erd
2859 \end_inset
2860
2861
2862 \begin_inset Quotes eld
2863 \end_inset
2864
2865 Uncited sources
2866 \begin_inset Quotes erd
2867 \end_inset
2868
2869 , and 
2870 \begin_inset Quotes eld
2871 \end_inset
2872
2873 Scientific works
2874 \begin_inset Quotes erd
2875 \end_inset
2876
2877 .
2878  The titles for the sections can be added as ordinary sections or subsections.
2879  Since 
2880 \begin_inset Flex Code
2881 status collapsed
2882
2883 \begin_layout Plain Layout
2884 bibtopic
2885 \end_layout
2886
2887 \end_inset
2888
2889  removes the bibliography title, you have to manually re-add that, too (as
2890  a chapter* or section*, for instance).
2891 \end_layout
2892
2893 \begin_layout Standard
2894 With 
2895 \family sans
2896 Biblatex
2897 \family default
2898 , the procedure is a bit different.
2899  Since 
2900 \family typewriter
2901 bibtopic
2902 \family default
2903  does not work with 
2904 \family sans
2905 Biblatex
2906 \family default
2907 , the aforementioned 
2908 \begin_inset Flex Noun
2909 status collapsed
2910
2911 \begin_layout Plain Layout
2912 Subdivided bibliography
2913 \end_layout
2914
2915 \end_inset
2916
2917  option is disabled if you use 
2918 \family sans
2919 Biblatex
2920 \family default
2921 .
2922  However, 
2923 \family sans
2924 Biblatex
2925 \family default
2926  provides its own means to generate subdivided bibliographies.
2927  You can either add keywords to bibliography entries via the 
2928 \begin_inset Flex Code
2929 status collapsed
2930
2931 \begin_layout Plain Layout
2932 keywords
2933 \end_layout
2934
2935 \end_inset
2936
2937  entry option and then filter bibliography sections by keyword (by adding
2938  
2939 \begin_inset Flex Code
2940 status collapsed
2941
2942 \begin_layout Plain Layout
2943 keyword=mykeyword
2944 \end_layout
2945
2946 \end_inset
2947
2948  to the 
2949 \begin_inset Flex Noun
2950 status collapsed
2951
2952 \begin_layout Plain Layout
2953 Options
2954 \end_layout
2955
2956 \end_inset
2957
2958  field of the dialog that opens if you right-click on the 
2959 \begin_inset Flex Noun
2960 status collapsed
2961
2962 \begin_layout Plain Layout
2963 Biblatex Generated Bibliography
2964 \end_layout
2965
2966 \end_inset
2967
2968  button), or you can filter by entry types (such as 
2969 \emph on
2970 book
2971 \emph default
2972  or 
2973 \emph on
2974 article
2975 \emph default
2976 ) by entering e.
2977 \begin_inset space \thinspace{}
2978 \end_inset
2979
2980 g.
2981  
2982 \begin_inset Flex Code
2983 status collapsed
2984
2985 \begin_layout Plain Layout
2986 type=book
2987 \end_layout
2988
2989 \end_inset
2990
2991  or 
2992 \begin_inset Flex Code
2993 status collapsed
2994
2995 \begin_layout Plain Layout
2996 nottype=collection
2997 \end_layout
2998
2999 \end_inset
3000
3001  to the mentioned 
3002 \begin_inset Flex Noun
3003 status collapsed
3004
3005 \begin_layout Plain Layout
3006 Options
3007 \end_layout
3008
3009 \end_inset
3010
3011  field, or you can create so-called 
3012 \begin_inset Quotes eld
3013 \end_inset
3014
3015 Bibliography Categories
3016 \begin_inset Quotes erd
3017 \end_inset
3018
3019  to which you can assign individual entries.
3020  Please refer to the Biblatex manual, section 
3021 \emph on
3022 Subdivided Bibliographies
3023 \emph default
3024 , for details.
3025 \end_layout
3026
3027 \begin_layout Subsection
3028 Multiple Bibliographies
3029 \change_inserted -712698321 1501227893
3030
3031 \begin_inset CommandInset label
3032 LatexCommand label
3033 name "subsec:Multiple-Bibliographies"
3034
3035 \end_inset
3036
3037
3038 \change_unchanged
3039
3040 \end_layout
3041
3042 \begin_layout Standard
3043 Multiple bibliographies, e.
3044 \begin_inset space \thinspace{}
3045 \end_inset
3046
3047 g.
3048 \begin_inset space \space{}
3049 \end_inset
3050
3051 a bibliography for each part, chapter, section, subsection or child (sub-documen
3052 t) of the document, are also supported by \SpecialChar LyX
3053 .
3054  In order to enable it, go to 
3055 \begin_inset Flex Noun
3056 status collapsed
3057
3058 \begin_layout Plain Layout
3059 Document\SpecialChar menuseparator
3060 Settings\SpecialChar menuseparator
3061 Bibliography
3062 \end_layout
3063
3064 \end_inset
3065
3066  and select the relevant unit (e.
3067 \begin_inset space \thinspace{}
3068 \end_inset
3069
3070 g., 
3071 \begin_inset Quotes eld
3072 \end_inset
3073
3074 per section
3075 \begin_inset Quotes erd
3076 \end_inset
3077
3078 ) in the 
3079 \begin_inset Flex Noun
3080 status collapsed
3081
3082 \begin_layout Plain Layout
3083 Multiple Bibliographies
3084 \end_layout
3085
3086 \end_inset
3087
3088  combo box.
3089  Then add a Bib(la)\SpecialChar TeX
3090  bibliography to each unit (e.
3091 \begin_inset space \thinspace{}
3092 \end_inset
3093
3094 g., section) of your document.
3095  In the output, a separate bibliography, containing only the references
3096  done in the current unit is generated.
3097 \end_layout
3098
3099 \begin_layout Standard
3100 If you use Bib\SpecialChar TeX
3101 , either the 
3102 \begin_inset Flex Code
3103 status collapsed
3104
3105 \begin_layout Plain Layout
3106 chapterbib
3107 \end_layout
3108
3109 \end_inset
3110
3111  o
3112 \change_deleted -712698321 1501067466
3113 f
3114 \change_inserted -712698321 1501067466
3115 r
3116 \change_unchanged
3117  the 
3118 \begin_inset Flex Code
3119 status collapsed
3120
3121 \begin_layout Plain Layout
3122 bibtopic
3123 \end_layout
3124
3125 \end_inset
3126
3127  package is used to create multiple bibliographies.
3128  The former package is used if you select 
3129 \begin_inset Quotes eld
3130 \end_inset
3131
3132 per child document
3133 \begin_inset Quotes erd
3134 \end_inset
3135
3136  and do 
3137 \emph on
3138 not
3139 \emph default
3140  check 
3141 \begin_inset Flex Noun
3142 status collapsed
3143
3144 \begin_layout Plain Layout
3145 Sectioned Bibliography
3146 \end_layout
3147
3148 \end_inset
3149
3150 .
3151  In all other cases, 
3152 \begin_inset Flex Code
3153 status collapsed
3154
3155 \begin_layout Plain Layout
3156 bibtopic
3157 \end_layout
3158
3159 \end_inset
3160
3161  is used.
3162 \begin_inset Foot
3163 status collapsed
3164
3165 \begin_layout Plain Layout
3166 An alternative approach, if you are willing to use some 
3167 \begin_inset Flex Noun
3168 status collapsed
3169
3170 \begin_layout Plain Layout
3171 \SpecialChar TeX
3172  Code
3173 \end_layout
3174
3175 \end_inset
3176
3177  (see section
3178 \begin_inset space ~
3179 \end_inset
3180
3181
3182 \begin_inset CommandInset ref
3183 LatexCommand ref
3184 reference "sec:Inserting-TeX-Code"
3185
3186 \end_inset
3187
3188 ), is to use the 
3189 \begin_inset Flex Code
3190 status collapsed
3191
3192 \begin_layout Plain Layout
3193 bibunits
3194 \end_layout
3195
3196 \end_inset
3197
3198  package.
3199 \end_layout
3200
3201 \end_inset
3202
3203  If 
3204 \begin_inset Flex Code
3205 status collapsed
3206
3207 \begin_layout Plain Layout
3208 bibtopic
3209 \end_layout
3210
3211 \end_inset
3212
3213  is used, \SpecialChar LyX
3214  encloses the specified units in 
3215 \begin_inset Flex Code
3216 status collapsed
3217
3218 \begin_layout Plain Layout
3219 bibtopic
3220 \end_layout
3221
3222 \end_inset
3223
3224 's 
3225 \begin_inset Flex Code
3226 status collapsed
3227
3228 \begin_layout Plain Layout
3229
3230 \backslash
3231 begin{btUnit}
3232 \end_layout
3233
3234 \end_inset
3235
3236  and 
3237 \begin_inset Flex Code
3238 status collapsed
3239
3240 \begin_layout Plain Layout
3241
3242 \backslash
3243 end{btUnit}
3244 \end_layout
3245
3246 \end_inset
3247
3248  in order to create the units.
3249  Note that this approach has some limitations.
3250  First, every citation reference has to be inside some 
3251 \begin_inset Flex Code
3252 status collapsed
3253
3254 \begin_layout Plain Layout
3255 btUnit
3256 \end_layout
3257
3258 \end_inset
3259
3260 .
3261  So citations outside a defined unit (e.
3262 \begin_inset space \thinspace{}
3263 \end_inset
3264
3265 g., before the first section if you use 
3266 \begin_inset Quotes eld
3267 \end_inset
3268
3269 by section
3270 \begin_inset Quotes erd
3271 \end_inset
3272
3273 ) will appear as 
3274 \begin_inset Quotes eld
3275 \end_inset
3276
3277 ???
3278 \begin_inset Quotes erd
3279 \end_inset
3280
3281 .
3282  You can also create your own units by entering 
3283 \begin_inset Flex Code
3284 status collapsed
3285
3286 \begin_layout Plain Layout
3287
3288 \backslash
3289 begin{btUnit}
3290 \end_layout
3291
3292 \end_inset
3293
3294  and 
3295 \begin_inset Flex Code
3296 status collapsed
3297
3298 \begin_layout Plain Layout
3299
3300 \backslash
3301 end{btUnit}
3302 \end_layout
3303
3304 \end_inset
3305
3306  as \SpecialChar TeX
3307  code (for instance to work around the mentioned limitation).
3308  Note, though, that 
3309 \begin_inset Flex Code
3310 status collapsed
3311
3312 \begin_layout Plain Layout
3313 btUnit
3314 \end_layout
3315
3316 \end_inset
3317
3318 s cannot be nested.
3319  A second limitation is that 
3320 \begin_inset Flex Code
3321 status collapsed
3322
3323 \begin_layout Plain Layout
3324 bibtopic
3325 \end_layout
3326
3327 \end_inset
3328
3329  always processes all references of a bibliography database, even if they
3330  are not cited.
3331  This can result in odd labels (e.
3332 \begin_inset space \thinspace{}
3333 \end_inset
3334
3335 g.
3336  
3337 \begin_inset Quotes eld
3338 \end_inset
3339
3340 Miller 2014b
3341 \begin_inset Quotes erd
3342 \end_inset
3343
3344  if two works of this author from 2014 are in the database, even if only
3345  one is cited).
3346 \end_layout
3347
3348 \begin_layout Standard
3349 If you use 
3350 \family sans
3351 Biblatex
3352 \family default
3353 , the 
3354 \begin_inset Flex Code
3355 status collapsed
3356
3357 \begin_layout Plain Layout
3358 refsection
3359 \end_layout
3360
3361 \end_inset
3362
3363  option is used instead.
3364  If you need specific units, you can start them with the \SpecialChar TeX
3365  code 
3366 \begin_inset Flex Code
3367 status collapsed
3368
3369 \begin_layout Plain Layout
3370
3371 \backslash
3372 newrefsection
3373 \end_layout
3374
3375 \end_inset
3376
3377  or 
3378 \begin_inset Flex Code
3379 status collapsed
3380
3381 \begin_layout Plain Layout
3382
3383 \backslash
3384 newrefsegment
3385 \end_layout
3386
3387 \end_inset
3388
3389 , respectively.
3390  If you also want to control the end of the unit, use the environment 
3391 \begin_inset Flex Code
3392 status collapsed
3393
3394 \begin_layout Plain Layout
3395
3396 \backslash
3397 begin{refsection}
3398 \end_layout
3399
3400 \end_inset
3401
3402  \SpecialChar ldots
3403  
3404 \begin_inset Flex Code
3405 status collapsed
3406
3407 \begin_layout Plain Layout
3408
3409 \backslash
3410 end{refsection}
3411 \end_layout
3412
3413 \end_inset
3414
3415  instead.
3416  Note, though, that 
3417 \begin_inset Flex Code
3418 status collapsed
3419
3420 \begin_layout Plain Layout
3421 refsection
3422 \end_layout
3423
3424 \end_inset
3425
3426 s cannot be nested.
3427  In addition to the individual bibliography of the current unit, 
3428 \family sans
3429 Biblatex
3430 \family default
3431  also provides an easy way to output all bibliographies, subsequently, at
3432  one place (e.
3433 \begin_inset space \thinspace{}
3434 \end_inset
3435
3436 g., at the end of the document).
3437  Select 
3438 \begin_inset Quotes eld
3439 \end_inset
3440
3441 all reference units
3442 \begin_inset Quotes erd
3443 \end_inset
3444
3445  from the Content combo box of the Bib(la)TeX inset dialog in order to achieve
3446  this.
3447  Please refer to the 
3448 \family sans
3449 Biblatex
3450 \family default
3451  manual for more information on this topic.
3452 \end_layout
3453
3454 \begin_layout Section
3455 Multipart Documents
3456 \end_layout
3457
3458 \begin_layout Subsection
3459 General Operation
3460 \end_layout
3461
3462 \begin_layout Standard
3463 When you are working on a large file with many sections, it is often convenient
3464  to break up the document into several files, or perhaps you have something
3465  where a table may change from time to time, but the preceding text does
3466  not.
3467  In these cases, you should seriously consider using multipart documents.
3468  For example, scientific papers often have five major sections: the introduction
3469 , observations, results, discussion, and conclusion.
3470  Each of these could be its own separate \SpecialChar LyX
3471  file, with one 
3472 \begin_inset Quotes eld
3473 \end_inset
3474
3475 master
3476 \begin_inset Quotes erd
3477 \end_inset
3478
3479  file which contains the title, authors, abstract, references, etc., plus
3480  the five included files.
3481  It is important to note that each of these files is a full \SpecialChar LyX
3482  file which
3483  can be formatted and printed on its own, as well as included in a master
3484  file.
3485  Each of these files must have the same document class, however—don't attempt
3486  to mix book classes with article classes.
3487  You may also include \SpecialChar LaTeX
3488  files; however, these files must not have their own
3489  preamble (i.
3490 \begin_inset space \thinspace{}
3491 \end_inset
3492
3493 e.
3494 \begin_inset space \space{}
3495 \end_inset
3496
3497 everything up to and including the 
3498 \begin_inset Flex Code
3499 status collapsed
3500
3501 \begin_layout Plain Layout
3502
3503 \backslash
3504 begin{document}
3505 \end_layout
3506
3507 \end_inset
3508
3509  line as well as the 
3510 \begin_inset Flex Code
3511 status collapsed
3512
3513 \begin_layout Plain Layout
3514
3515 \backslash
3516 end{document}
3517 \end_layout
3518
3519 \end_inset
3520
3521  line must be deleted) or else errors will be generated when you try to
3522  make a DVI file.
3523 \end_layout
3524
3525 \begin_layout Standard
3526 \SpecialChar LyX
3527  allows you to include files quite easily with 
3528 \begin_inset Flex Noun
3529 status collapsed
3530
3531 \begin_layout Plain Layout
3532 Insert\SpecialChar menuseparator
3533 Chi
3534 \change_deleted -712698321 1501147443
3535 I
3536 \change_inserted -712698321 1501147443
3537 l
3538 \change_unchanged
3539 d
3540 \begin_inset space ~
3541 \end_inset
3542
3543 Document
3544 \end_layout
3545
3546 \end_inset
3547
3548 .
3549  When you click on this selection a small box is inserted into the file
3550  at the current cursor location.
3551  Clicking on the box raises a dialog which allows you to select the file
3552  to be included, and the method of its inclusion.
3553  
3554 \end_layout
3555
3556 \begin_layout Standard
3557 The file selection box should by now be obvious.
3558  The three inclusion methods are 
3559 \begin_inset Quotes eld
3560 \end_inset
3561
3562 include
3563 \begin_inset Quotes erd
3564 \end_inset
3565
3566
3567 \begin_inset Quotes eld
3568 \end_inset
3569
3570 input
3571 \begin_inset Quotes erd
3572 \end_inset
3573
3574 , and 
3575 \begin_inset Quotes eld
3576 \end_inset
3577
3578 verbatim
3579 \begin_inset Quotes erd
3580 \end_inset
3581
3582 .
3583  The 
3584 \change_deleted -712698321 1501225702
3585 difference between
3586 \change_inserted -712698321 1501225703
3587 methods
3588 \change_unchanged
3589  
3590 \begin_inset Quotes eld
3591 \end_inset
3592
3593 include
3594 \begin_inset Quotes erd
3595 \end_inset
3596
3597  and 
3598 \begin_inset Quotes eld
3599 \end_inset
3600
3601 input
3602 \begin_inset Quotes erd
3603 \end_inset
3604
3605  
3606 \change_deleted -712698321 1501225710
3607 is really only meaningful to \SpecialChar LaTeX
3608 perts
3609 \change_inserted -712698321 1501225747
3610 are similar in many ways, but there are also some notable differences:
3611 \end_layout
3612
3613 \begin_layout Enumerate
3614
3615 \change_deleted -712698321 1501225754
3616 , but the practical difference is that f
3617 \change_inserted -712698321 1501225754
3618 F
3619 \change_unchanged
3620 iles that are 
3621 \begin_inset Quotes eld
3622 \end_inset
3623
3624 included
3625 \begin_inset Quotes erd
3626 \end_inset
3627
3628  are typeset beginning on a new page, while files that are 
3629 \begin_inset Quotes eld
3630 \end_inset
3631
3632 inputted
3633 \begin_inset Quotes erd
3634 \end_inset
3635
3636  are typeset starting on the current page.
3637 \change_inserted -712698321 1501225760
3638
3639 \end_layout
3640
3641 \begin_layout Enumerate
3642
3643 \change_inserted -712698321 1501225830
3644 \begin_inset Quotes eld
3645 \end_inset
3646
3647 Included
3648 \begin_inset Quotes erd
3649 \end_inset
3650
3651  files cannot themselves 
3652 \begin_inset Quotes eld
3653 \end_inset
3654
3655 include
3656 \begin_inset Quotes erd
3657 \end_inset
3658
3659  further files (
3660 \begin_inset Quotes eld
3661 \end_inset
3662
3663 grandchilds
3664 \begin_inset Quotes erd
3665 \end_inset
3666
3667 ).
3668  With 
3669 \begin_inset Quotes eld
3670 \end_inset
3671
3672 input
3673 \begin_inset Quotes erd
3674 \end_inset
3675
3676 , on the other hand, infinite sub-inputting is possible.
3677 \end_layout
3678
3679 \begin_layout Enumerate
3680
3681 \change_inserted -712698321 1501226017
3682 \begin_inset Quotes eld
3683 \end_inset
3684
3685 Include
3686 \begin_inset Quotes erd
3687 \end_inset
3688
3689  allow for the output of only selected 
3690 \begin_inset Quotes eld
3691 \end_inset
3692
3693 included
3694 \begin_inset Quotes erd
3695 \end_inset
3696
3697  files, while maintaining the actual counters (pagination etc.) and references
3698  (please refer to the section 
3699 \emph on
3700 Child
3701 \begin_inset space ~
3702 \end_inset
3703
3704 Documents
3705 \emph default
3706  of the 
3707 \emph on
3708 Embedded
3709 \begin_inset space ~
3710 \end_inset
3711
3712 Objects
3713 \emph default
3714  manual for details).
3715 \change_unchanged
3716
3717 \end_layout
3718
3719 \begin_layout Standard
3720
3721 \change_inserted -712698321 1501225947
3722 Hence, 
3723 \begin_inset Quotes eld
3724 \end_inset
3725
3726 include
3727 \begin_inset Quotes erd
3728 \end_inset
3729
3730  is the preferred method for chapters that are outsourced to child documents,
3731  while 
3732 \begin_inset Quotes eld
3733 \end_inset
3734
3735 input
3736 \begin_inset Quotes erd
3737 \end_inset
3738
3739  is more suitable for arbitrary file inheritance.
3740 \end_layout
3741
3742 \begin_layout Standard
3743
3744 \change_deleted -712698321 1501226562
3745 Generally, the master file is converted into a full \SpecialChar LaTeX
3746  file before typesetting,
3747  while the included files are converted to \SpecialChar LaTeX
3748  files that do not have all the
3749  preamble information.
3750 \change_unchanged
3751
3752 \end_layout
3753
3754 \begin_layout Standard
3755
3756 \begin_inset Quotes eld
3757 \end_inset
3758
3759 verbatim
3760 \begin_inset Quotes erd
3761 \end_inset
3762
3763  included file allows you to include a file typeset exactly as it appears
3764  in the file, i.
3765 \begin_inset space \thinspace{}
3766 \end_inset
3767
3768 e.
3769 \begin_inset space \space{}
3770 \end_inset
3771
3772 in 
3773 \begin_inset Flex Code
3774 status collapsed
3775
3776 \begin_layout Plain Layout
3777 verbatim
3778 \end_layout
3779
3780 \end_inset
3781
3782  mode, with the characters set in a fixed-width typewriter font.
3783  Normally, spaces in this file are invisible, though two consecutive spaces
3784  are conserved, unlike \SpecialChar LyX
3785 's normal treatment of spaces.
3786  However, setting the 
3787 \begin_inset Flex Noun
3788 status collapsed
3789
3790 \begin_layout Plain Layout
3791 Mark
3792 \begin_inset space ~
3793 \end_inset
3794
3795 spaces
3796 \begin_inset space ~
3797 \end_inset
3798
3799 in
3800 \begin_inset space ~
3801 \end_inset
3802
3803 output
3804 \end_layout
3805
3806 \end_inset
3807
3808  checkbox typesets a mark to unambiguously define the presence of a space.
3809  
3810 \change_inserted -712698321 1501226563
3811
3812 \end_layout
3813
3814 \begin_layout Standard
3815
3816 \change_inserted -712698321 1501226564
3817 Generally, the master file is converted into a full \SpecialChar LaTeX
3818  file before typesetting,
3819  while the included files are converted to \SpecialChar LaTeX
3820  files that do not have all the
3821  preamble information.
3822 \change_unchanged
3823
3824 \end_layout
3825
3826 \begin_layout Subsection
3827 Cross-References Between Files
3828 \end_layout
3829
3830 \begin_layout Standard
3831 \begin_inset Box Shadowbox
3832 position "t"
3833 hor_pos "c"
3834 has_inner_box 1
3835 inner_pos "t"
3836 use_parbox 0
3837 use_makebox 0
3838 width "100col%"
3839 special "none"
3840 height "1in"
3841 height_special "totalheight"
3842 thickness "0.4pt"
3843 separation "3pt"
3844 shadowsize "4pt"
3845 framecolor "black"
3846 backgroundcolor "none"
3847 status open
3848
3849 \begin_layout Plain Layout
3850 This section is somewhat out of date.
3851  Need to describe default master documents and how children are opened when
3852  the master is.
3853  [[FIXME]]
3854 \end_layout
3855
3856 \end_inset
3857
3858
3859 \end_layout
3860
3861 \begin_layout Standard
3862 It is possible to set up cross-references between the different files.
3863  First, open all the files in question: let's call them A and B in a two
3864  file example, where B is included in A.
3865  Let's say you insert a label in A, then want to reference it in B.
3866  Open the cross-reference dialog whilst in document B, and you can select
3867  the 
3868 \begin_inset Quotes eld
3869 \end_inset
3870
3871 buffer
3872 \begin_inset Quotes erd
3873 \end_inset
3874
3875  to use.
3876 \end_layout
3877
3878 \begin_layout Subsection
3879 Bibliography Lists in all Subdocuments
3880 \end_layout
3881
3882 \begin_layout Standard
3883
3884 \change_deleted -712698321 1501227275
3885 \begin_inset Box Frameless
3886 position "t"
3887 hor_pos "c"
3888 has_inner_box 1
3889 inner_pos "t"
3890 use_parbox 0
3891 use_makebox 0
3892 width "100col%"
3893 special "none"
3894 height "1in"
3895 height_special "totalheight"
3896 thickness "0.4pt"
3897 separation "3pt"
3898 shadowsize "4pt"
3899 framecolor "black"
3900 backgroundcolor "none"
3901 status open
3902
3903 \begin_layout Plain Layout
3904 This section also needs updating.
3905  There is now material about this on the wiki, and it could be copied here.
3906 \end_layout
3907
3908 \end_inset
3909
3910
3911 \change_unchanged
3912
3913 \end_layout
3914
3915 \begin_layout Standard
3916
3917 \change_inserted -712698321 1501226979
3918 If you work with child documents, you might want to have only one main bibliogra
3919 phy at the end, but still be able to have a selected bibliography for the
3920  child if you output it on its own.
3921  Here is how to achieve this.
3922 \end_layout
3923
3924 \begin_layout Standard
3925
3926 \change_inserted -712698321 1501227105
3927 For the main document, you just insert a bibliography inset at the place
3928  where the main bibliography has to appear (within the master file or within
3929  a child).
3930  If the bibliography inset is in the master file, the references will be
3931  inherited by all children, so they are available in the citation dialog
3932  within each child.
3933 \end_layout
3934
3935 \begin_layout Standard
3936
3937 \change_inserted -712698321 1501227910
3938 For child-specific bibliographies, insert bibliography insets within the
3939  child documents, at the place where the bibliography should appear when
3940  the child is compiled separately.
3941  However, the trick is to insert them into a branch (
3942 \family sans
3943 Insert\SpecialChar menuseparator
3944 Branch\SpecialChar menuseparator
3945 Insert New Branch...
3946 \family default
3947 ), e.
3948 \begin_inset space \thinspace{}
3949 \end_inset
3950
3951 g.
3952  called 
3953 \begin_inset Quotes eld
3954 \end_inset
3955
3956 Childonly
3957 \begin_inset Quotes erd
3958 \end_inset
3959
3960 .
3961  Within the children, activate the branch (
3962 \family sans
3963 Document\SpecialChar menuseparator
3964 Settings...\SpecialChar menuseparator
3965 Branches
3966 \family default
3967 ).
3968  Within the master, deactivate the branch (
3969 \family sans
3970 Document\SpecialChar menuseparator
3971 Settings...\SpecialChar menuseparator
3972 Branches
3973 \family default
3974 ).
3975  Now the child's bibliography will be ignored by the master, but considered
3976  by the child.
3977 \end_layout
3978
3979 \begin_layout Standard
3980
3981 \change_inserted -712698321 1501228082
3982 If you need multiple bibliographies (e.
3983 \begin_inset space \thinspace{}
3984 \end_inset
3985
3986 g., one per child in the 
3987 \emph on
3988 main document
3989 \emph default
3990 ), please refer to sec.
3991 \begin_inset space ~
3992 \end_inset
3993
3994
3995 \begin_inset CommandInset ref
3996 LatexCommand ref
3997 reference "subsec:Multiple-Bibliographies"
3998
3999 \end_inset
4000
4001 .
4002 \change_unchanged
4003
4004 \end_layout
4005
4006 \begin_layout Standard
4007
4008 \change_deleted -712698321 1501227257
4009 Copy the bibliography list with all entries to all subdocuments and transform
4010  them to a comment.
4011  This way \SpecialChar LyX
4012  will find the 
4013 \begin_inset Flex Code
4014 status collapsed
4015
4016 \begin_layout Plain Layout
4017 .bib
4018 \end_layout
4019
4020 \end_inset
4021
4022 -files and you can easily insert references without making the bibliography
4023  list visible.
4024 \end_layout
4025
4026 \begin_layout Standard
4027
4028 \change_deleted -712698321 1501227257
4029 As the bibliography list is in a comment, \SpecialChar LaTeX
4030  won't use it and the references
4031  will look like this: [?], instead of like this: [1].
4032  One solution is to use the \SpecialChar LaTeX
4033 -package 
4034 \begin_inset Flex Code
4035 status collapsed
4036
4037 \begin_layout Plain Layout
4038 comment
4039 \end_layout
4040
4041 \end_inset
4042
4043  that will only include comments by processing the files separately.
4044  To do this, add in the \SpecialChar LaTeX
4045  preamble of every subdocument the following:
4046 \end_layout
4047
4048 \begin_layout LyX-Code
4049
4050 \change_deleted -712698321 1501227257
4051
4052 \backslash
4053 usepackage{comment}
4054 \end_layout
4055
4056 \begin_layout LyX-Code
4057
4058 \change_deleted -712698321 1501227257
4059
4060 \backslash
4061 includecomment{comment}
4062 \end_layout
4063
4064 \begin_layout Standard
4065
4066 \change_deleted -712698321 1501227257
4067 See also 
4068 \begin_inset Flex URL
4069 status open
4070
4071 \begin_layout Plain Layout
4072
4073 http://wiki.lyx.org/FAQ/Unsorted#toc31
4074 \end_layout
4075
4076 \end_inset
4077
4078 .
4079 \change_unchanged
4080
4081 \end_layout
4082
4083 \begin_layout Section
4084 \SpecialChar LyX
4085  Archives
4086 \end_layout
4087
4088 \begin_layout Standard
4089 Users sometimes need to be able to 
4090 \begin_inset Quotes eld
4091 \end_inset
4092
4093 bundle
4094 \begin_inset Quotes erd
4095 \end_inset
4096
4097  a \SpecialChar LyX
4098  file together with all the images (and other files) on which it depends,
4099  either for sending to a publisher or for sharing with a co-author.
4100  \SpecialChar LyX
4101  2.0 includes a Python script (
4102 \begin_inset Flex Code
4103 status collapsed
4104
4105 \begin_layout Plain Layout
4106 lyxpak.py
4107 \end_layout
4108
4109 \end_inset
4110
4111 ) that automates this process.
4112  To use it, you must have either the 
4113 \begin_inset Flex Code
4114 status collapsed
4115
4116 \begin_layout Plain Layout
4117 zipfile
4118 \end_layout
4119
4120 \end_inset
4121
4122  or 
4123 \begin_inset Flex Code
4124 status collapsed
4125
4126 \begin_layout Plain Layout
4127 tarfile
4128 \end_layout
4129
4130 \end_inset
4131
4132  python modules installed on your system.
4133  By default, the script prefers the 
4134 \begin_inset Flex Code
4135 status collapsed
4136
4137 \begin_layout Plain Layout
4138 gzip
4139 \end_layout
4140
4141 \end_inset
4142
4143 -compressed 
4144 \begin_inset Flex Code
4145 status collapsed
4146
4147 \begin_layout Plain Layout
4148 tar
4149 \end_layout
4150
4151 \end_inset
4152
4153  format on Unix-like systems and the 
4154 \begin_inset Flex Code
4155 status collapsed
4156
4157 \begin_layout Plain Layout
4158 zip
4159 \end_layout
4160
4161 \end_inset
4162
4163  format on Windows.
4164 \end_layout
4165
4166 \begin_layout Standard
4167 \SpecialChar LyX
4168 's configuration process will set the script up to export a `\SpecialChar LyX
4169  Archive',
4170  and this format will then be available under 
4171 \begin_inset Flex Code
4172 status collapsed
4173
4174 \begin_layout Plain Layout
4175 File\SpecialChar menuseparator
4176 Export
4177 \end_layout
4178
4179 \end_inset
4180
4181 .
4182 \end_layout
4183
4184 \begin_layout Standard
4185 Independently of the platform, the generation of a particular archive format
4186  can be forced by adding either the 
4187 \begin_inset Flex Code
4188 status collapsed
4189
4190 \begin_layout Plain Layout
4191 -t
4192 \end_layout
4193
4194 \end_inset
4195
4196  (for the 
4197 \begin_inset Flex Code
4198 status collapsed
4199
4200 \begin_layout Plain Layout
4201 tar
4202 \end_layout
4203
4204 \end_inset
4205
4206  format) or 
4207 \begin_inset Flex Code
4208 status collapsed
4209
4210 \begin_layout Plain Layout
4211 -z
4212 \end_layout
4213
4214 \end_inset
4215
4216  (for the 
4217 \begin_inset Flex Code
4218 status collapsed
4219
4220 \begin_layout Plain Layout
4221 zip
4222 \end_layout
4223
4224 \end_inset
4225
4226  format) switch to the 
4227 \begin_inset Flex Code
4228 status collapsed
4229
4230 \begin_layout Plain Layout
4231 \SpecialChar LyX
4232 \SpecialChar menuseparator
4233 \SpecialChar LyX
4234  Archive
4235 \end_layout
4236
4237 \end_inset
4238
4239  converter in 
4240 \begin_inset Flex Code
4241 status collapsed
4242
4243 \begin_layout Plain Layout
4244 Tools\SpecialChar menuseparator
4245 Preferences\SpecialChar menuseparator
4246 File Handling\SpecialChar menuseparator
4247 Converters
4248 \end_layout
4249
4250 \end_inset
4251
4252 .
4253  (Make sure you add the switch after the script name, not before it.)
4254 \end_layout
4255
4256 \begin_layout Section
4257 Fancy Headers and Footers
4258 \end_layout
4259
4260 \begin_layout Standard
4261 The default page layout is rather plain; for an 
4262 \begin_inset Flex Code
4263 status collapsed
4264
4265 \begin_layout Plain Layout
4266 article
4267 \end_layout
4268
4269 \end_inset
4270
4271  document class, all you get is a centered page number at the bottom of
4272  the page.
4273  This document uses KOMA-script's book class, so it appears to be a bit
4274  fancier.
4275  But to really put on a show, you need to set the document page style to
4276  
4277 \begin_inset Quotes eld
4278 \end_inset
4279
4280 fancy
4281 \begin_inset Quotes erd
4282 \end_inset
4283
4284 , as mentioned in the 
4285 \emph on
4286 User Guide
4287 \emph default
4288 .
4289  This section describes the \SpecialChar LaTeX
4290  code you need to insert in your \SpecialChar LaTeX
4291  preamble in
4292  order to get the desired effects.
4293 \end_layout
4294
4295 \begin_layout Standard
4296 For more information on fancy headers, see the 
4297 \begin_inset Flex Code
4298 status collapsed
4299
4300 \begin_layout Plain Layout
4301 fancyhdr
4302 \end_layout
4303
4304 \end_inset
4305
4306  package documentation.
4307  (
4308 \begin_inset Flex URL
4309 status collapsed
4310
4311 \begin_layout Plain Layout
4312
4313 http://www.ctan.org/tex-archive/help/Catalogue/entries/fancyhdr.html
4314 \end_layout
4315
4316 \end_inset
4317
4318 )
4319 \end_layout
4320
4321 \begin_layout Standard
4322 The page header is divided into three fields, not surprisingly labeled 
4323 \begin_inset Quotes eld
4324 \end_inset
4325
4326 left
4327 \begin_inset Quotes erd
4328 \end_inset
4329
4330
4331 \begin_inset Quotes eld
4332 \end_inset
4333
4334 center
4335 \begin_inset Quotes erd
4336 \end_inset
4337
4338 , and 
4339 \begin_inset Quotes eld
4340 \end_inset
4341
4342 right
4343 \begin_inset Quotes erd
4344 \end_inset
4345
4346 .
4347  The footer is also divided into these three fields.
4348  The \SpecialChar LaTeX
4349  commands to set these fields in the simplest manner are 
4350 \begin_inset Flex Code
4351 status collapsed
4352
4353 \begin_layout Plain Layout
4354
4355 \backslash
4356 lhead
4357 \end_layout
4358
4359 \end_inset
4360
4361
4362 \begin_inset Flex Code
4363 status collapsed
4364
4365 \begin_layout Plain Layout
4366
4367 \backslash
4368 chead
4369 \end_layout
4370
4371 \end_inset
4372
4373
4374 \begin_inset Flex Code
4375 status collapsed
4376
4377 \begin_layout Plain Layout
4378
4379 \backslash
4380 rhead
4381 \end_layout
4382
4383 \end_inset
4384
4385
4386 \begin_inset Flex Code
4387 status collapsed
4388
4389 \begin_layout Plain Layout
4390
4391 \backslash
4392 lfoot
4393 \end_layout
4394
4395 \end_inset
4396
4397 , etc.
4398  Suppose you wish to put your name in the upper left hand corner of each
4399  page.
4400  Simply insert the following command in the preamble: 
4401 \end_layout
4402
4403 \begin_layout Standard
4404
4405 \family typewriter
4406
4407 \backslash
4408 lhead{John Q.
4409  DocWriter}
4410 \end_layout
4411
4412 \begin_layout Standard
4413 You will now see your name in the upper left.
4414  If a field has a default entry that you would like to get rid of (often
4415  the page number appears in the central footer) simply include a command
4416  with a blank argument, e.
4417 \begin_inset space \thinspace{}
4418 \end_inset
4419
4420 g.:
4421 \end_layout
4422
4423 \begin_layout Standard
4424
4425 \family typewriter
4426
4427 \backslash
4428 cfoot{}
4429 \end_layout
4430
4431 \begin_layout Standard
4432 Let's get really fancy: lets put the section number with the word 
4433 \begin_inset Quotes eld
4434 \end_inset
4435
4436 Section
4437 \begin_inset Quotes erd
4438 \end_inset
4439
4440  (e.
4441 \begin_inset space \thinspace{}
4442 \end_inset
4443
4444 g.
4445 \begin_inset space \space{}
4446 \end_inset
4447
4448 Section 3) in the upper left, the page number (e.
4449 \begin_inset space \thinspace{}
4450 \end_inset
4451
4452 g.
4453 \begin_inset space \space{}
4454 \end_inset
4455
4456 Page 4) in the upper right, your name in the lower left, and the date in
4457  the lower right.
4458  The following commands should now appear in the preamble:
4459 \end_layout
4460
4461 \begin_layout Standard
4462
4463 \family typewriter
4464
4465 \backslash
4466 lhead{Section 
4467 \backslash
4468 thesection}
4469 \end_layout
4470
4471 \begin_layout Standard
4472
4473 \family typewriter
4474
4475 \backslash
4476 chead{}
4477 \end_layout
4478
4479 \begin_layout Standard
4480
4481 \family typewriter
4482
4483 \backslash
4484 rhead{Page 
4485 \backslash
4486 thepage}
4487 \end_layout
4488
4489 \begin_layout Standard
4490
4491 \family typewriter
4492
4493 \backslash
4494 lfoot{John Q.
4495  DocWriter}
4496 \end_layout
4497
4498 \begin_layout Standard
4499
4500 \family typewriter
4501
4502 \backslash
4503 cfoot{}
4504 \end_layout
4505
4506 \begin_layout Standard
4507
4508 \family typewriter
4509
4510 \backslash
4511 rfoot{
4512 \backslash
4513 today}
4514 \end_layout
4515
4516 \begin_layout Standard
4517 The commands 
4518 \begin_inset Flex Code
4519 status collapsed
4520
4521 \begin_layout Plain Layout
4522
4523 \backslash
4524 thesection
4525 \end_layout
4526
4527 \end_inset
4528
4529  and 
4530 \begin_inset Flex Code
4531 status collapsed
4532
4533 \begin_layout Plain Layout
4534
4535 \backslash
4536 thepage
4537 \end_layout
4538
4539 \end_inset
4540
4541  access \SpecialChar LaTeX
4542 's section and page counters, and so print out the current section
4543  and page numbers.
4544  
4545 \begin_inset Flex Code
4546 status collapsed
4547
4548 \begin_layout Plain Layout
4549
4550 \backslash
4551 today
4552 \end_layout
4553
4554 \end_inset
4555
4556  simply prints out today's date.
4557 \end_layout
4558
4559 \begin_layout Standard
4560 The thicknesses of the horizontal rules drawn beneath the header and above
4561  the footer can also be modified.
4562  If you don't want one of the rules, set its thickness to 0.
4563  The header rule has a default thickness of 0.4pt, the footer rule is 0pt.
4564  Use commands
4565 \family typewriter
4566  
4567 \family default
4568 like 
4569 \begin_inset Flex Code
4570 status collapsed
4571
4572 \begin_layout Plain Layout
4573
4574 \backslash
4575 renewcommand{
4576 \backslash
4577 headrulewidth}{0.4pt}
4578 \end_layout
4579
4580 \end_inset
4581
4582  and 
4583 \begin_inset Flex Code
4584 status collapsed
4585
4586 \begin_layout Plain Layout
4587
4588 \backslash
4589 renewcommand{
4590 \backslash
4591 footrulewidth}{0.4pt}
4592 \end_layout
4593
4594 \end_inset
4595
4596  to set the thicknesses.
4597 \end_layout
4598
4599 \begin_layout Standard
4600 You can switch the header/footer settings on and off for individual pages
4601  using commands like 
4602 \begin_inset Flex Code
4603 status collapsed
4604
4605 \begin_layout Plain Layout
4606
4607 \backslash
4608 thispagestyle{empty}
4609 \end_layout
4610
4611 \end_inset
4612
4613
4614 \begin_inset Flex Code
4615 status collapsed
4616
4617 \begin_layout Plain Layout
4618
4619 \backslash
4620 thispagestyle{plain}
4621 \end_layout
4622
4623 \end_inset
4624
4625 , and 
4626 \begin_inset Flex Code
4627 status collapsed
4628
4629 \begin_layout Plain Layout
4630
4631 \backslash
4632 thispagestyle{fancy}
4633 \end_layout
4634
4635 \end_inset
4636
4637 .
4638  Simply insert them in the text on the page you want changed and mark them
4639  as \SpecialChar TeX
4640  code.
4641  In fact, title pages are marked as plain by default, while following pages
4642  are marked fancy when using the global fancy setting.
4643 \end_layout
4644
4645 \begin_layout Standard
4646 As a final example, it is possible to include an image in the header or
4647  footer.
4648  Suppose you want to put a company logo in the upper lefthand corner.
4649  You might try something like
4650 \end_layout
4651
4652 \begin_layout Standard
4653
4654 \family typewriter
4655
4656 \backslash
4657 lhead{
4658 \backslash
4659 resizebox{1in}{!}{
4660 \backslash
4661 includegraphics{logo.eps}}}
4662 \end_layout
4663
4664 \begin_layout Standard
4665 \noindent
4666 (you may need to preface this with 
4667 \begin_inset Flex Code
4668 status collapsed
4669
4670 \begin_layout Plain Layout
4671 \noindent
4672
4673 \backslash
4674 usepackage{graphics}
4675 \end_layout
4676
4677 \end_inset
4678
4679  if you don't include graphics elsewhere in your document).
4680 \end_layout
4681
4682 \begin_layout Section
4683 Itemize Bullet Selection
4684 \begin_inset CommandInset label
4685 LatexCommand label
4686 name "sec:bullet"
4687
4688 \end_inset
4689
4690
4691 \end_layout
4692
4693 \begin_layout Standard
4694 by
4695 \noun on
4696  Allan Rae
4697 \end_layout
4698
4699 \begin_layout Subsection
4700 Introduction
4701 \end_layout
4702
4703 \begin_layout Standard
4704 \SpecialChar LyX
4705  provides 216 bullet shapes that can be accessed from a simple dialog.
4706  Using this dialog you can easily specify what bullet shape to use at each
4707  level of an itemized list.
4708  These settings are document-wide so you won't be able to specify different
4709  sets of bullets for different paragraphs.
4710 \begin_inset Foot
4711 status collapsed
4712
4713 \begin_layout Plain Layout
4714 Well, actually you can but you'll have to do it by hand.
4715 \end_layout
4716
4717 \end_inset
4718
4719
4720 \end_layout
4721
4722 \begin_layout Subsection
4723 How it looks
4724 \end_layout
4725
4726 \begin_layout Standard
4727 Open the dialog by selecting the 
4728 \begin_inset Flex Noun
4729 status collapsed
4730
4731 \begin_layout Plain Layout
4732 Document\SpecialChar menuseparator
4733 Settings
4734 \end_layout
4735
4736 \end_inset
4737
4738  menu item and then select the 
4739 \begin_inset Flex Noun
4740 status collapsed
4741
4742 \begin_layout Plain Layout
4743 Bullets
4744 \end_layout
4745
4746 \end_inset
4747
4748  tab.
4749 \end_layout
4750
4751 \begin_layout Standard
4752 The dialog provides you with a table of bullet shapes.
4753  A column of buttons on the left of the table provides access to the six
4754  different panels of bullet shapes.
4755  The row of buttons across the top is used to select which bullet depth
4756  you are changing.
4757  A text entry under the table shows the currently selected bullet shape's
4758  \SpecialChar LaTeX
4759  equivalent and this can be edited if desired.
4760  If you do modify the text you will also need to specify any needed packages
4761  in the \SpecialChar LaTeX
4762  preamble.
4763 \end_layout
4764
4765 \begin_layout Standard
4766 The six panels are divided up by the packages they require.
4767  The following table shows the mappings from button name to \SpecialChar LaTeX
4768  package.
4769 \end_layout
4770
4771 \begin_layout Standard
4772 \align center
4773 \begin_inset Tabular
4774 <lyxtabular version="3" rows="7" columns="2">
4775 <features tabularvalignment="middle">
4776 <column alignment="center" valignment="top" width="0pt">
4777 <column alignment="center" valignment="top" width="0pt">
4778 <row>
4779 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
4780 \begin_inset Text
4781
4782 \begin_layout Plain Layout
4783
4784 \family roman
4785 \series medium
4786 \shape up
4787 \size normal
4788 \emph off
4789 \bar no
4790 \noun off
4791 \color none
4792 Button
4793 \end_layout
4794
4795 \end_inset
4796 </cell>
4797 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
4798 \begin_inset Text
4799
4800 \begin_layout Plain Layout
4801
4802 \family roman
4803 \series medium
4804 \shape up
4805 \size normal
4806 \emph off
4807 \bar no
4808 \noun off
4809 \color none
4810 Packages Required
4811 \end_layout
4812
4813 \end_inset
4814 </cell>
4815 </row>
4816 <row>
4817 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4818 \begin_inset Text
4819
4820 \begin_layout Plain Layout
4821
4822 \family sans
4823 \series medium
4824 \shape up
4825 \size normal
4826 \emph off
4827 \bar no
4828 \noun off
4829 \color none
4830 Standard
4831 \end_layout
4832
4833 \end_inset
4834 </cell>
4835 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4836 \begin_inset Text
4837
4838 \begin_layout Plain Layout
4839
4840 \series medium
4841 \shape up
4842 \size normal
4843 \emph off
4844 \bar no
4845 \noun off
4846 \color none
4847 base \SpecialChar LaTeX
4848
4849 \end_layout
4850
4851 \end_inset
4852 </cell>
4853 </row>
4854 <row>
4855 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4856 \begin_inset Text
4857
4858 \begin_layout Plain Layout
4859
4860 \family sans
4861 \series medium
4862 \shape up
4863 \size normal
4864 \emph off
4865 \bar no
4866 \noun off
4867 \color none
4868 Maths
4869 \end_layout
4870
4871 \end_inset
4872 </cell>
4873 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4874 \begin_inset Text
4875
4876 \begin_layout Plain Layout
4877
4878 \family typewriter
4879 \series medium
4880 \shape up
4881 \size normal
4882 \emph off
4883 \bar no
4884 \noun off
4885 \color none
4886 amssymb.sty
4887 \end_layout
4888
4889 \end_inset
4890 </cell>
4891 </row>
4892 <row>
4893 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4894 \begin_inset Text
4895
4896 \begin_layout Plain Layout
4897
4898 \family sans
4899 \series medium
4900 \shape up
4901 \size normal
4902 \emph off
4903 \bar no
4904 \noun off
4905 \color none
4906 Ding1
4907 \end_layout
4908
4909 \end_inset
4910 </cell>
4911 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4912 \begin_inset Text
4913
4914 \begin_layout Plain Layout
4915
4916 \family typewriter
4917 \series medium
4918 \shape up
4919 \size normal
4920 \emph off
4921 \bar no
4922 \noun off
4923 \color none
4924 pifont.sty
4925 \end_layout
4926
4927 \end_inset
4928 </cell>
4929 </row>
4930 <row>
4931 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4932 \begin_inset Text
4933
4934 \begin_layout Plain Layout
4935
4936 \family sans
4937 \series medium
4938 \shape up
4939 \size normal
4940 \emph off
4941 \bar no
4942 \noun off
4943 \color none
4944 Ding2
4945 \end_layout
4946
4947 \end_inset
4948 </cell>
4949 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4950 \begin_inset Text
4951
4952 \begin_layout Plain Layout
4953
4954 \family typewriter
4955 \series medium
4956 \shape up
4957 \size normal
4958 \emph off
4959 \bar no
4960 \noun off
4961 \color none
4962 pifont.sty
4963 \end_layout
4964
4965 \end_inset
4966 </cell>
4967 </row>
4968 <row>
4969 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4970 \begin_inset Text
4971
4972 \begin_layout Plain Layout
4973
4974 \family sans
4975 \series medium
4976 \shape up
4977 \size normal
4978 \emph off
4979 \bar no
4980 \noun off
4981 \color none
4982 Ding3
4983 \end_layout
4984
4985 \end_inset
4986 </cell>
4987 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4988 \begin_inset Text
4989
4990 \begin_layout Plain Layout
4991
4992 \family typewriter
4993 \series medium
4994 \shape up
4995 \size normal
4996 \emph off
4997 \bar no
4998 \noun off
4999 \color none
5000 pifont.sty
5001 \end_layout
5002
5003 \end_inset
5004 </cell>
5005 </row>
5006 <row>
5007 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
5008 \begin_inset Text
5009
5010 \begin_layout Plain Layout
5011
5012 \family sans
5013 \series medium
5014 \shape up
5015 \size normal
5016 \emph off
5017 \bar no
5018 \noun off
5019 \color none
5020 Ding4
5021 \end_layout
5022
5023 \end_inset
5024 </cell>
5025 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
5026 \begin_inset Text
5027
5028 \begin_layout Plain Layout
5029
5030 \family typewriter
5031 \series medium
5032 \shape up
5033 \size normal
5034 \emph off
5035 \bar no
5036 \noun off
5037 \color none
5038 pifont.sty
5039 \end_layout
5040
5041 \end_inset
5042 </cell>
5043 </row>
5044 </lyxtabular>
5045
5046 \end_inset
5047
5048
5049 \end_layout
5050
5051 \begin_layout Standard
5052 \SpecialChar LyX
5053  doesn't stop you using bullets from packages you don't have.
5054  If you get errors from \SpecialChar LaTeX
5055  when you try to view or print the file, then it
5056  is likely you are missing a package.
5057 \begin_inset Foot
5058 status collapsed
5059
5060 \begin_layout Plain Layout
5061 \SpecialChar LyX
5062  doesn't restrict your use since you may be editing locally and exporting
5063  elsewhere.
5064 \end_layout
5065
5066 \end_inset
5067
5068
5069 \end_layout
5070
5071 \begin_layout Subsection
5072 How to use it
5073 \end_layout
5074
5075 \begin_layout Standard
5076 Select which bullet depth you want to change then select the bullet shape
5077  and size.
5078  Any changes will not be visible in \SpecialChar LyX
5079 , but are visible when viewing the document.
5080 \end_layout
5081
5082 \begin_layout Standard
5083 You can reset a bullet shape to the default simply by clicking your right
5084  mouse button on the appropriate bullet depth button.
5085 \begin_inset Foot
5086 status open
5087
5088 \begin_layout Plain Layout
5089 If you 
5090 \emph on
5091 really
5092 \emph default
5093  want to have multiple sets of paragraphs with different sets of bullets
5094  in each, then you're going to have to get your hands dirty with \SpecialChar TeX
5095  code.
5096  The bullet selection dialog can help though because it provides you with
5097  the \SpecialChar LaTeX
5098  code for a wide range of bullet shapes.
5099  To make your own custom paragraphs you have the following options:
5100 \end_layout
5101
5102 \begin_layout Plain Layout
5103 \begin_inset ERT
5104 status open
5105
5106 \begin_layout Plain Layout
5107
5108
5109 \backslash
5110 let
5111 \backslash
5112 savelabelitemi=
5113 \backslash
5114 labelitemi
5115 \end_layout
5116
5117 \end_inset
5118
5119
5120 \end_layout
5121
5122 \begin_layout Plain Layout
5123 \begin_inset ERT
5124 status open
5125
5126 \begin_layout Plain Layout
5127
5128
5129 \backslash
5130 renewcommand
5131 \backslash
5132 labelitemi[0]{
5133 \backslash
5134 small
5135 \backslash
5136 (
5137 \backslash
5138 sharp
5139 \backslash
5140 )}
5141 \end_layout
5142
5143 \end_inset
5144
5145
5146 \end_layout
5147
5148 \begin_layout Itemize
5149 Use the \SpecialChar LaTeX
5150  command 
5151 \begin_inset Flex Code
5152 status collapsed
5153
5154 \begin_layout Plain Layout
5155
5156 \backslash
5157 renewcommand{}{}
5158 \end_layout
5159
5160 \end_inset
5161
5162  to specify a new bullet shape for a given depth.
5163  You'll also need to save the current bullet shape so you can restore it
5164  again afterwards.
5165  In this itemized list the following \SpecialChar LaTeX
5166  code was used to change the bullet
5167  used for the first depth.
5168 \end_layout
5169
5170 \begin_deeper
5171 \begin_layout LyX-Code
5172
5173 \backslash
5174 let
5175 \backslash
5176 savelabelitemi=
5177 \backslash
5178 labelitemi 
5179 \end_layout
5180
5181 \begin_layout LyX-Code
5182
5183 \backslash
5184 renewcommand
5185 \backslash
5186 labelitemi[0]{
5187 \backslash
5188 small
5189 \backslash
5190 (
5191 \backslash
5192 sharp
5193 \backslash
5194 )}
5195 \end_layout
5196
5197 \end_deeper
5198 \begin_layout Itemize
5199 Note that the itemize depth is specified in Roman numerals as part of the
5200  
5201 \family typewriter
5202
5203 \backslash
5204 labelitem
5205 \family default
5206  command.
5207 \end_layout
5208
5209 \begin_layout Itemize
5210
5211 \change_deleted -712698321 1501149643
5212 \begin_inset ERT
5213 status open
5214
5215 \begin_layout Plain Layout
5216
5217 \change_deleted -712698321 1501149634
5218
5219 [
5220 \change_unchanged
5221
5222 \backslash
5223 (
5224 \backslash
5225 star
5226 \backslash
5227 )
5228 \change_deleted -712698321 1501149636
5229 ]
5230 \change_unchanged
5231
5232 \end_layout
5233
5234 \end_inset
5235
5236
5237 \change_inserted -712698321 1501149643
5238
5239 \begin_inset Argument item:1
5240 status open
5241
5242 \begin_layout Plain Layout
5243
5244 \change_inserted -712698321 1501149643
5245 \begin_inset ERT
5246 status open
5247
5248 \begin_layout Plain Layout
5249
5250 \change_inserted -712698321 1501149643
5251
5252
5253 \backslash
5254 (
5255 \backslash
5256 star
5257 \backslash
5258 )
5259 \end_layout
5260
5261 \end_inset
5262
5263
5264 \change_unchanged
5265
5266 \end_layout
5267
5268 \end_inset
5269
5270
5271 \change_unchanged
5272  Specify each individual entry by starting each item with the bullet shape
5273  enclosed in 
5274 \change_deleted -712698321 1501149707
5275 square brackets
5276 \change_inserted -712698321 1501149740
5277
5278 \begin_inset Quotes eld
5279 \end_inset
5280
5281 Custom Item
5282 \begin_inset Quotes erd
5283 \end_inset
5284
5285  inset (available at 
5286 \family sans
5287 Insert\SpecialChar menuseparator
5288 Custom Item
5289 \family default
5290 )
5291 \change_unchanged
5292  and set as 
5293 \begin_inset Flex Noun
5294 status collapsed
5295
5296 \begin_layout Plain Layout
5297 \SpecialChar TeX
5298  Code
5299 \end_layout
5300
5301 \end_inset
5302
5303 .
5304  For example, this item was started with 
5305 \begin_inset Flex Code
5306 status collapsed
5307
5308 \begin_layout Plain Layout
5309
5310 \change_deleted -712698321 1501149692
5311 [
5312 \change_unchanged
5313
5314 \backslash
5315 (
5316 \backslash
5317 star
5318 \backslash
5319 )
5320 \change_deleted -712698321 1501149693
5321 ]
5322 \change_unchanged
5323
5324 \end_layout
5325
5326 \end_inset
5327
5328 .
5329 \end_layout
5330
5331 \begin_layout Plain Layout
5332 \begin_inset ERT
5333 status open
5334
5335 \begin_layout Plain Layout
5336
5337
5338 \backslash
5339 renewcommand
5340 \backslash
5341 labelitemi[0]{
5342 \backslash
5343 savelabelitemi}
5344 \end_layout
5345
5346 \end_inset
5347
5348
5349 \end_layout
5350
5351 \begin_layout Plain Layout
5352 You'll also need to revert the labelitem back to its previous setting for
5353  the global bullet shape settings to remain in effect.
5354  The way used here was:
5355 \end_layout
5356
5357 \begin_layout LyX-Code
5358
5359 \backslash
5360 renewcommand
5361 \backslash
5362 labelitemi[0]{
5363 \backslash
5364 savelabelitemi}
5365 \end_layout
5366
5367 \end_inset
5368
5369
5370 \end_layout
5371
5372 \begin_layout Chapter
5373 \SpecialChar LyX
5374  and the World Wide Web
5375 \end_layout
5376
5377 \begin_layout Standard
5378 \SpecialChar LyX
5379  has long supported the export of documents to various web-friendly formats,
5380  such as HTML.
5381  Before vers
5382 \change_inserted -712698321 1501076595
5383 i
5384 \change_unchanged
5385 on 2.0, however, HTML export was always accomplished by the use of external
5386  converters.
5387 \begin_inset Foot
5388 status collapsed
5389
5390 \begin_layout Plain Layout
5391 For details on the use of external converters with \SpecialChar LyX
5392 , see the 
5393 \emph on
5394 Converters
5395 \emph default
5396  section of the Customization manual.
5397 \end_layout
5398
5399 \end_inset
5400
5401  These fall into two large groups: there are converters that use \SpecialChar LaTeX
5402  as an
5403  intermediate format, such as 
5404 \begin_inset Flex Code
5405 status collapsed
5406
5407 \begin_layout Plain Layout
5408 htlatex
5409 \end_layout
5410
5411 \end_inset
5412
5413
5414 \begin_inset Flex Code
5415 status collapsed
5416
5417 \begin_layout Plain Layout
5418 html2latex
5419 \end_layout
5420
5421 \end_inset
5422
5423 , and 
5424 \begin_inset Flex Code
5425 status collapsed
5426
5427 \begin_layout Plain Layout
5428 plastex
5429 \end_layout
5430
5431 \end_inset
5432
5433 , relying upon \SpecialChar LyX
5434  to produce the \SpecialChar LaTeX
5435 ; and there is a converter that works directly
5436  on \SpecialChar LyX
5437  files, 
5438 \begin_inset Flex Code
5439 status collapsed
5440
5441 \begin_layout Plain Layout
5442 e\SpecialChar LyX
5443 er
5444 \end_layout
5445
5446 \end_inset
5447
5448 .
5449  All of these have different advantages and disadvantages.
5450  
5451 \end_layout
5452
5453 \begin_layout Standard
5454 The \SpecialChar LaTeX
5455 -based converters have the advantage that, in principle, they know everythin
5456 g about the exported document that \SpecialChar LaTeX
5457  does.
5458  Such converters do not care, for example, if a certain block of code was
5459  produced by \SpecialChar LyX
5460  or was Evil Red Text.
5461  These converters know about 
5462 \begin_inset Flex Code
5463 status collapsed
5464
5465 \begin_layout Plain Layout
5466 aux
5467 \end_layout
5468
5469 \end_inset
5470
5471  files, counters, and references, and can often make use of the 
5472 \begin_inset Flex Code
5473 status collapsed
5474
5475 \begin_layout Plain Layout
5476 bbl
5477 \end_layout
5478
5479 \end_inset
5480
5481  files generated by Bib\SpecialChar TeX
5482 .
5483  On the other hand, \SpecialChar LaTeX
5484  is a very hard language to parse—it is sometimes said
5485  that only \SpecialChar TeX
5486  itself understands \SpecialChar TeX
5487 —and \SpecialChar LaTeX
5488 -based converters will often choke on
5489  what seem to be quite simple constructs; complex ones can throw them completely
5490 , and as of this writing, for example, the 
5491 \emph on
5492 Embedded Objects
5493 \emph default
5494  manual will not export with 
5495 \begin_inset Flex Code
5496 status collapsed
5497
5498 \begin_layout Plain Layout
5499 htlatex
5500 \end_layout
5501
5502 \end_inset
5503
5504 , though the others will.
5505  The other issue concerns how math is handled.
5506  These converters typically convert the formulae into little pictures that
5507  are then linked from the HTML document.
5508  Since these are actually generated by \SpecialChar LaTeX
5509 , they are accurate.
5510  But they do not scale well, and just getting them to look as if they are
5511  actually meant to be in your document—so that the font sizes seem to be
5512  roughly the same—can be a challenge.
5513 \end_layout
5514
5515 \begin_layout Standard
5516 Alex Fernandez's 
5517 \begin_inset Flex Code
5518 status collapsed
5519
5520 \begin_layout Plain Layout
5521 e\SpecialChar LyX
5522 er
5523 \end_layout
5524
5525 \end_inset
5526
5527  (
5528 \begin_inset CommandInset href
5529 LatexCommand href
5530 name "http://elyxer.nongnu.org/"
5531 target "http://elyxer.nongnu.org/"
5532 literal "false"
5533
5534 \end_inset
5535
5536 ) solves some of these problems.
5537  In particular, the formulae it produces scale perfectly, since it renders
5538  math using a combination of HTML and CSS rather than converting the formulae
5539  to images.
5540  But even moderately complex formula are rendered less well than with 
5541 \begin_inset Flex Code
5542 status collapsed
5543
5544 \begin_layout Plain Layout
5545 htlatex
5546 \end_layout
5547
5548 \end_inset
5549
5550 ; this reflects the limitations of HTML.
5551 \begin_inset Foot
5552 status collapsed
5553
5554 \begin_layout Plain Layout
5555 That said, 
5556 \begin_inset Flex Code
5557 status collapsed
5558
5559 \begin_layout Plain Layout
5560 e\SpecialChar LyX
5561 er
5562 \end_layout
5563
5564 \end_inset
5565
5566  can also use jsMath and MathJax for equations, but this setting is only
5567  available globally and requires one to have access to a server that runs
5568  the backend.
5569 \end_layout
5570
5571 \end_inset
5572
5573  More importantly (as of version 1.1.1, at least), 
5574 \begin_inset Flex Code
5575 status collapsed
5576
5577 \begin_layout Plain Layout
5578 e\SpecialChar LyX
5579 er
5580 \end_layout
5581
5582 \end_inset
5583
5584  has limited support for math macros and no support for user-defined paragraph
5585  or character styles.
5586  These limitations make 
5587 \begin_inset Flex Code
5588 status collapsed
5589
5590 \begin_layout Plain Layout
5591 e\SpecialChar LyX
5592 er
5593 \end_layout
5594
5595 \end_inset
5596
5597  unsuitable for many of the documents \SpecialChar LyX
5598  users produce.
5599  In principle, of course, these problems could be solved, but the \SpecialChar LyX
5600  developers
5601  have decided to follow a different path and have made \SpecialChar LyX
5602  itself capable of
5603  writing XHTML, just as it is capable of writing \SpecialChar LaTeX
5604 , DocBook, and plaintext.
5605 \end_layout
5606
5607 \begin_layout Standard
5608 As of this writing, XHTML output remains under development and should probably
5609  be regarded as 
5610 \begin_inset Quotes eld
5611 \end_inset
5612
5613 experimental
5614 \begin_inset Quotes erd
5615 \end_inset
5616
5617 .
5618 \begin_inset Foot
5619 status collapsed
5620
5621 \begin_layout Plain Layout
5622 The file 
5623 \begin_inset Flex Code
5624 status collapsed
5625
5626 \begin_layout Plain Layout
5627 development/
5628 \change_inserted -712698321 1501078933
5629 HTML/
5630 \change_unchanged
5631 HTML.notes
5632 \end_layout
5633
5634 \end_inset
5635
5636 , which can be found in the \SpecialChar LyX
5637  source tree or 
5638 \begin_inset CommandInset href
5639 LatexCommand href
5640 name "accessed online"
5641 target "http://www.lyx.org/trac/browser/lyxgit/development/HTML/HTML.notes?rev=master"
5642 literal "false"
5643
5644 \end_inset
5645
5646 , usually contains up-to-date information about the state of XHTML output.
5647  See also the list of XHTML bugs on 
5648 \begin_inset CommandInset href
5649 LatexCommand href
5650 name "the bug tracker"
5651 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"
5652 literal "false"
5653
5654 \end_inset
5655
5656 .
5657 \end_layout
5658
5659 \end_inset
5660
5661  Still, the developers have chosen this approach because it has several
5662  potential advantages over the other two.
5663 \end_layout
5664
5665 \begin_layout Standard
5666 These advantages are primarily due to the fact that the XHTML output routines,
5667  since they are part of \SpecialChar LyX
5668 , know everything \SpecialChar LyX
5669  knows about the document being
5670  exported.
5671 \begin_inset Foot
5672 status collapsed
5673
5674 \begin_layout Plain Layout
5675 Another advantage is that, since these routines are internal to \SpecialChar LyX
5676 , they are
5677  immune to changes in \SpecialChar LyX
5678 's file format, or to changes in the semantics of
5679  existing insets.
5680 \end_layout
5681
5682 \end_inset
5683
5684  So they know about the table of contents (as displayed in the outline),
5685  about the counters associated with different paragraph styles, and about
5686  user-defined styles.
5687  The XHTML output routines know what \SpecialChar LyX
5688  knows about internationalization,
5689  too, so they will output 
5690 \begin_inset Quotes eld
5691 \end_inset
5692
5693 Chapter 1
5694 \begin_inset Quotes erd
5695 \end_inset
5696
5697  or 
5698 \begin_inset Quotes eld
5699 \end_inset
5700
5701
5702 \lang ngerman
5703 Kapitel
5704 \lang english
5705  1
5706 \begin_inset Quotes erd
5707 \end_inset
5708
5709 , depending upon the language in effect at the time.
5710  
5711 \end_layout
5712
5713 \begin_layout Standard
5714 Quite generally, the output routines know what \SpecialChar LyX
5715  knows about document layout,
5716  that is, about how the document is to be rendered on screen.
5717  We use this information when we output the document as XHTML.
5718  In particular, \SpecialChar LyX
5719  
5720 \emph on
5721 automatically
5722 \emph default
5723  generates CSS style information corresponding to the layout information
5724  it uses to render the document on screen: if section headings are supposed
5725  to be sans-serif and bold as seen in \SpecialChar LyX
5726 , then (by default) they will be sans-seri
5727 f and bold when viewed in a web browser, too.
5728  And this is true not just for pre-defined styles, like Section, but for
5729  any style, including user-defined styles.
5730  Indeed, the XHTML output routines make no distinction between user-defined
5731  paragraph and character styles and \SpecialChar LyX
5732 's own pre-defined styles: in each case,
5733  everything \SpecialChar LyX
5734  knows about the styles is contained in the layout files.
5735  And much the same is true as regards pre-defined textual insets, such as
5736  footnotes, and various custom insets.
5737  
5738 \end_layout
5739
5740 \begin_layout Standard
5741 The result is that XHTML output can be customized and extended in exactly
5742  the same way \SpecialChar LaTeX
5743  output can be customized and extended: through layout files
5744  and modules.
5745  See chapter five of the 
5746 \emph on
5747 Customization 
5748 \emph default
5749 manual for the details.
5750 \end_layout
5751
5752 \begin_layout Standard
5753 The remainder of this chapter contains more detailed information on XHTML
5754  output, its limitations, and ways to work around those limitations.
5755 \end_layout
5756
5757 \begin_layout Section
5758 Math Output in XHTML
5759 \end_layout
5760
5761 \begin_layout Standard
5762 \SpecialChar LyX
5763  offers four choices for how math is rendered.
5764  These have various advantages and disadvantages:
5765 \end_layout
5766
5767 \begin_layout Itemize
5768 MathML
5769 \begin_inset Newline newline
5770 \end_inset
5771
5772 MathML is a dialect of XML designed specifically for mathematics on the
5773  web, and it typically renders very well in browsers that support it.
5774  The disadvantage is that not all browsers support MathML, and support is
5775  not complete even in the Gecko-based browsers, such as Firefox.
5776 \begin_inset Newline newline
5777 \end_inset
5778
5779 If \SpecialChar LyX
5780  is unable to render a formula as MathML—for example, if the formula
5781  uses the 
5782 \begin_inset Flex Code
5783 status collapsed
5784
5785 \begin_layout Plain Layout
5786 xymatrix
5787 \end_layout
5788
5789 \end_inset
5790
5791  package or ERT—then it will instead output the formula as an image.
5792  
5793 \end_layout
5794
5795 \begin_layout Itemize
5796 HTML
5797 \begin_inset Newline newline
5798 \end_inset
5799
5800 As mentioned above, 
5801 \begin_inset Flex Code
5802 status collapsed
5803
5804 \begin_layout Plain Layout
5805 elyxer
5806 \end_layout
5807
5808 \end_inset
5809
5810  outputs math as HTML, styled by CSS.
5811 \begin_inset Foot
5812 status collapsed
5813
5814 \begin_layout Plain Layout
5815 \SpecialChar LyX
5816  has borrowed some of the CSS for its HTML output from 
5817 \begin_inset Flex Code
5818 status collapsed
5819
5820 \begin_layout Plain Layout
5821 elyxer
5822 \end_layout
5823
5824 \end_inset
5825
5826 .
5827 \end_layout
5828
5829 \end_inset
5830
5831  For simple formulae, this can work quite well, though with more complicated
5832  formulae it tends to break down.
5833  Still, this method has the advantage that it is very widely supported and
5834  so it may be appropriate for documents that contain only a little, fairly
5835  simple math.
5836 \begin_inset Newline newline
5837 \end_inset
5838
5839 If Lyx is unable to render a formula as HTML—for example, if the formula
5840  uses the 
5841 \begin_inset Flex Code
5842 status collapsed
5843
5844 \begin_layout Plain Layout
5845 xymatrix
5846 \end_layout
5847
5848 \end_inset
5849
5850  package or ERT—then it will instead output the formula as an image.
5851  
5852 \end_layout
5853
5854 \begin_layout Itemize
5855 Images
5856 \begin_inset Newline newline
5857 \end_inset
5858
5859 Like 
5860 \begin_inset Flex Code
5861 status collapsed
5862
5863 \begin_layout Plain Layout
5864 htlatex
5865 \end_layout
5866
5867 \end_inset
5868
5869 , \SpecialChar LyX
5870  will output formulae as images, the very same images, in fact, that are
5871  used for instant preview.
5872 \begin_inset Foot
5873 status collapsed
5874
5875 \begin_layout Plain Layout
5876 Instant preview does 
5877 \emph on
5878 not 
5879 \emph default
5880 have to be on for images to be output, however.
5881 \end_layout
5882
5883 \end_inset
5884
5885  The advantage to this method is that the images are simply generated by
5886  \SpecialChar LaTeX
5887 , so they are very accurate.
5888  The disadvantage, as mentioned earlier, is that these are bitmapped images,
5889  so they do not scale terribly well, and one cannot copy them, etc.
5890
5891 \change_deleted -712698321 1501075981
5892  (As of this writing, there are also problems about equation numbering.
5893  See 
5894 \begin_inset CommandInset href
5895 LatexCommand href
5896 name "bug 6894"
5897 target "http://www.lyx.org/trac/ticket/6894"
5898 literal "false"
5899
5900 \end_inset
5901
5902 .)
5903 \change_unchanged
5904
5905 \begin_inset Newline newline
5906 \end_inset
5907
5908 The size of the images can be controlled by setting the 
5909 \begin_inset Quotes eld
5910 \end_inset
5911
5912 Math Images Scaling
5913 \begin_inset Quotes erd
5914 \end_inset
5915
5916  parameter under 
5917 \begin_inset Flex Noun
5918 status collapsed
5919
5920 \begin_layout Plain Layout
5921 Document\SpecialChar menuseparator
5922 Settings\SpecialChar menuseparator
5923
5924 \change_deleted -712698321 1501076136
5925 Output
5926 \change_inserted -712698321 1501076137
5927 Formats
5928 \change_unchanged
5929
5930 \end_layout
5931
5932 \end_inset
5933
5934 .
5935 \begin_inset Foot
5936 status collapsed
5937
5938 \begin_layout Plain Layout
5939 For those who want to know, this controls the resolution of the image in
5940  dots per inch and is based upon a default of 75 dpi.
5941 \end_layout
5942
5943 \end_inset
5944
5945
5946 \begin_inset Newline newline
5947 \end_inset
5948
5949 If \SpecialChar LyX
5950  for some reason fails to create an image for a formula (e.g., if a required
5951  \SpecialChar LaTeX
5952  package is not installed), then it will fall back to outputing the raw
5953  \SpecialChar LaTeX
5954 .
5955 \end_layout
5956
5957 \begin_layout Itemize
5958 \SpecialChar LaTeX
5959
5960 \begin_inset Newline newline
5961 \end_inset
5962
5963 Finally, \SpecialChar LyX
5964  will happily output math as \SpecialChar LaTeX
5965 .
5966  As well as being the output of last resort, this method can be used with
5967  such tools as 
5968 \begin_inset CommandInset href
5969 LatexCommand href
5970 name "jsMath"
5971 target "http://www.math.union.edu/~dpvc/jsMath/"
5972 literal "false"
5973
5974 \end_inset
5975
5976 , which uses JavaScript to render \SpecialChar LaTeX
5977  embedded in HTML documents.
5978  \SpecialChar LyX
5979  wraps the \SpecialChar LaTeX
5980  in either a 
5981 \begin_inset Flex Code
5982 status collapsed
5983
5984 \begin_layout Plain Layout
5985 span
5986 \end_layout
5987
5988 \end_inset
5989
5990  (for inline formulas) or 
5991 \begin_inset Flex Code
5992 status collapsed
5993
5994 \begin_layout Plain Layout
5995 div
5996 \end_layout
5997
5998 \end_inset
5999
6000  (for displayed formulas) with 
6001 \begin_inset Flex Code
6002 status collapsed
6003
6004 \begin_layout Plain Layout
6005 class='math'
6006 \end_layout
6007
6008 \end_inset
6009
6010 , as is required for jsMath.
6011 \end_layout
6012
6013 \begin_layout Standard
6014 One of these output methods must be selected under 
6015 \begin_inset Flex Noun
6016 status collapsed
6017
6018 \begin_layout Plain Layout
6019 Document\SpecialChar menuseparator
6020 Settings\SpecialChar menuseparator
6021
6022 \change_deleted -712698321 1501076586
6023 Output
6024 \change_inserted -712698321 1501076587
6025 Formats
6026 \change_unchanged
6027
6028 \end_layout
6029
6030 \end_inset
6031
6032 .
6033  By default, \SpecialChar LyX
6034  outputs MathML.
6035  This is a document-wide setting, therefore.
6036 \end_layout
6037
6038 \begin_layout Standard
6039 Eventually, \SpecialChar LyX
6040  will offer the user the option to select an alternate output
6041  method for a particular inset, say, one that isn't being rendered very
6042  well by MathML.
6043 \begin_inset Foot
6044 status collapsed
6045
6046 \begin_layout Plain Layout
6047 That said, since \SpecialChar LyX
6048  falls back to images if the inset contains ERT, then one
6049  can force output as an image by putting some harmless ERT into the math,
6050  for example: 
6051 \begin_inset Formula $a=b\relax$
6052 \end_inset
6053
6054 .
6055 \end_layout
6056
6057 \end_inset
6058
6059
6060 \end_layout
6061
6062 \begin_layout Section
6063 Bibliography and Citations
6064 \end_layout
6065
6066 \begin_layout Standard
6067 XHTML output fully supports bibliographies and citations.
6068  
6069 \end_layout
6070
6071 \begin_layout Standard
6072 Citation labels are generated by the same machinery that generates \SpecialChar LyX
6073 's on-screen
6074  labels, so the labels will look in the output much as they do in \SpecialChar LyX
6075 , though
6076  better.
6077  If you are using numerical citations, then \SpecialChar LyX
6078  will output numerical labels,
6079  such as [1] or [17], rather than simply showing the citation key in square
6080  brackets, as it does on-screen.
6081  If you are using author-year citations, then \SpecialChar LyX
6082  will add lowercase letters
6083  to the years, just as Bib\SpecialChar TeX
6084  does, if it finds more than one citation for
6085  a given author-year combination.
6086  The labels will be printed with the bibliography entries.
6087  Note that there is, at present, no way to customize the appearance of the
6088  labels, for example, to choose between square brackets and parentheses.
6089 \end_layout
6090
6091 \begin_layout Standard
6092 Bibliography output is handled by the same machinery that handles the presentati
6093 on of reference information in the citation dialog, so you will see in the
6094  XHTML output pretty much what you would see if you were to look at a given
6095  entry in the citation dialog.
6096  The formatting can be customized in your layout file or, preferably, in
6097  a module.
6098  See the 
6099 \emph on
6100 Customization
6101 \emph default
6102  manual for the details.
6103 \end_layout
6104
6105 \begin_layout Standard
6106 The main defect at present is that cross-referenced information is printed
6107  with every entry with which it is associated.
6108  So you can see things like this:
6109 \end_layout
6110
6111 \begin_layout Quote
6112 Jason Stanley, 
6113 \begin_inset Quotes eld
6114 \end_inset
6115
6116 Context and Logical Form
6117 \begin_inset Quotes erd
6118 \end_inset
6119
6120 , in 
6121 \emph on
6122 Language in Context: Selected Essays
6123 \emph default
6124  (Oxford: Oxford University Press, 2007), pp.
6125  30–68.
6126 \end_layout
6127
6128 \begin_layout Quote
6129 Jason Stanley, 
6130 \begin_inset Quotes eld
6131 \end_inset
6132
6133 Semantics in Context
6134 \begin_inset Quotes erd
6135 \end_inset
6136
6137 , in 
6138 \emph on
6139 Language in Context: Selected Essays
6140 \emph default
6141  (Oxford: Oxford University Press, 2007), pp.
6142  201–30.
6143 \end_layout
6144
6145 \begin_layout Standard
6146 This should be fixed before long.
6147 \end_layout
6148
6149 \begin_layout Standard
6150 There is no support at present for sectioned bibliographies.
6151  If you have multiple bibliographies, then \SpecialChar LyX
6152  will print the same bibliography
6153  over and over.
6154 \end_layout
6155
6156 \begin_layout Section
6157 Indexes
6158 \end_layout
6159
6160 \begin_layout Standard
6161 \SpecialChar LyX
6162  will happily export indexes as XHTML, but with certain limitations at the
6163  moment.
6164 \end_layout
6165
6166 \begin_layout Standard
6167 Index export will be most reliable when you do not attempt to use the fancy
6168  constructs that are described in the section on indexes in the 
6169 \emph on
6170 User's Guide
6171 \emph default
6172 .
6173 \begin_inset Foot
6174 status collapsed
6175
6176 \begin_layout Plain Layout
6177 The main issue here is that \SpecialChar LyX
6178  itself does not really handle these.
6179  It just lets you enter what you would have to enter in raw \SpecialChar LaTeX
6180 .
6181 \end_layout
6182
6183 \end_inset
6184
6185  We'll describe how they are handled using the subsection headings from
6186  that section.
6187 \end_layout
6188
6189 \begin_layout Itemize
6190 Grouping Index Entries (aka, sub-entries): \SpecialChar LyX
6191  makes an effort to support these,
6192  but the entries must be separated by 
6193 \begin_inset Quotes eld
6194 \end_inset
6195
6196  ! 
6197 \begin_inset Quotes erd
6198 \end_inset
6199
6200 , that is, there must be spaces around the exclamation point.
6201  This is because it is otherwise too difficult to check for escaped exclamation
6202  points, ones in math, and so forth.
6203 \end_layout
6204
6205 \begin_layout Itemize
6206 Page Ranges: There is no support at all for page ranges, since these make
6207  no sense with XHMTL.
6208  Instead, you will just get two index entries, one at either end.
6209 \end_layout
6210
6211 \begin_layout Itemize
6212 Cross-referencing: There is no support for cross-referencing.
6213  If \SpecialChar LyX
6214  finds an entry containing the 
6215 \begin_inset Quotes eld
6216 \end_inset
6217
6218 |see\SpecialChar ldots
6219
6220 \begin_inset Quotes erd
6221 \end_inset
6222
6223  construct, it is just dropped, and the rest is treated as an ordinary index
6224  entry.
6225 \end_layout
6226
6227 \begin_layout Itemize
6228 Index Entry Order: \SpecialChar LyX
6229  does support attempts to fix the sorting order.
6230  It will take what is before the first `@' it finds and use that for sorting,
6231  taking what follows the first `@' to be the actual entry.
6232  At present, \SpecialChar LyX
6233  does not check for escaped `@', so do not try to index email
6234  addresses.
6235 \end_layout
6236
6237 \begin_layout Itemize
6238 Index Entry Layout: You can format entries by using the text style dialog,
6239  or by using any other method available within \SpecialChar LyX
6240  itself.
6241  There is no support for constructs like: 
6242 \begin_inset Quotes eld
6243 \end_inset
6244
6245 entry|textbf
6246 \begin_inset Quotes erd
6247 \end_inset
6248
6249 .
6250  Indeed, if \SpecialChar LyX
6251  finds a pipe symbol, `|', in an entry, it will delete it and
6252  everything that follows it.
6253 \end_layout
6254
6255 \begin_layout Itemize
6256 Multiple Indexes: There is no support for multiple indexes.
6257  Rather, all index entries will be printed as one large index.
6258  To avoid our printing several versions of the index, we print only the
6259  main index, so make sure you have one.
6260 \end_layout
6261
6262 \begin_layout Section
6263 Nomenclature and Glossary
6264 \end_layout
6265
6266 \begin_layout Standard
6267 There is at present no support for glossaries.
6268  Adding it would be fairly trivial, and welcome.
6269 \end_layout
6270
6271 \begin_layout Chapter
6272 The \SpecialChar LyX
6273  Server
6274 \end_layout
6275
6276 \begin_layout Section
6277 Introduction
6278 \end_layout
6279
6280 \begin_layout Standard
6281 The `\SpecialChar LyX
6282  server' allows other programs to talk to \SpecialChar LyX
6283 , invoke \SpecialChar LyX
6284  commands, and retrieve
6285  information about the \SpecialChar LyX
6286  internal state.
6287  This is only intended for advanced users, but they should find it useful.
6288  It is by writing to the \SpecialChar LyX
6289  server, for example, that bibliography managers,
6290  such as JabRef, are able to 
6291 \begin_inset Quotes eld
6292 \end_inset
6293
6294 push
6295 \begin_inset Quotes erd
6296 \end_inset
6297
6298  citations to \SpecialChar LyX
6299 .
6300 \end_layout
6301
6302 \begin_layout Section
6303 Starting the \SpecialChar LyX
6304  Server
6305 \change_inserted -712698321 1501232552
6306
6307 \begin_inset CommandInset label
6308 LatexCommand label
6309 name "sec:Starting-the-Server"
6310
6311 \end_inset
6312
6313
6314 \change_unchanged
6315
6316 \end_layout
6317
6318 \begin_layout Standard
6319 The \SpecialChar LyX
6320  server works through the use of a pair of named pipes.
6321  These are usually located in 
6322 \begin_inset Flex Code
6323 status collapsed
6324
6325 \begin_layout Plain Layout
6326 UserDir
6327 \end_layout
6328
6329 \end_inset
6330
6331 , (except on Windows, where 
6332 \emph on
6333 local
6334 \emph default
6335  named pipes are special objects located in 
6336 \begin_inset Flex Code
6337 status collapsed
6338
6339 \begin_layout Plain Layout
6340
6341 \backslash
6342
6343 \backslash
6344 .
6345 \backslash
6346 pipe
6347 \end_layout
6348
6349 \end_inset
6350
6351 ) and have the names 
6352 \begin_inset Quotes eld
6353 \end_inset
6354
6355
6356 \begin_inset Flex Code
6357 status collapsed
6358
6359 \begin_layout Plain Layout
6360 lyxpipe.in
6361 \end_layout
6362
6363 \end_inset
6364
6365
6366 \begin_inset Quotes erd
6367 \end_inset
6368
6369  and 
6370 \begin_inset Quotes eld
6371 \end_inset
6372
6373
6374 \begin_inset Flex Code
6375 status collapsed
6376
6377 \begin_layout Plain Layout
6378 lyxpipe.out
6379 \end_layout
6380
6381 \end_inset
6382
6383
6384 \begin_inset Quotes erd
6385 \end_inset
6386
6387 .
6388  External programs write into 
6389 \begin_inset Flex Code
6390 status collapsed
6391
6392 \begin_layout Plain Layout
6393 lyxpipe.in
6394 \end_layout
6395
6396 \end_inset
6397
6398  and read back data from 
6399 \begin_inset Flex Code
6400 status collapsed
6401
6402 \begin_layout Plain Layout
6403 lyxpipe.out
6404 \end_layout
6405
6406 \end_inset
6407
6408 .
6409  The stem of the pipe names can be defined in the 
6410 \begin_inset Flex Noun
6411 status collapsed
6412
6413 \begin_layout Plain Layout
6414 Tools\SpecialChar menuseparator
6415 Preferences
6416 \end_layout
6417
6418 \end_inset
6419
6420  dialog, for example 
6421 \begin_inset Flex Code
6422 status collapsed
6423
6424 \begin_layout Plain Layout
6425 "/home/myhome/lyxpipe"
6426 \end_layout
6427
6428 \end_inset
6429
6430 , or 
6431 \begin_inset Flex Code
6432 status collapsed
6433
6434 \begin_layout Plain Layout
6435 "
6436 \backslash
6437
6438 \backslash
6439 .
6440 \backslash
6441 pipe
6442 \backslash
6443 lyxpipe"
6444 \end_layout
6445
6446 \end_inset
6447
6448  on Windows (where any working path instead of lyxpipe can be used, for
6449  example 
6450 \begin_inset Flex Code
6451 status collapsed
6452
6453 \begin_layout Plain Layout
6454 "
6455 \backslash
6456
6457 \backslash
6458 .
6459 \backslash
6460 pipe
6461 \backslash
6462 my
6463 \backslash
6464 lyx
6465 \backslash
6466 pipe"
6467 \end_layout
6468
6469 \end_inset
6470
6471  would also work).
6472  You 
6473 \emph on
6474 must
6475 \emph default
6476  configure this manually in order for the server to start.
6477 \end_layout
6478
6479 \begin_layout Standard
6480 \SpecialChar LyX
6481  will add the '
6482 \begin_inset Flex Code
6483 status collapsed
6484
6485 \begin_layout Plain Layout
6486 .in
6487 \end_layout
6488
6489 \end_inset
6490
6491 ' and '
6492 \begin_inset Flex Code
6493 status collapsed
6494
6495 \begin_layout Plain Layout
6496 .out
6497 \end_layout
6498
6499 \end_inset
6500
6501 ' to create the pipes.
6502  If one of the pipes already exists, \SpecialChar LyX
6503  will assume that another \SpecialChar LyX
6504  process
6505  is already running and will not start the server.
6506  On POSIX (Unix like) systems, if for some other reason, an unused 
6507 \begin_inset Quotes eld
6508 \end_inset
6509
6510 stale
6511 \begin_inset Quotes erd
6512 \end_inset
6513
6514  pipe is left in existence when \SpecialChar LyX
6515  closes, then \SpecialChar LyX
6516  will try to delete it.
6517  If this fails for some reason, you will need to delete the pipes manually
6518  and then restart \SpecialChar LyX
6519 .
6520  On Windows, pipes are deleted by the OS on program termination or crash,
6521  so 
6522 \begin_inset Quotes eld
6523 \end_inset
6524
6525 stale
6526 \begin_inset Quotes erd
6527 \end_inset
6528
6529  pipes should not be possible.
6530 \end_layout
6531
6532 \begin_layout Standard
6533 To have several \SpecialChar LyX
6534  processes with servers at the same time, you have to use
6535  different configurations, perhaps by using separate user directories, each
6536  with its own 
6537 \begin_inset Flex Code
6538 status collapsed
6539
6540 \begin_layout Plain Layout
6541 preferences
6542 \end_layout
6543
6544 \end_inset
6545
6546  file, for each process.
6547 \end_layout
6548
6549 \begin_layout Standard
6550 If you are developing a client program, you might find it useful to enable
6551  debugging information from the \SpecialChar LyX
6552  server.
6553  Do this by starting \SpecialChar LyX
6554  as 
6555 \begin_inset Flex Code
6556 status collapsed
6557
6558 \begin_layout Plain Layout
6559 lyx -dbg lyxserver
6560 \end_layout
6561
6562 \end_inset
6563
6564 .
6565 \end_layout
6566
6567 \begin_layout Standard
6568 You can find a complete example client written in C++ in the source distribution
6569  as 
6570 \begin_inset Flex Code
6571 status collapsed
6572
6573 \begin_layout Plain Layout
6574 development/lyxserver/server_monitor.cpp
6575 \end_layout
6576
6577 \end_inset
6578
6579 .
6580 \end_layout
6581
6582 \begin_layout Standard
6583 Another useful tool is the command-line based client found in 
6584 \begin_inset Flex Code
6585 status collapsed
6586
6587 \begin_layout Plain Layout
6588 src/client/lyxclient
6589 \end_layout
6590
6591 \end_inset
6592
6593 .
6594 \end_layout
6595
6596 \begin_layout Section
6597 Normal communication
6598 \end_layout
6599
6600 \begin_layout Standard
6601 To issue a \SpecialChar LyX
6602  call, the client writes a line of ASCII text into the input
6603  pipe.
6604  This line has the following format:
6605 \end_layout
6606
6607 \begin_layout Quote
6608 LYXCMD:
6609 \emph on
6610 clientname
6611 \emph default
6612 :
6613 \emph on
6614 function
6615 \emph default
6616 :
6617 \emph on
6618 argument
6619 \end_layout
6620
6621 \begin_layout Description
6622 clientname is a name that the client can choose arbitrarily.
6623  Its only use is that \SpecialChar LyX
6624  will echo it if it sends an answer—so a client can
6625  dispatch results from different requesters.
6626 \end_layout
6627
6628 \begin_layout Description
6629 function is the function you want \SpecialChar LyX
6630  to perform.
6631  It is the same as the commands you'd use in the minibuffer.
6632 \end_layout
6633
6634 \begin_layout Description
6635 argument is an optional argument which is meaningful only to some functions
6636  (for instance, the 
6637 \begin_inset Quotes eld
6638 \end_inset
6639
6640 self-insert
6641 \begin_inset Quotes erd
6642 \end_inset
6643
6644  LFUN will insert the argument as text at the cursor position).
6645 \end_layout
6646
6647 \begin_layout Standard
6648 The answer from \SpecialChar LyX
6649  will arrive in the output pipe and be of the form
6650 \end_layout
6651
6652 \begin_layout Quote
6653 INFO:
6654 \emph on
6655 clientname
6656 \emph default
6657 :
6658 \emph on
6659 function
6660 \emph default
6661 :
6662 \emph on
6663 data
6664 \end_layout
6665
6666 \begin_layout Standard
6667 where 
6668 \emph on
6669 clientname
6670 \emph default
6671  and 
6672 \emph on
6673 function
6674 \emph default
6675  are just echoed from the command request, while 
6676 \emph on
6677 data
6678 \emph default
6679  is more or less useful information filled according to how the command
6680  execution worked out.
6681  Some commands, such as 
6682 \begin_inset Quotes eld
6683 \end_inset
6684
6685 font-state
6686 \begin_inset Quotes erd
6687 \end_inset
6688
6689 , will return information about the internal state of \SpecialChar LyX
6690 , while other will
6691  return an empty data-response.
6692  This means that the command execution went fine.
6693 \end_layout
6694
6695 \begin_layout Standard
6696 In case of errors, the response from \SpecialChar LyX
6697  will have this form
6698 \end_layout
6699
6700 \begin_layout Quote
6701 ERROR:
6702 \emph on
6703 clientname
6704 \emph default
6705 :
6706 \emph on
6707 function
6708 \emph default
6709 :
6710 \emph on
6711 error message
6712 \end_layout
6713
6714 \begin_layout Standard
6715 where the 
6716 \emph on
6717 error message
6718 \emph default
6719  should contain an explanation of why the command failed.
6720 \end_layout
6721
6722 \begin_layout Standard
6723 Examples:
6724 \end_layout
6725
6726 \begin_layout LyX-Code
6727 echo "LYXCMD:test:beginning-of-buffer:" >~/.lyxpipe.in
6728 \begin_inset Newline newline
6729 \end_inset
6730
6731 echo "LYXCMD:test:get-xy:" >~/.lyxpipe.in
6732 \begin_inset Newline newline
6733 \end_inset
6734
6735 read a <~/.lyxpipe.out
6736 \begin_inset Newline newline
6737 \end_inset
6738
6739 echo $a
6740 \end_layout
6741
6742 \begin_layout Subsection
6743 AppleScript (Mac OS X)
6744 \end_layout
6745
6746 \begin_layout Standard
6747 Since \SpecialChar LyX
6748  2.1, \SpecialChar LyX
6749  supports basic interactions with AppleScript for normal communicatio
6750 n through the command run.
6751  This command takes a direct argument (the 
6752 \series bold
6753 function
6754 \series default
6755  to perform) and an optional argument.
6756  It either returns the output of the function or triggers an error with
6757  the error message and code.
6758 \end_layout
6759
6760 \begin_layout Standard
6761 Example:
6762 \end_layout
6763
6764 \begin_layout LyX-Code
6765 tell application "\SpecialChar LyX
6766 "
6767 \end_layout
6768
6769 \begin_layout LyX-Code
6770   try
6771 \end_layout
6772
6773 \begin_layout LyX-Code
6774     -- Stores the current file name into f
6775 \end_layout
6776
6777 \begin_layout LyX-Code
6778     set f to (run "server-get-filename" with argument "")
6779 \end_layout
6780
6781 \begin_layout LyX-Code
6782     on error the error_message number the error_number
6783 \end_layout
6784
6785 \begin_layout LyX-Code
6786       display dialog "Error: " & the error_number & ".
6787  " ¬
6788 \end_layout
6789
6790 \begin_layout LyX-Code
6791               & the error_message buttons {"OK"} default button 1
6792 \end_layout
6793
6794 \begin_layout LyX-Code
6795   end try
6796 \end_layout
6797
6798 \begin_layout LyX-Code
6799 end tell
6800 \end_layout
6801
6802 \begin_layout Section
6803 Notification
6804 \end_layout
6805
6806 \begin_layout Standard
6807 \SpecialChar LyX
6808  can notify clients of events going on asynchronously.
6809  Currently it will only do this if the user binds a key sequence with the
6810  function 
6811 \begin_inset Quotes eld
6812 \end_inset
6813
6814 notify
6815 \begin_inset Quotes erd
6816 \end_inset
6817
6818 .
6819  The format of the string \SpecialChar LyX
6820  sends is as follows:
6821 \end_layout
6822
6823 \begin_layout Quote
6824 \begin_inset Flex Code
6825 status collapsed
6826
6827 \begin_layout Plain Layout
6828 NOTIFY:
6829 \end_layout
6830
6831 \end_inset
6832
6833
6834 \emph on
6835 key-sequence
6836 \end_layout
6837
6838 \begin_layout Standard
6839 where 
6840 \emph on
6841 key-sequence
6842 \emph default
6843  is the printed representation of the key sequence that was actually typed
6844  by the user.
6845 \end_layout
6846
6847 \begin_layout Standard
6848 This mechanism can be used to extend \SpecialChar LyX
6849 's command set and implement macros.
6850  Bind some key sequence to 
6851 \begin_inset Quotes eld
6852 \end_inset
6853
6854 notify
6855 \begin_inset Quotes erd
6856 \end_inset
6857
6858 .
6859  Then start a client that listens on the output pipe, dispatches the command
6860  according to the sequence, and starts a function that may use \SpecialChar LyX
6861  calls and
6862  \SpecialChar LyX
6863  requests to issue a command or a series of commands to \SpecialChar LyX
6864 .
6865 \end_layout
6866
6867 \begin_layout Section
6868 The simple \SpecialChar LyX
6869  Server Protocol
6870 \end_layout
6871
6872 \begin_layout Standard
6873 \SpecialChar LyX
6874  implements a simple protocol that can be used for session management.
6875  All messages are of the form
6876 \end_layout
6877
6878 \begin_layout Quote
6879 LYXSRV:
6880 \emph on
6881 clientname
6882 \emph default
6883 :
6884 \emph on
6885 protocol message
6886 \end_layout
6887
6888 \begin_layout Standard
6889 where 
6890 \emph on
6891 protocol message
6892 \emph default
6893  can be 
6894 \begin_inset Quotes eld
6895 \end_inset
6896
6897 hello
6898 \begin_inset Quotes erd
6899 \end_inset
6900
6901  or 
6902 \begin_inset Quotes eld
6903 \end_inset
6904
6905 bye
6906 \begin_inset Quotes erd
6907 \end_inset
6908
6909 .
6910  If 
6911 \begin_inset Quotes eld
6912 \end_inset
6913
6914 hello
6915 \begin_inset Quotes erd
6916 \end_inset
6917
6918  is received from a client, \SpecialChar LyX
6919  will report back to inform the client that
6920  it's listening to it's messages, while 
6921 \begin_inset Quotes eld
6922 \end_inset
6923
6924 bye
6925 \begin_inset Quotes erd
6926 \end_inset
6927
6928  sent from \SpecialChar LyX
6929  will inform clients that \SpecialChar LyX
6930  is closing.
6931 \end_layout
6932
6933 \begin_layout Section
6934 Reverse DVI/PDF search
6935 \end_layout
6936
6937 \begin_layout Standard
6938 Some DVI/PDF viewers
6939 \begin_inset Foot
6940 status collapsed
6941
6942 \begin_layout Plain Layout
6943 The following viewers offer the reverse PDF search feature: Okular on KDE/Linux,
6944  Qpdfview on Unix, Skim on Mac OSX and SumatraPDF on Windows.
6945 \end_layout
6946
6947 \end_inset
6948
6949  provide 
6950 \emph on
6951 reverse search
6952 \emph default
6953  facility (also called 
6954 \emph on
6955 inverse search
6956 \emph default
6957 ).
6958  This means that you can tell \SpecialChar LyX
6959  to put the cursor to a specific line in the
6960  document by clicking at the respective position in the DVI/PDF output.
6961  To achieve this, the viewer must be able to communicate with \SpecialChar LyX
6962 .
6963  This is done via the \SpecialChar LyX
6964  server either by using the named pipe (
6965 \emph on
6966 lyxpipe
6967 \emph default
6968 ), or the UNIX domain socket (
6969 \emph on
6970 lyxsocket
6971 \emph default
6972 ) that \SpecialChar LyX
6973  creates in its temporary directory (this is the way the 
6974 \begin_inset Flex Code
6975 status collapsed
6976
6977 \begin_layout Plain Layout
6978 lyxclient
6979 \end_layout
6980
6981 \end_inset
6982
6983  program communicates with \SpecialChar LyX
6984 ).
6985  In some cases, you need a helper script that mediates between the viewer
6986  and \SpecialChar LyX
6987 , in others, the viewer can communicate with \SpecialChar LyX
6988  directly.
6989  This depends on the selected viewer and on your operating system.
6990  The same applies to the way viewers need to be configured and the way the
6991  reverse search is actually performed.
6992  In what follows, we will thus describe how to setup reverse search for
6993  specific viewers.
6994  Before we turn to this, though, we will explain what needs to be done generally
6995  to enable reverse search in the DVI/PDF output.
6996 \end_layout
6997
6998 \begin_layout Subsection
6999 Automatic setup
7000 \begin_inset CommandInset label
7001 LatexCommand label
7002 name "subsec:rev-search"
7003
7004 \end_inset
7005
7006
7007 \end_layout
7008
7009 \begin_layout Standard
7010 In most cases \SpecialChar LyX
7011  will do the work for you by 
7012 \change_inserted -712698321 1500975045
7013 pressing the following button in the toolbar: 
7014 \begin_inset Info
7015 type  "icon"
7016 arg   "buffer-toggle-output-sync"
7017 \end_inset
7018
7019 .
7020  Alternatively, you can also enable the feature by checking 
7021 \family sans
7022 Synchronize with Output
7023 \family default
7024  in 
7025 \begin_inset Flex Noun
7026 status collapsed
7027
7028 \begin_layout Plain Layout
7029
7030 \change_inserted -712698321 1500975071
7031 Document\SpecialChar menuseparator
7032 Settings\SpecialChar menuseparator
7033 Formats
7034 \end_layout
7035
7036 \end_inset
7037
7038
7039 \change_deleted -712698321 1500974764
7040 enabling the option 
7041 \begin_inset Flex Noun
7042 status collapsed
7043
7044 \begin_layout Plain Layout
7045 Synchronize with Output
7046 \end_layout
7047
7048 \end_inset
7049
7050  in the menu 
7051 \begin_inset Flex Noun
7052 status collapsed
7053
7054 \begin_layout Plain Layout
7055 Document\SpecialChar menuseparator
7056 Settings\SpecialChar menuseparator
7057 Output
7058 \end_layout
7059
7060 \end_inset
7061
7062
7063 \change_unchanged
7064 .
7065  In such a case \SpecialChar LyX
7066  will automatically insert the necessary Sync\SpecialChar TeX
7067  macro (for
7068  PDF) or load the srcltx package (for DVI) respectively.
7069  This option can be easily reached also on 
7070 \begin_inset Flex Code
7071 status collapsed
7072
7073 \begin_layout Plain Layout
7074 View/Update
7075 \end_layout
7076
7077 \end_inset
7078
7079  Toolbar.
7080 \end_layout
7081
7082 \begin_layout Standard
7083 If you need a different setting, you can select or input a custom macro
7084  from the drop down box just below 
7085 \begin_inset Flex Noun
7086 status collapsed
7087
7088 \begin_layout Plain Layout
7089 Document\SpecialChar menuseparator
7090 Settings\SpecialChar menuseparator
7091 Output\SpecialChar menuseparator
7092 Synchronize with Output
7093 \end_layout
7094
7095 \end_inset
7096
7097 .
7098 \end_layout
7099
7100 \begin_layout Standard
7101 Note that the method 
7102 \begin_inset Flex Code
7103 status collapsed
7104
7105 \begin_layout Plain Layout
7106
7107 \backslash
7108 synctex=1
7109 \end_layout
7110
7111 \end_inset
7112
7113  enables gzip compression.
7114  If your viewer does not support it, you should instead use 
7115 \begin_inset Flex Code
7116 status collapsed
7117
7118 \begin_layout Plain Layout
7119
7120 \backslash
7121 synctex=-1
7122 \end_layout
7123
7124 \end_inset
7125
7126 .
7127 \end_layout
7128
7129 \begin_layout Standard
7130 Please also note that including the 
7131 \begin_inset Flex Code
7132 status collapsed
7133
7134 \begin_layout Plain Layout
7135 srcltx
7136 \end_layout
7137
7138 \end_inset
7139
7140  package or 
7141 \begin_inset Flex Code
7142 status collapsed
7143
7144 \begin_layout Plain Layout
7145 src-specials
7146 \end_layout
7147
7148 \end_inset
7149
7150  sometimes has an undesired impact on the typesetting.
7151  Thus, you should switch output synchronization off for the final typesetting
7152  if you use the 
7153 \begin_inset Flex Code
7154 status collapsed
7155
7156 \begin_layout Plain Layout
7157 srcltx
7158 \end_layout
7159
7160 \end_inset
7161
7162  package or 
7163 \begin_inset Flex Code
7164 status collapsed
7165
7166 \begin_layout Plain Layout
7167 src-specials
7168 \end_layout
7169
7170 \end_inset
7171
7172 .
7173  
7174 \end_layout
7175
7176 \begin_layout Standard
7177 In case you need some more special settings that are not covered by the
7178  automatic settings, read the next section about how to set up output synchroniz
7179 ation manually.
7180  If the automatic setup suits your needs, you can readily jump to section
7181 \begin_inset space ~
7182 \end_inset
7183
7184
7185 \begin_inset CommandInset ref
7186 LatexCommand ref
7187 reference "subsec:configuring-viewers"
7188
7189 \end_inset
7190
7191 , where the necessary configuration steps in your viewer – needed both with
7192  the automatic and the manual setup – are described.
7193 \end_layout
7194
7195 \begin_layout Subsection
7196 Manual setup
7197 \end_layout
7198
7199 \begin_layout Standard
7200 \SpecialChar LaTeX
7201  provides several different methods for reverse search.
7202  Some are built-in in the 
7203 \begin_inset Flex Code
7204 status collapsed
7205
7206 \begin_layout Plain Layout
7207 latex/pdflatex
7208 \end_layout
7209
7210 \end_inset
7211
7212  program, some are provided by external packages.
7213  Your choice depends on whether your \SpecialChar LaTeX
7214  distribution already provides a given
7215  method (the built-in methods are rather new) and whether your viewer can
7216  cope with it.
7217  The available methods are described in the following.
7218 \end_layout
7219
7220 \begin_layout Subsubsection*
7221 Built-in DVI-search via src-specials (DVI only) 
7222 \end_layout
7223
7224 \begin_layout Standard
7225 This method provides the DVI file with the necessary information for reverse
7226  search.
7227  It is available in \SpecialChar LaTeX
7228  since quite some time (any somewhat recent \SpecialChar LaTeX
7229  distribution
7230  should include it), and it works reliably.
7231  To enable it, change the 
7232 \begin_inset Flex Noun
7233 status collapsed
7234
7235 \begin_layout Plain Layout
7236 La
7237 \family sans
7238 TeX
7239 \family default
7240  (plain)->DVI
7241 \end_layout
7242
7243 \end_inset
7244
7245  or 
7246 \begin_inset Flex Noun
7247 status collapsed
7248
7249 \begin_layout Plain Layout
7250 La
7251 \family sans
7252 TeX
7253 \family default
7254  (plain)->DraftDVI
7255 \end_layout
7256
7257 \end_inset
7258
7259  converter in 
7260 \begin_inset Flex Noun
7261 status collapsed
7262
7263 \begin_layout Plain Layout
7264 Preferences\SpecialChar menuseparator
7265 File Handling\SpecialChar menuseparator
7266 Converters
7267 \end_layout
7268
7269 \end_inset
7270
7271  to 
7272 \begin_inset Flex Code
7273 status collapsed
7274
7275 \begin_layout Plain Layout
7276 latex -src-specials $$i
7277 \end_layout
7278
7279 \end_inset
7280
7281 .
7282  If this doesn't work, check if your \SpecialChar TeX
7283  engine needs different options (the
7284  syntax might differ in some distributions).
7285 \end_layout
7286
7287 \begin_layout Subsubsection*
7288 External Packages (PDFSync and scrltx) 
7289 \end_layout
7290
7291 \begin_layout Standard
7292 The packages 
7293 \emph on
7294 pdfsync
7295 \emph default
7296  and 
7297 \emph on
7298 scrltx
7299 \emph default
7300  provide reverse search facility for PDF output (via pdflatex) and DVI output,
7301  respectively.
7302  In order to enable it, load the packages in the \SpecialChar LyX
7303  preamble: 
7304 \end_layout
7305
7306 \begin_layout Itemize
7307 \begin_inset Flex Code
7308 status collapsed
7309
7310 \begin_layout Plain Layout
7311
7312 \backslash
7313 usepackage{pdfsync}
7314 \end_layout
7315
7316 \end_inset
7317
7318  for reverse PDF search,
7319 \end_layout
7320
7321 \begin_layout Itemize
7322 \begin_inset Flex Code
7323 status collapsed
7324
7325 \begin_layout Plain Layout
7326
7327 \backslash
7328 usepackage[active]{srcltx}
7329 \end_layout
7330
7331 \end_inset
7332
7333  for reverse DVI search.
7334 \end_layout
7335
7336 \begin_layout Standard
7337 If you want to be able to perform both DVI and PDF reverse searches, you
7338  can also insert in the preamble the following lines
7339 \end_layout
7340
7341 \begin_layout LyX-Code
7342
7343 \backslash
7344 usepackage{ifpdf}
7345 \begin_inset Newline newline
7346 \end_inset
7347
7348
7349 \backslash
7350 ifpdf
7351 \begin_inset Newline newline
7352 \end_inset
7353
7354   
7355 \backslash
7356 usepackage{pdfsync}
7357 \begin_inset Newline newline
7358 \end_inset
7359
7360
7361 \backslash
7362 else
7363 \begin_inset Newline newline
7364 \end_inset
7365
7366   
7367 \backslash
7368 usepackage[active]{srcltx}
7369 \begin_inset Newline newline
7370 \end_inset
7371
7372
7373 \backslash
7374 fi
7375 \end_layout
7376
7377 \begin_layout Standard
7378 This way, you can preview the file as either DVI or PDF (pdflatex) and the
7379  right package will be used.
7380 \end_layout
7381
7382 \begin_layout Standard
7383 Note that PDFSync might affect the output layout of your document.
7384  It is therefore advised to disable PDFsync for final documents.
7385 \end_layout
7386
7387 \begin_layout Subsubsection*
7388 Built-in reverse search via Sync\SpecialChar TeX
7389  (DVI and PDF) 
7390 \end_layout
7391
7392 \begin_layout Standard
7393 Recent versions of 
7394 \begin_inset Flex Code
7395 status collapsed
7396
7397 \begin_layout Plain Layout
7398 (pdf)latex
7399 \end_layout
7400
7401 \end_inset
7402
7403  have built-in support for both PDF and DVI reverse search.
7404  This so-called 
7405 \emph on
7406 Sync\SpecialChar TeX
7407
7408 \emph default
7409  facility is basically the result of the integration of the PDFSync package
7410  to the pdftex program and its merge with the 
7411 \emph on
7412 scr-specials
7413 \emph default
7414  approach.
7415  You need at least \SpecialChar TeX
7416 Live 2008 or a recent Mik\SpecialChar TeX
7417  distribution in order to use
7418  it.
7419 \begin_inset Foot
7420 status collapsed
7421
7422 \begin_layout Plain Layout
7423 For some reason, Mik\SpecialChar TeX
7424  does not understand/obey the command \SpecialChar LyX
7425  inserts into
7426  the preamble when you check the "Enable Forward/Reverse Search" button
7427  in the toolbar and does not generate the necessary info.
7428 \end_layout
7429
7430 \begin_layout Plain Layout
7431 The generation of the required info can be forced by changing the converter
7432  "\SpecialChar LaTeX
7433  (pdflatex) -> PDF (pdflatex)" in Preferences->File handling->Converters
7434  from the default "pdflatex $$i" to "pdflatex -synctex=1 $$i" (i.e., by adding
7435  the -synctex=1 switch).
7436 \end_layout
7437
7438 \end_inset
7439
7440  Also note that only a few PDF viewers (
7441 \change_inserted -712698321 1500977288
7442 such as 
7443 \change_unchanged
7444 Okular and Qpdfview on Unix, Skim on the Mac, SumatraPDF on Windows
7445 \change_inserted -712698321 1500977299
7446 ; see the next section for details
7447 \change_unchanged
7448 ) already provide Sync\SpecialChar TeX
7449  support.
7450 \end_layout
7451
7452 \begin_layout Standard
7453 To enable Sync\SpecialChar TeX
7454  for DVI output, change the 
7455 \begin_inset Flex Noun
7456 status collapsed
7457
7458 \begin_layout Plain Layout
7459 La
7460 \family sans
7461 TeX
7462 \family default
7463  (plain) -> DVI
7464 \end_layout
7465
7466 \end_inset
7467
7468  or 
7469 \begin_inset Flex Noun
7470 status collapsed
7471
7472 \begin_layout Plain Layout
7473 La
7474 \family sans
7475 TeX
7476 \family default
7477  (plain) -> DraftDVI
7478 \end_layout
7479
7480 \end_inset
7481
7482  converter in 
7483 \begin_inset Flex Noun
7484 status collapsed
7485
7486 \begin_layout Plain Layout
7487 Preferences\SpecialChar menuseparator
7488 File Handling\SpecialChar menuseparator
7489 Converters
7490 \end_layout
7491
7492 \end_inset
7493
7494  to 
7495 \begin_inset Flex Code
7496 status collapsed
7497
7498 \begin_layout Plain Layout
7499 latex -synctex=1 $$i
7500 \end_layout
7501
7502 \end_inset
7503
7504 , and for PDF output, change the 
7505 \begin_inset Flex Noun
7506 status collapsed
7507
7508 \begin_layout Plain Layout
7509 La
7510 \family sans
7511 TeX
7512 \family default
7513  (pdflatex) -> PDF (pdflatex)
7514 \end_layout
7515
7516 \end_inset
7517
7518  
7519 \change_deleted -712698321 1500977453
7520 or
7521 \change_unchanged
7522  converter to 
7523 \begin_inset Flex Code
7524 status collapsed
7525
7526 \begin_layout Plain Layout
7527 pdflatex -synctex=1 $$i
7528 \end_layout
7529
7530 \end_inset
7531
7532 .
7533  
7534 \change_inserted -712698321 1500977740
7535 Should your viewer not be considered in the following description, or in
7536  case of missing success, please 
7537 \change_deleted -712698321 1500977741
7538 C
7539 \change_inserted -712698321 1500977744
7540 c
7541 \change_unchanged
7542 heck the documentation of your viewer whether the viewer needs to be configured
7543  for the use with Sync\SpecialChar TeX
7544 .
7545 \begin_inset Foot
7546 status collapsed
7547
7548 \begin_layout Plain Layout
7549 Note that the option 
7550 \begin_inset Flex Code
7551 status collapsed
7552
7553 \begin_layout Plain Layout
7554 -synctex=1
7555 \end_layout
7556
7557 \end_inset
7558
7559  option enables gzip compression.
7560  If your viewer does not support it, you should instead use 
7561 \begin_inset Flex Code
7562 status collapsed
7563
7564 \begin_layout Plain Layout
7565 -synctex=-1
7566 \end_layout
7567
7568 \end_inset
7569
7570 .
7571 \end_layout
7572
7573 \end_inset
7574
7575
7576 \end_layout
7577
7578 \begin_layout Subsection
7579 Configuring and using specific viewers
7580 \begin_inset CommandInset label
7581 LatexCommand label
7582 name "subsec:configuring-viewers"
7583
7584 \end_inset
7585
7586
7587 \end_layout
7588
7589 \begin_layout Subsubsection*
7590 Xdvi (all platforms)
7591 \end_layout
7592
7593 \begin_layout Standard
7594 If you use 
7595 \begin_inset Flex Code
7596 status collapsed
7597
7598 \begin_layout Plain Layout
7599 xdvi
7600 \end_layout
7601
7602 \end_inset
7603
7604 , you don't need to do anything else for performing a reverse DVI search,
7605  as \SpecialChar LyX
7606  already provides the necessary hooks for automatically using the 
7607 \begin_inset Flex Code
7608 status collapsed
7609
7610 \begin_layout Plain Layout
7611 lyxclient
7612 \end_layout
7613
7614 \end_inset
7615
7616  program.
7617  Just setup your document as described above (reverse search is triggered
7618  by Ctrl-click or Alt-click on Mac OSX, respectively).
7619 \end_layout
7620
7621 \begin_layout Standard
7622 However, if for whatever reason you want to use the named pipe instead of
7623  the socket for communicating with \SpecialChar LyX
7624 , simply change the DVI viewer in 
7625 \begin_inset Flex Noun
7626 status collapsed
7627
7628 \begin_layout Plain Layout
7629 Preferences\SpecialChar menuseparator
7630 File Handling\SpecialChar menuseparator
7631 File formats
7632 \end_layout
7633
7634 \end_inset
7635
7636  to
7637 \begin_inset Foot
7638 status collapsed
7639
7640 \begin_layout Plain Layout
7641 On Mac OSX you have to use 
7642 \begin_inset Flex Code
7643 status collapsed
7644
7645 \begin_layout Plain Layout
7646 DISPLAY=:0.0 xdvi -editor "lyxeditor.sh %f %l"
7647 \end_layout
7648
7649 \end_inset
7650
7651
7652 \end_layout
7653
7654 \end_inset
7655
7656  
7657 \begin_inset Flex Code
7658 status collapsed
7659
7660 \begin_layout Plain Layout
7661 xdvi -editor "lyxeditor.sh %f %l"
7662 \end_layout
7663
7664 \end_inset
7665
7666 , where 
7667 \begin_inset Flex Code
7668 status collapsed
7669
7670 \begin_layout Plain Layout
7671 lyxeditor.sh
7672 \end_layout
7673
7674 \end_inset
7675
7676  is a suitable script.
7677  For example, a minimal shell script is the following one:
7678 \end_layout
7679
7680 \begin_layout LyX-Code
7681 #!/bin/sh
7682 \begin_inset Newline newline
7683 \end_inset
7684
7685 LYXPIPE="/path/to/lyxpipe"
7686 \begin_inset Newline newline
7687 \end_inset
7688
7689 COMMAND="LYXCMD:revdvi:server-goto-file-row:$1 $2"
7690 \begin_inset Newline newline
7691 \end_inset
7692
7693 echo "$COMMAND" > "${LYXPIPE}".in || exit
7694 \begin_inset Newline newline
7695 \end_inset
7696
7697 read TMP < "${LYXPIPE}".out || exit
7698 \end_layout
7699
7700 \begin_layout Standard
7701 where 
7702 \begin_inset Flex Code
7703 status collapsed
7704
7705 \begin_layout Plain Layout
7706 /path/to/lyxpipe
7707 \end_layout
7708
7709 \end_inset
7710
7711  is the LyXServer pipe path specified in 
7712 \begin_inset Flex Noun
7713 status collapsed
7714
7715 \begin_layout Plain Layout
7716 Preferences\SpecialChar menuseparator
7717 Paths
7718 \end_layout
7719
7720 \end_inset
7721
7722 .
7723 \begin_inset Foot
7724 status collapsed
7725
7726 \begin_layout Plain Layout
7727 In the 
7728 \begin_inset Flex Code
7729 status collapsed
7730
7731 \begin_layout Plain Layout
7732 development/tools
7733 \end_layout
7734
7735 \end_inset
7736
7737  folder of a source distribution you can find a 
7738 \begin_inset Flex Code
7739 status collapsed
7740
7741 \begin_layout Plain Layout
7742 lyxeditor
7743 \end_layout
7744
7745 \end_inset
7746
7747  script which is able to locate the 
7748 \emph on
7749 lyxpipe
7750 \emph default
7751  based on your preferences.
7752 \end_layout
7753
7754 \end_inset
7755
7756
7757 \end_layout
7758
7759 \begin_layout Subsubsection*
7760 MacDviX (Mac OSX)
7761 \end_layout
7762
7763 \begin_layout Standard
7764 At the end of 
7765 \begin_inset Flex Code
7766 status collapsed
7767
7768 \begin_layout Plain Layout
7769 /Applications/MacDviX_Folder/calleditor.script
7770 \end_layout
7771
7772 \end_inset
7773
7774 , add the following lines:
7775 \end_layout
7776
7777 \begin_layout LyX-Code
7778 /Applications/LyX.app/Contents/MacOS/lyxeditor "$2" $1
7779 \begin_inset Newline newline
7780 \end_inset
7781
7782 exit 1
7783 \end_layout
7784
7785 \begin_layout Standard
7786 Modify the lines accordingly if you install \SpecialChar LyX
7787  somewhere else than in the
7788  Applications folder.
7789 \end_layout
7790
7791 \begin_layout Standard
7792 Reverse search is triggered by Alt-click (OPTION-click).
7793 \end_layout
7794
7795 \begin_layout Subsubsection*
7796 Skim (Mac OSX)
7797 \end_layout
7798
7799 \begin_layout Standard
7800 Enter 
7801 \begin_inset Flex Code
7802 status collapsed
7803
7804 \begin_layout Plain Layout
7805 open -a Skim.app $$i
7806 \end_layout
7807
7808 \end_inset
7809
7810  to the viewer setting in 
7811 \begin_inset Flex Noun
7812 status collapsed
7813
7814 \begin_layout Plain Layout
7815 Preferences\SpecialChar menuseparator
7816 File Handling\SpecialChar menuseparator
7817 File formats\SpecialChar menuseparator
7818 PDF (pdflatex)
7819 \end_layout
7820
7821 \end_inset
7822
7823 , and then in 
7824 \begin_inset Flex Noun
7825 status collapsed
7826
7827 \begin_layout Plain Layout
7828 Skim\SpecialChar menuseparator
7829 Preferences\SpecialChar menuseparator
7830 Sync
7831 \end_layout
7832
7833 \end_inset
7834
7835  choose 
7836 \begin_inset Flex Noun
7837 status collapsed
7838
7839 \begin_layout Plain Layout
7840 custom
7841 \end_layout
7842
7843 \end_inset
7844
7845  preset and enter command 
7846 \begin_inset Flex Noun
7847 status collapsed
7848
7849 \begin_layout Plain Layout
7850 /Applications/\SpecialChar LyX
7851 .app/Contents/MacOS/lyxeditor
7852 \end_layout
7853
7854 \end_inset
7855
7856 .
7857 \end_layout
7858
7859 \begin_layout Standard
7860 Reverse search is triggered by COMMAND-SHIFT-click
7861 \end_layout
7862
7863 \begin_layout Subsubsection*
7864 Evince (GNOME)
7865 \end_layout
7866
7867 \begin_layout Standard
7868 Reverse search with evince does not work out of the box, but it can be achieved
7869  by means of some third party helper scripts.
7870  Please refer to 
7871 \begin_inset CommandInset href
7872 LatexCommand href
7873 target "http://wiki.lyx.org/LyX/SyncTeX"
7874 literal "false"
7875
7876 \end_inset
7877
7878  for details.
7879 \end_layout
7880
7881 \begin_layout Subsubsection*
7882 Okular (KDE)
7883 \end_layout
7884
7885 \begin_layout Standard
7886 Go to 
7887 \begin_inset Flex Noun
7888 status collapsed
7889
7890 \begin_layout Plain Layout
7891 Settings\SpecialChar menuseparator
7892 Configure Okular\SpecialChar menuseparator
7893 Editor
7894 \end_layout
7895
7896 \end_inset
7897
7898
7899 \change_inserted -712698321 1500981642
7900  and
7901 \change_deleted -712698321 1500981641
7902 ,
7903 \change_unchanged
7904  select 
7905 \change_deleted -712698321 1500981634
7906
7907 \begin_inset Quotes eld
7908 \end_inset
7909
7910 Custom Text Editor
7911 \change_inserted -712698321 1500981635
7912 LyX
7913 \change_unchanged
7914
7915 \begin_inset Quotes erd
7916 \end_inset
7917
7918  
7919 \change_inserted -712698321 1500981659
7920 as editor.
7921  This inserts the appropriate 
7922 \change_deleted -712698321 1500981663
7923 and add the 
7924 \change_unchanged
7925 command 
7926 \change_inserted -712698321 1500981665
7927 (
7928 \change_unchanged
7929
7930 \begin_inset Flex Code
7931 status collapsed
7932
7933 \begin_layout Plain Layout
7934 lyxclient -g %f %l
7935 \end_layout
7936
7937 \end_inset
7938
7939
7940 \change_inserted -712698321 1500981668
7941 )
7942 \change_unchanged
7943 .
7944 \end_layout
7945
7946 \begin_layout Standard
7947 Reverse search is triggered by SHIFT-click.
7948 \end_layout
7949
7950 \begin_layout Subsubsection*
7951 Qpdfview (Unix)
7952 \end_layout
7953
7954 \begin_layout Standard
7955 Qpdfview supports Sync\SpecialChar TeX
7956  since version 0.3.5.
7957  Go to 
7958 \begin_inset Flex Noun
7959 status collapsed
7960
7961 \begin_layout Plain Layout
7962 Edit\SpecialChar menuseparator
7963 Settings\SpecialChar menuseparator
7964 Behavior
7965 \end_layout
7966
7967 \end_inset
7968
7969 , click on the input field of the 
7970 \begin_inset Quotes eld
7971 \end_inset
7972
7973 Source editor
7974 \begin_inset Quotes erd
7975 \end_inset
7976
7977  item and add the command 
7978 \begin_inset Flex Code
7979 status collapsed
7980
7981 \begin_layout Plain Layout
7982 lyxclient -g %1 %2
7983 \end_layout
7984
7985 \end_inset
7986
7987 .
7988 \end_layout
7989
7990 \begin_layout Standard
7991 Reverse search is triggered by double-click or, in more recent versions,
7992  by context menu.
7993 \end_layout
7994
7995 \begin_layout Subsubsection*
7996 YAP (Windows)
7997 \end_layout
7998
7999 \begin_layout Standard
8000 Launch yap, choose its 
8001 \begin_inset Flex Noun
8002 status collapsed
8003
8004 \begin_layout Plain Layout
8005 View\SpecialChar menuseparator
8006 Options
8007 \end_layout
8008
8009 \end_inset
8010
8011  menu and select the 
8012 \begin_inset Quotes eld
8013 \end_inset
8014
8015 Inverse DVI Search
8016 \begin_inset Quotes erd
8017 \end_inset
8018
8019  tab.
8020  Click on the 
8021 \begin_inset Quotes eld
8022 \end_inset
8023
8024 New\SpecialChar ldots
8025
8026 \begin_inset Quotes erd
8027 \end_inset
8028
8029  button and, in the window that opens, enter 
8030 \begin_inset Quotes eld
8031 \end_inset
8032
8033 \SpecialChar LyX
8034  Editor
8035 \begin_inset Quotes erd
8036 \end_inset
8037
8038  (or any other name you like) in the 
8039 \begin_inset Quotes eld
8040 \end_inset
8041
8042 Name:
8043 \begin_inset Quotes erd
8044 \end_inset
8045
8046  field.
8047  Now click on the button labeled 
8048 \begin_inset Quotes eld
8049 \end_inset
8050
8051 \SpecialChar ldots
8052
8053 \begin_inset Quotes erd
8054 \end_inset
8055
8056  to open a file dialog and navigate to the directory containing the batch
8057  file 
8058 \begin_inset Flex Code
8059 status collapsed
8060
8061 \begin_layout Plain Layout
8062 lyxeditor.bat
8063 \end_layout
8064
8065 \end_inset
8066
8067  (see below).
8068  Select 
8069 \begin_inset Flex Code
8070 status collapsed
8071
8072 \begin_layout Plain Layout
8073 lyxeditor.bat
8074 \end_layout
8075
8076 \end_inset
8077
8078  and then specify the program arguments as 
8079 \begin_inset Flex Code
8080 status collapsed
8081
8082 \begin_layout Plain Layout
8083 %f %l
8084 \end_layout
8085
8086 \end_inset
8087
8088 .
8089  The 
8090 \begin_inset Flex Code
8091 status collapsed
8092
8093 \begin_layout Plain Layout
8094 lyxeditor.bat
8095 \end_layout
8096
8097 \end_inset
8098
8099  wrapper is used for communicating with \SpecialChar LyX
8100  through the 
8101 \emph on
8102 lyxpipe
8103 \emph default
8104  and is as follows:
8105 \end_layout
8106
8107 \begin_layout LyX-Code
8108 @echo off
8109 \begin_inset Newline newline
8110 \end_inset
8111
8112 echo LYXCMD:revdvi:server-goto-file-row:%~1 %2> 
8113 \backslash
8114
8115 \backslash
8116 .
8117 \backslash
8118 pipe
8119 \backslash
8120 lyxpipe.in
8121 \begin_inset Newline newline
8122 \end_inset
8123
8124 type 
8125 \backslash
8126
8127 \backslash
8128 .
8129 \backslash
8130 pipe
8131 \backslash
8132 lyxpipe.out
8133 \end_layout
8134
8135 \begin_layout Standard
8136 Make sure that the \SpecialChar LyX
8137 Server pipe path you specified in \SpecialChar LyX
8138  is 
8139 \begin_inset Flex Code
8140 status collapsed
8141
8142 \begin_layout Plain Layout
8143
8144 \backslash
8145
8146 \backslash
8147 .
8148 \backslash
8149 pipe
8150 \backslash
8151 lyxpipe
8152 \end_layout
8153
8154 \end_inset
8155
8156 , otherwise change the 
8157 \begin_inset Flex Code
8158 status collapsed
8159
8160 \begin_layout Plain Layout
8161 lyxeditor.bat
8162 \end_layout
8163
8164 \end_inset
8165
8166  wrapper accordingly.
8167 \end_layout
8168
8169 \begin_layout Standard
8170 In yap, reverse search is triggered by double-click.
8171 \end_layout
8172
8173 \begin_layout Subsubsection*
8174 SumatraPDF (Windows)
8175 \end_layout
8176
8177 \begin_layout Standard
8178 In order to use SumatraPDF for inverse search, enter 
8179 \begin_inset Flex Code
8180 status collapsed
8181
8182 \begin_layout Plain Layout
8183 SumatraPDF -inverse-search "lyxeditor.bat "%f" %l"
8184 \end_layout
8185
8186 \end_inset
8187
8188  in the viewer setting in 
8189 \begin_inset Flex Noun
8190 status collapsed
8191
8192 \begin_layout Plain Layout
8193 Preferences\SpecialChar menuseparator
8194 File Handling\SpecialChar menuseparator
8195 File formats\SpecialChar menuseparator
8196 PDF (pdflatex)
8197 \end_layout
8198
8199 \end_inset
8200
8201 , where 
8202 \begin_inset Flex Code
8203 status collapsed
8204
8205 \begin_layout Plain Layout
8206 lyxeditor.bat
8207 \end_layout
8208
8209 \end_inset
8210
8211  is the previous wrapper.
8212  If SumatraPDF.exe is not in your command PATH, use its full file name.
8213 \end_layout
8214
8215 \begin_layout Standard
8216 Reverse search is triggered by double-click.
8217 \end_layout
8218
8219 \begin_layout Subsubsection*
8220 YAP (Cygwin)
8221 \end_layout
8222
8223 \begin_layout Standard
8224 First of all, make sure that yap is your default DVI viewer in the Windows
8225  environment, then launch it, choose its 
8226 \begin_inset Flex Noun
8227 status collapsed
8228
8229 \begin_layout Plain Layout
8230 View\SpecialChar menuseparator
8231 Options
8232 \end_layout
8233
8234 \end_inset
8235
8236  menu and select the 
8237 \begin_inset Quotes eld
8238 \end_inset
8239
8240 Inverse DVI Search
8241 \begin_inset Quotes erd
8242 \end_inset
8243
8244  tab.
8245  Click on the 
8246 \begin_inset Quotes eld
8247 \end_inset
8248
8249 New\SpecialChar ldots
8250
8251 \begin_inset Quotes erd
8252 \end_inset
8253
8254  button and, in the window that opens, enter 
8255 \begin_inset Quotes eld
8256 \end_inset
8257
8258 \SpecialChar LyX
8259  Editor
8260 \begin_inset Quotes erd
8261 \end_inset
8262
8263  (or any other name you like) in the 
8264 \begin_inset Quotes eld
8265 \end_inset
8266
8267 Name:
8268 \begin_inset Quotes erd
8269 \end_inset
8270
8271  field.
8272  Now click on the button labeled 
8273 \begin_inset Quotes eld
8274 \end_inset
8275
8276 \SpecialChar ldots
8277
8278 \begin_inset Quotes erd
8279 \end_inset
8280
8281  to open a file dialog and navigate to the directory containing the 
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  program (which is installed by default on Cygwin along with the \SpecialChar LyX
8292  executable).
8293  Select 
8294 \begin_inset Flex Code
8295 status collapsed
8296
8297 \begin_layout Plain Layout
8298 lyxeditor.exe
8299 \end_layout
8300
8301 \end_inset
8302
8303  and then specify the program arguments as 
8304 \begin_inset Flex Code
8305 status collapsed
8306
8307 \begin_layout Plain Layout
8308 -g %f %l
8309 \end_layout
8310
8311 \end_inset
8312
8313 .
8314  In this way, you will be using the 
8315 \emph on
8316 lyxsocket
8317 \emph default
8318  for communicating with \SpecialChar LyX
8319 .
8320  If, for whatever reason, you want to use the 
8321 \emph on
8322 lyxpipe
8323 \emph default
8324 , omit the 
8325 \begin_inset Flex Code
8326 status collapsed
8327
8328 \begin_layout Plain Layout
8329 -g
8330 \end_layout
8331
8332 \end_inset
8333
8334  option and be sure to specify the \SpecialChar LyX
8335 Server pipe path in the \SpecialChar LyX
8336  preferences.
8337 \end_layout
8338
8339 \begin_layout Standard
8340 In yap, reverse search is triggered by double-click.
8341 \end_layout
8342
8343 \begin_layout Subsubsection*
8344 SumatraPDF (Cygwin)
8345 \end_layout
8346
8347 \begin_layout Standard
8348 In order to use SumatraPDF for inverse search, enter 
8349 \begin_inset Flex Code
8350 status collapsed
8351
8352 \begin_layout Plain Layout
8353 SumatraPDF -inverse-search "lyxeditor -g %f %l"
8354 \end_layout
8355
8356 \end_inset
8357
8358  in the viewer setting in 
8359 \begin_inset Flex Noun
8360 status collapsed
8361
8362 \begin_layout Plain Layout
8363 Preferences\SpecialChar menuseparator
8364 File Handling\SpecialChar menuseparator
8365 File formats\SpecialChar menuseparator
8366 PDF (pdflatex)
8367 \end_layout
8368
8369 \end_inset
8370
8371 .
8372  If SumatraPDF.exe is not in your command PATH, use its full posix path.
8373  The 
8374 \begin_inset Flex Code
8375 status collapsed
8376
8377 \begin_layout Plain Layout
8378 -g
8379 \end_layout
8380
8381 \end_inset
8382
8383  enables communication via the 
8384 \emph on
8385 lyxsocket
8386 \emph default
8387 .
8388  Again, omit the 
8389 \begin_inset Flex Code
8390 status collapsed
8391
8392 \begin_layout Plain Layout
8393 -g
8394 \end_layout
8395
8396 \end_inset
8397
8398  option if you want to use the 
8399 \emph on
8400 lyxpipe
8401 \emph default
8402 , and be sure to specify the \SpecialChar LyX
8403 Server pipe path in the \SpecialChar LyX
8404  preferences.
8405 \end_layout
8406
8407 \begin_layout Standard
8408 Reverse search is triggered by double-click.
8409 \end_layout
8410
8411 \begin_layout Section
8412 Forward search
8413 \end_layout
8414
8415 \begin_layout Standard
8416 Forward search is, as the name implies, in a sense the 
8417 \begin_inset Quotes eld
8418 \end_inset
8419
8420 opposite
8421 \begin_inset Quotes erd
8422 \end_inset
8423
8424  of reverse search.
8425  It allows you to let the viewer jump to a given position from within \SpecialChar LyX
8426 .
8427  If forward search is set up (as described in what follows), you can put
8428  the cursor anywhere in your \SpecialChar LyX
8429  document, and hit 
8430 \begin_inset Flex Noun
8431 status collapsed
8432
8433 \begin_layout Plain Layout
8434 Navigate\SpecialChar menuseparator
8435 Forward search
8436 \end_layout
8437
8438 \end_inset
8439
8440  (or select 
8441 \begin_inset Flex Noun
8442 status collapsed
8443
8444 \begin_layout Plain Layout
8445 Forward search
8446 \end_layout
8447
8448 \end_inset
8449
8450  in the context menu via right mouse click), and then the viewer will jump
8451  to that position as well.
8452  This implies, of course, that your viewer supports this function.
8453 \end_layout
8454
8455 \begin_layout Standard
8456 To make forward search possible, you first need to provide the generated
8457  output PDF/DVI file with additional information about the \SpecialChar TeX
8458  sources.
8459  This can be done via the methods described in the section 
8460 \begin_inset CommandInset ref
8461 LatexCommand ref
8462 reference "subsec:rev-search"
8463
8464 \end_inset
8465
8466 .
8467 \end_layout
8468
8469 \begin_layout Standard
8470 Additionally, you need to configure \SpecialChar LyX
8471  for using your viewers in 
8472 \begin_inset Flex Noun
8473 status collapsed
8474
8475 \begin_layout Plain Layout
8476 Tools\SpecialChar menuseparator
8477 Preferences\SpecialChar menuseparator
8478 Output\SpecialChar menuseparator
8479 General
8480 \end_layout
8481
8482 \end_inset
8483
8484 .
8485  We provide a range of tested configurations for some viewers, which you
8486  can select from the drop down list.
8487  If none of these configurations suits you, you have to find out and enter
8488  a suitable configuration yourself.
8489  The definition syntax uses the following placeholders:
8490 \end_layout
8491
8492 \begin_layout Itemize
8493 \noindent
8494 \begin_inset Flex Code
8495 status collapsed
8496
8497 \begin_layout Plain Layout
8498 $$n
8499 \end_layout
8500
8501 \end_inset
8502
8503 : row number
8504 \end_layout
8505
8506 \begin_layout Itemize
8507 \noindent
8508 \begin_inset Flex Code
8509 status collapsed
8510
8511 \begin_layout Plain Layout
8512 $$t
8513 \end_layout
8514
8515 \end_inset
8516
8517 : name of the (temporary) exported .tex file (without path)
8518 \end_layout
8519
8520 \begin_layout Itemize
8521 \noindent
8522 \begin_inset Flex Code
8523 status collapsed
8524
8525 \begin_layout Plain Layout
8526 $$f
8527 \end_layout
8528
8529 \end_inset
8530
8531 : name of the (temporary) exported .tex file (including path)
8532 \end_layout
8533
8534 \begin_layout Itemize
8535 \noindent
8536 \begin_inset Flex Code
8537 status collapsed
8538
8539 \begin_layout Plain Layout
8540 $$o
8541 \end_layout
8542
8543 \end_inset
8544
8545 : name of the exported output file (either dvi or pdf, depending on which
8546  one exists in the temporary directory)
8547 \end_layout
8548
8549 \begin_layout Standard
8550 Note that only some of the viewers provide full and usable forward search
8551  functionality out of the box, among them yap, xdvi, okular
8552 \begin_inset Foot
8553 status collapsed
8554
8555 \begin_layout Plain Layout
8556 You might want to set 
8557 \begin_inset Flex Code
8558 status collapsed
8559
8560 \begin_layout Plain Layout
8561 okular –unique
8562 \end_layout
8563
8564 \end_inset
8565
8566  in 
8567 \begin_inset Flex Noun
8568 status collapsed
8569
8570 \begin_layout Plain Layout
8571 Tools\SpecialChar menuseparator
8572 Preferences\SpecialChar menuseparator
8573 File Handling\SpecialChar menuseparator
8574 File
8575 \begin_inset space ~
8576 \end_inset
8577
8578 Formats
8579 \end_layout
8580
8581 \end_inset
8582
8583
8584 \end_layout
8585
8586 \end_inset
8587
8588 , qpdfview, and SumatraPDF
8589 \begin_inset Foot
8590 status collapsed
8591
8592 \begin_layout Plain Layout
8593 SumatraPDF can also use DDE commands through the external program CMCDDE
8594  — downloadable from 
8595 \begin_inset CommandInset href
8596 LatexCommand href
8597 target "http://www.istri.fr/spip/zip/CMCDDE.zip"
8598 literal "false"
8599
8600 \end_inset
8601
8602
8603 \end_layout
8604
8605 \end_inset
8606
8607 .
8608  Others, such as evince
8609 \begin_inset Foot
8610 status collapsed
8611
8612 \begin_layout Plain Layout
8613 Forward search with evince can be achieved by means of third party helper
8614  scripts.
8615  Please refer to 
8616 \begin_inset CommandInset href
8617 LatexCommand href
8618 target "http://wiki.lyx.org/LyX/SyncTeX"
8619 literal "false"
8620
8621 \end_inset
8622
8623  for details.
8624 \end_layout
8625
8626 \end_inset
8627
8628 , require some extra tools in order to use forward search.
8629  While many of the widespread PDF viewers (most notably Adobe Reader) do
8630  not support forward search at all, some other viewers – e.
8631 \begin_inset space \thinspace{}
8632 \end_inset
8633
8634 g.
8635  xpdf – allow at least to reload the document and jump to a specific page
8636  of the file, so you can at least navigate 
8637 \begin_inset Quotes eld
8638 \end_inset
8639
8640 near
8641 \begin_inset Quotes erd
8642 \end_inset
8643
8644 .
8645  This latter functionality is provided by an external call of synctex (see
8646  the predefined example configurations).
8647  
8648 \end_layout
8649
8650 \begin_layout Standard
8651 Forward search works both with DVI and PDF output.
8652  \SpecialChar LyX
8653  simply checks which preview format you have used before (i.
8654 \begin_inset space \thinspace{}
8655 \end_inset
8656
8657 e., which format is already there in the temporary directory) and chooses
8658  the appropriate configuration for the respective format.
8659 \end_layout
8660
8661 \begin_layout Chapter
8662 Special Document Classes
8663 \end_layout
8664
8665 \begin_layout Section
8666 A&A Paper
8667 \end_layout
8668
8669 \begin_layout Standard
8670 by 
8671 \noun on
8672 Peter Sütterlin
8673 \end_layout
8674
8675 \begin_layout Subsection
8676 Introduction
8677 \end_layout
8678
8679 \begin_layout Standard
8680 This section describes how \SpecialChar LyX
8681  can be used to write articles for submission
8682  to the scientific journal 
8683 \emph on
8684 Astronomy and Astrophysics
8685 \emph default
8686  (
8687 \begin_inset Flex URL
8688 status collapsed
8689
8690 \begin_layout Plain Layout
8691
8692 http://www.edpsciences.fr/aa/
8693 \end_layout
8694
8695 \end_inset
8696
8697 ) using Version 5.01 of the document class 
8698 \family typewriter
8699 aa.cls
8700 \family default
8701 .
8702  This package can be downloaded from the ftp site
8703 \end_layout
8704
8705 \begin_layout Standard
8706 \begin_inset VSpace medskip
8707 \end_inset
8708
8709
8710 \end_layout
8711
8712 \begin_layout Standard
8713 \align center
8714 \begin_inset Flex URL
8715 status collapsed
8716
8717 \begin_layout Plain Layout
8718
8719 ftp://ftp.edpsciences.org/pub/aa/readme.html
8720 \end_layout
8721
8722 \end_inset
8723
8724
8725 \end_layout
8726
8727 \begin_layout Standard
8728 \begin_inset VSpace medskip
8729 \end_inset
8730
8731
8732 \end_layout
8733
8734 \begin_layout Standard
8735 A manual comes together with that package, and this text is not meant to
8736  replace the original manual but is merely a short guide in how to realize
8737  the correct form of your paper.
8738  
8739 \end_layout
8740
8741 \begin_layout Standard
8742 Please note that the publisher of the journal was changed from Springer
8743  to EDP Sciences starting January 1, 2001.
8744  That change involved also some slight changes to the style files, namely
8745  the removal of the thesaurus command.
8746  The \SpecialChar LyX
8747  class aa supports the newest version of these style files, V 5.01.
8748  If you have an older version installed, please upgrade.
8749  For compatibility, the old (version 4) layout has been kept as 
8750 \family sans
8751 article (A&A V4)
8752 \family default
8753 .
8754  Please refer to the comments in 
8755 \family typewriter
8756 \SpecialChar LyX
8757 Dir/layouts/aapaper.layout
8758 \family default
8759 .
8760 \end_layout
8761
8762 \begin_layout Subsection
8763 Getting started
8764 \end_layout
8765
8766 \begin_layout Standard
8767 It is recommended you start from the example template distributed with \SpecialChar LyX
8768 .
8769  If you are not using a template, note the following settings:
8770 \end_layout
8771
8772 \begin_layout Itemize
8773 Select 
8774 \family sans
8775 article (A&A)
8776 \family default
8777  in the 
8778 \family sans
8779 Document\SpecialChar menuseparator
8780 Settings
8781 \family default
8782  dialog (OK, that one was obvious).
8783 \end_layout
8784
8785 \begin_layout Itemize
8786 Don't change the option 
8787 \family sans
8788 Page
8789 \begin_inset space ~
8790 \end_inset
8791
8792 style
8793 \family default
8794 : Leave it set to 
8795 \family sans
8796 default
8797 \family default
8798 .
8799  The whole layout is done by the macros, you shouldn't change anything.
8800 \end_layout
8801
8802 \begin_layout Subsection
8803 The header block
8804 \end_layout
8805
8806 \begin_layout Standard
8807 First thing to enter is the header information.
8808  It consists of seven entries, of which some are optional.
8809  They are
8810 \end_layout
8811
8812 \begin_layout Itemize
8813
8814 \family sans
8815 Title
8816 \family default
8817 : [required] 
8818 \end_layout
8819
8820 \begin_layout Itemize
8821
8822 \family sans
8823 Subtitle
8824 \family default
8825 : [optional] 
8826 \end_layout
8827
8828 \begin_layout Itemize
8829
8830 \family sans
8831 Author
8832 \family default
8833 : [required]
8834 \end_layout
8835
8836 \begin_layout Itemize
8837
8838 \family sans
8839 Address
8840 \family default
8841 : [required]
8842 \end_layout
8843
8844 \begin_layout Itemize
8845
8846 \family sans
8847 Offprints
8848 \family default
8849 : [optional] if more than one author: whom to contact for offprint requests.
8850 \end_layout
8851
8852 \begin_layout Itemize
8853
8854 \family sans
8855 Mail
8856 \family default
8857 : [optional] mail address for contacts.
8858 \end_layout
8859
8860 \begin_layout Itemize
8861
8862 \family sans
8863 Date
8864 \family default
8865 : [required].
8866  Suggested format is 
8867 \family typewriter
8868 Received: <date>; Accepted <date> 
8869 \end_layout
8870
8871 \begin_layout Standard
8872 There is no need to issue the 
8873 \family typewriter
8874
8875 \backslash
8876 maketitle
8877 \family default
8878  command, this is done automatically by \SpecialChar LyX
8879  when the header is finished.
8880  Although the order of the single header entries doesn't matter it is advised
8881  to keep the above sequence, just to get the best optics and meets the layout
8882  of the real document.
8883 \end_layout
8884
8885 \begin_layout Standard
8886 If you want to place footnotes in the header block, e.
8887 \begin_inset space \thinspace{}
8888 \end_inset
8889
8890 g.
8891 \begin_inset space \space{}
8892 \end_inset
8893
8894 to state your present address, just use the standard footnote via the menu
8895  
8896 \family sans
8897 Insert\SpecialChar menuseparator
8898 Footnote.
8899
8900 \family default
8901  \SpecialChar LyX
8902  will automagically use the term 
8903 \family typewriter
8904
8905 \backslash
8906 thanks{}
8907 \family default
8908  in that case.
8909 \change_inserted -712698321 1501150851
8910
8911 \end_layout
8912
8913 \begin_layout Standard
8914
8915 \change_inserted -712698321 1501150892
8916 Under 
8917 \family sans
8918 Edit\SpecialChar menuseparator
8919 Text Style
8920 \family default
8921 , you'll find two insets which are relevant for the titling:
8922 \end_layout
8923
8924 \begin_layout Itemize
8925
8926 \change_inserted -712698321 1501150936
8927
8928 \family sans
8929 Institute
8930 \family typewriter
8931  
8932 \family default
8933 to mark corresponding author\SpecialChar breakableslash
8934 institute pairs.
8935  The institutes are numbered sequentially as they appear in the 
8936 \family sans
8937 Address
8938 \family default
8939  field, so you have to put a marker to each author.
8940 \end_layout
8941
8942 \begin_layout Itemize
8943
8944 \change_inserted -712698321 1501150947
8945
8946 \family sans
8947 Email
8948 \family default
8949  to supply an email address for fast contact.
8950 \change_unchanged
8951
8952 \end_layout
8953
8954 \begin_layout Standard
8955 In addition to these topics, the macros use
8956 \change_deleted -712698321 1501150958
8957  three
8958 \change_inserted -712698321 1501150961
8959  one
8960 \change_unchanged
8961  additional \SpecialChar LaTeX
8962  command
8963 \change_deleted -712698321 1501150963
8964 s
8965 \change_unchanged
8966  that ha
8967 \change_deleted -712698321 1501150967
8968 ve
8969 \change_inserted -712698321 1501150967
8970 s
8971 \change_unchanged
8972  no counterpart in \SpecialChar LyX
8973 :
8974 \end_layout
8975
8976 \begin_layout Itemize
8977
8978 \family typewriter
8979
8980 \backslash
8981 and
8982 \family default
8983  to separate different names for more than one author and institute, respectivel
8984 y.
8985 \end_layout
8986
8987 \begin_layout Itemize
8988
8989 \change_deleted -712698321 1501150911
8990
8991 \family typewriter
8992
8993 \backslash
8994 inst{<nr>}
8995 \family default
8996 to mark corresponding author/institute pairs.
8997  The institutes are numbered sequentially as they appear in the 
8998 \family sans
8999 Address
9000 \family default
9001  field, so you have to put a marker to each author.
9002 \end_layout
9003
9004 \begin_layout Itemize
9005
9006 \change_deleted -712698321 1501150911
9007
9008 \family typewriter
9009
9010 \backslash
9011 email{address}
9012 \family default
9013  to supply an email address for fast contact.
9014 \change_unchanged
9015
9016 \end_layout
9017
9018 \begin_layout Standard
9019
9020 \change_deleted -712698321 1501150972
9021 In all cases, t
9022 \change_inserted -712698321 1501150972
9023 T
9024 \change_unchanged
9025 he appropriate command has to be entered in \SpecialChar LyX
9026  and marked as \SpecialChar LaTeX
9027  code.
9028  See the examples.
9029  
9030 \end_layout
9031
9032 \begin_layout Subsection
9033 The abstract
9034 \end_layout
9035
9036 \begin_layout Standard
9037 The abstract should immediately follow the header block.
9038  With version 5 the abstract environment was changed to a command, and there
9039  is now a resctriction to only one paragraph.
9040  In addition, it should contain an entry with the keywords.
9041  This is 
9042 \change_deleted -712698321 1501151111
9043 not yet implemented for \SpecialChar LyX
9044 , therefore you have to enter the \SpecialChar LaTeX
9045  command 
9046 \family typewriter
9047
9048 \backslash
9049 keywords{}
9050 \family default
9051  by hand and mark it as \SpecialChar LaTeX
9052  code
9053 \change_inserted -712698321 1501151122
9054 done via the paragraph style 
9055 \family sans
9056 Keywords
9057 \change_unchanged
9058
9059 \family default
9060 .
9061  Refer to the example paper.
9062 \end_layout
9063
9064 \begin_layout Subsection
9065 Supported environments
9066 \end_layout
9067
9068 \begin_layout Standard
9069 The A&A paper layout supports the following environments for structuring
9070  your text:
9071 \end_layout
9072
9073 \begin_layout Itemize
9074
9075 \family sans
9076 Standard
9077 \end_layout
9078
9079 \begin_layout Itemize
9080
9081 \family sans
9082 Section
9083 \end_layout
9084
9085 \begin_layout Itemize
9086
9087 \family sans
9088 Subsection
9089 \end_layout
9090
9091 \begin_layout Itemize
9092
9093 \family sans
9094 Subsubsection
9095 \end_layout
9096
9097 \begin_layout Itemize
9098
9099 \family sans
9100 Itemize
9101 \end_layout
9102
9103 \begin_layout Itemize
9104
9105 \family sans
9106 Enumerate
9107 \end_layout
9108
9109 \begin_layout Itemize
9110
9111 \family sans
9112 Description
9113 \end_layout
9114
9115 \begin_layout Itemize
9116
9117 \family sans
9118 Caption
9119 \end_layout
9120
9121 \begin_layout Itemize
9122
9123 \family sans
9124 Abstract
9125 \end_layout
9126
9127 \begin_layout Itemize
9128
9129 \family sans
9130 Acknowledgment
9131 \end_layout
9132
9133 \begin_layout Itemize
9134
9135 \family sans
9136 Bibliography
9137 \end_layout
9138
9139 \begin_layout Itemize
9140
9141 \family sans
9142 \SpecialChar LaTeX
9143
9144 \end_layout
9145
9146 \begin_layout Subsection
9147 Commands not supported by \SpecialChar LyX
9148
9149 \end_layout
9150
9151 \begin_layout Standard
9152 Some commands are not yet supported by the 
9153 \family sans
9154 paper (A&A)
9155 \family default
9156  layout for \SpecialChar LyX
9157 .
9158  Some have already been mentioned.
9159  For the sake of completeness, they are listed all together here:
9160 \end_layout
9161
9162 \begin_layout Itemize
9163
9164 \family typewriter
9165
9166 \backslash
9167 and
9168 \end_layout
9169
9170 \begin_layout Itemize
9171
9172 \change_deleted -712698321 1501151229
9173
9174 \family typewriter
9175
9176 \backslash
9177 email
9178 \change_unchanged
9179
9180 \end_layout
9181
9182 \begin_layout Itemize
9183
9184 \change_deleted -712698321 1501151308
9185
9186 \family typewriter
9187
9188 \backslash
9189 appendix
9190 \change_unchanged
9191
9192 \end_layout
9193
9194 \begin_layout Itemize
9195
9196 \family typewriter
9197
9198 \backslash
9199 authorrunning
9200 \end_layout
9201
9202 \begin_layout Itemize
9203
9204 \change_deleted -712698321 1501151231
9205
9206 \family typewriter
9207
9208 \backslash
9209 inst{}
9210 \end_layout
9211
9212 \begin_layout Itemize
9213
9214 \change_deleted -712698321 1501151231
9215
9216 \family typewriter
9217
9218 \backslash
9219 keywords{}
9220 \change_unchanged
9221
9222 \end_layout
9223
9224 \begin_layout Itemize
9225
9226 \family typewriter
9227
9228 \backslash
9229 object{}
9230 \end_layout
9231
9232 \begin_layout Itemize
9233
9234 \family typewriter
9235
9236 \backslash
9237 titlerunning{}
9238 \end_layout
9239
9240 \begin_layout Standard
9241 If you want to use any of these commands, you have to enter them yourself.
9242  
9243 \series bold
9244 Do not forget to mark them as \SpecialChar LaTeX
9245  code!
9246 \end_layout
9247
9248 \begin_layout Subsection
9249 Figure and Table Floats
9250 \end_layout
9251
9252 \begin_layout Standard
9253 \SpecialChar LyX
9254  provides support for the necessary float environments 
9255 \family sans
9256 figure, figure*, table
9257 \family default
9258  and 
9259 \family sans
9260 table*
9261 \family default
9262 , therefore we won't tell much about it here.
9263  Refer to the 
9264 \emph on
9265 User's
9266 \begin_inset space ~
9267 \end_inset
9268
9269 Guide
9270 \emph default
9271 .
9272  Just remember that tables should be left-aligned.
9273  For that, select the table and change the alignment in 
9274 \family sans
9275 Edit\SpecialChar menuseparator
9276 Paragraph
9277 \begin_inset space ~
9278 \end_inset
9279
9280 Settings.
9281 \end_layout
9282
9283 \begin_layout Standard
9284 There is only one special thing: the figures with caption besides the figure.
9285  To create such a figure, you have to do the following:
9286 \end_layout
9287
9288 \begin_layout Enumerate
9289 Create a wide figure float: 
9290 \family sans
9291 Insert\SpecialChar menuseparator
9292 Float\SpecialChar menuseparator
9293 Figure
9294 \family default
9295 , then right click in the figure and select 
9296 \family sans
9297 Span
9298 \begin_inset space ~
9299 \end_inset
9300
9301 columns
9302 \family default
9303 .
9304 \end_layout
9305
9306 \begin_layout Enumerate
9307 Enter your caption text.
9308 \end_layout
9309
9310 \begin_layout Enumerate
9311 Press 
9312 \family sans
9313 Return
9314 \family default
9315  to move the cursor above the caption.
9316 \end_layout
9317
9318 \begin_layout Enumerate
9319 Insert your figure
9320 \end_layout
9321
9322 \begin_layout Enumerate
9323 Position the cursor behind the figure and insert a horizontal fill: 
9324 \family sans
9325 Insert\SpecialChar menuseparator
9326 Special
9327 \begin_inset space ~
9328 \end_inset
9329
9330 Character\SpecialChar menuseparator
9331 Horizontal
9332 \begin_inset space ~
9333 \end_inset
9334
9335 Fill
9336 \family default
9337 .
9338 \end_layout
9339
9340 \begin_layout Enumerate
9341 Switch to \SpecialChar LaTeX
9342  mode: 
9343 \family sans
9344 M-c
9345 \begin_inset space ~
9346 \end_inset
9347
9348 t
9349 \family default
9350 .
9351 \end_layout
9352
9353 \begin_layout Enumerate
9354 Enter 
9355 \family typewriter
9356
9357 \backslash
9358 parbox[b]{55mm}{
9359 \family default
9360 .
9361  
9362 \series bold
9363 Do not close the brace!
9364 \end_layout
9365
9366 \begin_layout Enumerate
9367 Position the cursor behind the caption text, switch to \SpecialChar LaTeX
9368  mode and insert
9369  the closing brace: 
9370 \family sans
9371 M-c
9372 \begin_inset space ~
9373 \end_inset
9374
9375 t
9376 \family default
9377  
9378 \family typewriter
9379 }
9380 \family default
9381 .
9382 \end_layout
9383
9384 \begin_layout Standard
9385 Also, refer to the figures in the example paper.
9386 \end_layout
9387
9388 \begin_layout Subsection
9389 Referee layout
9390 \end_layout
9391
9392 \begin_layout Standard
9393 For submission, the paper has to be formated in a special double-spacing
9394  layout.
9395  For this purpose, you have to give the option 
9396 \family typewriter
9397 referee
9398 \family default
9399  to the documentclass.
9400  This must be done using the 
9401 \change_deleted -712698321 1501151486
9402 extra
9403 \change_inserted -712698321 1501151487
9404 custom
9405 \change_unchanged
9406  class options field in the 
9407 \family sans
9408 Document\SpecialChar menuseparator
9409 Settings
9410 \family default
9411  dialog.
9412  Just enter the string 
9413 \family typewriter
9414 referee
9415 \family default
9416  there.
9417 \end_layout
9418
9419 \begin_layout Subsection
9420 The example paper
9421 \end_layout
9422
9423 \begin_layout Standard
9424 The 
9425 \family sans
9426 Examples
9427 \family default
9428  directory contains an example paper written with \SpecialChar LyX
9429 .
9430  It is the example paper from the original macro package, translated to
9431  \SpecialChar LyX
9432 .
9433  Use it for inspiration, and compare the original \SpecialChar LaTeX
9434  code with \SpecialChar LyX
9435  way of writing.
9436 \end_layout
9437
9438 \begin_layout Section
9439 AAS\SpecialChar TeX
9440
9441 \end_layout
9442
9443 \begin_layout Standard
9444 by 
9445 \noun on
9446 Mike Ressler
9447 \end_layout
9448
9449 \begin_layout Subsection
9450 Introduction
9451 \end_layout
9452
9453 \begin_layout Standard
9454 AAS\SpecialChar TeX
9455  is a set of macros produced by the American Astronomical Society to
9456  facilitate electronic manuscript submission to the three journals they
9457  publish: the Astrophysical Journal (including the Letters and Supplement),
9458  the Astronomical Journal, and the Publications of the Astronomical Society
9459  of the Pacific.
9460  \SpecialChar LyX
9461  has proven to be an excellent tool for generating these documents, especially
9462  given its equation, citation, and figure handling capabilities.
9463  \SpecialChar LyX
9464  requires version 5.0 (or higher) of these macros; preferably 
9465 \change_deleted -712698321 1501152764
9466 5.2
9467 \change_inserted -712698321 1501152766
9468 6.0
9469 \change_unchanged
9470 , which is the version described here, or higher.
9471  Versions prior to 5.0 are intended for use with \SpecialChar LaTeX
9472 2.09 and are fundamentally
9473  incompatible with \SpecialChar LyX
9474 .
9475  The AAS\SpecialChar TeX
9476  package may be downloaded from the AAS\SpecialChar TeX
9477  Web site
9478 \end_layout
9479
9480 \begin_layout Standard
9481 \begin_inset VSpace medskip
9482 \end_inset
9483
9484
9485 \end_layout
9486
9487 \begin_layout Standard
9488 \align center
9489 \begin_inset Flex URL
9490 status collapsed
9491
9492 \begin_layout Plain Layout
9493
9494 https://aas.org/aastex/aastex-downloads
9495 \end_layout
9496
9497 \end_inset
9498
9499
9500 \end_layout
9501
9502 \begin_layout Standard
9503 \begin_inset VSpace medskip
9504 \end_inset
9505
9506
9507 \end_layout
9508
9509 \begin_layout Standard
9510 A complete user guide is contained in that package and you should familiarize
9511  yourself with it thoroughly before embarking on writing a paper in \SpecialChar LyX
9512 .
9513  \SpecialChar LyX
9514  will not reduce the need to figure out all the AAS\SpecialChar TeX
9515  commands, it will only
9516  reduce the drudgery of typing everything in.
9517  It is your responsibility to ensure that the final exported \SpecialChar LaTeX
9518  document conforms
9519  completely to the requirements of the journal to which you are submitting
9520  your paper.
9521 \end_layout
9522
9523 \begin_layout Subsection
9524 Starting a New Paper
9525 \end_layout
9526
9527 \begin_layout Standard
9528 I strongly suggest that you start with the AAS\SpecialChar TeX
9529  template file.
9530  Click on 
9531 \family sans
9532 File\SpecialChar menuseparator
9533 New from
9534 \family default
9535  
9536 \family sans
9537 Template
9538 \family default
9539 , enter the new file name, then choose the 
9540 \family typewriter
9541 aastex
9542 \change_inserted -712698321 1501152130
9543 6
9544 \change_unchanged
9545 .lyx
9546 \family default
9547  template.
9548  This will show the most common fields found in a manuscript.
9549  Simply overwrite the existing text (including the brackets, 
9550 \family typewriter
9551 <>
9552 \family default
9553 ) with the correct information.
9554  Many of the AAS\SpecialChar TeX
9555  commands and environments can be implemented directly in
9556  \SpecialChar LyX
9557 , but some cannot
9558 \change_deleted -712698321 1501152213
9559 : most noticeably 
9560 \family typewriter
9561
9562 \backslash
9563 altaffilmark
9564 \family default
9565  and 
9566 \family typewriter
9567
9568 \backslash
9569 altaffiltext
9570 \family default
9571 , which should stick out like a sore thumb if you actually just opened the
9572  template file
9573 \change_unchanged
9574 .
9575  For commands such as these, the \SpecialChar LaTeX
9576  code must be entered directly and marked
9577  as such.
9578  Such commands are referred to as \SpecialChar TeX
9579  code, or Evil Red Text.
9580  I tried to minimize the amount of \SpecialChar TeX
9581  code needed in an AAS\SpecialChar TeX
9582  document
9583 \change_deleted -712698321 1501152220
9584 , but there is still a bit more required than any of us would like
9585 \change_unchanged
9586 .
9587 \end_layout
9588
9589 \begin_layout Subsection
9590 Finishing Your Paper
9591 \end_layout
9592
9593 \begin_layout Standard
9594 When the paper is finished to your satisfaction and previews/prints correctly,
9595  there are a few 
9596 \begin_inset Quotes eld
9597 \end_inset
9598
9599 postprocessing
9600 \begin_inset Quotes erd
9601 \end_inset
9602
9603  actions which need to be done before you submit it to the journals.
9604  
9605 \end_layout
9606
9607 \begin_layout Enumerate
9608 Export your paper as a \SpecialChar LaTeX
9609  file (
9610 \family sans
9611 File\SpecialChar menuseparator
9612 Export\SpecialChar menuseparator
9613 \SpecialChar LaTeX
9614
9615 \family default
9616 ).
9617  
9618 \end_layout
9619
9620 \begin_layout Enumerate
9621 Edit the resulting 
9622 \family typewriter
9623 .tex
9624 \family default
9625  file with your favorite text editor
9626 \end_layout
9627
9628 \begin_deeper
9629 \begin_layout Enumerate
9630 remove the comment lines before the 
9631 \family typewriter
9632
9633 \backslash
9634 documentclass
9635 \family default
9636  command
9637 \end_layout
9638
9639 \begin_layout Enumerate
9640 remove the 
9641 \family typewriter
9642
9643 \backslash
9644 usepackage...{fontenc}
9645 \family default
9646  line if it appears (usually just after 
9647 \family typewriter
9648
9649 \backslash
9650 documentclass
9651 \family default
9652 }; also remove the 
9653 \family typewriter
9654
9655 \backslash
9656 secnumdepth
9657 \family default
9658  line if it appears.
9659 \end_layout
9660
9661 \begin_layout Enumerate
9662 remove everything between (and including) the 
9663 \family typewriter
9664
9665 \backslash
9666 makeatletter
9667 \family default
9668  and 
9669 \family typewriter
9670
9671 \backslash
9672 makeatother
9673 \family default
9674  commands, except for any commands you specifically put into the \SpecialChar LaTeX
9675  preamble
9676  (which should appear immediately after the 
9677 \begin_inset Quotes eld
9678 \end_inset
9679
9680 User specified \SpecialChar LaTeX
9681  commands
9682 \begin_inset Quotes erd
9683 \end_inset
9684
9685  comment in the 
9686 \family typewriter
9687 .tex
9688 \family default
9689  file).
9690 \end_layout
9691
9692 \end_deeper
9693 \begin_layout Enumerate
9694 Run the resulting file through \SpecialChar LaTeX
9695  to make sure it still processes correctly.
9696 \end_layout
9697
9698 \begin_layout Enumerate
9699 Reread the journal requirements to make sure your filenames and formats
9700  are correct.
9701 \end_layout
9702
9703 \begin_layout Enumerate
9704 Submit it.
9705 \end_layout
9706
9707 \begin_layout Subsection
9708 Comments On Specific Commands
9709 \end_layout
9710
9711 \begin_layout Standard
9712 I will not describe the detailed usage of the individual AAS\SpecialChar TeX
9713  commands: the
9714  AAS\SpecialChar TeX
9715  User Guide (
9716 \family typewriter
9717 aasguide.tex
9718 \family default
9719 ) gives a good description of each.
9720  Thus it's probably easiest for me to go down the list as found in the guide
9721  and offer comments where necessary.
9722  So let's begin \SpecialChar ldots
9723
9724 \end_layout
9725
9726 \begin_layout Subsubsection
9727 Things that work as expected
9728 \end_layout
9729
9730 \begin_layout Standard
9731 Because they work as you might expect, I simply list them and the section
9732  they are found in: 
9733 \family typewriter
9734
9735 \backslash
9736 documentclass
9737 \family default
9738  (2.1.1), 
9739 \family typewriter
9740
9741 \backslash
9742 begin{document}
9743 \family default
9744  (2.2), 
9745 \family typewriter
9746
9747 \backslash
9748 title
9749 \family default
9750  (2.3), 
9751 \family typewriter
9752
9753 \backslash
9754 author
9755 \family default
9756  (2.3), 
9757 \family typewriter
9758
9759 \backslash
9760 affil
9761 \family default
9762  (2.3), 
9763 \family typewriter
9764
9765 \backslash
9766 abstract
9767 \family default
9768  (2.4), 
9769 \family typewriter
9770
9771 \backslash
9772 keywords
9773 \family default
9774  (2.5), 
9775 \family typewriter
9776
9777 \backslash
9778 section
9779 \family default
9780  (2.7), 
9781 \family typewriter
9782
9783 \backslash
9784 subsection
9785 \family default
9786  (2.7), 
9787 \family typewriter
9788
9789 \backslash
9790 subsubsection
9791 \family default
9792  (2.7), 
9793 \family typewriter
9794
9795 \backslash
9796 paragraph
9797 \family default
9798  (2.7), 
9799 \family typewriter
9800
9801 \backslash
9802 facility
9803 \family default
9804  (2.10), 
9805 \family typewriter
9806
9807 \backslash
9808 begin{displaymath}
9809 \family default
9810  (2.12), 
9811 \family typewriter
9812
9813 \backslash
9814 begin{equation}
9815 \family default
9816  (2.12), 
9817 \family typewriter
9818
9819 \backslash
9820 begin{eqnarray}
9821 \family default
9822  (2.12), 
9823 \family typewriter
9824
9825 \backslash
9826 begin{mathletters}
9827 \family default
9828  (2.12), 
9829 \family typewriter
9830
9831 \backslash
9832 begin{thebibliography}
9833 \family default
9834  (2.13.1), 
9835 \family typewriter
9836
9837 \backslash
9838 bibitem
9839 \family default
9840  (2.13.2), all the cite commands and their variations (2.13.2), the generic
9841  graphicx figure commands (2.14.1), 
9842 \family typewriter
9843
9844 \backslash
9845 begin{table}
9846 \family default
9847  (2.15.4), 
9848 \family typewriter
9849
9850 \backslash
9851 begin{tabular}
9852 \family default
9853  (2.15.4), 
9854 \family typewriter
9855
9856 \backslash
9857 caption
9858 \family default
9859  (2.15.4), 
9860 \family typewriter
9861
9862 \backslash
9863 label
9864 \family default
9865  (2.15.4, amongst other places), 
9866 \family typewriter
9867
9868 \backslash
9869 tablerefs
9870 \family default
9871  (2.15.5), 
9872 \family typewriter
9873
9874 \backslash
9875 tablecomments
9876 \family default
9877  (2.15.5), 
9878 \family typewriter
9879
9880 \backslash
9881 url
9882 \family default
9883  (2.17.4), 
9884 \family typewriter
9885
9886 \backslash
9887 end{document}
9888 \family default
9889  (2.18).
9890 \end_layout
9891
9892 \begin_layout Standard
9893 The following style options also work correctly: 
9894 \family typewriter
9895 longabstract
9896 \family default
9897  (2.4), 
9898 \family typewriter
9899 preprint
9900 \family default
9901  (3.2.1), 
9902 \family typewriter
9903 preprint2
9904 \family default
9905  (3.2.2), 
9906 \family typewriter
9907 eqsecnum
9908 \family default
9909  (3.3), 
9910 \family typewriter
9911 flushrt
9912 \family default
9913  (3.4).
9914  Simply put them in the 
9915 \family sans
9916 Options
9917 \family default
9918  box in 
9919 \family sans
9920 Layout\SpecialChar menuseparator
9921 Document
9922 \family default
9923 .
9924 \end_layout
9925
9926 \begin_layout Subsubsection
9927 Things that work, but require more comment
9928 \end_layout
9929
9930 \begin_layout Standard
9931 The following items work, but require a little more discussion:
9932 \end_layout
9933
9934 \begin_layout Itemize
9935 These items are reserved for use by the journal editors, but you can put
9936  them into the \SpecialChar LaTeX
9937  preamble if you feel compelled to do so: 
9938 \family typewriter
9939
9940 \backslash
9941 received
9942 \family default
9943
9944 \family typewriter
9945
9946 \backslash
9947 revised
9948 \family default
9949
9950 \family typewriter
9951
9952 \backslash
9953 accepted
9954 \family default
9955
9956 \family typewriter
9957
9958 \backslash
9959 ccc
9960 \family default
9961
9962 \family typewriter
9963
9964 \backslash
9965 cpright
9966 \family default
9967  (all from 2.1.3)
9968 \end_layout
9969
9970 \begin_layout Itemize
9971 These items may be placed in the \SpecialChar LaTeX
9972  preamble, and are included as blanks in
9973  the template file: 
9974 \family typewriter
9975
9976 \backslash
9977 slugcomment
9978 \family default
9979  (2.1.4), 
9980 \family typewriter
9981
9982 \backslash
9983 shorttitle
9984 \family default
9985  (2.1.5), 
9986 \family typewriter
9987
9988 \backslash
9989 shortauthors
9990 \family default
9991  (2.1.5)
9992 \end_layout
9993
9994 \begin_layout Itemize
9995
9996 \family typewriter
9997
9998 \backslash
9999 email
10000 \family default
10001  (2.3) – can only be used 
10002 \begin_inset Quotes eld
10003 \end_inset
10004
10005 standalone
10006 \begin_inset Quotes erd
10007 \end_inset
10008
10009 , not in the middle of a paragraph.
10010  Use \SpecialChar TeX
10011  code if you need to embed it.
10012 \end_layout
10013
10014 \begin_layout Itemize
10015
10016 \family typewriter
10017
10018 \backslash
10019 and
10020 \family default
10021  (2.3) – will have extra {} after it.
10022  This should not cause an error.
10023 \end_layout
10024
10025 \begin_layout Itemize
10026
10027 \family typewriter
10028
10029 \backslash
10030 notetoeditor
10031 \family default
10032  (2.6) – can only be used 
10033 \begin_inset Quotes eld
10034 \end_inset
10035
10036 standalone
10037 \begin_inset Quotes erd
10038 \end_inset
10039
10040 , not in the middle of a paragraph.
10041  Use \SpecialChar TeX
10042  code if you need to embed it.
10043 \end_layout
10044
10045 \begin_layout Itemize
10046
10047 \family typewriter
10048
10049 \backslash
10050 placetable
10051 \family default
10052  (2.8) – can't insert a cross-reference tag, you must type the tag name by
10053  hand
10054 \end_layout
10055
10056 \begin_layout Itemize
10057
10058 \family typewriter
10059
10060 \backslash
10061 placefigure
10062 \family default
10063  (2.8) – same as for 
10064 \family typewriter
10065
10066 \backslash
10067 placetable
10068 \end_layout
10069
10070 \begin_layout Itemize
10071
10072 \family typewriter
10073
10074 \backslash
10075 acknowledgements
10076 \family default
10077  (2.9) – will have extra {} after it.
10078  This should not cause an error.
10079 \end_layout
10080
10081 \begin_layout Itemize
10082
10083 \family typewriter
10084
10085 \backslash
10086 appendix
10087 \family default
10088  (2.11) – will have extra {} after it.
10089  This should not cause an error.
10090 \end_layout
10091
10092 \begin_layout Itemize
10093
10094 \family typewriter
10095
10096 \backslash
10097 figcaption
10098 \family default
10099  (2.14.2) – you can insert an optional filename argument by placing the cursor
10100  at the beginning of the text and selecting 
10101 \family sans
10102 Insert\SpecialChar menuseparator
10103 Short Title
10104 \family default
10105 .
10106  
10107 \begin_inset Quotes eld
10108 \end_inset
10109
10110 Short Title
10111 \begin_inset Quotes erd
10112 \end_inset
10113
10114  inserts an optional argument of the type needed by 
10115 \family typewriter
10116
10117 \backslash
10118 figcaption
10119 \family default
10120 .
10121  Hopefully it will be renamed someday.
10122 \end_layout
10123
10124 \begin_layout Itemize
10125
10126 \family typewriter
10127
10128 \backslash
10129 objectname
10130 \family default
10131  (2.17.1) – same as 
10132 \family typewriter
10133
10134 \backslash
10135 figcaption
10136 \family default
10137  for the catalog ID optional parameter
10138 \end_layout
10139
10140 \begin_layout Itemize
10141
10142 \family typewriter
10143
10144 \backslash
10145 dataset
10146 \family default
10147  (2.17.1) – same as 
10148 \family typewriter
10149
10150 \backslash
10151 figcaption
10152 \family default
10153  for the catalog ID optional parameter
10154 \end_layout
10155
10156 \begin_layout Subsubsection
10157 Things not implemented, use \SpecialChar TeX
10158  code
10159 \end_layout
10160
10161 \begin_layout Standard
10162
10163 \change_deleted -712698321 1501152401
10164
10165 \family typewriter
10166
10167 \backslash
10168 altaffilmark
10169 \family default
10170  (2.3), 
10171 \family typewriter
10172
10173 \backslash
10174 altaffiltext
10175 \family default
10176  (2.3), 
10177 \change_unchanged
10178
10179 \family typewriter
10180
10181 \backslash
10182 eqnum
10183 \family default
10184  (2.12), 
10185 \family typewriter
10186
10187 \backslash
10188 setcounter{equation}
10189 \family default
10190  (2.12), Journal name abbreviations (2.13.4), 
10191 \family typewriter
10192
10193 \backslash
10194 figurenum
10195 \family default
10196  (2.14.1), 
10197 \family typewriter
10198
10199 \backslash
10200 epsscale
10201 \family default
10202  (2.14.1), 
10203 \family typewriter
10204
10205 \backslash
10206 plotone
10207 \family default
10208  (2.14.1), 
10209 \family typewriter
10210
10211 \backslash
10212 plottwo
10213 \family default
10214  (2.14.1), 
10215 \family typewriter
10216
10217 \backslash
10218 tablenum
10219 \family default
10220  (2.15.4), 
10221 \family typewriter
10222
10223 \backslash
10224 tableline
10225 \family default
10226  (2.15.4, insert it as the first element in the lefthand cell after where
10227  you want it.
10228  Don't use any of \SpecialChar LyX
10229 's rules in the table), 
10230 \family typewriter
10231
10232 \backslash
10233 tablenotemark
10234 \family default
10235  (2.15.5), 
10236 \family typewriter
10237
10238 \backslash
10239 tablenotetext
10240 \family default
10241  (2.15.5), much of Misc (2.17, except 
10242 \family typewriter
10243
10244 \backslash
10245 objectname
10246 \family default
10247
10248 \family typewriter
10249
10250 \backslash
10251 dataset
10252 \family default
10253
10254 \family typewriter
10255
10256 \backslash
10257 url
10258 \family default
10259 , and 
10260 \family typewriter
10261
10262 \backslash
10263 email
10264 \family default
10265 ; see above), 
10266 \family typewriter
10267
10268 \backslash
10269 singlespace
10270 \family default
10271  (3.1), 
10272 \family typewriter
10273
10274 \backslash
10275 doublespace
10276 \family default
10277  (3.1), 
10278 \family typewriter
10279
10280 \backslash
10281 onecolumn
10282 \family default
10283  (3.2), 
10284 \family typewriter
10285
10286 \backslash
10287 twocolumn
10288 \family default
10289  (3.2)
10290 \end_layout
10291
10292 \begin_layout Subsubsection
10293 Things that cannot be implemented
10294 \end_layout
10295
10296 \begin_layout Standard
10297 \SpecialChar ldots
10298  at least in any meaningful sort of way, so I suggest ignoring them.
10299  They are the references environment (2.13.3), and the deluxetable environment
10300  (2.15).
10301  If you really, really need to use deluxetable, I suggest editing it in
10302  a separate file with a text editor, then using 
10303 \family sans
10304 Insert\SpecialChar menuseparator
10305 Child
10306 \begin_inset space ~
10307 \end_inset
10308
10309 Document
10310 \family default
10311  to include it in your \SpecialChar LyX
10312  document.
10313  See the 
10314 \family typewriter
10315 aas_sample.lyx
10316 \family default
10317  file to see an example of this.
10318 \end_layout
10319
10320 \begin_layout Subsection
10321 FAQs, Tips, Tricks, and Other Ruminations
10322 \end_layout
10323
10324 \begin_layout Subsubsection
10325 Getting \SpecialChar LyX
10326  and AAS\SpecialChar TeX
10327  to cooperate
10328 \end_layout
10329
10330 \begin_layout Standard
10331 It can be a bit tricky to get \SpecialChar LyX
10332  to recognize a new layout and document class.
10333  When all else fails, do this:
10334 \end_layout
10335
10336 \begin_layout Enumerate
10337 Make certain that \SpecialChar LaTeX
10338  can find AAS\SpecialChar TeX
10339 .
10340  Copy sample.tex (and perhaps table.tex) from the AAS\SpecialChar TeX
10341  distribution into a
10342  directory completely unrelated to \SpecialChar LaTeX
10343  or AAS\SpecialChar TeX
10344  and run \SpecialChar LaTeX
10345  on 
10346 \family typewriter
10347 sample.tex
10348 \family default
10349 .
10350 \end_layout
10351
10352 \begin_layout Enumerate
10353 Make certain that 
10354 \family typewriter
10355 aastex.layout
10356 \family default
10357  appears in \SpecialChar LyX
10358 's 
10359 \family typewriter
10360 layouts
10361 \family default
10362  folder
10363 \end_layout
10364
10365 \begin_layout Enumerate
10366 Rerun 
10367 \family sans
10368 Tools\SpecialChar menuseparator
10369 Reconfigure
10370 \family default
10371  in \SpecialChar LyX
10372 , then restart \SpecialChar LyX
10373 .
10374 \end_layout
10375
10376 \begin_layout Enumerate
10377 Open a regular new file, not from a template.
10378  Does AAS\SpecialChar TeX
10379  appear in the class list in 
10380 \family sans
10381 Document\SpecialChar menuseparator
10382 Settings
10383 \family default
10384 ?
10385 \end_layout
10386
10387 \begin_layout Standard
10388 If you get a warning from an existing AAS\SpecialChar TeX
10389  document about not being able
10390  to find the AAS\SpecialChar TeX
10391  layout or a message about 
10392 \begin_inset Quotes eld
10393 \end_inset
10394
10395 You should not mix title layouts with normal ones
10396 \begin_inset Quotes erd
10397 \end_inset
10398
10399 , things haven't been installed correctly.
10400 \end_layout
10401
10402 \begin_layout Subsubsection
10403 \SpecialChar LaTeX
10404  error processing a table 
10405 \end_layout
10406
10407 \begin_layout Standard
10408 \SpecialChar LyX
10409 , by default, attempts to center the table caption/title.
10410  This seems to produce a bad interaction in AAS\SpecialChar TeX
10411  so you should click somewhere
10412  in the caption/title, then select 
10413 \family sans
10414 Edit\SpecialChar menuseparator
10415 Paragraph
10416 \begin_inset space ~
10417 \end_inset
10418
10419 Settings
10420 \family default
10421 , then set the 
10422 \family sans
10423 Alignment
10424 \family default
10425  to 
10426 \family sans
10427 Block
10428 \family default
10429 .
10430  This took care of it for me.
10431 \end_layout
10432
10433 \begin_layout Subsubsection
10434 References
10435 \end_layout
10436
10437 \begin_layout Standard
10438 A couple of things: 1) I have noticed some funny spacing in the reference
10439  entries in the text.
10440  When you enter the bibliography item data, make sure their is 
10441 \emph on
10442 no
10443 \emph default
10444  space between the last author and the parenthesis setting off the year;
10445  
10446 \emph on
10447 e.
10448 \begin_inset space \thinspace{}
10449 \end_inset
10450
10451 g.
10452 \begin_inset space \space{}
10453 \end_inset
10454
10455
10456 \emph default
10457 type 
10458 \family typewriter
10459 Ressler(1992)
10460 \family default
10461 , not 
10462 \family typewriter
10463 Ressler (1992)
10464 \family default
10465 .
10466  2) Entering the references at all is not obvious.
10467  The easiest thing is to start typing your first reference at the end of
10468  the document, then mark it as type 
10469 \family sans
10470 References
10471 \family default
10472 .
10473  That will put a small gray box in front of what you just typed.
10474  Click on the box to fill in the rest of the information.
10475  For new references, go to the end of an existing reference and press return.
10476  That will create a new line with its own box, etc.
10477 \end_layout
10478
10479 \begin_layout Subsubsection
10480 Including EPS files
10481 \end_layout
10482
10483 \begin_layout Standard
10484 Even though AAS\SpecialChar TeX
10485  provides its own figure commands (
10486 \family typewriter
10487
10488 \backslash
10489 plotone
10490 \family default
10491 , for example), I much prefer \SpecialChar LaTeX
10492 's standard figure commands (with the default
10493  graphicx).
10494  You can insert the 
10495 \family typewriter
10496
10497 \backslash
10498 plotone
10499 \family default
10500 , etc.
10501 \begin_inset space ~
10502 \end_inset
10503
10504 commands as \SpecialChar TeX
10505  code into a Figure Float box if you desire, but I never have
10506  much luck getting the layout right.
10507  With the standard graphics, \SpecialChar LyX
10508  will insert a 
10509 \family typewriter
10510
10511 \backslash
10512 usepackage{graphicx}
10513 \family default
10514  command into the \SpecialChar LaTeX
10515  preamble and handle the figures in the standard \SpecialChar LaTeX2e
10516  way,
10517  interspersing the figures in the text.
10518  I believe ApJ accepts figures exactly this way now; AJ might still use
10519  the 
10520 \begin_inset Quotes eld
10521 \end_inset
10522
10523 stack everything at the end
10524 \begin_inset Quotes erd
10525 \end_inset
10526
10527  technique.
10528 \end_layout
10529
10530 \begin_layout Subsubsection
10531 Things I could have done, but didn't
10532 \end_layout
10533
10534 \begin_layout Standard
10535 There are a few 
10536 \begin_inset Quotes eld
10537 \end_inset
10538
10539 pretty
10540 \begin_inset Quotes erd
10541 \end_inset
10542
10543  things I could have implemented, but chose not to.
10544  For instance, I saw no point in double-spacing the text in the \SpecialChar LyX
10545  window,
10546  even though it is double-spaced in the paper manuscript.
10547  Also, I chose not to make separate layouts for the preprint and preprint2
10548  styles.
10549  Since I assume you will spend most of your time in the plain manuscript
10550  mode anyway, I decided not to chew up more disk space with this.
10551  
10552 \end_layout
10553
10554 \begin_layout Subsection
10555 Final Caveat
10556 \end_layout
10557
10558 \begin_layout Standard
10559 Your mileage may vary.
10560  I've now had papers published by both ApJ and AJ that have had 98% of the
10561  effort done in \SpecialChar LyX
10562 ; the last 2% was the \SpecialChar LaTeX
10563  post-processing and a few cleanups.
10564  I have had no trouble with the submission process, and I'm sure the journals
10565  were never aware that there might be a difference.
10566  So, go forth and publish!
10567 \end_layout
10568
10569 \begin_layout Section
10570 AMS \SpecialChar LaTeX
10571
10572 \end_layout
10573
10574 \begin_layout Standard
10575 by 
10576 \noun on
10577 David Johnson
10578 \noun default
10579 ; updated by 
10580 \noun on
10581 Richard Heck
10582 \end_layout
10583
10584 \begin_layout Standard
10585 \begin_inset VSpace bigskip
10586 \end_inset
10587
10588
10589 \end_layout
10590
10591 \begin_layout Standard
10592 \noindent
10593 The AMS \SpecialChar LaTeX
10594  layouts are set up to conform to suggested styles for mathematical
10595  papers to be submitted to American Mathematical Society publications.
10596  The layouts are not tailored to a specific journal, but easily can be.
10597  You should refer to the AMS documentation for specific instructions for
10598  each journal (usually it will entail only changing a single line in the
10599  \SpecialChar TeX
10600  output).
10601  That documentation is available on the Web at 
10602 \begin_inset Flex URL
10603 status open
10604
10605 \begin_layout Plain Layout
10606
10607 http://www.ams.org
10608 \end_layout
10609
10610 \end_inset
10611
10612  or by ftp at 
10613 \begin_inset Flex URL
10614 status open
10615
10616 \begin_layout Plain Layout
10617
10618 ftp://ftp.ams.org/pub/tex/amslatex/
10619 \end_layout
10620
10621 \end_inset
10622
10623 .
10624  These layouts are appropriate, and useful, for any mathematical writing.
10625  
10626 \end_layout
10627
10628 \begin_layout Standard
10629 There are two basic AMS \SpecialChar LaTeX
10630  layouts: 
10631 \end_layout
10632
10633 \begin_layout Itemize
10634 amsart: The standard AMS article format.
10635 \end_layout
10636
10637 \begin_layout Itemize
10638 amsbook: the standard AMS book (really, monograph) format.
10639  
10640 \end_layout
10641
10642 \begin_layout Standard
10643 The layouts themselves contain only the minimum necessary to use the AMS
10644  classes.
10645  They do not, in particular, contain any of the `theorem' environments used
10646  for setting theorems, lemmas, and the like.
10647  These are contained, instead, in the 
10648 \begin_inset Flex Code
10649 status collapsed
10650
10651 \begin_layout Plain Layout
10652 Theorems (AMS)
10653 \end_layout
10654
10655 \end_inset
10656
10657  module, which is loaded by default when you select one of the AMS classes.
10658  (It can also be used with other classes and can be removed, if you would
10659  rather use something else.) Less commonly used environments are in the 
10660 \begin_inset Flex Code
10661 status collapsed
10662
10663 \begin_layout Plain Layout
10664 Theorems (AMS-Extended)
10665 \end_layout
10666
10667 \end_inset
10668
10669  module, which must be loaded manually.
10670 \end_layout
10671
10672 \begin_layout Standard
10673 By default, theorems and the like are numbered consecutively throughout
10674  the document, but this may be modified by loading the module 
10675 \begin_inset Flex Code
10676 status collapsed
10677
10678 \begin_layout Plain Layout
10679 Theorems (Order by Section)
10680 \end_layout
10681
10682 \end_inset
10683
10684  or, if you are using 
10685 \begin_inset Flex Code
10686 status collapsed
10687
10688 \begin_layout Plain Layout
10689 book (AMS)
10690 \end_layout
10691
10692 \end_inset
10693
10694 , the module 
10695 \begin_inset Flex Code
10696 status collapsed
10697
10698 \begin_layout Plain Layout
10699 Theorems (Order by Chapter)
10700 \end_layout
10701
10702 \end_inset
10703
10704 .
10705  These will number the results as 
10706 \begin_inset Formula $n.m$
10707 \end_inset
10708
10709 , where the first number refers to the section (or chapter) and the second
10710  refers to the total number of results so far in that section (or chapter).
10711  Many environments are also available unnumbered.
10712  These are indicated by an asterisk at the end.
10713  If you happen to want 
10714 \emph on
10715 only
10716 \emph default
10717  unnumbered results, the module 
10718 \begin_inset Flex Code
10719 status collapsed
10720
10721 \begin_layout Plain Layout
10722 Theorems (Starred)
10723 \end_layout
10724
10725 \end_inset
10726
10727  provides that option.
10728 \end_layout
10729
10730 \begin_layout Standard
10731 Note that these modules do not 
10732 \emph on
10733 have
10734 \emph default
10735  to be used with the AMS classes.
10736  It is perfectly possible to use the 
10737 \begin_inset Flex Code
10738 status collapsed
10739
10740 \begin_layout Plain Layout
10741 Theorems (AMS)
10742 \end_layout
10743
10744 \end_inset
10745
10746  module, and the others mentioned, with other classes, such as 
10747 \begin_inset Flex Code
10748 status collapsed
10749
10750 \begin_layout Plain Layout
10751 article
10752 \end_layout
10753
10754 \end_inset
10755
10756
10757 \begin_inset Flex Code
10758 status collapsed
10759
10760 \begin_layout Plain Layout
10761 report
10762 \end_layout
10763
10764 \end_inset
10765
10766
10767 \begin_inset Flex Code
10768 status collapsed
10769
10770 \begin_layout Plain Layout
10771 book (KOMA-script)
10772 \end_layout
10773
10774 \end_inset
10775
10776 , and so forth.
10777 \end_layout
10778
10779 \begin_layout Subsection
10780 What these layouts provide
10781 \end_layout
10782
10783 \begin_layout Standard
10784 There is a long list of included environments provided by these layouts.
10785  In AMS-\SpecialChar LaTeX
10786 , there is, in fact, an opportunity to define an unlimited variety
10787  of `theorem' environments.
10788  However, the AMS recommends the environments that are available in \SpecialChar LyX
10789 .
10790  
10791 \end_layout
10792
10793 \begin_layout Standard
10794 The following environments—as well as the standard environments, such as
10795  
10796 \begin_inset Flex Noun
10797 status collapsed
10798
10799 \begin_layout Plain Layout
10800 section
10801 \end_layout
10802
10803 \end_inset
10804
10805
10806 \begin_inset Flex Noun
10807 status collapsed
10808
10809 \begin_layout Plain Layout
10810 bibliography
10811 \end_layout
10812
10813 \end_inset
10814
10815
10816 \begin_inset Flex Noun
10817 status collapsed
10818
10819 \begin_layout Plain Layout
10820 title
10821 \end_layout
10822
10823 \end_inset
10824
10825
10826 \begin_inset Flex Noun
10827 status collapsed
10828
10829 \begin_layout Plain Layout
10830 author
10831 \end_layout
10832
10833 \end_inset
10834
10835 , and 
10836 \begin_inset Flex Noun
10837 status collapsed
10838
10839 \begin_layout Plain Layout
10840 date
10841 \end_layout
10842
10843 \end_inset
10844
10845 —are provided by 
10846 \begin_inset Flex Code
10847 status collapsed
10848
10849 \begin_layout Plain Layout
10850 article (AMS)
10851 \end_layout
10852
10853 \end_inset
10854
10855  and 
10856 \begin_inset Flex Code
10857 status collapsed
10858
10859 \begin_layout Plain Layout
10860 book (AMS)
10861 \end_layout
10862
10863 \end_inset
10864
10865 :
10866 \end_layout
10867
10868 \begin_layout Description
10869 Address This should be the author's permanent address.
10870 \end_layout
10871
10872 \begin_layout Description
10873 Current
10874 \begin_inset space ~
10875 \end_inset
10876
10877 Address This should be the author's temporary address at the time of submission,
10878  if different from the Address.
10879 \end_layout
10880
10881 \begin_layout Description
10882 Email Author's e-mail address
10883 \end_layout
10884
10885 \begin_layout Description
10886 URL Author's Web address, if desired.
10887 \end_layout
10888
10889 \begin_layout Description
10890 Keywords Key words or phrases used to identify specific topics discussed
10891  in the paper.
10892 \end_layout
10893
10894 \begin_layout Description
10895 Subjectclass These refer to the AMS Subject Classifications, published and
10896  described in 
10897 \emph on
10898 Mathematical Reviews
10899 \emph default
10900 .
10901  These are also available online at the AMS cites listed above.
10902 \end_layout
10903
10904 \begin_layout Description
10905 Thanks
10906 \end_layout
10907
10908 \begin_layout Description
10909 Dedicatory
10910 \end_layout
10911
10912 \begin_layout Description
10913 Translator
10914 \end_layout
10915
10916 \begin_layout Standard
10917 The following environments are provided by both the 
10918 \begin_inset Flex Code
10919 status collapsed
10920
10921 \begin_layout Plain Layout
10922 Theorems
10923 \end_layout
10924
10925 \end_inset
10926
10927  and 
10928 \begin_inset Flex Code
10929 status collapsed
10930
10931 \begin_layout Plain Layout
10932 Theorems (AMS)
10933 \end_layout
10934
10935 \end_inset
10936
10937  modules, in the latter case in both starred (unnumbered) and unstarred
10938  (numbered) versions.
10939  These same environments are provided only in the starred versions by the
10940  
10941 \begin_inset Flex Code
10942 status collapsed
10943
10944 \begin_layout Plain Layout
10945 Theorems (Starred)
10946 \end_layout
10947
10948 \end_inset
10949
10950  module:
10951 \end_layout
10952
10953 \begin_layout Theorem
10954 This is typically used for the statements of major results.
10955  
10956 \end_layout
10957
10958 \begin_layout Corollary*
10959 This is used for statements which follow fairly directly from previous statement
10960 s.
10961  Again, these can be major results.
10962  
10963 \end_layout
10964
10965 \begin_layout Lemma
10966 These are smaller results needed to prove other statements.
10967 \end_layout
10968
10969 \begin_layout Proposition
10970 These are less major results which (hopefully) add to the general theory
10971  being discussed.
10972 \end_layout
10973
10974 \begin_layout Conjecture
10975 These are statements provided without justification, which the author does
10976  not know how to prove, but which seem to be true (to the author, at least).
10977 \end_layout
10978
10979 \begin_layout Definition*
10980 Guess what this is for.
10981  The font is different for this environment than for the previous ones.
10982  
10983 \end_layout
10984
10985 \begin_layout Example*
10986 Used for examples illustrating proven results.
10987 \end_layout
10988
10989 \begin_layout Problem
10990 It's not really known what this is for.
10991  You should figure it out.
10992 \end_layout
10993
10994 \begin_layout Exercise*
10995 Write a description for this one.
10996 \end_layout
10997
10998 \begin_layout Remark
10999 This environment is also a type of theorem, usually a lesser sort of observation.
11000 \end_layout
11001
11002 \begin_layout Claim*
11003 Often used in the course of giving a proof of a larger result.
11004 \end_layout
11005
11006 \begin_layout Case
11007 Generally, these are used to break up long arguments, using specific instances
11008  of some condition.
11009  
11010 \end_layout
11011
11012 \begin_layout Case
11013 The numbering scheme for cases is on its own, not together with other numbered
11014  statements.
11015  
11016 \end_layout
11017
11018 \begin_layout Proof
11019 At the end of this environment, a QED symbol (usually a square, but it can
11020  vary with different styles) is placed.
11021  If you want to have other environments within this one—for example, Case
11022  environments—and have the QED symbol appear only after them, then the other
11023  environments need to be nested within the proof environment.
11024  See the section 
11025 \emph on
11026 Nesting Environments
11027 \emph default
11028  of the 
11029 \emph on
11030 User's Guide
11031 \emph default
11032  for information on nesting.
11033 \end_layout
11034
11035 \begin_layout Standard
11036 And these environments are provided by 
11037 \begin_inset Flex Code
11038 status collapsed
11039
11040 \begin_layout Plain Layout
11041 Theorems (AMS-Extended)
11042 \end_layout
11043
11044 \end_inset
11045
11046 :
11047 \end_layout
11048
11049 \begin_layout Criterion*
11050 A required condition.
11051 \end_layout
11052
11053 \begin_layout Algorithm*
11054 A general procedure to be used.
11055 \end_layout
11056
11057 \begin_layout Axiom*
11058 This is a property or statement taken as true within the system being discussed.
11059 \end_layout
11060
11061 \begin_layout Condition*
11062 Sometimes used to state a condition assumed within the present context of
11063  discussion.
11064 \end_layout
11065
11066 \begin_layout Note*
11067 Similar to a Remark.
11068 \end_layout
11069
11070 \begin_layout Notation*
11071 Used for the explanation of, yes, notation.
11072 \end_layout
11073
11074 \begin_layout Summary
11075 Do we really need to tell you? 
11076 \end_layout
11077
11078 \begin_layout Acknowledgement*
11079 Acknowledgement.
11080 \end_layout
11081
11082 \begin_layout Conclusion*
11083 Sometimes used at the end of a long train of argument.
11084 \end_layout
11085
11086 \begin_layout Fact
11087 Used in a way similar to Proposition, though perhaps lower on the scale.
11088 \end_layout
11089
11090 \begin_layout Standard
11091 In addition, the AMS classes automatically provide the AMS \SpecialChar LaTeX
11092  and AMS fonts
11093  packages.
11094  They need to be available on your system in order to use these environments.
11095 \end_layout
11096
11097 \begin_layout Section
11098 AGU journals (
11099 \family sans
11100 aguplus
11101 \family default
11102 )
11103 \end_layout
11104
11105 \begin_layout Standard
11106 by 
11107 \shape smallcaps
11108 Martin Vermeer
11109 \end_layout
11110
11111 \begin_layout Subsection
11112 Description
11113 \end_layout
11114
11115 \begin_layout Standard
11116 These are the layout files for some of the journals of the American Geophysical
11117  Society.
11118  It is assumed that you have both the AGU's own class files and AGUplus
11119  installed (everything to be found at
11120 \begin_inset Flex URL
11121 status collapsed
11122
11123 \begin_layout Plain Layout
11124
11125 http://publications.agu.org/files/2013/08/AGU-LaTeX.zip
11126 \end_layout
11127
11128 \end_inset
11129
11130 ).
11131 \end_layout
11132
11133 \begin_layout Subsection
11134 New styles
11135 \end_layout
11136
11137 \begin_layout Standard
11138 Redefined are 
11139 \family sans
11140 Paragraph
11141 \family default
11142
11143 \family sans
11144 Paragraph*
11145 \family default
11146 .
11147  They are still called this in the \SpecialChar LyX
11148  GUI, though their \SpecialChar LaTeX
11149  equivalents in the
11150  AGU classes are 
11151 \family sans
11152 Subsubsubsection
11153 \family default
11154  and 
11155 \family sans
11156 Subsubsubsection*
11157 \family default
11158 .
11159 \end_layout
11160
11161 \begin_layout Standard
11162 Newly defined styles are 
11163 \family sans
11164 Left_Header
11165 \family default
11166
11167 \family sans
11168 Right_Header
11169 \family default
11170
11171 \family sans
11172 Received
11173 \family default
11174
11175 \family sans
11176 Revised
11177 \family default
11178
11179 \family sans
11180 Accepted
11181 \family default
11182
11183 \family sans
11184 CCC
11185 \family default
11186
11187 \family sans
11188 PaperId
11189 \family default
11190
11191 \family sans
11192 AuthorAddr
11193 \family default
11194
11195 \family sans
11196 SlugComment
11197 \family default
11198 .
11199  These are mostly manuscript attributes and defined in the AGU class documentati
11200 on.
11201 \end_layout
11202
11203 \begin_layout Standard
11204 I suspect this is still badly incomplete.
11205 \end_layout
11206
11207 \begin_layout Subsection
11208 New floats
11209 \end_layout
11210
11211 \begin_layout Standard
11212
11213 \family sans
11214 Planotable
11215 \family default
11216  and 
11217 \family sans
11218 Plate
11219 \family default
11220 .
11221  We also have a new 
11222 \family sans
11223 Table_Caption
11224 \family default
11225 .
11226 \end_layout
11227
11228 \begin_layout Subsection
11229 Supported journals
11230 \end_layout
11231
11232 \begin_layout Itemize
11233
11234 \emph on
11235 Journal of Geophysical Research
11236 \emph default
11237
11238 \family typewriter
11239 jgrga.layout
11240 \family default
11241  — Martin Vermeer
11242 \end_layout
11243
11244 \begin_layout Standard
11245 Add your own, it isn't so hard! Look at the 
11246 \family typewriter
11247 jgrga.layout
11248 \family default
11249  example and 
11250 \family typewriter
11251 aguplus.inc
11252 \family default
11253 .
11254 \end_layout
11255
11256 \begin_layout Subsection
11257 Bugs and things to remember
11258 \end_layout
11259
11260 \begin_layout Standard
11261 In order to use the new layouts, you must remember to do the following for
11262  a new document:
11263 \end_layout
11264
11265 \begin_layout Enumerate
11266
11267 \emph on
11268 Turn off babel
11269 \emph default
11270 .
11271  This can be done in the 
11272 \family sans
11273 Layout\SpecialChar menuseparator
11274 Document
11275 \family default
11276  or 
11277 \family sans
11278 Document\SpecialChar menuseparator
11279 Settings
11280 \family default
11281  menu item.
11282  (AGU articles are always in English, right? So 
11283 \emph on
11284 don't
11285 \emph default
11286  choose a language.)
11287 \end_layout
11288
11289 \begin_layout Enumerate
11290 Enter 
11291 \family typewriter
11292 jgrga
11293 \family default
11294  into the document's 
11295 \family sans
11296 Extra Options
11297 \family default
11298  field.
11299  (Yes, this is a bug.)
11300 \end_layout
11301
11302 \begin_layout Enumerate
11303 Make sure you use the 
11304 \family typewriter
11305 agu.bst
11306 \family default
11307  bibliography style, by entering 
11308 \family sans
11309 agu
11310 \family default
11311  into the second field of the Bib\SpecialChar TeX
11312  inset.
11313  None of the standard styles will do.
11314 \end_layout
11315
11316 \begin_layout Section
11317 Broadway
11318 \end_layout
11319
11320 \begin_layout Standard
11321 by 
11322 \shape smallcaps
11323 Garst Reese
11324 \end_layout
11325
11326 \begin_layout Subsection
11327 Introduction
11328 \end_layout
11329
11330 \begin_layout Standard
11331 Broadway is for writing plays.
11332  The format is more decorative than Hollywood, and much less standardized.
11333  This format should be suitable for workshops.
11334 \end_layout
11335
11336 \begin_layout Subsection
11337 Special problems
11338 \end_layout
11339
11340 \begin_layout Standard
11341 The same as in Hollywood.
11342 \end_layout
11343
11344 \begin_layout Subsection
11345 Special features
11346 \end_layout
11347
11348 \begin_layout Standard
11349 Insert the 
11350 \family sans
11351 Speaker
11352 \family default
11353  names as labels then cross-reference the label to insert the name.
11354  The cross-reference dialog will show the current cast of characters.
11355 \end_layout
11356
11357 \begin_layout Subsection
11358 Paper size and Margins
11359 \end_layout
11360
11361 \begin_layout Standard
11362 USLetter, left 1.6in, right 0.75in, top 0.5in, bottom 0.75in
11363 \end_layout
11364
11365 \begin_layout Subsection
11366 Environments
11367 \end_layout
11368
11369 \begin_layout Standard
11370 The following environments are available.
11371  You can use broadway.bind to get the bind keys shown at the right.
11372 \end_layout
11373
11374 \begin_layout Itemize
11375
11376 \family sans
11377 Standard
11378 \begin_inset Newline newline
11379 \end_inset
11380
11381
11382 \family default
11383 You should not have to use this, but it is here for anything that does not
11384  fit otherwise.
11385 \end_layout
11386
11387 \begin_layout Itemize
11388
11389 \family sans
11390 Narrative
11391 \begin_inset space \hfill{}
11392 \end_inset
11393
11394 M-z n
11395 \begin_inset Newline newline
11396 \end_inset
11397
11398
11399 \family default
11400 Used to describe stage setting and the action.
11401  First use of speaker names in all CAPs.
11402 \end_layout
11403
11404 \begin_layout Itemize
11405
11406 \family sans
11407 ACT
11408 \begin_inset space \hfill{}
11409 \end_inset
11410
11411 M-z a
11412 \begin_inset Newline newline
11413 \end_inset
11414
11415
11416 \family default
11417 Automatically numbered.
11418  On screen it will be arabic, but will print as Roman.
11419 \end_layout
11420
11421 \begin_layout Itemize
11422
11423 \family sans
11424 ACT*
11425 \begin_inset space \hfill{}
11426 \end_inset
11427
11428 M-z S at
11429 \begin_inset Newline newline
11430 \end_inset
11431
11432
11433 \family default
11434 Subtitle for 
11435 \family sans
11436 ACT.
11437
11438 \family default
11439  It is just centered text.
11440 \end_layout
11441
11442 \begin_layout Itemize
11443
11444 \family sans
11445 SCENE
11446 \begin_inset space \hfill{}
11447 \end_inset
11448
11449 M-z S-S
11450 \begin_inset Newline newline
11451 \end_inset
11452
11453
11454 \family default
11455 Not automatically numbered.
11456  You supply the number.
11457  This is because I couldn't figure out how.
11458 \end_layout
11459
11460 \begin_layout Itemize
11461
11462 \family sans
11463 AT_RISE:
11464 \begin_inset space \hfill{}
11465 \end_inset
11466
11467 M-z S-R
11468 \begin_inset Newline newline
11469 \end_inset
11470
11471
11472 \family default
11473 A special case of Narrative to describe the setting and action as the curtain
11474  rises.
11475 \end_layout
11476
11477 \begin_layout Itemize
11478
11479 \family sans
11480 Speaker
11481 \begin_inset space \hfill{}
11482 \end_inset
11483
11484 M-z s
11485 \begin_inset Newline newline
11486 \end_inset
11487
11488
11489 \family default
11490 The speaker's (actor's) title, centered in all CAPS.
11491 \end_layout
11492
11493 \begin_layout Itemize
11494
11495 \family sans
11496 Parenthetical
11497 \begin_inset space \hfill{}
11498 \end_inset
11499
11500 M-z p
11501 \begin_inset Newline newline
11502 \end_inset
11503
11504
11505 \family default
11506 Instructions to the speaker.
11507  The parentheses are automatically inserted.
11508  The ( will appear on screen, but both will be in the printed play.
11509  This environment is only used within 
11510 \family sans
11511 Dialogue
11512 \family default
11513 .
11514 \end_layout
11515
11516 \begin_layout Itemize
11517
11518 \family sans
11519 Dialogue
11520 \begin_inset space \hfill{}
11521 \end_inset
11522
11523 M-z d
11524 \begin_inset Newline newline
11525 \end_inset
11526
11527
11528 \family default
11529 What the Speaker says.
11530 \end_layout
11531
11532 \begin_layout Itemize
11533
11534 \family sans
11535 CURTAIN
11536 \begin_inset space \hfill{}
11537 \end_inset
11538
11539 M-z S-C
11540 \begin_inset Newline newline
11541 \end_inset
11542
11543
11544 \family default
11545 The curtain comes down.
11546 \end_layout
11547
11548 \begin_layout Itemize
11549
11550 \family sans
11551 Title
11552 \begin_inset space \hfill{}
11553 \end_inset
11554
11555 M-z S-T
11556 \end_layout
11557
11558 \begin_layout Itemize
11559
11560 \family sans
11561 Author
11562 \begin_inset space \hfill{}
11563 \end_inset
11564
11565 M-z S-A
11566 \end_layout
11567
11568 \begin_layout Itemize
11569
11570 \family sans
11571 Right_Address
11572 \begin_inset space \hfill{}
11573 \end_inset
11574
11575 M-z r
11576 \end_layout
11577
11578 \begin_layout Standard
11579 Hello there.
11580 \end_layout
11581
11582 \begin_layout Section
11583 Dinbrief
11584 \end_layout
11585
11586 \begin_layout Standard
11587 The document class 
11588 \family sans
11589 dinbrief
11590 \family default
11591  can be used to type letters according to German conventions.
11592  A template file is included in 
11593 \family typewriter
11594 .../lyx/share/templates
11595 \family default
11596  for you to use as a starting point.
11597 \end_layout
11598
11599 \begin_layout Section
11600 EGS journals (
11601 \family sans
11602 egs
11603 \family default
11604 )
11605 \end_layout
11606
11607 \begin_layout Standard
11608 by 
11609 \shape smallcaps
11610 Martin Vermeer
11611 \end_layout
11612
11613 \begin_layout Subsection
11614 Description
11615 \end_layout
11616
11617 \begin_layout Standard
11618 This is the layout file for the European Geophysical Society journals.
11619  The needed 
11620 \family typewriter
11621 egs.cls
11622 \family default
11623  can be downloaded from the web site of the EGS under 
11624 \begin_inset Flex URL
11625 status collapsed
11626
11627 \begin_layout Plain Layout
11628
11629 www.copernicus.org
11630 \end_layout
11631
11632 \end_inset
11633
11634 .
11635 \end_layout
11636
11637 \begin_layout Subsection
11638 New styles
11639 \end_layout
11640
11641 \begin_layout Standard
11642
11643 \family sans
11644 Right_address, Latex_Title, Affil, Journal, msnumber, FirstAuthor, Received,
11645  Accepted
11646 \family default
11647
11648 \family sans
11649 Offsets
11650 \family default
11651 .
11652  The current layout file is unfortunately very unmodular and would benefit
11653  from using the various 
11654 \family typewriter
11655 std*.inc
11656 \family default
11657  file inclusions.
11658 \end_layout
11659
11660 \begin_layout Section
11661 Elsevier Journals
11662 \end_layout
11663
11664 \begin_layout Standard
11665 See the \SpecialChar LyX
11666  template file 
11667 \family typewriter
11668 elsarticle.lyx
11669 \family default
11670 .
11671  It contains all infos you need.
11672 \end_layout
11673
11674 \begin_layout Section
11675 Foils [aka 
11676 \family sans
11677 Foil\SpecialChar TeX
11678
11679 \family default
11680 ]
11681 \begin_inset CommandInset label
11682 LatexCommand label
11683 name "sec:foiltex"
11684
11685 \end_inset
11686
11687
11688 \end_layout
11689
11690 \begin_layout Standard
11691 by 
11692 \noun on
11693 Allan Rae
11694 \end_layout
11695
11696 \begin_layout Subsection
11697 Introduction
11698 \end_layout
11699
11700 \begin_layout Standard
11701 This section describes how to use \SpecialChar LyX
11702  to make slides for overhead projectors.
11703  There are two document classes that can do this: the default slides class
11704  and the 
11705 \family sans
11706 Foil\SpecialChar TeX
11707
11708 \family default
11709  slides class.
11710  This section documents the latter.
11711 \end_layout
11712
11713 \begin_layout Standard
11714 I'm going to say this again, nice and clear, so that there's no misunderstanding
11715 :
11716 \end_layout
11717
11718 \begin_layout Standard
11719 \begin_inset VSpace bigskip
11720 \end_inset
11721
11722
11723 \end_layout
11724
11725 \begin_layout Standard
11726 \align center
11727
11728 \size large
11729 This section documents the class 
11730 \begin_inset Quotes eld
11731 \end_inset
11732
11733
11734 \family sans
11735 FoilTeX
11736 \family default
11737
11738 \begin_inset Quotes erd
11739 \end_inset
11740
11741  
11742 \emph on
11743 only.
11744 \end_layout
11745
11746 \begin_layout Standard
11747 \begin_inset VSpace bigskip
11748 \end_inset
11749
11750
11751 \end_layout
11752
11753 \begin_layout Standard
11754 If you're looking for the documentation for 
11755 \begin_inset Quotes eld
11756 \end_inset
11757
11758
11759 \family sans
11760 slides (default)
11761 \family default
11762
11763 \begin_inset Quotes erd
11764 \end_inset
11765
11766 , check out section
11767 \begin_inset space ~
11768 \end_inset
11769
11770
11771 \begin_inset CommandInset ref
11772 LatexCommand ref
11773 reference "sec:slitex"
11774
11775 \end_inset
11776
11777 .
11778  If your machine doesn't have the 
11779 \family sans
11780 foils
11781 \family default
11782  class 
11783 \family sans
11784 FoilTeX
11785 \family default
11786  installed, you'll probably have to use the default 
11787 \family sans
11788 slides
11789 \family default
11790  class, which isn't quite as good as 
11791 \family sans
11792 foils.
11793 \end_layout
11794
11795 \begin_layout Standard
11796 The 
11797 \family sans
11798 foils
11799 \family default
11800  class is designed for use with version
11801 \begin_inset space ~
11802 \end_inset
11803
11804 2.1 of the 
11805 \family sans
11806 foils.cls
11807 \family default
11808  \SpecialChar LaTeX
11809  class file which is now an integral part of \SpecialChar LaTeX2e
11810 .
11811 \end_layout
11812
11813 \begin_layout Subsection
11814 Getting Started
11815 \end_layout
11816
11817 \begin_layout Standard
11818 Obviously, to use this document class, you need to select 
11819 \family sans
11820 FoilTeX
11821 \family default
11822  from the 
11823 \family sans
11824 Class
11825 \family default
11826  entry in the 
11827 \family sans
11828 Document
11829 \begin_inset space ~
11830 \end_inset
11831
11832 Layout
11833 \family default
11834  dialog.
11835  There are some settings in the 
11836 \family sans
11837 Document
11838 \begin_inset space ~
11839 \end_inset
11840
11841 Layout
11842 \family default
11843  dialog that you should know about that are specific to this class:
11844 \end_layout
11845
11846 \begin_layout Itemize
11847 Don't change the options 
11848 \family sans
11849 Sides
11850 \family default
11851  and 
11852 \family sans
11853 Columns
11854 \family default
11855  on the 
11856 \family sans
11857 Document
11858 \begin_inset space ~
11859 \end_inset
11860
11861 Layout
11862 \family default
11863  dialog.
11864  They're ignored by the 
11865 \family sans
11866 foils
11867 \family default
11868  class.
11869 \end_layout
11870
11871 \begin_layout Itemize
11872 The default font size is 20
11873 \begin_inset space \thinspace{}
11874 \end_inset
11875
11876 pt with the other options being 17
11877 \begin_inset space \thinspace{}
11878 \end_inset
11879
11880 pt, 25
11881 \begin_inset space \thinspace{}
11882 \end_inset
11883
11884 pt and 30
11885 \begin_inset space \thinspace{}
11886 \end_inset
11887
11888 pt.
11889 \end_layout
11890
11891 \begin_layout Itemize
11892 The default font is 
11893 \family sans
11894 sans
11895 \family default
11896  
11897 \family sans
11898 serif
11899 \family default
11900  but all math equations are still typeset in the usual roman font.
11901 \end_layout
11902
11903 \begin_layout Itemize
11904
11905 \family sans
11906 Foil\SpecialChar TeX
11907
11908 \family default
11909  supports A4 and Letter paper sizes as well as a special size for working
11910  with 35
11911 \begin_inset space \thinspace{}
11912 \end_inset
11913
11914 mm slides.
11915  It doesn't support A5, B5, legal or executive paper sizes.
11916 \end_layout
11917
11918 \begin_layout Itemize
11919 Don't bother changing the 
11920 \family sans
11921 Float Placement
11922 \family default
11923  settings because they are ignored anyway.
11924  All floats appear where they are defined in the text.
11925 \end_layout
11926
11927 \begin_layout Itemize
11928 The 
11929 \family sans
11930 Pagestyle
11931 \family default
11932  setting behaves a bit differently for this class.
11933  
11934 \family sans
11935 Foil\SpecialChar TeX
11936
11937 \family default
11938  provides extensive footer and header capabilities including a user-defined
11939  logo.
11940  See section
11941 \begin_inset space ~
11942 \end_inset
11943
11944
11945 \begin_inset CommandInset ref
11946 LatexCommand ref
11947 reference "sec:foilfoot"
11948
11949 \end_inset
11950
11951  for more details.
11952  The title page is treated differently to all other pages in the document
11953  and is 
11954 \emph on
11955 always
11956 \emph default
11957  unnumbered and 
11958 \emph on
11959 always
11960 \emph default
11961  has the logo centered at the bottom of the page (if one is defined).
11962  The possible page style choices and what they do are as follows:
11963 \end_layout
11964
11965 \begin_deeper
11966 \begin_layout Labeling
11967 \labelwidthstring MMMMMMM
11968
11969 \family sans
11970 \series bold
11971 empty
11972 \family default
11973 \series default
11974  The final output contains no page numbers, or other headers or footers
11975  (except footnotes of course).
11976  
11977 \end_layout
11978
11979 \begin_layout Labeling
11980 \labelwidthstring MMMMMMM
11981
11982 \family sans
11983 \series bold
11984 plain
11985 \family default
11986 \series default
11987  The final output contains page numbers centered at the bottom of the page.
11988  No other headings or footers (other than footnotes).
11989 \end_layout
11990
11991 \begin_layout Labeling
11992 \labelwidthstring MMMMMMM
11993
11994 \series bold
11995 foilheadings
11996 \series default
11997  Page numbers in lower right corner.
11998  Additional headers and footers are also shown.
11999  This is also the default.
12000 \end_layout
12001
12002 \begin_layout Labeling
12003 \labelwidthstring MMMMMMM
12004
12005 \series bold
12006 fancy
12007 \series default
12008  Gives you access to the 
12009 \family sans
12010 fancyheadings
12011 \family default
12012  package although its use with 
12013 \family sans
12014 Foil\SpecialChar TeX
12015
12016 \family default
12017  is discouraged by the writer of the 
12018 \family sans
12019 Foil\SpecialChar TeX
12020
12021 \family default
12022  package because of some potential page layout clashes.
12023 \end_layout
12024
12025 \end_deeper
12026 \begin_layout Subsubsection
12027 Extra Options
12028 \end_layout
12029
12030 \begin_layout Standard
12031 The following options may be used in the extra class options in the 
12032 \family sans
12033 Document\SpecialChar menuseparator
12034 Settings
12035 \family default
12036  dialog.
12037 \end_layout
12038
12039 \begin_layout Labeling
12040 \labelwidthstring MMMMMMx
12041
12042 \series bold
12043 35mmSlide
12044 \series default
12045  This sets up the page layout for 7.33
12046 \begin_inset space \thinspace{}
12047 \end_inset
12048
12049 in by 11
12050 \begin_inset space \thinspace{}
12051 \end_inset
12052
12053 in paper, which is about the same aspect ratio as a 35
12054 \begin_inset space \thinspace{}
12055 \end_inset
12056
12057 mm slide, making it a bit easier to work with this medium.
12058 \end_layout
12059
12060 \begin_layout Labeling
12061 \labelwidthstring MMMMMMx
12062
12063 \series bold
12064 headrule
12065 \series default
12066  Places a rule across the page below the header on every page except the
12067  title page.
12068 \end_layout
12069
12070 \begin_layout Labeling
12071 \labelwidthstring MMMMMMx
12072
12073 \series bold
12074 footrule
12075 \series default
12076  Places a rule across the page above the footer on every page except the
12077  title page.
12078 \end_layout
12079
12080 \begin_layout Labeling
12081 \labelwidthstring MMMMMMx
12082
12083 \series bold
12084 dvips
12085 \series default
12086  This is automatically set each time you create a new 
12087 \family sans
12088 foils
12089 \family default
12090  document.
12091  This option tells 
12092 \family sans
12093 Foil\SpecialChar TeX
12094
12095 \family default
12096  to use the dvips driver to rotate those pages that are set as landscape
12097  foils.
12098 \end_layout
12099
12100 \begin_layout Labeling
12101 \labelwidthstring MMMMMMx
12102
12103 \series bold
12104 landscape
12105 \series default
12106  Simply changes the page dimensions to those of a landscape page but doesn't
12107  do any rotation.
12108  Thus if you use this option you need to use an external program to rotate
12109  each page or feed your paper through your printer as landscape.
12110  Note that this option effectively reverses the roles of the 
12111 \family sans
12112 Foilhead
12113 \family default
12114  and 
12115 \family sans
12116 Rotatefoilhead
12117 \family default
12118  environments (don't worry these are described in the next section).
12119 \end_layout
12120
12121 \begin_layout Labeling
12122 \labelwidthstring MMMMMMx
12123
12124 \series bold
12125 leqno
12126 \series default
12127  Equation numbers on the left.
12128 \end_layout
12129
12130 \begin_layout Labeling
12131 \labelwidthstring MMMMMMx
12132
12133 \series bold
12134 fleqn
12135 \series default
12136  Flush-left equations.
12137 \end_layout
12138
12139 \begin_layout Subsection
12140 Supported Environments
12141 \end_layout
12142
12143 \begin_layout Standard
12144 Most of the environments commonly supported in other classes are also supported
12145  by the 
12146 \family sans
12147 foils
12148 \family default
12149  class.
12150  There are several additional environments provided by 
12151 \family sans
12152 Foil\SpecialChar TeX
12153
12154 \family default
12155  as well as a couple added by \SpecialChar LyX
12156 .
12157  The following environments are shared with other classes:
12158 \end_layout
12159
12160 \begin_layout Standard
12161 \begin_inset Flex Multiple Columns
12162 status open
12163
12164 \begin_layout Itemize
12165
12166 \family sans
12167 Standard
12168 \end_layout
12169
12170 \begin_layout Itemize
12171
12172 \family sans
12173 Itemize
12174 \end_layout
12175
12176 \begin_layout Itemize
12177
12178 \family sans
12179 Enumerate
12180 \end_layout
12181
12182 \begin_layout Itemize
12183
12184 \family sans
12185 Description
12186 \end_layout
12187
12188 \begin_layout Itemize
12189
12190 \family sans
12191 List
12192 \end_layout
12193
12194 \begin_layout Itemize
12195
12196 \family sans
12197 \SpecialChar LyX
12198 -Code
12199 \end_layout
12200
12201 \begin_layout Itemize
12202
12203 \family sans
12204 Verse
12205 \end_layout
12206
12207 \begin_layout Itemize
12208
12209 \family sans
12210 Quote
12211 \end_layout
12212
12213 \begin_layout Itemize
12214
12215 \family sans
12216 Quotation
12217 \end_layout
12218
12219 \begin_layout Itemize
12220
12221 \family sans
12222 Title
12223 \change_deleted -712698321 1501158884
12224
12225 \end_layout
12226
12227 \begin_layout Itemize
12228
12229 \family sans
12230 Author
12231 \end_layout
12232
12233 \begin_layout Itemize
12234
12235 \family sans
12236 Date
12237 \end_layout
12238
12239 \begin_layout Itemize
12240
12241 \family sans
12242 Abstract
12243 \end_layout
12244
12245 \begin_layout Itemize
12246
12247 \family sans
12248 Bibliography
12249 \end_layout
12250
12251 \begin_layout Itemize
12252
12253 \family sans
12254 Address
12255 \end_layout
12256
12257 \begin_layout Itemize
12258
12259 \family sans
12260 RightAddress
12261 \end_layout
12262
12263 \begin_layout Itemize
12264
12265 \change_deleted -712698321 1501158888
12266
12267 \family sans
12268 Caption
12269 \change_unchanged
12270
12271 \end_layout
12272
12273 \begin_layout Itemize
12274
12275 \change_deleted -712698321 1501158891
12276
12277 \family sans
12278 Comment
12279 \change_unchanged
12280
12281 \end_layout
12282
12283 \end_inset
12284
12285
12286 \end_layout
12287
12288 \begin_layout Standard
12289 That is, all the major environments apart from the sectioning environments.
12290  Since foils are essentially self-contained sections, with a title and body,
12291  
12292 \family sans
12293 Foil\SpecialChar TeX
12294
12295 \family default
12296  provides specific commands for starting new foils and these are:
12297 \end_layout
12298
12299 \begin_layout Itemize
12300
12301 \family sans
12302 Foilhead
12303 \end_layout
12304
12305 \begin_layout Itemize
12306
12307 \family sans
12308 Rotatefoilhead
12309 \end_layout
12310
12311 \begin_layout Standard
12312 \SpecialChar LyX
12313  also provides slightly modified versions of these two environments called:
12314 \end_layout
12315
12316 \begin_layout Itemize
12317
12318 \family sans
12319 ShortFoilhead
12320 \end_layout
12321
12322 \begin_layout Itemize
12323
12324 \family sans
12325 ShortRotatefoilhead
12326 \end_layout
12327
12328 \begin_layout Standard
12329 and the differences will be explained in the next section.
12330 \end_layout
12331
12332 \begin_layout Standard
12333 Since foils are often used in presenting ideas or new theorems and such
12334  
12335 \family sans
12336 Foil\SpecialChar TeX
12337
12338 \family default
12339  also provides a comprehensive box of goodies for presenting them:
12340 \end_layout
12341
12342 \begin_layout Standard
12343 \begin_inset Flex Multiple Columns
12344 status open
12345
12346 \begin_layout Itemize
12347
12348 \family sans
12349 Theorem
12350 \end_layout
12351
12352 \begin_layout Itemize
12353
12354 \family sans
12355 Lemma
12356 \end_layout
12357
12358 \begin_layout Itemize
12359
12360 \family sans
12361 Corollary
12362 \end_layout
12363
12364 \begin_layout Itemize
12365
12366 \family sans
12367 Proposition
12368 \end_layout
12369
12370 \begin_layout Itemize
12371
12372 \family sans
12373 Definition
12374 \end_layout
12375
12376 \begin_layout Itemize
12377
12378 \family sans
12379 Proof
12380 \end_layout
12381
12382 \begin_layout Itemize
12383
12384 \family sans
12385 Theorem*
12386 \end_layout
12387
12388 \begin_layout Itemize
12389
12390 \family sans
12391 Lemma*
12392 \end_layout
12393
12394 \begin_layout Itemize
12395
12396 \family sans
12397 Corollary*
12398 \end_layout
12399
12400 \begin_layout Itemize
12401
12402 \family sans
12403 Proposition*
12404 \end_layout
12405
12406 \begin_layout Itemize
12407
12408 \family sans
12409 Definition*
12410 \end_layout
12411
12412 \end_inset
12413
12414
12415 \end_layout
12416
12417 \begin_layout Standard
12418 The starred versions are unnumbered while the unstarred versions are numbered.
12419  There are also two list environments added by \SpecialChar LyX
12420  and these are:
12421 \end_layout
12422
12423 \begin_layout Itemize
12424
12425 \family sans
12426 TickList
12427 \end_layout
12428
12429 \begin_layout Itemize
12430
12431 \family sans
12432 CrossList
12433 \end_layout
12434
12435 \begin_layout Standard
12436
12437 \family sans
12438 Foil\SpecialChar TeX
12439
12440 \family default
12441  provides some powerful header and footer capabilities that are best set
12442  in the preamble although they may be set at any point in a document.
12443  If you want to change these settings in your document the best place to
12444  do so is at the very top of a foil, i.
12445 \begin_inset space \thinspace{}
12446 \end_inset
12447
12448 e.
12449 \emph on
12450
12451 \begin_inset space \space{}
12452 \end_inset
12453
12454
12455 \emph default
12456 straight after the foilhead.
12457 \end_layout
12458
12459 \begin_layout Standard
12460 For this purpose, the following command styles are provided [
12461 \shape smallcaps
12462 Martin Vermeer
12463 \shape default
12464 ]:
12465 \end_layout
12466
12467 \begin_layout Standard
12468 \begin_inset Flex Multiple Columns
12469 status open
12470
12471 \begin_layout Itemize
12472
12473 \family sans
12474 My
12475 \begin_inset space ~
12476 \end_inset
12477
12478 Logo
12479 \end_layout
12480
12481 \begin_layout Itemize
12482
12483 \family sans
12484 Restriction
12485 \end_layout
12486
12487 \begin_layout Itemize
12488
12489 \family sans
12490 Right
12491 \begin_inset space ~
12492 \end_inset
12493
12494 Footer
12495 \end_layout
12496
12497 \begin_layout Itemize
12498
12499 \family sans
12500 Right
12501 \begin_inset space ~
12502 \end_inset
12503
12504 Header
12505 \end_layout
12506
12507 \begin_layout Itemize
12508
12509 \family sans
12510 Left
12511 \begin_inset space ~
12512 \end_inset
12513
12514 Header
12515 \end_layout
12516
12517 \begin_deeper
12518 \begin_layout Plain Layout
12519 \begin_inset space ~
12520 \end_inset
12521
12522
12523 \end_layout
12524
12525 \end_deeper
12526 \end_inset
12527
12528
12529 \end_layout
12530
12531 \begin_layout Standard
12532 There are also a few commands provided by 
12533 \family sans
12534 Foil\SpecialChar TeX
12535
12536 \family default
12537  that aren't directly supported by \SpecialChar LyX
12538  but I'll tell you what they do and how
12539  to use them in section
12540 \begin_inset space ~
12541 \end_inset
12542
12543
12544 \begin_inset CommandInset ref
12545 LatexCommand ref
12546 reference "sec:unsuppfoils"
12547
12548 \end_inset
12549
12550 .
12551 \end_layout
12552
12553 \begin_layout Subsection
12554 Building a Set of Foils
12555 \end_layout
12556
12557 \begin_layout Standard
12558 This section will give a simple introduction to using the different environments
12559  to build a set of foils.
12560  If you want to see an example set of foils, take a look at the 
12561 \family typewriter
12562 Foils.lyx
12563 \family default
12564  file you find in \SpecialChar LyX
12565 's 
12566 \family typewriter
12567 examples
12568 \family default
12569  folder.
12570 \end_layout
12571
12572 \begin_layout Subsubsection
12573 Give It a Title Page
12574 \end_layout
12575
12576 \begin_layout Standard
12577 Unlike other classes that provide 
12578 \family sans
12579 Title
12580 \family default
12581
12582 \family sans
12583 Author
12584 \family default
12585
12586 \family sans
12587 Date
12588 \family default
12589  and 
12590 \family sans
12591 Abstract
12592 \family default
12593  environments, 
12594 \family sans
12595 foils
12596 \family default
12597  creates the title on a page of its own.
12598  If you leave out the 
12599 \family sans
12600 Date
12601 \family default
12602  environment \SpecialChar LaTeX
12603  will substitute the current date (every time you regenerate
12604  the output).
12605 \end_layout
12606
12607 \begin_layout Subsubsection
12608 Start a New Foil
12609 \end_layout
12610
12611 \begin_layout Standard
12612 As I mentioned earlier, there are four ways of starting a new foil.
12613  For portrait foils you should use 
12614 \family sans
12615 Foilhead
12616 \family default
12617  or 
12618 \family sans
12619 ShortFoilhead.
12620
12621 \family default
12622  The difference between these two environments is the amount of space between
12623  the title of the foil (the foilhead) and the body of the foil.
12624 \end_layout
12625
12626 \begin_layout Standard
12627 Landscape foils are generated using the 
12628 \family sans
12629 Rotatefoilhead
12630 \family default
12631  and 
12632 \family sans
12633 ShortRotatefoilhead
12634 \family default
12635  environments.
12636  Again the only difference is the spacing between foilhead and body.
12637  Both of the short versions have 0.5
12638 \begin_inset space ~
12639 \end_inset
12640
12641 inches less separation between the foilhead and the body.
12642  
12643 \end_layout
12644
12645 \begin_layout Standard
12646 One problem with the support for landscape foils is the requirement that
12647  you have to use the 
12648 \family typewriter
12649 dvips
12650 \family default
12651  driver to generate the PostScript output otherwise the foils won't be rotated.
12652  It is possible to get landscape foils even if you haven't got the 
12653 \family typewriter
12654 dvips
12655 \family default
12656  driver provided you can feed your foils sideways through your printer ;-)
12657 \end_layout
12658
12659 \begin_layout Subsubsection
12660 Theorems, Lemmas, Proofs and more
12661 \end_layout
12662
12663 \begin_layout Standard
12664
12665 \change_deleted -712698321 1501160146
12666 Due to a small bug in \SpecialChar LyX
12667  y
12668 \change_inserted -712698321 1501160146
12669 Y
12670 \change_unchanged
12671 ou can't have two of the same type of these environments directly following
12672  each other.
12673  
12674 \change_inserted -712698321 1501160182
12675 If you use a normal paragraph break, 
12676 \change_deleted -712698321 1501160188
12677 They must be separated by something.
12678  If you try
12679 \change_unchanged
12680 , you will just be extending the previous environment as if you had merged
12681  the two environments together.
12682  
12683 \change_deleted -712698321 1501160194
12684 So, how do you get around this problem? The simplest option is to insert
12685  some text between the two environments or add a 
12686 \family sans
12687 \SpecialChar LaTeX
12688
12689 \family default
12690  environment between the two with just a 
12691 \begin_inset Quotes eld
12692 \end_inset
12693
12694
12695 \family typewriter
12696 %
12697 \family default
12698
12699 \begin_inset Quotes erd
12700 \end_inset
12701
12702  in it.
12703  This will force \SpecialChar LyX
12704  to produce two separate environments and hence the correct
12705  \SpecialChar LaTeX
12706  output.
12707  An example is provided in the example file included with the \SpecialChar LyX
12708  distribution.
12709  Remember, this problem only occurs if you are trying to place two of the
12710  same type of theorem-like environments one directly after the other.
12711
12712 \change_inserted -712698321 1501160255
12713  Rather than that, you need to insert a so-called separator.
12714  Please refer to the section entitled 
12715 \emph on
12716 Separate Nestings
12717 \emph default
12718  in the 
12719 \emph on
12720 User's Guide
12721 \emph default
12722 .
12723 \change_unchanged
12724
12725 \end_layout
12726
12727 \begin_layout Subsubsection
12728 Lists
12729 \end_layout
12730
12731 \begin_layout Standard
12732 You get all the commonly supported list styles found in other classes as
12733  well as two new ones.
12734  I'll only describe the new ones here.
12735  If you want to find out more about the other list environments check out
12736  the 
12737 \emph on
12738 User's Guide.
12739
12740 \emph default
12741  If you intend to use itemized lists you might also want to read about the
12742  
12743 \family sans
12744 Itemize
12745 \begin_inset space ~
12746 \end_inset
12747
12748 Bullet
12749 \begin_inset space ~
12750 \end_inset
12751
12752 Selection
12753 \family default
12754  dialog described above in section
12755 \begin_inset space ~
12756 \end_inset
12757
12758
12759 \begin_inset CommandInset ref
12760 LatexCommand ref
12761 reference "sec:bullet"
12762
12763 \end_inset
12764
12765 .
12766 \end_layout
12767
12768 \begin_layout Standard
12769 The two new list styles, 
12770 \family sans
12771 TickList
12772 \family default
12773  and 
12774 \family sans
12775 CrossList
12776 \family default
12777 , are designed to make it easier for you to create lists of do's and don'ts
12778  or right and wrong by providing dedicated environments that use a tick
12779  or a cross as the label of the list.
12780  These lists are in fact dedicated variants of the 
12781 \family sans
12782 Itemize
12783 \family default
12784  environment.
12785  They do however require that you have the 
12786 \family typewriter
12787 psnfss
12788 \family default
12789  packages installed.
12790 \end_layout
12791
12792 \begin_layout Subsubsection
12793 Figures and Tables
12794 \end_layout
12795
12796 \begin_layout Standard
12797
12798 \family sans
12799 Foil\SpecialChar TeX
12800
12801 \family default
12802  redefines the floating tables and figures so that they appear exactly where
12803  they are in the text rather than pushing them to the top of the page or
12804  to some user specified location.
12805  In fact if you change the float placement settings they are simply ignored.
12806 \end_layout
12807
12808 \begin_layout Subsubsection
12809 Page Headers and Footers
12810 \begin_inset CommandInset label
12811 LatexCommand label
12812 name "sec:foilfoot"
12813
12814 \end_inset
12815
12816
12817 \end_layout
12818
12819 \begin_layout Standard
12820
12821 \family sans
12822 My
12823 \begin_inset space ~
12824 \end_inset
12825
12826 Logo
12827 \family default
12828  and 
12829 \family sans
12830 Restriction
12831 \family default
12832  are two commands used to control the left-footer text string.
12833  The first is meant to allow you to include a graphic logo on your foils
12834  and defaults to 
12835 \begin_inset Quotes eld
12836 \end_inset
12837
12838 -Typeset by 
12839 \family sans
12840 Foil\SpecialChar TeX
12841
12842 \family default
12843 -
12844 \begin_inset Quotes erd
12845 \end_inset
12846
12847 .
12848  While the second is meant to provide a classification for the audience,
12849  
12850 \emph on
12851 e.
12852 \begin_inset space \thinspace{}
12853 \end_inset
12854
12855 g.
12856 \emph default
12857
12858 \begin_inset space \space{}
12859 \end_inset
12860
12861 Confidential.
12862  It is empty by default.
12863 \end_layout
12864
12865 \begin_layout Standard
12866 The remaining page corners can be filled by 
12867 \family sans
12868 Right
12869 \begin_inset space ~
12870 \end_inset
12871
12872 Footer
12873 \family default
12874  (which defaults to page numbers), 
12875 \family sans
12876 Right
12877 \begin_inset space ~
12878 \end_inset
12879
12880 Header
12881 \family default
12882  (top right) and 
12883 \family sans
12884 Left
12885 \begin_inset space ~
12886 \end_inset
12887
12888 Header
12889 \family default
12890  (top left).
12891 \end_layout
12892
12893 \begin_layout Subsection
12894 Unsupported 
12895 \family sans
12896 Foil\SpecialChar TeX
12897
12898 \family default
12899  Goodies
12900 \begin_inset CommandInset label
12901 LatexCommand label
12902 name "sec:unsuppfoils"
12903
12904 \end_inset
12905
12906
12907 \end_layout
12908
12909 \begin_layout Standard
12910 All the commands mentioned below need to be set in a 
12911 \family sans
12912 \SpecialChar LaTeX
12913
12914 \family default
12915  environment or as 
12916 \family sans
12917 \SpecialChar TeX
12918
12919 \family default
12920  within another environment.
12921 \end_layout
12922
12923 \begin_layout Subsubsection
12924 Lengths
12925 \end_layout
12926
12927 \begin_layout Standard
12928 All lengths are adjusted using the 
12929 \family typewriter
12930
12931 \backslash
12932 setlength{
12933 \family default
12934 \emph on
12935 lengthname
12936 \family typewriter
12937 \emph default
12938 }{
12939 \family default
12940 \emph on
12941 newlength
12942 \family typewriter
12943 \emph default
12944 }
12945 \family default
12946  command.
12947  Where 
12948 \emph on
12949 lengthname
12950 \emph default
12951  should be replaced by the name given to the length you want to change and
12952  
12953 \emph on
12954 newlength
12955 \emph default
12956  is the length value.
12957  All lengths should be specified in units of length such as inches (
12958 \family typewriter
12959 in
12960 \family default
12961 ), millimeters (
12962 \family typewriter
12963 mm
12964 \family default
12965 ) or points (
12966 \family typewriter
12967 pt
12968 \family default
12969 ) or relative to some document or font-based length such as 
12970 \family typewriter
12971
12972 \backslash
12973 textwidth
12974 \family default
12975 .
12976  
12977 \end_layout
12978
12979 \begin_layout Standard
12980 It's possible to change the spacing between a foilhead and the body of the
12981  foil by adjusting the length specified by 
12982 \family typewriter
12983
12984 \backslash
12985 foilheadskip
12986 \family default
12987 .
12988  For example, to make 
12989 \emph on
12990 all
12991 \emph default
12992  foilheads 0.5
12993 \begin_inset space \space{}
12994 \end_inset
12995
12996 in closer to their bodies put the following in the preamble: 
12997 \family typewriter
12998
12999 \backslash
13000 setlength{
13001 \backslash
13002 foilheadskip}{-0.5in}
13003 \end_layout
13004
13005 \begin_layout Standard
13006 The spacings around floats can be adjusted by setting these lengths:
13007 \end_layout
13008
13009 \begin_layout Labeling
13010 \labelwidthstring MMMMMMMMMMM
13011
13012 \family typewriter
13013
13014 \backslash
13015 abovefloatskip
13016 \family default
13017  Separation between the text and the top of the float
13018 \end_layout
13019
13020 \begin_layout Labeling
13021 \labelwidthstring MMMMMMMMMMM
13022
13023 \family typewriter
13024
13025 \backslash
13026 abovecaptionskip
13027 \family default
13028  Separation between the float and the caption
13029 \end_layout
13030
13031 \begin_layout Labeling
13032 \labelwidthstring MMMMMMMMMMM
13033
13034 \family typewriter
13035
13036 \backslash
13037 belowcaptionskip
13038 \family default
13039  Separation between the caption and the following text
13040 \end_layout
13041
13042 \begin_layout Labeling
13043 \labelwidthstring MMMMMMMMMMM
13044
13045 \family typewriter
13046
13047 \backslash
13048 captionwidth
13049 \family default
13050  You can make the captions narrower than the surrounding text by adjusting
13051  this length.
13052  Best done relative to 
13053 \family typewriter
13054
13055 \backslash
13056 textwidth
13057 \family default
13058 .
13059 \end_layout
13060
13061 \begin_layout Standard
13062 There are also several title page related lengths that you may find useful
13063  if you have a long title or several authors:
13064 \end_layout
13065
13066 \begin_layout Labeling
13067 \labelwidthstring MMMMMMMMMMM
13068
13069 \family typewriter
13070
13071 \backslash
13072 abovetitleskip
13073 \family default
13074  Separation from headers to 
13075 \family sans
13076 Title
13077 \end_layout
13078
13079 \begin_layout Labeling
13080 \labelwidthstring MMMMMMMMMMM
13081
13082 \family typewriter
13083
13084 \backslash
13085 titleauthorskip
13086 \family default
13087  between 
13088 \family sans
13089 Title
13090 \family default
13091  and 
13092 \family sans
13093 Author
13094 \family default
13095  environments
13096 \end_layout
13097
13098 \begin_layout Labeling
13099 \labelwidthstring MMMMMMMMMMM
13100
13101 \family typewriter
13102
13103 \backslash
13104 authorauthorskip
13105 \family default
13106  between multiple 
13107 \family sans
13108 Author
13109 \family default
13110  lines
13111 \end_layout
13112
13113 \begin_layout Labeling
13114 \labelwidthstring MMMMMMMMMMM
13115
13116 \family typewriter
13117
13118 \backslash
13119 authordateskip
13120 \family default
13121  between the 
13122 \family sans
13123 Author
13124 \family default
13125  and the 
13126 \family sans
13127 Date
13128 \end_layout
13129
13130 \begin_layout Labeling
13131 \labelwidthstring MMMMMMMMMMM
13132
13133 \family typewriter
13134
13135 \backslash
13136 dateabstractskip
13137 \family default
13138  between the 
13139 \family sans
13140 Date
13141 \family default
13142  and the 
13143 \family sans
13144 Abstract
13145 \end_layout
13146
13147 \begin_layout Standard
13148 The last length related command affects all the list environments.
13149  If you place 
13150 \family typewriter
13151
13152 \backslash
13153 zerolistvertdimens
13154 \family default
13155  
13156 \emph on
13157 inside
13158 \emph default
13159  a list environment then all the vertical spacing between the list items
13160  is removed.
13161  Note that this is a command not a length so it doesn't require 
13162 \family typewriter
13163
13164 \backslash
13165 setlength
13166 \family default
13167  like the stuff mentioned above.
13168 \end_layout
13169
13170 \begin_layout Subsubsection
13171 Headers and Footers
13172 \end_layout
13173
13174 \begin_layout Standard
13175 The 
13176 \family typewriter
13177
13178 \backslash
13179 LogoOn
13180 \family default
13181  and 
13182 \family typewriter
13183
13184 \backslash
13185 LogoOff
13186 \family default
13187  commands control whether the logo in the 
13188 \family sans
13189 MyLogo
13190 \family default
13191  definition appear on a given page.
13192  If you put 
13193 \family typewriter
13194
13195 \backslash
13196 LogoOff
13197 \family default
13198  in the preamble then none of the foils will have the logo on them.
13199  If you don't want the logo on a particular page place the 
13200 \family typewriter
13201
13202 \backslash
13203 LogoOff
13204 \family default
13205  directly after the foilhead of that page and the 
13206 \family typewriter
13207
13208 \backslash
13209 LogoOn
13210 \family default
13211  directly after the next foilhead.
13212 \end_layout
13213
13214 \begin_layout Standard
13215 If you decide to use the 
13216 \family sans
13217 fancy
13218 \family default
13219  page style setting in the 
13220 \family sans
13221 Document
13222 \begin_inset space ~
13223 \end_inset
13224
13225 Layout
13226 \family default
13227  dialog you should probably add 
13228 \family typewriter
13229
13230 \backslash
13231 let
13232 \backslash
13233 headwidth
13234 \backslash
13235 textwidth
13236 \family default
13237  to your preamble so headers and footers on landscape pages are correctly
13238  placed when rotated.
13239  This is due to some clashes between the page layouts provided by the 
13240 \family sans
13241 fancyheadings
13242 \family default
13243  package and the 
13244 \family sans
13245 foils
13246 \family default
13247  class.
13248 \end_layout
13249
13250 \begin_layout Section
13251 Hollywood (Hollywood spec scripts)
13252 \end_layout
13253
13254 \begin_layout Standard
13255 by 
13256 \shape smallcaps
13257 Garst Reese
13258 \end_layout
13259
13260 \begin_layout Subsection
13261 Introduction
13262 \end_layout
13263
13264 \begin_layout Standard
13265 Getting the format of a Hollywood script right is a 
13266 \begin_inset Quotes eld
13267 \end_inset
13268
13269 rite of passage.
13270 \begin_inset Quotes erd
13271 \end_inset
13272
13273  It is designed to make the readers focus on content and to be easy and
13274  familiar for the actors to read.
13275  Each page of a script should be one minute of film.
13276  Nothing goes in a script that you cannot see or hear on screen.
13277  The courier 12 pt font should be used throughout.
13278  No italics.
13279 \end_layout
13280
13281 \begin_layout Subsection
13282 Special problems
13283 \end_layout
13284
13285 \begin_layout Standard
13286 Speakers' lines should NEVER break in mid-sentence.
13287  If a speaker's lines continue over a page break, repeat the 
13288 \family sans
13289 Speaker
13290 \family default
13291  title followed by (Cont'd).
13292 \end_layout
13293
13294 \begin_layout Subsection
13295 Special features
13296 \end_layout
13297
13298 \begin_layout Standard
13299 Insert the 
13300 \family sans
13301 Speaker
13302 \family default
13303  names as labels then cross-reference the label to insert the name.
13304  The cross-reference dialog will show the current cast of characters.
13305  You can use this to insert the speaker name in narratives also.
13306 \end_layout
13307
13308 \begin_layout Subsection
13309 Paper size and Margins
13310 \end_layout
13311
13312 \begin_layout Standard
13313 USLetter, left 1.6in, right 0.75in, top 0.5in, bottom 0.75in
13314 \end_layout
13315
13316 \begin_layout Subsection
13317 Environments
13318 \end_layout
13319
13320 \begin_layout Standard
13321 The following environments are available.
13322  You can use hollywood.bind to get the bind keys shown at the right.
13323 \end_layout
13324
13325 \begin_layout Itemize
13326
13327 \family sans
13328 Standard
13329 \begin_inset Newline newline
13330 \end_inset
13331
13332
13333 \family default
13334 Used where nothing else works.
13335  Try to avoid it.
13336 \end_layout
13337
13338 \begin_layout Itemize
13339
13340 \family sans
13341 FADE_IN
13342 \family default
13343 :
13344 \begin_inset space \hfill{}
13345 \end_inset
13346
13347
13348 \family sans
13349 M-z S-I
13350 \family default
13351
13352 \begin_inset Newline newline
13353 \end_inset
13354
13355 Usually followed by something like 
13356 \begin_inset Quotes eld
13357 \end_inset
13358
13359 on Sally waking up.
13360 \begin_inset Quotes erd
13361 \end_inset
13362
13363
13364 \end_layout
13365
13366 \begin_layout Itemize
13367
13368 \family sans
13369 INT:
13370 \begin_inset space \hfill{}
13371 \end_inset
13372
13373 M-z i
13374 \begin_inset Newline newline
13375 \end_inset
13376
13377
13378 \family default
13379 Introduces a new INTERIOR camera set-up.
13380  Always followed by DAY or NIGHT, or something similar to define the lighting
13381  required.
13382  Everthing on this line in CAPS.
13383 \end_layout
13384
13385 \begin_layout Itemize
13386
13387 \family sans
13388 EXT:
13389 \begin_inset space \hfill{}
13390 \end_inset
13391
13392 M-z e
13393 \begin_inset Newline newline
13394 \end_inset
13395
13396
13397 \family default
13398 Introduces a new EXTERIOR camera set-up.
13399  Everthing on this line in CAPS.
13400 \end_layout
13401
13402 \begin_layout Itemize
13403
13404 \family sans
13405 Speaker
13406 \begin_inset space \hfill{}
13407 \end_inset
13408
13409 M-z s
13410 \begin_inset Newline newline
13411 \end_inset
13412
13413
13414 \family default
13415 The character speaking.
13416 \end_layout
13417
13418 \begin_layout Itemize
13419
13420 \family sans
13421 Parenthetical
13422 \begin_inset space \hfill{}
13423 \end_inset
13424
13425 M-z p
13426 \begin_inset Newline newline
13427 \end_inset
13428
13429
13430 \family default
13431 Instructions to the speaker.
13432  The () are automatically inserted
13433 \change_deleted -712698321 1501161286
13434 , but only the ( will show in \SpecialChar LyX
13435 .
13436  Both will be printed
13437 \change_unchanged
13438 .
13439 \end_layout
13440
13441 \begin_layout Itemize
13442
13443 \family sans
13444 Dialogue
13445 \begin_inset space \hfill{}
13446 \end_inset
13447
13448 M-z d
13449 \begin_inset Newline newline
13450 \end_inset
13451
13452
13453 \family default
13454 What the 
13455 \family sans
13456 Speaker
13457 \family default
13458  says.
13459 \end_layout
13460
13461 \begin_layout Itemize
13462
13463 \family sans
13464 Transition
13465 \begin_inset space \hfill{}
13466 \end_inset
13467
13468 M-z t
13469 \begin_inset Newline newline
13470 \end_inset
13471
13472
13473 \family default
13474 Camera movement instruction.
13475  e.
13476 \begin_inset space \thinspace{}
13477 \end_inset
13478
13479 g.
13480 \begin_inset space \space{}
13481 \end_inset
13482
13483 CUT TO:
13484 \end_layout
13485
13486 \begin_layout Itemize
13487
13488 \family sans
13489 FADE OUT:
13490 \begin_inset space \hfill{}
13491 \end_inset
13492
13493 M-z S-I
13494 \end_layout
13495
13496 \begin_layout Itemize
13497
13498 \family sans
13499 Author
13500 \begin_inset space \hfill{}
13501 \end_inset
13502
13503 M-z S-A
13504 \end_layout
13505
13506 \begin_layout Itemize
13507
13508 \family sans
13509 Title
13510 \begin_inset space \hfill{}
13511 \end_inset
13512
13513 M-z S-T
13514 \end_layout
13515
13516 \begin_layout Itemize
13517
13518 \family sans
13519 Right_Address
13520 \begin_inset space \hfill{}
13521 \end_inset
13522
13523 M-z r
13524 \end_layout
13525
13526 \begin_layout Subsection
13527 Script jargon
13528 \end_layout
13529
13530 \begin_layout Itemize
13531 (O.S) — off screen
13532 \end_layout
13533
13534 \begin_layout Itemize
13535 (V.0) — voice over
13536 \end_layout
13537
13538 \begin_layout Itemize
13539 b.
13540 \begin_inset space \thinspace{}
13541 \end_inset
13542
13543 g.
13544  — background
13545 \end_layout
13546
13547 \begin_layout Itemize
13548 C.U.
13549  — close-up
13550 \end_layout
13551
13552 \begin_layout Itemize
13553 PAN — camera movement
13554 \end_layout
13555
13556 \begin_layout Itemize
13557 INSERT — cut to close-up of
13558 \end_layout
13559
13560 \begin_layout Section
13561 ijmpc and ijmpd
13562 \end_layout
13563
13564 \begin_layout Standard
13565 by 
13566 \noun on
13567 Panayotis Papasotiriou
13568 \end_layout
13569
13570 \begin_layout Subsection
13571 Overview
13572 \end_layout
13573
13574 \begin_layout Standard
13575 The ijmpc package is a set of macros that facilitates electronic manuscript
13576  submission to the 
13577 \emph on
13578 International Journal of Modern Physics C
13579 \emph default
13580 .
13581  Similarly, the ijmpd package is for creating manuscripts to be submitted
13582  to the 
13583 \emph on
13584 International Journal of Modern Physics D
13585 \emph default
13586 .
13587  Both journals are published by World Scientific.
13588  The corresponding document classes are named 
13589 \family typewriter
13590 ws-ijmpc.cls
13591 \family default
13592  and 
13593 \family typewriter
13594 ws-ijmpd.cls
13595 \family default
13596 , respectively.
13597  These files, together with instructions for the authors, can be downloaded
13598  from the sites 
13599 \begin_inset Flex URL
13600 status collapsed
13601
13602 \begin_layout Plain Layout
13603
13604 http://www.worldscinet.com/ijmpc/mkt/guidelines.shtml
13605 \end_layout
13606
13607 \end_inset
13608
13609  and 
13610 \begin_inset Flex URL
13611 status collapsed
13612
13613 \begin_layout Plain Layout
13614
13615 http://www.worldscinet.com/ijmpd/mkt/guidelines.shtml
13616 \end_layout
13617
13618 \end_inset
13619
13620 .
13621  Both packages are modified versions of the standard 
13622 \begin_inset Quotes eld
13623 \end_inset
13624
13625 article
13626 \begin_inset Quotes erd
13627 \end_inset
13628
13629  package, and they are almost (but not exactly) identical.
13630  Most of their features are supported by \SpecialChar LyX
13631 .
13632  I have used \SpecialChar LyX
13633  successfully to write articles submitted to both journals
13634  without any problem.
13635 \end_layout
13636
13637 \begin_layout Subsection
13638 Writing a paper
13639 \end_layout
13640
13641 \begin_layout Standard
13642 As usual, the easiest way to write a paper is to start with a template.
13643  Click on 
13644 \family sans
13645 File\SpecialChar menuseparator
13646 New from
13647 \family default
13648  
13649 \family sans
13650 Template
13651 \family default
13652 , then choose the 
13653 \family typewriter
13654 ijmpc.lyx
13655 \family default
13656  or 
13657 \family typewriter
13658 ijmpd.lyx
13659 \family default
13660  template.
13661  This will give an (almost) empty document that includes the most common
13662  fields found in a manuscript.
13663  Simply overwrite the existing text (including the brackets, 
13664 \family typewriter
13665 <>
13666 \family default
13667 ) with your text.
13668  You should keep in mind the following remarks.
13669 \end_layout
13670
13671 \begin_layout Enumerate
13672 \SpecialChar LyX
13673  won't let you change the font size and the page style of the document,
13674  because such modifications are not allowed by both packages.
13675 \end_layout
13676
13677 \begin_layout Enumerate
13678 The language of the document should not be changed.
13679  Before previewing your paper, be sure that the babel package is not used.
13680  To do this, click on
13681 \change_inserted -712698321 1501082726
13682  
13683 \begin_inset Info
13684 type  "menu"
13685 arg   "dialog-show document"
13686 \end_inset
13687
13688
13689 \change_unchanged
13690  
13691 \change_deleted -712698321 1501082743
13692
13693 \family sans
13694 Tools
13695 \change_unchanged
13696 \SpecialChar menuseparator
13697
13698 \change_deleted -712698321 1501082747
13699 Preferences
13700 \change_inserted -712698321 1501082748
13701 Language
13702 \change_unchanged
13703
13704 \family default
13705
13706 \change_deleted -712698321 1501082762
13707 select the 
13708 \family sans
13709 Lang Opts
13710 \family default
13711  tab, deselect the 
13712 \family sans
13713 Use babel
13714 \family default
13715  checkbox in the language settings, and click on 
13716 \family sans
13717 Apply
13718 \family default
13719  (or 
13720 \family sans
13721 Save
13722 \family default
13723 , if you wish to make this change permanent)
13724 \change_inserted -712698321 1501082770
13725 and select 
13726 \begin_inset Quotes eld
13727 \end_inset
13728
13729 None
13730 \begin_inset Quotes erd
13731 \end_inset
13732
13733  as 
13734 \family sans
13735 Language Package
13736 \change_unchanged
13737
13738 \family default
13739 .
13740 \end_layout
13741
13742 \begin_layout Enumerate
13743 The 
13744 \begin_inset Quotes eld
13745 \end_inset
13746
13747 Keywords
13748 \begin_inset Quotes erd
13749 \end_inset
13750
13751  style must be used to define keywords.
13752 \end_layout
13753
13754 \begin_layout Enumerate
13755 The ijmpc package provides a style named 
13756 \begin_inset Quotes eld
13757 \end_inset
13758
13759 Classification Codes
13760 \begin_inset Quotes erd
13761 \end_inset
13762
13763 , which can be used to define classification codes, such as PACS numbers.
13764  Note that this facility is not supported by the ijmpd package.
13765 \end_layout
13766
13767 \begin_layout Enumerate
13768 Several new environments are available: 
13769 \begin_inset Quotes eld
13770 \end_inset
13771
13772 Definition
13773 \begin_inset Quotes erd
13774 \end_inset
13775
13776
13777 \begin_inset Quotes eld
13778 \end_inset
13779
13780 Step
13781 \begin_inset Quotes erd
13782 \end_inset
13783
13784
13785 \begin_inset Quotes eld
13786 \end_inset
13787
13788 Example
13789 \begin_inset Quotes erd
13790 \end_inset
13791
13792
13793 \begin_inset Quotes eld
13794 \end_inset
13795
13796 Remark
13797 \begin_inset Quotes erd
13798 \end_inset
13799
13800
13801 \begin_inset Quotes eld
13802 \end_inset
13803
13804 Notation
13805 \begin_inset Quotes erd
13806 \end_inset
13807
13808
13809 \begin_inset Quotes eld
13810 \end_inset
13811
13812 Theorem
13813 \begin_inset Quotes erd
13814 \end_inset
13815
13816
13817 \begin_inset Quotes eld
13818 \end_inset
13819
13820 Proof
13821 \begin_inset Quotes erd
13822 \end_inset
13823
13824
13825 \begin_inset Quotes eld
13826 \end_inset
13827
13828 Corollary
13829 \begin_inset Quotes erd
13830 \end_inset
13831
13832
13833 \begin_inset Quotes eld
13834 \end_inset
13835
13836 Lemma
13837 \begin_inset Quotes erd
13838 \end_inset
13839
13840
13841 \begin_inset Quotes eld
13842 \end_inset
13843
13844 Proposition
13845 \begin_inset Quotes erd
13846 \end_inset
13847
13848
13849 \begin_inset Quotes eld
13850 \end_inset
13851
13852 Prop
13853 \begin_inset Quotes erd
13854 \end_inset
13855
13856
13857 \begin_inset Quotes eld
13858 \end_inset
13859
13860 Question
13861 \begin_inset Quotes erd
13862 \end_inset
13863
13864
13865 \begin_inset Quotes eld
13866 \end_inset
13867
13868 Claim
13869 \begin_inset Quotes erd
13870 \end_inset
13871
13872 , and 
13873 \begin_inset Quotes eld
13874 \end_inset
13875
13876 Conjecture
13877 \begin_inset Quotes erd
13878 \end_inset
13879
13880 .
13881  Their use is more or less obvious.
13882  \SpecialChar LyX
13883  supports all these environments; it will use the proper label, text style,
13884  and numbering scheme for each of them.
13885 \end_layout
13886
13887 \begin_layout Enumerate
13888 Both packages use basic citations; the natbib package should not be used.
13889  In \SpecialChar LyX
13890 , citation references are shown as usual; in the output, citations are
13891  shown as superscripts.
13892  If you want to use a citation as normal text, you should use the 
13893 \family typewriter
13894 refcite
13895 \family default
13896  command, e.
13897 \begin_inset space \thinspace{}
13898 \end_inset
13899
13900 g.
13901 \begin_inset space \space{}
13902 \end_inset
13903
13904
13905 \begin_inset Quotes eld
13906 \end_inset
13907
13908 See Ref.
13909 \begin_inset space \space{}
13910 \end_inset
13911
13912
13913 \family typewriter
13914
13915 \backslash
13916 refcite{key}
13917 \family default
13918
13919 \begin_inset Quotes erd
13920 \end_inset
13921
13922 .
13923 \end_layout
13924
13925 \begin_layout Enumerate
13926 There is no 
13927 \begin_inset Quotes eld
13928 \end_inset
13929
13930 Acknowledgments
13931 \begin_inset Quotes erd
13932 \end_inset
13933
13934  section in both packages.
13935  To put acknowledgments, just use the 
13936 \begin_inset Quotes eld
13937 \end_inset
13938
13939 Section*
13940 \begin_inset Quotes erd
13941 \end_inset
13942
13943  environment.
13944 \end_layout
13945
13946 \begin_layout Enumerate
13947 Appendices may be added to the paper, 
13948 \emph on
13949 after
13950 \emph default
13951  the Acknowledgments and 
13952 \shape italic
13953 before
13954 \shape default
13955  the References.
13956  \SpecialChar LyX
13957  provides a special environment, called 
13958 \begin_inset Quotes eld
13959 \end_inset
13960
13961 Appendices Section
13962 \begin_inset Quotes erd
13963 \end_inset
13964
13965  which marks the beginning of the appendices.
13966  This environment should be left blank; it just sends a \SpecialChar LaTeX
13967  command, but nothing
13968  is really printed.
13969  In \SpecialChar LyX
13970 , the word 
13971 \begin_inset Quotes eld
13972 \end_inset
13973
13974 Appendix
13975 \begin_inset Quotes erd
13976 \end_inset
13977
13978  is printed with blue letters, as a signal that all sections after that
13979  point are appendices.
13980  To write an appendix, use the 
13981 \begin_inset Quotes eld
13982 \end_inset
13983
13984 Appendix
13985 \begin_inset Quotes erd
13986 \end_inset
13987
13988  environment.
13989  \SpecialChar LyX
13990  will number each appendix with capital letters, as required by both journals.
13991  Note that 
13992 \begin_inset Quotes eld
13993 \end_inset
13994
13995 Appendices Section
13996 \begin_inset Quotes erd
13997 \end_inset
13998
13999  
14000 \emph on
14001 must
14002 \emph default
14003  be present before the first appendix; if not, all appendices will be numbered
14004  as normal sections in the output.
14005 \end_layout
14006
14007 \begin_layout Enumerate
14008 The ijmpc and the ijmpd packages use the 
14009 \family typewriter
14010 tbl
14011 \family default
14012  command to implement table captions.
14013  As a result, a table created by \SpecialChar LyX
14014  is printed correctly, but its caption
14015  is ignored.
14016  However, you can use some \SpecialChar TeX
14017  code to overcome this problem, so that captions
14018  are printed as expected.
14019  To do so, create a float table as usual, remove the caption, and replace
14020  it with the \SpecialChar TeX
14021  code 
14022 \family typewriter
14023
14024 \backslash
14025 tbl{
14026 \emph on
14027 your table caption
14028 \emph default
14029 }{
14030 \family default
14031  (sic); you must also the \SpecialChar TeX
14032  code 
14033 \family typewriter
14034 }
14035 \family default
14036  immediately after the tabular material.
14037  Study the example table included in the template files to see how this
14038  trick is implemented.
14039  Alternatively, If you need table captions, you should implement the whole
14040  table float in a 
14041 \family typewriter
14042 .tex
14043 \family default
14044  file, then include this file to the \SpecialChar LyX
14045  document (
14046 \family sans
14047 Insert\SpecialChar menuseparator
14048 File\SpecialChar menuseparator
14049 Child
14050 \begin_inset space ~
14051 \end_inset
14052
14053 Document
14054 \family default
14055 ).
14056  Details on how to create a table float can be found in the files 
14057 \family typewriter
14058 ws-ijmpc.tex
14059 \family default
14060  and 
14061 \family typewriter
14062 ws-ijmpd.tex
14063 \family default
14064 , included in the corresponding packages.
14065 \end_layout
14066
14067 \begin_layout Subsection
14068 Preparing a paper for submission
14069 \end_layout
14070
14071 \begin_layout Standard
14072 Before you submit your paper you must export the \SpecialChar LyX
14073  document as a \SpecialChar LaTeX
14074  file (
14075 \family sans
14076 File\SpecialChar menuseparator
14077 Export\SpecialChar menuseparator
14078 \SpecialChar LaTeX
14079
14080 \family default
14081 )
14082 \begin_inset Foot
14083 status open
14084
14085 \begin_layout Plain Layout
14086 Actually you have the choice between \SpecialChar LaTeX
14087  (plain) and pdflatex.
14088  If you intend to use pdflatex to prepare the paper, you should use the
14089  pdflatex option so that included graphics are converted to PDF format,
14090  ready for use by pdflatex.
14091 \end_layout
14092
14093 \end_inset
14094
14095 , then make the following changes to the resulting 
14096 \family typewriter
14097 .tex
14098 \family default
14099  file.
14100 \end_layout
14101
14102 \begin_layout Enumerate
14103 Remove the comment lines before the 
14104 \family typewriter
14105
14106 \backslash
14107 documentclass
14108 \family default
14109  command.
14110 \end_layout
14111
14112 \begin_layout Enumerate
14113 Remove everything between (and including) the 
14114 \family typewriter
14115
14116 \backslash
14117 makeatletter
14118 \family default
14119  and 
14120 \family typewriter
14121
14122 \backslash
14123 makeatother
14124 \family default
14125  commands, except for any commands you specifically put into the \SpecialChar LaTeX
14126  preamble.
14127 \end_layout
14128
14129 \begin_layout Standard
14130 The modified 
14131 \family typewriter
14132 .tex
14133 \family default
14134  file should be saved and processed through \SpecialChar LaTeX
14135  as many times as necessary.
14136  You may also want to check the resulting 
14137 \family typewriter
14138 .dvi
14139 \family default
14140  document.
14141 \end_layout
14142
14143 \begin_layout Subsection
14144
14145 \change_deleted -712698321 1501082212
14146 Use of \SpecialChar TeX
14147  code
14148 \end_layout
14149
14150 \begin_layout Standard
14151
14152 \change_deleted -712698321 1501082212
14153 The use of \SpecialChar TeX
14154  code is reduced to two commands, which must be placed at the
14155  top of the document.
14156  If you started writing your paper by using the 
14157 \family typewriter
14158 ijmpc.lyx
14159 \family default
14160  or the 
14161 \family typewriter
14162 ijmpd.lyx
14163 \family default
14164  template, the \SpecialChar TeX
14165  code needed is already in its place; you usually don't need
14166  to delete it.
14167  You may only modify the first \SpecialChar TeX
14168  code to specify the information printed
14169  to the top of odd and even pages (authors' names and short paper's title,
14170  respectively).
14171  This \SpecialChar TeX
14172  code must have the form 
14173 \family typewriter
14174
14175 \backslash
14176 markboth{Authors' Names}{Short Paper's Title}
14177 \family default
14178 .
14179 \change_unchanged
14180
14181 \end_layout
14182
14183 \begin_layout Section
14184 iopart
14185 \end_layout
14186
14187 \begin_layout Standard
14188 by 
14189 \noun on
14190 Uwe Stöhr
14191 \end_layout
14192
14193 \begin_layout Subsection
14194 Overview
14195 \end_layout
14196
14197 \begin_layout Standard
14198 The iopart package provides a document class to create electronic manuscript
14199  submission to the journals published by the Institute of Physics.
14200  Instructions for the authors how to create a paper using the iopart class
14201  can be downloaded together with the iopart package from the site 
14202 \begin_inset Flex URL
14203 status collapsed
14204
14205 \begin_layout Plain Layout
14206
14207 ftp://ftp.iop.org/pub/journals/latex2e
14208 \end_layout
14209
14210 \end_inset
14211
14212 .
14213 \end_layout
14214
14215 \begin_layout Subsection
14216 Writing a paper
14217 \end_layout
14218
14219 \begin_layout Standard
14220 The easiest way to write a paper is to start with the 
14221 \change_deleted -712698321 1501162201
14222 file
14223 \change_inserted -712698321 1501162202
14224 template
14225 \change_unchanged
14226  
14227 \emph on
14228 IOP-article.lyx
14229 \emph default
14230  that is available 
14231 \change_deleted -712698321 1501162208
14232 in \SpecialChar LyX
14233 's examples files folder
14234 \change_inserted -712698321 1501162222
14235 via 
14236 \family sans
14237 File\SpecialChar menuseparator
14238 New From Template\SpecialChar ldots
14239
14240 \change_deleted -712698321 1501162219
14241
14242 \family default
14243 .
14244
14245 \change_unchanged
14246  
14247 \change_deleted -712698321 1501162234
14248 Open this file, save it under a new name, and start writing.
14249
14250 \change_unchanged
14251  The 
14252 \change_deleted -712698321 1501162238
14253 example file
14254 \change_inserted -712698321 1501162239
14255 template
14256 \change_unchanged
14257  explains how to use the special text environments.
14258  Here are the most important advices:
14259 \end_layout
14260
14261 \begin_layout Itemize
14262 To be able to compile your document to a PDF, PS, or DVI, ensure that the
14263  
14264 \change_deleted -712698321 1501162254
14265 two options 
14266 \family sans
14267 Use AMS math package
14268 \family default
14269  in the document settings under 
14270 \family sans
14271 Math Options
14272 \family default
14273  are not used
14274 \change_inserted -712698321 1501162277
14275 no AMS packages are loaded in 
14276 \family sans
14277 Document\SpecialChar menuseparator
14278 Settings\SpecialChar menuseparator
14279 Math Options
14280 \change_unchanged
14281
14282 \family default
14283 !
14284 \end_layout
14285
14286 \begin_layout Itemize
14287
14288 \size normal
14289 The title environment defines the kind of your paper.
14290  So use one of the following environments for the title:
14291 \end_layout
14292
14293 \begin_deeper
14294 \begin_layout Itemize
14295
14296 \family sans
14297 \size normal
14298 Title
14299 \family default
14300  for a Paper
14301 \end_layout
14302
14303 \begin_layout Itemize
14304
14305 \family sans
14306 \size normal
14307 Review
14308 \family default
14309  for a Review
14310 \end_layout
14311
14312 \begin_layout Itemize
14313
14314 \family sans
14315 \size normal
14316 Topical
14317 \family default
14318  for a Topical review
14319 \end_layout
14320
14321 \begin_layout Itemize
14322
14323 \family sans
14324 \size normal
14325 Comment
14326 \family default
14327  for a Comment
14328 \end_layout
14329
14330 \begin_layout Itemize
14331
14332 \family sans
14333 \size normal
14334 Note
14335 \family default
14336  for a Note
14337 \end_layout
14338
14339 \begin_layout Itemize
14340
14341 \family sans
14342 \size normal
14343 Paper
14344 \family default
14345  for a Paper (same as Title)
14346 \end_layout
14347
14348 \begin_layout Itemize
14349
14350 \family sans
14351 \size normal
14352 Prelim
14353 \family default
14354  for a Preliminary communication
14355 \end_layout
14356
14357 \begin_layout Itemize
14358
14359 \family sans
14360 \size normal
14361 Rapid
14362 \family default
14363  for a Rapid communication
14364 \end_layout
14365
14366 \begin_layout Itemize
14367
14368 \family sans
14369 \size normal
14370 Letter
14371 \family default
14372  for a Letter to the editor
14373 \end_layout
14374
14375 \end_deeper
14376 \begin_layout Itemize
14377
14378 \size normal
14379 All title environments except of 
14380 \family sans
14381 Letter
14382 \family default
14383  can have an optional short title.
14384 \end_layout
14385
14386 \begin_layout Itemize
14387 There is a general title environment 
14388 \family sans
14389 Article
14390 \family default
14391  which is not directly supported by
14392 \change_deleted -712698321 1501162663
14393  the
14394 \change_unchanged
14395  \SpecialChar LyX
14396 .
14397  This can be used as \SpecialChar TeX
14398  code when your document doesn't fit into one of the
14399  other title types.
14400 \end_layout
14401
14402 \begin_layout Standard
14403 For more informations like hints for special table and formula formatting,
14404  look at the IOP author guidelines.
14405 \end_layout
14406
14407 \begin_layout Section
14408 Kluwer
14409 \end_layout
14410
14411 \begin_layout Standard
14412 by 
14413 \noun on
14414 Panayotis Papasotiriou
14415 \end_layout
14416
14417 \begin_layout Subsection
14418 Overview
14419 \end_layout
14420
14421 \begin_layout Standard
14422 The Kluwer package is a set of macros produced by Kluwer Academic Publishers
14423  that facilitates electronic manuscript submission to the journals they
14424  publish.
14425  Most known of them (at least in my domain of interest) are 
14426 \emph on
14427 Astrophysics and Space Science
14428 \emph default
14429  and 
14430 \emph on
14431 Solar Physics
14432 \emph default
14433 , but there are many others (see a complete list at 
14434 \begin_inset Flex URL
14435 status collapsed
14436
14437 \begin_layout Plain Layout
14438
14439 http://www.wkap.nl/jrnllist.htm/JRNLHOME
14440 \end_layout
14441
14442 \end_inset
14443
14444 ).
14445  The Kluwer package may be downloaded from the site 
14446 \begin_inset Flex URL
14447 status collapsed
14448
14449 \begin_layout Plain Layout
14450
14451 http://www.wkap.nl/kaphtml.htm/STYLEFILES
14452 \end_layout
14453
14454 \end_inset
14455
14456 .
14457  A complete user guide is contained in that package (but it can also be
14458  downloaded separately).
14459 \end_layout
14460
14461 \begin_layout Standard
14462 \SpecialChar LyX
14463  supports many features of the package but not everything.
14464  However, the \SpecialChar TeX
14465  code needed is reduced to some 
14466 \begin_inset Quotes eld
14467 \end_inset
14468
14469 peculiar
14470 \begin_inset Quotes erd
14471 \end_inset
14472
14473  commands of the package (see
14474 \begin_inset space ~
14475 \end_inset
14476
14477
14478 \begin_inset CommandInset ref
14479 LatexCommand ref
14480 reference "subsec:kluwer_peculiarities"
14481
14482 \end_inset
14483
14484 ).
14485  I have recently used \SpecialChar LyX
14486  to write an article submitted to the 
14487 \emph on
14488 Astrophysics and Space Science
14489 \emph default
14490  without any problem.
14491 \end_layout
14492
14493 \begin_layout Subsection
14494 Writing a paper
14495 \end_layout
14496
14497 \begin_layout Standard
14498 The easiest way to write a paper is to start with the Kluwer template file.
14499  Click on 
14500 \family sans
14501 File\SpecialChar menuseparator
14502 New from
14503 \family default
14504  
14505 \family sans
14506 Template
14507 \family default
14508 , then choose the 
14509 \family typewriter
14510 kluwer.lyx
14511 \family default
14512  template.
14513  This will give an (almost) empty document that includes the most common
14514  fields found in a manuscript and a short description of their use.
14515  As in most templates, simply overwrite the existing text (including the
14516  brackets, 
14517 \family typewriter
14518 <>
14519 \family default
14520 ) with the correct information.
14521 \end_layout
14522
14523 \begin_layout Subsection
14524 Preparing a paper for submission
14525 \end_layout
14526
14527 \begin_layout Standard
14528 As in the AAS\SpecialChar TeX
14529  package, before you submit your paper to a journal you must
14530  
14531 \begin_inset Quotes eld
14532 \end_inset
14533
14534 postprocess
14535 \begin_inset Quotes erd
14536 \end_inset
14537
14538  it as follows.
14539 \end_layout
14540
14541 \begin_layout Enumerate
14542 Export your paper as a \SpecialChar LaTeX
14543  file.
14544  To do this, click on 
14545 \family sans
14546 File\SpecialChar menuseparator
14547 Export\SpecialChar menuseparator
14548 \SpecialChar LaTeX
14549
14550 \family default
14551 .
14552  
14553 \end_layout
14554
14555 \begin_layout Enumerate
14556 Edit the resulting 
14557 \family typewriter
14558 .tex
14559 \family default
14560  file with a text editor and make the following changes
14561 \end_layout
14562
14563 \begin_deeper
14564 \begin_layout Enumerate
14565 remove the comment lines before the 
14566 \family typewriter
14567
14568 \backslash
14569 documentclass
14570 \family default
14571  command,
14572 \end_layout
14573
14574 \begin_layout Enumerate
14575 remove everything between (and including) the 
14576 \family typewriter
14577
14578 \backslash
14579 makeatletter
14580 \family default
14581  and 
14582 \family typewriter
14583
14584 \backslash
14585 makeatother
14586 \family default
14587  commands, except for any commands you specifically put into the \SpecialChar LaTeX
14588  preamble.
14589 \end_layout
14590
14591 \begin_layout Standard
14592 Save the resulting 
14593 \family typewriter
14594 .tex
14595 \family default
14596  file.
14597 \end_layout
14598
14599 \end_deeper
14600 \begin_layout Enumerate
14601 Run the 
14602 \family typewriter
14603 .tex
14604 \family default
14605  file through \SpecialChar LaTeX
14606  as many times as necessary (usually up to three).
14607 \end_layout
14608
14609 \begin_layout Enumerate
14610 View the resulting 
14611 \family typewriter
14612 .dvi
14613 \family default
14614  document using, e.
14615 \begin_inset space \thinspace{}
14616 \end_inset
14617
14618 g.
14619 \begin_inset space \space{}
14620 \end_inset
14621
14622
14623 \family sans
14624 xdvi
14625 \family default
14626 , and check if everything is OK (it should, if you didn't make any mistake).
14627 \end_layout
14628
14629 \begin_layout Subsection
14630 \begin_inset Quotes eld
14631 \end_inset
14632
14633 Peculiarities
14634 \begin_inset Quotes erd
14635 \end_inset
14636
14637  of the Kluwer package
14638 \begin_inset CommandInset label
14639 LatexCommand label
14640 name "subsec:kluwer_peculiarities"
14641
14642 \end_inset
14643
14644
14645 \end_layout
14646
14647 \begin_layout Standard
14648 The Kluwer package has the following 
14649 \begin_inset Quotes eld
14650 \end_inset
14651
14652 peculiarities
14653 \begin_inset Quotes erd
14654 \end_inset
14655
14656 .
14657 \end_layout
14658
14659 \begin_layout Enumerate
14660 It is possible to write multiple articles in the same \SpecialChar LaTeX
14661  file
14662 \begin_inset Foot
14663 status collapsed
14664
14665 \begin_layout Plain Layout
14666 I can't imagine any good reason to do this.
14667 \end_layout
14668
14669 \end_inset
14670
14671 .
14672  Each article must be included in the environment 
14673 \begin_inset Quotes eld
14674 \end_inset
14675
14676 article
14677 \begin_inset Quotes erd
14678 \end_inset
14679
14680 .
14681  Unfortunately, this environment cannot be omitted, even if you write just
14682  one article.
14683  Therefore, each article starts with the command 
14684 \family typewriter
14685
14686 \backslash
14687 begin{article}
14688 \family default
14689  and, obviously, ends with the command 
14690 \family typewriter
14691
14692 \backslash
14693 end{article}
14694 \family default
14695 .
14696  Although this can be implemented in \SpecialChar LyX
14697 , I didn't included it, since it looks
14698  ugly and can confuse the novice user.
14699  Therefore, you need to enter them directly and mark them as \SpecialChar LaTeX
14700  code (the
14701  well-known 
14702 \begin_inset Quotes eld
14703 \end_inset
14704
14705 \SpecialChar TeX
14706  code
14707 \begin_inset Quotes erd
14708 \end_inset
14709
14710 ).
14711 \end_layout
14712
14713 \begin_layout Enumerate
14714 Information given at the beginning of the article (i.
14715 \begin_inset space \thinspace{}
14716 \end_inset
14717
14718 e.
14719 \begin_inset space \space{}
14720 \end_inset
14721
14722 title, subtitle, author, institution, running title, running author, abstract
14723  and keywords) must be included in an environment called 
14724 \begin_inset Quotes eld
14725 \end_inset
14726
14727 opening
14728 \begin_inset Quotes erd
14729 \end_inset
14730
14731 .
14732  This is not implemented in \SpecialChar LyX
14733 , so you must enter title, subtitle etc.
14734 \begin_inset space ~
14735 \end_inset
14736
14737 between two \SpecialChar TeX
14738  code lines (
14739 \family typewriter
14740
14741 \backslash
14742 begin{opening}
14743 \family default
14744  and 
14745 \family typewriter
14746
14747 \backslash
14748 end{opening}
14749 \family default
14750 ).
14751 \end_layout
14752
14753 \begin_layout Enumerate
14754 According to the user manual, the label of each bibliography item must be
14755  written as 
14756 \family typewriter
14757
14758 \backslash
14759 protect
14760 \backslash
14761 citeauthoryear{
14762 \family default
14763 \emph on
14764 author(s)
14765 \family typewriter
14766 \emph default
14767 }{
14768 \family default
14769 \emph on
14770 year
14771 \family typewriter
14772 \emph default
14773 }
14774 \family default
14775 .
14776 \end_layout
14777
14778 \begin_layout Standard
14779 The 
14780 \family typewriter
14781 kluwer.lyx
14782 \family default
14783  template takes care of all these 
14784 \begin_inset Quotes eld
14785 \end_inset
14786
14787 peculiarities
14788 \begin_inset Quotes erd
14789 \end_inset
14790
14791 .
14792  If you start a new paper using this template you don't need to do anything
14793  special.
14794  Just 
14795 \end_layout
14796
14797 \begin_layout Enumerate
14798 don't delete the \SpecialChar TeX
14799  code included in the template, and
14800 \end_layout
14801
14802 \begin_layout Enumerate
14803 copy the example bibliography item included in the template and modify it
14804  as necessary to enter new bibliography items.
14805 \end_layout
14806
14807 \begin_layout Section
14808 Koma-Script
14809 \end_layout
14810
14811 \begin_layout Standard
14812 by 
14813 \noun on
14814 Bernd Rellermeyer
14815 \end_layout
14816
14817 \begin_layout Subsection
14818 Overview
14819 \end_layout
14820
14821 \begin_layout Standard
14822 The \SpecialChar LyX
14823  document classes 
14824 \emph on
14825 article (koma-script)
14826 \emph default
14827
14828 \emph on
14829 report (koma-script)
14830 \emph default
14831
14832 \emph on
14833 book
14834 \emph default
14835  
14836 \emph on
14837 (koma-script)
14838 \emph default
14839 , and 
14840 \emph on
14841 letter
14842 \emph default
14843  
14844 \emph on
14845 (koma-script)
14846 \emph default
14847  correspond to the \SpecialChar LaTeX
14848  document classes 
14849 \family typewriter
14850 scrartcl.cls
14851 \family default
14852
14853 \family typewriter
14854 scrreprt.cls
14855 \family default
14856
14857 \family typewriter
14858 scrbook.cls
14859 \family default
14860 , and 
14861 \family typewriter
14862 scrlettr.cls
14863 \family default
14864 , resp.
14865 \begin_inset space ~
14866 \end_inset
14867
14868 of the Koma-Script family.
14869  They are replacements for the standard document classes 
14870 \family typewriter
14871 article.cls
14872 \family default
14873
14874 \family typewriter
14875 report.cls
14876 \family default
14877
14878 \family typewriter
14879 book.cls
14880 \family default
14881  and 
14882 \family typewriter
14883 letter.cls
14884 \family default
14885 , resp., and fit better to European typography conventions in a number of
14886  points.
14887 \end_layout
14888
14889 \begin_layout Itemize
14890 Standard character size is 11pt in 
14891 \emph on
14892 article (koma-script)
14893 \emph default
14894
14895 \emph on
14896 report (koma-script)
14897 \emph default
14898 , and 
14899 \emph on
14900 book (koma-script)
14901 \emph default
14902 , and 12pt in 
14903 \emph on
14904 letter (koma-script)
14905 \emph default
14906 .
14907 \end_layout
14908
14909 \begin_layout Itemize
14910 Headings, labels of the description environment, and a number of elements
14911  of the 
14912 \emph on
14913 letter (koma-script)
14914 \emph default
14915  document class are set in a bold sans serif font.
14916 \begin_inset Foot
14917 status collapsed
14918
14919 \begin_layout Plain Layout
14920 There is a big difference between the bold sans serif old cm fonts and new
14921  ec fonts, especially in the appearance of headings.
14922  In comparison, the ec bold sans serif fonts look a bit thin.
14923  Here the \SpecialChar LaTeX
14924  package 
14925 \family typewriter
14926 cmsd.sty by
14927 \family default
14928  
14929 \shape smallcaps
14930 Walter Schmidt
14931 \shape default
14932  helps to produce the 
14933 \begin_inset Quotes eld
14934 \end_inset
14935
14936 usual
14937 \begin_inset Quotes erd
14938 \end_inset
14939
14940  appearance when using the ec fonts.
14941 \end_layout
14942
14943 \end_inset
14944
14945  The numbering of chapter headings is made in the same way as the numbering
14946  of section headings, that is without the extra line 
14947 \begin_inset Quotes eld
14948 \end_inset
14949
14950 Chapter\SpecialChar ldots
14951
14952 \begin_inset Quotes erd
14953 \end_inset
14954
14955 .
14956  In addition, the appearance of the headings can be modified by using a
14957  number of options (in \SpecialChar LyX
14958  to be entered in the field 
14959 \family sans
14960 Extra
14961 \begin_inset space ~
14962 \end_inset
14963
14964 Options
14965 \family default
14966  of the dialog 
14967 \family sans
14968 Layout\SpecialChar menuseparator
14969 Document
14970 \family default
14971 ).
14972  
14973 \end_layout
14974
14975 \begin_layout Itemize
14976 The main means in the Koma-Script document classes to design the type area
14977  are the options 
14978 \family sans
14979 BCOR
14980 \family default
14981  and 
14982 \family sans
14983 DIV
14984 \family default
14985  (in \SpecialChar LyX
14986  to be entered in the extra class options field in the dialog 
14987 \family sans
14988 Document\SpecialChar menuseparator
14989 Settings
14990 \family default
14991 ).
14992  They make a clearer modification of page margins possible as do the options
14993  of the dialog 
14994 \family sans
14995 Document\SpecialChar menuseparator
14996 Settings
14997 \family default
14998 .
14999  
15000 \end_layout
15001
15002 \begin_layout Itemize
15003 The \SpecialChar LaTeX
15004  document classes of the Koma-Script family define a number of additional
15005  commands.
15006  Those part of it which makes sense in \SpecialChar LyX
15007  is implemented in corresponding
15008  paragraph types.
15009 \end_layout
15010
15011 \begin_layout Standard
15012 Detailed descriptions of the \SpecialChar LaTeX
15013  document classes of the Koma-Script family
15014  can be found in the Koma-Script documentation 
15015 \emph on
15016 scrguide
15017 \emph default
15018  (German) and 
15019 \emph on
15020 scrguien
15021 \emph default
15022  (English).
15023 \end_layout
15024
15025 \begin_layout Subsection
15026 article (koma-script), report (koma-script), and book (koma-script)
15027 \end_layout
15028
15029 \begin_layout Standard
15030 The document classes 
15031 \emph on
15032 article (koma-script)
15033 \emph default
15034
15035 \emph on
15036 report (koma-script)
15037 \emph default
15038 , and 
15039 \emph on
15040 book
15041 \emph default
15042  
15043 \emph on
15044 (koma-script)
15045 \emph default
15046  are implemented in the layout files 
15047 \family typewriter
15048 scrartcl.layout
15049 \family default
15050
15051 \family typewriter
15052 scrreprt.layout
15053 \family default
15054 , and 
15055 \family typewriter
15056 scrbook.layout
15057 \family default
15058 , resp.
15059  They contain all the paragraph types of the corresponding standard document
15060  classes 
15061 \emph on
15062 article
15063 \emph default
15064
15065 \emph on
15066 report
15067 \emph default
15068 , and 
15069 \emph on
15070 book
15071 \emph default
15072 , resp., partly modified, with the exception of the \SpecialChar LyX
15073  specific 
15074 \family sans
15075 List
15076 \family default
15077 -type, which is replaced by the new 
15078 \family sans
15079 Labeling
15080 \family default
15081 -type having the same functionality.
15082  Beside the 
15083 \family sans
15084 Labeling
15085 \family default
15086 -Type there is a number of new paragraph types added.
15087  They are 
15088 \emph on
15089 not
15090 \emph default
15091  part of 
15092 \emph on
15093 letter (koma-script)
15094 \emph default
15095 .
15096 \end_layout
15097
15098 \begin_layout Itemize
15099
15100 \family sans
15101 Addpart, Addchap
15102 \family default
15103
15104 \family sans
15105 Addsec
15106 \family default
15107 : are equivalents to 
15108 \family sans
15109 Part*, Chapter*
15110 \family default
15111  and 
15112 \family sans
15113 Section*
15114 \family default
15115 , resp., additionally inserting an entry in the table of contents.
15116  
15117 \family sans
15118 Addpart
15119 \family default
15120  and 
15121 \family sans
15122 Addchap
15123 \family default
15124  are not contained in 
15125 \emph on
15126 article (koma-script)
15127 \emph default
15128 .
15129 \end_layout
15130
15131 \begin_layout Itemize
15132
15133 \family sans
15134 Addchap*
15135 \family default
15136
15137 \family sans
15138 Addsec*
15139 \family default
15140 : behave exactly as 
15141 \family sans
15142 Addchap
15143 \family default
15144  and 
15145 \family sans
15146 Addsec
15147 \family default
15148 , resp., additionally clearing running heads.
15149  
15150 \family sans
15151 Addchap*
15152 \family default
15153  is not contained in 
15154 \emph on
15155 article (koma-script)
15156 \emph default
15157 .
15158 \begin_inset Foot
15159 status collapsed
15160
15161 \begin_layout Plain Layout
15162 There is also an 
15163 \family typewriter
15164
15165 \backslash
15166 addpart*
15167 \family default
15168  command in 
15169 \emph on
15170 book (koma-script)
15171 \emph default
15172  and in 
15173 \emph on
15174 report (koma-script)
15175 \emph default
15176 , but since this is identical to 
15177 \family sans
15178 Part*
15179 \family default
15180 , is has not been implemented in \SpecialChar LyX
15181 .
15182 \end_layout
15183
15184 \end_inset
15185
15186
15187 \end_layout
15188
15189 \begin_layout Itemize
15190
15191 \family sans
15192 Minisec
15193 \family default
15194 : generates a heading directly above the following paragraph in the standard
15195  character size without affecting the structure of the document.
15196 \end_layout
15197
15198 \begin_layout Itemize
15199
15200 \family sans
15201 Captionabove
15202 \family default
15203  and 
15204 \family sans
15205 Captionbelow
15206 \family default
15207  are special captions which respect the different space settings needed
15208  for captions placed above or below an element (if you follow strict typographic
15209  rules, you might want to place table captions always above the table).
15210  You can also use the class option 
15211 \family typewriter
15212 tablecaptionsabove
15213 \family default
15214 , which will switch 
15215 \family sans
15216 caption
15217 \family default
15218  to 
15219 \family sans
15220 captionabove
15221 \family default
15222  for tables and 
15223 \family sans
15224 captionbelow
15225 \family default
15226  for figures.
15227  You need at least Koma-Script version 2.8q to use this.
15228 \end_layout
15229
15230 \begin_layout Itemize
15231
15232 \family sans
15233 Dictum
15234 \family default
15235 : can be used to set a bonmot, e.
15236 \begin_inset space \thinspace{}
15237 \end_inset
15238
15239 g.
15240 \begin_inset space \space{}
15241 \end_inset
15242
15243 at the beginning of a chapter.
15244  If you use the optional argument (
15245 \family sans
15246 Insert\SpecialChar menuseparator
15247
15248 \change_deleted -712698321 1501163301
15249 Short
15250 \begin_inset space ~
15251 \end_inset
15252
15253 Title
15254 \change_inserted -712698321 1501163306
15255 Dictum
15256 \begin_inset space ~
15257 \end_inset
15258
15259 Author
15260 \change_unchanged
15261
15262 \family default
15263 ), you can insert the dictum's author there.
15264  Dictum and author are separated by a line.
15265  You need at least Koma-Script version 2.8q to use this.
15266  
15267 \family sans
15268 Dictum
15269 \family default
15270  is not contained in 
15271 \emph on
15272 article (koma-script)
15273 \emph default
15274 .
15275 \end_layout
15276
15277 \begin_layout Standard
15278 The following types, together with the standard types 
15279 \family sans
15280 Title
15281 \family default
15282
15283 \family sans
15284 Author
15285 \family default
15286 , and 
15287 \family sans
15288 Date
15289 \family default
15290 , form the title area of the document.
15291  They must be entered ahead of the first 
15292 \begin_inset Quotes eld
15293 \end_inset
15294
15295 ordinary
15296 \begin_inset Quotes erd
15297 \end_inset
15298
15299  paragraph.
15300 \begin_inset Foot
15301 status collapsed
15302
15303 \begin_layout Plain Layout
15304 The corresponding \SpecialChar LaTeX
15305  commands must appear before the 
15306 \family typewriter
15307
15308 \backslash
15309 maketitle
15310 \family default
15311  command.
15312 \end_layout
15313
15314 \end_inset
15315
15316  When such a type is used more than once, the latter usage overwrites the
15317  former one, that means, for every type only the latest usage is valid.
15318  The order of the different types however has, like 
15319 \family sans
15320 Title
15321 \family default
15322
15323 \family sans
15324 Author
15325 \family default
15326 , and 
15327 \family sans
15328 Date
15329 \family default
15330 , no effect on the appearance of the produced document.
15331 \end_layout
15332
15333 \begin_layout Itemize
15334
15335 \family sans
15336 Subject
15337 \family default
15338 : produces a centered paragraph above the ordinary title (
15339 \family sans
15340 Title
15341 \family default
15342
15343 \family sans
15344 Author
15345 \family default
15346
15347 \family sans
15348 Date
15349 \family default
15350 ) for the subject of the document.
15351 \end_layout
15352
15353 \begin_layout Itemize
15354
15355 \family sans
15356 Publishers
15357 \family default
15358 : produces a centered paragraph below the ordinary title (
15359 \family sans
15360 Title
15361 \family default
15362
15363 \family sans
15364 Author
15365 \family default
15366
15367 \family sans
15368 Date
15369 \family default
15370 ) for the publishers' name.
15371 \end_layout
15372
15373 \begin_layout Itemize
15374
15375 \family sans
15376 Dedication
15377 \family default
15378 : in 
15379 \emph on
15380 report (koma-script)
15381 \emph default
15382  and 
15383 \emph on
15384 book (koma-script)
15385 \emph default
15386  produces a centered paragraph on its own page behind the title page, or
15387  in 
15388 \emph on
15389 article (koma-script)
15390 \emph default
15391  produces a centered paragraph below the ordinary title (
15392 \family sans
15393 Title
15394 \family default
15395
15396 \family sans
15397 Author
15398 \family default
15399
15400 \family sans
15401 Date
15402 \family default
15403
15404 \family sans
15405 Publishers
15406 \family default
15407 ) for a dedication.
15408 \end_layout
15409
15410 \begin_layout Itemize
15411
15412 \family sans
15413 Titlehead
15414 \family default
15415 : produces a left aligned paragraph above the ordinary title (
15416 \family sans
15417 Title
15418 \family default
15419
15420 \family sans
15421 Author
15422 \family default
15423
15424 \family sans
15425 Date
15426 \family default
15427
15428 \family sans
15429 Subject
15430 \family default
15431 ) for a document`s head.
15432 \end_layout
15433
15434 \begin_layout Itemize
15435
15436 \family sans
15437 Uppertitleback
15438 \family default
15439 : produces in a double-sided print in 
15440 \emph on
15441 report (koma-script)
15442 \emph default
15443  and 
15444 \emph on
15445 book (koma-script)
15446 \emph default
15447  a left-aligned paragraph at the top of the title page`s back or has no
15448  effect in a single-sided print or in 
15449 \emph on
15450 article (koma-script)
15451 \emph default
15452 .
15453 \end_layout
15454
15455 \begin_layout Itemize
15456
15457 \family sans
15458 Lowertitleback
15459 \family default
15460 : produces in a double-sided print in 
15461 \emph on
15462 report (koma-script)
15463 \emph default
15464  and 
15465 \emph on
15466 book (koma-script)
15467 \emph default
15468  a left-aligned paragraph at the bottom of the title page`s back or has
15469  no effect in a single-sided print or in 
15470 \emph on
15471 article (koma-script)
15472 \emph default
15473 .
15474 \end_layout
15475
15476 \begin_layout Itemize
15477
15478 \family sans
15479 Extratitle
15480 \family default
15481 : produces a special 
15482 \begin_inset Quotes eld
15483 \end_inset
15484
15485 dirty
15486 \begin_inset Quotes erd
15487 \end_inset
15488
15489  page ahead of the actual document containing a paragraph without special
15490  formatting.
15491 \end_layout
15492
15493 \begin_layout Standard
15494 The layout files for the document classes 
15495 \emph on
15496 article (koma-script)
15497 \emph default
15498
15499 \emph on
15500 report (koma-script)
15501 \emph default
15502 , and 
15503 \emph on
15504 book (koma-script)
15505 \emph default
15506  do include the file 
15507 \family typewriter
15508 scrmacros.inc
15509 \family default
15510 .
15511  This is thought of as a place to define your own types.
15512  Copy scrmacros
15513 \family typewriter
15514 .inc
15515 \family default
15516  in your personal layout directory and edit the file!
15517 \end_layout
15518
15519 \begin_layout Subsection
15520 letter (koma-script)
15521 \end_layout
15522
15523 \begin_layout Description
15524
15525 \change_inserted -712698321 1501163945
15526 Note: This section discusses the obsolete 
15527 \family sans
15528 KOMA-Script-Letter (v.
15529 \begin_inset space ~
15530 \end_inset
15531
15532 1)
15533 \family default
15534 , which is not even included anymore in recent KOMA releases.
15535  Please refer to the next section for the current KOMA-Script-Letter class
15536  (v.
15537 \begin_inset space ~
15538 \end_inset
15539
15540 2)!
15541 \end_layout
15542
15543 \begin_layout Standard
15544 \noindent
15545 The document class 
15546 \emph on
15547 letter (koma-script)
15548 \emph default
15549  is implemented in the layout file 
15550 \family typewriter
15551 scrlettr.layout
15552 \family default
15553 .
15554  It contains all the paragraph types of the corresponding standard document
15555  class 
15556 \emph on
15557 letter
15558 \emph default
15559 , partly modified, with the exception of the \SpecialChar LyX
15560  specific types 
15561 \family sans
15562 \SpecialChar LyX
15563 -Code
15564 \family default
15565  and 
15566 \family sans
15567 Comment
15568 \family default
15569  and the 
15570 \family sans
15571 List
15572 \family default
15573  type, which is replaced by the new 
15574 \family sans
15575 Labeling
15576 \family default
15577  type.
15578  In addition, it contains, in contrast to the standard document class, the
15579  standard types 
15580 \family sans
15581 \SpecialChar LaTeX
15582
15583 \family default
15584
15585 \family sans
15586 Quotation
15587 \family default
15588
15589 \family sans
15590 Quote
15591 \family default
15592 , and 
15593 \family sans
15594 Verse
15595 \family default
15596 .
15597  Furthermore, there are a number of new letter specific types.
15598 \end_layout
15599
15600 \begin_layout Standard
15601 The appearance of the letter produced by this document class can be controlled
15602  by a number of \SpecialChar LaTeX
15603  commands, which you can put in the \SpecialChar LaTeX
15604  preamble.
15605 \begin_inset Foot
15606 status collapsed
15607
15608 \begin_layout Plain Layout
15609 For example, the standard appearance of the letter`s heading, consisting
15610  of name and address, is quite self-willed.
15611  An 
15612 \begin_inset Quotes eld
15613 \end_inset
15614
15615 ordinary
15616 \begin_inset Quotes erd
15617 \end_inset
15618
15619  heading is produced by the following \SpecialChar LaTeX
15620  commands in the preamble:
15621 \end_layout
15622
15623 \begin_layout LyX-Code
15624
15625 \backslash
15626 firsthead{
15627 \backslash
15628 parbox[b]{
15629 \backslash
15630 textwidth}
15631 \end_layout
15632
15633 \begin_layout LyX-Code
15634   {
15635 \backslash
15636 ignorespaces 
15637 \backslash
15638 fromname
15639 \backslash
15640
15641 \backslash
15642  
15643 \backslash
15644 ignorespaces 
15645 \backslash
15646 fromaddress}} 
15647 \end_layout
15648
15649 \begin_layout LyX-Code
15650
15651 \backslash
15652 nexthead{
15653 \backslash
15654 parbox[b]{
15655 \backslash
15656 textwidth}
15657 \end_layout
15658
15659 \begin_layout LyX-Code
15660   {
15661 \backslash
15662 ignorespaces 
15663 \backslash
15664 fromname 
15665 \backslash
15666 hfill 
15667 \backslash
15668 ignorespaces 
15669 \backslash
15670 pagename
15671 \backslash
15672  
15673 \backslash
15674 thepage}}
15675 \end_layout
15676
15677 \end_inset
15678
15679  A detailed German description of such \SpecialChar LaTeX
15680  commands can be found in the Koma-Script
15681  documentation 
15682 \emph on
15683 scrguide
15684 \emph default
15685 .
15686  With it, the letter's author can produce his personal letter layout.
15687 \end_layout
15688
15689 \begin_layout Standard
15690 The types 
15691 \family sans
15692 Letter
15693 \family default
15694  and 
15695 \family sans
15696 Opening
15697 \family default
15698  define the beginning of the letter and must be used in every letter.
15699  To emphasize them in the \SpecialChar LyX
15700  document class, they are marked with the letter
15701  
15702 \shape italic
15703 L
15704 \shape default
15705  or 
15706 \shape italic
15707 O
15708 \shape default
15709 , resp.
15710 \begin_inset space ~
15711 \end_inset
15712
15713 in the left margin.
15714  It is possible to write any number of letters in one file.
15715  An 
15716 \family sans
15717 Opening
15718 \family default
15719  type produces a new letter using the same addressee and a 
15720 \family sans
15721 Letter
15722 \family default
15723  type produces a new addressee.
15724  The types 
15725 \family sans
15726 Closing
15727 \family default
15728
15729 \family sans
15730 PS
15731 \family default
15732
15733 \family sans
15734 CC
15735 \family default
15736 , and 
15737 \family sans
15738 Encl
15739 \family default
15740  are ordinary paragraph types and can also be used several times in one
15741  and the same letter.
15742 \end_layout
15743
15744 \begin_layout Itemize
15745
15746 \family sans
15747 Letter
15748 \family default
15749 : produces a paragraph for the addressee and implicitly defines the beginning
15750  of the letter.
15751 \end_layout
15752
15753 \begin_layout Itemize
15754
15755 \family sans
15756 Opening
15757 \family default
15758 : produces a paragraph for the form of address and implicitly produces a
15759  new letter.
15760 \end_layout
15761
15762 \begin_layout Itemize
15763
15764 \family sans
15765 Closing
15766 \family default
15767 : produces a paragraph for a close.
15768 \end_layout
15769
15770 \begin_layout Itemize
15771
15772 \family sans
15773 PS
15774 \family default
15775 : produces a paragraph for a postscript.
15776 \end_layout
15777
15778 \begin_layout Itemize
15779
15780 \family sans
15781 CC
15782 \family default
15783 : produces a paragraph for a distribution list.
15784 \end_layout
15785
15786 \begin_layout Itemize
15787
15788 \family sans
15789 Encl
15790 \family default
15791 : produces a paragraph for enclosures.
15792 \end_layout
15793
15794 \begin_layout Standard
15795 The types 
15796 \family sans
15797 Name
15798 \family default
15799
15800 \family sans
15801 Signature
15802 \family default
15803
15804 \family sans
15805 Address
15806 \family default
15807
15808 \family sans
15809 Telephone
15810 \family default
15811
15812 \family sans
15813 Place
15814 \family default
15815
15816 \family sans
15817 Backaddress
15818 \family default
15819
15820 \family sans
15821 Specialmail
15822 \family default
15823
15824 \family sans
15825 Location
15826 \family default
15827
15828 \family sans
15829 Title
15830 \family default
15831 , and 
15832 \family sans
15833 Subject
15834 \family default
15835  are input types provided with a label to enter information, which will
15836  be processed by the document class.
15837 \begin_inset Foot
15838 status collapsed
15839
15840 \begin_layout Plain Layout
15841 It could be seen as a matter of inconsequence, that the types 
15842 \family sans
15843 Letter
15844 \family default
15845  and 
15846 \family sans
15847 Opening
15848 \family default
15849  described above are not such input types as well.
15850  Because of the special meaning of those types, however, I have implemented
15851  them as ordinary paragraph types with a one letter mark in the left margin.
15852  Moreover, it would affect my feeling of symmetry, if the 
15853 \family sans
15854 Opening
15855 \family default
15856  type and the 
15857 \family sans
15858 Closing
15859 \family default
15860  type had such a serious different appearance.
15861 \end_layout
15862
15863 \end_inset
15864
15865  The types must be used ahead of the corresponding 
15866 \family sans
15867 Opening
15868 \family default
15869  type.
15870 \end_layout
15871
15872 \begin_layout Standard
15873 An implementation of these types in a WYSIWYG fashion does not seem to make
15874  sense, because the real appearance of the produced letter does not only
15875  depend on the usage of the particular type, but also on other factors.
15876  For example, a signature entered in the 
15877 \family sans
15878 Signature
15879 \family default
15880  type will in the standard behavior appear in the produced letter only,
15881  when in the same letter also a 
15882 \family sans
15883 Closing
15884 \family default
15885  type is used.
15886  The entered value of the 
15887 \family sans
15888 Telephone
15889 \family default
15890  type will in the standard behavior not appear in the produced letter at
15891  all.
15892  The possibility to design the letter`s heading freely is already indicated
15893  in a footnote above.
15894 \end_layout
15895
15896 \begin_layout Standard
15897 The input types can also be used as empty paragraphs.
15898  This makes sense e.
15899 \begin_inset space \thinspace{}
15900 \end_inset
15901
15902 g.
15903 \begin_inset space \space{}
15904 \end_inset
15905
15906 for the 
15907 \family sans
15908 Signature
15909 \family default
15910  type.
15911  If the 
15912 \family sans
15913 Signature
15914 \family default
15915  type is not used at all, in the standard behavior the value of the 
15916 \family sans
15917 Name
15918 \family default
15919  type is used as signature, whereas if an empty 
15920 \family sans
15921 Signature
15922 \family default
15923  type is used, no signature value is defined.
15924 \end_layout
15925
15926 \begin_layout Standard
15927 By using the input types it is possible to write a letter template, containing
15928  filled input types with your personal dates (name, address, etc.) and empty
15929  input types for other dates you want to enter.
15930 \end_layout
15931
15932 \begin_layout Itemize
15933
15934 \family sans
15935 Name
15936 \family default
15937 : sender's name, in the standard behavior appears as a centered paragraph
15938  in small caps in the letter`s heading.
15939 \end_layout
15940
15941 \begin_layout Itemize
15942
15943 \family sans
15944 Signature
15945 \family default
15946 : sender's signature, in the standard behavior appears below the 
15947 \family sans
15948 Closing
15949 \family default
15950  type.
15951  If no 
15952 \family sans
15953 Signature
15954 \family default
15955  type is used, the value of the 
15956 \family sans
15957 Name
15958 \family default
15959  type appears instead.
15960 \end_layout
15961
15962 \begin_layout Itemize
15963
15964 \family sans
15965 Address
15966 \family default
15967 : sender's address, in the standard behavior appears in a centered paragraph
15968  in the letter`s heading below the sender's name.
15969 \end_layout
15970
15971 \begin_layout Itemize
15972
15973 \family sans
15974 Telephone
15975 \family default
15976 : sender's telephone number, in the standard behavior only sets the \SpecialChar LaTeX
15977  variable
15978  
15979 \family typewriter
15980
15981 \backslash
15982 telephonenum
15983 \family default
15984 .
15985 \end_layout
15986
15987 \begin_layout Itemize
15988
15989 \family sans
15990 Place
15991 \family default
15992 : place of the letter`s making.
15993 \end_layout
15994
15995 \begin_layout Itemize
15996
15997 \family sans
15998 Date
15999 \family default
16000 : date of the letter`s making.
16001  
16002 \family sans
16003 Place
16004 \family default
16005  and 
16006 \family sans
16007 Date
16008 \family default
16009 , in the standard behavior, produce the place and the date in a right-aligned
16010  line below the addressee's field.
16011  If an empty 
16012 \family sans
16013 Date
16014 \family default
16015  type is used, neither place nor date appear, independent of the value of
16016  the 
16017 \family sans
16018 Place
16019 \family default
16020  type.
16021  If no 
16022 \family sans
16023 Date
16024 \family default
16025  type is used, the date of the letter `s production is used.
16026 \end_layout
16027
16028 \begin_layout Itemize
16029
16030 \family sans
16031 Backaddress
16032 \family default
16033 : sender`s back address, in the standard behavior appears above the addressee's
16034  field in a small sans serif font.
16035 \end_layout
16036
16037 \begin_layout Itemize
16038
16039 \family sans
16040 Specialmail
16041 \family default
16042 : special mail information, in the standard behavior appears underlined
16043  above the addressee's field below the back address.
16044 \end_layout
16045
16046 \begin_layout Itemize
16047
16048 \family sans
16049 Location
16050 \family default
16051 : additional information, in the standard behavior appears on right side
16052  below the addressee`s field.
16053 \end_layout
16054
16055 \begin_layout Itemize
16056
16057 \family sans
16058 Title
16059 \family default
16060 : the letter's title, in the standard behavior appears in a big, bold, sans
16061  serif font above the subject.
16062 \end_layout
16063
16064 \begin_layout Itemize
16065
16066 \family sans
16067 Subject
16068 \family default
16069 : the letter's subject, in the standard behavior appears in a bold font
16070  above the 
16071 \family sans
16072 Opening
16073 \family default
16074  paragraph.
16075 \end_layout
16076
16077 \begin_layout Standard
16078 The types 
16079 \family sans
16080 Yourref
16081 \family default
16082
16083 \family sans
16084 Yourmail
16085 \family default
16086
16087 \family sans
16088 Myref
16089 \family default
16090
16091 \family sans
16092 Customer
16093 \family default
16094 , and 
16095 \family sans
16096 Invoice
16097 \family default
16098  produce a business letter like line above the 
16099 \family sans
16100 Title
16101 \family default
16102  line containing the fields 
16103 \begin_inset Quotes eld
16104 \end_inset
16105
16106 Your ref.
16107 \begin_inset Quotes erd
16108 \end_inset
16109
16110
16111 \begin_inset Quotes eld
16112 \end_inset
16113
16114 Your letter of
16115 \begin_inset Quotes erd
16116 \end_inset
16117
16118
16119 \begin_inset Quotes eld
16120 \end_inset
16121
16122 Our ref.
16123 \begin_inset Quotes erd
16124 \end_inset
16125
16126
16127 \begin_inset Quotes eld
16128 \end_inset
16129
16130 Customer no.
16131 \begin_inset Quotes erd
16132 \end_inset
16133
16134
16135 \begin_inset Quotes eld
16136 \end_inset
16137
16138 Invoice no.
16139 \begin_inset Quotes erd
16140 \end_inset
16141
16142 , and 
16143 \begin_inset Quotes eld
16144 \end_inset
16145
16146 Date
16147 \begin_inset Quotes erd
16148 \end_inset
16149
16150 .
16151  For the date field, the value of the 
16152 \family sans
16153 Date
16154 \family default
16155  type is used.
16156  If one of these 
16157 \begin_inset Quotes eld
16158 \end_inset
16159
16160 business letter types
16161 \begin_inset Quotes erd
16162 \end_inset
16163
16164  is used, the value of the 
16165 \family sans
16166 Place
16167 \family default
16168  type however does not appear, but only the \SpecialChar LaTeX
16169  variable 
16170 \family typewriter
16171
16172 \backslash
16173 fromplace
16174 \family default
16175  is set.
16176  The ordinary output of place and date in a right-aligned line below the
16177  addressee`s field is suppressed.
16178  The types are implemented as input types provided with a label and must
16179  be used ahead of the corresponding 
16180 \family sans
16181 Opening
16182 \family default
16183  type.
16184 \end_layout
16185
16186 \begin_layout Itemize
16187
16188 \family sans
16189 Yourref
16190 \family default
16191 : Your ref.
16192 \end_layout
16193
16194 \begin_layout Itemize
16195
16196 \family sans
16197 Yourmail
16198 \family default
16199 : Your letter of.
16200 \end_layout
16201
16202 \begin_layout Itemize
16203
16204 \family sans
16205 Myref
16206 \family default
16207 : Our ref.
16208 \end_layout
16209
16210 \begin_layout Itemize
16211
16212 \family sans
16213 Customer
16214 \family default
16215 : Customer no.
16216 \end_layout
16217
16218 \begin_layout Itemize
16219
16220 \family sans
16221 Invoice
16222 \family default
16223 : Invoice no.
16224 \end_layout
16225
16226 \begin_layout Subsection
16227 The new letter class: letter (koma-script v.2)
16228 \end_layout
16229
16230 \begin_layout Standard
16231 by 
16232 \noun on
16233 Jürgen Spitzmüller
16234 \end_layout
16235
16236 \begin_layout Standard
16237 \begin_inset VSpace medskip
16238 \end_inset
16239
16240
16241 \end_layout
16242
16243 \begin_layout Standard
16244 \noindent
16245 Koma-Script version 2.8 has introduced a new letter class 
16246 \family typewriter
16247 scrlttr2
16248 \family default
16249  which supersedes the now unsupported 
16250 \family typewriter
16251 scrlettr
16252 \family default
16253 .
16254  It has — on the \SpecialChar LaTeX
16255  side — a completely new interface and is not compatible
16256  with the old class.
16257  Therefore, \SpecialChar LyX
16258  supports both, though it is recommended you use the new class.
16259 \end_layout
16260
16261 \begin_layout Standard
16262 This class covers the same functionality as 
16263 \emph on
16264 letter (koma-script),
16265 \emph default
16266  and a few more.
16267  The basic items are 
16268 \family sans
16269 Address
16270 \family default
16271  (receiver's address, same as 
16272 \family sans
16273 Letter
16274 \family default
16275  in the old layout), 
16276 \family sans
16277 Opening
16278 \family default
16279 , and 
16280 \family sans
16281 Closing
16282 \family default
16283 .
16284  
16285 \family sans
16286 NextAddress
16287 \family default
16288  will start a new letter (i.
16289 \begin_inset space \thinspace{}
16290 \end_inset
16291
16292 e.
16293 \begin_inset space \space{}
16294 \end_inset
16295
16296 you can write several letters per document).
16297  New elements are sender's 
16298 \family sans
16299 E-Mail
16300 \family default
16301
16302 \family sans
16303 URL
16304 \family default
16305
16306 \family sans
16307 Fax
16308 \family default
16309
16310 \family sans
16311 Bank
16312 \family default
16313  and the possibility to use a 
16314 \family sans
16315 Logo
16316 \family default
16317  (via 
16318 \family sans
16319 Insert\SpecialChar menuseparator
16320 Graphics
16321 \family default
16322 ) in the header.
16323 \end_layout
16324
16325 \begin_layout Standard
16326 The biggest improvement is, though, that the letter's layout is configurable
16327  to meet almost any needs.
16328  This can be done via the preamble or with a special style file (Letter
16329  Class Option, extension 
16330 \family typewriter
16331 *.lco
16332 \family default
16333 ), that will be read in as a class option.
16334 \begin_inset Foot
16335 status collapsed
16336
16337 \begin_layout Plain Layout
16338 The KOMA package comes with some default 
16339 \family typewriter
16340 *.lco
16341 \family default
16342  files.
16343  There is, for instance, a 
16344 \family typewriter
16345 DIN.lco
16346 \family default
16347  file that follows german typesetting rules, or a 
16348 \family typewriter
16349 KOMAold.lco
16350 \family default
16351  that provides the default layout of the old 
16352 \family typewriter
16353 scrlettr
16354 \family default
16355  class.
16356  The latter can be loaded with the class option 
16357 \family typewriter
16358 KOMAold
16359 \family default
16360 , inserted via the 
16361 \family sans
16362 Layout\SpecialChar menuseparator
16363 Document\SpecialChar menuseparator
16364 Extra Options
16365 \family default
16366  field.
16367 \end_layout
16368
16369 \end_inset
16370
16371  Have a look at the 
16372 \emph on
16373 koma-letter2
16374 \emph default
16375  template that is included in \SpecialChar LyX
16376  for examples.
16377  A detailed description is to be found in the Koma-Script documentation
16378  (
16379 \emph on
16380 scrguide
16381 \emph default
16382 ).
16383 \end_layout
16384
16385 \begin_layout Subsection
16386 Problems
16387 \end_layout
16388
16389 \begin_layout Standard
16390 Visualizing the Koma-Script document classes in \SpecialChar LyX
16391 , the \SpecialChar LyX
16392  internals cause some
16393  problems.
16394 \end_layout
16395
16396 \begin_layout Itemize
16397 The chapter number of a 
16398 \family sans
16399 Chapter
16400 \family default
16401  type appears on a line of its own above the chapter heading instead of
16402  appearing in the same line ahead of it.
16403  The cause for that is the \SpecialChar LyX
16404  internal behavior for the labeltype 
16405 \family sans
16406 Counter_Chapter
16407 \family default
16408  in the layout file.
16409 \end_layout
16410
16411 \begin_layout Itemize
16412 The headings of the types 
16413 \family sans
16414 Addchap
16415 \family default
16416  and 
16417 \family sans
16418 Addsec
16419 \family default
16420  are only put in the 
16421 \begin_inset Quotes eld
16422 \end_inset
16423
16424 true
16425 \begin_inset Quotes erd
16426 \end_inset
16427
16428  \SpecialChar LaTeX
16429  table of contents, but not in the \SpecialChar LyX
16430  table of contents (
16431 \family sans
16432 Document\SpecialChar menuseparator
16433 Table
16434 \begin_inset space ~
16435 \end_inset
16436
16437 of
16438 \begin_inset space ~
16439 \end_inset
16440
16441 Contents
16442 \family default
16443 ).
16444 \end_layout
16445
16446 \begin_layout Itemize
16447 The paragraphs in a 
16448 \emph on
16449 letter
16450 \emph default
16451  document class appear in a skip separation mode, not indented.
16452  This is the standard behavior, no special \SpecialChar LaTeX
16453  commands are needed for that.
16454  But in the 
16455 \family sans
16456 Document\SpecialChar menuseparator
16457 Settings
16458 \family default
16459  dialog the corresponding radio button indicates 
16460 \family sans
16461 Indent
16462 \family default
16463 .
16464  A 
16465 \family sans
16466 Skip
16467 \family default
16468  value always has the effect that extra \SpecialChar LaTeX
16469  commands are inserted in the document
16470  to produce the gap, which is not what is wanted in this case.
16471 \end_layout
16472
16473 \begin_layout Section
16474 Memoir
16475 \end_layout
16476
16477 \begin_layout Standard
16478 By 
16479 \noun on
16480 Jürgen Spitzmüller
16481 \end_layout
16482
16483 \begin_layout Subsection
16484 Overview
16485 \end_layout
16486
16487 \begin_layout Standard
16488 Memoir is a very powerful and constantly evolving class.
16489  It has been designed with regard to fictional and non-fictional literature.
16490  Its aim is to let the user have maximum control over the typesetting of
16491  his document.
16492  Memoir is based on the standard book class, but it can also emulate the
16493  article class (see below).
16494 \end_layout
16495
16496 \begin_layout Standard
16497 Peter Wilson, the developer of Memoir, is known as the author of lots of
16498  useful packages in the \SpecialChar LaTeX
16499  world.
16500  Most of them have been merged with Memoir.
16501  Therefore, it is much easier to layout the table of contents, appendices,
16502  chapter designs and such.
16503  \SpecialChar LyX
16504 , though, does not support all of these goodies natively.
16505  Some of them might be added to forthcoming releases
16506 \begin_inset Foot
16507 status collapsed
16508
16509 \begin_layout Plain Layout
16510 You are invited to send suggestions to 
16511 \begin_inset Flex URL
16512 status collapsed
16513
16514 \begin_layout Plain Layout
16515
16516 lyx-devel@lists.lyx.org
16517 \end_layout
16518
16519 \end_inset
16520
16521 .
16522 \end_layout
16523
16524 \end_inset
16525
16526 , lots will probably never be supported, due to the limitations of \SpecialChar LyX
16527 's framework.
16528  Of course you can still use all features with the help of some native \SpecialChar LaTeX
16529
16530  commands (\SpecialChar TeX
16531  code
16532 \begin_inset Foot
16533 status collapsed
16534
16535 \begin_layout Plain Layout
16536 Cf.
16537 \begin_inset ERT
16538 status collapsed
16539
16540 \begin_layout Plain Layout
16541
16542
16543 \backslash
16544  
16545 \end_layout
16546
16547 \end_inset
16548
16549 section
16550 \begin_inset space ~
16551 \end_inset
16552
16553
16554 \begin_inset CommandInset ref
16555 LatexCommand ref
16556 reference "sec:Inserting-TeX-Code"
16557
16558 \end_inset
16559
16560  for details.
16561 \end_layout
16562
16563 \end_inset
16564
16565 ).
16566  In this section, we can only list those features that are natively supported
16567  by \SpecialChar LyX
16568 .
16569  For detailed descriptions (and for the rest of features) we recommend you
16570  have a look at the detailed manual of the Memoir class
16571 \begin_inset Foot
16572 status collapsed
16573
16574 \begin_layout Plain Layout
16575 Cf.
16576 \begin_inset ERT
16577 status collapsed
16578
16579 \begin_layout Plain Layout
16580
16581
16582 \backslash
16583  
16584 \end_layout
16585
16586 \end_inset
16587
16588
16589 \begin_inset Flex URL
16590 status collapsed
16591
16592 \begin_layout Plain Layout
16593
16594 CTAN:/macros/latex/memoir/memman.pdf
16595 \end_layout
16596
16597 \end_inset
16598
16599 .
16600 \end_layout
16601
16602 \end_inset
16603
16604 , which is not only a user guide for the class, but also both a comprehensive
16605  description on good typesetting and a superb example for good typesetting
16606  itself.
16607 \end_layout
16608
16609 \begin_layout Subsection
16610 Basic features and restrictions
16611 \end_layout
16612
16613 \begin_layout Standard
16614 Memoir supports basically all features of the standard book classes.
16615  There are, however, some differences, as follows:
16616 \end_layout
16617
16618 \begin_layout Description
16619 Font
16620 \begin_inset space ~
16621 \end_inset
16622
16623 sizes: Memoir has a broader range of font sizes: 9, 10, 11, 12, 14, 17
16624 \end_layout
16625
16626 \begin_layout Description
16627 Page
16628 \begin_inset space ~
16629 \end_inset
16630
16631 style: The fancy page style is not supported, due to a command clash between
16632  Memoir and the fancyhdr package (they both define a command with the same
16633  name, which confuses \SpecialChar LaTeX
16634 ).
16635  Instead, Memoir comes with a number of its own page styles (see 
16636 \change_deleted -712698321 1501165256
16637
16638 \family sans
16639 Layout\SpecialChar menuseparator
16640
16641 \change_unchanged
16642 Document\SpecialChar menuseparator
16643
16644 \change_inserted -712698321 1501165264
16645 Settings\SpecialChar menuseparator
16646
16647 \change_unchanged
16648 Page
16649 \begin_inset space ~
16650 \end_inset
16651
16652 Style
16653 \family default
16654 ).
16655  If you want to use these for the chapter pages, you have to use the command
16656  
16657 \family typewriter
16658
16659 \backslash
16660 chapterstyle
16661 \family default
16662  in the main text or in preamble (e.
16663 \begin_inset space \thinspace{}
16664 \end_inset
16665
16666 g.
16667 \begin_inset space \space{}
16668 \end_inset
16669
16670
16671 \family typewriter
16672
16673 \backslash
16674 chapterstyle{companion}
16675 \family default
16676 ).
16677 \end_layout
16678
16679 \begin_layout Description
16680 Sectioning: Sectionings (chapter, section, subsection etc.) come with an
16681  optional argument in the standard classes.
16682  With this, you can specify an alternative version of the title for the
16683  table of contents and the headers (for instance, if the title is too long).
16684  In \SpecialChar LyX
16685 , you can do this via 
16686 \family sans
16687 Insert\SpecialChar menuseparator
16688 Short
16689 \begin_inset space ~
16690 \end_inset
16691
16692 Title
16693 \family default
16694  at the beginning of a chapter/section.
16695  Memoir features a second optional argument and thus separates the table
16696  of contents from the header.
16697  You can define three variants of a title with this: one for the main text,
16698  one for the table of contents, and one for the headers.
16699  
16700 \change_deleted -712698321 1501165686
16701 Simply insert two optional arguments if you need this feature, the first
16702  one containing the short title for the Table of Contents, the second one
16703  containing an alternative short title for the headers
16704 \change_inserted -712698321 1501165708
16705 \SpecialChar LyX
16706  makes these available in form of specific 
16707 \family sans
16708 Short Title
16709 \family default
16710  variants in the 
16711 \family sans
16712 Insert
16713 \family default
16714  menu
16715 \change_unchanged
16716 .
16717 \end_layout
16718
16719 \begin_layout Description
16720 TOC/LOT/LOF: In the standard classes (and in many other classes), the table
16721  of contents, the list of figures and the list of table start a new page
16722  automatically.
16723  Memoir does not follow this route.
16724  You have to insert a page break yourself, if you want to have one.
16725 \end_layout
16726
16727 \begin_layout Description
16728 Titlepage: For some unknown reason, Memoir uses pagination on the title
16729  page (in the standard classes, title pages are 
16730 \begin_inset Quotes eld
16731 \end_inset
16732
16733 empty
16734 \begin_inset Quotes erd
16735 \end_inset
16736
16737 ).
16738  If you want an empty title page, type 
16739 \family typewriter
16740
16741 \backslash
16742 aliaspagestyle{title}{empty}
16743 \family default
16744  in the preamble.
16745 \end_layout
16746
16747 \begin_layout Description
16748 Article: With the class option 
16749 \emph on
16750 article
16751 \emph default
16752  (to be inserted in 
16753 \change_deleted -712698321 1501165976
16754
16755 \family sans
16756 Layout\SpecialChar menuseparator
16757
16758 \change_unchanged
16759 Document\SpecialChar menuseparator
16760
16761 \change_inserted -712698321 1501165986
16762 Settings\SpecialChar menuseparator
16763 Class Settings\SpecialChar menuseparator
16764
16765 \change_deleted -712698321 1501165988
16766 Extra
16767 \change_inserted -712698321 1501165989
16768 Custom
16769 \change_unchanged
16770
16771 \begin_inset space ~
16772 \end_inset
16773
16774 Options
16775 \family default
16776 ), you can emulate article style.
16777  That is, counters (footnotes, figures, tables etc.) will not be reset on
16778  new chapters, chapters don't start a new page (but are—in contrary to 
16779 \begin_inset Quotes eld
16780 \end_inset
16781
16782 real
16783 \begin_inset Quotes erd
16784 \end_inset
16785
16786  article classes—still allowed), parts, though, use their own page, as in
16787  book.
16788 \end_layout
16789
16790 \begin_layout Description
16791 Oldfontcommands: By default, Memoir does not allow the use of the deprecated
16792  font commands, which have been used in the old \SpecialChar LaTeX
16793  version 2.09 (e.
16794 \begin_inset space \thinspace{}
16795 \end_inset
16796
16797 g.
16798 \begin_inset space \space{}
16799 \end_inset
16800
16801
16802 \family typewriter
16803
16804 \backslash
16805 rm
16806 \family default
16807
16808 \family typewriter
16809
16810 \backslash
16811 it
16812 \family default
16813 ).
16814  It produces an error and stops \SpecialChar LaTeX
16815  whenever such a command appears.
16816  The class option 
16817 \emph on
16818 oldfontcommands
16819 \emph default
16820  reallows the commands and spits out warnings instead (which does at least
16821  not stop \SpecialChar LaTeX
16822 ).
16823  Since a lot of packages and particularly Bib\SpecialChar TeX
16824  style files are still using
16825  those commands, we have decided to use this option by default.
16826 \end_layout
16827
16828 \begin_layout Subsection
16829 Extra features
16830 \end_layout
16831
16832 \begin_layout Standard
16833 We will only describe the features supported by \SpecialChar LyX
16834  (which is not much currently).
16835  Please consult the Memoir manual
16836 \begin_inset Foot
16837 status collapsed
16838
16839 \begin_layout Plain Layout
16840 Cf.
16841 \begin_inset ERT
16842 status collapsed
16843
16844 \begin_layout Plain Layout
16845
16846
16847 \backslash
16848  
16849 \end_layout
16850
16851 \end_inset
16852
16853
16854 \begin_inset Flex URL
16855 status collapsed
16856
16857 \begin_layout Plain Layout
16858
16859 CTAN:/macros/latex/memoir/memman.pdf
16860 \end_layout
16861
16862 \end_inset
16863
16864 .
16865 \end_layout
16866
16867 \end_inset
16868
16869  for details.
16870 \end_layout
16871
16872 \begin_layout Description
16873 Abstract: You may wonder why an abstract is an extra feature.
16874  Well, it is in book class.
16875  Usually books don't have abstracts.
16876  Memoir, however, has.
16877  You can use it wherever and how often you like.
16878 \end_layout
16879
16880 \begin_layout Description
16881 Chapterprecis: You may know this older typesetting style: The contents of
16882  a chapter are summarized below the title and also in the table of contents
16883  (e.
16884 \begin_inset space \thinspace{}
16885 \end_inset
16886
16887 g.
16888 \begin_inset space \space{}
16889 \end_inset
16890
16891
16892 \emph on
16893 Our hero arrives in Troia; he loses some friends; he finds others
16894 \emph default
16895 ).
16896  Chapterprecis does exactly this.
16897  It is therefore only sensible below a chapter.
16898 \end_layout
16899
16900 \begin_layout Description
16901 Epigraph: An epigraph is a smart slogan or motto at the beginning of a chapter.
16902  The epigraph environment provides an elegant way of typesetting such a
16903  motto.
16904  The motto itself (text) and its 
16905 \change_inserted -712698321 1501166968
16906 (optional) 
16907 \change_unchanged
16908 author (source) are divided by a short line.
16909  
16910 \change_deleted -712698321 1501166972
16911 Unfortunately, we have to fool \SpecialChar LyX
16912  a bit here again, since the environment
16913  needs two arguments (text and source).
16914  In this case, we have to use curly brackets (in \SpecialChar TeX
16915  mode) between the two
16916  arguments: 
16917 \emph on
16918 <smart slogan>
16919 \emph default
16920  
16921 \family typewriter
16922 }{
16923 \family default
16924  
16925 \emph on
16926 <author of the slogan>
16927 \change_inserted -712698321 1501166996
16928
16929 \emph default
16930 The author (source) can be inserted via 
16931 \family sans
16932 Insert\SpecialChar menuseparator
16933 Epigraph Source
16934 \change_unchanged
16935
16936 \family default
16937 \emph on
16938 .
16939 \end_layout
16940
16941 \begin_layout Description
16942 Poemtitle: Memoir has lots of possibilities to typeset poetry (up to very
16943  complex figurative poems).
16944  \SpecialChar LyX
16945  can only support a few of them.
16946  One is poemtitle, which is a centered title for poems, which will also
16947  be added to the table of contents (verse is the standard environment for
16948  poems.
16949  Memoir has some enhanced versions of verse, but you need to use \SpecialChar TeX
16950  code,
16951  because they have to be nested inside regular verse environments, which
16952  is not possible with \SpecialChar LyX
16953 ).
16954 \end_layout
16955
16956 \begin_layout Description
16957 Poemtitle*: Same as poemtitle, but it adds no entry to the table of contents.
16958 \end_layout
16959
16960 \begin_layout Section
16961 Article (mwart), book (mwbk) and report (mwrep)
16962 \begin_inset Argument status
16963 status collapsed
16964
16965 \begin_layout Plain Layout
16966 The 
16967 \family typewriter
16968 mw
16969 \family default
16970  Classes
16971 \end_layout
16972
16973 \end_inset
16974
16975
16976 \end_layout
16977
16978 \begin_layout Standard
16979 by 
16980 \noun on
16981 Tomasz Luczak
16982 \end_layout
16983
16984 \begin_layout Standard
16985 The \SpecialChar LyX
16986  document classes 
16987 \emph on
16988 article (mwart)
16989 \emph default
16990
16991 \emph on
16992 report (mwrep)
16993 \emph default
16994  and 
16995 \emph on
16996 book
16997 \emph default
16998  
16999 \emph on
17000 (mwbk)
17001 \emph default
17002  correspond to the \SpecialChar LaTeX
17003  document classes 
17004 \family typewriter
17005 mwart.cls
17006 \family default
17007
17008 \family typewriter
17009 mwrep.cls
17010 \family default
17011  and 
17012 \family typewriter
17013 mwbk.cls
17014 \family default
17015 , resp.
17016  They are replacements for the standard document classes 
17017 \family typewriter
17018 article.cls
17019 \family default
17020
17021 \family typewriter
17022 report.cls
17023 \family default
17024  and 
17025 \family typewriter
17026 book.cls
17027 \family default
17028 , resp., and fit better to Polish typography conventions in a number of points.
17029  
17030 \end_layout
17031
17032 \begin_layout Standard
17033 Basic differences:
17034 \end_layout
17035
17036 \begin_layout Itemize
17037 Unnumbered titles (with star, e.
17038 \begin_inset space \thinspace{}
17039 \end_inset
17040
17041 g.
17042 \begin_inset space \space{}
17043 \end_inset
17044
17045
17046 \family sans
17047 Section*
17048 \family default
17049 ) are added into table of contents,
17050 \end_layout
17051
17052 \begin_layout Itemize
17053 Additional page styles:
17054 \end_layout
17055
17056 \begin_deeper
17057 \begin_layout Description
17058 uheadings header with separated lines,
17059 \end_layout
17060
17061 \begin_layout Description
17062 myheadings custom header, contents headers via commands: 
17063 \family typewriter
17064
17065 \backslash
17066 markright
17067 \family default
17068  and 
17069 \family typewriter
17070
17071 \backslash
17072 markboth
17073 \family default
17074 ,
17075 \end_layout
17076
17077 \begin_layout Description
17078 myuheadings custom header with separated lines,
17079 \end_layout
17080
17081 \begin_layout Description
17082 outer page number is placed on outer side of page
17083 \end_layout
17084
17085 \end_deeper
17086 \begin_layout Itemize
17087 Options 
17088 \end_layout
17089
17090 \begin_deeper
17091 \begin_layout Description
17092 rmheadings serif titles — default,
17093 \end_layout
17094
17095 \begin_layout Description
17096 sfheadings sansserif titles,
17097 \end_layout
17098
17099 \begin_layout Description
17100 authortitle on title page first placed is author next title — default,
17101 \end_layout
17102
17103 \begin_layout Description
17104 titleauthor on title page first placed is title next author,
17105 \end_layout
17106
17107 \begin_layout Description
17108 withmarginpar reserve place on page for margins.
17109 \end_layout
17110
17111 \end_deeper
17112 \begin_layout Section
17113 Paper
17114 \end_layout
17115
17116 \begin_layout Standard
17117 The document class 
17118 \family sans
17119 paper
17120 \family default
17121  provides an alternative to the standard 
17122 \family sans
17123 article
17124 \family default
17125  class.
17126  It provides similar functionality, but you might prefer this layout with
17127  sans serif sections, headings, and more.
17128 \end_layout
17129
17130 \begin_layout Section
17131 Rev\SpecialChar TeX
17132 4
17133 \end_layout
17134
17135 \begin_layout Standard
17136 by 
17137 \noun on
17138 Amir Karger
17139 \end_layout
17140
17141 \begin_layout Standard
17142 \begin_inset VSpace bigskip
17143 \end_inset
17144
17145
17146 \end_layout
17147
17148 \begin_layout Standard
17149 \noindent
17150 The 
17151 \family sans
17152 Revtex
17153 \begin_inset space ~
17154 \end_inset
17155
17156 4
17157 \family default
17158  textclass works with the American Physical Sociey's Rev\SpecialChar TeX
17159  4.0 (the 
17160 \begin_inset Formula $\beta$
17161 \end_inset
17162
17163  release of May, 1999) class.
17164 \end_layout
17165
17166 \begin_layout Standard
17167 \SpecialChar LyX
17168  has a 
17169 \family sans
17170 Revtex
17171 \family default
17172  textclass, which works with Rev\SpecialChar TeX
17173  3.1.
17174  However, v3.1 is basically obsolete, as it works with \SpecialChar LaTeX
17175  2.09.
17176  That means that it doesn't interact very well with \SpecialChar LyX
17177 , which requires \SpecialChar LaTeX2e
17178 , although
17179  it has been kludged to work.
17180  Since Rev\SpecialChar TeX
17181  4.0 has been designed to work much more cleanly with \SpecialChar LaTeX2e
17182 , \SpecialChar LyX
17183  with the
17184  
17185 \family sans
17186 Rev\SpecialChar TeX
17187
17188 \begin_inset space ~
17189 \end_inset
17190
17191 4
17192 \family default
17193  textclass should also be pretty easy to use.
17194 \end_layout
17195
17196 \begin_layout Standard
17197 These documents are supposed to be used in 
17198 \emph on
17199 addition
17200 \emph default
17201  to the Rev\SpecialChar TeX
17202  4.0 documents, so we don't describe any of the special Rev\SpecialChar TeX
17203  macros,
17204  and assume you'll know what to put in the preamble if necessary.
17205 \end_layout
17206
17207 \begin_layout Subsection
17208 Installation
17209 \end_layout
17210
17211 \begin_layout Standard
17212 All you need to do is install Rev\SpecialChar TeX
17213  4, as described in the package's README
17214  file.
17215  The package can be found at The Rev\SpecialChar TeX
17216  4 Web Site 
17217 \begin_inset Flex URL
17218 status collapsed
17219
17220 \begin_layout Plain Layout
17221
17222 http://publish.aps.org/revtex4/
17223 \end_layout
17224
17225 \end_inset
17226
17227 .
17228  Install it somewhere that \SpecialChar LaTeX
17229  can see it.
17230  Test it by trying to \SpecialChar LaTeX
17231  a short Rev\SpecialChar TeX
17232  4 document in some random directory (i.
17233 \begin_inset space \thinspace{}
17234 \end_inset
17235
17236 e.
17237 \begin_inset space \space{}
17238 \end_inset
17239
17240 not the directory where you installed the class file.) Then, if you reconfigure
17241  \SpecialChar LyX
17242 , it will find the class file and let you use the Rev\SpecialChar TeX
17243 4 textclass.
17244 \end_layout
17245
17246 \begin_layout Standard
17247 Probably the easiest way to get started is either to import a Rev\SpecialChar TeX
17248  4 document
17249  using 
17250 \family typewriter
17251 tex2lyx
17252 \family default
17253 , or to use the 
17254 \family sans
17255 Revtex
17256 \begin_inset space ~
17257 \end_inset
17258
17259 4
17260 \family default
17261  template, found in the templates directory.
17262 \end_layout
17263
17264 \begin_layout Subsection
17265 Preamble Matter
17266 \end_layout
17267
17268 \begin_layout Standard
17269 Optional arguments to 
17270 \family typewriter
17271
17272 \backslash
17273 documentclass
17274 \family default
17275 , like 
17276 \begin_inset Quotes eld
17277 \end_inset
17278
17279 preprint
17280 \begin_inset Quotes erd
17281 \end_inset
17282
17283  and 
17284 \begin_inset Quotes eld
17285 \end_inset
17286
17287 aps
17288 \begin_inset Quotes erd
17289 \end_inset
17290
17291 , go in the 
17292 \family sans
17293 Extra
17294 \begin_inset space ~
17295 \end_inset
17296
17297 Options
17298 \family default
17299  field in the 
17300 \family sans
17301 Document
17302 \begin_inset space ~
17303 \end_inset
17304
17305 Layout
17306 \family default
17307  dialog, as usual.
17308  Remember that in Rev\SpecialChar TeX
17309 , at least one optional argument is required! 
17310 \end_layout
17311
17312 \begin_layout Standard
17313 Other preamble matter, like 
17314 \family typewriter
17315
17316 \backslash
17317 draft
17318 \family default
17319  etc.
17320 \begin_inset space ~
17321 \end_inset
17322
17323 goes in the 
17324 \family sans
17325 \SpecialChar LaTeX
17326
17327 \begin_inset space ~
17328 \end_inset
17329
17330 Preamble
17331 \family default
17332  dialog, also as usual.
17333 \end_layout
17334
17335 \begin_layout Subsection
17336 Layouts
17337 \end_layout
17338
17339 \begin_layout Standard
17340 The layouts basically correspond to the commands in Rev\SpecialChar TeX
17341 4.0.
17342  For example, the Email layout corresponds to 
17343 \family typewriter
17344
17345 \backslash
17346 email{}
17347 \family default
17348 .
17349  Note that (at least as of Rev\SpecialChar TeX
17350  4.0 Beta), the 
17351 \family sans
17352 Address
17353 \family default
17354  and 
17355 \family sans
17356 Affiliation
17357 \family default
17358  layouts are exactly equivalent, so you shouldn't need to use both.
17359 \begin_inset Foot
17360 status collapsed
17361
17362 \begin_layout Plain Layout
17363 In case you're curious, both were included so that 
17364 \family typewriter
17365 tex2lyx
17366 \family default
17367  would be able to translate both 
17368 \family typewriter
17369
17370 \backslash
17371 address
17372 \family default
17373  and 
17374 \family typewriter
17375
17376 \backslash
17377 affiliation
17378 \family default
17379 .
17380 \end_layout
17381
17382 \end_inset
17383
17384
17385 \end_layout
17386
17387 \begin_layout Subsection
17388 Important Notes
17389 \end_layout
17390
17391 \begin_layout Standard
17392 There are a couple of important unique aspects of Rev\SpecialChar TeX
17393  4 which might cause
17394  bugs that will be even more confusing in \SpecialChar LyX
17395 .
17396 \end_layout
17397
17398 \begin_layout Standard
17399 In Rev\SpecialChar TeX
17400 , the 
17401 \family typewriter
17402
17403 \backslash
17404 thanks
17405 \family default
17406  command goes 
17407 \emph on
17408 outside
17409 \emph default
17410  the 
17411 \family typewriter
17412
17413 \backslash
17414 author
17415 \family default
17416  command.
17417  The \SpecialChar LyX
17418  equivalent is that there is a separate Thanks layout.
17419  Do 
17420 \emph on
17421 not
17422 \emph default
17423  write footnotes in the 
17424 \family sans
17425 Author
17426 \family default
17427  layout, or weird things may happen.
17428  See the Rev\SpecialChar TeX
17429  4 documentation for more details.
17430 \end_layout
17431
17432 \begin_layout Standard
17433 Also, the 
17434 \family sans
17435 Author
17436 \begin_inset space ~
17437 \end_inset
17438
17439 Email
17440 \family default
17441
17442 \family sans
17443 Author
17444 \begin_inset space ~
17445 \end_inset
17446
17447 URL
17448 \family default
17449 , and 
17450 \family sans
17451 Thanks
17452 \family default
17453  layouts must be placed 
17454 \emph on
17455 in between
17456 \emph default
17457  the 
17458 \family sans
17459 Author
17460 \family default
17461  layout and the corresponding 
17462 \family sans
17463 Address
17464 \family default
17465  (or equivalent 
17466 \family sans
17467 Affiliation
17468 \family default
17469 ) layout.
17470  If you put the 
17471 \family sans
17472 Thanks
17473 \family default
17474  after the 
17475 \family sans
17476 Address
17477 \family default
17478 , the \SpecialChar LaTeX
17479  won't compile.
17480 \end_layout
17481
17482 \begin_layout Subsection
17483
17484 \change_deleted -712698321 1501168252
17485 Drawbacks
17486 \end_layout
17487
17488 \begin_layout Standard
17489
17490 \change_deleted -712698321 1501168252
17491 The main problem with this layout is that you can't use the optional arguments
17492  to layouts like Email and Title.
17493  (The problem is not unique to this layout; you can't use optional arguments
17494  to the Section layouts either.) This means that after you export that file
17495  to \SpecialChar LaTeX
17496  (which you'll need to do eventually to send it in to APS), you'll need
17497  to edit the \SpecialChar LaTeX
17498  file with a text editor to add the optional arguments to set,
17499  e.
17500 \begin_inset space \thinspace{}
17501 \end_inset
17502
17503 g.
17504 \begin_inset space \space{}
17505 \end_inset
17506
17507 the running title for the page headers.
17508  Lacking these layouts makes the 
17509 \family typewriter
17510
17511 \backslash
17512 altaffiliation
17513 \family default
17514  (and the equivalent 
17515 \family typewriter
17516
17517 \backslash
17518 altaddress
17519 \family default
17520 ) useless, so the corresponding layouts don't exist, and will have to be
17521  added by hand.
17522 \begin_inset Foot
17523 status collapsed
17524
17525 \begin_layout Plain Layout
17526
17527 \emph on
17528 Note from JMarc:
17529 \emph default
17530  actually, \SpecialChar LyX
17531  1.3.0 supports some forms of optional arguments, but this layout
17532  has not been updated yet to take advantage of it.
17533 \end_layout
17534
17535 \end_inset
17536
17537  
17538 \change_unchanged
17539
17540 \end_layout
17541
17542 \begin_layout Section
17543 Springer Journals (
17544 \family sans
17545 svjour
17546 \family default
17547 )
17548 \end_layout
17549
17550 \begin_layout Standard
17551 by 
17552 \noun on
17553 Martin Vermeer
17554 \end_layout
17555
17556 \begin_layout Subsection
17557 Description
17558 \end_layout
17559
17560 \begin_layout Standard
17561 These are the layout files for some of the journal formats used by Springer
17562  Verlag and listed on 
17563 \begin_inset Flex URL
17564 status collapsed
17565
17566 \begin_layout Plain Layout
17567
17568 http://www.springer.de/author/tex/help-journals.html
17569 \end_layout
17570
17571 \end_inset
17572
17573 , where you should also go to fetch the class files (yes, these are \SpecialChar LaTeX2e
17574  now!).
17575  It is a modular system: the things common to all journals are implemented
17576  in 
17577 \family typewriter
17578 svjour.inc
17579 \family default
17580 , which journal-specific layout files (such as, e.
17581 \begin_inset space \thinspace{}
17582 \end_inset
17583
17584 g.
17585 \begin_inset space \space{}
17586 \end_inset
17587
17588
17589 \family typewriter
17590 svjog.layout
17591 \family default
17592  for Journal of Geodesy) can include.
17593 \end_layout
17594
17595 \begin_layout Standard
17596 This means that implementing support for any other Springer journal on this
17597  list is as simple as writing your own 
17598 \family typewriter
17599 sv
17600 \family default
17601 <myjournal>
17602 \family typewriter
17603 .layout
17604 \family default
17605  file following the outline given in 
17606 \family typewriter
17607 svjog.layout
17608 \family default
17609 .
17610  
17611 \end_layout
17612
17613 \begin_layout Standard
17614 It is reasonably well tested only for the Journal of Geodesy.
17615  
17616 \family typewriter
17617 svjour
17618 \family default
17619  and 
17620 \family typewriter
17621 svjog
17622 \family default
17623  come with the standard \SpecialChar LyX
17624  distribution.
17625  Install the relevant class file (downloaded from Springer) in a proper
17626  directory, reconfigure \SpecialChar LaTeX
17627  (in the te\SpecialChar TeX
17628  case by running 
17629 \family typewriter
17630 texhash
17631 \family default
17632 , as root if necessary — doesn't \SpecialChar LyX
17633  take care of this?), reconfigure \SpecialChar LyX
17634  and
17635  it should work.
17636 \end_layout
17637
17638 \begin_layout Subsection
17639 New styles
17640 \end_layout
17641
17642 \begin_layout Standard
17643 A large number of theorem-like styles — 
17644 \family sans
17645 Claim, Conjecture,
17646 \family default
17647  
17648 \family sans
17649 \SpecialChar ldots
17650 Theorem
17651 \family default
17652 .
17653 \end_layout
17654
17655 \begin_layout Standard
17656
17657 \family sans
17658 Headnote, Dedication, Subtitle, Running_\SpecialChar LaTeX
17659 _Title, Author_Running, Institute,
17660  Mail, Offprints, Keywords, Acknowledgements, Acknowledgement
17661 \family default
17662 .
17663  See the Springer class file documentation for details.
17664 \end_layout
17665
17666 \begin_layout Subsection
17667 Supported journals
17668 \end_layout
17669
17670 \begin_layout Itemize
17671
17672 \emph on
17673 Journal of Geodesy
17674 \emph default
17675
17676 \family typewriter
17677 svjog.layout
17678 \family default
17679  — Martin Vermeer
17680 \end_layout
17681
17682 \begin_layout Itemize
17683
17684 \emph on
17685 Probability Theory and Related Fields
17686 \emph default
17687
17688 \family typewriter
17689 svprobth.layout
17690 \family default
17691  — Jean-Marc Lasgouttes
17692 \end_layout
17693
17694 \begin_layout Standard
17695 Add your own, it isn't so hard!
17696 \end_layout
17697
17698 \begin_layout Subsection
17699 Credits
17700 \end_layout
17701
17702 \begin_layout Standard
17703 These files are partly based on the older 
17704 \family typewriter
17705 ejour2.layout
17706 \family default
17707 , which was again based on a tinkered-with version of an old \SpecialChar LaTeX
17708  2.09 style
17709  file from Springer.
17710  All this, and the 
17711 \family typewriter
17712 ejour2
17713 \family default
17714  layout, are now defunct.
17715  Jean-Marc Lasgouttes helped out big in making me find my way around the
17716  \SpecialChar LyX
17717  layout file mechanism.
17718 \end_layout
17719
17720 \begin_layout Subsection
17721 Bugs
17722 \end_layout
17723
17724 \begin_layout Standard
17725 Probably.
17726  But probably less than in the old hacked-\SpecialChar LaTeX
17727  
17728 \family typewriter
17729 ejour2
17730 \family default
17731 .
17732 \end_layout
17733
17734 \begin_layout Standard
17735
17736 \change_deleted -712698321 1501168901
17737 Limitations e.
17738 \begin_inset space \thinspace{}
17739 \end_inset
17740
17741 g.: does not display the number for theorem-like layouts, just #.
17742 \change_unchanged
17743
17744 \end_layout
17745
17746 \begin_layout Section
17747 Slides [aka 
17748 \noun on
17749 Sli\SpecialChar TeX
17750
17751 \noun default
17752 ]
17753 \begin_inset CommandInset label
17754 LatexCommand label
17755 name "sec:slitex"
17756
17757 \end_inset
17758
17759
17760 \end_layout
17761
17762 \begin_layout Standard
17763 by 
17764 \noun on
17765 John Weiss
17766 \noun default
17767  
17768 \end_layout
17769
17770 \begin_layout Subsection
17771 Introduction
17772 \end_layout
17773
17774 \begin_layout Standard
17775 This section describes how to use \SpecialChar LyX
17776  to make slides for overhead projectors.
17777  There are two document classes that can do this: the default slides class
17778  and the 
17779 \family sans
17780 Foil\SpecialChar TeX
17781
17782 \family default
17783  slides class.
17784  This section documents the former.
17785 \end_layout
17786
17787 \begin_layout Standard
17788 I'm going to say this again, nice and clear, so that there's no misunderstanding
17789 :
17790 \end_layout
17791
17792 \begin_layout Standard
17793 \begin_inset VSpace bigskip
17794 \end_inset
17795
17796
17797 \end_layout
17798
17799 \begin_layout Standard
17800 \align center
17801
17802 \size large
17803 This section documents the class 
17804 \begin_inset Quotes eld
17805 \end_inset
17806
17807
17808 \family sans
17809 slides (default)
17810 \family default
17811
17812 \begin_inset Quotes erd
17813 \end_inset
17814
17815  
17816 \emph on
17817 only.
17818 \end_layout
17819
17820 \begin_layout Standard
17821 \begin_inset VSpace bigskip
17822 \end_inset
17823
17824
17825 \end_layout
17826
17827 \begin_layout Standard
17828 If you're looking for the documentation for 
17829 \begin_inset Quotes eld
17830 \end_inset
17831
17832
17833 \family sans
17834 slides (Foil\SpecialChar TeX
17835 )
17836 \family default
17837
17838 \begin_inset Quotes erd
17839 \end_inset
17840
17841 , check out section
17842 \begin_inset space ~
17843 \end_inset
17844
17845
17846 \begin_inset CommandInset ref
17847 LatexCommand ref
17848 reference "sec:foiltex"
17849
17850 \end_inset
17851
17852 .
17853  The 
17854 \family sans
17855 foils
17856 \family default
17857  class [
17858 \begin_inset Quotes eld
17859 \end_inset
17860
17861
17862 \family sans
17863 slides (Foil\SpecialChar TeX
17864 )
17865 \family default
17866
17867 \begin_inset Quotes erd
17868 \end_inset
17869
17870 ] is actually somewhat better than the default 
17871 \family sans
17872 slides
17873 \family default
17874  class,
17875 \begin_inset Foot
17876 status collapsed
17877
17878 \begin_layout Plain Layout
17879 \SpecialChar ldots
17880 or so I've been told repeatedly by its advocates.
17881  Having never used it, I have no idea if this claim is true or not.
17882 \end_layout
17883
17884 \end_inset
17885
17886  which this section documents.
17887 \end_layout
17888
17889 \begin_layout Standard
17890 This class is the \SpecialChar LaTeX2e
17891  improvement of the old 
17892 \noun on
17893 Sli\SpecialChar TeX
17894
17895 \noun default
17896  package.
17897  Every \SpecialChar LaTeX2e
17898  distribution includes this class [which I'll just refer to as 
17899 \begin_inset Quotes eld
17900 \end_inset
17901
17902
17903 \family sans
17904 slides
17905 \family default
17906
17907 \begin_inset Quotes erd
17908 \end_inset
17909
17910  from now on], so you're bound to have it.
17911  As I noted earlier, there are other classes, such as 
17912 \family sans
17913 foils
17914 \family default
17915 , which also produce slides for overhead projectors and do a better job
17916  at it.
17917  However, there are some things which 
17918 \family sans
17919 slides
17920 \family default
17921  can do which the others can't, such as generate overlays.
17922  Read on to learn more!
17923 \end_layout
17924
17925 \begin_layout Subsection
17926 Getting Started
17927 \begin_inset CommandInset label
17928 LatexCommand label
17929 name "sec:slidesetup"
17930
17931 \end_inset
17932
17933
17934 \end_layout
17935
17936 \begin_layout Standard
17937 Obviously, to use this document class, you need to select 
17938 \begin_inset Quotes eld
17939 \end_inset
17940
17941
17942 \family sans
17943 slides (default)
17944 \family default
17945
17946 \begin_inset Quotes erd
17947 \end_inset
17948
17949  from the class list in the 
17950 \family sans
17951 Document\SpecialChar menuseparator
17952 Settings
17953 \family default
17954  dialog.
17955  There are some other special things you should know about this class:
17956 \end_layout
17957
17958 \begin_layout Itemize
17959 Don't bother changing the options 
17960 \family sans
17961 Sides and Columns
17962 \family default
17963 .
17964  They're not supported by the 
17965 \family sans
17966 slides
17967 \family default
17968  class, anyways.
17969 \end_layout
17970
17971 \begin_layout Itemize
17972 The option 
17973 \family sans
17974 Page
17975 \begin_inset space ~
17976 \end_inset
17977
17978 style
17979 \family default
17980  behaves a bit differently for this class.
17981  The possible choices and what they do are as follows:
17982 \end_layout
17983
17984 \begin_deeper
17985 \begin_layout Description
17986
17987 \family sans
17988 plain
17989 \family default
17990  The final output contains page numbers in the lower right corner.
17991 \end_layout
17992
17993 \begin_layout Description
17994
17995 \family sans
17996 headings
17997 \family default
17998  Like 
17999 \family sans
18000 plain
18001 \family default
18002 , but also prints out any time markers you've put in.
18003  This is the default.
18004 \end_layout
18005
18006 \begin_layout Description
18007
18008 \family sans
18009 empty
18010 \family default
18011  The final output contains no page numbers, time markers, or alignment markers.
18012 \end_layout
18013
18014 \end_deeper
18015 \begin_layout Itemize
18016 The 
18017 \family sans
18018 slides
18019 \family default
18020  class has an extra option: 
18021 \family typewriter
18022 clock
18023 \family default
18024 .
18025  To use it, put 
18026 \begin_inset Quotes eld
18027 \end_inset
18028
18029
18030 \family typewriter
18031 clock
18032 \family default
18033
18034 \begin_inset Quotes erd
18035 \end_inset
18036
18037  in the extra class options.
18038 \end_layout
18039
18040 \begin_deeper
18041 \begin_layout Standard
18042 Using this options allows you to add time markers to 
18043 \family sans
18044 Note
18045 \family default
18046 s.
18047  See section
18048 \begin_inset space ~
18049 \end_inset
18050
18051
18052 \begin_inset CommandInset ref
18053 LatexCommand ref
18054 reference "sec:slideNote"
18055
18056 \end_inset
18057
18058  for more details.
18059 \end_layout
18060
18061 \end_deeper
18062 \begin_layout Standard
18063 You can also use the template file 
18064 \begin_inset Quotes eld
18065 \end_inset
18066
18067
18068 \family typewriter
18069 slides.lyx
18070 \family default
18071
18072 \begin_inset Quotes erd
18073 \end_inset
18074
18075  to automatically set up a document to use the 
18076 \family sans
18077 slides
18078 \family default
18079  class [using 
18080 \family sans
18081 File\SpecialChar menuseparator
18082 New
18083 \begin_inset space ~
18084 \end_inset
18085
18086 from
18087 \begin_inset space ~
18088 \end_inset
18089
18090 Template
18091 \family default
18092  to open your new document].
18093  The template file also contains some examples of the special paragraph
18094  environments used by this class.
18095  I'll describe those next.
18096 \end_layout
18097
18098 \begin_layout Subsection
18099 Paragraph Environments
18100 \end_layout
18101
18102 \begin_layout Subsubsection
18103 Supported Environments
18104 \end_layout
18105
18106 \begin_layout Standard
18107 The first thing you'll notice when you start up a new 
18108 \family sans
18109 slides
18110 \family default
18111  document is the font size and type: it's the equivalent of the size 
18112 \begin_inset Quotes eld
18113 \end_inset
18114
18115
18116 \family sans
18117 Largest
18118 \family default
18119
18120 \begin_inset Quotes erd
18121 \end_inset
18122
18123  in the 
18124 \family sans
18125 Sans
18126 \begin_inset space ~
18127 \end_inset
18128
18129 Serif
18130 \family default
18131  font.
18132  This is also what's used in the output.
18133  Think of this as a 
18134 \begin_inset Quotes eld
18135 \end_inset
18136
18137 visual cue
18138 \begin_inset Quotes erd
18139 \end_inset
18140
18141  to remind you that this is a slide.
18142  Your final slides will use a larger font; ergo, you'll have less space.
18143  Of course, the larger default screen font isn't WYSIWYG, only a reminder.
18144 \end_layout
18145
18146 \begin_layout Standard
18147 The next thing that becomes obvious is the changes to the paragraph environment
18148  pull-down box [at the far-left end of the toolbar].
18149  Most of the paragraph environments you're used to seeing are missing.
18150  There are also five new ones.
18151  That's because the 
18152 \family sans
18153 slides
18154 \family default
18155  class itself only supports certain paragraph environments:
18156 \end_layout
18157
18158 \begin_layout Itemize
18159
18160 \family sans
18161 Standard
18162 \end_layout
18163
18164 \begin_layout Itemize
18165
18166 \family sans
18167 Itemize
18168 \end_layout
18169
18170 \begin_layout Itemize
18171
18172 \family sans
18173 Enumerate
18174 \end_layout
18175
18176 \begin_layout Itemize
18177
18178 \family sans
18179 Description
18180 \end_layout
18181
18182 \begin_layout Itemize
18183
18184 \family sans
18185 List
18186 \end_layout
18187
18188 \begin_layout Itemize
18189
18190 \family sans
18191 Quotation
18192 \end_layout
18193
18194 \begin_layout Itemize
18195
18196 \family sans
18197 Quote
18198 \end_layout
18199
18200 \begin_layout Itemize
18201
18202 \family sans
18203 Verse
18204 \end_layout
18205
18206 \begin_layout Itemize
18207
18208 \family sans
18209 Caption
18210 \end_layout
18211
18212 \begin_layout Itemize
18213
18214 \family sans
18215 \SpecialChar LyX
18216 -Code
18217 \end_layout
18218
18219 \begin_layout Itemize
18220
18221 \change_deleted -712698321 1501169265
18222
18223 \family sans
18224 Comment
18225 \change_unchanged
18226
18227 \end_layout
18228
18229 \begin_layout Standard
18230 All of the other standard environments, including the section-heading environmen
18231 ts, aren't used in the 
18232 \family sans
18233 slides
18234 \family default
18235  class.
18236 \end_layout
18237
18238 \begin_layout Standard
18239 On the other hand, you'll notice the following new environments:
18240 \end_layout
18241
18242 \begin_layout Itemize
18243
18244 \family sans
18245 Slide
18246 \end_layout
18247
18248 \begin_layout Itemize
18249
18250 \family sans
18251 Overlay
18252 \end_layout
18253
18254 \begin_layout Itemize
18255
18256 \family sans
18257 Note
18258 \end_layout
18259
18260 \begin_layout Itemize
18261
18262 \family sans
18263 InvisibleText
18264 \end_layout
18265
18266 \begin_layout Itemize
18267
18268 \family sans
18269 VisibleText
18270 \end_layout
18271
18272 \begin_layout Standard
18273 These five are kind of quirky, due to a 
18274 \begin_inset Quotes eld
18275 \end_inset
18276
18277 feature
18278 \begin_inset Quotes erd
18279 \end_inset
18280
18281  in \SpecialChar LyX
18282 .
18283  You see, \SpecialChar LyX
18284  doesn't permit you to nest any other paragraph environment into
18285  an empty environment.
18286  Now, that's fine and dandy, but it means that you wouldn't be able to start
18287  a slide with anything except plain text.
18288  To deal with this, I've performed a little 
18289 \begin_inset Quotes eld
18290 \end_inset
18291
18292 \SpecialChar LaTeX
18293  magic.
18294 \begin_inset Quotes erd
18295 \end_inset
18296
18297  
18298 \end_layout
18299
18300 \begin_layout Subsubsection
18301 Quirks of the New Environments
18302 \begin_inset CommandInset label
18303 LatexCommand label
18304 name "sec:slideQuirk"
18305
18306 \end_inset
18307
18308
18309 \end_layout
18310
18311 \begin_layout Standard
18312 All five of the new paragraph environments are somewhat quirky due to inherent
18313  limitiations in the current version of \SpecialChar LyX
18314 .
18315  As I just mentioned, \SpecialChar LyX
18316  forbids environments that begin with another environment.
18317  To get around this, the 
18318 \family sans
18319 Slide
18320 \family default
18321  environment isn't a paragraph environment as described in the 
18322 \emph on
18323 User's Guide
18324 \emph default
18325 .
18326  
18327 \end_layout
18328
18329 \begin_layout Standard
18330 You should consider 
18331 \family sans
18332 Slide
18333 \family default
18334
18335 \family sans
18336 Overlay
18337 \family default
18338 , and 
18339 \family sans
18340 Note
18341 \family default
18342  to be 
18343 \begin_inset Quotes eld
18344 \end_inset
18345
18346 pseudo-environments.
18347 \begin_inset Quotes erd
18348 \end_inset
18349
18350  They look like a section heading or a 
18351 \begin_inset Quotes eld
18352 \end_inset
18353
18354
18355 \family sans
18356 Caption
18357 \family default
18358 ,
18359 \begin_inset Quotes erd
18360 \end_inset
18361
18362  but really begin a [and, if necessary, end the previous] paragraph environment.
18363  Likewise, treat 
18364 \family sans
18365 InvisibleText
18366 \family default
18367  and 
18368 \family sans
18369 VisibleText
18370 \family default
18371  as 
18372 \begin_inset Quotes eld
18373 \end_inset
18374
18375 pseudo-commands.
18376 \begin_inset Quotes erd
18377 \end_inset
18378
18379  These two perform some action.
18380 \end_layout
18381
18382 \begin_layout Standard
18383 A common feature of all five environments, 
18384 \family sans
18385 Slide
18386 \family default
18387
18388 \family sans
18389 Overlay
18390 \family default
18391
18392 \family sans
18393 Note
18394 \family default
18395
18396 \family sans
18397 InvisibleText
18398 \family default
18399  and 
18400 \family sans
18401 VisibleText
18402 \family default
18403 , is a rather long-ish label.
18404  The text following this label — ordinarily the contents of the paragraph
18405  environment — is utterly irrelevant for 
18406 \family sans
18407 Slide
18408 \family default
18409
18410 \family sans
18411 Overlay
18412 \family default
18413
18414 \family sans
18415 Note
18416 \family default
18417
18418 \family sans
18419 InvisibleText
18420 \family default
18421  and 
18422 \family sans
18423 VisibleText
18424 \family default
18425 .
18426  \SpecialChar LyX
18427  completely ignores it.
18428  In fact, you can leave these five environments completely empty.
18429  
18430 \end_layout
18431
18432 \begin_layout Standard
18433 While you don't 
18434 \emph on
18435 have
18436 \emph default
18437  to put any text after the rather long-ish label, you might want to.
18438  This could be a short description of the contents of the 
18439 \family sans
18440 Slide
18441 \family default
18442 , for example.
18443  In that case, enter your descriptive comment and hit 
18444 \family sans
18445 Return
18446 \family default
18447  as you normally would.
18448 \end_layout
18449
18450 \begin_layout Standard
18451 If, on the other hand, you don't want to enter any descriptive text, you'll
18452  hit another \SpecialChar LyX
18453  quirk.
18454  \SpecialChar LyX
18455 , like nature, abhors a vacuum, and will not let you start a new paragraph
18456  environment until you put something in the old one.
18457  So, do this:
18458 \end_layout
18459
18460 \begin_layout Itemize
18461 Start entering the text that will 
18462 \emph on
18463 follow
18464 \emph default
18465  the new 
18466 \family sans
18467 Slide
18468 \family default
18469
18470 \family sans
18471 Overlay
18472 \family default
18473
18474 \family sans
18475 Note
18476 \family default
18477
18478 \family sans
18479 InvisibleText
18480 \family default
18481  or 
18482 \family sans
18483 VisibleText
18484 \family default
18485 .
18486  
18487 \end_layout
18488
18489 \begin_layout Itemize
18490 Now move to the beginning of that paragraph.
18491  
18492 \end_layout
18493
18494 \begin_layout Itemize
18495 Next, hit 
18496 \family sans
18497 Return
18498 \family default
18499 .
18500  
18501 \end_layout
18502
18503 \begin_layout Itemize
18504 Finally, change this new, empty paragraph to a 
18505 \family sans
18506 Slide
18507 \family default
18508
18509 \family sans
18510 Overlay
18511 \family default
18512
18513 \family sans
18514 Note
18515 \family default
18516
18517 \family sans
18518 InvisibleText
18519 \family default
18520  or 
18521 \family sans
18522 VisibleText
18523 \family default
18524 .
18525  
18526 \end_layout
18527
18528 \begin_layout Standard
18529 Some future version of \SpecialChar LyX
18530  will, hopefully, resolve this quirkiness\SpecialChar ldots
18531
18532 \end_layout
18533
18534 \begin_layout Subsection
18535 Making a Presentation with 
18536 \family sans
18537 Slide
18538 \family default
18539
18540 \family sans
18541 Overlay
18542 \family default
18543  and 
18544 \family sans
18545 Note
18546 \end_layout
18547
18548 \begin_layout Subsubsection
18549 Using the 
18550 \family sans
18551 Slide
18552 \family default
18553  Environment
18554 \end_layout
18555
18556 \begin_layout Standard
18557 If you're expecting this section to teach you how to actually make a presentatio
18558 n, you'll be sorely disappointed.
18559  Naturally, I'll describe all of the ways the 
18560 \family sans
18561 slides
18562 \family default
18563  class can assist you in preparing the materials for a presentation.
18564  Filling in the contents, however, is up to you.
18565  [Then again, that 
18566 \emph on
18567 is
18568 \emph default
18569  the \SpecialChar LyX
18570  philosophy.]
18571 \end_layout
18572
18573 \begin_layout Standard
18574 Choosing the 
18575 \family sans
18576 Slide
18577 \family default
18578  environment [in the manner described in section
18579 \begin_inset space ~
18580 \end_inset
18581
18582
18583 \begin_inset CommandInset ref
18584 LatexCommand ref
18585 reference "sec:slideQuirk"
18586
18587 \end_inset
18588
18589 ] tells \SpecialChar LyX
18590  to begin a new slide [duh].
18591  The label for this environment/
18592 \begin_inset Quotes erd
18593 \end_inset
18594
18595 pseudo-command
18596 \begin_inset Quotes erd
18597 \end_inset
18598
18599  is an 
18600 \begin_inset Quotes eld
18601 \end_inset
18602
18603 ASCII line,
18604 \begin_inset Quotes erd
18605 \end_inset
18606
18607  in cool blue, followed by the label, 
18608 \begin_inset Quotes eld
18609 \end_inset
18610
18611 NewSlide:
18612 \begin_inset Quotes erd
18613 \end_inset
18614
18615 .
18616  Any text or paragraph environments that follow this one go on the new slide.
18617  It's that simple.
18618 \end_layout
18619
18620 \begin_layout Standard
18621 Slides are probably the only time you'll need to forcibly end pages in \SpecialChar LyX
18622
18623  (this can be specified in the 
18624 \family sans
18625 Paragraph Layout
18626 \family default
18627  dialog).
18628  In fact, you'll want to, once you finish entering the contents of one slide.
18629  If you've entered more text than can physically fit on a slide, the extra
18630  overflows onto a new slide.
18631  I don't recommend doing this, however, since the overflow slide won't have
18632  any page number on it.
18633  Furthermore, it may interfere with any 
18634 \family sans
18635 Overlay
18636 \family default
18637  you've made to accompany the oversized 
18638 \family sans
18639 Slide
18640 \family default
18641 .
18642 \end_layout
18643
18644 \begin_layout Standard
18645 The 
18646 \family sans
18647 Overlay
18648 \family default
18649  and 
18650 \family sans
18651 Note
18652 \family default
18653  environments work the same way as the 
18654 \family sans
18655 Slide
18656 \family default
18657  environment.
18658  They both create an 
18659 \begin_inset Quotes eld
18660 \end_inset
18661
18662 ASCII line
18663 \begin_inset Quotes erd
18664 \end_inset
18665
18666  followed by a label [
18667 \begin_inset Quotes eld
18668 \end_inset
18669
18670 NewOverlay:
18671 \begin_inset Quotes erd
18672 \end_inset
18673
18674  and 
18675 \begin_inset Quotes eld
18676 \end_inset
18677
18678 NewNote:
18679 \begin_inset Quotes erd
18680 \end_inset
18681
18682 , respectively].
18683  The color is a stunning magenta instead of blue, and the 
18684 \begin_inset Quotes eld
18685 \end_inset
18686
18687 ASCII line
18688 \begin_inset Quotes erd
18689 \end_inset
18690
18691  will look different, in style and in length.
18692  The label fonts of all three also differ from one another.
18693 \end_layout
18694
18695 \begin_layout Standard
18696 As with a 
18697 \family sans
18698 Slide
18699 \family default
18700 , if the contents of a 
18701 \family sans
18702 Note
18703 \family default
18704  or 
18705 \family sans
18706 Overlay
18707 \family default
18708  exceed the physical size of a slide or sheet of paper, the extra will overflow
18709  onto a new sheet.
18710  Again, you should avoid this.
18711  It defeats the whole purpose of 
18712 \family sans
18713 Note
18714 \family default
18715 s and 
18716 \family sans
18717 Overlay
18718 \family default
18719 s.
18720 \end_layout
18721
18722 \begin_layout Subsubsection
18723 Using 
18724 \family sans
18725 Overlay
18726 \family default
18727  with 
18728 \family sans
18729 Slide
18730 \end_layout
18731
18732 \begin_layout Standard
18733 The idea behind an 
18734 \family sans
18735 Overlay
18736 \family default
18737  is a slide that sits atop another slide.
18738  Perhaps you wish to discuss a figure on the main 
18739 \family sans
18740 Slide
18741 \family default
18742  before displaying the text associated with it.
18743  One way to accomplish this is tape a flap of dark paper over the part of
18744  the 
18745 \family sans
18746 Slide
18747 \family default
18748  you want to display later.
18749  This method fails, however, if you wish to overlap one graph with another,
18750  for example.
18751  You would then have to fumble while speaking to align the two separate,
18752  overlapping 
18753 \family sans
18754 Slide
18755 \family default
18756 s to align the two graphs.
18757  The use of an 
18758 \family sans
18759 Overlay
18760 \family default
18761  environment in both cases makes life much easier.
18762 \end_layout
18763
18764 \begin_layout Standard
18765 Each 
18766 \family sans
18767 Overlay
18768 \family default
18769  receives the page number of its 
18770 \begin_inset Quotes eld
18771 \end_inset
18772
18773 parent
18774 \begin_inset Quotes erd
18775 \end_inset
18776
18777  
18778 \family sans
18779 Slide
18780 \family default
18781 , appended by 
18782 \begin_inset Quotes eld
18783 \end_inset
18784
18785
18786 \family typewriter
18787 -a
18788 \family default
18789
18790 \begin_inset Quotes erd
18791 \end_inset
18792
18793 .
18794 \begin_inset Foot
18795 status collapsed
18796
18797 \begin_layout Plain Layout
18798 Presumably, mutliple 
18799 \family sans
18800 Overlay
18801 \family default
18802 s would have 
18803 \begin_inset Quotes eld
18804 \end_inset
18805
18806
18807 \family typewriter
18808 -a
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 -b
18821 \family default
18822
18823 \begin_inset Quotes erd
18824 \end_inset
18825
18826
18827 \begin_inset Quotes eld
18828 \end_inset
18829
18830
18831 \family typewriter
18832 -c
18833 \family default
18834
18835 \begin_inset Quotes erd
18836 \end_inset
18837
18838 , etc.
18839 \begin_inset space ~
18840 \end_inset
18841
18842 appended to the page number of the parent 
18843 \family sans
18844 Slide
18845 \family default
18846 .
18847  
18848 \end_layout
18849
18850 \end_inset
18851
18852  Clearly, you want the contents of both the 
18853 \family sans
18854 Slide
18855 \family default
18856  and the 
18857 \family sans
18858 Overlay
18859 \family default
18860  to each fit on a single physical slide! You should probably consider an
18861  
18862 \family sans
18863 Overlay
18864 \family default
18865  as 
18866 \begin_inset Quotes eld
18867 \end_inset
18868
18869 part of
18870 \begin_inset Quotes erd
18871 \end_inset
18872
18873  a 
18874 \family sans
18875 Slide
18876 \family default
18877 .
18878  Indeed, the \SpecialChar LyX
18879  
18880 \family sans
18881 slides
18882 \family default
18883  class provides a visual cue for this: the label at the start of an 
18884 \family sans
18885 Overlay
18886 \family default
18887  is shorter than that at the start of a 
18888 \family sans
18889 Slide
18890 \family default
18891 .
18892  Lastly, when you generate printable output, you'll find alignment markers
18893  in all four corners of both the 
18894 \family sans
18895 Overlay
18896 \family default
18897  page and its parent 
18898 \family sans
18899 Slide
18900 \family default
18901 .
18902  These will assist you in lining up the two physical slides.
18903 \end_layout
18904
18905 \begin_layout Standard
18906 The major problem in overlaying two slides is aligning the contents of the
18907  two transparencies.
18908  How much space should you leave for that graph on the second slide? Worse
18909  still, what if you want a graph and a sentence on second slide, but there
18910  is text on the main transparency that goes in between them? You could try
18911  and insert vertical space of the right size.
18912  The better way is to use 
18913 \family sans
18914 InvisibleText
18915 \family default
18916  and 
18917 \family sans
18918 VisibleText
18919 \family default
18920 .
18921 \end_layout
18922
18923 \begin_layout Standard
18924 As their names imply, 
18925 \family sans
18926 InvisibleText
18927 \family default
18928  and 
18929 \family sans
18930 VisibleText
18931 \family default
18932  are two command-like paragraph environments that make all subsequent text
18933  invisible and visible, respectively.
18934  Note from section
18935 \begin_inset space ~
18936 \end_inset
18937
18938
18939 \begin_inset CommandInset ref
18940 LatexCommand ref
18941 reference "sec:slideQuirk"
18942
18943 \end_inset
18944
18945  that you don't place anything 
18946 \emph on
18947 into
18948 \emph default
18949  these two environments, however.
18950  When you create an 
18951 \family sans
18952 InvisibleText
18953 \family default
18954 , it inserts a centered, sky-blue label into the page reading 
18955 \begin_inset Quotes eld
18956 \end_inset
18957
18958 <Invisible Text Follows>
18959 \begin_inset Quotes erd
18960 \end_inset
18961
18962 .
18963  For paragraphs following this label, the parts of the 
18964 \family sans
18965 Slide
18966 \family default
18967  [or 
18968 \family sans
18969 Overlay
18970 \family default
18971 ; it doesn't matter which] where they would be contain instead blank space.
18972  
18973 \end_layout
18974
18975 \begin_layout Standard
18976 For 
18977 \family sans
18978 VisibleText
18979 \family default
18980 , the corresponding centered label is 
18981 \begin_inset Quotes eld
18982 \end_inset
18983
18984 <Visible Text Follows>
18985 \begin_inset Quotes erd
18986 \end_inset
18987
18988  in blazing green.
18989  Paragraphs following this label behave normally.
18990  Note that the beginning of a new 
18991 \family sans
18992 Slide
18993 \family default
18994
18995 \family sans
18996 Overlay
18997 \family default
18998 , or 
18999 \family sans
19000 Note
19001 \family default
19002  automatically shuts off an 
19003 \family sans
19004 InvisibleText
19005 \family default
19006 .
19007  It's therefore not necessary to use 
19008 \family sans
19009 VisibleText
19010 \family default
19011  at the end of a 
19012 \family sans
19013 Slide
19014 \family default
19015 .
19016 \end_layout
19017
19018 \begin_layout Standard
19019 By now, it should be obvious how to create overlay transparencies using
19020  the proper combination of 
19021 \family sans
19022 InvisibleText
19023 \family default
19024  and 
19025 \family sans
19026 VisibleText
19027 \family default
19028  on a 
19029 \family sans
19030 Slide
19031 \family default
19032  and 
19033 \family sans
19034 Overlay
19035 \family default
19036 :
19037 \end_layout
19038
19039 \begin_layout Enumerate
19040 Create a 
19041 \family sans
19042 Slide
19043 \family default
19044 , including everything that will appear on it, whether on the main slide
19045  or on the 
19046 \family sans
19047 Overlay
19048 \family default
19049 .
19050 \end_layout
19051
19052 \begin_layout Enumerate
19053 Before each figure or paragraph that will appear only on the 
19054 \family sans
19055 Overlay
19056 \family default
19057 , insert an 
19058 \family sans
19059 InvisibleText
19060 \family default
19061  environment.
19062  If necessary, insert a 
19063 \family sans
19064 VisibleText
19065 \family default
19066  environment after the 
19067 \family sans
19068 Overlay
19069 \family default
19070 -only text.
19071 \end_layout
19072
19073 \begin_layout Enumerate
19074 Start an 
19075 \family sans
19076 Overlay
19077 \family default
19078  immediately following the 
19079 \family sans
19080 Slide
19081 \family default
19082 .
19083 \end_layout
19084
19085 \begin_layout Enumerate
19086 Copy the contents of this 
19087 \family sans
19088 Slide
19089 \family default
19090  into the 
19091 \family sans
19092 Overlay
19093 \family default
19094 .
19095 \end_layout
19096
19097 \begin_layout Enumerate
19098 Within the 
19099 \family sans
19100 Overlay
19101 \family default
19102 , change all of the 
19103 \family sans
19104 InvisibleText
19105 \family default
19106  lines to 
19107 \family sans
19108 VisibleText
19109 \family default
19110  and vice-versa.
19111 \end_layout
19112
19113 \begin_layout Standard
19114 That's it.
19115  You've just made an 
19116 \family sans
19117 Overlay
19118 \family default
19119 .
19120 \end_layout
19121
19122 \begin_layout Standard
19123 There's one problem with the way I've designed the \SpecialChar LyX
19124  
19125 \family sans
19126 slides
19127 \family default
19128  class: you can't make text in the middle of a paragraph invisible, nor
19129  make text in the middle of an invisible paragraph visible again.
19130  To accomplish this feat, you'll need to use some inlined \SpecialChar LaTeX
19131  codes.
19132 \begin_inset Foot
19133 status collapsed
19134
19135 \begin_layout Plain Layout
19136 The commands of interest are: 
19137 \end_layout
19138
19139 \begin_layout Itemize
19140
19141 \family typewriter
19142 {
19143 \backslash
19144 invisible \SpecialChar ldots
19145  }
19146 \end_layout
19147
19148 \begin_layout Itemize
19149
19150 \family typewriter
19151 {
19152 \backslash
19153 visible \SpecialChar ldots
19154  }
19155 \end_layout
19156
19157 \begin_layout Plain Layout
19158 \SpecialChar ldots
19159 and need to be marked as \SpecialChar TeX
19160 .
19161  The text whose 
19162 \begin_inset Quotes eld
19163 \end_inset
19164
19165 visibility
19166 \begin_inset Quotes erd
19167 \end_inset
19168
19169  you wish to change goes in between the brackets [and after the 
19170 \family typewriter
19171
19172 \backslash
19173 invisible
19174 \family default
19175  or 
19176 \family typewriter
19177
19178 \backslash
19179 visible
19180 \family default
19181  command].
19182  If you don't know how to mark text as \SpecialChar TeX
19183 , see the appropriate section of
19184  the 
19185 \emph on
19186 User's Guide
19187 \emph default
19188 .
19189 \end_layout
19190
19191 \end_inset
19192
19193
19194 \end_layout
19195
19196 \begin_layout Subsubsection
19197 Using 
19198 \family sans
19199 Note
19200 \family default
19201  with 
19202 \family sans
19203 Slide
19204 \family default
19205
19206 \begin_inset CommandInset label
19207 LatexCommand label
19208 name "sec:slideNote"
19209
19210 \end_inset
19211
19212
19213 \end_layout
19214
19215 \begin_layout Standard
19216 Like an 
19217 \family sans
19218 Overlay
19219 \family default
19220 , a 
19221 \family sans
19222 Note
19223 \family default
19224  is associated with a 
19225 \begin_inset Quotes eld
19226 \end_inset
19227
19228 parent
19229 \begin_inset Quotes erd
19230 \end_inset
19231
19232  
19233 \family sans
19234 Slide
19235 \family default
19236 .
19237  Here, too, the \SpecialChar LyX
19238  
19239 \family sans
19240 slides
19241 \family default
19242  class provides visual cues.
19243  The label for a 
19244 \family sans
19245 Note
19246 \family default
19247  is shorter than that of a 
19248 \family sans
19249 Slide
19250 \family default
19251  [yet longer than that of an 
19252 \family sans
19253 Overlay
19254 \family default
19255 ] and, like the label of an 
19256 \family sans
19257 Overlay
19258 \family default
19259  is shockingly magenta.
19260  Additionally, the printed 
19261 \family sans
19262 Note
19263 \family default
19264  has the page number of its 
19265 \begin_inset Quotes eld
19266 \end_inset
19267
19268 parent
19269 \begin_inset Quotes erd
19270 \end_inset
19271
19272  
19273 \family sans
19274 Slide
19275 \family default
19276 , appended by 
19277 \begin_inset Quotes eld
19278 \end_inset
19279
19280
19281 \family typewriter
19282 -
19283 \family default
19284 1
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 2
19297 \begin_inset Quotes erd
19298 \end_inset
19299
19300
19301 \begin_inset Quotes eld
19302 \end_inset
19303
19304
19305 \family typewriter
19306 -
19307 \family default
19308 3
19309 \begin_inset Quotes erd
19310 \end_inset
19311
19312 , etc.
19313  You can have multiple 
19314 \family sans
19315 Note
19316 \family default
19317 s associated with a single 
19318 \family sans
19319 Slide
19320 \family default
19321 , and, as with 
19322 \family sans
19323 Slide
19324 \family default
19325  and 
19326 \family sans
19327 Overlay
19328 \family default
19329 , you'll probably want to break up long 
19330 \family sans
19331 Note
19332 \family default
19333 s so that they fit on a single sheet of paper.
19334 \end_layout
19335
19336 \begin_layout Standard
19337 The purpose of a 
19338 \family sans
19339 Note
19340 \family default
19341  is obvious: it contains anything additional you might want to say about
19342  a 
19343 \family sans
19344 Slide
19345 \family default
19346 .
19347  It could also be used as a sheet of reminders for a particular 
19348 \family sans
19349 Slide
19350 \family default
19351 .
19352  In the case of the latter, you might want to make use of time markers.
19353  Currently, the \SpecialChar LyX
19354  
19355 \family sans
19356 slides
19357 \family default
19358  class has no 
19359 \begin_inset Quotes eld
19360 \end_inset
19361
19362 native
19363 \begin_inset Quotes erd
19364 \end_inset
19365
19366  support for time markers, a 
19367 \noun on
19368 Sli\SpecialChar TeX
19369
19370 \noun default
19371  feature.
19372  So, you'll have to resort to using the \SpecialChar LaTeX
19373  codes.
19374 \end_layout
19375
19376 \begin_layout Standard
19377 To use time markers, you'll need to specify the extra class option 
19378 \begin_inset Quotes eld
19379 \end_inset
19380
19381
19382 \family typewriter
19383 clock
19384 \family default
19385
19386 \begin_inset Quotes erd
19387 \end_inset
19388
19389  [see section
19390 \begin_inset space ~
19391 \end_inset
19392
19393
19394 \begin_inset CommandInset ref
19395 LatexCommand ref
19396 reference "sec:slidesetup"
19397
19398 \end_inset
19399
19400 ].
19401  This option turns on timing marks, which will appear in the lower-left-hand
19402  corner of every 
19403 \family sans
19404 Note
19405 \family default
19406  you generate.
19407  To set what appears in the time marker, you use the \SpecialChar LaTeX
19408  commands 
19409 \begin_inset Quotes eld
19410 \end_inset
19411
19412
19413 \family typewriter
19414
19415 \backslash
19416 settime{}
19417 \family default
19418
19419 \begin_inset Quotes erd
19420 \end_inset
19421
19422  and 
19423 \begin_inset Quotes eld
19424 \end_inset
19425
19426
19427 \family typewriter
19428
19429 \backslash
19430 addtime{}
19431 \family default
19432
19433 \begin_inset Quotes erd
19434 \end_inset
19435
19436 .
19437  The arguments of both commands are time measured in seconds.
19438  
19439 \begin_inset Quotes eld
19440 \end_inset
19441
19442
19443 \family typewriter
19444
19445 \backslash
19446 settime{}
19447 \family default
19448
19449 \begin_inset Quotes erd
19450 \end_inset
19451
19452  sets the time marker to a given time.
19453  
19454 \begin_inset Quotes eld
19455 \end_inset
19456
19457
19458 \family typewriter
19459
19460 \backslash
19461 addtime{}
19462 \family default
19463
19464 \begin_inset Quotes erd
19465 \end_inset
19466
19467  increments the time marker by the specified amount.
19468  Using time markers and 
19469 \family sans
19470 Note
19471 \family default
19472 s in this fashion, you can remind yourself how much time to spend on a particula
19473
19474 \family sans
19475 Slide
19476 \family default
19477 .
19478 \end_layout
19479
19480 \begin_layout Standard
19481 There's one last feature to describe.
19482  Clearly, you'd like to print out all of your 
19483 \family sans
19484 Slide
19485 \family default
19486 s and 
19487 \family sans
19488 Overlay
19489 \family default
19490 s on transparencies while printing all of your 
19491 \family sans
19492 Note
19493 \family default
19494 s on plain paper.
19495  However, a 
19496 \family sans
19497 Note
19498 \family default
19499  
19500 \emph on
19501 must
19502 \emph default
19503  follow the 
19504 \family sans
19505 Slide
19506 \family default
19507  with which it is associated.
19508  What's a person to do?
19509 \end_layout
19510
19511 \begin_layout Standard
19512 Luckily, there are two \SpecialChar LaTeX
19513  commands that allow you to select what to print
19514  out.
19515  Both must be placed into the preamble of your document.
19516  The command 
19517 \begin_inset Quotes eld
19518 \end_inset
19519
19520
19521 \family typewriter
19522
19523 \backslash
19524 onlyslides{
19525 \backslash
19526 slides}
19527 \family default
19528
19529 \begin_inset Quotes erd
19530 \end_inset
19531
19532  will cause the output to contain only the 
19533 \family sans
19534 Slide
19535 \family default
19536 s and 
19537 \family sans
19538 Overlay
19539 \family default
19540 s.
19541  Correspondingly, the command 
19542 \begin_inset Quotes eld
19543 \end_inset
19544
19545
19546 \family typewriter
19547
19548 \backslash
19549 onlynotes{
19550 \backslash
19551 notes}
19552 \family default
19553
19554 \begin_inset Quotes erd
19555 \end_inset
19556
19557  prevents the output of anything but 
19558 \family sans
19559 Note
19560 \family default
19561 s.
19562  I'd advise placing both commands in the preamble and initially comment
19563  both out.
19564  You can then preview your entire presentation as you write.
19565  When you're done writing, you can then uncomment one of the two to select
19566  what you want to print.
19567  I like to uncomment 
19568 \begin_inset Quotes eld
19569 \end_inset
19570
19571
19572 \family typewriter
19573
19574 \backslash
19575 onlyslides{
19576 \backslash
19577 slides}
19578 \family default
19579
19580 \begin_inset Quotes erd
19581 \end_inset
19582
19583  , print to a file with 
19584 \begin_inset Quotes eld
19585 \end_inset
19586
19587
19588 \family typewriter
19589 -slides
19590 \family default
19591
19592 \begin_inset Quotes erd
19593 \end_inset
19594
19595  in its name, comment it back out, then uncomment 
19596 \begin_inset Quotes eld
19597 \end_inset
19598
19599
19600 \family typewriter
19601
19602 \backslash
19603 onlynotes{
19604 \backslash
19605 notes}
19606 \family default
19607
19608 \begin_inset Quotes erd
19609 \end_inset
19610
19611  and print to a 
19612 \begin_inset Quotes eld
19613 \end_inset
19614
19615
19616 \family typewriter
19617 *-notes.ps
19618 \family default
19619
19620 \begin_inset Quotes erd
19621 \end_inset
19622
19623  file.
19624  I can then send either file to a printer, loading transparencies or plain
19625  paper as appropriate.
19626 \end_layout
19627
19628 \begin_layout Standard
19629 You can also provide other arguments to the 
19630 \begin_inset Quotes eld
19631 \end_inset
19632
19633
19634 \family typewriter
19635
19636 \backslash
19637 onlyslides{}
19638 \family default
19639
19640 \begin_inset Quotes erd
19641 \end_inset
19642
19643  and 
19644 \begin_inset Quotes eld
19645 \end_inset
19646
19647
19648 \family typewriter
19649
19650 \backslash
19651 onlynotes{}
19652 \family default
19653
19654 \begin_inset Quotes erd
19655 \end_inset
19656
19657  commands.
19658  See a good \SpecialChar LaTeX
19659  book for details.
19660 \end_layout
19661
19662 \begin_layout Subsection
19663 The 
19664 \family sans
19665 slides
19666 \family default
19667  Class Template File
19668 \end_layout
19669
19670 \begin_layout Standard
19671 I have also provided a template file, 
19672 \begin_inset Quotes eld
19673 \end_inset
19674
19675
19676 \family typewriter
19677 slides.lyx
19678 \family default
19679
19680 \begin_inset Quotes erd
19681 \end_inset
19682
19683 , with the 
19684 \family sans
19685 slides
19686 \family default
19687  class.
19688  To use it, begin your new presentation with 
19689 \family sans
19690 File\SpecialChar menuseparator
19691 New
19692 \begin_inset space ~
19693 \end_inset
19694
19695 from
19696 \begin_inset space ~
19697 \end_inset
19698
19699 Template
19700 \family default
19701 .
19702  Your new \SpecialChar LyX
19703  presentation file will contain an example 
19704 \family sans
19705 Slide
19706 \family default
19707  – 
19708 \family sans
19709 Overlay
19710 \family default
19711  – 
19712 \family sans
19713 Note
19714 \family default
19715  triplet.
19716  The 
19717 \family sans
19718 Slide
19719 \family default
19720  and 
19721 \family sans
19722 Overlay
19723 \family default
19724  additionally contain an example of the use of 
19725 \family sans
19726 InvisibleText
19727 \family default
19728  and 
19729 \family sans
19730 VisibleText
19731 \family default
19732 .
19733  Lastly, the preamble will contain:
19734 \end_layout
19735
19736 \begin_layout LyX-Code
19737 % Uncomment to print out only slides and overlays
19738 \end_layout
19739
19740 \begin_layout LyX-Code
19741 %
19742 \end_layout
19743
19744 \begin_layout LyX-Code
19745 %
19746 \backslash
19747 onlyslides{
19748 \backslash
19749 slides}
19750 \begin_inset Newline newline
19751 \end_inset
19752
19753  
19754 \end_layout
19755
19756 \begin_layout LyX-Code
19757 % Uncomment to print out only notes
19758 \end_layout
19759
19760 \begin_layout LyX-Code
19761 %
19762 \end_layout
19763
19764 \begin_layout LyX-Code
19765 %
19766 \backslash
19767 onlynotes{
19768 \backslash
19769 notes}
19770 \end_layout
19771
19772 \begin_layout Standard
19773 One final thing: I created this class to support the \SpecialChar LaTeX2e
19774  
19775 \begin_inset Quotes eld
19776 \end_inset
19777
19778
19779 \noun on
19780 Sli\SpecialChar TeX
19781
19782 \noun default
19783  emulation
19784 \begin_inset Quotes erd
19785 \end_inset
19786
19787  class, one of the built-in \SpecialChar LaTeX2e
19788  classes.
19789  Neither I nor the rest of the \SpecialChar LyX
19790  Team endorse or oppose the use of this built-in
19791  slide class.
19792  It's here if you want it or need it.
19793  There exist other \SpecialChar LaTeX2e
19794  classes for creating presentations, such as the 
19795 \family sans
19796 Foils
19797 \family default
19798  class [see section
19799 \begin_inset space ~
19800 \end_inset
19801
19802
19803 \begin_inset CommandInset ref
19804 LatexCommand ref
19805 reference "sec:foiltex"
19806
19807 \end_inset
19808
19809 ] or the 
19810 \begin_inset Quotes eld
19811 \end_inset
19812
19813
19814 \family typewriter
19815 seminar
19816 \family default
19817
19818 \begin_inset Quotes erd
19819 \end_inset
19820
19821  package [present on some \SpecialChar TeX
19822  distributions].
19823  The latter is not yet supported under \SpecialChar LyX
19824 .
19825 \begin_inset Foot
19826 status collapsed
19827
19828 \begin_layout Plain Layout
19829 Perhaps you can take on the task\SpecialChar ldots
19830
19831 \end_layout
19832
19833 \end_inset
19834
19835  I know nothing about these other classes.
19836  Try them out to see what sort of alternative they provide.
19837 \end_layout
19838
19839 \begin_layout Chapter
19840 \SpecialChar LyX
19841  Features needing Extra Software
19842 \end_layout
19843
19844 \begin_layout Section
19845 Checking \SpecialChar TeX
19846
19847 \end_layout
19848
19849 \begin_layout Standard
19850 by 
19851 \noun on
19852 Asger Alstrup
19853 \end_layout
19854
19855 \begin_layout Subsection
19856 Introduction
19857 \end_layout
19858
19859 \begin_layout Standard
19860 If you have the 
19861 \family typewriter
19862 chktex
19863 \family default
19864  program installed
19865 \begin_inset Foot
19866 status collapsed
19867
19868 \begin_layout Plain Layout
19869
19870 \family typewriter
19871 chktex
19872 \family default
19873  is not yet available when you are using the \SpecialChar LaTeX
19874  distribution MiK\SpecialChar TeX
19875 .
19876 \end_layout
19877
19878 \end_inset
19879
19880 , you'll find in the 
19881 \family sans
19882 Tools
19883 \family default
19884  menu the entry: 
19885 \family sans
19886 Check
19887 \begin_inset space ~
19888 \end_inset
19889
19890 TeX
19891 \family default
19892 .
19893  You can get 
19894 \family typewriter
19895 chktex
19896 \family default
19897  from CTAN,
19898 \begin_inset Newline newline
19899 \end_inset
19900
19901
19902 \begin_inset CommandInset href
19903 LatexCommand href
19904 target "http://www.ctan.org/tex-archive/help/Catalogue/entries/chktex.html"
19905 literal "false"
19906
19907 \end_inset
19908
19909 .
19910 \end_layout
19911
19912 \begin_layout Standard
19913 The 
19914 \family sans
19915 Chk\SpecialChar TeX
19916
19917 \family default
19918  package is a program that was written by 
19919 \begin_inset Flex Noun
19920 status collapsed
19921
19922 \begin_layout Plain Layout
19923 Jens T.
19924 \begin_inset space ~
19925 \end_inset
19926
19927 Berger Thielemann
19928 \end_layout
19929
19930 \end_inset
19931
19932  in frustration because some constructs in \SpecialChar LaTeX
19933  are sometimes non-intuitive,
19934  and easy to forget.
19935  The program runs over your \SpecialChar LaTeX
19936  file, checks the integrity of the file, and
19937  flags some common errors.
19938  In other technical words, it is 
19939 \family typewriter
19940 lint
19941 \family default
19942  for \SpecialChar LaTeX
19943 .
19944 \end_layout
19945
19946 \begin_layout Standard
19947 Well, what is a syntax checker doing in \SpecialChar LyX
19948  which is supposed to produce correct
19949  \SpecialChar LaTeX
19950  anyways? The answer is simple: Just as 
19951 \family typewriter
19952 Lint
19953 \family default
19954  not only checks the 
19955 \emph on
19956 syntax
19957 \emph default
19958  of C programs, but also does 
19959 \emph on
19960 semantic
19961 \emph default
19962  checks for type-errors, 
19963 \family sans
19964 Chk\SpecialChar TeX
19965
19966 \family default
19967  catches some common 
19968 \emph on
19969 typographic
19970 \emph default
19971  errors, in addition to the syntactical ones.
19972  Specifically, 
19973 \family sans
19974 Chk\SpecialChar TeX
19975
19976 \family default
19977  is capable of detecting several common errors, such as
19978 \end_layout
19979
19980 \begin_layout Itemize
19981 Ellipsis detection:
19982 \begin_inset Newline newline
19983 \end_inset
19984
19985 Use \SpecialChar ldots
19986  instead of ...
19987 \end_layout
19988
19989 \begin_layout Itemize
19990 No space in front of/after parenthesis:
19991 \begin_inset Newline newline
19992 \end_inset
19993
19994 ( wrong spacing )
19995 \end_layout
19996
19997 \begin_layout Itemize
19998 Enforcement of normal space after common abbreviations:
19999 \begin_inset Newline newline
20000 \end_inset
20001
20002 e.
20003 \begin_inset space \thinspace{}
20004 \end_inset
20005
20006 g.
20007 \begin_inset space \space{}
20008 \end_inset
20009
20010 is too wide spacing.
20011 \end_layout
20012
20013 \begin_layout Itemize
20014 Enforcement of end-of-sentence space when the last sentence ends with a
20015  capital letter:
20016 \begin_inset Newline newline
20017 \end_inset
20018
20019 This is a TEST.
20020  And this is wrong spacing.
20021 \end_layout
20022
20023 \begin_layout Itemize
20024 Space in front of labels and similar commands:
20025 \begin_inset Newline newline
20026 \end_inset
20027
20028 The label should stick right up to the text to avoid falling to a wrong
20029  page.
20030  
20031 \begin_inset CommandInset label
20032 LatexCommand label
20033 name "sec:chktex"
20034
20035 \end_inset
20036
20037  
20038 \begin_inset Foot
20039 status collapsed
20040
20041 \begin_layout Plain Layout
20042 This footnote is in danger of falling off to a wrong page
20043 \end_layout
20044
20045 \end_inset
20046
20047  The label is separated too much.
20048 \end_layout
20049
20050 \begin_layout Itemize
20051 Space in front of references, instead of hard spaces:
20052 \begin_inset Newline newline
20053 \end_inset
20054
20055 If you have bad luck, the text will break right between the referenced text
20056  and reference number, and that's a pity.
20057  See section 
20058 \begin_inset CommandInset ref
20059 LatexCommand ref
20060 reference "sec:chktex"
20061
20062 \end_inset
20063
20064 .
20065 \end_layout
20066
20067 \begin_layout Itemize
20068 Use of 
20069 \begin_inset Quotes eld
20070 \end_inset
20071
20072 x
20073 \begin_inset Quotes erd
20074 \end_inset
20075
20076  instead of 
20077 \begin_inset Formula $\times$
20078 \end_inset
20079
20080  between numbers:
20081 \begin_inset Newline newline
20082 \end_inset
20083
20084 2x2 looks cheap compared to 
20085 \begin_inset Formula $2\times2$
20086 \end_inset
20087
20088 .
20089 \end_layout
20090
20091 \begin_layout Standard
20092 and more \SpecialChar ldots
20093  It is an invaluable tool when you are 
20094 \begin_inset Quotes eld
20095 \end_inset
20096
20097 finishing up
20098 \begin_inset Quotes erd
20099 \end_inset
20100
20101  your document before printing, and you should run it right after the obligatory
20102  spelling check, and before you go fine tuning the typesetting.
20103 \end_layout
20104
20105 \begin_layout Subsection
20106 How to use it
20107 \end_layout
20108
20109 \begin_layout Standard
20110 If you have the program installed, usage is as simple as choosing 
20111 \family sans
20112 Tools\SpecialChar menuseparator
20113 Check
20114 \begin_inset space ~
20115 \end_inset
20116
20117 TeX
20118 \family default
20119 .
20120  This will make \SpecialChar LyX
20121  generate a \SpecialChar LaTeX
20122  file of your document, start 
20123 \family sans
20124 Chk\SpecialChar TeX
20125
20126 \family default
20127  to check it, and then make \SpecialChar LyX
20128  insert 
20129 \begin_inset Quotes eld
20130 \end_inset
20131
20132 error boxes
20133 \begin_inset Quotes erd
20134 \end_inset
20135
20136  with the warnings from 
20137 \family sans
20138 Chk\SpecialChar TeX
20139
20140 \family default
20141 , if there were any.
20142  The warnings will be placed close to the point of the mistake, and you
20143  can quickly find them by using the 
20144 \family sans
20145 Navigate\SpecialChar menuseparator
20146 Error
20147 \family default
20148  menu item, or the shortcut key 
20149 \family sans
20150 C-g
20151 \family default
20152  from the default 
20153 \family typewriter
20154 cua
20155 \family default
20156  bind file.
20157  Open the error boxes by clicking on them with the mouse, or use the shortcut
20158  key 
20159 \family sans
20160 C-i
20161 \family default
20162  from 
20163 \family typewriter
20164 cua
20165 \family default
20166  bindings, or the corresponding 
20167 \family sans
20168 C-o
20169 \family default
20170  for the alternate 
20171 \family typewriter
20172 emacs
20173 \family default
20174  bind file.
20175  Read the warning and correct the mistake, if it is a mistake.
20176  If you have trouble understanding what the warning is about, you can safely
20177  ignore it.
20178  Remember that there is a hidden layer between the document on screen and
20179  the technical details in invoking 
20180 \family sans
20181 Chk\SpecialChar TeX
20182
20183 \family default
20184 , and this gap can make some warnings seem arcane or just plain silly.
20185 \end_layout
20186
20187 \begin_layout Standard
20188 This document is an excellent testing bed for the feature, and it should
20189  provide quite a few warnings for you to fiddle with.
20190  Since computers are only so smart, expect most of the warnings to be false
20191  alarms, though.
20192 \end_layout
20193
20194 \begin_layout Subsection
20195 How to fine tune it
20196 \end_layout
20197
20198 \begin_layout Standard
20199 Sometimes, you'll find that 
20200 \family sans
20201 Chk\SpecialChar TeX
20202
20203 \family default
20204  makes more noise than suits your mood.
20205  Then you can choose not to use it, wait until your mood changes, or try
20206  to customize 
20207 \family sans
20208 Chk\SpecialChar TeX
20209
20210 \family default
20211  to get better along with you.
20212 \end_layout
20213
20214 \begin_layout Standard
20215 Although 
20216 \family sans
20217 Chk\SpecialChar TeX
20218
20219 \family default
20220  
20221 \emph on
20222 is
20223 \emph default
20224  very configurable and extensible, you should not expect to solve all problems
20225  with 
20226 \family sans
20227 Chk\SpecialChar TeX
20228
20229 \family default
20230  in \SpecialChar LyX
20231  this way.
20232  Since \SpecialChar LyX
20233  has to generate a somewhat special \SpecialChar LaTeX
20234  file to be able to match the
20235  line numbers from the 
20236 \family sans
20237 Chk\SpecialChar TeX
20238
20239 \family default
20240  output
20241 \begin_inset Foot
20242 status collapsed
20243
20244 \begin_layout Plain Layout
20245 You can inspect the specific output from 
20246 \family sans
20247 chktex
20248 \family default
20249  by using 
20250 \family sans
20251 Document\SpecialChar menuseparator
20252 \SpecialChar LaTeX
20253
20254 \begin_inset space ~
20255 \end_inset
20256
20257 Log
20258 \family default
20259  right after a 
20260 \family sans
20261 chktex
20262 \family default
20263  run.
20264 \end_layout
20265
20266 \end_inset
20267
20268  to the internal document structure, some of the warnings will not appear
20269  correctly.
20270  There are two things you can do about this:
20271 \end_layout
20272
20273 \begin_layout Itemize
20274 Fine tune the 
20275 \family sans
20276 Chk\SpecialChar TeX
20277
20278 \family default
20279  invocation command line in 
20280 \begin_inset Flex Noun
20281 status collapsed
20282
20283 \begin_layout Plain Layout
20284 Tools\SpecialChar menuseparator
20285 Preferences\SpecialChar menuseparator
20286 Output\SpecialChar menuseparator
20287 LaTeX\SpecialChar menuseparator
20288 CheckTeX command
20289 \end_layout
20290
20291 \end_inset
20292
20293 , or the global 
20294 \family sans
20295 Chk\SpecialChar TeX
20296
20297 \family default
20298  installation configuration file (usually with the file 
20299 \family typewriter
20300 chktexrc
20301 \family default
20302 ).
20303  See below to learn what warnings can be enabled and disabled on the command
20304  line.
20305 \end_layout
20306
20307 \begin_layout Itemize
20308 Export your document as a raw \SpecialChar LaTeX
20309  file using 
20310 \family sans
20311 File\SpecialChar menuseparator
20312 Export\SpecialChar menuseparator
20313 \SpecialChar LaTeX
20314
20315 \family default
20316  and run 
20317 \family typewriter
20318 chktex
20319 \family default
20320  manually on that.
20321  Invoked in this way, it can be a hassle to find the corresponding place
20322  in the document inside \SpecialChar LyX
20323 , but with a little patience, you should be able
20324  to do it.
20325 \end_layout
20326
20327 \begin_layout Standard
20328 Here follows the warning messages that can be enabled and disabled in 
20329 \family sans
20330 Preferences
20331 \family default
20332 .
20333  Use 
20334 \family typewriter
20335 -n#
20336 \family default
20337  to disable a warning, and 
20338 \family typewriter
20339 -w#
20340 \family default
20341  to enable a warning.
20342  The emphasized entries are disabled by default, because the default is
20343  "
20344 \family typewriter
20345 chktex -n1 -n3 -n6 -n9 -n22 -n25 -n30 -n38
20346 \family default
20347 ".
20348 \end_layout
20349
20350 \begin_layout Standard
20351 Notice that you should only use the options that enable and disable warnings,
20352  because \SpecialChar LyX
20353  relies on some of the other command line parameters to be set
20354  in a specific way to have a chance to communicate with 
20355 \family typewriter
20356 chktex
20357 \family default
20358 .
20359 \end_layout
20360
20361 \begin_layout Enumerate
20362
20363 \size small
20364 \emph on
20365 Command terminated with space.
20366 \end_layout
20367
20368 \begin_layout Enumerate
20369
20370 \size small
20371 Non-breaking space (
20372 \begin_inset Quotes eld
20373 \end_inset
20374
20375
20376 \family typewriter
20377 ~
20378 \family default
20379
20380 \begin_inset Quotes erd
20381 \end_inset
20382
20383 ) should have been used.
20384 \end_layout
20385
20386 \begin_layout Enumerate
20387
20388 \size small
20389 \emph on
20390 You should enclose the previous parenthesis with 
20391 \begin_inset Quotes eld
20392 \end_inset
20393
20394
20395 \family typewriter
20396 {}
20397 \family default
20398
20399 \begin_inset Quotes erd
20400 \end_inset
20401
20402 .
20403 \end_layout
20404
20405 \begin_layout Enumerate
20406
20407 \size small
20408 Italic correction (
20409 \begin_inset Quotes eld
20410 \end_inset
20411
20412
20413 \family typewriter
20414
20415 \backslash
20416 /
20417 \family default
20418
20419 \begin_inset Quotes erd
20420 \end_inset
20421
20422 ) found in non-italic buffer.
20423 \end_layout
20424
20425 \begin_layout Enumerate
20426
20427 \size small
20428 Italic correction (
20429 \begin_inset Quotes eld
20430 \end_inset
20431
20432
20433 \family typewriter
20434
20435 \backslash
20436 /
20437 \family default
20438
20439 \begin_inset Quotes erd
20440 \end_inset
20441
20442 ) found more than once.
20443 \end_layout
20444
20445 \begin_layout Enumerate
20446
20447 \size small
20448 \emph on
20449 No italic correction (
20450 \begin_inset Quotes eld
20451 \end_inset
20452
20453
20454 \family typewriter
20455
20456 \backslash
20457 /
20458 \family default
20459
20460 \begin_inset Quotes erd
20461 \end_inset
20462
20463 ) found.
20464 \end_layout
20465
20466 \begin_layout Enumerate
20467
20468 \size small
20469 Accent command 
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  needs use of 
20482 \begin_inset Quotes eld
20483 \end_inset
20484
20485
20486 \family typewriter
20487 cmd
20488 \family default
20489
20490 \begin_inset Quotes erd
20491 \end_inset
20492
20493 .
20494 \end_layout
20495
20496 \begin_layout Enumerate
20497
20498 \size small
20499 Wrong length of dash may have been used.
20500 \end_layout
20501
20502 \begin_layout Enumerate
20503
20504 \size small
20505 \emph on
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  expected, found 
20518 \begin_inset Quotes eld
20519 \end_inset
20520
20521
20522 \family typewriter
20523 %s
20524 \family default
20525
20526 \begin_inset Quotes erd
20527 \end_inset
20528
20529 .
20530 \end_layout
20531
20532 \begin_layout Enumerate
20533
20534 \size small
20535 Solo 
20536 \begin_inset Quotes eld
20537 \end_inset
20538
20539
20540 \family typewriter
20541 %s
20542 \family default
20543
20544 \begin_inset Quotes erd
20545 \end_inset
20546
20547  found.
20548 \end_layout
20549
20550 \begin_layout Enumerate
20551
20552 \size small
20553 You should use 
20554 \begin_inset Quotes eld
20555 \end_inset
20556
20557
20558 \family typewriter
20559 %s
20560 \family default
20561
20562 \begin_inset Quotes erd
20563 \end_inset
20564
20565  to achieve an ellipsis.
20566 \end_layout
20567
20568 \begin_layout Enumerate
20569
20570 \size small
20571 Inter-word spacing (
20572 \begin_inset Quotes eld
20573 \end_inset
20574
20575
20576 \family typewriter
20577
20578 \backslash
20579
20580 \family default
20581  
20582 \begin_inset Quotes eld
20583 \end_inset
20584
20585 ) should perhaps be used.
20586 \end_layout
20587
20588 \begin_layout Enumerate
20589
20590 \size small
20591 Inter-sentence spacing (
20592 \begin_inset Quotes eld
20593 \end_inset
20594
20595
20596 \family typewriter
20597
20598 \backslash
20599 @
20600 \family default
20601
20602 \begin_inset Quotes erd
20603 \end_inset
20604
20605 ) should perhaps be used.
20606 \end_layout
20607
20608 \begin_layout Enumerate
20609
20610 \size small
20611 Could not find argument for command.
20612 \end_layout
20613
20614 \begin_layout Enumerate
20615
20616 \size small
20617 No match found for 
20618 \begin_inset Quotes eld
20619 \end_inset
20620
20621
20622 \family typewriter
20623 %s
20624 \family default
20625
20626 \begin_inset Quotes erd
20627 \end_inset
20628
20629 .
20630 \end_layout
20631
20632 \begin_layout Enumerate
20633
20634 \size small
20635 Math mode still on at end of \SpecialChar LaTeX
20636  file.
20637 \end_layout
20638
20639 \begin_layout Enumerate
20640
20641 \size small
20642 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  doesn't match the number of 
20655 \begin_inset Quotes eld
20656 \end_inset
20657
20658
20659 \family typewriter
20660 char
20661 \family default
20662
20663 \begin_inset Quotes erd
20664 \end_inset
20665
20666 .
20667 \end_layout
20668
20669 \begin_layout Enumerate
20670
20671 \size small
20672 You should use either 
20673 \family typewriter
20674
20675 \begin_inset Quotes eld
20676 \end_inset
20677
20678
20679 \family default
20680  or 
20681 \family typewriter
20682
20683 \begin_inset Quotes erd
20684 \end_inset
20685
20686
20687 \family default
20688  as an alternative to 
20689 \begin_inset Quotes eld
20690 \end_inset
20691
20692
20693 \family typewriter
20694 "
20695 \family default
20696
20697 \begin_inset Quotes erd
20698 \end_inset
20699
20700 .
20701 \end_layout
20702
20703 \begin_layout Enumerate
20704
20705 \size small
20706 You should use "
20707 \family typewriter
20708 '
20709 \family default
20710 " (ASCII 39) instead of "
20711 \family typewriter
20712 ´
20713 \family default
20714 " (ASCII 180).
20715 \end_layout
20716
20717 \begin_layout Enumerate
20718
20719 \size small
20720 User-specified pattern found.
20721 \end_layout
20722
20723 \begin_layout Enumerate
20724
20725 \size small
20726 This command might not be intended.
20727 \end_layout
20728
20729 \begin_layout Enumerate
20730
20731 \size small
20732 \emph on
20733 Comment displayed.
20734 \end_layout
20735
20736 \begin_layout Enumerate
20737
20738 \size small
20739 Either 
20740 \family typewriter
20741 ''
20742 \backslash
20743 ,'
20744 \family default
20745  or 
20746 \family typewriter
20747 '
20748 \backslash
20749 ,''
20750 \family default
20751  will look better.
20752 \end_layout
20753
20754 \begin_layout Enumerate
20755
20756 \size small
20757 Delete this space to maintain correct page references.
20758 \end_layout
20759
20760 \begin_layout Enumerate
20761
20762 \size small
20763 \emph on
20764 You might wish to put this between a pair of 
20765 \begin_inset Quotes eld
20766 \end_inset
20767
20768
20769 \family typewriter
20770 {}
20771 \family default
20772
20773 \begin_inset Quotes erd
20774 \end_inset
20775
20776 .
20777 \end_layout
20778
20779 \begin_layout Enumerate
20780
20781 \size small
20782 You ought to remove spaces in front of punctuation.
20783 \end_layout
20784
20785 \begin_layout Enumerate
20786
20787 \size small
20788 Could not execute \SpecialChar LaTeX
20789  command.
20790 \end_layout
20791
20792 \begin_layout Enumerate
20793
20794 \size small
20795 Don't use 
20796 \family typewriter
20797
20798 \backslash
20799 /
20800 \family default
20801  in front of small punctuation.
20802 \end_layout
20803
20804 \begin_layout Enumerate
20805
20806 \family typewriter
20807 \size small
20808 $
20809 \backslash
20810 times$
20811 \family default
20812  may look prettier here.
20813 \end_layout
20814
20815 \begin_layout Enumerate
20816
20817 \size small
20818 \emph on
20819 Multiple spaces detected in output.
20820 \end_layout
20821
20822 \begin_layout Enumerate
20823
20824 \size small
20825 This text may be ignored.
20826 \end_layout
20827
20828 \begin_layout Enumerate
20829
20830 \size small
20831 Use 
20832 \family typewriter
20833
20834 \begin_inset Quotes eld
20835 \end_inset
20836
20837
20838 \family default
20839  to begin quotation, not 
20840 \family typewriter
20841 '
20842 \family default
20843 .
20844 \end_layout
20845
20846 \begin_layout Enumerate
20847
20848 \size small
20849 Use 
20850 \family typewriter
20851 '
20852 \family default
20853  to end quotation, not 
20854 \family typewriter
20855
20856 \begin_inset Quotes eld
20857 \end_inset
20858
20859
20860 \family default
20861 .
20862 \end_layout
20863
20864 \begin_layout Enumerate
20865
20866 \size small
20867 Don't mix quotes.
20868 \end_layout
20869
20870 \begin_layout Enumerate
20871
20872 \size small
20873 You should perhaps use 
20874 \begin_inset Quotes eld
20875 \end_inset
20876
20877
20878 \family typewriter
20879 cmd
20880 \family default
20881
20882 \begin_inset Quotes erd
20883 \end_inset
20884
20885  instead.
20886 \end_layout
20887
20888 \begin_layout Enumerate
20889
20890 \size small
20891 You should put a space in front of/after parenthesis.
20892 \end_layout
20893
20894 \begin_layout Enumerate
20895
20896 \size small
20897 You should avoid spaces in front of/after parenthesis.
20898 \end_layout
20899
20900 \begin_layout Enumerate
20901
20902 \size small
20903 \emph on
20904 You should not use punctuation in front of/after quotes.
20905 \end_layout
20906
20907 \begin_layout Enumerate
20908
20909 \size small
20910 Double space found.
20911 \end_layout
20912
20913 \begin_layout Enumerate
20914
20915 \size small
20916 You should put punctuation outside inner/inside display math mode.
20917 \end_layout
20918
20919 \begin_layout Enumerate
20920
20921 \size small
20922 You ought to not use primitive \SpecialChar TeX
20923  in \SpecialChar LaTeX
20924  code.
20925 \end_layout
20926
20927 \begin_layout Enumerate
20928
20929 \size small
20930 You should remove spaces in front of 
20931 \begin_inset Quotes eld
20932 \end_inset
20933
20934
20935 \family typewriter
20936 %s
20937 \family default
20938
20939 \begin_inset Quotes erd
20940 \end_inset
20941
20942
20943 \end_layout
20944
20945 \begin_layout Enumerate
20946
20947 \size small
20948 \begin_inset Quotes eld
20949 \end_inset
20950
20951
20952 \family typewriter
20953 %s
20954 \family default
20955
20956 \begin_inset Quotes erd
20957 \end_inset
20958
20959  is normally not followed by 
20960 \begin_inset Quotes eld
20961 \end_inset
20962
20963
20964 \family typewriter
20965 %c
20966 \family default
20967
20968 \begin_inset Quotes erd
20969 \end_inset
20970
20971 .
20972 \end_layout
20973
20974 \begin_layout Standard
20975 In later versions of \SpecialChar LyX
20976 , we hope to provide a more complete interface to this
20977  tool (and it's smaller cousin 
20978 \family typewriter
20979 lacheck
20980 \family default
20981 ) to exploit the full power of it.
20982  But it's not exactly useless as it is now: go try it on one of your existing
20983  documents of a certain length and be surprised.
20984 \end_layout
20985
20986 \begin_layout Section
20987 Version Control in \SpecialChar LyX
20988
20989 \end_layout
20990
20991 \begin_layout Standard
20992 by
20993 \noun on
20994  Lars Gullik Bjønnes 
20995 \noun default
20996 and 
20997 \noun on
20998 Pavel Sanda
20999 \end_layout
21000
21001 \begin_layout Subsection
21002 Introduction
21003 \end_layout
21004
21005 \begin_layout Standard
21006 \SpecialChar LyX
21007  supports some of the most basic RCS/CVS/SVN/GIT commands.
21008  If you need something a bit more sophisticated you will have to do that
21009  manually in a terminal.
21010 \end_layout
21011
21012 \begin_layout Standard
21013 Also note that CVS support is not as good as subversion support
21014 \change_inserted -712698321 1501253107
21015 ,
21016 \change_unchanged
21017  so we advise using SVN instead.
21018  A good place to start learning Subversion is
21019 \change_inserted -712698321 1501253115
21020  the
21021 \change_unchanged
21022  SVN Book
21023 \begin_inset Foot
21024 status collapsed
21025
21026 \begin_layout Plain Layout
21027 \begin_inset CommandInset href
21028 LatexCommand href
21029 target "http://svnbook.red-bean.com/"
21030 literal "false"
21031
21032 \end_inset
21033
21034
21035 \end_layout
21036
21037 \end_inset
21038
21039 .
21040  In the case of RCS you should read 
21041 \begin_inset Quotes eld
21042 \end_inset
21043
21044 rcsintro
21045 \begin_inset Quotes erd
21046 \end_inset
21047
21048  (a man file, read it with 
21049 \family typewriter
21050 man rcsintro
21051 \family default
21052 ).
21053  This file describes all the basic features of RCS.
21054  You should especially notice the comment about a RCS directory, and the
21055  notion of a master RCS file (the file ending in 
21056 \family typewriter
21057 ,v
21058 \family default
21059 ).
21060 \end_layout
21061
21062 \begin_layout Standard
21063 Before you begin to use the version control features in \SpecialChar LyX
21064 , you should be
21065  familiar with RCS/CVS/SVN/GIT usage.
21066  The implementation in \SpecialChar LyX
21067  assumes a recent version of the GNU RCS or CVS/SVN
21068  package — no guarantees are made for older versions.
21069  Most of the log messages are not currently displayed after operations —
21070  you can check them in the Messages pane if 
21071 \change_inserted -712698321 1501253142
21072 you are 
21073 \change_unchanged
21074 unsure.
21075  Regular users of version control will appreciate 
21076 \change_inserted -712698321 1501253149
21077 the 
21078 \change_unchanged
21079 VC toolbar, which can be enabled via 
21080 \family sans
21081 View\SpecialChar menuseparator
21082 Toolbars\SpecialChar menuseparator
21083 Version
21084 \begin_inset space ~
21085 \end_inset
21086
21087 Control
21088 \family default
21089 .
21090 \end_layout
21091
21092 \begin_layout Standard
21093 For introducing your own external commands consult 
21094 \change_deleted -712698321 1501253161
21095 vc-command
21096 \change_inserted -712698321 1501253161
21097
21098 \begin_inset Flex Code
21099 status collapsed
21100
21101 \begin_layout Plain Layout
21102
21103 \change_inserted -712698321 1501253161
21104 vc-command
21105 \change_unchanged
21106
21107 \end_layout
21108
21109 \end_inset
21110
21111
21112 \change_unchanged
21113  in the manual 
21114 \change_deleted -712698321 1501253168
21115 of 
21116 \change_unchanged
21117
21118 \emph on
21119 \SpecialChar LyX
21120  
21121 \change_inserted -712698321 1501253174
21122 F
21123 \change_deleted -712698321 1501253173
21124 f
21125 \change_unchanged
21126 unctions
21127 \emph default
21128 .
21129 \end_layout
21130
21131 \begin_layout Standard
21132 It is strongly recommended to store documents in uncompressed format if
21133  using version control (uncheck 
21134 \family sans
21135 Document\SpecialChar menuseparator
21136 Compressed
21137 \family default
21138  if it is checked): Uncompressed LyX documents are text files and therefore
21139  for merging two different versions by version control systems.
21140  Compressed LyX documents are binary files, which cannot be merged by version
21141  control systems.
21142 \end_layout
21143
21144 \begin_layout Subsection
21145 RCS commands in \SpecialChar LyX
21146
21147 \end_layout
21148
21149 \begin_layout Standard
21150 The following sections describe the RCS commands supported by \SpecialChar LyX
21151 .
21152  You can find them in the 
21153 \family sans
21154 File\SpecialChar menuseparator
21155 Version
21156 \begin_inset space ~
21157 \end_inset
21158
21159 Control
21160 \family default
21161  submenu.
21162  \SpecialChar LyX
21163  was tested against RCS 5.7/5.8.
21164 \end_layout
21165
21166 \begin_layout Subsubsection
21167
21168 \family sans
21169 Register
21170 \end_layout
21171
21172 \begin_layout Standard
21173 If your document is not under revision control, this is the only item shown
21174  in the menu.
21175  And if it is under revision control, the 
21176 \family sans
21177 Register
21178 \family default
21179  item is not visible.
21180  
21181 \end_layout
21182
21183 \begin_layout Standard
21184 This command registers your document with RCS (unless you are under the
21185  directory managed by CVS)\SpecialChar endofsentence
21186  You are asked interactively to supply an initial
21187  description of the document.
21188  The document is now set in Read-Only mode and you have to 
21189 \family sans
21190 Check
21191 \begin_inset space ~
21192 \end_inset
21193
21194 Out
21195 \begin_inset space ~
21196 \end_inset
21197
21198 For
21199 \begin_inset space ~
21200 \end_inset
21201
21202 Edit
21203 \family default
21204 , before making any changes to it.
21205  A document under revision control has a 
21206 \begin_inset Quotes eld
21207 \end_inset
21208
21209 [RCS:<version> <locker>]
21210 \begin_inset Quotes erd
21211 \end_inset
21212
21213  item tagged to the filename in the minibuffer.
21214 \end_layout
21215
21216 \begin_layout Standard
21217 RCS command that is run:
21218 \change_inserted -712698321 1501253193
21219
21220 \end_layout
21221
21222 \begin_layout LyX-Code
21223
21224 \change_deleted -712698321 1501253193
21225  
21226 \change_unchanged
21227
21228 \family typewriter
21229 ci -q -u -i -t-"<initial description>" <file-name>
21230 \end_layout
21231
21232 \begin_layout Standard
21233 Read 
21234 \family typewriter
21235 man ci
21236 \family default
21237  to understand the switches.
21238  
21239 \end_layout
21240
21241 \begin_layout Subsubsection
21242
21243 \family sans
21244 Check In Changes
21245 \end_layout
21246
21247 \begin_layout Standard
21248 When you are finished editing a file, you check in your changes.
21249  When you do this, you are asked for a description of the changes.
21250  This is stored in the history log.
21251  The version number is bumped, your changes are applied to the master RCS
21252  file, the document is unlocked and set to Read-Only mode.
21253 \end_layout
21254
21255 \begin_layout Itemize
21256 RCS command: 
21257 \family typewriter
21258 ci -q -u -m"<description>" <file-name>
21259 \end_layout
21260
21261 \begin_layout Subsubsection
21262
21263 \family sans
21264 Check Out For Edit
21265 \end_layout
21266
21267 \begin_layout Standard
21268 By doing this you lock the document so that only you can edit it.
21269  This will also make the document Read-Write only for you.
21270  You will usually continue editing for a while and when you are finished
21271  you check in your changes.
21272  The status line is changed to reflect that you have locked the file.
21273 \end_layout
21274
21275 \begin_layout Itemize
21276 RCS command: 
21277 \family typewriter
21278 co -q -l <file-name>
21279 \end_layout
21280
21281 \begin_layout Subsubsection
21282
21283 \family sans
21284 Revert To Repository Version
21285 \end_layout
21286
21287 \begin_layout Standard
21288 This will discard all changes made to the document since the last check
21289  in.
21290  You get a warning before changes are discarded.
21291 \end_layout
21292
21293 \begin_layout Itemize
21294 RCS command: 
21295 \family typewriter
21296 co -f -u<version> <file-name>
21297 \end_layout
21298
21299 \begin_layout Subsubsection
21300
21301 \family sans
21302 Copy
21303 \end_layout
21304
21305 \begin_layout Standard
21306 This will create a copy of the current document.
21307  Since RCS does not support copy operations natively, the version history
21308  is not preserved, and the copy is added as a new file.
21309  It requires a clean document without any changes since the last checkin.
21310  You are asked for a file name and a description of the copy operation.
21311  After that the copy is created, both locally and in the repository.
21312  If the parent directories of the copied and original document differ, all
21313  relative paths of included files of the copy are adjusted (like in 
21314 \family sans
21315 File\SpecialChar menuseparator
21316 Save As
21317 \family default
21318 \SpecialChar ldots
21319 ).
21320  Finally, the copy is loaded instead of the original document.
21321 \end_layout
21322
21323 \begin_layout Labeling
21324 \labelwidthstring 00.00.0000
21325 RCS
21326 \begin_inset space ~
21327 \end_inset
21328
21329 commands: 
21330 \begin_inset space ~
21331 \end_inset
21332
21333
21334 \begin_inset Newline newline
21335 \end_inset
21336
21337 Copy 
21338 \begin_inset Flex Code
21339 status collapsed
21340
21341 \begin_layout Plain Layout
21342
21343 \change_deleted -712698321 1501253225
21344
21345 \family typewriter
21346 \begin_inset Quotes eld
21347 \end_inset
21348
21349
21350 \change_inserted -712698321 1501253225
21351
21352 \begin_inset Quotes qld
21353 \end_inset
21354
21355
21356 \change_unchanged
21357 <file-name>
21358 \change_deleted -712698321 1501253231
21359
21360 \begin_inset Quotes erd
21361 \end_inset
21362
21363
21364 \change_inserted -712698321 1501253231
21365
21366 \begin_inset Quotes qld
21367 \end_inset
21368
21369
21370 \change_unchanged
21371
21372 \end_layout
21373
21374 \end_inset
21375
21376  to 
21377 \begin_inset Flex Code
21378 status collapsed
21379
21380 \begin_layout Plain Layout
21381
21382 \change_deleted -712698321 1501253233
21383
21384 \family typewriter
21385 \begin_inset Quotes eld
21386 \end_inset
21387
21388
21389 \change_inserted -712698321 1501253233
21390
21391 \begin_inset Quotes qld
21392 \end_inset
21393
21394
21395 \change_unchanged
21396 <new-file-name>
21397 \change_deleted -712698321 1501253234
21398
21399 \begin_inset Quotes erd
21400 \end_inset
21401
21402
21403 \change_inserted -712698321 1501253235
21404
21405 \begin_inset Quotes qld
21406 \end_inset
21407
21408
21409 \change_unchanged
21410
21411 \end_layout
21412
21413 \end_inset
21414
21415
21416 \begin_inset Newline newline
21417 \end_inset
21418
21419
21420 \begin_inset Flex Code
21421 status collapsed
21422
21423 \begin_layout Plain Layout
21424 ci -q -u 
21425 \family typewriter
21426 -i 
21427 \change_deleted -712698321 1501253236
21428
21429 \begin_inset Quotes eld
21430 \end_inset
21431
21432
21433 \change_inserted -712698321 1501253236
21434
21435 \begin_inset Quotes qld
21436 \end_inset
21437
21438
21439 \change_unchanged
21440 <new-file-name>
21441 \change_deleted -712698321 1501253239
21442
21443 \begin_inset Quotes erd
21444 \end_inset
21445
21446
21447 \change_inserted -712698321 1501253239
21448
21449 \begin_inset Quotes qld
21450 \end_inset
21451
21452
21453 \change_unchanged
21454
21455 \end_layout
21456
21457 \end_inset
21458
21459
21460 \end_layout
21461
21462 \begin_layout Subsubsection
21463
21464 \family sans
21465 Undo Last Checkin
21466 \end_layout
21467
21468 \begin_layout Standard
21469 This makes as if the last check in never happened.
21470  No changes are made to the document loaded into \SpecialChar LyX
21471 , but the last version
21472  is removed from the master RCS file.
21473 \end_layout
21474
21475 \begin_layout Itemize
21476 RCS command: 
21477 \family typewriter
21478 rcs -o<version> <file-name>
21479 \end_layout
21480
21481 \begin_layout Subsubsection
21482
21483 \family sans
21484 Show History
21485 \end_layout
21486
21487 \begin_layout Standard
21488 This shows the complete history of the RCS document.
21489  The output of 
21490 \family typewriter
21491 rlog <file-name>
21492 \family default
21493  is shown in a browser.
21494  See 
21495 \family typewriter
21496 man rlog
21497 \family default
21498  for more info.
21499 \end_layout
21500
21501 \begin_layout Subsubsection
21502 Revision info
21503 \end_layout
21504
21505 \begin_layout Standard
21506 \SpecialChar LyX
21507  supports RCS version number, author name, date and time of last commit.
21508  All those are extracted from 
21509 \family typewriter
21510 rlog -r <file-name>
21511 \family default
21512 .
21513  See 
21514 \begin_inset CommandInset ref
21515 LatexCommand ref
21516 reference "subsec:VCS-Revision-Information"
21517
21518 \end_inset
21519
21520  for details.
21521 \end_layout
21522
21523 \begin_layout Subsection
21524 CVS commands in \SpecialChar LyX
21525
21526 \end_layout
21527
21528 \begin_layout Standard
21529 A subset of CVS operations is supported by \SpecialChar LyX
21530 .
21531  You can find the commands in the 
21532 \family sans
21533 File\SpecialChar menuseparator
21534 Version
21535 \begin_inset space ~
21536 \end_inset
21537
21538 Control
21539 \family default
21540  submenu.
21541  The version control system SVN is more powerful, so please use it instead
21542  of CVS if possible.
21543 \end_layout
21544
21545 \begin_layout Subsubsection
21546
21547 \family sans
21548 General CVS usage
21549 \end_layout
21550
21551 \begin_layout Standard
21552 If you start from scratch with CVS you have to create your repository and
21553  checkout the working copy with external tools.
21554  If you're using a client-server setup you may need to login before doing
21555  the first repository checkout.
21556 \end_layout
21557
21558 \begin_layout Standard
21559 If your documents are under revision control and others are using the same
21560  repository problems arise when different changes to the same document at
21561  the same location happen.
21562  Standard CVS repositories don't operate with a file locking mechanism.
21563  This may be surprising, but conflicts only occur if people disagree on
21564  the proper content of the same part of a document.
21565  So, if co-workers are used to communicate regularly, these conflicts occur
21566  rarely.
21567  If they don't communicate they have a fundamental problem anyway.
21568  Nevertheless some people like to work with so called 
21569 \begin_inset Quotes eld
21570 \end_inset
21571
21572 reserved checkouts
21573 \begin_inset Quotes erd
21574 \end_inset
21575
21576 .
21577  If they do so the working copy of all files is readonly when checked out
21578  first and the user starts editing after using a special command to make
21579  the working copy writable.
21580  When the changes are checked in the working copy returns to readonly state.
21581  With \SpecialChar LyX
21582  one has to edit the 
21583 \begin_inset Flex Code
21584 status collapsed
21585
21586 \begin_layout Plain Layout
21587 .cvsrc
21588 \end_layout
21589
21590 \end_inset
21591
21592  file and add the line 
21593 \begin_inset Flex Code
21594 status collapsed
21595
21596 \begin_layout Plain Layout
21597 cvs -r
21598 \end_layout
21599
21600 \end_inset
21601
21602  to work with reserved checkouts.
21603  The benefit is the possibility to see who is using a writable copy of some
21604  document.
21605  It's not guaranteed only one user makes a copy writable.
21606 \end_layout
21607
21608 \begin_layout Standard
21609 \SpecialChar LyX
21610  tries to guess if you're using reserved or non-reserved checkouts.
21611  If your working copy is readonly or it is writable and an additional copy
21612  of your document exists in the CVS/Base sub-directory a reserved otherwise
21613  a non-reserved checkout is assumed.
21614  When a reserved checkout is detected you have to use 
21615 \begin_inset Flex Noun
21616 status collapsed
21617
21618 \begin_layout Plain Layout
21619 Check Out
21620 \end_layout
21621
21622 \end_inset
21623
21624  to make your working copy writable if it's readonly.
21625  After doing so the 
21626 \begin_inset Flex Noun
21627 status collapsed
21628
21629 \begin_layout Plain Layout
21630 Check In
21631 \end_layout
21632
21633 \end_inset
21634
21635  operation is possible and that makes your working copy readonly again after
21636  transferring your changes to the repository.
21637 \end_layout
21638
21639 \begin_layout Standard
21640 More information about CVS can be found here 
21641 \begin_inset Flex URL
21642 status collapsed
21643
21644 \begin_layout Plain Layout
21645
21646 http://www.nongnu.org/cvs
21647 \end_layout
21648
21649 \end_inset
21650
21651  and here 
21652 \begin_inset Flex URL
21653 status collapsed
21654
21655 \begin_layout Plain Layout
21656
21657 http://ximbiot.com/cvs
21658 \end_layout
21659
21660 \end_inset
21661
21662 .
21663 \end_layout
21664
21665 \begin_layout Standard
21666 Read 
21667 \family typewriter
21668 man cvs
21669 \family default
21670  to understand the sub-commands and the switches mentioned below.
21671 \end_layout
21672
21673 \begin_layout Subsubsection
21674
21675 \family sans
21676 Register
21677 \end_layout
21678
21679 \begin_layout Standard
21680 If your document is not under revision control, this is the only item shown
21681  in the menu.
21682  And if it is under revision control, the 
21683 \family sans
21684 Register
21685 \family default
21686  item is not visible.
21687  
21688 \end_layout
21689
21690 \begin_layout Standard
21691 This command registers in CVS your document 
21692 \begin_inset Flex Strong
21693 status collapsed
21694
21695 \begin_layout Plain Layout
21696
21697 \emph on
21698 only
21699 \end_layout
21700
21701 \end_inset
21702
21703  in the case you have already the documents directory under CVS control
21704  (in particular 
21705 \family typewriter
21706 CVS/Entries
21707 \family default
21708  file exists).
21709  This means you have to create or checkout the archive by yourself using
21710  external tools.
21711  (In case you forget that step \SpecialChar LyX
21712  registers the document with RCS.)
21713 \end_layout
21714
21715 \begin_layout Standard
21716 Then you are asked interactively to supply an initial description of the
21717  document.
21718  Don't forget that registered file is not yet checked in.
21719 \end_layout
21720
21721 \begin_layout Standard
21722 CVS command that is run: 
21723 \family typewriter
21724 cvs -q add -m"<entered message>" "<file-name>"
21725 \end_layout
21726
21727 \begin_layout Standard
21728 The term 
21729 \family typewriter
21730 "<file-name>"
21731 \family default
21732  above and for all other CVS commands is an abbreviation for 
21733 \begin_inset Quotes eld
21734 \end_inset
21735
21736 change the current working directory to file location and use the file name
21737  without path component as argument
21738 \begin_inset Quotes erd
21739 \end_inset
21740
21741 .
21742 \end_layout
21743
21744 \begin_layout Subsubsection
21745
21746 \family sans
21747 Check In Changes
21748 \end_layout
21749
21750 \begin_layout Standard
21751 When you are finished editing a file, you commit your changes.
21752  When you do this and you had changed the document, you are asked for a
21753  description of the changes.
21754  After that changes are written to the repository.
21755  In case you didn't change the document and a reserved checkout is detected
21756  the reservation made on 
21757 \begin_inset Flex Noun
21758 status collapsed
21759
21760 \begin_layout Plain Layout
21761 Check Out
21762 \end_layout
21763
21764 \end_inset
21765
21766  is undone.
21767 \end_layout
21768
21769 \begin_layout Labeling
21770 \labelwidthstring 00.00.0000
21771 CVS
21772 \begin_inset space ~
21773 \end_inset
21774
21775 command: 
21776 \begin_inset space ~
21777 \end_inset
21778
21779
21780 \begin_inset Newline newline
21781 \end_inset
21782
21783
21784 \begin_inset Flex Code
21785 status collapsed
21786
21787 \begin_layout Plain Layout
21788 cvs 
21789 \family typewriter
21790 -q commit -m"<description>" "<file-name>"
21791 \end_layout
21792
21793 \end_inset
21794
21795  or
21796 \begin_inset Newline newline
21797 \end_inset
21798
21799
21800 \begin_inset Flex Code
21801 status collapsed
21802
21803 \begin_layout Plain Layout
21804 cvs -q unedit 
21805 \family typewriter
21806 "<file-name>"
21807 \end_layout
21808
21809 \end_inset
21810
21811
21812 \end_layout
21813
21814 \begin_layout Subsubsection
21815
21816 \family sans
21817 Check Out Changes
21818 \end_layout
21819
21820 \begin_layout Standard
21821 When you are sharing a repository with others, you may have to incorporate
21822  their changes into your working copy.
21823 \end_layout
21824
21825 \begin_layout Standard
21826 CVS command: 
21827 \family typewriter
21828 cvs -q update "<file-name>"
21829 \end_layout
21830
21831 \begin_layout Standard
21832 If a readonly checkout is detected the working copy is made writable and
21833  reserved.
21834 \end_layout
21835
21836 \begin_layout Standard
21837 CVS command: 
21838 \family typewriter
21839 cvs -q edit "<file-name>"
21840 \end_layout
21841
21842 \begin_layout Subsubsection
21843
21844 \family sans
21845 Revert To Repository Version
21846 \end_layout
21847
21848 \begin_layout Standard
21849 This will discard all changes made to the document since the last check
21850  in.
21851  You get a warning before changes are discarded.
21852  Firstly the file is deleted, secondly CVS update command is run.
21853 \end_layout
21854
21855 \begin_layout Standard
21856 CVS command: 
21857 \family typewriter
21858 cvs -q update "<file-name>"
21859 \end_layout
21860
21861 \begin_layout Standard
21862 If a reserved checkout is detected and the working copy has no changes only
21863  the reservation is undone.
21864 \end_layout
21865
21866 \begin_layout Standard
21867 CVS command: 
21868 \family typewriter
21869 cvs -q unedit "<file-name>"
21870 \end_layout
21871
21872 \begin_layout Subsubsection
21873
21874 \family sans
21875 Copy
21876 \end_layout
21877
21878 \begin_layout Standard
21879 This will create a copy of the current document.
21880  Since CVS does not support copy operations natively, the version history
21881  is not preserved, and the copy is added as a new file.
21882  It requires a clean document without any changes since the last checkin.
21883  You are asked for a file name and a description of the copy operation.
21884  After that the copy is created, both locally and in the repository.
21885  If the parent directories of the copied and original document differ, all
21886  relative paths of included files of the copy are adjusted (like in 
21887 \family sans
21888 File\SpecialChar menuseparator
21889 Save As
21890 \family default
21891 \SpecialChar ldots
21892 ).
21893  Finally, the copy is loaded instead of the original document.
21894 \end_layout
21895
21896 \begin_layout Labeling
21897 \labelwidthstring 00.00.0000
21898 CVS
21899 \begin_inset space ~
21900 \end_inset
21901
21902 commands: 
21903 \begin_inset space ~
21904 \end_inset
21905
21906
21907 \begin_inset Newline newline
21908 \end_inset
21909
21910 Copy 
21911 \begin_inset Flex Code
21912 status collapsed
21913
21914 \begin_layout Plain Layout
21915
21916 \change_deleted -712698321 1501254263
21917
21918 \family typewriter
21919 \begin_inset Quotes eld
21920 \end_inset
21921
21922
21923 \change_inserted -712698321 1501254263
21924
21925 \lang ngerman
21926 "
21927 \change_unchanged
21928
21929 \lang english
21930 <file-name>
21931 \change_deleted -712698321 1501254266
21932
21933 \begin_inset Quotes erd
21934 \end_inset
21935
21936
21937 \change_inserted -712698321 1501254266
21938
21939 \lang ngerman
21940 "
21941 \change_unchanged
21942
21943 \end_layout
21944
21945 \end_inset
21946
21947  to 
21948 \begin_inset Flex Code
21949 status collapsed
21950
21951 \begin_layout Plain Layout
21952
21953 \change_deleted -712698321 1501254267
21954
21955 \family typewriter
21956 \begin_inset Quotes eld
21957 \end_inset
21958
21959
21960 \change_inserted -712698321 1501254267
21961
21962 \lang ngerman
21963 "
21964 \change_unchanged
21965
21966 \lang english
21967 <new-file-name>
21968 \change_deleted -712698321 1501254269
21969
21970 \begin_inset Quotes erd
21971 \end_inset
21972
21973
21974 \change_inserted -712698321 1501254269
21975
21976 \lang ngerman
21977 "
21978 \change_unchanged
21979
21980 \end_layout
21981
21982 \end_inset
21983
21984
21985 \begin_inset Newline newline
21986 \end_inset
21987
21988
21989 \begin_inset Flex Code
21990 status collapsed
21991
21992 \begin_layout Plain Layout
21993 cvs -q add 
21994 \change_deleted -712698321 1501254271
21995
21996 \family typewriter
21997
21998 \begin_inset Quotes eld
21999 \end_inset
22000
22001
22002 \change_inserted -712698321 1501254271
22003
22004 \lang ngerman
22005 "
22006 \change_unchanged
22007
22008 \lang english
22009 <new-file-name>
22010 \change_deleted -712698321 1501254272
22011
22012 \begin_inset Quotes erd
22013 \end_inset
22014
22015
22016 \change_inserted -712698321 1501254272
22017
22018 \lang ngerman
22019 "
22020 \change_unchanged
22021
22022 \end_layout
22023
22024 \end_inset
22025
22026
22027 \end_layout
22028
22029 \begin_layout Subsubsection
22030
22031 \family sans
22032 Rename
22033 \end_layout
22034
22035 \begin_layout Standard
22036 This will rename the current document.
22037  Since CVS does not support rename operations natively, the version history
22038  is not preserved, the renamed document is added as a new file, and the
22039  original document is deleted.
22040  It requires a clean document without any changes since the last checkin.
22041  You are asked for a file name and a description of the rename operation.
22042  After that the document is renamed, both locally and in the repository.
22043  If the parent directories of the new and old file names differ, all relative
22044  paths of included files are adjusted (like in 
22045 \family sans
22046 File\SpecialChar menuseparator
22047 Save As
22048 \family default
22049 \SpecialChar ldots
22050 ).
22051  Finally, the document is reloaded using the new name.
22052 \end_layout
22053
22054 \begin_layout Labeling
22055 \labelwidthstring 00.00.0000
22056 CVS
22057 \begin_inset space ~
22058 \end_inset
22059
22060 commands: 
22061 \begin_inset space ~
22062 \end_inset
22063
22064
22065 \begin_inset Newline newline
22066 \end_inset
22067
22068 Rename 
22069 \begin_inset Flex Code
22070 status collapsed
22071
22072 \begin_layout Plain Layout
22073
22074 \change_deleted -712698321 1501254274
22075
22076 \family typewriter
22077 \begin_inset Quotes eld
22078 \end_inset
22079
22080
22081 \change_inserted -712698321 1501254274
22082
22083 \lang ngerman
22084 "
22085 \change_unchanged
22086
22087 \lang english
22088 <file-name>
22089 \change_deleted -712698321 1501254277
22090
22091 \begin_inset Quotes erd
22092 \end_inset
22093
22094
22095 \change_inserted -712698321 1501254277
22096
22097 \lang ngerman
22098 "
22099 \change_unchanged
22100
22101 \end_layout
22102
22103 \end_inset
22104
22105  to 
22106 \begin_inset Flex Code
22107 status collapsed
22108
22109 \begin_layout Plain Layout
22110
22111 \change_deleted -712698321 1501254278
22112
22113 \family typewriter
22114 \begin_inset Quotes eld
22115 \end_inset
22116
22117
22118 \change_inserted -712698321 1501254278
22119
22120 \lang ngerman
22121 "
22122 \change_unchanged
22123
22124 \lang english
22125 <new-file-name>
22126 \change_deleted -712698321 1501254279
22127
22128 \begin_inset Quotes erd
22129 \end_inset
22130
22131
22132 \change_inserted -712698321 1501254279
22133
22134 \lang ngerman
22135 "
22136 \change_unchanged
22137
22138 \end_layout
22139
22140 \end_inset
22141
22142
22143 \begin_inset Newline newline
22144 \end_inset
22145
22146
22147 \begin_inset Flex Code
22148 status collapsed
22149
22150 \begin_layout Plain Layout
22151 cvs -q add 
22152 \change_deleted -712698321 1501254281
22153
22154 \family typewriter
22155
22156 \begin_inset Quotes eld
22157 \end_inset
22158
22159
22160 \change_inserted -712698321 1501254281
22161
22162 \lang ngerman
22163 "
22164 \change_unchanged
22165
22166 \lang english
22167 <new-file-name>
22168 \change_deleted -712698321 1501254282
22169
22170 \begin_inset Quotes erd
22171 \end_inset
22172
22173
22174 \change_inserted -712698321 1501254282
22175
22176 \lang ngerman
22177 "
22178 \change_unchanged
22179
22180 \end_layout
22181
22182 \end_inset
22183
22184
22185 \begin_inset Newline newline
22186 \end_inset
22187
22188
22189 \begin_inset Flex Code
22190 status collapsed
22191
22192 \begin_layout Plain Layout
22193 cvs -q remove 
22194 \change_deleted -712698321 1501254285
22195
22196 \family typewriter
22197
22198 \begin_inset Quotes eld
22199 \end_inset
22200
22201
22202 \change_inserted -712698321 1501254285
22203
22204 \lang ngerman
22205 "
22206 \change_unchanged
22207
22208 \lang english
22209 <file-name>
22210 \change_deleted -712698321 1501254287
22211
22212 \begin_inset Quotes erd
22213 \end_inset
22214
22215
22216 \change_inserted -712698321 1501254287
22217
22218 \lang ngerman
22219 "
22220 \change_unchanged
22221
22222 \end_layout
22223
22224 \end_inset
22225
22226
22227 \end_layout
22228
22229 \begin_layout Subsubsection
22230 Update of the local directory checkout from repository
22231 \end_layout
22232
22233 \begin_layout Standard
22234 Once your documents gets more complex, containing sub-documents and pictures,
22235  including external 
22236 \begin_inset Flex Code
22237 status collapsed
22238
22239 \begin_layout Plain Layout
22240 .tex
22241 \end_layout
22242
22243 \end_inset
22244
22245  files and so on using version control becomes more complicated.
22246  \SpecialChar LyX
22247  supports updating the whole tree in which resides the document.
22248  This become especially useful once you cooperate with people which neither
22249  have detailed knowledge about CVS usage nor they have ambition to commit
22250  additional material to the repository.
22251  You have to organize the files structure so that all external files are
22252  in the same directory or subdirectories of the document.
22253  It's good practice anyway to store multipart documents in an extra directory.
22254 \end_layout
22255
22256 \begin_layout Standard
22257 The 
22258 \begin_inset Flex Code
22259 status collapsed
22260
22261 \begin_layout Plain Layout
22262 Update local directory from repository
22263 \end_layout
22264
22265 \end_inset
22266
22267  command updates the whole directory.
22268  If local changes are detected user is warned before update starts.
22269  In case of merge conflicts both versions of the conflicting document parts
22270  are placed in the final document.
22271  You have to review and correct the result of the merge.
22272  You'll find the conflicts enclosed in pairs of 
22273 \begin_inset Flex Code
22274 status collapsed
22275
22276 \begin_layout Plain Layout
22277 <<<<<<<
22278 \end_layout
22279
22280 \end_inset
22281
22282  and 
22283 \begin_inset Flex Code
22284 status collapsed
22285
22286 \begin_layout Plain Layout
22287 >>>>>>>
22288 \end_layout
22289
22290 \end_inset
22291
22292  separated by 
22293 \begin_inset Flex Code
22294 status collapsed
22295
22296 \begin_layout Plain Layout
22297 =======
22298 \end_layout
22299
22300 \end_inset
22301
22302 .
22303  The first part is your version as before the update operation with the
22304  document name prepended.
22305  The second one is the repository version with the version number after
22306  the sequence of 
22307 \begin_inset Flex Code
22308 status collapsed
22309
22310 \begin_layout Plain Layout
22311 >
22312 \end_layout
22313
22314 \end_inset
22315
22316  signs.
22317 \end_layout
22318
22319 \begin_layout Labeling
22320 \labelwidthstring 00.00.0000
22321 CVS
22322 \begin_inset space ~
22323 \end_inset
22324
22325 commands: 
22326 \begin_inset space ~
22327 \end_inset
22328
22329
22330 \begin_inset Newline newline
22331 \end_inset
22332
22333
22334 \begin_inset Flex Code
22335 status collapsed
22336
22337 \begin_layout Plain Layout
22338 cd $path; cvs diff 
22339 \family typewriter
22340 "."
22341 \end_layout
22342
22343 \end_inset
22344
22345  (Ask if changes are detected.)
22346 \begin_inset Newline newline
22347 \end_inset
22348
22349
22350 \begin_inset Flex Code
22351 status collapsed
22352
22353 \begin_layout Plain Layout
22354 cd $path; cvs -q update 
22355 \family typewriter
22356 "."
22357 \end_layout
22358
22359 \end_inset
22360
22361
22362 \end_layout
22363
22364 \begin_layout Standard
22365 where 
22366 \begin_inset Flex Code
22367 status collapsed
22368
22369 \begin_layout Plain Layout
22370 $path
22371 \end_layout
22372
22373 \end_inset
22374
22375  stands for the path to the document.
22376 \end_layout
22377
22378 \begin_layout Subsubsection
22379
22380 \family sans
22381 Show History
22382 \end_layout
22383
22384 \begin_layout Standard
22385 This shows the complete history of the CVS document.
22386  The output of 
22387 \family typewriter
22388 cvs log "<file-name>"
22389 \family default
22390  is shown in a browser.
22391 \end_layout
22392
22393 \begin_layout Subsubsection
22394 Revision info
22395 \end_layout
22396
22397 \begin_layout Standard
22398 \SpecialChar LyX
22399  supports CVS version number, author name, date and time of last commit.
22400  All those are extracted from 
22401 \family typewriter
22402 cvs log -r <file-name>
22403 \family default
22404 .
22405  See 
22406 \begin_inset CommandInset ref
22407 LatexCommand ref
22408 reference "subsec:VCS-Revision-Information"
22409
22410 \end_inset
22411
22412  for details.
22413 \end_layout
22414
22415 \begin_layout Subsection
22416 SVN commands in \SpecialChar LyX
22417
22418 \end_layout
22419
22420 \begin_layout Standard
22421 SVN is now partially supported by \SpecialChar LyX
22422 .
22423  You can find the commands in the 
22424 \family sans
22425 File\SpecialChar menuseparator
22426 Version
22427 \begin_inset space ~
22428 \end_inset
22429
22430 Control
22431 \family default
22432  submenu.
22433  Please note that if you use password protected access to repository via
22434  ssh, you will be asked in terminal window.
22435  \SpecialChar LyX
22436  was tested against SVN 1.5, 1.6, 1.7 and 1.8
22437 \begin_inset Foot
22438 status collapsed
22439
22440 \begin_layout Plain Layout
22441 Most of the commands will work with 1.4 too, see 
22442 \begin_inset CommandInset ref
22443 LatexCommand ref
22444 reference "subsec:SVN-Repo-Update"
22445
22446 \end_inset
22447
22448 .
22449  There seems to be currently unresolved permissions problem under SVN 1.8
22450  with reverting changes when file is locked.
22451 \end_layout
22452
22453 \end_inset
22454
22455
22456 \end_layout
22457
22458 \begin_layout Subsubsection
22459
22460 \family sans
22461 Register
22462 \end_layout
22463
22464 \begin_layout Standard
22465 If your document is not under revision control, this is the only item shown
22466  in the menu.
22467  And if it is under revision control, the 
22468 \family sans
22469 Register
22470 \family default
22471  item is not visible.
22472 \end_layout
22473
22474 \begin_layout Standard
22475 This command registers in SVN your document ONLY in case you have already
22476  the documents directory under SVN control (in particular 
22477 \family typewriter
22478 .svn/entries
22479 \family default
22480  file exists).
22481  This means you have to checkout the archive by yourself.
22482 \end_layout
22483
22484 \begin_layout Standard
22485 Then you are asked interactively to supply an initial description of the
22486  document.
22487  Don't forget that registered file is not yet commited.
22488 \end_layout
22489
22490 \begin_layout Standard
22491 SVN command that is run: 
22492 \family typewriter
22493 svn add -q 
22494 \change_deleted -712698321 1501253346
22495
22496 \begin_inset Quotes eld
22497 \end_inset
22498
22499
22500 \change_inserted -712698321 1501253346
22501
22502 \begin_inset Quotes qld
22503 \end_inset
22504
22505
22506 \change_unchanged
22507 <file-name>
22508 \change_deleted -712698321 1501253348
22509
22510 \begin_inset Quotes erd
22511 \end_inset
22512
22513
22514 \change_inserted -712698321 1501253348
22515
22516 \begin_inset Quotes qld
22517 \end_inset
22518
22519
22520 \change_unchanged
22521
22522 \end_layout
22523
22524 \begin_layout Standard
22525 Read 
22526 \family typewriter
22527 man svn
22528 \family default
22529  to understand the switches.
22530 \end_layout
22531
22532 \begin_layout Subsubsection
22533
22534 \family sans
22535 Check In Changes
22536 \end_layout
22537
22538 \begin_layout Standard
22539 When you are finished editing a file, you commit your changes.
22540  When you do this, you are asked for a description of the changes.
22541  After that changes are commited.
22542 \end_layout
22543
22544 \begin_layout Standard
22545 SVN command:
22546 \begin_inset Foot
22547 status collapsed
22548
22549 \begin_layout Plain Layout
22550 In case locking is not enabled.
22551  See Section 
22552 \begin_inset CommandInset ref
22553 LatexCommand ref
22554 reference "subsec:SVN-File-Locking"
22555
22556 \end_inset
22557
22558 .
22559 \end_layout
22560
22561 \end_inset
22562
22563  
22564 \family typewriter
22565 svn commit -q -m"<description>" <file-name>
22566 \end_layout
22567
22568 \begin_layout Subsubsection
22569
22570 \family sans
22571 Check Out For Edit
22572 \end_layout
22573
22574 \begin_layout Standard
22575 Updates the changes of this file from the repository.
22576  Be sure you understand SVN merging and conflicts resolving before using
22577  this function, because all conflicts has to be resolved manually by you!
22578 \end_layout
22579
22580 \begin_layout Standard
22581 SVN command:
22582 \begin_inset Foot
22583 status collapsed
22584
22585 \begin_layout Plain Layout
22586 Ditto.
22587 \end_layout
22588
22589 \end_inset
22590
22591  
22592 \family typewriter
22593 svn update --non-interactive 
22594 \change_deleted -712698321 1501253354
22595
22596 \begin_inset Quotes eld
22597 \end_inset
22598
22599
22600 \change_inserted -712698321 1501253354
22601
22602 \begin_inset Quotes qld
22603 \end_inset
22604
22605
22606 \change_unchanged
22607 <file-name>
22608 \change_deleted -712698321 1501253356
22609
22610 \begin_inset Quotes erd
22611 \end_inset
22612
22613
22614 \change_inserted -712698321 1501253356
22615
22616 \begin_inset Quotes qld
22617 \end_inset
22618
22619
22620 \change_unchanged
22621
22622 \end_layout
22623
22624 \begin_layout Subsubsection
22625
22626 \family sans
22627 Revert To Repository Version
22628 \end_layout
22629
22630 \begin_layout Standard
22631 This will discard all changes made to the document since the last check
22632  in.
22633  You get a warning before changes are discarded.
22634 \end_layout
22635
22636 \begin_layout Standard
22637 SVN command: 
22638 \family typewriter
22639 svn revert -q 
22640 \change_deleted -712698321 1501253358
22641
22642 \begin_inset Quotes eld
22643 \end_inset
22644
22645
22646 \change_inserted -712698321 1501253358
22647
22648 \begin_inset Quotes qld
22649 \end_inset
22650
22651
22652 \change_unchanged
22653 <file-name>
22654 \change_deleted -712698321 1501253360
22655
22656 \begin_inset Quotes erd
22657 \end_inset
22658
22659
22660 \change_inserted -712698321 1501253360
22661
22662 \begin_inset Quotes qld
22663 \end_inset
22664
22665
22666 \change_unchanged
22667
22668 \end_layout
22669
22670 \begin_layout Subsubsection
22671
22672 \family sans
22673 Copy
22674 \end_layout
22675
22676 \begin_layout Standard
22677 This will create a copy of the current document including the version history.
22678  It requires a clean document without any changes since the last checkin.
22679  You are asked for a file name and a description of the copy operation.
22680  After that the copy is created, both locally and in the repository.
22681  If the parent directories of the copied and original document differ, all
22682  relative paths of included files of the copy are adjusted (like in 
22683 \family sans
22684 File\SpecialChar menuseparator
22685 Save As
22686 \family default
22687 \SpecialChar ldots
22688 ).
22689  Finally, the copy is loaded instead of the original document.
22690 \end_layout
22691
22692 \begin_layout Labeling
22693 \labelwidthstring 00.00.0000
22694 SVN
22695 \begin_inset space ~
22696 \end_inset
22697
22698 commands: 
22699 \begin_inset space ~
22700 \end_inset
22701
22702
22703 \begin_inset Newline newline
22704 \end_inset
22705
22706
22707 \begin_inset Flex Code
22708 status collapsed
22709
22710 \begin_layout Plain Layout
22711 svn copy -q 
22712 \change_deleted -712698321 1501253363
22713
22714 \family typewriter
22715
22716 \begin_inset Quotes eld
22717 \end_inset
22718
22719
22720 \change_inserted -712698321 1501253363
22721
22722 \begin_inset Quotes qld
22723 \end_inset
22724
22725
22726 \change_unchanged
22727 <file-name>
22728 \change_deleted -712698321 1501253365
22729
22730 \begin_inset Quotes erd
22731 \end_inset
22732
22733
22734 \change_inserted -712698321 1501253365
22735
22736 \begin_inset Quotes qld
22737 \end_inset
22738
22739
22740 \change_unchanged
22741  
22742 \change_deleted -712698321 1501253366
22743
22744 \begin_inset Quotes eld
22745 \end_inset
22746
22747
22748 \change_inserted -712698321 1501253366
22749
22750 \begin_inset Quotes qld
22751 \end_inset
22752
22753
22754 \change_unchanged
22755 <new-file-name>
22756 \change_deleted -712698321 1501253368
22757
22758 \begin_inset Quotes erd
22759 \end_inset
22760
22761
22762 \change_inserted -712698321 1501253368
22763
22764 \begin_inset Quotes qld
22765 \end_inset
22766
22767
22768 \change_unchanged
22769
22770 \end_layout
22771
22772 \end_inset
22773
22774
22775 \begin_inset Newline newline
22776 \end_inset
22777
22778
22779 \begin_inset Flex Code
22780 status collapsed
22781
22782 \begin_layout Plain Layout
22783 svn commit
22784 \end_layout
22785
22786 \end_inset
22787
22788
22789 \end_layout
22790
22791 \begin_layout Subsubsection
22792
22793 \family sans
22794 Rename
22795 \end_layout
22796
22797 \begin_layout Standard
22798 This will rename the current document including the version history.
22799  It requires a clean document without any changes since the last checkin.
22800  You are asked for a file name and a description of the rename operation.
22801  After that the document is renamed, both locally and in the repository.
22802  If the parent directories of the new and old file names differ, all relative
22803  paths of included files are adjusted (like in 
22804 \family sans
22805 File\SpecialChar menuseparator
22806 Save As
22807 \family default
22808 \SpecialChar ldots
22809 ).
22810  Finally, the document is reloaded using the new name.
22811 \end_layout
22812
22813 \begin_layout Labeling
22814 \labelwidthstring 00.00.0000
22815 SVN
22816 \begin_inset space ~
22817 \end_inset
22818
22819 commands: 
22820 \begin_inset space ~
22821 \end_inset
22822
22823
22824 \begin_inset Newline newline
22825 \end_inset
22826
22827
22828 \begin_inset Flex Code
22829 status collapsed
22830
22831 \begin_layout Plain Layout
22832 svn move -q 
22833 \change_deleted -712698321 1501253375
22834
22835 \family typewriter
22836
22837 \begin_inset Quotes eld
22838 \end_inset
22839
22840
22841 \change_inserted -712698321 1501253375
22842
22843 \begin_inset Quotes qld
22844 \end_inset
22845
22846
22847 \change_unchanged
22848 <file-name>
22849 \change_deleted -712698321 1501253377
22850
22851 \begin_inset Quotes erd
22852 \end_inset
22853
22854
22855 \change_inserted -712698321 1501253377
22856
22857 \begin_inset Quotes qld
22858 \end_inset
22859
22860
22861 \change_unchanged
22862  
22863 \change_deleted -712698321 1501253378
22864
22865 \begin_inset Quotes eld
22866 \end_inset
22867
22868
22869 \change_inserted -712698321 1501253378
22870
22871 \begin_inset Quotes qld
22872 \end_inset
22873
22874
22875 \change_unchanged
22876 <new-file-name>
22877 \change_deleted -712698321 1501253380
22878
22879 \begin_inset Quotes erd
22880 \end_inset
22881
22882
22883 \change_inserted -712698321 1501253380
22884
22885 \begin_inset Quotes qld
22886 \end_inset
22887
22888
22889 \change_unchanged
22890
22891 \end_layout
22892
22893 \end_inset
22894
22895
22896 \begin_inset Newline newline
22897 \end_inset
22898
22899
22900 \begin_inset Flex Code
22901 status collapsed
22902
22903 \begin_layout Plain Layout
22904 svn commit
22905 \end_layout
22906
22907 \end_inset
22908
22909
22910 \end_layout
22911
22912 \begin_layout Subsubsection
22913 \begin_inset CommandInset label
22914 LatexCommand label
22915 name "subsec:SVN-Repo-Update"
22916
22917 \end_inset
22918
22919 Update of the local directory checkout from repository
22920 \begin_inset Foot
22921 status collapsed
22922
22923 \begin_layout Plain Layout
22924 Note that this command will work only with subversion 
22925 \begin_inset Formula $\geqq1.5$
22926 \end_inset
22927
22928
22929 \end_layout
22930
22931 \end_inset
22932
22933
22934 \end_layout
22935
22936 \begin_layout Standard
22937 All the commands above have one shortco
22938 \change_deleted -712698321 1501253385
22939 m
22940 \change_unchanged
22941 ming 
22942 \change_inserted -712698321 1501253389
22943
22944 \change_deleted -712698321 1501253389
22945 -
22946 \change_unchanged
22947  they deal with the current document only.
22948  Once your document contains pictures, includes external 
22949 \begin_inset Flex Code
22950 status collapsed
22951
22952 \begin_layout Plain Layout
22953 .tex
22954 \end_layout
22955
22956 \end_inset
22957
22958  files and so on administration becomes more complicated.
22959  \SpecialChar LyX
22960  now supports updating the whole tree in which resides the document
22961 \begin_inset Foot
22962 status collapsed
22963
22964 \begin_layout Plain Layout
22965 One need to organize the files structure so that all external files are
22966  in the same directory or subdirectories of the document.
22967  
22968 \end_layout
22969
22970 \end_inset
22971
22972 .
22973  This become especially useful once you cooperate with people which neither
22974  know about subversion management nor they have ambition to commit additional
22975  material to the repository.
22976  
22977 \end_layout
22978
22979 \begin_layout Standard
22980 \begin_inset Flex Code
22981 status collapsed
22982
22983 \begin_layout Plain Layout
22984 Update local directory from repository
22985 \end_layout
22986
22987 \end_inset
22988
22989  command updates the whole directory and in case of merge conflicts local
22990  version of the files are left, so no unintended data loss occurs.
22991  If local changes are detected user is warned before update starts.
22992 \end_layout
22993
22994 \begin_layout Labeling
22995 \labelwidthstring 00.00.0000
22996 SVN
22997 \begin_inset space ~
22998 \end_inset
22999
23000 commands: 
23001 \begin_inset space ~
23002 \end_inset
23003
23004
23005 \begin_inset Newline newline
23006 \end_inset
23007
23008
23009 \begin_inset Flex Code
23010 status collapsed
23011
23012 \begin_layout Plain Layout
23013 svn diff $path
23014 \end_layout
23015
23016 \end_inset
23017
23018  (Ask if changes are detected.)
23019 \begin_inset Newline newline
23020 \end_inset
23021
23022
23023 \begin_inset Flex Code
23024 status collapsed
23025
23026 \begin_layout Plain Layout
23027 svn update –accept mine-full $path
23028 \end_layout
23029
23030 \end_inset
23031
23032
23033 \end_layout
23034
23035 \begin_layout Standard
23036 where 
23037 \begin_inset Flex Code
23038 status collapsed
23039
23040 \begin_layout Plain Layout
23041 $path
23042 \end_layout
23043
23044 \end_inset
23045
23046  stands for the path to the document.
23047 \end_layout
23048
23049 \begin_layout Subsubsection
23050
23051 \family sans
23052 Show History
23053 \end_layout
23054
23055 \begin_layout Standard
23056 This shows the complete history of the SVN document.
23057  The output of 
23058 \family typewriter
23059 svn log 
23060 \change_deleted -712698321 1501253404
23061
23062 \begin_inset Quotes eld
23063 \end_inset
23064
23065
23066 \change_inserted -712698321 1501253404
23067
23068 \begin_inset Quotes qld
23069 \end_inset
23070
23071
23072 \change_unchanged
23073 <file-name>
23074 \change_deleted -712698321 1501253406
23075
23076 \begin_inset Quotes erd
23077 \end_inset
23078
23079
23080 \change_inserted -712698321 1501253406
23081
23082 \begin_inset Quotes qld
23083 \end_inset
23084
23085
23086 \change_unchanged
23087
23088 \family default
23089  is shown in a browser.
23090 \end_layout
23091
23092 \begin_layout Subsubsection
23093 File Locking
23094 \begin_inset CommandInset label
23095 LatexCommand label
23096 name "subsec:SVN-File-Locking"
23097
23098 \end_inset
23099
23100
23101 \end_layout
23102
23103 \begin_layout Standard
23104 The file exchange through various revision control systems brings the problem
23105  of merge conflicts in case two different users try to edit the same (parts
23106  of) document.
23107  When such a conflict happens it needs manual resolving and one reasonable
23108  alternative is to provide some kind of locking mechanism, which guarantees
23109  that only one user is allowed to edit file at the given time.
23110 \end_layout
23111
23112 \begin_layout Standard
23113 SVN has two such mechanisms to provide mutual exclusivity for file access
23114  
23115 \change_inserted -712698321 1501253410
23116
23117 \change_deleted -712698321 1501253410
23118 -
23119 \change_unchanged
23120  locks and automatic setting of write permissions (see sec.
23121  
23122 \begin_inset CommandInset ref
23123 LatexCommand ref
23124 reference "subsec:Automatical-Locking-Property"
23125
23126 \end_inset
23127
23128 ) based on 
23129 \begin_inset Flex Code
23130 status collapsed
23131
23132 \begin_layout Plain Layout
23133 svn:needs-lock
23134 \end_layout
23135
23136 \end_inset
23137
23138  file svn property
23139 \begin_inset Foot
23140 status collapsed
23141
23142 \begin_layout Plain Layout
23143
23144 \change_deleted -712698321 1501253418
23145 http://svnbook.red-bean.com/en/1.2/svn.advanced.locking.html
23146 \change_inserted -712698321 1501253418
23147
23148 \begin_inset Flex URL
23149 status open
23150
23151 \begin_layout Plain Layout
23152
23153 \change_inserted -712698321 1501253418
23154
23155 http://svnbook.red-bean.com/en/1.2/svn.advanced.locking.html
23156 \change_unchanged
23157
23158 \end_layout
23159
23160 \end_inset
23161
23162
23163 \change_unchanged
23164
23165 \end_layout
23166
23167 \end_inset
23168
23169 .
23170  If this property is detected for a given document \SpecialChar LyX
23171  starts to use SVN locks
23172  for document editing automatically and the whole check-in/out mechanism
23173  switches to the same regimen as for RCS.
23174  This in particular means there are two different modes of file use in \SpecialChar LyX
23175 :
23176 \end_layout
23177
23178 \begin_layout Itemize
23179 Unlocked state.
23180  The loaded file is in the read-only mode.
23181  For editing on needs to check-out.
23182  
23183 \emph on
23184 Check-out
23185 \emph default
23186  consists of updating from the repository and gaining write lock.
23187  If the lock is not possible to obtain, we remain in unlocked state.
23188 \end_layout
23189
23190 \begin_layout Itemize
23191 Locked state.
23192  The loaded file is in the 
23193 \change_deleted -712698321 1501253433
23194 '
23195 \change_inserted -712698321 1501253433
23196
23197 \begin_inset Quotes els
23198 \end_inset
23199
23200
23201 \change_unchanged
23202 normal
23203 \change_deleted -712698321 1501253435
23204 '
23205 \change_inserted -712698321 1501253435
23206
23207 \begin_inset Quotes ers
23208 \end_inset
23209
23210
23211 \change_unchanged
23212  edit mode.
23213  No other user is allowed to edit the file.
23214  
23215 \emph on
23216 Check-in
23217 \emph default
23218  consists of commiting changes and releasing write-lock.
23219  If no changes have been made to the document, no commit will be produced
23220 \begin_inset Foot
23221 status collapsed
23222
23223 \begin_layout Plain Layout
23224 Don't be puzzled by the fact that you will be asked for commit message anyway.
23225 \end_layout
23226
23227 \end_inset
23228
23229  and only the write-lock will be released.
23230 \end_layout
23231
23232 \begin_layout Standard
23233 SVN commands:
23234 \end_layout
23235
23236 \begin_layout Labeling
23237 \labelwidthstring 00.00.0000
23238 Check-in:
23239 \family typewriter
23240  svn commit -q -m"<description>" "<file-name>"
23241 \begin_inset Newline newline
23242 \end_inset
23243
23244 svn unlock "<file-name>"
23245 \end_layout
23246
23247 \begin_layout Labeling
23248 \labelwidthstring 00.00.0000
23249 Check-out: 
23250 \family typewriter
23251 svn update "<file-name>"
23252 \begin_inset Newline newline
23253 \end_inset
23254
23255 svn lock "<file-name>"
23256 \end_layout
23257
23258 \begin_layout Subsubsection
23259
23260 \family typewriter
23261 \begin_inset CommandInset label
23262 LatexCommand label
23263 name "subsec:Automatical-Locking-Property"
23264
23265 \end_inset
23266
23267
23268 \family default
23269 Automatic Locking Property
23270 \end_layout
23271
23272 \begin_layout Standard
23273 The above mentioned automatic setting of write permissions of the .lyx file
23274  can be set through
23275 \family sans
23276  File\SpecialChar menuseparator
23277 Version
23278 \begin_inset space ~
23279 \end_inset
23280
23281 Control\SpecialChar menuseparator
23282
23283 \change_deleted -712698321 1501244235
23284 Toggle
23285 \change_inserted -712698321 1501244235
23286 Use
23287 \change_unchanged
23288  
23289 \change_deleted -712698321 1501244236
23290 l
23291 \change_inserted -712698321 1501244237
23292 L
23293 \change_unchanged
23294 ocking 
23295 \change_inserted -712698321 1501244242
23296 P
23297 \change_deleted -712698321 1501244242
23298 p
23299 \change_unchanged
23300 roperty
23301 \family default
23302 .
23303  This command is active only when the file is not locked on the svn server
23304  (i.e.
23305  you need to check-out before proceeding).
23306 \end_layout
23307
23308 \begin_layout Labeling
23309 \labelwidthstring 00.00.0000
23310 SVN
23311 \begin_inset space ~
23312 \end_inset
23313
23314 commands:
23315 \end_layout
23316
23317 \begin_layout Labeling
23318 \labelwidthstring 00.00.0000
23319 Set:
23320 \family typewriter
23321  svn propset svn:needs-lock ON "<file-name>"
23322 \end_layout
23323
23324 \begin_layout Labeling
23325 \labelwidthstring 00.00.0000
23326 Unset: 
23327 \family typewriter
23328 svn propdel svn:needs-lock "<file-name>"
23329 \end_layout
23330
23331 \begin_layout Subsubsection
23332 \begin_inset CommandInset label
23333 LatexCommand label
23334 name "subsec:VCS-Revision-Information"
23335
23336 \end_inset
23337
23338 Revision Information in Documents
23339 \end_layout
23340
23341 \begin_layout Standard
23342 There are more possibilities how to activate revision information in our
23343  document.
23344 \end_layout
23345
23346 \begin_layout Itemize
23347 \SpecialChar LyX
23348  supports directly:
23349 \end_layout
23350
23351 \begin_deeper
23352 \begin_layout Itemize
23353 tree revision information (
23354 \begin_inset Flex Code
23355 status collapsed
23356
23357 \begin_layout Plain Layout
23358 vcs-tree-revision
23359 \end_layout
23360
23361 \end_inset
23362
23363 ).
23364  The result is the output of the 
23365 \begin_inset Flex Code
23366 status collapsed
23367
23368 \begin_layout Plain Layout
23369 svnversion
23370 \end_layout
23371
23372 \end_inset
23373
23374  command, the following table gives you an idea, how to read the results.
23375 \end_layout
23376
23377 \begin_layout Standard
23378 \align center
23379 \begin_inset Tabular
23380 <lyxtabular version="3" rows="6" columns="2">
23381 <features tabularvalignment="middle">
23382 <column alignment="left" valignment="top">
23383 <column alignment="left" valignment="top">
23384 <row>
23385 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
23386 \begin_inset Text
23387
23388 \begin_layout Plain Layout
23389
23390 \series bold
23391 Output
23392 \end_layout
23393
23394 \end_inset
23395 </cell>
23396 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
23397 \begin_inset Text
23398
23399 \begin_layout Plain Layout
23400
23401 \series bold
23402 Meaning
23403 \end_layout
23404
23405 \end_inset
23406 </cell>
23407 </row>
23408 <row>
23409 <cell alignment="left" valignment="top" topline="true" leftline="true" usebox="none">
23410 \begin_inset Text
23411
23412 \begin_layout Plain Layout
23413 4123:4168
23414 \end_layout
23415
23416 \end_inset
23417 </cell>
23418 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
23419 \begin_inset Text
23420
23421 \begin_layout Plain Layout
23422 mixed revision working copy
23423 \end_layout
23424
23425 \end_inset
23426 </cell>
23427 </row>
23428 <row>
23429 <cell alignment="left" valignment="top" topline="true" leftline="true" usebox="none">
23430 \begin_inset Text
23431
23432 \begin_layout Plain Layout
23433 4168M
23434 \end_layout
23435
23436 \end_inset
23437 </cell>
23438 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
23439 \begin_inset Text
23440
23441 \begin_layout Plain Layout
23442 modified working copy
23443 \end_layout
23444
23445 \end_inset
23446 </cell>
23447 </row>
23448 <row>
23449 <cell alignment="left" valignment="top" topline="true" leftline="true" usebox="none">
23450 \begin_inset Text
23451
23452 \begin_layout Plain Layout
23453 4123S
23454 \end_layout
23455
23456 \end_inset
23457 </cell>
23458 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
23459 \begin_inset Text
23460
23461 \begin_layout Plain Layout
23462 switched working copy
23463 \end_layout
23464
23465 \end_inset
23466 </cell>
23467 </row>
23468 <row>
23469 <cell alignment="left" valignment="top" topline="true" leftline="true" usebox="none">
23470 \begin_inset Text
23471
23472 \begin_layout Plain Layout
23473 4123P
23474 \end_layout
23475
23476 \end_inset
23477 </cell>
23478 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
23479 \begin_inset Text
23480
23481 \begin_layout Plain Layout
23482 partial working copy, from a sparse checkout
23483 \end_layout
23484
23485 \end_inset
23486 </cell>
23487 </row>
23488 <row>
23489 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
23490 \begin_inset Text
23491
23492 \begin_layout Plain Layout
23493 4123:4168MS
23494 \end_layout
23495
23496 \end_inset
23497 </cell>
23498 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
23499 \begin_inset Text
23500
23501 \begin_layout Plain Layout
23502 mixed revision, modified, switched working copy
23503 \end_layout
23504
23505 \end_inset
23506 </cell>
23507 </row>
23508 </lyxtabular>
23509
23510 \end_inset
23511
23512
23513 \end_layout
23514
23515 \begin_layout Itemize
23516 file revision information.
23517  The result comes from parsing the output of 
23518 \begin_inset Flex Code
23519 status collapsed
23520
23521 \begin_layout Plain Layout
23522 svn
23523 \begin_inset space ~
23524 \end_inset
23525
23526 info
23527 \begin_inset space ~
23528 \end_inset
23529
23530 –xml
23531 \begin_inset space ~
23532 \end_inset
23533
23534 file.lyx
23535 \end_layout
23536
23537 \end_inset
23538
23539 .
23540  Supported flags are:
23541 \end_layout
23542
23543 \begin_deeper
23544 \begin_layout Itemize
23545 version number of the last commit (
23546 \begin_inset Flex Code
23547 status collapsed
23548
23549 \begin_layout Plain Layout
23550 vcs-revision
23551 \end_layout
23552
23553 \end_inset
23554
23555 )
23556 \end_layout
23557
23558 \begin_layout Itemize
23559 author of the last commit (
23560 \begin_inset Flex Code
23561 status collapsed
23562
23563 \begin_layout Plain Layout
23564 vcs-author
23565 \end_layout
23566
23567 \end_inset
23568
23569 )
23570 \end_layout
23571
23572 \begin_layout Itemize
23573 date of the last commit (
23574 \begin_inset Flex Code
23575 status collapsed
23576
23577 \begin_layout Plain Layout
23578 vcs-date
23579 \end_layout
23580
23581 \end_inset
23582
23583 )
23584 \end_layout
23585
23586 \begin_layout Itemize
23587 time of the last commit (
23588 \begin_inset Flex Code
23589 status collapsed
23590
23591 \begin_layout Plain Layout
23592 vcs-time
23593 \end_layout
23594
23595 \end_inset
23596
23597 )
23598 \end_layout
23599
23600 \end_deeper
23601 \begin_layout Standard
23602 You can obtain this info via InsetInfo (e.g.
23603  
23604 \begin_inset Flex Code
23605 status collapsed
23606
23607 \begin_layout Plain Layout
23608 info-insert buffer vcs-date
23609 \end_layout
23610
23611 \end_inset
23612
23613 ).
23614  The information will be available only when you have the file stored under
23615  svn managment (i.e.
23616  the 
23617 \begin_inset Flex Code
23618 status collapsed
23619
23620 \begin_layout Plain Layout
23621 .svn
23622 \end_layout
23623
23624 \end_inset
23625
23626  directory is available with your document).
23627 \end_layout
23628
23629 \end_deeper
23630 \begin_layout Itemize
23631 Another—a hacking one—possibility is to use svn keywords
23632 \begin_inset Foot
23633 status collapsed
23634
23635 \begin_layout Plain Layout
23636 http://svnbook.red-bean.com/en/1.4/svn.advanced.props.special.keywords.html
23637 \end_layout
23638
23639 \end_inset
23640
23641 .
23642  In short – you set file keywords property (e.g.
23643  
23644 \family sans
23645 svn propset svn:keywords 'Rev' file.lyx
23646 \family default
23647 ) and then paste keyword \SpecialChar TeX
23648  code
23649 \begin_inset Foot
23650 status collapsed
23651
23652 \begin_layout Plain Layout
23653 This is an easy way how to ensure that \SpecialChar LyX
23654  won't break the line in the middle
23655  of keyword tag.
23656 \end_layout
23657
23658 \end_inset
23659
23660  tag in your document (e.g.
23661  
23662 \change_deleted -712698321 1501253475
23663
23664 \begin_inset ERT
23665 status open
23666
23667 \begin_layout Plain Layout
23668
23669 $Rev$
23670 \end_layout
23671
23672 \end_inset
23673
23674
23675 \change_inserted -712698321 1501253480
23676
23677 \begin_inset Flex Code
23678 status collapsed
23679
23680 \begin_layout Plain Layout
23681
23682 \change_inserted -712698321 1501253480
23683 $Rev$
23684 \change_unchanged
23685
23686 \end_layout
23687
23688 \end_inset
23689
23690
23691 \change_unchanged
23692 ).
23693  This way svn client will automatically substitute revision number (e.g.
23694  
23695 \change_deleted -712698321 1501253467
23696
23697 \begin_inset ERT
23698 status open
23699
23700 \begin_layout Plain Layout
23701
23702 $Rev: 59 $
23703 \end_layout
23704
23705 \end_inset
23706
23707
23708 \change_inserted -712698321 1501253473
23709
23710 \begin_inset Flex Code
23711 status collapsed
23712
23713 \begin_layout Plain Layout
23714
23715 \change_inserted -712698321 1501253473
23716 $Rev: 59 $
23717 \change_unchanged
23718
23719 \end_layout
23720
23721 \end_inset
23722
23723
23724 \change_unchanged
23725 ) after each update and commit.
23726  There are more problems with this approach.
23727  Firstly, the '$' character is used in \SpecialChar TeX
23728  world for math equations, so any
23729  occurence of math formula 
23730 \begin_inset Formula $Rev$
23731 \end_inset
23732
23733  become 
23734 \begin_inset Formula $Rev:59$
23735 \end_inset
23736
23737  in your \SpecialChar LyX
23738  document.
23739  Similarly for other keywords like Id, Date, Author, etc.
23740  Secondly svn output is dependent on your locales, so its very easy that
23741  svn would produce some problematic strings once Date is used.
23742  Thirdly you get the whole 'Rev: 59' string in your document instead of
23743  the plain number.
23744  Until subversion implements user's custom keywords it will be hard to use
23745  this approach reliably or let \SpecialChar LyX
23746  to support it directly.
23747 \end_layout
23748
23749 \begin_layout Subsection
23750 SVN and Windows Environment
23751 \end_layout
23752
23753 \begin_layout Quote
23754 My inclination is to say that if the user cannot figure out the command
23755  line operations on their own fairly quickly, they would be well advised
23756  to use TortoiseSVN.
23757  —P.
23758  A.
23759  Rubin
23760 \end_layout
23761
23762 \begin_layout Subsubsection
23763 Preparation
23764 \end_layout
23765
23766 \begin_layout Standard
23767 In addition to installing \SpecialChar LyX
23768 , and having access to a Subversion repository,
23769  the user will need to install the Subversion client program.
23770  A Windows installer for the client program is available from 
23771 \begin_inset CommandInset href
23772 LatexCommand href
23773 name "CollabNet"
23774 target "http://www.collab.net/nonav/downloads/subversion/"
23775 literal "false"
23776
23777 \end_inset
23778
23779 .
23780  The user may also want to install 
23781 \begin_inset CommandInset href
23782 LatexCommand href
23783 name "TortoiseSVN"
23784 target "http://tortoisesvn.tigris.org/"
23785 literal "false"
23786
23787 \end_inset
23788
23789 , which integrates Subversion operations into the context (rightclick) menu
23790  of Windows Explorer.
23791  Operations done outside \SpecialChar LyX
23792  will typically be more convenient using the Explorer
23793  context menu.
23794  Note that TortoiseSVN is not a replacement for the client program, which
23795  is what \SpecialChar LyX
23796  itself will use.
23797 \end_layout
23798
23799 \begin_layout Subsubsection
23800 Bringing a document under Subversion control
23801 \end_layout
23802
23803 \begin_layout Standard
23804 Before a \SpecialChar LyX
23805  document can be brought under version control in Subversion, its
23806  parent directory needs to be under version control.
23807  If the document is being added to a project already in the repository,
23808  this is accomplished by checking the project out to the directory where
23809  the new document will be placed.
23810  If the project itself is not yet under version control (for instance, if
23811  this document starts a new project), the directory must be imported into
23812  the repository.
23813  This is done outside \SpecialChar LyX
23814 .
23815  Both import and checkout are easily accomplished from the Explorer context
23816  menu using TortoiseSVN, or alternatively can be done using the command
23817  line client at a DOS prompt.
23818  The procedure for importing the project using TortoiseSVN is described
23819  below, assuming an existing repository and a new project being started
23820  in 
23821 \family typewriter
23822 C:
23823 \backslash
23824 new project
23825 \family default
23826 .
23827  For information on using the Subversion client program, run 
23828 \family typewriter
23829 svn --help 
23830 \family default
23831 in a DOS shell.
23832 \end_layout
23833
23834 \begin_layout Enumerate
23835 Locate 
23836 \family typewriter
23837 C:
23838 \backslash
23839 new project 
23840 \family default
23841 in Windows Explorer, right click it, and select 
23842 \family sans
23843 TortoiseSVN\SpecialChar menuseparator
23844 Repo-browser
23845 \family default
23846 .
23847  If necessary, adjust the URL for the repository, then click OK.
23848 \end_layout
23849
23850 \begin_layout Enumerate
23851 Right click the level of the repository under which you want to place the
23852  new project folder (typically the top level) and click 
23853 \family sans
23854 Create folder
23855 \family default
23856  Supply a name for the project folder and click OK.
23857  Add a message for the log file if desired, then click OK again.
23858  The new project folder should appear in the repository.
23859  Finally, click OK again to exit the repository browser.
23860 \end_layout
23861
23862 \begin_layout Enumerate
23863 Once again right click 
23864 \family typewriter
23865 C:
23866 \backslash
23867 new project
23868 \family default
23869 , this time selecting SVN Checkout\SpecialChar ldots
23870  Select the URL of the project folder
23871  you just created in the repository, and set the checkout directory to 
23872 \family typewriter
23873 C:
23874 \backslash
23875 new project.
23876
23877 \family default
23878  Click OK.
23879  You will be warned about a non-empty folder; click OK to proceed.
23880  You should now have a 
23881 \family typewriter
23882 .svn
23883 \family default
23884  directory under 
23885 \family typewriter
23886 C:
23887 \backslash
23888 new project.
23889 \end_layout
23890
23891 \begin_layout Enumerate
23892 Create or open your document in \SpecialChar LyX
23893  and click 
23894 \family sans
23895 File\SpecialChar menuseparator
23896 Version
23897 \begin_inset space ~
23898 \end_inset
23899
23900 Control\SpecialChar menuseparator
23901 Register.
23902  
23903 \family default
23904 Add a log message and click OK to commit the document to version control.
23905 \end_layout
23906
23907 \begin_layout Standard
23908 From this point onward, you should have full functionality in the 
23909 \family sans
23910 File\SpecialChar menuseparator
23911 Version
23912 \begin_inset space ~
23913 \end_inset
23914
23915 Control
23916 \family default
23917  menu.
23918  You also have the option of checking the document in and out, viewing its
23919  history, etc.
23920  using the TortoiseSVN context menu in Windows Explorer or the Subversion
23921  client program from a command prompt.
23922 \end_layout
23923
23924 \begin_layout Subsubsection
23925 SSH tunnel used with SVN under Windows
23926 \end_layout
23927
23928 \begin_layout Standard
23929 Compared with Linux setting up an svn client to communicate over ssh under
23930  Windows is a rather troublesome task.
23931  We will at least offer some hints how to setup the client side but prior
23932  knowledge about ssh and the Windows command line is needed, also be prepared
23933  for a great deal of frustration\SpecialChar ldots
23934
23935 \end_layout
23936
23937 \begin_layout Enumerate
23938 Get an svn client for windows, as described in the previous sections.
23939  When it is a fresh install run some svn command (e.g.
23940  
23941 \begin_inset Flex Code
23942 status collapsed
23943
23944 \begin_layout Plain Layout
23945 svn –version
23946 \end_layout
23947
23948 \end_inset
23949
23950 ) to create config files, which you will need to change later on.
23951 \end_layout
23952
23953 \begin_layout Enumerate
23954 Choose an ssh client for Windows.
23955  There are several possibilities, we will use the one from Putty tools
23956 \begin_inset Foot
23957 status collapsed
23958
23959 \begin_layout Plain Layout
23960 \begin_inset Flex URL
23961 status collapsed
23962
23963 \begin_layout Plain Layout
23964
23965 http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html
23966 \end_layout
23967
23968 \end_inset
23969
23970
23971 \end_layout
23972
23973 \end_inset
23974
23975 .
23976  You will need to set the connection up so that the client doesn't ask for
23977  any password from you.
23978  To keep things easy we will use only keys without any additional password
23979  protection etc.
23980 \end_layout
23981
23982 \begin_deeper
23983 \begin_layout Enumerate
23984 Generate keys by 
23985 \begin_inset Flex Code
23986 status collapsed
23987
23988 \begin_layout Plain Layout
23989 puttygen
23990 \end_layout
23991
23992 \end_inset
23993
23994 .
23995  Save your private .ppk key file and put the public one on the server side.
23996  If the SVN server runs on Linux, note that the format of the public key
23997  is not compatible with Linux openssh and you will need to direcly copy-paste
23998  the key from the “
23999 \emph on
24000 Public key for pasting into OpenSSH authorized_keys file
24001 \emph default
24002 :” edit field into the server's 
24003 \begin_inset Flex Code
24004 status collapsed
24005
24006 \begin_layout Plain Layout
24007 ~/.ssh/authorized_keys
24008 \end_layout
24009
24010 \end_inset
24011
24012  / 
24013 \begin_inset Flex Code
24014 status collapsed
24015
24016 \begin_layout Plain Layout
24017 authorized_keys2
24018 \end_layout
24019
24020 \end_inset
24021
24022  file.
24023 \end_layout
24024
24025 \begin_layout Enumerate
24026 Get the Putty's 
24027 \begin_inset Flex Code
24028 status collapsed
24029
24030 \begin_layout Plain Layout
24031 plink
24032 \end_layout
24033
24034 \end_inset
24035
24036 .
24037  In the SVN config file
24038 \begin_inset Foot
24039 status collapsed
24040
24041 \begin_layout Plain Layout
24042 Exact path depends on Windows version, usually somewhere around 
24043 \begin_inset Flex Code
24044 status collapsed
24045
24046 \begin_layout Plain Layout
24047 c:
24048 \backslash
24049 Documents and Settings
24050 \backslash
24051 user
24052 \backslash
24053 Application Data
24054 \backslash
24055 Subversion
24056 \backslash
24057 config
24058 \end_layout
24059
24060 \end_inset
24061
24062  / 
24063 \begin_inset Flex Code
24064 status collapsed
24065
24066 \begin_layout Plain Layout
24067 AppData
24068 \backslash
24069 Roaming
24070 \backslash
24071 Subversion
24072 \end_layout
24073
24074 \end_inset
24075
24076 .
24077 \end_layout
24078
24079 \end_inset
24080
24081 , section [tunnels], setup ssh command, e.g.
24082  
24083 \begin_inset Flex Code
24084 status collapsed
24085
24086 \begin_layout Plain Layout
24087 ssh=c:/path/plink.exe -i c:/path/private_key.ppk
24088 \end_layout
24089
24090 \end_inset
24091
24092 .
24093 \begin_inset Foot
24094 status collapsed
24095
24096 \begin_layout Plain Layout
24097 It will usually take a lot of time to get exact command right and it depends
24098  on many things.
24099  For example do not have some remote server saved as a default session in
24100  Putty etc.
24101  If things fail, try to connect via plink without SVN first.
24102 \end_layout
24103
24104 \end_inset
24105
24106
24107 \end_layout
24108
24109 \end_deeper
24110 \begin_layout Enumerate
24111 Checkout the SVN archive, e.
24112 \begin_inset space \thinspace{}
24113 \end_inset
24114
24115 g.
24116 \begin_inset Newline newline
24117 \end_inset
24118
24119
24120 \begin_inset Flex Code
24121 status collapsed
24122
24123 \begin_layout Plain Layout
24124 svn co svn+ssh://user@server/repository_path
24125 \end_layout
24126
24127 \end_inset
24128
24129 .
24130 \end_layout
24131
24132 \begin_layout Subsubsection
24133 End-of-Line Conversions
24134 \end_layout
24135
24136 \begin_layout Standard
24137 When the collaborators are mixing Linux and Windows environments, \SpecialChar LyX
24138  will
24139  use different line endings inside the .lyx files.
24140  This is not a problem as far as \SpecialChar LyX
24141  functionality is concerned, but the commit
24142  diffs will be huge and merge-conflicts prone.
24143  Fortunately SVN itself knows
24144 \begin_inset Foot
24145 status collapsed
24146
24147 \begin_layout Plain Layout
24148 \begin_inset Flex URL
24149 status collapsed
24150
24151 \begin_layout Plain Layout
24152
24153 http://svnbook.red-bean.com/en/1.4/svn.advanced.props.file-portability.html
24154 \end_layout
24155
24156 \end_inset
24157
24158
24159 \end_layout
24160
24161 \end_inset
24162
24163  how to deal with CR/LF problems when switching .lyx files to the 
24164 \begin_inset Flex Code
24165 status collapsed
24166
24167 \begin_layout Plain Layout
24168 native
24169 \end_layout
24170
24171 \end_inset
24172
24173  mode.
24174 \begin_inset Foot
24175 status collapsed
24176
24177 \begin_layout Plain Layout
24178 For the lazy guys: 
24179 \begin_inset Flex Code
24180 status collapsed
24181
24182 \begin_layout Plain Layout
24183 svn propset svn:eol-style native FILE_NAME
24184 \end_layout
24185
24186 \end_inset
24187
24188
24189 \end_layout
24190
24191 \end_inset
24192
24193
24194 \end_layout
24195
24196 \begin_layout Subsection
24197 GIT commands in \SpecialChar LyX
24198
24199 \end_layout
24200
24201 \begin_layout Standard
24202 A minimal subset of GIT commands is now supported by \SpecialChar LyX
24203 .
24204  You can find the commands in the 
24205 \family sans
24206 File\SpecialChar menuseparator
24207 Version
24208 \begin_inset space ~
24209 \end_inset
24210
24211 Control
24212 \family default
24213  submenu.
24214  Please note that if you use password protected access to repository via
24215  ssh, you will be asked in terminal window.
24216  \SpecialChar LyX
24217  was tested against GIT 1.7.
24218 \begin_inset Foot
24219 status collapsed
24220
24221 \begin_layout Plain Layout
24222 Windows users please note that you need to ensure that git is on the path.
24223  This can be set from within \SpecialChar LyX
24224  at 
24225 \family sans
24226 Tools\SpecialChar menuseparator
24227 Preferences\SpecialChar menuseparator
24228 Paths\SpecialChar menuseparator
24229 PATH prefix
24230 \family default
24231 .
24232 \end_layout
24233
24234 \end_inset
24235
24236
24237 \end_layout
24238
24239 \begin_layout Standard
24240 One big difference of GIT and the other supported version control systems
24241  is the distributed nature of GIT: With traditional version control systems
24242  there is one central server which hosts the repository.
24243  Users commit their changes to the server, and get updates made by other
24244  users from it.
24245  With GIT, users commit to a local repository.
24246  The local repository can be synchronized with one or more remote repositories
24247  using the 
24248 \begin_inset Flex Code
24249 status collapsed
24250
24251 \begin_layout Plain Layout
24252 pull
24253 \end_layout
24254
24255 \end_inset
24256
24257  and 
24258 \begin_inset Flex Code
24259 status collapsed
24260
24261 \begin_layout Plain Layout
24262 push
24263 \end_layout
24264
24265 \end_inset
24266
24267  GIT commands.
24268  \SpecialChar LyX
24269  does not interact in any way with remote GIT repositories.
24270  It works exclusively with the local repository in a very similar way as
24271  with a central CVS or SVN repository.
24272  If you use remote GIT repositories you need to do the 
24273 \begin_inset Flex Code
24274 status collapsed
24275
24276 \begin_layout Plain Layout
24277 pull
24278 \end_layout
24279
24280 \end_inset
24281
24282  and 
24283 \begin_inset Flex Code
24284 status collapsed
24285
24286 \begin_layout Plain Layout
24287 push
24288 \end_layout
24289
24290 \end_inset
24291
24292  operations with your favourite GIT client.
24293 \end_layout
24294
24295 \begin_layout Subsubsection
24296
24297 \family sans
24298 Register
24299 \end_layout
24300
24301 \begin_layout Standard
24302 If your document is not under revision control, this is the only item shown
24303  in the menu.
24304  And if it is under revision control, the 
24305 \family sans
24306 Register
24307 \family default
24308  item is not visible.
24309 \end_layout
24310
24311 \begin_layout Standard
24312 This command registers in GIT your document ONLY in case you have already
24313  the documents directory under GIT control (in particular 
24314 \family typewriter
24315 .git/index
24316 \family default
24317  file exists).
24318  This means you have to checkout the archive by yourself.
24319 \end_layout
24320
24321 \begin_layout Standard
24322 Then you are asked interactively to supply an initial description of the
24323  document.
24324  Don't forget that registered file is not yet commi
24325 \change_inserted -712698321 1501253542
24326 t
24327 \change_unchanged
24328 ted.
24329 \end_layout
24330
24331 \begin_layout Standard
24332 GIT command that is run: 
24333 \family typewriter
24334 git add 
24335 \change_deleted -712698321 1501253534
24336
24337 \begin_inset Quotes eld
24338 \end_inset
24339
24340
24341 \change_inserted -712698321 1501253534
24342
24343 \begin_inset Quotes qld
24344 \end_inset
24345
24346
24347 \change_unchanged
24348 <file-name>
24349 \change_deleted -712698321 1501253538
24350
24351 \begin_inset Quotes erd
24352 \end_inset
24353
24354
24355 \change_inserted -712698321 1501253538
24356
24357 \begin_inset Quotes qld
24358 \end_inset
24359
24360
24361 \change_unchanged
24362
24363 \end_layout
24364
24365 \begin_layout Standard
24366 Read 
24367 \family typewriter
24368 man git
24369 \family default
24370  to understand the switches.
24371 \end_layout
24372
24373 \begin_layout Subsubsection
24374
24375 \family sans
24376 Check In Changes
24377 \end_layout
24378
24379 \begin_layout Standard
24380 When you are finished editing a file, you commit your changes.
24381  When you do this, you are asked for a description of the changes.
24382  After that changes are commit
24383 \change_inserted -712698321 1501253548
24384 t
24385 \change_unchanged
24386 ed.
24387 \end_layout
24388
24389 \begin_layout Standard
24390 GIT command: 
24391 \family typewriter
24392 git commit -q -m"<description>" <file-name>
24393 \end_layout
24394
24395 \begin_layout Subsubsection
24396
24397 \family sans
24398 Revert To Repository Version
24399 \end_layout
24400
24401 \begin_layout Standard
24402 This will discard all changes made to the document since the last check
24403  in.
24404  You get a warning before changes are discarded.
24405 \end_layout
24406
24407 \begin_layout Standard
24408 GIT command: 
24409 \family typewriter
24410 git checkout -q 
24411 \change_deleted -712698321 1501253553
24412
24413 \begin_inset Quotes eld
24414 \end_inset
24415
24416
24417 \change_inserted -712698321 1501253553
24418
24419 \begin_inset Quotes qld
24420 \end_inset
24421
24422
24423 \change_unchanged
24424 <file-name>
24425 \change_deleted -712698321 1501253555
24426
24427 \begin_inset Quotes erd
24428 \end_inset
24429
24430
24431 \change_inserted -712698321 1501253555
24432
24433 \begin_inset Quotes qld
24434 \end_inset
24435
24436
24437 \change_unchanged
24438
24439 \end_layout
24440
24441 \begin_layout Subsubsection
24442
24443 \family sans
24444 Rename
24445 \end_layout
24446
24447 \begin_layout Standard
24448 This will rename the current document including the version history.
24449  It requires a clean document without any changes since the last checkin.
24450  You are asked for a file name and a description of the rename operation.
24451  After that the document is renamed, both locally and in the repository.
24452  If the parent directories of the new and old file names differ, all relative
24453  paths of included files are adjusted (like in 
24454 \family sans
24455 File\SpecialChar menuseparator
24456 Save As
24457 \family default
24458 \SpecialChar ldots
24459 ).
24460  Finally, the document is reloaded using the new name.
24461 \end_layout
24462
24463 \begin_layout Labeling
24464 \labelwidthstring 00.00.0000
24465 GIT
24466 \begin_inset space ~
24467 \end_inset
24468
24469 commands: 
24470 \begin_inset space ~
24471 \end_inset
24472
24473
24474 \begin_inset Newline newline
24475 \end_inset
24476
24477
24478 \begin_inset Flex Code
24479 status collapsed
24480
24481 \begin_layout Plain Layout
24482 git mv 
24483 \change_deleted -712698321 1501253559
24484
24485 \family typewriter
24486
24487 \begin_inset Quotes eld
24488 \end_inset
24489
24490
24491 \change_inserted -712698321 1501253559
24492
24493 \begin_inset Quotes qld
24494 \end_inset
24495
24496
24497 \change_unchanged
24498 <file-name>
24499 \change_deleted -712698321 1501253561
24500
24501 \begin_inset Quotes erd
24502 \end_inset
24503
24504
24505 \change_inserted -712698321 1501253561
24506
24507 \begin_inset Quotes qld
24508 \end_inset
24509
24510
24511 \change_unchanged
24512  
24513 \change_deleted -712698321 1501253562
24514
24515 \begin_inset Quotes eld
24516 \end_inset
24517
24518
24519 \change_inserted -712698321 1501253562
24520
24521 \begin_inset Quotes qld
24522 \end_inset
24523
24524
24525 \change_unchanged
24526 <new-file-name>
24527 \change_deleted -712698321 1501253564
24528
24529 \begin_inset Quotes erd
24530 \end_inset
24531
24532
24533 \change_inserted -712698321 1501253564
24534
24535 \begin_inset Quotes qld
24536 \end_inset
24537
24538
24539 \change_unchanged
24540
24541 \end_layout
24542
24543 \end_inset
24544
24545
24546 \begin_inset Newline newline
24547 \end_inset
24548
24549
24550 \begin_inset Flex Code
24551 status collapsed
24552
24553 \begin_layout Plain Layout
24554 git commit
24555 \end_layout
24556
24557 \end_inset
24558
24559
24560 \end_layout
24561
24562 \begin_layout Subsubsection
24563
24564 \family sans
24565 Show History
24566 \end_layout
24567
24568 \begin_layout Standard
24569 This shows the complete history of the GIT document.
24570  The output of 
24571 \family typewriter
24572 git log 
24573 \change_deleted -712698321 1501253567
24574
24575 \begin_inset Quotes eld
24576 \end_inset
24577
24578
24579 \change_inserted -712698321 1501253567
24580
24581 \begin_inset Quotes qld
24582 \end_inset
24583
24584
24585 \change_unchanged
24586 <file-name>
24587 \change_deleted -712698321 1501253569
24588
24589 \begin_inset Quotes erd
24590 \end_inset
24591
24592
24593 \change_inserted -712698321 1501253569
24594
24595 \begin_inset Quotes qld
24596 \end_inset
24597
24598
24599 \change_unchanged
24600
24601 \family default
24602  is shown in a browser.
24603 \end_layout
24604
24605 \begin_layout Subsubsection
24606 Version Info
24607 \end_layout
24608
24609 \begin_layout Standard
24610 \SpecialChar LyX
24611  supports GIT hash number of the last commit to the file, author name, date
24612  and time of last commit.
24613  All those are extracted from 
24614 \family typewriter
24615 git log -n 1 --pretty=format:%H%n%an%n%ai
24616 \family default
24617 .
24618  Tree version information is obtained via 
24619 \family typewriter
24620 git describe --abbrev --dirty --long
24621 \family default
24622 .
24623  See 
24624 \begin_inset CommandInset ref
24625 LatexCommand ref
24626 reference "subsec:VCS-Revision-Information"
24627
24628 \end_inset
24629
24630  for other details.
24631 \end_layout
24632
24633 \begin_layout Subsection
24634 Further tuning
24635 \end_layout
24636
24637 \begin_layout Standard
24638 With the recent addition of the 
24639 \change_deleted -712698321 1501253582
24640 vc-command
24641 \change_inserted -712698321 1501253582
24642
24643 \begin_inset Flex Code
24644 status collapsed
24645
24646 \begin_layout Plain Layout
24647
24648 \change_inserted -712698321 1501253582
24649 vc-command
24650 \change_unchanged
24651
24652 \end_layout
24653
24654 \end_inset
24655
24656
24657 \change_unchanged
24658  function \SpecialChar LyX
24659  power users are allowed to create their own commands for revision
24660  control.
24661 \end_layout
24662
24663 \begin_layout Standard
24664 As an example you can see how two TortoiseSVN commands could be integrated
24665  directly:
24666 \end_layout
24667
24668 \begin_layout Description
24669 Commit: 
24670 \begin_inset Flex Code
24671 status collapsed
24672
24673 \begin_layout Plain Layout
24674 vc-command DR "." "TortoiseProc /command:commit /path:$$p"
24675 \end_layout
24676
24677 \end_inset
24678
24679
24680 \end_layout
24681
24682 \begin_layout Description
24683 Revert: 
24684 \begin_inset Flex Code
24685 status collapsed
24686
24687 \begin_layout Plain Layout
24688 vc-command DR "." "TortoiseProc /command:revert /path:$$p"
24689 \end_layout
24690
24691 \end_inset
24692
24693
24694 \end_layout
24695
24696 \begin_layout Subsection
24697 Version control and Document comparison
24698 \end_layout
24699
24700 \begin_layout Standard
24701 One of the typical uses of version control is to inspect the changes between
24702  revisions, usually by creating 
24703 \begin_inset Flex Code
24704 status collapsed
24705
24706 \begin_layout Plain Layout
24707 diff
24708 \end_layout
24709
24710 \end_inset
24711
24712  dumps.
24713  While this is useful for plain text files, it is much less useful in the
24714  case of \SpecialChar LyX
24715  files, which have more a complicated structure.
24716  Hence we provide binding to the Document comparison feature.
24717  There are two ways of calling this feature 
24718 \change_inserted -712698321 1501253613
24719
24720 \change_deleted -712698321 1501253613
24721 -
24722 \change_unchanged
24723  either by direct call of 
24724 \begin_inset Flex Code
24725 status collapsed
24726
24727 \begin_layout Plain Layout
24728
24729 \change_deleted -712698321 1501253619
24730 VC_COMPARE
24731 \change_inserted -712698321 1501253621
24732 vc-compare
24733 \change_unchanged
24734
24735 \end_layout
24736
24737 \end_inset
24738
24739  \SpecialChar LyX
24740  function (for details see \SpecialChar LyX
24741  functions manual) or by
24742 \change_inserted -712698321 1501253630
24743  the toolbar
24744 \change_unchanged
24745  icon
24746 \change_inserted -712698321 1501253655
24747  
24748 \begin_inset Info
24749 type  "icon"
24750 arg   "vc-compare"
24751 \end_inset
24752
24753
24754 \change_deleted -712698321 1501253665
24755 /
24756 \change_inserted -712698321 1501253675
24757  or the 
24758 \change_unchanged
24759 menu item 
24760 \change_inserted -712698321 1501253679
24761
24762 \begin_inset Info
24763 type  "menu"
24764 arg   "vc-compare"
24765 \end_inset
24766
24767
24768 \change_deleted -712698321 1501253689
24769
24770 \begin_inset Flex Noun
24771 status collapsed
24772
24773 \begin_layout Plain Layout
24774 Compare with older revision...
24775 \end_layout
24776
24777 \end_inset
24778
24779
24780 \change_inserted -712698321 1501253693
24781 , respectively
24782 \change_unchanged
24783 .
24784  One can either compare two chosen revisions of the document or he can simply
24785  compare the current version of edited text with older revisions (where
24786  '
24787 \begin_inset Flex Noun
24788 status collapsed
24789
24790 \begin_layout Plain Layout
24791 0
24792 \end_layout
24793
24794 \end_inset
24795
24796 ' revisions back means comparison of the edited file with last commited
24797  revision).
24798  
24799 \end_layout
24800
24801 \begin_layout Standard
24802 This feature is supported for SVN and RCS though due to the more complicated
24803  versioning scheme of RCS there is a constraint – when addressing the revisions
24804  in dialog, numbers always point to the last number in RCS revision number,
24805  i.e.
24806  '35' in '1.2.35'.
24807  We don't currently support GIT addressing of revisions, one can just compare
24808  edited document with its revision X steps backs, where X is addressed as
24809  
24810 \change_deleted -712698321 1501253702
24811 HEAD~X
24812 \change_inserted -712698321 1501253702
24813
24814 \begin_inset Flex Code
24815 status collapsed
24816
24817 \begin_layout Plain Layout
24818
24819 \change_inserted -712698321 1501253702
24820 HEAD~X
24821 \change_unchanged
24822
24823 \end_layout
24824
24825 \end_inset
24826
24827
24828 \change_unchanged
24829 .
24830 \end_layout
24831
24832 \begin_layout Section
24833 Literate Programming
24834 \end_layout
24835
24836 \begin_layout Standard
24837 Updated by 
24838 \noun on
24839 Kayvan Sylvan 
24840 \noun default
24841 (kayvan@sylvan.com)
24842 \noun on
24843
24844 \noun default
24845 original documentation written by 
24846 \noun on
24847 Edmar Wienskoski Jr.
24848
24849 \noun default
24850  (edmar-w-jr@technologist.com)
24851 \end_layout
24852
24853 \begin_layout Subsection
24854 Introduction
24855 \end_layout
24856
24857 \begin_layout Standard
24858 The main purpose of this documentation is to show you how to use \SpecialChar LyX
24859  for literate
24860  programming, where it is assumed that you are familiar with this programming
24861  technique, and know what 
24862 \begin_inset Quotes eld
24863 \end_inset
24864
24865 tangling
24866 \begin_inset Quotes erd
24867 \end_inset
24868
24869  and 
24870 \begin_inset Quotes eld
24871 \end_inset
24872
24873 weaving
24874 \begin_inset Quotes erd
24875 \end_inset
24876
24877  means.
24878  If that is not the case, please follow the web links provided in the following
24879  sections.
24880  There is a lot of good documentation out there covering old development
24881  history to the latest tools tips.
24882 \end_layout
24883
24884 \begin_layout Standard
24885 It is also assumed that you are familiar with \SpecialChar LyX
24886  itself to a point that you
24887  are comfortable changing your \SpecialChar LyX
24888  preferences, and X resources file.
24889  If that is not the case please refer to other \SpecialChar LyX
24890  documentation to cover your
24891  specific needs.
24892 \end_layout
24893
24894 \begin_layout Subsection
24895 Literate Programming
24896 \end_layout
24897
24898 \begin_layout Standard
24899 From the Literate Programming FAQ: 
24900 \end_layout
24901
24902 \begin_layout Quotation
24903 Literate programming is the combination of documentation and source together
24904  in a fashion suited for reading by human beings.
24905  In fact, literate programs should be enjoyable reading, even inviting!
24906  (Sorry Bob, I couldn't resist!) In general, literate programs combine source
24907  and documentation in a single file.
24908  Literate programming tools then parse the file to produce either readable
24909  documentation or compilable source.
24910  The WEB style of literate programming was created by D.
24911 \begin_inset space \thinspace{}
24912 \end_inset
24913
24914 E.
24915  Knuth during the development of his \SpecialChar TeX
24916  typesetting software.
24917  
24918 \end_layout
24919
24920 \begin_layout Standard
24921 Another excerpt says:
24922 \end_layout
24923
24924 \begin_layout Quotation
24925
24926 \emph on
24927 How is literate programming different from verbose commenting?
24928 \end_layout
24929
24930 \begin_layout Quotation
24931 There are three distinguishing characteristics.
24932  In order of importance, they are: 
24933 \end_layout
24934
24935 \begin_deeper
24936 \begin_layout Itemize
24937 flexible order of elaboration 
24938 \end_layout
24939
24940 \begin_layout Itemize
24941 automatic support for browsing 
24942 \end_layout
24943
24944 \begin_layout Itemize
24945 typeset documentation, especially diagrams and mathematics 
24946 \end_layout
24947
24948 \end_deeper
24949 \begin_layout Standard
24950 Now that I sparked your curiosity, take a look in the references.
24951 \end_layout
24952
24953 \begin_layout Subsubsection
24954 References
24955 \end_layout
24956
24957 \begin_layout Standard
24958 The complete Literate Programming FAQ can be found at:
24959 \end_layout
24960
24961 \begin_layout Quote
24962 Literate Programming FAQ 
24963 \begin_inset Flex URL
24964 status open
24965
24966 \begin_layout Plain Layout
24967
24968 http://www.literateprogramming.com/lpfaq.pdf
24969 \end_layout
24970
24971 \end_inset
24972
24973
24974 \end_layout
24975
24976 \begin_layout Standard
24977 The FAQ lists 23 (twenty three!) different literate programming tools.
24978  Where some are specialized or 
24979 \begin_inset Quotes eld
24980 \end_inset
24981
24982 tailored
24983 \begin_inset Quotes erd
24984 \end_inset
24985
24986  for particular programming languages, while other have general scope.
24987  I selected 
24988 \noun on
24989 Noweb
24990 \noun default
24991  for my own use for several reasons:
24992 \end_layout
24993
24994 \begin_layout Itemize
24995 It can generate the documentation either in \SpecialChar LaTeX
24996  or HTML.
24997 \end_layout
24998
24999 \begin_layout Itemize
25000 It has a open architecture, i.
25001 \begin_inset space \thinspace{}
25002 \end_inset
25003
25004 e.
25005 \begin_inset space \space{}
25006 \end_inset
25007
25008 it is easy to plug in new filters
25009 \change_inserted -712698321 1501229014
25010
25011 \begin_inset Foot
25012 status collapsed
25013
25014 \begin_layout Plain Layout
25015
25016 \change_inserted -712698321 1501229136
25017
25018 \emph on
25019 Filters 
25020 \emph default
25021 are programs that read a given data stream and output a manipulated data
25022  stream.
25023  That way, a WEB file (consisting of literate code) can be turned into a
25024  file consisting only of C program code or \SpecialChar LaTeX
25025  code.
25026 \end_layout
25027
25028 \end_inset
25029
25030
25031 \change_unchanged
25032  and to perform special processing that you may need.
25033  
25034 \end_layout
25035
25036 \begin_layout Itemize
25037 There is a good selection of filters available already (the HTML is one
25038  of them).
25039 \end_layout
25040
25041 \begin_layout Itemize
25042 It is free.
25043 \end_layout
25044
25045 \begin_layout Standard
25046 The Noweb web page can be found at: 
25047 \end_layout
25048
25049 \begin_layout Quote
25050 Noweb home page 
25051 \begin_inset Flex URL
25052 status collapsed
25053
25054 \begin_layout Plain Layout
25055
25056 http://www.cs.virginia.edu/~nr/noweb/
25057 \end_layout
25058
25059 \end_inset
25060
25061
25062 \end_layout
25063
25064 \begin_layout Standard
25065 Starting from there you can reach many other interesting links and even
25066  some literate program examples.
25067 \end_layout
25068
25069 \begin_layout Subsection
25070 \SpecialChar LyX
25071  and Literate Programming with Noweb
25072 \end_layout
25073
25074 \begin_layout Standard
25075 The \SpecialChar LyX
25076  support for Literate Programming is provided by using the generic \SpecialChar LyX
25077
25078  converters mechanism.
25079  This support is provided in a 
25080 \begin_inset Quotes eld
25081 \end_inset
25082
25083 Noweb independent
25084 \begin_inset Quotes erd
25085 \end_inset
25086
25087  way, i.
25088 \begin_inset space \thinspace{}
25089 \end_inset
25090
25091 e.
25092 \begin_inset space \space{}
25093 \end_inset
25094
25095 you will be able to use this new \SpecialChar LyX
25096  feature with some other literate programming
25097  tool of your choice by just changing your \SpecialChar LyX
25098  preferences.
25099 \end_layout
25100
25101 \begin_layout Subsubsection
25102 Generating documents and code (weaving and tangling)
25103 \end_layout
25104
25105 \begin_layout Paragraph
25106 Using the noweb module
25107 \end_layout
25108
25109 \begin_layout Standard
25110 If you have installed Noweb and \SpecialChar LyX
25111  successfully, whenever you open a new document,
25112  after you have chosen its document class, use the 
25113 \family sans
25114 Document
25115 \change_deleted -712698321 1501229457
25116 ->
25117 \change_inserted -712698321 1501229457
25118 \SpecialChar menuseparator
25119
25120 \change_unchanged
25121 Settings
25122 \family default
25123  menu to add the 
25124 \begin_inset Quotes eld
25125 \end_inset
25126
25127 noweb
25128 \begin_inset Quotes erd
25129 \end_inset
25130
25131  module.
25132  If Noweb is correctly installed, when you click on the 
25133 \begin_inset Quotes eld
25134 \end_inset
25135
25136 Modules
25137 \begin_inset Quotes erd
25138 \end_inset
25139
25140  link, you will see the 
25141 \begin_inset Quotes eld
25142 \end_inset
25143
25144 noweb
25145 \begin_inset Quotes erd
25146 \end_inset
25147
25148  module in the available list and you can add it to your document.
25149 \end_layout
25150
25151 \begin_layout Paragraph
25152 Typing code in
25153 \end_layout
25154
25155 \begin_layout Standard
25156 \SpecialChar LyX
25157  enables you to write code with a 
25158 \change_deleted -712698321 1501229783
25159 layout
25160 \change_inserted -712698321 1501229785
25161 custom inset
25162 \change_unchanged
25163  named 
25164 \begin_inset Flex Noun
25165 status collapsed
25166
25167 \begin_layout Plain Layout
25168 Chunk
25169 \end_layout
25170
25171 \end_inset
25172
25173 .
25174  Noweb delimits chunks like this:
25175 \end_layout
25176
25177 \begin_layout LyX-Code
25178 <<My code>>=
25179 \end_layout
25180
25181 \begin_layout LyX-Code
25182   code
25183 \end_layout
25184
25185 \begin_layout LyX-Code
25186   more code
25187 \end_layout
25188
25189 \begin_layout LyX-Code
25190   even more code
25191 \end_layout
25192
25193 \begin_layout LyX-Code
25194   @
25195 \end_layout
25196
25197 \begin_layout Standard
25198 The problem is that whatever is written in between the << and the 
25199 \family typewriter
25200 @
25201 \family default
25202  must be taken literally, i.
25203 \begin_inset space \thinspace{}
25204 \end_inset
25205
25206 e.
25207 \begin_inset space \space{}
25208 \end_inset
25209
25210 \SpecialChar LyX
25211  should be prevented from making any special interpretation of what has
25212  been written.
25213  This is also handled by 
25214 \begin_inset Flex Noun
25215 status collapsed
25216
25217 \begin_layout Plain Layout
25218 Chunk
25219 \end_layout
25220
25221 \end_inset
25222
25223 , that works like a normal 
25224 \change_deleted -712698321 1501229871
25225 paragraph
25226 \change_inserted -712698321 1501229873
25227 text inset
25228 \change_unchanged
25229  but has a free spacing capability.
25230 \end_layout
25231
25232 \begin_layout Standard
25233 As a special note, you can also use the 
25234 \begin_inset Quotes eld
25235 \end_inset
25236
25237 %def
25238 \begin_inset Quotes erd
25239 \end_inset
25240
25241  construct of Noweb in your chunks to add items to Noweb's identifier cross-refe
25242 rence:
25243 \end_layout
25244
25245 \begin_layout LyX-Code
25246 <<My chunk>>=
25247 \end_layout
25248
25249 \begin_layout LyX-Code
25250 def some_function(args):
25251 \end_layout
25252
25253 \begin_layout LyX-Code
25254    "This is the doc string for this function."
25255 \end_layout
25256
25257 \begin_layout LyX-Code
25258    print "My args: ", args
25259 \end_layout
25260
25261 \begin_layout LyX-Code
25262 @ %def some_function
25263 \end_layout
25264
25265 \begin_layout Standard
25266 For an example of this usage and the resulting cross-reference output, look
25267  at the Literate python program in 
25268 \emph on
25269 LIBDIR/examples/listerrors.lyx
25270 \emph default
25271  which should make this all clear.
25272 \end_layout
25273
25274 \begin_layout Paragraph
25275 Generating the documentation
25276 \end_layout
25277
25278 \begin_layout Standard
25279 At this point you already have a new document file with a proper document
25280  class, and with some code and text on it.
25281  How do I print it? The answer is simple, you select 
25282 \family sans
25283 View\SpecialChar menuseparator
25284 DVI,
25285 \family default
25286  etc.
25287  Just like you would do for a plain document.
25288  No special procedure is required.
25289 \end_layout
25290
25291 \begin_layout Standard
25292 To help orientate you, I will now explain what happens inside \SpecialChar LyX
25293 :
25294 \end_layout
25295
25296 \begin_layout Enumerate
25297 When the 
25298 \family sans
25299 Update\SpecialChar menuseparator
25300 DVI
25301 \family default
25302  menu option is chosen, a \SpecialChar LaTeX
25303  file is generated.
25304  
25305 \end_layout
25306
25307 \begin_deeper
25308 \begin_layout Standard
25309 If the document is of any literate class the generated file will be named
25310  with an extension name defined by the 
25311 \begin_inset Quotes eld
25312 \end_inset
25313
25314 literate
25315 \begin_inset Quotes erd
25316 \end_inset
25317
25318  format (defined in the Preferences panel), otherwise the file will have
25319  the usual 
25320 \family typewriter
25321 .tex
25322 \family default
25323  extension.
25324 \end_layout
25325
25326 \end_deeper
25327 \begin_layout Enumerate
25328 Note that the only difference so far is in the name of the file, no special
25329  processing is required by \SpecialChar LyX
25330 .
25331  Given that you formatted the code using the 
25332 \begin_inset Flex Noun
25333 status collapsed
25334
25335 \begin_layout Plain Layout
25336 Chunk
25337 \end_layout
25338
25339 \end_inset
25340
25341  
25342 \change_deleted -712698321 1501230025
25343 layout 
25344 \change_inserted -712698321 1501230027
25345 inset 
25346 \change_unchanged
25347 that, by itself, takes care of the business.
25348 \end_layout
25349
25350 \begin_layout Enumerate
25351 If the document is of any literate class \SpecialChar LyX
25352  will then use the internal \SpecialChar LyX
25353  to
25354  Noweb converter, followed by the Noweb to \SpecialChar LaTeX
25355  converter
25356 \begin_inset Foot
25357 status collapsed
25358
25359 \begin_layout Plain Layout
25360 The converters are defined in the 
25361 \family sans
25362 Tools\SpecialChar menuseparator
25363 Preferences
25364 \family default
25365  panel, under the 
25366 \begin_inset Quotes eld
25367 \end_inset
25368
25369 Conversion
25370 \begin_inset Quotes erd
25371 \end_inset
25372
25373  tab.
25374  See section 
25375 \emph on
25376 Converters
25377 \emph default
25378  of the 
25379 \emph on
25380 Customization
25381 \emph default
25382  manual for general information about converters.
25383 \end_layout
25384
25385 \end_inset
25386
25387  to generate the \SpecialChar LaTeX
25388  file.
25389 \end_layout
25390
25391 \begin_deeper
25392 \begin_layout Standard
25393 Otherwise it will just skip this step.
25394 \end_layout
25395
25396 \end_deeper
25397 \begin_layout Enumerate
25398 Finally, \SpecialChar LaTeX
25399  is invoked and the regular post processing continues as in a plain
25400  document.
25401 \end_layout
25402
25403 \begin_layout Standard
25404 Independence from a particular 
25405 \begin_inset Quotes eld
25406 \end_inset
25407
25408 literate tool
25409 \begin_inset Quotes erd
25410 \end_inset
25411
25412  is easily achieved by changing the commands that are run by the various
25413  converters.
25414 \end_layout
25415
25416 \begin_layout Paragraph
25417 Generating the code
25418 \end_layout
25419
25420 \begin_layout Standard
25421 When the build menu option is chosen or the corresponding button in the
25422  toolbar is pressed, a \SpecialChar LaTeX
25423  file is generated just like step 1 above.
25424  Next, \SpecialChar LyX
25425  invokes the 
25426 \family typewriter
25427 Noweb->Program
25428 \family default
25429  converter.
25430  This converter needs to be defined by the user and is not installed by
25431  default, though the Program format is.
25432  This converter (like any other converter) will have two parts:
25433 \end_layout
25434
25435 \begin_layout Enumerate
25436 The converter program itself.
25437  This program performs the conversion from the one format to the other (in
25438  this case, from the Noweb format to the Program pseudo-format).
25439 \end_layout
25440
25441 \begin_layout Enumerate
25442 The error log parser.
25443  This is a program whose sole purpose is to rewrite error messages in a
25444  format that \SpecialChar LyX
25445  understands.
25446  This makes it possible for \SpecialChar LyX
25447  to place error boxes in the right places in
25448  the file buffer.
25449 \end_layout
25450
25451 \begin_layout Standard
25452 The first part, the 
25453 \begin_inset Quotes eld
25454 \end_inset
25455
25456 Converter
25457 \begin_inset Quotes erd
25458 \end_inset
25459
25460  setting, should be set to
25461 \change_inserted -712698321 1501230220
25462
25463 \end_layout
25464
25465 \begin_layout LyX-Code
25466
25467 \change_deleted -712698321 1501230232
25468 \begin_inset Newline newline
25469 \end_inset
25470
25471
25472 \begin_inset Quotes eld
25473 \end_inset
25474
25475
25476 \change_unchanged
25477
25478 \family typewriter
25479 build-script $$i
25480 \family default
25481  $$r
25482 \change_deleted -712698321 1501230236
25483
25484 \begin_inset Quotes erd
25485 \end_inset
25486
25487 .
25488 \begin_inset Newline newline
25489 \end_inset
25490
25491
25492 \change_inserted -712698321 1501230224
25493
25494 \end_layout
25495
25496 \begin_layout Standard
25497 This basically means that \SpecialChar LyX
25498  will call 
25499 \begin_inset Quotes eld
25500 \end_inset
25501
25502 build-script
25503 \begin_inset Quotes erd
25504 \end_inset
25505
25506  (a program or script) with the name of the Noweb file (normally a file
25507  in the \SpecialChar LyX
25508  temp directory) and the directory path of the original \SpecialChar LyX
25509  file.
25510  
25511 \end_layout
25512
25513 \begin_layout Standard
25514 This is an implementation of 
25515 \begin_inset Quotes eld
25516 \end_inset
25517
25518 build-script
25519 \begin_inset Quotes erd
25520 \end_inset
25521
25522  that you can place in a directory on your path:
25523 \end_layout
25524
25525 \begin_layout Standard
25526
25527 \change_deleted -712698321 1501230298
25528 \begin_inset VSpace defskip
25529 \end_inset
25530
25531
25532 \change_unchanged
25533
25534 \end_layout
25535
25536 \begin_layout Standard
25537
25538 \change_deleted -712698321 1501230296
25539 \begin_inset Newpage pagebreak
25540 \end_inset
25541
25542
25543 \change_unchanged
25544
25545 \end_layout
25546
25547 \begin_layout LyX-Code
25548
25549 \family sans
25550 #!/bin/sh
25551 \end_layout
25552
25553 \begin_layout LyX-Code
25554
25555 \family sans
25556 #
25557 \end_layout
25558
25559 \begin_layout LyX-Code
25560
25561 \family sans
25562 notangle -Rbuild-script $1 | env NOWEB_SOURCE=$1 NOWEB_OUTPUT_DIR=$2 sh
25563 \end_layout
25564
25565 \begin_layout Standard
25566
25567 \change_deleted -712698321 1501230299
25568 \begin_inset VSpace defskip
25569 \end_inset
25570
25571
25572 \change_unchanged
25573
25574 \end_layout
25575
25576 \begin_layout Standard
25577 The next part of the converter setting is the 
25578 \begin_inset Quotes eld
25579 \end_inset
25580
25581 Flags
25582 \begin_inset Quotes erd
25583 \end_inset
25584
25585  which is to be set to
25586 \change_inserted -712698321 1501230552
25587
25588 \end_layout
25589
25590 \begin_layout LyX-Code
25591
25592 \change_deleted -712698321 1501230577
25593 \begin_inset Newline newline
25594 \end_inset
25595
25596
25597 \begin_inset Quotes eld
25598 \end_inset
25599
25600
25601 \change_unchanged
25602
25603 \family typewriter
25604 parselog=$$s/scripts/listerrors
25605 \change_deleted -712698321 1501230575
25606
25607 \family default
25608
25609 \begin_inset Quotes erd
25610 \end_inset
25611
25612 .
25613 \begin_inset Newline newline
25614 \end_inset
25615
25616
25617 \change_inserted -712698321 1501230544
25618
25619 \end_layout
25620
25621 \begin_layout Standard
25622 This will run any errors that are generated by the 
25623 \begin_inset Quotes eld
25624 \end_inset
25625
25626 build-script
25627 \begin_inset Quotes erd
25628 \end_inset
25629
25630  process through the 
25631 \begin_inset Quotes eld
25632 \end_inset
25633
25634 listerrors
25635 \begin_inset Quotes erd
25636 \end_inset
25637
25638  program.
25639 \end_layout
25640
25641 \begin_layout Standard
25642 The build will normally take place in \SpecialChar LyX
25643 's temporary directory, so the files
25644  produced by the conversion will be in that directory.
25645  \SpecialChar LyX
25646  will copy out what it regards as the `main' file, but the 
25647 \family typewriter
25648 Noweb->Program
25649 \family default
25650  conversion may produce several files, and so most of these would then be
25651  deleted when \SpecialChar LyX
25652  was closed.
25653  This is why we pass in the NOWEB_OUTPUT_DIR environment variable so that
25654  the build-script chunk can place the generated files in that location.
25655 \end_layout
25656
25657 \begin_layout Paragraph
25658 Build instructions in the document
25659 \end_layout
25660
25661 \begin_layout Standard
25662 The last piece of the integration between \SpecialChar LyX
25663  and noweb is the 
25664 \begin_inset Quotes eld
25665 \end_inset
25666
25667 build-script
25668 \begin_inset Quotes erd
25669 \end_inset
25670
25671  chunk.
25672  Generally, the instructions for building your program should be embedded
25673  in a chunk of its own.
25674  The noweb-specific 
25675 \begin_inset Quotes eld
25676 \end_inset
25677
25678 build-script
25679 \begin_inset Quotes erd
25680 \end_inset
25681
25682  above uses the notangle command to look for this chunk (called 
25683 \begin_inset Quotes eld
25684 \end_inset
25685
25686 build-script
25687 \begin_inset Quotes erd
25688 \end_inset
25689
25690 ) and runs its contents through 
25691 \begin_inset Quotes eld
25692 \end_inset
25693
25694 sh
25695 \begin_inset Quotes erd
25696 \end_inset
25697
25698 .
25699 \end_layout
25700
25701 \begin_layout Standard
25702 Typically, such a chunk would look something like this:
25703 \end_layout
25704
25705 \begin_layout LyX-Code
25706 <<build-script>>=
25707 \end_layout
25708
25709 \begin_layout LyX-Code
25710 #!/bin/sh
25711 \begin_inset Newline newline
25712 \end_inset
25713
25714 if [ -z "${NOWEB_SOURCE}" ]
25715 \begin_inset Newline newline
25716 \end_inset
25717
25718 then
25719 \end_layout
25720
25721 \begin_layout LyX-Code
25722 NOWEB_SOURCE=myfile.nw
25723 \begin_inset Newline newline
25724 \end_inset
25725
25726 fi
25727 \begin_inset Newline newline
25728 \end_inset
25729
25730 [...
25731  code to extract files ...
25732  use NOWEB_OUTPUT_DIR here ...]
25733 \begin_inset Newline newline
25734 \end_inset
25735
25736 [...
25737  code to compile files ...]
25738 \begin_inset Newline newline
25739 \end_inset
25740
25741 @
25742 \end_layout
25743
25744 \begin_layout Standard
25745 Look in 
25746 \emph on
25747 LIBDIR/examples/listerrors.lyx
25748 \emph default
25749  or in 
25750 \emph on
25751 LIBDIR/examples/Literate.lyx
25752 \emph default
25753  which implement two versions of the 
25754 \begin_inset Quotes eld
25755 \end_inset
25756
25757 listerrors
25758 \begin_inset Quotes erd
25759 \end_inset
25760
25761  program for some illustrations of how all of these pieces go together or
25762  in 
25763 \emph on
25764 LIBDIR/examples/noweb2lyx.lyx.
25765
25766 \emph default
25767  Interestingly, these three files show off the language-indepence of the
25768  \SpecialChar LyX
25769  literate programming support since they are written in Python, C and Perl
25770  respectively.
25771 \end_layout
25772
25773 \begin_layout Subsubsection
25774 Configuring \SpecialChar LyX
25775
25776 \end_layout
25777
25778 \begin_layout Standard
25779 All the Literate Programming support is configured by the 
25780 \family sans
25781 Tools\SpecialChar menuseparator
25782 Preferences
25783 \family default
25784  panel in the 
25785 \begin_inset Quotes eld
25786 \end_inset
25787
25788 File Handling
25789 \begin_inset Quotes erd
25790 \end_inset
25791
25792  tab.
25793  The important parts are:
25794 \end_layout
25795
25796 \begin_layout Description
25797 the
25798 \begin_inset space ~
25799 \end_inset
25800
25801
25802 \begin_inset Quotes eld
25803 \end_inset
25804
25805 NoWeb
25806 \begin_inset Quotes erd
25807 \end_inset
25808
25809
25810 \begin_inset space ~
25811 \end_inset
25812
25813 format Set up via the File Formats tab, this is where the Noweb-specific
25814  pieces are set up.
25815  The 
25816 \family sans
25817 GUI Name
25818 \family default
25819  is set to 
25820 \family typewriter
25821 NoWeb
25822 \family default
25823 , the file extension is set to 
25824 \family typewriter
25825 .nw
25826 \family default
25827 .
25828  This tells \SpecialChar LyX
25829  to create a file with a 
25830 \family typewriter
25831 .nw
25832 \family default
25833  extension in the first step of the conversion process.
25834 \end_layout
25835
25836 \begin_layout Description
25837 the
25838 \begin_inset space ~
25839 \end_inset
25840
25841
25842 \family sans
25843 Program
25844 \family default
25845
25846 \begin_inset space ~
25847 \end_inset
25848
25849 format This is an empty format whose sole purpose is to be the endpoint
25850  of a conversion (which then allows us to set up a converter for it).
25851 \end_layout
25852
25853 \begin_layout Description
25854
25855 \family sans
25856 NoWeb
25857 \family default
25858 ->
25859 \family sans
25860 \SpecialChar LaTeX
25861
25862 \family default
25863  This converter performs the 
25864 \begin_inset Quotes eld
25865 \end_inset
25866
25867 weaving
25868 \begin_inset Quotes erd
25869 \end_inset
25870
25871  of the literate document.
25872  For Noweb, it is set to 
25873 \begin_inset Quotes eld
25874 \end_inset
25875
25876
25877 \family typewriter
25878 noweave -delay -index $$i > $$o
25879 \family default
25880
25881 \begin_inset Quotes erd
25882 \end_inset
25883
25884
25885 \end_layout
25886
25887 \begin_layout Description
25888
25889 \family sans
25890 NoWeb
25891 \family default
25892 ->
25893 \family sans
25894 Program
25895 \family default
25896  This performs the 
25897 \begin_inset Quotes eld
25898 \end_inset
25899
25900 tangling step
25901 \begin_inset Quotes erd
25902 \end_inset
25903
25904 .
25905  As stated above, the Converter is set to 
25906 \begin_inset Quotes eld
25907 \end_inset
25908
25909
25910 \family typewriter
25911 build-script $$i
25912 \family default
25913  $$r
25914 \begin_inset Quotes erd
25915 \end_inset
25916
25917 , with Flags set to
25918 \begin_inset Newline newline
25919 \end_inset
25920
25921
25922 \begin_inset Quotes eld
25923 \end_inset
25924
25925
25926 \family typewriter
25927 parselog=$$s/scripts/listerrors
25928 \family default
25929
25930 \begin_inset Quotes erd
25931 \end_inset
25932
25933 .
25934 \end_layout
25935
25936 \begin_layout Subsubsection
25937 Debug extensions
25938 \end_layout
25939
25940 \begin_layout Standard
25941 There is also a new function implemented in the \SpecialChar LyX
25942  server, the 
25943 \begin_inset Quotes eld
25944 \end_inset
25945
25946 server-goto-file-row" function, to be used with ddd/gdb or other debugger.
25947  
25948 \end_layout
25949
25950 \begin_layout Standard
25951 When debugging code with ddd/gdb, it is possible to invoke a text editor
25952  at the current execution position with a single key stroke.
25953  The default ddd configuration for that is shift-ctrl-V.
25954  It happens that you can define the editor command line invocation in ddd
25955  by accessing the 
25956 \family sans
25957 Edit\SpecialChar menuseparator
25958 Preferences\SpecialChar menuseparator
25959 Helpers
25960 \family default
25961  dialog and changing the "Edit Sources" entry.
25962 \end_layout
25963
25964 \begin_layout Standard
25965 I take advantage of the newly created \SpecialChar LyX
25966  server function and this ddd feature,
25967  and set 
25968 \begin_inset Quotes eld
25969 \end_inset
25970
25971 Edit Sources
25972 \begin_inset Quotes erd
25973 \end_inset
25974
25975  to:
25976 \end_layout
25977
25978 \begin_layout Standard
25979
25980 \change_deleted -712698321 1501232274
25981 \begin_inset VSpace defskip
25982 \end_inset
25983
25984
25985 \change_inserted -712698321 1501232276
25986
25987 \end_layout
25988
25989 \begin_layout LyX-Code
25990
25991 \size footnotesize
25992 echo "LYXCMD:monitor:server-goto-file-row:@FILE@ @LINE@" >~/.lyxpipe.in
25993 \end_layout
25994
25995 \begin_layout Standard
25996
25997 \change_deleted -712698321 1501232278
25998 \begin_inset VSpace defskip
25999 \end_inset
26000
26001
26002 \change_unchanged
26003
26004 \end_layout
26005
26006 \begin_layout Standard
26007 With this, whenever you are using ddd and find a point in the program that
26008  you want to edit, you just press shift-ctrl-V (in the ddd window), and
26009  ddd will forward this information to \SpecialChar LyX
26010  through the \SpecialChar LyX
26011  server and then the
26012  \SpecialChar LyX
26013  window will show the same file with the cursor at the same position ddd
26014  was pointing to.
26015  No more guessing or long scrolling to locate a point in the program back
26016  from debugging !
26017 \end_layout
26018
26019 \begin_layout Standard
26020 Note however that you must enable the \SpecialChar LyX
26021  server to get this feature working
26022  (it is disabled by default).
26023  
26024 \change_deleted -712698321 1501232597
26025 You can enable it in 
26026 \family sans
26027 Preferences
26028 \family default
26029  (tabs 
26030 \family sans
26031 Inputs
26032 \family default
26033
26034 \family sans
26035 Paths
26036 \family default
26037 ) by entering in the 
26038 \family sans
26039 \SpecialChar LyX
26040 server pipe
26041 \family default
26042  a path like 
26043 \begin_inset Quotes eld
26044 \end_inset
26045
26046
26047 \family typewriter
26048 /home/<your-home-directory>/.lyx/lyxpipe
26049 \family default
26050
26051 \begin_inset Quotes erd
26052 \end_inset
26053
26054
26055 \end_layout
26056
26057 \begin_layout Standard
26058
26059 \change_inserted -712698321 1501232576
26060 Sec.
26061 \begin_inset space ~
26062 \end_inset
26063
26064
26065 \begin_inset CommandInset ref
26066 LatexCommand ref
26067 reference "sec:Starting-the-Server"
26068
26069 \end_inset
26070
26071  explains how to do that
26072 \change_deleted -712698321 1501232579
26073 Read the \SpecialChar LyX
26074  server documentation in the 
26075 \emph on
26076 Customization Manual
26077 \emph default
26078  for further information
26079 \change_unchanged
26080 .
26081 \end_layout
26082
26083 \begin_layout Subsubsection
26084 Toolbar extensions
26085 \end_layout
26086
26087 \begin_layout Standard
26088 There are six new buttons that can be added to your \SpecialChar LyX
26089  toolbar.
26090  
26091 \change_deleted -712698321 1501232976
26092 Five
26093 \change_inserted -712698321 1501232977
26094 Four
26095 \change_unchanged
26096  of these buttons are short cuts to layout styles: 
26097 \family sans
26098 Standard
26099 \family default
26100
26101 \family sans
26102 Section
26103 \family default
26104
26105 \family sans
26106 \SpecialChar LaTeX
26107
26108 \family default
26109 ,
26110 \change_inserted -712698321 1501232982
26111  and
26112 \change_unchanged
26113  
26114 \family sans
26115 \SpecialChar LyX
26116 -Code
26117 \family default
26118
26119 \change_deleted -712698321 1501232984
26120 and
26121 \change_inserted -712698321 1501232988
26122 one f
26123 \change_inserted 34634807 1501446371
26124 o
26125 \change_deleted 34634807 1501446371
26126 p
26127 \change_inserted -712698321 1501232988
26128 r the custom inset
26129 \change_unchanged
26130  
26131 \family sans
26132 Chunk
26133 \family default
26134 .
26135  The last one is a short cut to the 
26136 \begin_inset Quotes eld
26137 \end_inset
26138
26139 Build Program
26140 \begin_inset Quotes erd
26141 \end_inset
26142
26143  File menu entry.
26144  
26145 \end_layout
26146
26147 \begin_layout Standard
26148 \SpecialChar LyX
26149  has a range of buttons that are available for tool bar customization.
26150  In my toolbar I like to combine the six short cuts above with two more:
26151  One for 
26152 \family sans
26153 Document
26154 \family default
26155 \SpecialChar menuseparator
26156
26157 \family sans
26158 Update
26159 \family default
26160 \SpecialChar menuseparator
26161
26162 \family sans
26163 DVI
26164 \family default
26165  and the other for 
26166 \family sans
26167 Document\SpecialChar menuseparator
26168 View\SpecialChar menuseparator
26169 DVI
26170 \family default
26171  File menu entries.
26172  Here is how it looks like:
26173 \end_layout
26174
26175 \begin_layout LyX-Code
26176 Toolbar
26177 \end_layout
26178
26179 \begin_layout LyX-Code
26180   Layouts
26181 \end_layout
26182
26183 \begin_layout LyX-Code
26184   Icon "layout Standard"
26185 \end_layout
26186
26187 \begin_layout LyX-Code
26188   Icon "layout Section"
26189 \end_layout
26190
26191 \begin_layout LyX-Code
26192   Icon "layout \SpecialChar LaTeX
26193 "
26194 \end_layout
26195
26196 \begin_layout LyX-Code
26197   Icon "layout \SpecialChar LyX
26198 -Code"
26199 \end_layout
26200
26201 \begin_layout LyX-Code
26202   Icon "
26203 \change_deleted -712698321 1501232918
26204 layout
26205 \change_inserted -712698321 1501232921
26206 flex.insert
26207 \change_unchanged
26208  Chunk"
26209 \end_layout
26210
26211 \begin_layout LyX-Code
26212   Separator
26213 \end_layout
26214
26215 \begin_layout LyX-Code
26216   Icon "buffer-view"
26217 \end_layout
26218
26219 \begin_layout LyX-Code
26220   Icon "buffer-typeset"
26221 \end_layout
26222
26223 \begin_layout LyX-Code
26224   Icon "build-program"
26225 \end_layout
26226
26227 \begin_layout LyX-Code
26228   Separator
26229 \end_layout
26230
26231 \begin_layout LyX-Code
26232 .
26233 \end_layout
26234
26235 \begin_layout LyX-Code
26236 .
26237 \end_layout
26238
26239 \begin_layout LyX-Code
26240 .
26241 \end_layout
26242
26243 \begin_layout LyX-Code
26244 End
26245 \end_layout
26246
26247 \begin_layout Subsubsection
26248 Colors customization
26249 \end_layout
26250
26251 \begin_layout Standard
26252 There are a number of colors in \SpecialChar LyX
26253  that can be customized in 
26254 \family sans
26255 Preferences
26256 \family default
26257 .
26258  One of the things that bothers people is the \SpecialChar LaTeX
26259  font color.
26260  The default color is red, since the chunks uses \SpecialChar LaTeX
26261  font, and there is a lot
26262  of chunks in literate documents, you may get tired of seeing everything
26263  in red.
26264  You can change it by going to the tabs 
26265 \family sans
26266 Look&Feel
26267 \family default
26268
26269 \family sans
26270 Colors.
26271 \end_layout
26272
26273 \begin_layout Standard
26274 The next thing is the visible presence of the newline character in the screen.
26275  You can choose the color of this particular character and make it blend
26276  in the background.
26277  I recommend you choosing a color that is close to the background but not
26278  equal, that way you still can see it is there, but it is not bothering
26279  you anymore.
26280 \end_layout
26281
26282 \begin_layout Subsection
26283 \SpecialChar LyX
26284  and knitr/Sweave
26285 \end_layout
26286
26287 \begin_layout Standard
26288 Support for 
26289 \family sans
26290 knitr
26291 \family default
26292  and 
26293 \family sans
26294 Sweave
26295 \family default
26296  is documented in the 
26297 \emph on
26298 knitr.lyx
26299 \emph default
26300  example file and in the Sweave manual (menu 
26301 \family sans
26302 Help\SpecialChar menuseparator
26303 Specific Manuals
26304 \family default
26305 ).
26306 \end_layout
26307
26308 \begin_layout Chapter
26309 Special features
26310 \end_layout
26311
26312 \begin_layout Standard
26313 You can do everything with \SpecialChar LyX
26314  that you can do with \SpecialChar LaTeX
26315 .
26316  However, \SpecialChar LyX
26317  cannot support every \SpecialChar LaTeX
26318  feature directly.
26319  But you can always use \SpecialChar TeX
26320  Code.
26321  This chapter shows you some more special things you might want to use.
26322  For other special things you can do with figures, tables, floats, boxes
26323  and notes, have a look at the 
26324 \emph on
26325 Embedded
26326 \begin_inset space ~
26327 \end_inset
26328
26329 Objects
26330 \emph default
26331  manual.
26332 \end_layout
26333
26334 \begin_layout Section
26335 Multiple Text Columns
26336 \end_layout
26337
26338 \begin_layout Standard
26339 This feature is independent of the option 
26340 \family sans
26341 Two-column document
26342 \family default
26343  in the document settings under 
26344 \family sans
26345 Text Layout
26346 \family default
26347 .
26348  If you want to have 2
26349 \begin_inset space ~
26350 \end_inset
26351
26352 columns for the whole document, it is recommended to use the 
26353 \family sans
26354 Two-column document
26355 \family default
26356  option.
26357  For all other cases use this feature.
26358 \end_layout
26359
26360 \begin_layout Standard
26361 To use multiple text columns in your document, you have to load the module
26362  
26363 \family sans
26364 Multiple Columns
26365 \family default
26366  (menu 
26367 \family sans
26368 Document\SpecialChar menuseparator
26369 Settings\SpecialChar menuseparator
26370 Modules
26371 \family default
26372 ) and must have the \SpecialChar LaTeX
26373 -package 
26374 \change_deleted -712698321 1501235255
26375 multicol
26376 \change_inserted -712698321 1501235255
26377
26378 \begin_inset Flex Code
26379 status collapsed
26380
26381 \begin_layout Plain Layout
26382
26383 \change_inserted -712698321 1501235255
26384 multicol
26385 \change_unchanged
26386
26387 \end_layout
26388
26389 \end_inset
26390
26391
26392 \change_unchanged
26393  installed.
26394 \end_layout
26395
26396 \begin_layout Standard
26397 Footnotes within multiple columns will be placed at the bottom of the page
26398  and not under each column.
26399  Within the different columns you can use everything, with the limitation
26400  that for floats you need to use the float option 
26401 \family sans
26402 Span columns
26403 \family default
26404 .
26405 \end_layout
26406
26407 \begin_layout Subsection
26408 Basics
26409 \end_layout
26410
26411 \begin_layout Standard
26412 If you want to have 2
26413 \begin_inset space ~
26414 \end_inset
26415
26416 columns in your text, insert a multicolumn inset via the menu 
26417 \family sans
26418 Insert\SpecialChar menuseparator
26419 Custom
26420 \begin_inset space ~
26421 \end_inset
26422
26423 Insets\SpecialChar menuseparator
26424 Multiple
26425 \begin_inset space ~
26426 \end_inset
26427
26428 Columns
26429 \family default
26430  where the columns should start.
26431  Write all text that should be printed in 2
26432 \begin_inset space ~
26433 \end_inset
26434
26435 columns into this inset.
26436 \end_layout
26437
26438 \begin_layout Standard
26439 Here is an example:
26440 \end_layout
26441
26442 \begin_layout Standard
26443 \noindent
26444 \begin_inset Flex Multiple Columns
26445 status open
26446
26447 \begin_layout Plain Layout
26448 \noindent
26449
26450 \series bold
26451 \size small
26452 The Adventure of the Empty House
26453 \series default
26454
26455 \begin_inset Newline newline
26456 \end_inset
26457
26458 by Sir Arthur Conan Doyle
26459 \end_layout
26460
26461 \begin_layout Plain Layout
26462
26463 \size small
26464 It was in the spring of the year 1894 that all London was interested, and
26465  the fashionable world dismayed, by the murder of the Honourable Ronald
26466  Adair under most unusual and inexplicable circumstances.
26467  The public has already learned those particulars of the crime which came
26468  out in the police investigation, but a good deal was suppressed upon that
26469  occasion, since the case for the prosecution was so overwhelmingly strong
26470  that it was not necessary to bring forward all the facts.
26471  Only now, at the end of nearly ten years, am I allowed to supply those
26472  missing links which make up the whole of that remarkable chain.
26473  The crime was of interest in itself, but that interest was as nothing to
26474  me compared to the inconceivable sequel, which afforded me the greatest
26475  shock and surprise of any event in my adventurous life.
26476  Even now, after this long interval, I find myself thrilling as I think
26477  of it, and feeling once more that sudden flood of joy, amazement, and increduli
26478 ty which utterly submerged my mind.
26479  Let me say to that public, which has shown some interest in those glimpses
26480  which I have occasionally given them of the thoughts and actions of a very
26481  remarkable man, that they are not to blame me if I have not shared my knowledge
26482  with them, for I should have considered it my first duty to do so, had
26483  I not been barred by a positive prohibition from his own lips, which was
26484  only withdrawn upon the third of last month.
26485 \end_layout
26486
26487 \end_inset
26488
26489
26490 \end_layout
26491
26492 \begin_layout Standard
26493 To get 3 or more columns, set the cursor into the multicolumn inset and
26494  use the menu 
26495 \family sans
26496 Insert\SpecialChar menuseparator
26497 Number
26498 \begin_inset space ~
26499 \end_inset
26500
26501 of
26502 \begin_inset space ~
26503 \end_inset
26504
26505 Columns
26506 \family default
26507 .
26508  The number of the desired columns is written into that inset (for 3
26509 \begin_inset space ~
26510 \end_inset
26511
26512 columns write 
26513 \begin_inset Quotes eld
26514 \end_inset
26515
26516 3
26517 \begin_inset Quotes erd
26518 \end_inset
26519
26520 ).
26521 \begin_inset Newline newline
26522 \end_inset
26523
26524 Here is an example with 3
26525 \begin_inset space ~
26526 \end_inset
26527
26528 columns:
26529 \end_layout
26530
26531 \begin_layout Standard
26532 \begin_inset Flex Multiple Columns
26533 status open
26534
26535 \begin_layout Plain Layout
26536
26537 \size footnotesize
26538 \begin_inset Argument 1
26539 status open
26540
26541 \begin_layout Plain Layout
26542 3
26543 \end_layout
26544
26545 \end_inset
26546
26547 It can be imagined that my close intimacy with Sherlock Holmes had interested
26548  me deeply in crime, and that after his disappearance I never failed to
26549  read with care the various problems which came before the public.
26550  And I even attempted, more than once, for my own private satisfaction,
26551  to employ his methods in their solution, though with indifferent success.
26552  There was none, however, which appealed to me like this tragedy of Ronald
26553  Adair.
26554  As I read the evidence at the inquest, which led up to a verdict of willful
26555  murder against some person or persons unknown, I realized more clearly
26556  than I had ever done the loss which the community had sustained by the
26557  death of Sherlock Holmes.
26558  There were points about this strange business which would, I was sure,
26559  have specially appealed to him, and the efforts of the police would have
26560  been supplemented, or more probably anticipated, by the trained observation
26561  and the alert mind of the first criminal agent in Europe.
26562  All day, as I drove upon my round, I turned over the case in my mind and
26563  found no explanation which appeared to me to be adequate.
26564  At the risk of telling a twice-told tale, I will recapitulate the facts
26565  as they were known to the public at the conclusion of the inquest.
26566 \end_layout
26567
26568 \end_inset
26569
26570
26571 \end_layout
26572
26573 \begin_layout Standard
26574 You can have up to 10
26575 \begin_inset space ~
26576 \end_inset
26577
26578 columns if you want to, but that might not be very pleasant for the readers
26579  of your document.
26580 \end_layout
26581
26582 \begin_layout Standard
26583 \begin_inset Newpage newpage
26584 \end_inset
26585
26586
26587 \end_layout
26588
26589 \begin_layout Subsection
26590 Columns inside Columns
26591 \end_layout
26592
26593 \begin_layout Standard
26594 You can also have columns inside columns:
26595 \end_layout
26596
26597 \begin_layout Standard
26598 \begin_inset Flex Multiple Columns
26599 status open
26600
26601 \begin_layout Plain Layout
26602
26603 \size footnotesize
26604 The Honourable Ronald Adair was the second son of the Earl of Maynooth,
26605  at that time governor of one of the Australian colonies.
26606  Adair's mother had returned from Australia to undergo the operation for
26607  cataract, and she, her son Ronald, and her daughter Hilda were living together
26608  at 427 Park Lane.
26609 \end_layout
26610
26611 \begin_layout Plain Layout
26612 \begin_inset Flex Multiple Columns
26613 status open
26614
26615 \begin_layout Plain Layout
26616
26617 \size footnotesize
26618 The youth moved in the best society–had, so far as was known, no enemies
26619  and no particular vices.
26620  He had been engaged to Miss Edith Woodley, of Carstairs, but the engagement
26621  had been broken off by mutual consent some months before, and there was
26622  no sign that it had left any very profound feeling behind it.
26623  For the rest {sic} the man's life moved in a narrow and conventional circle,
26624  for his habits were quiet and his nature unemotional.
26625  Yet it was upon this easy-going young aristocrat that death came, in most
26626  strange and unexpected form, between the hours of ten and eleven-twenty
26627  on the night of March 30, 1894.
26628 \end_layout
26629
26630 \end_inset
26631
26632
26633 \end_layout
26634
26635 \begin_layout Plain Layout
26636
26637 \size footnotesize
26638 Ronald Adair was fond of cards–playing continually, but never for such stakes
26639  as would hurt him.
26640  He was a member of the Baldwin, the Cavendish, and the Bagatelle card clubs.
26641  It was shown that, after dinner on the day of his death, he had played
26642  a rubber of whist at the latter club.
26643  He had also played there in the afternoon.
26644
26645 \size default
26646  
26647 \size footnotesize
26648 The evidence of those who had played with him– Mr.
26649  Murray, Sir John Hardy, and Colonel Moran–showed that the game was whist,
26650  and that there was a fairly equal fall of the cards.
26651  Adair might have lost five pounds, but not more.
26652  His fortune was a considerable one, and such a loss could not in any way
26653  affect him.
26654  He had played nearly every day at one club or other, but he was a cautious
26655  player, and usually rose a winner.
26656  It came out in evidence that, in partnership with Colonel Moran, he had
26657  actually won as much as four hundred and twenty pounds in a sitting, some
26658  weeks before, from Godfrey Milner and Lord Balmoral.
26659  So much for his recent history as it came out at the inquest.
26660 \end_layout
26661
26662 \end_inset
26663
26664
26665 \end_layout
26666
26667 \begin_layout Subsection
26668 Advanced Examples
26669 \end_layout
26670
26671 \begin_layout Standard
26672 The examples in this section show some more special features of multiple
26673  columns.
26674 \end_layout
26675
26676 \begin_layout Standard
26677 For more features of multiple columns, have a look at the 
26678 \change_deleted -712698321 1501236578
26679 documentation
26680 \change_inserted -712698321 1501236578
26681
26682 \begin_inset CommandInset href
26683 LatexCommand href
26684 name "documentation"
26685 target "http://mirror.ctan.org/macros/latex/required/tools/multicol.pdf"
26686 literal "false"
26687
26688 \end_inset
26689
26690
26691 \change_unchanged
26692  of the \SpecialChar LaTeX
26693 -package 
26694 \change_deleted -712698321 1501235271
26695 multicol
26696 \change_inserted -712698321 1501235271
26697
26698 \begin_inset Flex Code
26699 status collapsed
26700
26701 \begin_layout Plain Layout
26702
26703 \change_inserted -712698321 1501235271
26704 multicol
26705 \change_unchanged
26706
26707 \end_layout
26708
26709 \end_inset
26710
26711
26712 \change_deleted -712698321 1501236609
26713
26714 \begin_inset CommandInset citation
26715 LatexCommand cite
26716 key "multicol"
26717 literal "true"
26718
26719 \end_inset
26720
26721
26722 \change_unchanged
26723 .
26724 \end_layout
26725
26726 \begin_layout Subsubsection
26727 Preface
26728 \end_layout
26729
26730 \begin_layout Standard
26731 To add a preface text for multiple columns, set the cursor into the multicolumn
26732  inset and use the menu 
26733 \family sans
26734 Insert\SpecialChar menuseparator
26735 Preface
26736 \family default
26737 .
26738  Write your preface text into that inset.
26739 \begin_inset Newline newline
26740 \end_inset
26741
26742 This is an example with some preface text:
26743 \end_layout
26744
26745 \begin_layout Standard
26746 \begin_inset VSpace bigskip
26747 \end_inset
26748
26749
26750 \end_layout
26751
26752 \begin_layout Standard
26753 \begin_inset Flex Multiple Columns
26754 status open
26755
26756 \begin_layout Plain Layout
26757 \begin_inset Argument 2
26758 status open
26759
26760 \begin_layout Plain Layout
26761 And the story continues and continues and continues and continues\SpecialChar ldots
26762
26763 \end_layout
26764
26765 \end_inset
26766
26767
26768 \size small
26769 On the evening of the crime, he returned from the club exactly at ten.
26770  His mother and sister were out spending the evening with a relation.
26771  The servant deposed that she heard him enter the front room on the second
26772  floor, generally used as his sitting-room.
26773  She had lit a fire there, and as it smoked she had opened the window.
26774  No sound was heard from the room until eleven-twenty, the hour of the return
26775  of Lady Maynooth and her daughter.
26776  Desiring to say good-night, she attempted to enter her son's room.
26777  The door was locked on the inside, and no answer could be got to their
26778  cries and knocking.
26779  Help was obtained, and the door forced.
26780  The unfortunate young man was found lying near the table.
26781  His head had been horribly mutilated by an expanding revolver bullet, but
26782  no weapon of any sort was to be found in the room.
26783 \end_layout
26784
26785 \end_inset
26786
26787
26788 \end_layout
26789
26790 \begin_layout Standard
26791 You can also use a section heading as the preface if you use a section command
26792  as \SpecialChar TeX
26793  Code.
26794  For example the command
26795 \end_layout
26796
26797 \begin_layout LyX-Code
26798
26799 \backslash
26800 subsection{subsection title}
26801 \end_layout
26802
26803 \begin_layout Standard
26804 creates a subsection.
26805  In this example the preface is a subsubsection:
26806 \end_layout
26807
26808 \begin_layout Standard
26809 \begin_inset Flex Multiple Columns
26810 status open
26811
26812 \begin_layout Plain Layout
26813 \begin_inset Argument 2
26814 status open
26815
26816 \begin_layout Plain Layout
26817 \begin_inset ERT
26818 status collapsed
26819
26820 \begin_layout Plain Layout
26821
26822
26823 \backslash
26824 subsubsection{
26825 \end_layout
26826
26827 \end_inset
26828
26829 This is a subsubsection heading as a preface
26830 \begin_inset ERT
26831 status collapsed
26832
26833 \begin_layout Plain Layout
26834
26835 }
26836 \end_layout
26837
26838 \end_inset
26839
26840
26841 \end_layout
26842
26843 \end_inset
26844
26845
26846 \size small
26847 A minute examination of the circumstances served only to make the case more
26848  complex.
26849  In the first place, no reason could be given why the young man should have
26850  fastened the door upon the inside.
26851  There was the possibility that the murderer had done this, and had afterwards
26852  escaped by the window.
26853  The drop was at least twenty feet, however, and a bed of crocuses in full
26854  bloom lay beneath.
26855  Neither the flowers nor the earth showed any sign of having been disturbed,
26856  nor were there any marks upon the narrow strip of grass which separated
26857  the house from the road.
26858  Apparently, therefore, it was the young man himself who had fastened the
26859  door.
26860  But how did he come by his death? No one could have climbed up to the window
26861  without leaving traces.
26862  Suppose a man had fired through the window, he would indeed be a remarkable
26863  shot who could with a revolver inflict so deadly a wound.
26864  Again, Park Lane is a frequented thoroughfare; there is a cab stand within
26865  a hundred yards of the house.
26866  No one had heard a shot.
26867 \end_layout
26868
26869 \end_inset
26870
26871
26872 \end_layout
26873
26874 \begin_layout Standard
26875 If there is less vertical space than 6
26876 \begin_inset space ~
26877 \end_inset
26878
26879 text lines is left on the page at the beginning of the multiple columns,
26880  a page break will be inserted before the multiple columns.
26881  Depending on the number of lines of the preface text, you might want to
26882  change this space.
26883  This is done by setting the cursor into the mulitcolumn inset behind the
26884  preface (if there is any) and using the menu 
26885 \family sans
26886 Insert\SpecialChar menuseparator
26887 Space
26888 \begin_inset space ~
26889 \end_inset
26890
26891 Before
26892 \begin_inset space ~
26893 \end_inset
26894
26895 Page
26896 \begin_inset space ~
26897 \end_inset
26898
26899 Break
26900 \family default
26901 .
26902  Insert into that inset the amount of space like e.
26903 \begin_inset space \thinspace{}
26904 \end_inset
26905
26906 g.
26907 \begin_inset space \space{}
26908 \end_inset
26909
26910
26911 \begin_inset Quotes eld
26912 \end_inset
26913
26914 5cm
26915 \begin_inset Quotes erd
26916 \end_inset
26917
26918 .
26919 \begin_inset Newline newline
26920 \end_inset
26921
26922 In this example the space is set to 7
26923 \begin_inset space ~
26924 \end_inset
26925
26926 text lines by using 
26927 \change_deleted -712698321 1501235295
26928
26929 \begin_inset Quotes eld
26930 \end_inset
26931
26932 7
26933 \backslash
26934 baselineskip
26935 \change_inserted -712698321 1501235293
26936
26937 \begin_inset Flex Code
26938 status collapsed
26939
26940 \begin_layout Plain Layout
26941
26942 \change_inserted -712698321 1501235293
26943 7
26944 \backslash
26945 baselineskip
26946 \change_unchanged
26947
26948 \end_layout
26949
26950 \end_inset
26951
26952
26953 \change_deleted -712698321 1501235296
26954
26955 \begin_inset Quotes erd
26956 \end_inset
26957
26958
26959 \change_unchanged
26960  (where the command 
26961 \change_deleted -712698321 1501235285
26962
26963 \backslash
26964 baselineskip
26965 \change_inserted -712698321 1501235285
26966
26967 \begin_inset Flex Code
26968 status collapsed
26969
26970 \begin_layout Plain Layout
26971
26972 \change_inserted -712698321 1501235285
26973
26974 \backslash
26975 baselineskip
26976 \change_unchanged
26977
26978 \end_layout
26979
26980 \end_inset
26981
26982
26983 \change_unchanged
26984  needs to be inserted as \SpecialChar TeX
26985  code):
26986 \end_layout
26987
26988 \begin_layout Standard
26989 \begin_inset Flex Multiple Columns
26990 status open
26991
26992 \begin_layout Plain Layout
26993 \begin_inset Argument 3
26994 status open
26995
26996 \begin_layout Plain Layout
26997 7
26998 \begin_inset ERT
26999 status collapsed
27000
27001 \begin_layout Plain Layout
27002
27003
27004 \backslash
27005 baselineskip
27006 \end_layout
27007
27008 \end_inset
27009
27010
27011 \end_layout
27012
27013 \end_inset
27014
27015
27016 \size small
27017 On the evening of the crime, he returned from the club exactly at ten.
27018  His mother and sister were out spending the evening with a relation.
27019  The servant deposed that she heard him enter the front room on the second
27020  floor, generally used as his sitting-room.
27021  She had lit a fire there, and as it smoked she had opened the window.
27022  No sound was heard from the room until eleven-twenty, the hour of the return
27023  of Lady Maynooth and her daughter.
27024  Desiring to say good-night, she attempted to enter her son's room.
27025  The door was locked on the inside, and no answer could be got to their
27026  cries and knocking.
27027  Help was obtained, and the door forced.
27028  The unfortunate young man was found lying near the table.
27029  His head had been horribly mutilated by an expanding revolver bullet, but
27030  no weapon of any sort was to be found in the room.
27031 \end_layout
27032
27033 \end_inset
27034
27035
27036 \end_layout
27037
27038 \begin_layout Subsubsection
27039 Surrounding Space
27040 \end_layout
27041
27042 \begin_layout Standard
27043 The amount of space before and after multiple columns can be changed by
27044  changing the length 
27045 \change_deleted -712698321 1501235307
27046
27047 \backslash
27048 multicolsep
27049 \change_inserted -712698321 1501235307
27050
27051 \begin_inset Flex Code
27052 status collapsed
27053
27054 \begin_layout Plain Layout
27055
27056 \change_inserted -712698321 1501235307
27057
27058 \backslash
27059 multicolsep
27060 \change_unchanged
27061
27062 \end_layout
27063
27064 \end_inset
27065
27066
27067 \change_unchanged
27068 .
27069  For example the command
27070 \end_layout
27071
27072 \begin_layout LyX-Code
27073
27074 \backslash
27075 setlength{
27076 \backslash
27077 multicolsep}{3cm}
27078 \end_layout
27079
27080 \begin_layout Standard
27081 in \SpecialChar TeX
27082  Code changes its value to 3
27083 \begin_inset space \thinspace{}
27084 \end_inset
27085
27086 cm.
27087  The change must be made before the multiple columns' start.
27088  The predefined value is 13
27089 \begin_inset space \thinspace{}
27090 \end_inset
27091
27092 pt.
27093 \end_layout
27094
27095 \begin_layout Standard
27096 For this example 
27097 \change_deleted -712698321 1501235314
27098
27099 \backslash
27100 multicolsep
27101 \change_inserted -712698321 1501235315
27102
27103 \begin_inset Flex Code
27104 status collapsed
27105
27106 \begin_layout Plain Layout
27107
27108 \change_inserted -712698321 1501235315
27109
27110 \backslash
27111 multicolsep
27112 \change_unchanged
27113
27114 \end_layout
27115
27116 \end_inset
27117
27118
27119 \change_unchanged
27120  was set to 2.5
27121 \begin_inset space \thinspace{}
27122 \end_inset
27123
27124 cm:
27125 \end_layout
27126
27127 \begin_layout Standard
27128 \begin_inset ERT
27129 status open
27130
27131 \begin_layout Plain Layout
27132
27133
27134 \backslash
27135 setlength{
27136 \backslash
27137 multicolsep}{2.5cm}
27138 \end_layout
27139
27140 \end_inset
27141
27142
27143 \end_layout
27144
27145 \begin_layout Standard
27146 \begin_inset Flex Multiple Columns
27147 status open
27148
27149 \begin_layout Plain Layout
27150
27151 \size small
27152 All day I turned these facts over in my mind, endeavouring to hit upon some
27153  theory which could reconcile them all, and to find that line of least resistanc
27154 e which my poor friend had declared to be the starting-point of every investigat
27155 ion.
27156  I confess that I made little progress.
27157  In the evening I strolled across the Park, and found myself about six o'clock
27158  at the Oxford Street end of Park Lane.
27159  A group of loafers upon the pavements, all staring up at a particular window,
27160  directed me to the house which I had come to see.
27161  A tall, thin man with coloured glasses, whom I strongly suspected of being
27162  a plain-clothes detective, was pointing out some theory of his own, while
27163  the others crowded round to listen to what he said.
27164  I got as near him as I could, but his observations seemed to me to be absurd,
27165  so I withdrew again in some disgust.
27166  As I did so I struck against an elderly, deformed man, who had been behind
27167  me, and I knocked down several books which he was carrying.
27168 \end_layout
27169
27170 \end_inset
27171
27172
27173 \end_layout
27174
27175 \begin_layout Standard
27176 \begin_inset Note Greyedout
27177 status open
27178
27179 \begin_layout Plain Layout
27180
27181 \series bold
27182 Note:
27183 \series default
27184  The values you set with 
27185 \change_inserted -712698321 1501235328
27186
27187 \begin_inset Flex Code
27188 status collapsed
27189
27190 \begin_layout Plain Layout
27191
27192 \change_inserted -712698321 1501235333
27193
27194 \backslash
27195 setlength
27196 \change_unchanged
27197
27198 \end_layout
27199
27200 \end_inset
27201
27202
27203 \change_deleted -712698321 1501235331
27204
27205 \series bold
27206
27207 \backslash
27208 setlength
27209 \change_unchanged
27210
27211 \series default
27212  will be used for all following multiple columns until you change them again.
27213 \end_layout
27214
27215 \end_inset
27216
27217
27218 \end_layout
27219
27220 \begin_layout Standard
27221 \begin_inset ERT
27222 status collapsed
27223
27224 \begin_layout Plain Layout
27225
27226
27227 \backslash
27228 setlength{
27229 \backslash
27230 multicolsep}{13pt}
27231 \end_layout
27232
27233 \end_inset
27234
27235
27236 \begin_inset Note Note
27237 status collapsed
27238
27239 \begin_layout Plain Layout
27240 go back to the default
27241 \end_layout
27242
27243 \end_inset
27244
27245
27246 \end_layout
27247
27248 \begin_layout Standard
27249 \begin_inset Newpage newpage
27250 \end_inset
27251
27252
27253 \end_layout
27254
27255 \begin_layout Subsubsection
27256 Column Breaks
27257 \end_layout
27258
27259 \begin_layout Standard
27260 A column break can be forced by inserting the command 
27261 \change_deleted -712698321 1501235399
27262
27263 \backslash
27264 columnbreak{}
27265 \change_inserted -712698321 1501235399
27266
27267 \begin_inset Flex Code
27268 status collapsed
27269
27270 \begin_layout Plain Layout
27271
27272 \change_inserted -712698321 1501235399
27273
27274 \backslash
27275 columnbreak{}
27276 \change_unchanged
27277
27278 \end_layout
27279
27280 \end_inset
27281
27282
27283 \change_unchanged
27284  as \SpecialChar TeX
27285  Code to that position in the text where the column should be broken.
27286  Note that this leads in most cases to whitespace in the text.
27287 \begin_inset Newline newline
27288 \end_inset
27289
27290 Here is an example:
27291 \end_layout
27292
27293 \begin_layout Standard
27294 \begin_inset Flex Multiple Columns
27295 status open
27296
27297 \begin_layout Plain Layout
27298
27299 \size small
27300 \begin_inset Quotes eld
27301 \end_inset
27302
27303 You're surprised to see me, sir,
27304 \begin_inset Quotes erd
27305 \end_inset
27306
27307  said he, in a strange, croaking voice.
27308 \end_layout
27309
27310 \begin_layout Plain Layout
27311
27312 \size small
27313 I acknowledged that I was.
27314 \end_layout
27315
27316 \begin_layout Plain Layout
27317
27318 \size small
27319 \begin_inset Quotes eld
27320 \end_inset
27321
27322 Well, I've a conscience, sir, and when I chanced to see you go into this
27323  house, as I came hobbling after you, I thought to myself, I'll just step
27324  in and see that kind gentleman, and tell him that if I was a bit gruff
27325  in my manner there was not any harm meant, and that I am much obliged to
27326  him for picking up my books.
27327 \begin_inset Quotes erd
27328 \end_inset
27329
27330
27331 \end_layout
27332
27333 \begin_layout Plain Layout
27334
27335 \size small
27336 \begin_inset Quotes eld
27337 \end_inset
27338
27339 You make too much of a trifle,
27340 \begin_inset Quotes erd
27341 \end_inset
27342
27343  said I.
27344  
27345 \begin_inset Quotes eld
27346 \end_inset
27347
27348 May I ask how you knew who I was?
27349 \begin_inset Quotes erd
27350 \end_inset
27351
27352  AFTER THIS SENTENCE THE COLUMN BREAK IS FORCED.
27353 \begin_inset ERT
27354 status collapsed
27355
27356 \begin_layout Plain Layout
27357
27358
27359 \backslash
27360 columnbreak{}
27361 \end_layout
27362
27363 \end_inset
27364
27365
27366 \end_layout
27367
27368 \begin_layout Plain Layout
27369
27370 \size small
27371 \begin_inset Quotes eld
27372 \end_inset
27373
27374 Well, sir, if it isn't too great a liberty, I am a neighbour of yours, for
27375  you'll find my little bookshop at the corner of Church Street, and very
27376  happy to see you, I am sure.
27377  Maybe you collect yourself, sir.
27378  Here's 
27379 \noun on
27380 British
27381 \begin_inset space ~
27382 \end_inset
27383
27384 Birds
27385 \noun default
27386 , and 
27387 \noun on
27388 Catullus
27389 \noun default
27390 , and 
27391 \noun on
27392 The Holy War
27393 \noun default
27394 –a bargain, every one of them.
27395  With five volumes you could just fill that gap on that second shelf.
27396  It looks untidy, does it not, sir?
27397 \begin_inset Quotes erd
27398 \end_inset
27399
27400
27401 \end_layout
27402
27403 \end_inset
27404
27405
27406 \end_layout
27407
27408 \begin_layout Subsubsection
27409 Column Separation
27410 \end_layout
27411
27412 \begin_layout Standard
27413 The width of the columns is automatically calculated, but you can modify
27414  the space between the columns.
27415  This is done by changing the length 
27416 \change_deleted -712698321 1501235412
27417
27418 \backslash
27419 columnsep
27420 \change_inserted -712698321 1501235412
27421
27422 \begin_inset Flex Code
27423 status collapsed
27424
27425 \begin_layout Plain Layout
27426
27427 \change_inserted -712698321 1501235412
27428
27429 \backslash
27430 columnsep
27431 \change_unchanged
27432
27433 \end_layout
27434
27435 \end_inset
27436
27437
27438 \change_unchanged
27439 .
27440  Its predefined value is 10
27441 \begin_inset space \thinspace{}
27442 \end_inset
27443
27444 pt.
27445  Here is an example where 
27446 \change_deleted -712698321 1501235418
27447
27448 \backslash
27449 columnsep
27450 \change_inserted -712698321 1501235418
27451
27452 \begin_inset Flex Code
27453 status collapsed
27454
27455 \begin_layout Plain Layout
27456
27457 \change_inserted -712698321 1501235418
27458
27459 \backslash
27460 columnsep
27461 \change_unchanged
27462
27463 \end_layout
27464
27465 \end_inset
27466
27467
27468 \change_unchanged
27469  is set to 3
27470 \begin_inset space \thinspace{}
27471 \end_inset
27472
27473 cm:
27474 \end_layout
27475
27476 \begin_layout Standard
27477 \begin_inset ERT
27478 status open
27479
27480 \begin_layout Plain Layout
27481
27482
27483 \backslash
27484 setlength{
27485 \backslash
27486 columnsep}{3cm}
27487 \end_layout
27488
27489 \end_inset
27490
27491
27492 \end_layout
27493
27494 \begin_layout Standard
27495 \begin_inset Flex Multiple Columns
27496 status open
27497
27498 \begin_layout Plain Layout
27499
27500 \size small
27501 My observations of No.
27502 \begin_inset space \space{}
27503 \end_inset
27504
27505 427 Park Lane did little to clear up the problem in which I was interested.
27506  The house was separated from the street by a low wall and railing, the
27507  whole not more than five feet high.
27508  It was perfectly easy, therefore, for anyone to get into the garden, but
27509  the window was entirely inaccessible, since there was no water pipe or
27510  anything which could help the most active man to climb it.
27511  More puzzled than ever, I retraced my steps to Kensington.
27512  I had not been in my study five minutes when the maid entered to say that
27513  a person desired to see me.
27514  To my astonishment it was none other than my strange old book collector,
27515  his sharp, wizened face peering out from a frame of white hair, and his
27516  precious volumes, a dozen of them at least, wedged under his right arm.
27517 \end_layout
27518
27519 \end_inset
27520
27521
27522 \end_layout
27523
27524 \begin_layout Standard
27525 \begin_inset ERT
27526 status collapsed
27527
27528 \begin_layout Plain Layout
27529
27530
27531 \backslash
27532 setlength{
27533 \backslash
27534 columnsep}{10pt}
27535 \end_layout
27536
27537 \end_inset
27538
27539
27540 \begin_inset Note Note
27541 status collapsed
27542
27543 \begin_layout Plain Layout
27544 go back to the default
27545 \end_layout
27546
27547 \end_inset
27548
27549
27550 \end_layout
27551
27552 \begin_layout Subsubsection
27553 Vertical Lines
27554 \end_layout
27555
27556 \begin_layout Standard
27557 Between the columns a rule with a width of the length 
27558 \change_deleted -712698321 1501235428
27559
27560 \backslash
27561 columnseprule
27562 \change_inserted -712698321 1501235428
27563
27564 \begin_inset Flex Code
27565 status collapsed
27566
27567 \begin_layout Plain Layout
27568
27569 \change_inserted -712698321 1501235428
27570
27571 \backslash
27572 columnseprule
27573 \change_unchanged
27574
27575 \end_layout
27576
27577 \end_inset
27578
27579
27580 \change_unchanged
27581  is placed.
27582  If this rule width is set to 0
27583 \begin_inset space \thinspace{}
27584 \end_inset
27585
27586 pt (this is the default), the rule is suppressed.
27587  In the following example the rule is 2
27588 \begin_inset space \thinspace{}
27589 \end_inset
27590
27591 pt wide:
27592 \end_layout
27593
27594 \begin_layout Standard
27595 \begin_inset ERT
27596 status open
27597
27598 \begin_layout Plain Layout
27599
27600
27601 \backslash
27602 setlength{
27603 \backslash
27604 columnseprule}{2pt}
27605 \end_layout
27606
27607 \end_inset
27608
27609
27610 \end_layout
27611
27612 \begin_layout Standard
27613 \begin_inset Flex Multiple Columns
27614 status open
27615
27616 \begin_layout Plain Layout
27617
27618 \size small
27619 \begin_inset Quotes eld
27620 \end_inset
27621
27622 You're surprised to see me, sir,
27623 \begin_inset Quotes erd
27624 \end_inset
27625
27626  said he, in a strange, croaking voice.
27627 \end_layout
27628
27629 \begin_layout Plain Layout
27630
27631 \size small
27632 I acknowledged that I was.
27633 \end_layout
27634
27635 \begin_layout Plain Layout
27636
27637 \size small
27638 \begin_inset Quotes eld
27639 \end_inset
27640
27641 Well, I've a conscience, sir, and when I chanced to see you go into this
27642  house, as I came hobbling after you, I thought to myself, I'll just step
27643  in and see that kind gentleman, and tell him that if I was a bit gruff
27644  in my manner there was not any harm meant, and that I am much obliged to
27645  him for picking up my books.
27646 \begin_inset Quotes erd
27647 \end_inset
27648
27649
27650 \end_layout
27651
27652 \begin_layout Plain Layout
27653
27654 \size small
27655 \begin_inset Quotes eld
27656 \end_inset
27657
27658 You make too much of a trifle,
27659 \begin_inset Quotes erd
27660 \end_inset
27661
27662  said I.
27663  
27664 \begin_inset Quotes eld
27665 \end_inset
27666
27667 May I ask how you knew who I was?
27668 \begin_inset Quotes erd
27669 \end_inset
27670
27671
27672 \end_layout
27673
27674 \begin_layout Plain Layout
27675
27676 \size small
27677 \begin_inset Quotes eld
27678 \end_inset
27679
27680 Well, sir, if it isn't too great a liberty, I am a neighbour of yours, for
27681  you'll find my little bookshop at the corner of Church Street, and very
27682  happy to see you, I am sure.
27683  Maybe you collect yourself, sir.
27684  Here's 
27685 \noun on
27686 British
27687 \begin_inset space ~
27688 \end_inset
27689
27690 Birds
27691 \noun default
27692 , and 
27693 \noun on
27694 Catullus
27695 \noun default
27696 , and 
27697 \noun on
27698 The Holy War
27699 \noun default
27700 –a bargain, every one of them.
27701  With five volumes you could just fill that gap on that second shelf.
27702  It looks untidy, does it not, sir?
27703 \begin_inset Quotes erd
27704 \end_inset
27705
27706
27707 \end_layout
27708
27709 \end_inset
27710
27711
27712 \end_layout
27713
27714 \begin_layout Standard
27715 \begin_inset VSpace defskip
27716 \end_inset
27717
27718
27719 \end_layout
27720
27721 \begin_layout Standard
27722 The rule can be colored by redefining the command 
27723 \change_deleted -712698321 1501235439
27724
27725 \backslash
27726 columnseprulecolor
27727 \change_inserted -712698321 1501235439
27728
27729 \begin_inset Flex Code
27730 status collapsed
27731
27732 \begin_layout Plain Layout
27733
27734 \change_inserted -712698321 1501235439
27735
27736 \backslash
27737 columnseprulecolor
27738 \change_unchanged
27739
27740 \end_layout
27741
27742 \end_inset
27743
27744
27745 \change_unchanged
27746 .
27747  This is done by inserting the command
27748 \change_deleted -712698321 1501235443
27749
27750 \begin_inset Newline newline
27751 \end_inset
27752
27753
27754 \change_inserted -712698321 1501235444
27755
27756 \end_layout
27757
27758 \begin_layout LyX-Code
27759
27760 \backslash
27761 renewcommand{
27762 \backslash
27763 columnseprulecolor}{
27764 \backslash
27765 color{red}}
27766 \change_deleted -712698321 1501235445
27767
27768 \begin_inset Newline newline
27769 \end_inset
27770
27771
27772 \change_inserted -712698321 1501235446
27773
27774 \end_layout
27775
27776 \begin_layout Standard
27777 as \SpecialChar TeX
27778  Code before the multicolumn inset.
27779  Replace 
27780 \change_deleted -712698321 1501235460
27781 red
27782 \change_inserted -712698321 1501235457
27783
27784 \begin_inset Flex Code
27785 status collapsed
27786
27787 \begin_layout Plain Layout
27788
27789 \change_inserted -712698321 1501235462
27790 red
27791 \change_unchanged
27792
27793 \end_layout
27794
27795 \end_inset
27796
27797
27798 \change_unchanged
27799  in this command by a color of your choice.
27800  You can use all pre- and self-defined colors.
27801  See the 
27802 \emph on
27803 EmbeddedObjects
27804 \emph default
27805  manual, section 
27806 \emph on
27807 Colored
27808 \begin_inset space ~
27809 \end_inset
27810
27811 Tables
27812 \emph default
27813  for more information about pre- and self-defined colors.
27814  To go back to the default color insert the command
27815 \change_inserted -712698321 1501235474
27816
27817 \end_layout
27818
27819 \begin_layout LyX-Code
27820
27821 \change_deleted -712698321 1501235472
27822 \begin_inset Newline newline
27823 \end_inset
27824
27825
27826 \change_unchanged
27827
27828 \backslash
27829 renewcommand{
27830 \backslash
27831 columnseprulecolor}{
27832 \backslash
27833 normalcolor}
27834 \change_inserted -712698321 1501235475
27835
27836 \end_layout
27837
27838 \begin_layout Standard
27839
27840 \change_deleted -712698321 1501235473
27841 \begin_inset Newline newline
27842 \end_inset
27843
27844
27845 \change_unchanged
27846 Here is the example with a cyan rule and 1
27847 \begin_inset space \thinspace{}
27848 \end_inset
27849
27850 cm column separation:
27851 \end_layout
27852
27853 \begin_layout Standard
27854 \begin_inset ERT
27855 status open
27856
27857 \begin_layout Plain Layout
27858
27859
27860 \backslash
27861 setlength{
27862 \backslash
27863 columnsep}{1cm}
27864 \end_layout
27865
27866 \begin_layout Plain Layout
27867
27868
27869 \backslash
27870 renewcommand{
27871 \backslash
27872 columnseprulecolor}{
27873 \backslash
27874 color{cyan}}
27875 \end_layout
27876
27877 \end_inset
27878
27879
27880 \end_layout
27881
27882 \begin_layout Standard
27883 \begin_inset Flex Multiple Columns
27884 status open
27885
27886 \begin_layout Plain Layout
27887
27888 \size small
27889 \begin_inset Quotes eld
27890 \end_inset
27891
27892 You're surprised to see me, sir,
27893 \begin_inset Quotes erd
27894 \end_inset
27895
27896  said he, in a strange, croaking voice.
27897 \end_layout
27898
27899 \begin_layout Plain Layout
27900
27901 \size small
27902 I acknowledged that I was.
27903 \end_layout
27904
27905 \begin_layout Plain Layout
27906
27907 \size small
27908 \begin_inset Quotes eld
27909 \end_inset
27910
27911 Well, I've a conscience, sir, and when I chanced to see you go into this
27912  house, as I came hobbling after you, I thought to myself, I'll just step
27913  in and see that kind gentleman, and tell him that if I was a bit gruff
27914  in my manner there was not any harm meant, and that I am much obliged to
27915  him for picking up my books.
27916 \begin_inset Quotes erd
27917 \end_inset
27918
27919
27920 \end_layout
27921
27922 \begin_layout Plain Layout
27923
27924 \size small
27925 \begin_inset Quotes eld
27926 \end_inset
27927
27928 You make too much of a trifle,
27929 \begin_inset Quotes erd
27930 \end_inset
27931
27932  said I.
27933  
27934 \begin_inset Quotes eld
27935 \end_inset
27936
27937 May I ask how you knew who I was?
27938 \begin_inset Quotes erd
27939 \end_inset
27940
27941
27942 \end_layout
27943
27944 \begin_layout Plain Layout
27945
27946 \size small
27947 \begin_inset Quotes eld
27948 \end_inset
27949
27950 Well, sir, if it isn't too great a liberty, I am a neighbour of yours, for
27951  you'll find my little bookshop at the corner of Church Street, and very
27952  happy to see you, I am sure.
27953  Maybe you collect yourself, sir.
27954  Here's 
27955 \noun on
27956 British
27957 \begin_inset space ~
27958 \end_inset
27959
27960 Birds
27961 \noun default
27962 , and 
27963 \noun on
27964 Catullus
27965 \noun default
27966 , and 
27967 \noun on
27968 The Holy War
27969 \noun default
27970 –a bargain, every one of them.
27971  With five volumes you could just fill that gap on that second shelf.
27972  It looks untidy, does it not, sir?
27973 \begin_inset Quotes erd
27974 \end_inset
27975
27976
27977 \end_layout
27978
27979 \end_inset
27980
27981
27982 \end_layout
27983
27984 \begin_layout Standard
27985 \begin_inset ERT
27986 status collapsed
27987
27988 \begin_layout Plain Layout
27989
27990
27991 \backslash
27992 setlength{
27993 \backslash
27994 columnseprule}{0pt}
27995 \end_layout
27996
27997 \begin_layout Plain Layout
27998
27999
28000 \backslash
28001 renewcommand{
28002 \backslash
28003 columnseprulecolor}{
28004 \backslash
28005 normalcolor}
28006 \end_layout
28007
28008 \end_inset
28009
28010
28011 \begin_inset Note Note
28012 status collapsed
28013
28014 \begin_layout Plain Layout
28015 go back to the default
28016 \end_layout
28017
28018 \end_inset
28019
28020
28021 \end_layout
28022
28023 \begin_layout Section
28024 Non-standard Paragraph Shapes
28025 \end_layout
28026
28027 \begin_layout Standard
28028 \noindent
28029 \SpecialChar LaTeX
28030  as well as any other text processor uses by default rectangular paragraphs.
28031  For special cases like for example posters, invitation cards or poems you
28032  can modify the paragraph shape to one of your choice.
28033  This can be done by using the \SpecialChar LaTeX
28034 -package 
28035 \change_deleted -712698321 1501236703
28036 shapepar
28037 \change_inserted -712698321 1501236703
28038
28039 \begin_inset Flex Code
28040 status collapsed
28041
28042 \begin_layout Plain Layout
28043 \noindent
28044
28045 \change_inserted -712698321 1501236703
28046 shapepar
28047 \change_unchanged
28048
28049 \end_layout
28050
28051 \end_inset
28052
28053
28054 \change_unchanged
28055  which is loaded by using in the document settings the module 
28056 \family sans
28057 Custom paragraph shapes
28058 \family default
28059 .
28060 \end_layout
28061
28062 \begin_layout Subsection
28063 Predefined shapes
28064 \end_layout
28065
28066 \begin_layout Standard
28067
28068 \series bold
28069 shapepar
28070 \series default
28071  provides the following shapes:
28072 \end_layout
28073
28074 \begin_layout Standard
28075 \begin_inset Tabular
28076 <lyxtabular version="3" rows="13" columns="3">
28077 <features booktabs="true" islongtable="true" longtabularalignment="center">
28078 <column alignment="left" valignment="middle" width="16col%">
28079 <column alignment="left" valignment="middle" width="40col%">
28080 <column alignment="left" valignment="middle" width="35col%">
28081 <row endhead="true">
28082 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
28083 \begin_inset Text
28084
28085 \begin_layout Plain Layout
28086
28087 \series bold
28088 \size small
28089 Name
28090 \end_layout
28091
28092 \end_inset
28093 </cell>
28094 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
28095 \begin_inset Text
28096
28097 \begin_layout Plain Layout
28098
28099 \series bold
28100 \size small
28101 Description
28102 \end_layout
28103
28104 \end_inset
28105 </cell>
28106 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
28107 \begin_inset Text
28108
28109 \begin_layout Plain Layout
28110
28111 \series bold
28112 \size small
28113 Annotation
28114 \end_layout
28115
28116 \end_inset
28117 </cell>
28118 </row>
28119 <row interlinespace="default">
28120 <cell alignment="left" valignment="top" usebox="none">
28121 \begin_inset Text
28122
28123 \begin_layout Plain Layout
28124
28125 \size small
28126 CDlabel
28127 \end_layout
28128
28129 \end_inset
28130 </cell>
28131 <cell alignment="left" valignment="top" usebox="none">
28132 \begin_inset Text
28133
28134 \begin_layout Plain Layout
28135
28136 \size small
28137 Circle with circular hole (in the size of a CD/DVD)
28138 \end_layout
28139
28140 \end_inset
28141 </cell>
28142 <cell alignment="left" valignment="top" usebox="none">
28143 \begin_inset Text
28144
28145 \begin_layout Plain Layout
28146
28147 \size small
28148 Cannot be scaled, take care there is not too much text
28149 \end_layout
28150
28151 \end_inset
28152 </cell>
28153 </row>
28154 <row interlinespace="default">
28155 <cell alignment="left" valignment="top" usebox="none">
28156 \begin_inset Text
28157
28158 \begin_layout Plain Layout
28159
28160 \size small
28161 Circle
28162 \end_layout
28163
28164 \end_inset
28165 </cell>
28166 <cell alignment="left" valignment="top" usebox="none">
28167 \begin_inset Text
28168
28169 \begin_layout Plain Layout
28170
28171 \size small
28172 Circle
28173 \end_layout
28174
28175 \end_inset
28176 </cell>
28177 <cell alignment="left" valignment="top" usebox="none">
28178 \begin_inset Text
28179
28180 \begin_layout Plain Layout
28181
28182 \size small
28183 Fragile, calculation might fail
28184 \end_layout
28185
28186 \end_inset
28187 </cell>
28188 </row>
28189 <row interlinespace="default">
28190 <cell alignment="left" valignment="top" usebox="none">
28191 \begin_inset Text
28192
28193 \begin_layout Plain Layout
28194
28195 \size small
28196 Diamond
28197 \end_layout
28198
28199 \end_inset
28200 </cell>
28201 <cell alignment="left" valignment="top" usebox="none">
28202 \begin_inset Text
28203
28204 \begin_layout Plain Layout
28205
28206 \size small
28207 Rhomboid (symbolizing a 
28208 \begin_inset Quotes eld
28209 \end_inset
28210
28211 diamond
28212 \begin_inset Quotes erd
28213 \end_inset
28214
28215 )
28216 \end_layout
28217
28218 \end_inset
28219 </cell>
28220 <cell alignment="left" valignment="top" usebox="none">
28221 \begin_inset Text
28222
28223 \begin_layout Plain Layout
28224
28225 \size small
28226 -
28227 \end_layout
28228
28229 \end_inset
28230 </cell>
28231 </row>
28232 <row interlinespace="default">
28233 <cell alignment="left" valignment="top" usebox="none">
28234 \begin_inset Text
28235
28236 \begin_layout Plain Layout
28237
28238 \size small
28239 Heart
28240 \end_layout
28241
28242 \end_inset
28243 </cell>
28244 <cell alignment="left" valignment="top" usebox="none">
28245 \begin_inset Text
28246
28247 \begin_layout Plain Layout
28248
28249 \size small
28250 Heart-like shape
28251 \end_layout
28252
28253 \end_inset
28254 </cell>
28255 <cell alignment="left" valignment="top" usebox="none">
28256 \begin_inset Text
28257
28258 \begin_layout Plain Layout
28259
28260 \size small
28261 -
28262 \end_layout
28263
28264 \end_inset
28265 </cell>
28266 </row>
28267 <row interlinespace="default">
28268 <cell alignment="left" valignment="top" usebox="none">
28269 \begin_inset Text
28270
28271 \begin_layout Plain Layout
28272
28273 \size small
28274 Hexagon
28275 \end_layout
28276
28277 \end_inset
28278 </cell>
28279 <cell alignment="left" valignment="top" usebox="none">
28280 \begin_inset Text
28281
28282 \begin_layout Plain Layout
28283
28284 \size small
28285 Hexagon
28286 \end_layout
28287
28288 \end_inset
28289 </cell>
28290 <cell alignment="left" valignment="top" usebox="none">
28291 \begin_inset Text
28292
28293 \begin_layout Plain Layout
28294
28295 \size small
28296 -
28297 \end_layout
28298
28299 \end_inset
28300 </cell>
28301 </row>
28302 <row interlinespace="default">
28303 <cell alignment="left" valignment="top" usebox="none">
28304 \begin_inset Text
28305
28306 \begin_layout Plain Layout
28307
28308 \size small
28309 Nut
28310 \end_layout
28311
28312 \end_inset
28313 </cell>
28314 <cell alignment="left" valignment="top" usebox="none">
28315 \begin_inset Text
28316
28317 \begin_layout Plain Layout
28318
28319 \size small
28320 Nut for bolt (hexagon with circular hole)
28321 \end_layout
28322
28323 \end_inset
28324 </cell>
28325 <cell alignment="left" valignment="top" usebox="none">
28326 \begin_inset Text
28327
28328 \begin_layout Plain Layout
28329
28330 \size small
28331 -
28332 \end_layout
28333
28334 \end_inset
28335 </cell>
28336 </row>
28337 <row interlinespace="default">
28338 <cell alignment="left" valignment="top" usebox="none">
28339 \begin_inset Text
28340
28341 \begin_layout Plain Layout
28342
28343 \size small
28344 Square
28345 \end_layout
28346
28347 \end_inset
28348 </cell>
28349 <cell alignment="left" valignment="top" usebox="none">
28350 \begin_inset Text
28351
28352 \begin_layout Plain Layout
28353
28354 \size small
28355 Square
28356 \end_layout
28357
28358 \end_inset
28359 </cell>
28360 <cell alignment="left" valignment="top" usebox="none">
28361 \begin_inset Text
28362
28363 \begin_layout Plain Layout
28364
28365 \size small
28366 -
28367 \end_layout
28368
28369 \end_inset
28370 </cell>
28371 </row>
28372 <row interlinespace="default">
28373 <cell alignment="left" valignment="top" usebox="none">
28374 \begin_inset Text
28375
28376 \begin_layout Plain Layout
28377
28378 \size small
28379 Star
28380 \end_layout
28381
28382 \end_inset
28383 </cell>
28384 <cell alignment="left" valignment="top" usebox="none">
28385 \begin_inset Text
28386
28387 \begin_layout Plain Layout
28388
28389 \size small
28390 Five-point star
28391 \end_layout
28392
28393 \end_inset
28394 </cell>
28395 <cell alignment="left" valignment="top" usebox="none">
28396 \begin_inset Text
28397
28398 \begin_layout Plain Layout
28399
28400 \size small
28401 -
28402 \end_layout
28403
28404 \end_inset
28405 </cell>
28406 </row>
28407 <row interlinespace="default">
28408 <cell alignment="left" valignment="top" usebox="none">
28409 \begin_inset Text
28410
28411 \begin_layout Plain Layout
28412
28413 \size small
28414 Candle
28415 \end_layout
28416
28417 \end_inset
28418 </cell>
28419 <cell alignment="left" valignment="top" usebox="none">
28420 \begin_inset Text
28421
28422 \begin_layout Plain Layout
28423
28424 \size small
28425 Burning candle
28426 \end_layout
28427
28428 \end_inset
28429 </cell>
28430 <cell alignment="left" valignment="top" usebox="none">
28431 \begin_inset Text
28432
28433 \begin_layout Plain Layout
28434
28435 \size small
28436 -
28437 \end_layout
28438
28439 \end_inset
28440 </cell>
28441 </row>
28442 <row interlinespace="default">
28443 <cell alignment="left" valignment="top" usebox="none">
28444 \begin_inset Text
28445
28446 \begin_layout Plain Layout
28447
28448 \size small
28449 Drop down/up
28450 \end_layout
28451
28452 \end_inset
28453 </cell>
28454 <cell alignment="left" valignment="top" usebox="none">
28455 \begin_inset Text
28456
28457 \begin_layout Plain Layout
28458
28459 \size small
28460 Normal/reversed rain drop
28461 \end_layout
28462
28463 \end_inset
28464 </cell>
28465 <cell alignment="left" valignment="top" usebox="none">
28466 \begin_inset Text
28467
28468 \begin_layout Plain Layout
28469
28470 \size small
28471 Fragile, calculation might fail
28472 \end_layout
28473
28474 \end_inset
28475 </cell>
28476 </row>
28477 <row interlinespace="default">
28478 <cell alignment="left" valignment="top" usebox="none">
28479 \begin_inset Text
28480
28481 \begin_layout Plain Layout
28482
28483 \size small
28484 \SpecialChar TeX
28485
28486 \end_layout
28487
28488 \end_inset
28489 </cell>
28490 <cell alignment="left" valignment="top" usebox="none">
28491 \begin_inset Text
28492
28493 \begin_layout Plain Layout
28494
28495 \size small
28496 The \SpecialChar TeX
28497  logo
28498 \end_layout
28499
28500 \end_inset
28501 </cell>
28502 <cell alignment="left" valignment="top" usebox="none">
28503 \begin_inset Text
28504
28505 \begin_layout Plain Layout
28506
28507 \size small
28508 -
28509 \end_layout
28510
28511 \end_inset
28512 </cell>
28513 </row>
28514 <row interlinespace="default">
28515 <cell alignment="left" valignment="top" bottomline="true" usebox="none">
28516 \begin_inset Text
28517
28518 \begin_layout Plain Layout
28519
28520 \size small
28521 Triangle up/down/
28522 \begin_inset Newline newline
28523 \end_inset
28524
28525 left/right
28526 \end_layout
28527
28528 \end_inset
28529 </cell>
28530 <cell alignment="left" valignment="top" bottomline="true" usebox="none">
28531 \begin_inset Text
28532
28533 \begin_layout Plain Layout
28534
28535 \size small
28536 Triangles in different orientations
28537 \end_layout
28538
28539 \end_inset
28540 </cell>
28541 <cell alignment="left" valignment="top" bottomline="true" usebox="none">
28542 \begin_inset Text
28543
28544 \begin_layout Plain Layout
28545
28546 \size small
28547 -
28548 \end_layout
28549
28550 \end_inset
28551 </cell>
28552 </row>
28553 </lyxtabular>
28554
28555 \end_inset
28556
28557
28558 \end_layout
28559
28560 \begin_layout Standard
28561 To use a shape for your paragraph, simply select it in \SpecialChar LyX
28562 's pull-down box
28563  for environments in the toolbar.
28564 \end_layout
28565
28566 \begin_layout Standard
28567 \begin_inset Newpage newpage
28568 \end_inset
28569
28570
28571 \end_layout
28572
28573 \begin_layout Standard
28574 Here is an example paragraph in the shape of a nut:
28575 \end_layout
28576
28577 \begin_layout Standard
28578 \begin_inset VSpace bigskip
28579 \end_inset
28580
28581
28582 \end_layout
28583
28584 \begin_layout Nut
28585
28586 \lang latin
28587 Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
28588  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
28589  voluptua.
28590  At vero eos et accusam et justo duo dolores et ea rebum.
28591  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
28592  sit amet.
28593  Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
28594  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
28595  voluptua.
28596 \end_layout
28597
28598 \begin_layout Standard
28599 \begin_inset VSpace bigskip
28600 \end_inset
28601
28602
28603 \end_layout
28604
28605 \begin_layout Standard
28606 \begin_inset Note Greyedout
28607 status open
28608
28609 \begin_layout Plain Layout
28610
28611 \series bold
28612 Note
28613 \series default
28614 : shapepar paragraphs cannot run over a page break.
28615 \end_layout
28616
28617 \end_inset
28618
28619
28620 \end_layout
28621
28622 \begin_layout Standard
28623 \begin_inset VSpace bigskip
28624 \end_inset
28625
28626
28627 \end_layout
28628
28629 \begin_layout Standard
28630
28631 \change_inserted -712698321 1501236716
28632 The package 
28633 \change_deleted -712698321 1501236722
28634 shapepar
28635 \change_inserted -712698321 1501236723
28636
28637 \begin_inset Flex Code
28638 status collapsed
28639
28640 \begin_layout Plain Layout
28641
28642 \change_inserted -712698321 1501236723
28643 shapepar
28644 \change_unchanged
28645
28646 \end_layout
28647
28648 \end_inset
28649
28650
28651 \change_unchanged
28652  takes care that the shape will always be preserved, no matter how much
28653  text is in the paragraph.
28654  Therefore the paragraph size changes with the amount of contained text.
28655  This can lead to paragraph sizes exceeding the page margins.
28656  To demonstrate the size scaling, here is the same example paragraph but
28657  with twice as much text:
28658 \end_layout
28659
28660 \begin_layout Standard
28661 \begin_inset Newpage newpage
28662 \end_inset
28663
28664
28665 \end_layout
28666
28667 \begin_layout Nut
28668
28669 \lang latin
28670 Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
28671  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
28672  voluptua.
28673  At vero eos et accusam et justo duo dolores et ea rebum.
28674  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
28675  sit amet.
28676  Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
28677  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
28678  voluptua.
28679  Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
28680  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
28681  voluptua.
28682  At vero eos et accusam et justo duo dolores et ea rebum.
28683  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
28684  sit amet.
28685  Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
28686  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
28687  voluptua.
28688 \end_layout
28689
28690 \begin_layout Standard
28691 \begin_inset VSpace bigskip
28692 \end_inset
28693
28694
28695 \end_layout
28696
28697 \begin_layout Standard
28698 An exception is the shape 
28699 \family sans
28700 CDlabel
28701 \family default
28702 .
28703  It cannot be scaled because it must fit the size of a CD/DVD.
28704  Therefore the amount of text that fits into the shape is limited.
28705 \begin_inset Newline newline
28706 \end_inset
28707
28708 The 
28709 \family sans
28710 drop
28711 \family default
28712  shapes and the 
28713 \family sans
28714 circle
28715 \family default
28716  shape are fragile, meaning that the calculation of their size can fail,
28717  depending on the amount of text.
28718  You will then get the \SpecialChar LaTeX
28719  error 
28720 \begin_inset Quotes eld
28721 \end_inset
28722
28723 Arithmetic overflow
28724 \begin_inset Quotes erd
28725 \end_inset
28726
28727 .
28728  In this case one can try to remove or add some text; if nothing works one
28729  has to use another shape.
28730 \end_layout
28731
28732 \begin_layout Standard
28733 \begin_inset VSpace bigskip
28734 \end_inset
28735
28736
28737 \end_layout
28738
28739 \begin_layout Standard
28740 For shapes with tips you will maybe see that \SpecialChar LaTeX
28741 's hyphenation routine fails
28742  for text in the tips.
28743  Therefore it is often necessary to add hyphenation points 
28744 \family sans
28745 (
28746 \begin_inset Info
28747 type  "shortcut"
28748 arg   "specialchar-insert hyphenation"
28749 \end_inset
28750
28751
28752 \family default
28753 ) to the corresponding text parts.
28754 \end_layout
28755
28756 \begin_layout Standard
28757 \begin_inset VSpace bigskip
28758 \end_inset
28759
28760
28761 \end_layout
28762
28763 \begin_layout Standard
28764 Shapepar paragraphs are either always centered or placed on the page so
28765  that their left border touches the left page margin.
28766  You can therefore not use the paragraph dialog to align such paragraphs.
28767  A solution is to put the paragraph into a minipage or parbox and align
28768  the box.
28769  The problem is hereby to find the right width for the box.
28770  Because if it is too wide and you center the box, the paragraph is not
28771  centered too because it sticks at the left side of the box.
28772  So you might have to play a bit with the width until it fits.
28773  Here are two heart-shaped paragraphs, the first one is not aligned, the
28774  second one is right-aligned:
28775 \end_layout
28776
28777 \begin_layout Standard
28778 \begin_inset Newpage newpage
28779 \end_inset
28780
28781
28782 \end_layout
28783
28784 \begin_layout Heart
28785 \noindent
28786
28787 \lang latin
28788 Lo\SpecialChar softhyphen
28789 rem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
28790  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
28791  voluptua.
28792  At vero eos et accusam et justo duo dolores et ea rebum.
28793  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
28794  sit amet.
28795 \end_layout
28796
28797 \begin_layout Standard
28798 \begin_inset VSpace bigskip
28799 \end_inset
28800
28801
28802 \end_layout
28803
28804 \begin_layout Standard
28805 \noindent
28806 \align right
28807 \begin_inset Box Frameless
28808 position "t"
28809 hor_pos "c"
28810 has_inner_box 1
28811 inner_pos "t"
28812 use_parbox 1
28813 use_makebox 0
28814 width "42col%"
28815 special "none"
28816 height "1in"
28817 height_special "totalheight"
28818 thickness "0.4pt"
28819 separation "3pt"
28820 shadowsize "4pt"
28821 framecolor "black"
28822 backgroundcolor "none"
28823 status open
28824
28825 \begin_layout Heart
28826 \noindent
28827
28828 \lang latin
28829 Lo\SpecialChar softhyphen
28830 rem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
28831  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
28832  voluptua.
28833  At vero eos et accusam et justo duo dolores et ea rebum.
28834  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
28835  sit amet.
28836 \end_layout
28837
28838 \end_inset
28839
28840
28841 \end_layout
28842
28843 \begin_layout Subsection
28844 Custom shapes
28845 \end_layout
28846
28847 \begin_layout Standard
28848 You can define any shape you want.
28849  Doing this manually is a lot of work because every coordinate must be specified.
28850  But there is a way to let the computer calculate the coordinates:
28851 \end_layout
28852
28853 \begin_layout Enumerate
28854 Install the program 
28855 \begin_inset CommandInset href
28856 LatexCommand href
28857 name "Jpgfdraw"
28858 target "http://www.ctan.org/tex-archive/graphics/jpgfdraw"
28859 literal "false"
28860
28861 \end_inset
28862
28863 .
28864 \end_layout
28865
28866 \begin_layout Enumerate
28867 In 
28868 \family sans
28869 Jpgfdraw
28870 \family default
28871  go to the menu 
28872 \family sans
28873 TeX/LaTeX\SpecialChar menuseparator
28874 Settings\SpecialChar menuseparator
28875 Set Normal Size
28876 \family default
28877  and select the font size you are using in your document.
28878  For example this document uses the size 12
28879 \begin_inset space \thinspace{}
28880 \end_inset
28881
28882 pt.
28883 \end_layout
28884
28885 \begin_layout Enumerate
28886 Draw a shape.
28887 \end_layout
28888
28889 \begin_layout Enumerate
28890 Use the menu 
28891 \family sans
28892 TeX/LaTeX\SpecialChar menuseparator
28893 Shapepar
28894 \family default
28895  to export the shape to coordinates.
28896  In the appearing dialog use either the outline of your shape for the coordinate
28897 s or the path itself.
28898 \begin_inset Foot
28899 status collapsed
28900
28901 \begin_layout Plain Layout
28902 For more information see 
28903 \begin_inset CommandInset href
28904 LatexCommand href
28905 target "http://www.dickimaw-books.com/apps/jpgfdraw/manual/shapepar.html"
28906 literal "false"
28907
28908 \end_inset
28909
28910
28911 \end_layout
28912
28913 \end_inset
28914
28915
28916 \end_layout
28917
28918 \begin_layout Standard
28919 The coordinates are written into a \SpecialChar TeX
28920  file.
28921  To use it for your \SpecialChar LyX
28922  document
28923 \end_layout
28924
28925 \begin_layout Enumerate
28926 Place the cursor before the first character of your paragraph (or into a
28927  new empty one).
28928 \end_layout
28929
28930 \begin_layout Enumerate
28931 Open in \SpecialChar LyX
28932  the menu 
28933 \family sans
28934 Insert\SpecialChar menuseparator
28935 File\SpecialChar menuseparator
28936 Child
28937 \begin_inset space ~
28938 \end_inset
28939
28940 Document
28941 \family default
28942 , select the file and use 
28943 \family sans
28944 Input
28945 \family default
28946  as 
28947 \family sans
28948 Include Type.
28949 \end_layout
28950
28951 \begin_layout Standard
28952 \begin_inset VSpace defskip
28953 \end_inset
28954
28955
28956 \end_layout
28957
28958 \begin_layout Standard
28959 \begin_inset Note Greyedout
28960 status open
28961
28962 \begin_layout Plain Layout
28963
28964 \series bold
28965 Note
28966 \series default
28967 : The changed shape only applies to the current paragraph; everything is
28968  reset to normal for the next paragraph.
28969  Therefore the shape definition file must be input into every paragraph
28970  with the desired shape.
28971 \end_layout
28972
28973 \end_inset
28974
28975
28976 \end_layout
28977
28978 \begin_layout Standard
28979 \begin_inset VSpace bigskip
28980 \end_inset
28981
28982
28983 \end_layout
28984
28985 \begin_layout Standard
28986 Here is an example:
28987 \end_layout
28988
28989 \begin_layout Standard
28990 \begin_inset VSpace bigskip
28991 \end_inset
28992
28993
28994 \end_layout
28995
28996 \begin_layout Standard
28997 \begin_inset CommandInset include
28998 LatexCommand input
28999 filename "SpecialParagraphShape.tex"
29000
29001 \end_inset
29002
29003
29004 \lang latin
29005 Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
29006  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
29007  voluptua.
29008  At vero eos et accusam et justo duo dolores et ea rebum.
29009  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
29010  sit amet.
29011  Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
29012  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
29013  voluptua.
29014 \end_layout
29015
29016 \begin_layout Standard
29017 \begin_inset VSpace bigskip
29018 \end_inset
29019
29020
29021 \end_layout
29022
29023 \begin_layout Standard
29024
29025 \series bold
29026 A tip:
29027 \series default
29028  to draw complexer shapes in 
29029 \family sans
29030 Jpgfdraw
29031 \family default
29032  you can draw the shape in a program of your choice and import the resulting
29033  image to 
29034 \family sans
29035 Jpgfdraw
29036 \family default
29037 .
29038  Then you only need to draw a line or spline along the outline of the image.
29039 \end_layout
29040
29041 \begin_layout Standard
29042 \begin_inset VSpace bigskip
29043 \end_inset
29044
29045
29046 \end_layout
29047
29048 \begin_layout Standard
29049 The module 
29050 \family sans
29051 Custom paragraph shapes
29052 \family default
29053  also provides the two commands 
29054 \family sans
29055 shapepar
29056 \family default
29057  and 
29058 \family sans
29059 Shapepar
29060 \family default
29061  which can be used to define custom shapes coordinate by coordinate.
29062 \begin_inset Foot
29063 status collapsed
29064
29065 \begin_layout Plain Layout
29066 These commands are internally used for all shapes described here.
29067 \end_layout
29068
29069 \end_inset
29070
29071  For information how these styles are used and about further customization
29072  possibilities, have a look at the 
29073 \change_inserted -712698321 1501236534
29074
29075 \lang ngerman
29076
29077 \begin_inset CommandInset href
29078 LatexCommand href
29079 name "documentation"
29080 target "http://mirrors.ctan.org/macros/latex/contrib/shapepar/shapepar.pdf"
29081 literal "false"
29082
29083 \end_inset
29084
29085
29086 \change_deleted -712698321 1501236537
29087
29088 \lang english
29089 documentation
29090 \change_unchanged
29091  of the package 
29092 \change_deleted -712698321 1501236618
29093 shapepar
29094 \change_inserted -712698321 1501236618
29095
29096 \begin_inset Flex Code
29097 status collapsed
29098
29099 \begin_layout Plain Layout
29100
29101 \change_inserted -712698321 1501236618
29102 shapepar
29103 \change_unchanged
29104
29105 \end_layout
29106
29107 \end_inset
29108
29109
29110 \change_deleted -712698321 1501236618
29111
29112 \begin_inset CommandInset citation
29113 LatexCommand cite
29114 key "shapepar"
29115 literal "true"
29116
29117 \end_inset
29118
29119
29120 \change_unchanged
29121 .
29122 \change_deleted -712698321 1501236666
29123
29124 \end_layout
29125
29126 \begin_layout Bibliography
29127
29128 \change_deleted -712698321 1501236522
29129 \begin_inset CommandInset bibitem
29130 LatexCommand bibitem
29131 key "multicol"
29132 literal "true"
29133
29134 \end_inset
29135
29136 Documentation of the \SpecialChar LaTeX
29137 -package 
29138 \begin_inset CommandInset href
29139 LatexCommand href
29140 name "multicol"
29141 target "http://mirror.ctan.org/macros/latex/required/tools/multicol.pdf"
29142 literal "false"
29143
29144 \end_inset
29145
29146
29147 \end_layout
29148
29149 \begin_layout Bibliography
29150
29151 \change_deleted -712698321 1501236522
29152 \begin_inset CommandInset bibitem
29153 LatexCommand bibitem
29154 key "shapepar"
29155 literal "true"
29156
29157 \end_inset
29158
29159 Documentation of the \SpecialChar LaTeX
29160 -package 
29161 \begin_inset CommandInset href
29162 LatexCommand href
29163 name "shapepar"
29164 target "http://mirrors.ctan.org/macros/latex/contrib/shapepar/shapepar.pdf"
29165 literal "false"
29166
29167 \end_inset
29168
29169
29170 \change_unchanged
29171
29172 \end_layout
29173
29174 \end_body
29175 \end_document