]> git.lyx.org Git - lyx.git/blob - lib/doc/Additional.lyx
IOP class no longer in CTAN; remove IOP section
[lyx.git] / lib / doc / Additional.lyx
1 #LyX 2.4 created this file. For more info see https://www.lyx.org/
2 \lyxformat 610
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 \end_preamble
31 \options bibliography=totoc,index=totoc,BCOR7.5mm,titlepage,captions=tableheading
32 \use_default_options false
33 \begin_modules
34 logicalmkup
35 theorems-ams
36 theorems-ams-extended
37 multicol
38 shapepar
39 \end_modules
40 \maintain_unincluded_children no
41 \language english
42 \language_package default
43 \inputencoding utf8
44 \fontencoding auto
45 \font_roman "lmodern" "default"
46 \font_sans "lmss" "default"
47 \font_typewriter "lmtt" "default"
48 \font_math "auto" "auto"
49 \font_default_family default
50 \use_non_tex_fonts false
51 \font_sc false
52 \font_roman_osf false
53 \font_sans_osf false
54 \font_typewriter_osf false
55 \font_sf_scale 100 100
56 \font_tt_scale 100 100
57 \use_microtype false
58 \use_dash_ligatures true
59 \graphics default
60 \default_output_format pdf2
61 \output_sync 0
62 \bibtex_command default
63 \index_command default
64 \paperfontsize 12
65 \spacing single
66 \use_hyperref true
67 \pdf_title "LyX's Additional Features manual"
68 \pdf_author "LyX Team"
69 \pdf_subject "LyX's additional features documentation"
70 \pdf_keywords "LyX, Documentation, Additional"
71 \pdf_bookmarks true
72 \pdf_bookmarksnumbered true
73 \pdf_bookmarksopen false
74 \pdf_bookmarksopenlevel 1
75 \pdf_breaklinks false
76 \pdf_pdfborder false
77 \pdf_colorlinks true
78 \pdf_backref false
79 \pdf_pdfusetitle false
80 \pdf_quoted_options "linkcolor=black, citecolor=black, urlcolor=blue, filecolor=blue, pdfpagelayout=OneColumn, pdfnewwindow=true, pdfstartview=XYZ, plainpages=false"
81 \papersize a4
82 \use_geometry false
83 \use_package amsmath 1
84 \use_package amssymb 1
85 \use_package cancel 1
86 \use_package esint 1
87 \use_package mathdots 1
88 \use_package mathtools 1
89 \use_package mhchem 1
90 \use_package stackrel 1
91 \use_package stmaryrd 1
92 \use_package undertilde 1
93 \cite_engine basic
94 \cite_engine_type default
95 \biblio_style plain
96 \use_bibtopic false
97 \use_indices false
98 \paperorientation portrait
99 \suppress_date false
100 \justification true
101 \use_refstyle 0
102 \use_minted 0
103 \use_lineno 0
104 \notefontcolor #0000ff
105 \index Index
106 \shortcut idx
107 \color #008000
108 \end_index
109 \secnumdepth 3
110 \tocdepth 3
111 \paragraph_separation indent
112 \paragraph_indentation default
113 \is_math_indent 1
114 \math_indentation default
115 \math_numbering_side default
116 \quotes_style english
117 \dynamic_quotes 0
118 \papercolumns 1
119 \papersides 2
120 \paperpagestyle headings
121 \tablestyle default
122 \tracking_changes true
123 \output_changes false
124 \change_bars false
125 \postpone_fragile_content false
126 \html_math_output 0
127 \html_css_as_file 0
128 \html_be_strict true
129 \docbook_table_output 0
130 \docbook_mathml_prefix 1
131 \author -712698321 "Jürgen Spitzmüller"
132 \author 177693 "x"
133 \author 5863208 "ab"
134 \author 244031559 "Yuriy"
135 \author 564990737 "John Lyx"
136 \author 630872221 "Jean-Pierre Chrétien" jeanpierre.chretien@free.fr
137 \author 1075283030 "Thibaut"
138 \author 1119979965 "Joel A. Kulesza"
139 \end_header
140
141 \begin_body
142
143 \begin_layout Title
144 Additional \SpecialChar LyX
145  Features
146 \end_layout
147
148 \begin_layout Subtitle
149 Version 2.
150 \change_deleted 630872221 1622909155
151 3
152 \change_inserted 630872221 1622909155
153 4
154 \change_unchanged
155 .x
156 \end_layout
157
158 \begin_layout Author
159 by the \SpecialChar LyX
160  Team
161 \begin_inset Foot
162 status collapsed
163
164 \begin_layout Plain Layout
165 \noindent
166 Principal maintainer of this file is
167 \noun on
168  Richard Kimberly Heck
169 \noun default
170 .
171  If you have comments or error corrections, please send them to the \SpecialChar LyX
172  Documentati
173 on mailing list, 
174 \begin_inset Flex Code
175 status collapsed
176
177 \begin_layout Plain Layout
178 <lyx-docs@lists.lyx.org>
179 \end_layout
180
181 \end_inset
182
183 .
184 \end_layout
185
186 \end_inset
187
188
189 \end_layout
190
191 \begin_layout Standard
192 \begin_inset CommandInset toc
193 LatexCommand tableofcontents
194
195 \end_inset
196
197
198 \end_layout
199
200 \begin_layout Chapter
201 Introduction
202 \end_layout
203
204 \begin_layout Standard
205 This manual is essentially Part II of the 
206 \emph on
207 User's Guide\SpecialChar endofsentence
208
209 \emph default
210  The reason for separating the two documents is simple: the 
211 \emph on
212 User's Guide
213 \emph default
214  is already quite lengthy, and it contains information on all of the basic
215  features one needs to know in order to prepare most documents.
216  However, the \SpecialChar LyX
217  Team has worked to make \SpecialChar LyX
218  extensible through various configuration
219  files and external packages.
220  That means that if you want to support the Fizzwizzle \SpecialChar LaTeX
221  package, you can
222  create a layout file (or module) for it without having to alter \SpecialChar LyX
223  itself.
224  We've already had contributions of several new features this way, and some
225  of them are documented here.
226  There are also some more `advanced' features, such as how to control the
227  presentation of bibliographies and how to work with multi-part documents,
228  that are not covered in the 
229 \emph on
230 User's Guide
231 \emph default
232  and are discussed here.
233 \end_layout
234
235 \begin_layout Standard
236 This manual also documents some special features, like fax support
237 \change_deleted 244031559 1603802929
238 ,
239 \change_inserted 244031559 1603802931
240  and
241 \change_unchanged
242  version control
243 \change_deleted 244031559 1603802954
244 , and SGML support
245 \change_unchanged
246 , which require additional software to work properly.
247  There is also a chapter on \SpecialChar LyX
248 's support for HTML.
249  And lastly, there's a chapter of \SpecialChar LaTeX
250  tools and tips, things you can use to
251  spruce up your documents by directly using the powerful features of \SpecialChar LaTeX
252 .
253  After all, \SpecialChar LyX
254  
255 \emph on
256 is
257 \emph default
258  only WYSIWYM and will only ever interface to some, not all, \SpecialChar LaTeX
259  features.
260 \end_layout
261
262 \begin_layout Standard
263 If you haven't read the 
264 \emph on
265 Introduction
266 \emph default
267  yet, you are definitely in the wrong manual.
268  The 
269 \emph on
270 Introduction
271 \emph default
272  is the first place to go, since it describes the notation and format of
273  all of the manuals.
274  You should also be thoroughly familiar with the 
275 \emph on
276 User's Guide
277 \emph default
278  and all of the basic features of \SpecialChar LyX
279  before attempting to read this one.
280 \end_layout
281
282 \begin_layout Standard
283 Since many of the topics in this manual depend heavily on \SpecialChar LyX
284 's interaction
285  with \SpecialChar LaTeX
286 , this first chapter covers the inner workings of \SpecialChar LyX
287  and how to direct
288  \SpecialChar LyX
289  to generate exactly the \SpecialChar LaTeX
290  code you want.
291  It is obviously for more seasoned \SpecialChar LyX
292  users.
293 \end_layout
294
295 \begin_layout Chapter
296 \SpecialChar LyX
297  and \SpecialChar LaTeX
298
299 \end_layout
300
301 \begin_layout Section
302 How \SpecialChar LyX
303  Uses \SpecialChar LaTeX
304
305 \end_layout
306
307 \begin_layout Standard
308 This chapter is for both \SpecialChar TeX
309 -nicians and the \SpecialChar LaTeX
310 -curious.
311  In it, we'll explain how \SpecialChar LyX
312  and \SpecialChar LaTeX
313  work together to produce printable output.
314  This is the only place in any of the manuals where we assume you know something
315  about \SpecialChar LaTeX
316 .
317 \end_layout
318
319 \begin_layout Standard
320 At one time, \SpecialChar LyX
321  was called a 
322 \begin_inset Quotes eld
323 \end_inset
324
325 WYSIWYM frontend to \SpecialChar LaTeX
326 ,
327 \begin_inset Quotes erd
328 \end_inset
329
330  but that's no longer true.
331  There are frontends to \SpecialChar LaTeX
332  out there.
333 \begin_inset Foot
334 status collapsed
335
336 \begin_layout Plain Layout
337 Some familar ones are \SpecialChar TeX
338 maker and kile, on Linux, and \SpecialChar TeX
339 shop, OSX.
340  There are also the \SpecialChar LaTeX
341  modes for vi and emacs, of course.
342 \end_layout
343
344 \end_inset
345
346  These are basically text editors with the ability to run \SpecialChar LaTeX
347  and mark any
348  errors in the file you're editing.
349  Although \SpecialChar LyX
350  
351 \emph on
352 is
353 \emph default
354  an editor, and it 
355 \emph on
356 does
357 \emph default
358  run \SpecialChar LaTeX
359 , and it also indicates errors in the file, it also does much, much
360  more.
361  For one thing, you don't need to know \SpecialChar LaTeX
362  to use \SpecialChar LyX
363  effectively.
364  And \SpecialChar LyX
365  has added its own extensions to \SpecialChar LaTeX
366 .
367  Try the following sometime: select 
368 \begin_inset Flex Noun
369 status collapsed
370
371 \begin_layout Plain Layout
372 Export\SpecialChar menuseparator
373 LaTeX
374 \end_layout
375
376 \end_inset
377
378  from the 
379 \begin_inset Flex Noun
380 status collapsed
381
382 \begin_layout Plain Layout
383 File
384 \end_layout
385
386 \end_inset
387
388  menu (or 
389 \begin_inset Flex Noun
390 status collapsed
391
392 \begin_layout Plain Layout
393 View\SpecialChar menuseparator
394 Source
395 \begin_inset space ~
396 \end_inset
397
398 Pane
399 \end_layout
400
401 \end_inset
402
403 ), then look at the preamble of the resulting 
404 \begin_inset Flex Code
405 status collapsed
406
407 \begin_layout Plain Layout
408 .tex
409 \end_layout
410
411 \end_inset
412
413  file.
414  You'll notice a variety of new macros defined specifically by \SpecialChar LyX
415 .
416  These macros are defined automatically, according to the features you use
417  in the document.
418 \end_layout
419
420 \begin_layout Standard
421 There are several commands that automatically invoke \SpecialChar LaTeX
422 .
423  They are:
424 \end_layout
425
426 \begin_layout Itemize
427 \begin_inset Flex Noun
428 status collapsed
429
430 \begin_layout Plain Layout
431 Document\SpecialChar menuseparator
432 View
433 \end_layout
434
435 \end_inset
436
437
438 \end_layout
439
440 \begin_layout Itemize
441 \begin_inset Flex Noun
442 status collapsed
443
444 \begin_layout Plain Layout
445 Document\SpecialChar menuseparator
446 Update
447 \end_layout
448
449 \end_inset
450
451
452 \end_layout
453
454 \begin_layout Standard
455 They will only invoke \SpecialChar LaTeX
456  if the file has changed since the last time \SpecialChar LaTeX
457  was
458  run.
459  
460 \end_layout
461
462 \begin_layout Standard
463 When \SpecialChar LyX
464  runs \SpecialChar LaTeX
465  on the file you're editing, it performs these steps:
466 \end_layout
467
468 \begin_layout Enumerate
469 Convert the document to \SpecialChar LaTeX
470  and save to a file with the extension 
471 \begin_inset Flex Code
472 status collapsed
473
474 \begin_layout Plain Layout
475 .tex
476 \end_layout
477
478 \end_inset
479
480  in place of 
481 \begin_inset Flex Code
482 status collapsed
483
484 \begin_layout Plain Layout
485 .lyx
486 \end_layout
487
488 \end_inset
489
490 .
491 \end_layout
492
493 \begin_layout Enumerate
494 Run \SpecialChar LaTeX
495  on the 
496 \begin_inset Flex Code
497 status collapsed
498
499 \begin_layout Plain Layout
500 .tex
501 \end_layout
502
503 \end_inset
504
505  file (maybe several times), and run any other commands (such as 
506 \begin_inset Flex Code
507 status collapsed
508
509 \begin_layout Plain Layout
510 bibtex
511 \end_layout
512
513 \end_inset
514
515  or 
516 \begin_inset Flex Code
517 status collapsed
518
519 \begin_layout Plain Layout
520 makeindex
521 \end_layout
522
523 \end_inset
524
525 ) needed to compile the \SpecialChar LaTeX
526  file.
527 \end_layout
528
529 \begin_layout Enumerate
530 If there are any errors, show the error log.
531 \end_layout
532
533 \begin_layout Standard
534 If you have run \SpecialChar LaTeX
535  using 
536 \begin_inset Flex Noun
537 status collapsed
538
539 \begin_layout Plain Layout
540 View\SpecialChar menuseparator
541 DVI
542 \end_layout
543
544 \end_inset
545
546 , \SpecialChar LyX
547  then runs a DVI viewer to display the DVI-file.
548  If you have used 
549 \begin_inset Flex Noun
550 status collapsed
551
552 \begin_layout Plain Layout
553 View\SpecialChar menuseparator
554 PostScript
555 \end_layout
556
557 \end_inset
558
559 , \SpecialChar LyX
560  performs further steps:
561 \end_layout
562
563 \begin_layout Enumerate
564 Run 
565 \begin_inset Flex Code
566 status collapsed
567
568 \begin_layout Plain Layout
569 dvips
570 \end_layout
571
572 \end_inset
573
574  to convert the DVI file to PostScript.
575 \end_layout
576
577 \begin_layout Enumerate
578 Run a PostScript viewer, such as 
579 \begin_inset Flex Code
580 status collapsed
581
582 \begin_layout Plain Layout
583 ghostview
584 \end_layout
585
586 \end_inset
587
588 , to display the PostScript file.
589 \end_layout
590
591 \begin_layout Standard
592 \SpecialChar LyX
593  does similar things when viewing, or exporting, other formats.
594 \end_layout
595
596 \begin_layout Section
597 Translating \SpecialChar LaTeX
598  files into \SpecialChar LyX
599
600 \end_layout
601
602 \begin_layout Standard
603 You can import a \SpecialChar LaTeX
604  file into \SpecialChar LyX
605  by using the 
606 \begin_inset Flex Noun
607 status collapsed
608
609 \begin_layout Plain Layout
610 File\SpecialChar menuseparator
611 Import\SpecialChar menuseparator
612 LaTeX
613 \end_layout
614
615 \end_inset
616
617  command in \SpecialChar LyX
618 .
619  This will call a program named 
620 \begin_inset Flex Code
621 status collapsed
622
623 \begin_layout Plain Layout
624 tex2lyx
625 \end_layout
626
627 \end_inset
628
629  which will create a file 
630 \begin_inset Flex Code
631 status collapsed
632
633 \begin_layout Plain Layout
634 foo.lyx
635 \end_layout
636
637 \end_inset
638
639  from the file 
640 \begin_inset Flex Code
641 status collapsed
642
643 \begin_layout Plain Layout
644 foo.tex
645 \end_layout
646
647 \end_inset
648
649 .
650  \SpecialChar LyX
651  will then open that file.
652 \begin_inset Foot
653 status collapsed
654
655 \begin_layout Plain Layout
656 \begin_inset Flex Code
657 status collapsed
658
659 \begin_layout Plain Layout
660 tex2lyx
661 \end_layout
662
663 \end_inset
664
665  can also be run from the command line, of course.
666 \end_layout
667
668 \end_inset
669
670
671 \end_layout
672
673 \begin_layout Standard
674 \begin_inset Flex Code
675 status collapsed
676
677 \begin_layout Plain Layout
678 tex2lyx
679 \end_layout
680
681 \end_inset
682
683  will translate most legal \SpecialChar LaTeX
684 , but not everything.
685  It will put things it doesn't understand into \SpecialChar TeX
686  code, so after translating
687  a file with 
688 \begin_inset Flex Code
689 status collapsed
690
691 \begin_layout Plain Layout
692 tex2lyx
693 \end_layout
694
695 \end_inset
696
697 , you can look for \SpecialChar TeX
698  code and hand-edit it until it looks right.
699 \end_layout
700
701 \begin_layout Standard
702 If you don't know what \SpecialChar TeX
703  code is, read the next section.
704 \end_layout
705
706 \begin_layout Section
707 \begin_inset CommandInset label
708 LatexCommand label
709 name "sec:Inserting-TeX-Code"
710
711 \end_inset
712
713 Inserting \SpecialChar TeX
714  Code into \SpecialChar LyX
715  Documents 
716 \end_layout
717
718 \begin_layout Standard
719 Anything you can do in \SpecialChar LaTeX
720  you can do in \SpecialChar LyX
721 , for a very simple reason: You can
722  always insert \SpecialChar TeX
723  code into any \SpecialChar LyX
724  document.
725  \SpecialChar LyX
726  cannot, and will never be able to, display every possible \SpecialChar LaTeX
727  construct.
728  If ever you need to insert \SpecialChar LaTeX
729  commands into your \SpecialChar LyX
730  document, you can use the
731  
732 \begin_inset Flex Code
733 status collapsed
734
735 \begin_layout Plain Layout
736 \SpecialChar TeX
737  Code
738 \end_layout
739
740 \end_inset
741
742  box, which you can insert into your document with 
743 \begin_inset Flex Noun
744 status collapsed
745
746 \begin_layout Plain Layout
747 Insert\SpecialChar menuseparator
748
749 \family sans
750 TeX
751 \family default
752  Code
753 \end_layout
754
755 \end_inset
756
757  or the keyboard shortcut 
758 \begin_inset Info
759 type  "shortcut"
760 arg   "ert-insert"
761 \end_inset
762
763 .
764 \end_layout
765
766 \begin_layout Standard
767 Here's an example of inserting \SpecialChar LaTeX
768  commands in a \SpecialChar LyX
769  document.
770  The code looks like this:
771 \end_layout
772
773 \begin_layout LyX-Code
774
775 \backslash
776 begin{tabular}{ll}
777 \begin_inset Newline newline
778 \end_inset
779
780
781 \backslash
782 begin{minipage}{5cm}
783 \begin_inset Newline newline
784 \end_inset
785
786 This is an example of a minipage environment.
787  You 
788 \begin_inset Newline newline
789 \end_inset
790
791 can put nearly everything in it, even (non-floating) 
792 \begin_inset Newline newline
793 \end_inset
794
795 figures and tables.
796  
797 \begin_inset Newline newline
798 \end_inset
799
800
801 \backslash
802 end{minipage}
803 \begin_inset Newline newline
804 \end_inset
805
806 &
807 \begin_inset Newline newline
808 \end_inset
809
810
811 \backslash
812 begin{minipage}{5cm}
813 \begin_inset Newline newline
814 \end_inset
815
816
817 \backslash
818 begin{verbatim}
819 \begin_inset Newline newline
820 \end_inset
821
822
823 \backslash
824 begin{minipage}{5cm}
825 \begin_inset Newline newline
826 \end_inset
827
828 This ...
829  
830 \begin_inset Newline newline
831 \end_inset
832
833
834 \backslash
835 end{minipage}
836 \begin_inset Newline newline
837 \end_inset
838
839
840 \backslash
841 end{verbatim}
842 \begin_inset Newline newline
843 \end_inset
844
845
846 \backslash
847 end{minipage}
848 \begin_inset Newline newline
849 \end_inset
850
851
852 \backslash
853 end{tabular}
854 \end_layout
855
856 \begin_layout LyX-Code
857
858 \end_layout
859
860 \begin_layout Standard
861 The 
862 \begin_inset Flex Code
863 status collapsed
864
865 \begin_layout Plain Layout
866 \SpecialChar TeX
867  Code
868 \end_layout
869
870 \end_inset
871
872  box containing this text is directly after this paragraph.
873  Those of you reading the manual in \SpecialChar LyX
874  will only see the \SpecialChar TeX
875  code inset.
876  Those reading a printed version of the manuals will see the actual results:
877 \begin_inset VSpace bigskip
878 \end_inset
879
880
881 \end_layout
882
883 \begin_layout Standard
884 \begin_inset ERT
885 status open
886
887 \begin_layout Plain Layout
888
889
890 \backslash
891 begin{tabular}{ll}
892 \end_layout
893
894 \begin_layout Plain Layout
895
896
897 \backslash
898 begin{minipage}{5cm}
899 \end_layout
900
901 \begin_layout Plain Layout
902
903 This is an example of a minipage environment.
904  You can put nearly everything in it, even (non-floating) figures and tables.
905  
906 \end_layout
907
908 \begin_layout Plain Layout
909
910
911 \backslash
912 end{minipage}
913 \end_layout
914
915 \begin_layout Plain Layout
916
917 &
918 \end_layout
919
920 \begin_layout Plain Layout
921
922
923 \backslash
924 begin{minipage}{5cm}
925 \end_layout
926
927 \begin_layout Plain Layout
928
929
930 \backslash
931 begin{verbatim}
932 \end_layout
933
934 \begin_layout Plain Layout
935
936
937 \backslash
938 begin{minipage}{5cm}
939 \end_layout
940
941 \begin_layout Plain Layout
942
943 This ...
944  
945 \end_layout
946
947 \begin_layout Plain Layout
948
949
950 \backslash
951 end{minipage}
952 \end_layout
953
954 \begin_layout Plain Layout
955
956
957 \backslash
958 end{verbatim}
959 \end_layout
960
961 \begin_layout Plain Layout
962
963
964 \backslash
965 end{minipage}
966 \end_layout
967
968 \begin_layout Plain Layout
969
970
971 \backslash
972 end{tabular}
973 \end_layout
974
975 \end_inset
976
977
978 \begin_inset VSpace bigskip
979 \end_inset
980
981
982 \end_layout
983
984 \begin_layout Standard
985 In addition to using \SpecialChar TeX
986  code, you can also create a separate file containing
987  some complex \SpecialChar LaTeX
988  structure and then use 
989 \begin_inset Flex Noun
990 status collapsed
991
992 \begin_layout Plain Layout
993 Insert\SpecialChar menuseparator
994 Child
995 \begin_inset space ~
996 \end_inset
997
998 Document
999 \end_layout
1000
1001 \end_inset
1002
1003  to include your file (you should select the type 
1004 \begin_inset Flex Code
1005 status collapsed
1006
1007 \begin_layout Plain Layout
1008 Input
1009 \end_layout
1010
1011 \end_inset
1012
1013 ).
1014  We recommend that you only do this if you have a 
1015 \begin_inset Flex Code
1016 status collapsed
1017
1018 \begin_layout Plain Layout
1019 .tex
1020 \end_layout
1021
1022 \end_inset
1023
1024  file which you 
1025 \emph on
1026 know
1027 \emph default
1028  works already.
1029  Otherwise, you'll have a big job tracking down \SpecialChar LaTeX
1030  errors.
1031 \end_layout
1032
1033 \begin_layout Standard
1034 There are a few last points to emphasize:
1035 \end_layout
1036
1037 \begin_layout Itemize
1038 \SpecialChar LyX
1039  
1040 \emph on
1041 does not
1042 \emph default
1043  check if your \SpecialChar LaTeX
1044  code is correct.
1045 \end_layout
1046
1047 \begin_layout Itemize
1048 Beware of reinventing the wheel.
1049 \end_layout
1050
1051 \begin_layout Standard
1052 On that last point, \SpecialChar LyX
1053  does have quite a few features tucked into it, and
1054  more are coming.
1055  Be sure to check the manuals to make sure that \SpecialChar LyX
1056  doesn't have such-and-such
1057  feature before you decide you have to do it by hand.
1058  Moreover, there are numerous \SpecialChar LaTeX
1059  packages out there to do all sorts of things,
1060  from labels to envelopes to fancy multipage tables.
1061  Check out 
1062 \change_inserted 244031559 1603815732
1063
1064 \begin_inset CommandInset href
1065 LatexCommand href
1066 name "CTAN"
1067 target "https://www.ctan.org/"
1068 literal "false"
1069
1070 \end_inset
1071
1072
1073 \change_deleted 244031559 1603815732
1074
1075 \begin_inset CommandInset href
1076 LatexCommand href
1077 name "CTAN"
1078 target "http://www.ctan.org/"
1079 literal "false"
1080
1081 \end_inset
1082
1083
1084 \change_unchanged
1085  for details.
1086 \end_layout
1087
1088 \begin_layout Standard
1089 If you do need to do some wild and fancy things within your document, be
1090  sure to check out a good \SpecialChar LaTeX
1091  book for assistance.
1092  There are a number of them listed in the bibliography of the 
1093 \emph on
1094 User's Guide
1095 \emph default
1096 .
1097 \end_layout
1098
1099 \begin_layout Section
1100 \SpecialChar LyX
1101  and the \SpecialChar LaTeX
1102  Preamble
1103 \end_layout
1104
1105 \begin_layout Subsection
1106 About the \SpecialChar LaTeX
1107  Preamble
1108 \end_layout
1109
1110 \begin_layout Standard
1111 If you already know \SpecialChar LaTeX
1112 , there is no need to explain here what the preamble
1113  is good for.
1114  If you don't, the following will give you some ideas—we recommend again
1115  that you consult a \SpecialChar LaTeX
1116  book for further information.
1117  In any case, you should read the points below, because they explain what
1118  you can do and what you don't need to do in the \SpecialChar LaTeX
1119  preamble of a \SpecialChar LyX
1120  document.
1121 \end_layout
1122
1123 \begin_layout Standard
1124 The \SpecialChar LaTeX
1125  preamble comes at the very beginning of a document, 
1126 \emph on
1127 before
1128 \emph default
1129  the text.
1130  It serves to:
1131 \end_layout
1132
1133 \begin_layout Itemize
1134 Declare the document class.
1135  
1136 \begin_inset Newline newline
1137 \end_inset
1138
1139 \SpecialChar LyX
1140  already does this for you.
1141  If you're a seasoned \SpecialChar LaTeX
1142 -nician, and you have a custom document class you
1143  want to use, check out the 
1144 \emph on
1145 Customization Manual
1146 \emph default
1147  for information on how to make \SpecialChar LyX
1148  interface to it.
1149 \end_layout
1150
1151 \begin_layout Itemize
1152 Declare the usage of packages.
1153  
1154 \begin_inset Newline newline
1155 \end_inset
1156
1157 \SpecialChar LaTeX
1158  packages provide special commands, which are only available within a document
1159  when the package has been declared in the preamble.
1160  In addition to providing special commands, the inclusion of a package can
1161  change the document.
1162  For example, the package 
1163 \begin_inset Flex Code
1164 status collapsed
1165
1166 \begin_layout Plain Layout
1167 indentfirst
1168 \end_layout
1169
1170 \end_inset
1171
1172  forces all paragraphs to be indented.
1173  There are other packages for labels, envelopes, margins, etc.
1174  
1175 \end_layout
1176
1177 \begin_layout Itemize
1178 Set counters, variables, lengths and widths.
1179  
1180 \begin_inset Newline newline
1181 \end_inset
1182
1183 There are several \SpecialChar LaTeX
1184  counters and variables that 
1185 \emph on
1186 must
1187 \emph default
1188  be set globally from within the preamble in order to have the desired effect.
1189  (There are variables that you can set and reset inside the document, too.)
1190  Margins are a good example of something that must be set in the preamble.
1191  Another example is the label format for lists.
1192  You can actually set these just about anywhere, but it's best to do it
1193  just once, inside the preamble.
1194 \end_layout
1195
1196 \begin_layout Itemize
1197 Declare user defined commands (with 
1198 \begin_inset Flex Code
1199 status collapsed
1200
1201 \begin_layout Plain Layout
1202
1203 \backslash
1204 newcommand
1205 \end_layout
1206
1207 \end_inset
1208
1209  or 
1210 \begin_inset Flex Code
1211 status collapsed
1212
1213 \begin_layout Plain Layout
1214
1215 \backslash
1216 renewcommand
1217 \end_layout
1218
1219 \end_inset
1220
1221 ).
1222 \begin_inset Newline newline
1223 \end_inset
1224
1225 These are abbreviations for \SpecialChar LaTeX
1226  commands which appear very often inside a document.
1227  Although the preamble is a good place to declare such commands, they 
1228 \emph on
1229 can
1230 \emph default
1231  be declared anywhere (before they are used for the first time, of course).
1232  This can be useful if there is a lot of raw \SpecialChar LaTeX
1233  code in your document, which
1234  normally should not be the case.
1235 \end_layout
1236
1237 \begin_layout Standard
1238 \SpecialChar LyX
1239  adds its own set of definitions to the preamble of the 
1240 \begin_inset Flex Code
1241 status collapsed
1242
1243 \begin_layout Plain Layout
1244 .tex
1245 \end_layout
1246
1247 \end_inset
1248
1249  file it produces.
1250  This makes \SpecialChar LaTeX
1251  files generated by \SpecialChar LyX
1252  portable.
1253 \end_layout
1254
1255 \begin_layout Subsection
1256 Changing the Preamble
1257 \end_layout
1258
1259 \begin_layout Standard
1260 The commands which \SpecialChar LyX
1261  adds to the preamble of a \SpecialChar LaTeX
1262  file are fixed; you can't
1263  change them without patching \SpecialChar LyX
1264  itself.
1265  You can, however, add your own stuff to the preamble by selecting 
1266 \begin_inset Flex Noun
1267 status collapsed
1268
1269 \begin_layout Plain Layout
1270 \SpecialChar LaTeX
1271
1272 \begin_inset space ~
1273 \end_inset
1274
1275 Preamble
1276 \end_layout
1277
1278 \end_inset
1279
1280  in the 
1281 \begin_inset Flex Noun
1282 status collapsed
1283
1284 \begin_layout Plain Layout
1285 Document\SpecialChar menuseparator
1286 Settings
1287 \end_layout
1288
1289 \end_inset
1290
1291  dialog.
1292  \SpecialChar LyX
1293  adds anything in the 
1294 \begin_inset Flex Noun
1295 status collapsed
1296
1297 \begin_layout Plain Layout
1298 Preamble
1299 \end_layout
1300
1301 \end_inset
1302
1303  dialog to its own built-in preamble.
1304  Before adding your own declarations in the preamble, you should make sure
1305  that \SpecialChar LyX
1306  doesn't already support what you want to do.
1307  (Remember what we said about reinventing the wheel?) Also, 
1308 \emph on
1309 make sure your preamble code is correct
1310 \emph default
1311 .
1312  \SpecialChar LyX
1313  doesn't check it for you.
1314  If there is an error, you're likely to get an error like 
1315 \begin_inset Quotes eld
1316 \end_inset
1317
1318
1319 \begin_inset Flex Code
1320 status collapsed
1321
1322 \begin_layout Plain Layout
1323 Missing 
1324 \backslash
1325 begin{document}
1326 \end_layout
1327
1328 \end_inset
1329
1330
1331 \begin_inset Quotes erd
1332 \end_inset
1333
1334 .
1335  If you see this error, check your preamble.
1336 \end_layout
1337
1338 \begin_layout Subsection
1339 Examples
1340 \end_layout
1341
1342 \begin_layout Standard
1343 Here are some examples of what you can add to a preamble, and what they
1344  do.
1345 \end_layout
1346
1347 \begin_layout Subsubsection
1348 Example #1: Offsets
1349 \end_layout
1350
1351 \begin_layout Standard
1352 There are two variables under \SpecialChar LaTeX
1353  that control page position: 
1354 \begin_inset Flex Code
1355 status collapsed
1356
1357 \begin_layout Plain Layout
1358
1359 \backslash
1360 hoffset
1361 \end_layout
1362
1363 \end_inset
1364
1365  and 
1366 \begin_inset Flex Code
1367 status collapsed
1368
1369 \begin_layout Plain Layout
1370
1371 \backslash
1372 voffset
1373 \end_layout
1374
1375 \end_inset
1376
1377 .
1378  Their names should be self-explanatory.
1379  These variables are useful if you think for a moment about computer labels.
1380  Sometimes, the size of a print medium and the area of the medium that you
1381  can actually print on aren't the same.
1382  This is where 
1383 \begin_inset Flex Code
1384 status collapsed
1385
1386 \begin_layout Plain Layout
1387
1388 \backslash
1389 hoffset
1390 \end_layout
1391
1392 \end_inset
1393
1394  and 
1395 \begin_inset Flex Code
1396 status collapsed
1397
1398 \begin_layout Plain Layout
1399
1400 \backslash
1401 voffset
1402 \end_layout
1403
1404 \end_inset
1405
1406  come in.
1407 \end_layout
1408
1409 \begin_layout Standard
1410 The default values for 
1411 \begin_inset Flex Code
1412 status collapsed
1413
1414 \begin_layout Plain Layout
1415
1416 \backslash
1417 hoffset
1418 \end_layout
1419
1420 \end_inset
1421
1422  and 
1423 \begin_inset Flex Code
1424 status collapsed
1425
1426 \begin_layout Plain Layout
1427
1428 \backslash
1429 voffset
1430 \end_layout
1431
1432 \end_inset
1433
1434  are both 0
1435 \begin_inset space \thinspace{}
1436 \end_inset
1437
1438 points, i.
1439 \begin_inset space \thinspace{}
1440 \end_inset
1441
1442 e.
1443 \begin_inset space \space{}
1444 \end_inset
1445
1446 the page isn't shifted.
1447  Unfortunately, some DVI drivers always seem to shift the page.
1448  We have no idea why, or why the sysadmin hasn't fixed such behavior.
1449  If you're using \SpecialChar LyX
1450  on a system that you don't personally maintain, and your
1451  sysadmin is a doofus, 
1452 \begin_inset Flex Code
1453 status collapsed
1454
1455 \begin_layout Plain Layout
1456
1457 \backslash
1458 hoffset
1459 \end_layout
1460
1461 \end_inset
1462
1463  and 
1464 \begin_inset Flex Code
1465 status collapsed
1466
1467 \begin_layout Plain Layout
1468
1469 \backslash
1470 voffset
1471 \end_layout
1472
1473 \end_inset
1474
1475  can save the day.
1476  Suppose your left and top margins are always 0.5
1477 \begin_inset space \thinspace{}
1478 \end_inset
1479
1480 inches too big.
1481  You can add this to the preamble:
1482 \end_layout
1483
1484 \begin_layout LyX-Code
1485
1486 \backslash
1487 setlength{
1488 \backslash
1489 hoffset}{-0.5 in}
1490 \end_layout
1491
1492 \begin_layout LyX-Code
1493
1494 \backslash
1495 setlength{
1496 \backslash
1497 voffset}{-0.5 in}
1498 \end_layout
1499
1500 \begin_layout Standard
1501 and your margins should now be correct.
1502 \end_layout
1503
1504 \begin_layout Subsubsection
1505 Example #2: Labels
1506 \end_layout
1507
1508 \begin_layout Standard
1509 Speaking of labels, suppose you wanted to print out a bunch of address labels.
1510  There's a rather nice package, available at your nearest CTAN archive,
1511  for printing sheets of labels: 
1512 \begin_inset Flex Code
1513 status collapsed
1514
1515 \begin_layout Plain Layout
1516 labels.sty
1517 \end_layout
1518
1519 \end_inset
1520
1521 .
1522  Now, your system may not have this package installed by default.
1523  We leave that up to you to check.
1524  You'll also want to read the documentation for it; we're not going to do
1525  that for you.
1526  Since this is an example, however, we'll give you an example of how you
1527  use this package.
1528 \end_layout
1529
1530 \begin_layout Standard
1531 First, make sure you're using the 
1532 \begin_inset Flex Code
1533 status collapsed
1534
1535 \begin_layout Plain Layout
1536 article
1537 \end_layout
1538
1539 \end_inset
1540
1541  document class.
1542  Next, you need to put the following in your preamble:
1543 \end_layout
1544
1545 \begin_layout LyX-Code
1546
1547 \backslash
1548 usepackage{labels}
1549 \end_layout
1550
1551 \begin_layout LyX-Code
1552
1553 \backslash
1554 LabelCols=3
1555 \end_layout
1556
1557 \begin_layout LyX-Code
1558
1559 \backslash
1560 LabelRows=7
1561 \end_layout
1562
1563 \begin_layout LyX-Code
1564
1565 \backslash
1566 LeftBorder=8mm
1567 \end_layout
1568
1569 \begin_layout LyX-Code
1570
1571 \backslash
1572 RightBorder=8mm
1573 \end_layout
1574
1575 \begin_layout LyX-Code
1576
1577 \backslash
1578 TopBorder=9mm
1579 \end_layout
1580
1581 \begin_layout LyX-Code
1582
1583 \backslash
1584 BottomBorder=2mm
1585 \end_layout
1586
1587 \begin_layout Standard
1588 This sets things up for Avery label sheets, stock #5360.
1589  You're now ready to print labels, but you'll need to insert \SpecialChar LaTeX
1590  code, placing
1591  the commands 
1592 \begin_inset Flex Code
1593 status collapsed
1594
1595 \begin_layout Plain Layout
1596
1597 \backslash
1598 begin{labels}
1599 \end_layout
1600
1601 \end_inset
1602
1603  and 
1604 \begin_inset Flex Code
1605 status collapsed
1606
1607 \begin_layout Plain Layout
1608
1609 \backslash
1610 end{labels}
1611 \end_layout
1612
1613 \end_inset
1614
1615  around each label text.
1616  This and other special features of 
1617 \begin_inset Flex Code
1618 status collapsed
1619
1620 \begin_layout Plain Layout
1621 labels.sty
1622 \end_layout
1623
1624 \end_inset
1625
1626  are explained in its documentation.
1627 \end_layout
1628
1629 \begin_layout Standard
1630 Someday, someone may write a \SpecialChar LyX
1631  layout file to support this package directly.
1632  Maybe that someone is you.
1633 \end_layout
1634
1635 \begin_layout Subsubsection
1636 Example #3: Paragraph Indentation
1637 \end_layout
1638
1639 \begin_layout Standard
1640 Americans are trained to indent the first line of 
1641 \emph on
1642 every
1643 \emph default
1644  paragraph.
1645  As with all of their other weird quirks, most Americans will whine and
1646  moan until they can have their way and indent the first line of all paragraphs.
1647  (Yes, we're joking.
1648  (We are?) 
1649 \emph on
1650 Yeah
1651 \emph default
1652 , we are.)
1653 \end_layout
1654
1655 \begin_layout Standard
1656 Of course, this behavior isn't standard typography.
1657  In books, you typically only indent the first line of a paragraph 
1658 \emph on
1659 if
1660 \emph default
1661  it follows another one.
1662  The idea behind indenting the first line of a paragraph is to distinguish
1663  neighboring paragraphs from one another.
1664  If there is no previous paragraph—for example, if it follows a figure or
1665  is the first paragraph in a section—then there is no need for indentation.
1666  
1667 \end_layout
1668
1669 \begin_layout Standard
1670 If you're a typical American (we're still joking!), though, you don't care
1671  about such esoteric things; you want your indentation! Add this to the
1672  preamble:
1673 \end_layout
1674
1675 \begin_layout LyX-Code
1676
1677 \backslash
1678 usepackage{indentfirst}
1679 \end_layout
1680
1681 \begin_layout Standard
1682 If your \SpecialChar TeX
1683  distribution isn't braindead, you'll have this package, and all
1684  of your paragraphs will get the indentation the Founding Fathers intended
1685  they should have.
1686 \end_layout
1687
1688 \begin_layout Subsubsection
1689 Example #4: This Document
1690 \end_layout
1691
1692 \begin_layout Standard
1693 You can also check out the preamble of this document to get an idea of some
1694  of the advanced things you can do.
1695 \end_layout
1696
1697 \begin_layout Section
1698 \SpecialChar LyX
1699  and \SpecialChar LaTeX
1700  Errors
1701 \end_layout
1702
1703 \begin_layout Standard
1704 When \SpecialChar LyX
1705  calls \SpecialChar LaTeX
1706 , it tells \SpecialChar LaTeX
1707  to blithely ignore any errors and keep going.
1708  It then uses the logfile from the \SpecialChar LaTeX
1709  run to do a post-mortem.
1710  After analyzing the logfile, \SpecialChar LyX
1711  displays a dialog listing the errors.
1712  Clicking on any one of them will take you to the position in your \SpecialChar LyX
1713  file
1714  where the error occurred.
1715 \begin_inset Foot
1716 status collapsed
1717
1718 \begin_layout Plain Layout
1719 Well, usually.
1720  Analyzing the logfile is a tough job, and \SpecialChar LyX
1721  doesn't always go to the right
1722  line.
1723  There are also cases where \SpecialChar LaTeX
1724  reports the error on one line, but the actual
1725  error is earlier.
1726  This is not unlike forgetting a closing brace in a program: You'll get
1727  an error, but only later.
1728 \end_layout
1729
1730 \end_inset
1731
1732
1733 \end_layout
1734
1735 \begin_layout Standard
1736 Some folks also like to look at the log file directly: It is available from
1737  
1738 \begin_inset Flex Noun
1739 status collapsed
1740
1741 \begin_layout Plain Layout
1742 Document\SpecialChar menuseparator
1743 LaTeX
1744 \begin_inset space ~
1745 \end_inset
1746
1747 Log
1748 \end_layout
1749
1750 \end_inset
1751
1752 .
1753  There are some fairly common error messages and warnings.
1754  We'll cover those here.
1755  You should look at a good \SpecialChar LaTeX
1756  book for a complete listing.
1757 \end_layout
1758
1759 \begin_layout Itemize
1760 \begin_inset Flex Code
1761 status collapsed
1762
1763 \begin_layout Plain Layout
1764 LaTeX Warning
1765 \end_layout
1766
1767 \end_inset
1768
1769
1770 \begin_inset Newline newline
1771 \end_inset
1772
1773 Anything beginning with these words is a warning message for the purpose
1774  of 
1775 \begin_inset Quotes eld
1776 \end_inset
1777
1778 debugging
1779 \begin_inset Quotes erd
1780 \end_inset
1781
1782  the \SpecialChar LaTeX
1783  code itself.
1784  You'll get messages like this if you added or changed cross-references
1785  or bibliography entries, in which case, \SpecialChar LaTeX
1786  is trying to tell you that you
1787  need to make another run.
1788  You can by-and-large ignore these.
1789 \end_layout
1790
1791 \begin_layout Itemize
1792 \begin_inset Flex Code
1793 status collapsed
1794
1795 \begin_layout Plain Layout
1796 LaTeX Font Warning
1797 \end_layout
1798
1799 \end_inset
1800
1801
1802 \begin_inset Newline newline
1803 \end_inset
1804
1805 Another warning message, this time about fonts which \SpecialChar LaTeX
1806  couldn't find.
1807  The rest of the message will often say something about a replacement font
1808  that \SpecialChar LaTeX
1809  used.
1810  You can safely ignore these, too.
1811 \end_layout
1812
1813 \begin_layout Itemize
1814 \begin_inset Flex Code
1815 status collapsed
1816
1817 \begin_layout Plain Layout
1818 Overfull 
1819 \backslash
1820 hbox
1821 \end_layout
1822
1823 \end_inset
1824
1825
1826 \begin_inset Newline newline
1827 \end_inset
1828
1829 \SpecialChar LaTeX
1830  absolutely 
1831 \emph on
1832 loves
1833 \emph default
1834  to spew these out.
1835  It seems to generate at least one of these messages for just about any
1836  document you write.
1837  They are warnings about lines that were too long and run past the right
1838  margin.
1839  This happens if \SpecialChar LaTeX
1840  does not find a reasonable way to break the lines (notoriously
1841  often with typewriter font, since this does not allow for automatic break
1842  points).
1843  In many cases, this is unnoticeable in the final output.
1844  (It can be just a point or two.) Sometimes, however, the lines run rather
1845  visibly into the margin; something you will not want to have in your final
1846  print.
1847  
1848 \begin_inset Newline newline
1849 \end_inset
1850
1851 There are several global ways to try to minimize the overfull lines.
1852  Clicking 
1853 \family sans
1854 Enable micro-typographic extensions
1855 \family default
1856  in 
1857 \family sans
1858 Document\SpecialChar menuseparator
1859 Settings\SpecialChar menuseparator
1860 Fonts
1861 \family default
1862  might already improve things a lot.
1863  Furthermore, \SpecialChar LaTeX
1864  code such as the following in 
1865 \family sans
1866 Document\SpecialChar menuseparator
1867 Settings\SpecialChar menuseparator
1868 Preamble
1869 \family default
1870  usually reduces the overfull lines drastically (we use this in the preamble
1871  of this document):
1872 \end_layout
1873
1874 \begin_deeper
1875 \begin_layout LyX-Code
1876
1877 \backslash
1878 tolerance 1414
1879 \begin_inset Newline newline
1880 \end_inset
1881
1882
1883 \backslash
1884 hbadness 1414
1885 \begin_inset Newline newline
1886 \end_inset
1887
1888
1889 \backslash
1890 emergencystretch 1.5em
1891 \begin_inset Newline newline
1892 \end_inset
1893
1894
1895 \backslash
1896 hfuzz 0.3pt
1897 \end_layout
1898
1899 \begin_layout Standard
1900 In some cases, however, you eventually have to rewrite the text to get the
1901  line breaking right.
1902 \begin_inset Foot
1903 status collapsed
1904
1905 \begin_layout Plain Layout
1906 For more information, see 
1907 \begin_inset Flex URL
1908 status open
1909
1910 \begin_layout Plain Layout
1911
1912 http://www.tex.ac.uk/FAQ-overfull.html
1913 \end_layout
1914
1915 \end_inset
1916
1917
1918 \end_layout
1919
1920 \end_inset
1921
1922
1923 \end_layout
1924
1925 \begin_layout Standard
1926 In any case, you should check the respective lines, at least for the final
1927  version of your document.
1928  Your eyes will tell you if there's a problem with something that's too
1929  wide.
1930 \begin_inset Foot
1931 status collapsed
1932
1933 \begin_layout Plain Layout
1934 You can also enable the `draft' option in 
1935 \begin_inset Flex Noun
1936 status collapsed
1937
1938 \begin_layout Plain Layout
1939 Document\SpecialChar menuseparator
1940 Settings
1941 \end_layout
1942
1943 \end_inset
1944
1945 , and then \SpecialChar LaTeX
1946  will draw a black box in the margin of lines that are overfull.
1947 \end_layout
1948
1949 \end_inset
1950
1951  
1952 \end_layout
1953
1954 \end_deeper
1955 \begin_layout Itemize
1956 \begin_inset Flex Code
1957 status collapsed
1958
1959 \begin_layout Plain Layout
1960 Underfull 
1961 \backslash
1962 hbox
1963 \end_layout
1964
1965 \end_inset
1966
1967
1968 \begin_inset Newline newline
1969 \end_inset
1970
1971 Not quite as common as its cousin.
1972  This happens again if \SpecialChar LaTeX
1973  does not find a reasonable break point and consequently
1974  generates too loose lines.
1975  As with the overfull lines, you should check if this is a visible problem.
1976 \end_layout
1977
1978 \begin_layout Itemize
1979 \begin_inset Flex Code
1980 status collapsed
1981
1982 \begin_layout Plain Layout
1983 Overfull 
1984 \backslash
1985 vbox
1986 \end_layout
1987
1988 \end_inset
1989
1990  and 
1991 \begin_inset Flex Code
1992 status collapsed
1993
1994 \begin_layout Plain Layout
1995 Underfull 
1996 \backslash
1997 vbox
1998 \end_layout
1999
2000 \end_inset
2001
2002
2003 \begin_inset Newline newline
2004 \end_inset
2005
2006 Warnings about troubles breaking the page.
2007  Once again, just look at the output.
2008  Your eyes will tell you where something has gone wrong.
2009 \end_layout
2010
2011 \begin_layout Itemize
2012 \begin_inset Flex Code
2013 status collapsed
2014
2015 \begin_layout Plain Layout
2016 LaTeX Error: File 
2017 \begin_inset Quotes els
2018 \end_inset
2019
2020 Xxxx
2021 \begin_inset Quotes ers
2022 \end_inset
2023
2024  not found
2025 \end_layout
2026
2027 \end_inset
2028
2029
2030 \begin_inset Newline newline
2031 \end_inset
2032
2033 The file 
2034 \begin_inset Quotes eld
2035 \end_inset
2036
2037 Xxxx
2038 \begin_inset Quotes erd
2039 \end_inset
2040
2041  isn't installed on this system.
2042  This usually appears because some package your document needs isn't installed.
2043  If you didn't touch the preamble or didn't use the 
2044 \begin_inset Flex Code
2045 status collapsed
2046
2047 \begin_layout Plain Layout
2048
2049 \backslash
2050 usepackage{}
2051 \end_layout
2052
2053 \end_inset
2054
2055  command, then one of the packages \SpecialChar LyX
2056  tried to load is missing.
2057  Use 
2058 \begin_inset Flex Noun
2059 status collapsed
2060
2061 \begin_layout Plain Layout
2062 Help\SpecialChar menuseparator
2063 \SpecialChar LaTeX
2064  Configuration
2065 \end_layout
2066
2067 \end_inset
2068
2069  to get a list of packages that \SpecialChar LyX
2070  knows about.
2071  This file is updated whenever you reconfigure \SpecialChar LyX
2072  (using 
2073 \begin_inset Flex Noun
2074 status collapsed
2075
2076 \begin_layout Plain Layout
2077 Tools\SpecialChar menuseparator
2078 Reconfigure
2079 \end_layout
2080
2081 \end_inset
2082
2083 ) and tells you which packages have been detected and what they do.
2084 \begin_inset Newline newline
2085 \end_inset
2086
2087 If you did 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 and the package in question isn't installed, then you'll need to
2100  install it yourself.
2101 \end_layout
2102
2103 \begin_layout Itemize
2104 \begin_inset Flex Code
2105 status collapsed
2106
2107 \begin_layout Plain Layout
2108 LaTeX Error: Unknown option
2109 \end_layout
2110
2111 \end_inset
2112
2113
2114 \begin_inset Newline newline
2115 \end_inset
2116
2117 Error messages beginning with this are trying to tell you that you specified
2118  a bad or undefined option to a package.
2119  Check the package's documentation.
2120 \end_layout
2121
2122 \begin_layout Itemize
2123 \begin_inset Flex Code
2124 status collapsed
2125
2126 \begin_layout Plain Layout
2127 Undefined control sequence
2128 \end_layout
2129
2130 \end_inset
2131
2132
2133 \begin_inset Newline newline
2134 \end_inset
2135
2136 If you've inserted \SpecialChar LaTeX
2137  code into your document, but made a typo, you'll get
2138  one of these.
2139  You may have forgotten to load a package.
2140  In any case, this error message usually means that you used an undefined
2141  command.
2142  
2143 \end_layout
2144
2145 \begin_layout Standard
2146 There are other error and warning messages.
2147  Some are self-explanatory.
2148  These are usually \SpecialChar LaTeX
2149  messages.
2150  Others are downright cryptic.
2151  These are usually \SpecialChar TeX
2152  error messages, and we really have 
2153 \emph on
2154 no clue
2155 \emph default
2156  what they mean or how to decipher them.
2157  No-one does.
2158 \end_layout
2159
2160 \begin_layout Standard
2161 There's a general sequence you should follow if you get error messages:
2162 \end_layout
2163
2164 \begin_layout Enumerate
2165 Look at the \SpecialChar LaTeX
2166  code you inserted for typos.
2167 \end_layout
2168
2169 \begin_layout Enumerate
2170 If there are no typos, check that you used the command(s) correctly.
2171 \end_layout
2172
2173 \begin_layout Enumerate
2174 If you get a bunch of error boxes piled up at the very top of the document—and
2175  especially if you see a 
2176 \begin_inset Quotes eld
2177 \end_inset
2178
2179
2180 \begin_inset Flex Code
2181 status collapsed
2182
2183 \begin_layout Plain Layout
2184 Missing 
2185 \backslash
2186 begin{document}
2187 \end_layout
2188
2189 \end_inset
2190
2191
2192 \begin_inset Quotes erd
2193 \end_inset
2194
2195  error—it means that there are errors in the preamble.
2196  Start debugging your preamble.
2197 \end_layout
2198
2199 \begin_layout Enumerate
2200 If you didn't add anything to the preamble and didn't add any \SpecialChar LaTeX
2201  code to the
2202  document, the first suspect is your \SpecialChar LaTeX
2203  distribution itself.
2204  Check for missing packages and install them.
2205 \end_layout
2206
2207 \begin_layout Enumerate
2208 Okay, so there are no missing packages.
2209  Did you use any of the fine-tuning options in \SpecialChar LyX
2210 ? Specifically, did you 
2211 \emph on
2212 misuse
2213 \emph default
2214  any of them, like trying to manually insert lots of 
2215 \begin_inset Flex Code
2216 status collapsed
2217
2218 \begin_layout Plain Layout
2219
2220 \change_deleted 177693 1654669036
2221 Protected
2222 \change_inserted 177693 1654669038
2223 Non-Breaking
2224 \change_unchanged
2225
2226 \begin_inset space ~
2227 \end_inset
2228
2229
2230 \change_deleted 177693 1654669040
2231 Blanks
2232 \change_inserted 177693 1654669041
2233 Spaces
2234 \change_unchanged
2235
2236 \end_layout
2237
2238 \end_inset
2239
2240
2241 \begin_inset Flex Code
2242 status collapsed
2243
2244 \begin_layout Plain Layout
2245 Linebreaks
2246 \end_layout
2247
2248 \end_inset
2249
2250 , or 
2251 \begin_inset Flex Code
2252 status collapsed
2253
2254 \begin_layout Plain Layout
2255 Pagebreaks
2256 \end_layout
2257
2258 \end_inset
2259
2260 ? Did you try to kludge something together with these instead of using the
2261  appropriate paragraph environment?
2262 \end_layout
2263
2264 \begin_layout Enumerate
2265 All right, you didn't use any of the fine-tuning options, you played by
2266  the rules.
2267  Did you try to pull a fancy maneuver? Did you do something funky inside
2268  a table or an equation, like inserting a graphic into a table cell?
2269 \end_layout
2270
2271 \begin_layout Enumerate
2272 Do you have long sections of text where \SpecialChar LaTeX
2273  cannot find a place to break a
2274  line? By default, \SpecialChar LaTeX
2275  is rather strict about how much extra inter-word spacing
2276  it will add in order to break a line.
2277  Preferably, you should rework the paragraph to avoid the problem.
2278 \end_layout
2279
2280 \begin_layout Enumerate
2281 Did you go overboard with the nesting? \SpecialChar LyX
2282  (currently) doesn't check to make
2283  sure you're in the limits for nesting environments.
2284  If you nested a bunch of environments to the 
2285 \begin_inset Formula $17^{\mathrm{th}}$
2286 \end_inset
2287
2288  level, that's the problem.
2289  (The limit in \SpecialChar LaTeX
2290  is five.)
2291 \end_layout
2292
2293 \begin_layout Enumerate
2294 Okay, you didn't get any error messages, but your output looks awful.
2295  If you have a table or figure that's too wide or long for the page, you
2296  need to:
2297 \end_layout
2298
2299 \begin_deeper
2300 \begin_layout Enumerate
2301 rescale the figure so it fits.
2302 \end_layout
2303
2304 \begin_layout Enumerate
2305 trim down the table so it fits.
2306 \end_layout
2307
2308 \end_deeper
2309 \begin_layout Enumerate
2310 If something else is wrong with the output, and you didn't try to pull anything
2311  fancy or kludge the fine-tuning options, we're not sure what's wrong.
2312 \end_layout
2313
2314 \begin_layout Standard
2315 If all this doesn't help—well, then 
2316 \emph on
2317 perhaps
2318 \emph default
2319  you might have found a bug in \SpecialChar LyX
2320 \SpecialChar ldots
2321 .
2322 \end_layout
2323
2324 \begin_layout Chapter
2325 Supplemental Tools
2326 \end_layout
2327
2328 \begin_layout Section
2329 Customizing Bibliographies with Bib\SpecialChar TeX
2330  or Biblatex
2331 \end_layout
2332
2333 \begin_layout Standard
2334 The most basic information about how to use Bib\SpecialChar TeX
2335  or 
2336 \family sans
2337 Biblatex
2338 \family default
2339  with \SpecialChar LyX
2340  is contained in the section 
2341 \emph on
2342 Bibliography databases
2343 \emph default
2344  of the 
2345 \emph on
2346 User's Guide
2347 \emph default
2348 .
2349  The following subsections explain special bibliography features supported
2350  by \SpecialChar LyX
2351 .
2352 \end_layout
2353
2354 \begin_layout Subsection
2355 Alternative Citation Styles
2356 \end_layout
2357
2358 \begin_layout Standard
2359 Standard Bib\SpecialChar TeX
2360  uses numbers (e.
2361 \begin_inset space \thinspace{}
2362 \end_inset
2363
2364 g.
2365 \begin_inset space \space{}
2366 \end_inset
2367
2368
2369 \begin_inset Quotes eld
2370 \end_inset
2371
2372 [12]
2373 \begin_inset Quotes erd
2374 \end_inset
2375
2376 ) to refer to a cited work.
2377  However, in many scientific disciplines, other citation styles are in use.
2378  The most common one is the author-year style (e.
2379 \begin_inset space \thinspace{}
2380 \end_inset
2381
2382 g.
2383 \begin_inset space \space{}
2384 \end_inset
2385
2386
2387 \begin_inset Quotes eld
2388 \end_inset
2389
2390 Knuth 1984a
2391 \begin_inset Quotes erd
2392 \end_inset
2393
2394 ).
2395  \SpecialChar LyX
2396  supports three packages that provide this style, 
2397 \begin_inset Flex Code
2398 status collapsed
2399
2400 \begin_layout Plain Layout
2401 biblatex
2402 \end_layout
2403
2404 \end_inset
2405
2406
2407 \begin_inset Flex Code
2408 status collapsed
2409
2410 \begin_layout Plain Layout
2411 natbib
2412 \end_layout
2413
2414 \end_inset
2415
2416 , and 
2417 \begin_inset Flex Code
2418 status collapsed
2419
2420 \begin_layout Plain Layout
2421 jurabib
2422 \end_layout
2423
2424 \end_inset
2425
2426 .
2427  Each of these packages has their pros and cons, which cannot be listed
2428  in detail.
2429  If you only want to have simple author-year (or author-numerical) style,
2430  or if you want to use one of the countless style files for 
2431 \begin_inset Flex Code
2432 status collapsed
2433
2434 \begin_layout Plain Layout
2435 natbib
2436 \end_layout
2437
2438 \end_inset
2439
2440 , then the established 
2441 \begin_inset Flex Code
2442 status collapsed
2443
2444 \begin_layout Plain Layout
2445 natbib
2446 \end_layout
2447
2448 \end_inset
2449
2450  package is probably your choice.
2451  If you look for specific citation styles common in law studies, you might
2452  consider the 
2453 \begin_inset Flex Code
2454 status collapsed
2455
2456 \begin_layout Plain Layout
2457 jurabib
2458 \end_layout
2459
2460 \end_inset
2461
2462  package.
2463  If you want to have full control over the formatting or look for advanced
2464  features such as ibidem, footnote citations, full title citations, advanced
2465  date formats (such as 400 BC) or full localization to other languages than
2466  English, you should definitely consider 
2467 \begin_inset Flex Code
2468 status collapsed
2469
2470 \begin_layout Plain Layout
2471 biblatex
2472 \end_layout
2473
2474 \end_inset
2475
2476 , which exceeds all other packages in terms of features, but is also quite
2477  heavy and more resource-hungry.
2478 \end_layout
2479
2480 \begin_layout Standard
2481 The handling of these packages in \SpecialChar LyX
2482  is basically the same.
2483  Go to 
2484 \begin_inset Flex Noun
2485 status collapsed
2486
2487 \begin_layout Plain Layout
2488 Document\SpecialChar menuseparator
2489 Settings
2490 \end_layout
2491
2492 \end_inset
2493
2494  and select under 
2495 \begin_inset Flex Noun
2496 status collapsed
2497
2498 \begin_layout Plain Layout
2499 Bibliography
2500 \end_layout
2501
2502 \end_inset
2503
2504  the 
2505 \begin_inset Flex Noun
2506 status collapsed
2507
2508 \begin_layout Plain Layout
2509 Style Format
2510 \end_layout
2511
2512 \end_inset
2513
2514  
2515 \begin_inset Flex Noun
2516 status collapsed
2517
2518 \begin_layout Plain Layout
2519 Basic (BibTeX)
2520 \end_layout
2521
2522 \end_inset
2523
2524
2525 \begin_inset Flex Noun
2526 status collapsed
2527
2528 \begin_layout Plain Layout
2529 Biblatex
2530 \end_layout
2531
2532 \end_inset
2533
2534
2535 \begin_inset Flex Noun
2536 status collapsed
2537
2538 \begin_layout Plain Layout
2539 Biblatex (Natbib mode)
2540 \end_layout
2541
2542 \end_inset
2543
2544
2545 \begin_inset Flex Noun
2546 status collapsed
2547
2548 \begin_layout Plain Layout
2549 Natbib (BibTeX)
2550 \end_layout
2551
2552 \end_inset
2553
2554  or 
2555 \begin_inset Flex Noun
2556 status collapsed
2557
2558 \begin_layout Plain Layout
2559 Jurabib (BibTeX)
2560 \end_layout
2561
2562 \end_inset
2563
2564  (see sec.
2565 \begin_inset space ~
2566 \end_inset
2567
2568 6.5.3 in the User's Guide for more information on these choices).
2569  With all these packages, you will get some extra features in the citation
2570  dialog and you can select the style of the reference (
2571 \begin_inset Quotes eld
2572 \end_inset
2573
2574 Knuth 1984
2575 \begin_inset Quotes erd
2576 \end_inset
2577
2578
2579 \begin_inset Quotes eld
2580 \end_inset
2581
2582 Knuth (1984)
2583 \begin_inset Quotes erd
2584 \end_inset
2585
2586
2587 \begin_inset Quotes eld
2588 \end_inset
2589
2590 Knuth, 1984
2591 \begin_inset Quotes erd
2592 \end_inset
2593
2594
2595 \begin_inset Quotes eld
2596 \end_inset
2597
2598 1984
2599 \begin_inset Quotes erd
2600 \end_inset
2601
2602  etc.).
2603  Note that either package needs specifically designed style files.
2604  They all ship their own, but there are lots of additional style files,
2605  and there is even an interactive style file builder
2606 \begin_inset Foot
2607 status collapsed
2608
2609 \begin_layout Plain Layout
2610 See 
2611 \begin_inset Flex URL
2612 status open
2613
2614 \begin_layout Plain Layout
2615
2616 ftp://ctan.tug.org/tex-archive/macros/latex/contrib/custom-bib/
2617 \end_layout
2618
2619 \end_inset
2620
2621
2622 \end_layout
2623
2624 \end_inset
2625
2626  for 
2627 \begin_inset Flex Code
2628 status collapsed
2629
2630 \begin_layout Plain Layout
2631 natbib
2632 \end_layout
2633
2634 \end_inset
2635
2636 .
2637 \end_layout
2638
2639 \begin_layout Subsection
2640 Subdivided Bibliographies
2641 \end_layout
2642
2643 \begin_layout Standard
2644 Sometimes you might need to divide your bibliography into several sections.
2645  If you are for instance a historian, the possibility to separate sources
2646  and scientific works is most likely a 
2647 \begin_inset Quotes eld
2648 \end_inset
2649
2650 must have
2651 \begin_inset Quotes erd
2652 \end_inset
2653
2654 .
2655  Unfortunately, Bib\SpecialChar TeX
2656  itself does not allow you to do this.
2657  But with the help of some \SpecialChar LaTeX
2658  packages, Bib\SpecialChar TeX
2659  can be extended to fit your needs.
2660 \end_layout
2661
2662 \begin_layout Standard
2663 \SpecialChar LyX
2664  provides native support for one of these packages, 
2665 \family typewriter
2666 bibtopic
2667 \family default
2668 .
2669 \begin_inset Foot
2670 status collapsed
2671
2672 \begin_layout Plain Layout
2673 Available from 
2674 \begin_inset Flex URL
2675 status open
2676
2677 \begin_layout Plain Layout
2678
2679 ftp://ctan.tug.org/tex-archive/macros/latex/contrib/bibtopic/
2680 \end_layout
2681
2682 \end_inset
2683
2684
2685 \end_layout
2686
2687 \end_inset
2688
2689  The advantage of this package (compared to other packages such as 
2690 \family typewriter
2691 multibib
2692 \family default
2693 ) is that you don't need to define new citation commands.
2694  Instead, you need to prepare different bibliographic databases which include
2695  the entries for the different sections of the bibliography.
2696  For example: If you want to divide your bibliography into the sections
2697  
2698 \begin_inset Quotes eld
2699 \end_inset
2700
2701 Sources
2702 \begin_inset Quotes erd
2703 \end_inset
2704
2705  and 
2706 \begin_inset Quotes eld
2707 \end_inset
2708
2709 Scientific works
2710 \begin_inset Quotes erd
2711 \end_inset
2712
2713 , you first need to create two bibliographic databases, e.
2714 \begin_inset space \thinspace{}
2715 \end_inset
2716
2717 g.
2718 \begin_inset space \space{}
2719 \end_inset
2720
2721
2722 \begin_inset Flex Code
2723 status collapsed
2724
2725 \begin_layout Plain Layout
2726 sources.bib
2727 \end_layout
2728
2729 \end_inset
2730
2731  and 
2732 \begin_inset Flex Code
2733 status collapsed
2734
2735 \begin_layout Plain Layout
2736 scientific.bib
2737 \end_layout
2738
2739 \end_inset
2740
2741 .
2742  
2743 \end_layout
2744
2745 \begin_layout Standard
2746 Go to 
2747 \begin_inset Flex Noun
2748 status collapsed
2749
2750 \begin_layout Plain Layout
2751 Document\SpecialChar menuseparator
2752 Settings
2753 \end_layout
2754
2755 \end_inset
2756
2757  and check under 
2758 \begin_inset Flex Noun
2759 status collapsed
2760
2761 \begin_layout Plain Layout
2762 Bibliography
2763 \end_layout
2764
2765 \end_inset
2766
2767  the option 
2768 \begin_inset Flex Noun
2769 status collapsed
2770
2771 \begin_layout Plain Layout
2772 Subdivided bibliography
2773 \end_layout
2774
2775 \end_inset
2776
2777 .
2778  Now you can insert multiple Bib\SpecialChar TeX
2779  bibliographies, one for each section of
2780  your bibliography.
2781  Returning to our example: Insert the Bib\SpecialChar TeX
2782  bibliography 
2783 \begin_inset Flex Code
2784 status collapsed
2785
2786 \begin_layout Plain Layout
2787 sources.bib
2788 \end_layout
2789
2790 \end_inset
2791
2792  and a second one for the database 
2793 \begin_inset Flex Code
2794 status collapsed
2795
2796 \begin_layout Plain Layout
2797 scientific.bib
2798 \end_layout
2799
2800 \end_inset
2801
2802 .
2803  You are free to use the same or different styles for each section.
2804  Additionally, you can choose if the bibliography section should contain
2805  
2806 \begin_inset Quotes eld
2807 \end_inset
2808
2809 all cited references
2810 \begin_inset Quotes erd
2811 \end_inset
2812
2813  of the specified database(s) (which is the default), 
2814 \begin_inset Quotes eld
2815 \end_inset
2816
2817 all uncited references
2818 \begin_inset Quotes erd
2819 \end_inset
2820
2821  or even 
2822 \begin_inset Quotes eld
2823 \end_inset
2824
2825 all references
2826 \begin_inset Quotes erd
2827 \end_inset
2828
2829 .
2830  This might be useful if you would like to separate your bibliography into
2831  three sections: 
2832 \begin_inset Quotes eld
2833 \end_inset
2834
2835 Cited sources
2836 \begin_inset Quotes erd
2837 \end_inset
2838
2839
2840 \begin_inset Quotes eld
2841 \end_inset
2842
2843 Uncited sources
2844 \begin_inset Quotes erd
2845 \end_inset
2846
2847 , and 
2848 \begin_inset Quotes eld
2849 \end_inset
2850
2851 Scientific works
2852 \begin_inset Quotes erd
2853 \end_inset
2854
2855 .
2856  The titles for the sections can be added as ordinary sections or subsections.
2857  Since 
2858 \begin_inset Flex Code
2859 status collapsed
2860
2861 \begin_layout Plain Layout
2862 bibtopic
2863 \end_layout
2864
2865 \end_inset
2866
2867  removes the bibliography title, you have to manually re-add that, too (as
2868  a chapter* or section*, for instance).
2869 \end_layout
2870
2871 \begin_layout Standard
2872 With 
2873 \family sans
2874 Biblatex
2875 \family default
2876 , the procedure is a bit different.
2877  Since 
2878 \family typewriter
2879 bibtopic
2880 \family default
2881  does not work with 
2882 \family sans
2883 Biblatex
2884 \family default
2885 , the aforementioned 
2886 \begin_inset Flex Noun
2887 status collapsed
2888
2889 \begin_layout Plain Layout
2890 Subdivided bibliography
2891 \end_layout
2892
2893 \end_inset
2894
2895  option is disabled if you use 
2896 \family sans
2897 Biblatex
2898 \family default
2899 .
2900  However, 
2901 \family sans
2902 Biblatex
2903 \family default
2904  provides its own means to generate subdivided bibliographies.
2905  You can either add keywords to bibliography entries via the 
2906 \begin_inset Flex Code
2907 status collapsed
2908
2909 \begin_layout Plain Layout
2910 keywords
2911 \end_layout
2912
2913 \end_inset
2914
2915  entry option and then filter bibliography sections by keyword (by adding
2916  
2917 \begin_inset Flex Code
2918 status collapsed
2919
2920 \begin_layout Plain Layout
2921 keyword=mykeyword
2922 \end_layout
2923
2924 \end_inset
2925
2926  to the 
2927 \begin_inset Flex Noun
2928 status collapsed
2929
2930 \begin_layout Plain Layout
2931 Options
2932 \end_layout
2933
2934 \end_inset
2935
2936  field of the dialog that opens if you left-click on the 
2937 \begin_inset Flex Noun
2938 status collapsed
2939
2940 \begin_layout Plain Layout
2941 Biblatex Generated Bibliography
2942 \end_layout
2943
2944 \end_inset
2945
2946  button), or you can filter by entry types (such as 
2947 \emph on
2948 book
2949 \emph default
2950  or 
2951 \emph on
2952 article
2953 \emph default
2954 ) by entering e.
2955 \begin_inset space \thinspace{}
2956 \end_inset
2957
2958 g.
2959  
2960 \begin_inset Flex Code
2961 status collapsed
2962
2963 \begin_layout Plain Layout
2964 type=book
2965 \end_layout
2966
2967 \end_inset
2968
2969  or 
2970 \begin_inset Flex Code
2971 status collapsed
2972
2973 \begin_layout Plain Layout
2974 nottype=collection
2975 \end_layout
2976
2977 \end_inset
2978
2979  to the mentioned 
2980 \begin_inset Flex Noun
2981 status collapsed
2982
2983 \begin_layout Plain Layout
2984 Options
2985 \end_layout
2986
2987 \end_inset
2988
2989  field, or you can create so-called 
2990 \begin_inset Quotes eld
2991 \end_inset
2992
2993 Bibliography Categories
2994 \begin_inset Quotes erd
2995 \end_inset
2996
2997  to which you can assign individual entries.
2998  Please refer to the Biblatex manual, section 
2999 \emph on
3000 Subdivided Bibliographies
3001 \emph default
3002 , for details.
3003 \end_layout
3004
3005 \begin_layout Subsection
3006 Multiple Bibliographies
3007 \begin_inset CommandInset label
3008 LatexCommand label
3009 name "subsec:Multiple-Bibliographies"
3010
3011 \end_inset
3012
3013
3014 \end_layout
3015
3016 \begin_layout Standard
3017 Multiple bibliographies, e.
3018 \begin_inset space \thinspace{}
3019 \end_inset
3020
3021 g.
3022 \begin_inset space \space{}
3023 \end_inset
3024
3025 a bibliography for each part, chapter, section, subsection or child (sub-documen
3026 t) of the document, are also supported by \SpecialChar LyX
3027 .
3028  In order to enable it, go to 
3029 \begin_inset Flex Noun
3030 status collapsed
3031
3032 \begin_layout Plain Layout
3033 Document\SpecialChar menuseparator
3034 Settings\SpecialChar menuseparator
3035 Bibliography
3036 \end_layout
3037
3038 \end_inset
3039
3040  and select the relevant unit (e.
3041 \begin_inset space \thinspace{}
3042 \end_inset
3043
3044 g., 
3045 \begin_inset Quotes eld
3046 \end_inset
3047
3048 per section
3049 \begin_inset Quotes erd
3050 \end_inset
3051
3052 ) in the 
3053 \begin_inset Flex Noun
3054 status collapsed
3055
3056 \begin_layout Plain Layout
3057 Multiple Bibliographies
3058 \end_layout
3059
3060 \end_inset
3061
3062  combo box.
3063  Then add a Bib(la)\SpecialChar TeX
3064  bibliography to each unit (e.
3065 \begin_inset space \thinspace{}
3066 \end_inset
3067
3068 g., section) of your document.
3069  In the output, a separate bibliography, containing only the references
3070  done in the current unit is generated.
3071 \end_layout
3072
3073 \begin_layout Standard
3074 If you use Bib\SpecialChar TeX
3075 , either the 
3076 \begin_inset Flex Code
3077 status collapsed
3078
3079 \begin_layout Plain Layout
3080 chapterbib
3081 \end_layout
3082
3083 \end_inset
3084
3085  or the 
3086 \begin_inset Flex Code
3087 status collapsed
3088
3089 \begin_layout Plain Layout
3090 bibtopic
3091 \end_layout
3092
3093 \end_inset
3094
3095  package is used to create multiple bibliographies.
3096  The former package is used if you select 
3097 \begin_inset Quotes eld
3098 \end_inset
3099
3100 per child document
3101 \begin_inset Quotes erd
3102 \end_inset
3103
3104  and do 
3105 \emph on
3106 not
3107 \emph default
3108  check 
3109 \begin_inset Flex Noun
3110 status collapsed
3111
3112 \begin_layout Plain Layout
3113 Sectioned Bibliography
3114 \end_layout
3115
3116 \end_inset
3117
3118 .
3119  In all other cases, 
3120 \begin_inset Flex Code
3121 status collapsed
3122
3123 \begin_layout Plain Layout
3124 bibtopic
3125 \end_layout
3126
3127 \end_inset
3128
3129  is used.
3130 \begin_inset Foot
3131 status collapsed
3132
3133 \begin_layout Plain Layout
3134 An alternative approach, if you are willing to use some 
3135 \begin_inset Flex Noun
3136 status collapsed
3137
3138 \begin_layout Plain Layout
3139 \SpecialChar TeX
3140  Code
3141 \end_layout
3142
3143 \end_inset
3144
3145  (see section
3146 \begin_inset space ~
3147 \end_inset
3148
3149
3150 \begin_inset CommandInset ref
3151 LatexCommand ref
3152 reference "sec:Inserting-TeX-Code"
3153
3154 \end_inset
3155
3156 ), is to use the 
3157 \begin_inset Flex Code
3158 status collapsed
3159
3160 \begin_layout Plain Layout
3161 bibunits
3162 \end_layout
3163
3164 \end_inset
3165
3166  package.
3167 \end_layout
3168
3169 \end_inset
3170
3171  If 
3172 \begin_inset Flex Code
3173 status collapsed
3174
3175 \begin_layout Plain Layout
3176 bibtopic
3177 \end_layout
3178
3179 \end_inset
3180
3181  is used, \SpecialChar LyX
3182  encloses the specified units in 
3183 \begin_inset Flex Code
3184 status collapsed
3185
3186 \begin_layout Plain Layout
3187 bibtopic
3188 \end_layout
3189
3190 \end_inset
3191
3192 's 
3193 \begin_inset Flex Code
3194 status collapsed
3195
3196 \begin_layout Plain Layout
3197
3198 \backslash
3199 begin{btUnit}
3200 \end_layout
3201
3202 \end_inset
3203
3204  and 
3205 \begin_inset Flex Code
3206 status collapsed
3207
3208 \begin_layout Plain Layout
3209
3210 \backslash
3211 end{btUnit}
3212 \end_layout
3213
3214 \end_inset
3215
3216  in order to create the units.
3217  Note that this approach has some limitations.
3218  First, every citation reference has to be inside some 
3219 \begin_inset Flex Code
3220 status collapsed
3221
3222 \begin_layout Plain Layout
3223 btUnit
3224 \end_layout
3225
3226 \end_inset
3227
3228 .
3229  So citations outside a defined unit (e.
3230 \begin_inset space \thinspace{}
3231 \end_inset
3232
3233 g., before the first section if you use 
3234 \begin_inset Quotes eld
3235 \end_inset
3236
3237 by section
3238 \begin_inset Quotes erd
3239 \end_inset
3240
3241 ) will appear as 
3242 \begin_inset Quotes eld
3243 \end_inset
3244
3245 ???
3246 \begin_inset Quotes erd
3247 \end_inset
3248
3249 .
3250  You can also create your own units by entering 
3251 \begin_inset Flex Code
3252 status collapsed
3253
3254 \begin_layout Plain Layout
3255
3256 \backslash
3257 begin{btUnit}
3258 \end_layout
3259
3260 \end_inset
3261
3262  and 
3263 \begin_inset Flex Code
3264 status collapsed
3265
3266 \begin_layout Plain Layout
3267
3268 \backslash
3269 end{btUnit}
3270 \end_layout
3271
3272 \end_inset
3273
3274  as \SpecialChar TeX
3275  code (for instance to work around the mentioned limitation).
3276  Note, though, that 
3277 \begin_inset Flex Code
3278 status collapsed
3279
3280 \begin_layout Plain Layout
3281 btUnit
3282 \end_layout
3283
3284 \end_inset
3285
3286 s cannot be nested.
3287  A second limitation is that 
3288 \begin_inset Flex Code
3289 status collapsed
3290
3291 \begin_layout Plain Layout
3292 bibtopic
3293 \end_layout
3294
3295 \end_inset
3296
3297  always processes all references of a bibliography database, even if they
3298  are not cited.
3299  This can result in odd labels (e.
3300 \begin_inset space \thinspace{}
3301 \end_inset
3302
3303 g.
3304  
3305 \begin_inset Quotes eld
3306 \end_inset
3307
3308 Miller 2014b
3309 \begin_inset Quotes erd
3310 \end_inset
3311
3312  if two works of this author from 2014 are in the database, even if only
3313  one is cited).
3314 \end_layout
3315
3316 \begin_layout Standard
3317 If you use 
3318 \family sans
3319 Biblatex
3320 \family default
3321 , the 
3322 \begin_inset Flex Code
3323 status collapsed
3324
3325 \begin_layout Plain Layout
3326 refsection
3327 \end_layout
3328
3329 \end_inset
3330
3331  option is used instead.
3332  If you need specific units, you can start them with the \SpecialChar TeX
3333  code 
3334 \begin_inset Flex Code
3335 status collapsed
3336
3337 \begin_layout Plain Layout
3338
3339 \backslash
3340 newrefsection
3341 \end_layout
3342
3343 \end_inset
3344
3345  or 
3346 \begin_inset Flex Code
3347 status collapsed
3348
3349 \begin_layout Plain Layout
3350
3351 \backslash
3352 newrefsegment
3353 \end_layout
3354
3355 \end_inset
3356
3357 , respectively.
3358  If you also want to control the end of the unit, use the environment 
3359 \begin_inset Flex Code
3360 status collapsed
3361
3362 \begin_layout Plain Layout
3363
3364 \backslash
3365 begin{refsection}
3366 \end_layout
3367
3368 \end_inset
3369
3370  \SpecialChar ldots
3371  
3372 \begin_inset Flex Code
3373 status collapsed
3374
3375 \begin_layout Plain Layout
3376
3377 \backslash
3378 end{refsection}
3379 \end_layout
3380
3381 \end_inset
3382
3383  instead.
3384  Note, though, that 
3385 \begin_inset Flex Code
3386 status collapsed
3387
3388 \begin_layout Plain Layout
3389 refsection
3390 \end_layout
3391
3392 \end_inset
3393
3394 s cannot be nested.
3395  In addition to the individual bibliography of the current unit, 
3396 \family sans
3397 Biblatex
3398 \family default
3399  also provides an easy way to output all bibliographies, subsequently, at
3400  one place (e.
3401 \begin_inset space \thinspace{}
3402 \end_inset
3403
3404 g., at the end of the document).
3405  Select 
3406 \begin_inset Quotes eld
3407 \end_inset
3408
3409 all reference units
3410 \begin_inset Quotes erd
3411 \end_inset
3412
3413  from the Content combo box of the Bib(la)TeX inset dialog in order to achieve
3414  this.
3415  Please refer to the 
3416 \family sans
3417 Biblatex
3418 \family default
3419  manual for more information on this topic.
3420 \end_layout
3421
3422 \begin_layout Section
3423 Multipart Documents
3424 \end_layout
3425
3426 \begin_layout Subsection
3427 General Operation
3428 \end_layout
3429
3430 \begin_layout Standard
3431 When you are working on a large file with many sections, it is often convenient
3432  to break up the document into several files, or perhaps you have something
3433  where a table may change from time to time, but the preceding text does
3434  not.
3435  In these cases, you should seriously consider using multipart documents.
3436  For example, scientific papers often have five major sections: the introduction
3437 , observations, results, discussion, and conclusion.
3438  Each of these could be its own separate \SpecialChar LyX
3439  file, with one 
3440 \begin_inset Quotes eld
3441 \end_inset
3442
3443 master
3444 \begin_inset Quotes erd
3445 \end_inset
3446
3447  file which contains the title, authors, abstract, references, etc., plus
3448  the five included files.
3449  It is important to note that each of these files is a full \SpecialChar LyX
3450  file which
3451  can be formatted and printed on its own, as well as included in a master
3452  file.
3453  Each of these files must have the same document class, however—don't attempt
3454  to mix book classes with article classes.
3455  You may also include \SpecialChar LaTeX
3456  files; however, these files must not have their own
3457  preamble (i.
3458 \begin_inset space \thinspace{}
3459 \end_inset
3460
3461 e.
3462 \begin_inset space \space{}
3463 \end_inset
3464
3465 everything up to and including the 
3466 \begin_inset Flex Code
3467 status collapsed
3468
3469 \begin_layout Plain Layout
3470
3471 \backslash
3472 begin{document}
3473 \end_layout
3474
3475 \end_inset
3476
3477  line as well as the 
3478 \begin_inset Flex Code
3479 status collapsed
3480
3481 \begin_layout Plain Layout
3482
3483 \backslash
3484 end{document}
3485 \end_layout
3486
3487 \end_inset
3488
3489  line must be deleted) or else errors will be generated when you try to
3490  make a DVI file.
3491 \end_layout
3492
3493 \begin_layout Standard
3494 \SpecialChar LyX
3495  allows you to include files quite easily with 
3496 \begin_inset Flex Noun
3497 status collapsed
3498
3499 \begin_layout Plain Layout
3500 Insert\SpecialChar menuseparator
3501 Child
3502 \begin_inset space ~
3503 \end_inset
3504
3505 Document
3506 \end_layout
3507
3508 \end_inset
3509
3510 .
3511  When you click on this selection a small box is inserted into the file
3512  at the current cursor location.
3513  Clicking on the box raises a dialog which allows you to select the file
3514  to be included, and the method of its inclusion.
3515  
3516 \end_layout
3517
3518 \begin_layout Standard
3519 The file selection box should by now be obvious.
3520  The three inclusion methods are 
3521 \begin_inset Quotes eld
3522 \end_inset
3523
3524 include
3525 \begin_inset Quotes erd
3526 \end_inset
3527
3528
3529 \begin_inset Quotes eld
3530 \end_inset
3531
3532 input
3533 \begin_inset Quotes erd
3534 \end_inset
3535
3536 , and 
3537 \begin_inset Quotes eld
3538 \end_inset
3539
3540 verbatim
3541 \begin_inset Quotes erd
3542 \end_inset
3543
3544 .
3545  The methods 
3546 \begin_inset Quotes eld
3547 \end_inset
3548
3549 include
3550 \begin_inset Quotes erd
3551 \end_inset
3552
3553  and 
3554 \begin_inset Quotes eld
3555 \end_inset
3556
3557 input
3558 \begin_inset Quotes erd
3559 \end_inset
3560
3561  are similar in many ways, but there are also some notable differences:
3562 \end_layout
3563
3564 \begin_layout Enumerate
3565 Files that are 
3566 \begin_inset Quotes eld
3567 \end_inset
3568
3569 included
3570 \begin_inset Quotes erd
3571 \end_inset
3572
3573  are typeset beginning on a new page, while files that are 
3574 \begin_inset Quotes eld
3575 \end_inset
3576
3577 inputted
3578 \begin_inset Quotes erd
3579 \end_inset
3580
3581  are typeset starting on the current page.
3582 \end_layout
3583
3584 \begin_layout Enumerate
3585 \begin_inset Quotes eld
3586 \end_inset
3587
3588 Included
3589 \begin_inset Quotes erd
3590 \end_inset
3591
3592  files cannot themselves 
3593 \begin_inset Quotes eld
3594 \end_inset
3595
3596 include
3597 \begin_inset Quotes erd
3598 \end_inset
3599
3600  further files (
3601 \begin_inset Quotes eld
3602 \end_inset
3603
3604 grandchilds
3605 \begin_inset Quotes erd
3606 \end_inset
3607
3608 ).
3609  With 
3610 \begin_inset Quotes eld
3611 \end_inset
3612
3613 input
3614 \begin_inset Quotes erd
3615 \end_inset
3616
3617 , on the other hand, infinite sub-inputting is possible.
3618 \end_layout
3619
3620 \begin_layout Enumerate
3621 \begin_inset Quotes eld
3622 \end_inset
3623
3624 Include
3625 \begin_inset Quotes erd
3626 \end_inset
3627
3628  allow for the output of only selected 
3629 \begin_inset Quotes eld
3630 \end_inset
3631
3632 included
3633 \begin_inset Quotes erd
3634 \end_inset
3635
3636  files, while maintaining the actual counters (pagination etc.) and references
3637  (please refer to the section 
3638 \emph on
3639 Child
3640 \begin_inset space ~
3641 \end_inset
3642
3643 Documents
3644 \emph default
3645  of the 
3646 \emph on
3647 Embedded
3648 \begin_inset space ~
3649 \end_inset
3650
3651 Objects
3652 \emph default
3653  manual for details).
3654 \end_layout
3655
3656 \begin_layout Standard
3657 Hence, 
3658 \begin_inset Quotes eld
3659 \end_inset
3660
3661 include
3662 \begin_inset Quotes erd
3663 \end_inset
3664
3665  is the preferred method for chapters that are outsourced to child documents,
3666  while 
3667 \begin_inset Quotes eld
3668 \end_inset
3669
3670 input
3671 \begin_inset Quotes erd
3672 \end_inset
3673
3674  is more suitable for arbitrary file inheritance.
3675 \end_layout
3676
3677 \begin_layout Standard
3678
3679 \begin_inset Quotes eld
3680 \end_inset
3681
3682 verbatim
3683 \begin_inset Quotes erd
3684 \end_inset
3685
3686  included file allows you to include a file typeset exactly as it appears
3687  in the file, i.
3688 \begin_inset space \thinspace{}
3689 \end_inset
3690
3691 e.
3692 \begin_inset space \space{}
3693 \end_inset
3694
3695 in 
3696 \begin_inset Flex Code
3697 status collapsed
3698
3699 \begin_layout Plain Layout
3700 verbatim
3701 \end_layout
3702
3703 \end_inset
3704
3705  mode, with the characters set in a fixed-width typewriter font.
3706  Normally, spaces in this file are invisible, though two consecutive spaces
3707  are conserved, unlike \SpecialChar LyX
3708 's normal treatment of spaces.
3709  However, setting the 
3710 \begin_inset Flex Noun
3711 status collapsed
3712
3713 \begin_layout Plain Layout
3714 Mark
3715 \begin_inset space ~
3716 \end_inset
3717
3718 spaces
3719 \begin_inset space ~
3720 \end_inset
3721
3722 in
3723 \begin_inset space ~
3724 \end_inset
3725
3726 output
3727 \end_layout
3728
3729 \end_inset
3730
3731  checkbox typesets a mark to unambiguously define the presence of a space.
3732  
3733 \end_layout
3734
3735 \begin_layout Standard
3736 Generally, the master file is converted into a full \SpecialChar LaTeX
3737  file before typesetting,
3738  while the included files are converted to \SpecialChar LaTeX
3739  files that do not have all the
3740  preamble information.
3741 \end_layout
3742
3743 \begin_layout Subsection
3744 Cross-References Between Files
3745 \end_layout
3746
3747 \begin_layout Standard
3748 \begin_inset Box Shadowbox
3749 position "t"
3750 hor_pos "c"
3751 has_inner_box 1
3752 inner_pos "t"
3753 use_parbox 0
3754 use_makebox 0
3755 width "100col%"
3756 special "none"
3757 height "1in"
3758 height_special "totalheight"
3759 thickness "0.4pt"
3760 separation "3pt"
3761 shadowsize "4pt"
3762 framecolor "black"
3763 backgroundcolor "none"
3764 status open
3765
3766 \begin_layout Plain Layout
3767 This section is somewhat out of date.
3768  Need to describe default master documents and how children are opened when
3769  the master is.
3770  [[FIXME]]
3771 \end_layout
3772
3773 \end_inset
3774
3775
3776 \end_layout
3777
3778 \begin_layout Standard
3779 It is possible to set up cross-references between the different files.
3780  First, open all the files in question: let's call them A and B in a two
3781  file example, where B is included in A.
3782  Let's say you insert a label in A, then want to reference it in B.
3783  Open the cross-reference dialog whilst in document B, and you can select
3784  the 
3785 \begin_inset Quotes eld
3786 \end_inset
3787
3788 buffer
3789 \begin_inset Quotes erd
3790 \end_inset
3791
3792  to use.
3793 \end_layout
3794
3795 \begin_layout Subsection
3796 Bibliography Lists in all Subdocuments
3797 \end_layout
3798
3799 \begin_layout Standard
3800 If you work with child documents, you might want to have only one main bibliogra
3801 phy at the end, but still be able to have a selected bibliography for the
3802  child if you output it on its own.
3803  Here is how to achieve this.
3804 \end_layout
3805
3806 \begin_layout Standard
3807 For the main document, you just insert a bibliography inset at the place
3808  where the main bibliography has to appear (within the master file or within
3809  a child).
3810  If the bibliography inset is in the master file, the references will be
3811  inherited by all children, so they are available in the citation dialog
3812  within each child.
3813 \end_layout
3814
3815 \begin_layout Standard
3816 For child-specific bibliographies, insert bibliography insets within the
3817  child documents, at the place where the bibliography should appear when
3818  the child is compiled separately.
3819  However, the trick is to insert them into a branch (
3820 \family sans
3821 Insert\SpecialChar menuseparator
3822 Branch\SpecialChar menuseparator
3823 Insert New Branch...
3824 \family default
3825 ), e.
3826 \begin_inset space \thinspace{}
3827 \end_inset
3828
3829 g.
3830  called 
3831 \begin_inset Quotes eld
3832 \end_inset
3833
3834 Childonly
3835 \begin_inset Quotes erd
3836 \end_inset
3837
3838 .
3839  Within the children, activate the branch (
3840 \family sans
3841 Document\SpecialChar menuseparator
3842 Settings...\SpecialChar menuseparator
3843 Branches
3844 \family default
3845 ).
3846  Within the master, deactivate the branch (
3847 \family sans
3848 Document\SpecialChar menuseparator
3849 Settings...\SpecialChar menuseparator
3850 Branches
3851 \family default
3852 ).
3853  Now the child's bibliography will be ignored by the master, but considered
3854  by the child.
3855 \end_layout
3856
3857 \begin_layout Standard
3858 If you need multiple bibliographies (e.
3859 \begin_inset space \thinspace{}
3860 \end_inset
3861
3862 g., one per child in the 
3863 \emph on
3864 main document
3865 \emph default
3866 ), please refer to sec.
3867 \begin_inset space ~
3868 \end_inset
3869
3870
3871 \begin_inset CommandInset ref
3872 LatexCommand ref
3873 reference "subsec:Multiple-Bibliographies"
3874
3875 \end_inset
3876
3877 .
3878 \end_layout
3879
3880 \begin_layout Section
3881 \SpecialChar LyX
3882  Archives
3883 \end_layout
3884
3885 \begin_layout Standard
3886 Users sometimes need to be able to 
3887 \begin_inset Quotes eld
3888 \end_inset
3889
3890 bundle
3891 \begin_inset Quotes erd
3892 \end_inset
3893
3894  a \SpecialChar LyX
3895  file together with all the images (and other files) on which it depends,
3896  either for sending to a publisher or for sharing with a co-author.
3897  \SpecialChar LyX
3898  includes a Python script (
3899 \begin_inset Flex Code
3900 status collapsed
3901
3902 \begin_layout Plain Layout
3903 lyxpak.py
3904 \end_layout
3905
3906 \end_inset
3907
3908 ) that automates this process.
3909  To use it, you must have either the 
3910 \begin_inset Flex Code
3911 status collapsed
3912
3913 \begin_layout Plain Layout
3914 zipfile
3915 \end_layout
3916
3917 \end_inset
3918
3919  or 
3920 \begin_inset Flex Code
3921 status collapsed
3922
3923 \begin_layout Plain Layout
3924 tarfile
3925 \end_layout
3926
3927 \end_inset
3928
3929  python modules installed on your system.
3930  By default, the script prefers the 
3931 \begin_inset Flex Code
3932 status collapsed
3933
3934 \begin_layout Plain Layout
3935 gzip
3936 \end_layout
3937
3938 \end_inset
3939
3940 -compressed 
3941 \begin_inset Flex Code
3942 status collapsed
3943
3944 \begin_layout Plain Layout
3945 tar
3946 \end_layout
3947
3948 \end_inset
3949
3950  format on Unix-like systems and the 
3951 \begin_inset Flex Code
3952 status collapsed
3953
3954 \begin_layout Plain Layout
3955 zip
3956 \end_layout
3957
3958 \end_inset
3959
3960  format on Windows.
3961 \end_layout
3962
3963 \begin_layout Standard
3964 \SpecialChar LyX
3965 's configuration process will set the script up to export a `\SpecialChar LyX
3966  Archive',
3967  and this format will then be available under 
3968 \begin_inset Flex Code
3969 status collapsed
3970
3971 \begin_layout Plain Layout
3972 File\SpecialChar menuseparator
3973 Export
3974 \end_layout
3975
3976 \end_inset
3977
3978 .
3979 \end_layout
3980
3981 \begin_layout Standard
3982 Independently of the platform, the generation of a particular archive format
3983  can be forced by adding either the 
3984 \begin_inset Flex Code
3985 status collapsed
3986
3987 \begin_layout Plain Layout
3988 -t
3989 \end_layout
3990
3991 \end_inset
3992
3993  (for the 
3994 \begin_inset Flex Code
3995 status collapsed
3996
3997 \begin_layout Plain Layout
3998 tar
3999 \end_layout
4000
4001 \end_inset
4002
4003  format) or 
4004 \begin_inset Flex Code
4005 status collapsed
4006
4007 \begin_layout Plain Layout
4008 -z
4009 \end_layout
4010
4011 \end_inset
4012
4013  (for the 
4014 \begin_inset Flex Code
4015 status collapsed
4016
4017 \begin_layout Plain Layout
4018 zip
4019 \end_layout
4020
4021 \end_inset
4022
4023  format) switch to the 
4024 \begin_inset Flex Code
4025 status collapsed
4026
4027 \begin_layout Plain Layout
4028 \SpecialChar LyX
4029 \SpecialChar menuseparator
4030 \SpecialChar LyX
4031  Archive
4032 \end_layout
4033
4034 \end_inset
4035
4036  converter in 
4037 \begin_inset Flex Code
4038 status collapsed
4039
4040 \begin_layout Plain Layout
4041 Tools\SpecialChar menuseparator
4042 Preferences\SpecialChar menuseparator
4043 File Handling\SpecialChar menuseparator
4044 Converters
4045 \end_layout
4046
4047 \end_inset
4048
4049 .
4050  (Make sure you add the switch after the script name, not before it.)
4051 \end_layout
4052
4053 \begin_layout Section
4054 Fancy Headers and Footers
4055 \end_layout
4056
4057 \begin_layout Standard
4058 The default page layout is rather plain; for an 
4059 \begin_inset Flex Code
4060 status collapsed
4061
4062 \begin_layout Plain Layout
4063 article
4064 \end_layout
4065
4066 \end_inset
4067
4068  document class, all you get is a centered page number at the bottom of
4069  the page.
4070  This document uses KOMA-script's book class, so it appears to be a bit
4071  fancier.
4072  But to really put on a show, you need to set the document page style to
4073  
4074 \begin_inset Quotes eld
4075 \end_inset
4076
4077 fancy
4078 \begin_inset Quotes erd
4079 \end_inset
4080
4081 , as mentioned in the 
4082 \emph on
4083 User Guide
4084 \emph default
4085 .
4086  This section describes the \SpecialChar LaTeX
4087  code you need to insert in your \SpecialChar LaTeX
4088  preamble in
4089  order to get the desired effects.
4090 \end_layout
4091
4092 \begin_layout Standard
4093 For more information on fancy headers, see the 
4094 \begin_inset Flex Code
4095 status collapsed
4096
4097 \begin_layout Plain Layout
4098 fancyhdr
4099 \end_layout
4100
4101 \end_inset
4102
4103  package documentation.
4104  (
4105 \begin_inset Flex URL
4106 status collapsed
4107
4108 \begin_layout Plain Layout
4109
4110 https://www.ctan.org/tex-archive/help/Catalogue/entries/fancyhdr.html
4111 \end_layout
4112
4113 \end_inset
4114
4115 )
4116 \end_layout
4117
4118 \begin_layout Standard
4119 The page header is divided into three fields, not surprisingly labeled 
4120 \begin_inset Quotes eld
4121 \end_inset
4122
4123 left
4124 \begin_inset Quotes erd
4125 \end_inset
4126
4127
4128 \begin_inset Quotes eld
4129 \end_inset
4130
4131 center
4132 \begin_inset Quotes erd
4133 \end_inset
4134
4135 , and 
4136 \begin_inset Quotes eld
4137 \end_inset
4138
4139 right
4140 \begin_inset Quotes erd
4141 \end_inset
4142
4143 .
4144  The footer is also divided into these three fields.
4145  The \SpecialChar LaTeX
4146  commands to set these fields in the simplest manner are 
4147 \begin_inset Flex Code
4148 status collapsed
4149
4150 \begin_layout Plain Layout
4151
4152 \backslash
4153 lhead
4154 \end_layout
4155
4156 \end_inset
4157
4158
4159 \begin_inset Flex Code
4160 status collapsed
4161
4162 \begin_layout Plain Layout
4163
4164 \backslash
4165 chead
4166 \end_layout
4167
4168 \end_inset
4169
4170
4171 \begin_inset Flex Code
4172 status collapsed
4173
4174 \begin_layout Plain Layout
4175
4176 \backslash
4177 rhead
4178 \end_layout
4179
4180 \end_inset
4181
4182
4183 \begin_inset Flex Code
4184 status collapsed
4185
4186 \begin_layout Plain Layout
4187
4188 \backslash
4189 lfoot
4190 \end_layout
4191
4192 \end_inset
4193
4194 , etc.
4195  Suppose you wish to put your name in the upper left hand corner of each
4196  page.
4197  Simply insert the following command in the preamble: 
4198 \end_layout
4199
4200 \begin_layout Standard
4201
4202 \family typewriter
4203
4204 \backslash
4205 lhead{John Q.
4206  DocWriter}
4207 \end_layout
4208
4209 \begin_layout Standard
4210 You will now see your name in the upper left.
4211  If a field has a default entry that you would like to get rid of (often
4212  the page number appears in the central footer) simply include a command
4213  with a blank argument, e.
4214 \begin_inset space \thinspace{}
4215 \end_inset
4216
4217 g.:
4218 \end_layout
4219
4220 \begin_layout Standard
4221
4222 \family typewriter
4223
4224 \backslash
4225 cfoot{}
4226 \end_layout
4227
4228 \begin_layout Standard
4229 Let's get really fancy: lets put the section number with the word 
4230 \begin_inset Quotes eld
4231 \end_inset
4232
4233 Section
4234 \begin_inset Quotes erd
4235 \end_inset
4236
4237  (e.
4238 \begin_inset space \thinspace{}
4239 \end_inset
4240
4241 g.
4242 \begin_inset space \space{}
4243 \end_inset
4244
4245 Section 3) in the upper left, the page number (e.
4246 \begin_inset space \thinspace{}
4247 \end_inset
4248
4249 g.
4250 \begin_inset space \space{}
4251 \end_inset
4252
4253 Page 4) in the upper right, your name in the lower left, and the date in
4254  the lower right.
4255  The following commands should now appear in the preamble:
4256 \end_layout
4257
4258 \begin_layout Standard
4259
4260 \family typewriter
4261
4262 \backslash
4263 lhead{Section 
4264 \backslash
4265 thesection}
4266 \end_layout
4267
4268 \begin_layout Standard
4269
4270 \family typewriter
4271
4272 \backslash
4273 chead{}
4274 \end_layout
4275
4276 \begin_layout Standard
4277
4278 \family typewriter
4279
4280 \backslash
4281 rhead{Page 
4282 \backslash
4283 thepage}
4284 \end_layout
4285
4286 \begin_layout Standard
4287
4288 \family typewriter
4289
4290 \backslash
4291 lfoot{John Q.
4292  DocWriter}
4293 \end_layout
4294
4295 \begin_layout Standard
4296
4297 \family typewriter
4298
4299 \backslash
4300 cfoot{}
4301 \end_layout
4302
4303 \begin_layout Standard
4304
4305 \family typewriter
4306
4307 \backslash
4308 rfoot{
4309 \backslash
4310 today}
4311 \end_layout
4312
4313 \begin_layout Standard
4314 The commands 
4315 \begin_inset Flex Code
4316 status collapsed
4317
4318 \begin_layout Plain Layout
4319
4320 \backslash
4321 thesection
4322 \end_layout
4323
4324 \end_inset
4325
4326  and 
4327 \begin_inset Flex Code
4328 status collapsed
4329
4330 \begin_layout Plain Layout
4331
4332 \backslash
4333 thepage
4334 \end_layout
4335
4336 \end_inset
4337
4338  access \SpecialChar LaTeX
4339 's section and page counters, and so print out the current section
4340  and page number.
4341  
4342 \begin_inset Flex Code
4343 status collapsed
4344
4345 \begin_layout Plain Layout
4346
4347 \backslash
4348 today
4349 \end_layout
4350
4351 \end_inset
4352
4353  simply prints out today's date.
4354 \end_layout
4355
4356 \begin_layout Standard
4357 The thicknesses of the horizontal rules drawn beneath the header and above
4358  the footer can also be modified.
4359  If you don't want one of the rules, set its thickness to 0.
4360  The header rule has a default thickness of 0.4pt, the footer rule is 0pt.
4361  Use commands
4362 \family typewriter
4363  
4364 \family default
4365 like 
4366 \begin_inset Flex Code
4367 status collapsed
4368
4369 \begin_layout Plain Layout
4370
4371 \backslash
4372 renewcommand{
4373 \backslash
4374 headrulewidth}{0.4pt}
4375 \end_layout
4376
4377 \end_inset
4378
4379  and 
4380 \begin_inset Flex Code
4381 status collapsed
4382
4383 \begin_layout Plain Layout
4384
4385 \backslash
4386 renewcommand{
4387 \backslash
4388 footrulewidth}{0.4pt}
4389 \end_layout
4390
4391 \end_inset
4392
4393  to set the thicknesses.
4394 \end_layout
4395
4396 \begin_layout Standard
4397 You can switch the header/footer settings on and off for individual pages
4398  using commands like 
4399 \begin_inset Flex Code
4400 status collapsed
4401
4402 \begin_layout Plain Layout
4403
4404 \backslash
4405 thispagestyle{empty}
4406 \end_layout
4407
4408 \end_inset
4409
4410
4411 \begin_inset Flex Code
4412 status collapsed
4413
4414 \begin_layout Plain Layout
4415
4416 \backslash
4417 thispagestyle{plain}
4418 \end_layout
4419
4420 \end_inset
4421
4422 , and 
4423 \begin_inset Flex Code
4424 status collapsed
4425
4426 \begin_layout Plain Layout
4427
4428 \backslash
4429 thispagestyle{fancy}
4430 \end_layout
4431
4432 \end_inset
4433
4434 .
4435  Simply insert them in the text on the page you want changed and mark them
4436  as \SpecialChar TeX
4437  code.
4438  In fact, title pages are marked as plain by default, while following pages
4439  are marked fancy when using the global fancy setting.
4440 \end_layout
4441
4442 \begin_layout Standard
4443 As a final example, it is possible to include an image in the header or
4444  footer.
4445  Suppose you want to put a company logo in the upper lefthand corner.
4446  You might try something like
4447 \end_layout
4448
4449 \begin_layout Standard
4450
4451 \family typewriter
4452
4453 \backslash
4454 lhead{
4455 \backslash
4456 resizebox{1in}{!}{
4457 \backslash
4458 includegraphics{logo.eps}}}
4459 \end_layout
4460
4461 \begin_layout Standard
4462 \noindent
4463 (you may need to preface this with 
4464 \begin_inset Flex Code
4465 status collapsed
4466
4467 \begin_layout Plain Layout
4468
4469 \backslash
4470 usepackage{graphics}
4471 \end_layout
4472
4473 \end_inset
4474
4475  if you don't include graphics elsewhere in your document).
4476 \end_layout
4477
4478 \begin_layout Section
4479 Itemize Bullet Selection
4480 \begin_inset CommandInset label
4481 LatexCommand label
4482 name "sec:bullet"
4483
4484 \end_inset
4485
4486
4487 \end_layout
4488
4489 \begin_layout Standard
4490 by
4491 \noun on
4492  Allan Rae
4493 \end_layout
4494
4495 \begin_layout Subsection
4496 Introduction
4497 \end_layout
4498
4499 \begin_layout Standard
4500 \SpecialChar LyX
4501  provides 216 bullet shapes that can be accessed from a simple dialog.
4502  Using this dialog you can easily specify what bullet shape to use at each
4503  level of an itemized list.
4504  These settings are document-wide so you won't be able to specify different
4505  sets of bullets for different paragraphs.
4506 \begin_inset Foot
4507 status collapsed
4508
4509 \begin_layout Plain Layout
4510 Well, actually you can but you'll have to do it by hand.
4511 \end_layout
4512
4513 \end_inset
4514
4515
4516 \end_layout
4517
4518 \begin_layout Subsection
4519 How it looks
4520 \end_layout
4521
4522 \begin_layout Standard
4523 Open the dialog by selecting the 
4524 \begin_inset Flex Noun
4525 status collapsed
4526
4527 \begin_layout Plain Layout
4528 Document\SpecialChar menuseparator
4529 Settings
4530 \end_layout
4531
4532 \end_inset
4533
4534  menu item and then select the 
4535 \begin_inset Flex Noun
4536 status collapsed
4537
4538 \begin_layout Plain Layout
4539 Bullets
4540 \end_layout
4541
4542 \end_inset
4543
4544  tab.
4545 \end_layout
4546
4547 \begin_layout Standard
4548 The dialog provides you with a table of bullet shapes.
4549  A column of buttons on the left of the table provides access to the six
4550  different panels of bullet shapes.
4551  The row of buttons across the top is used to select which bullet depth
4552  you are changing.
4553
4554 \change_deleted 244031559 1603875981
4555  A text entry under the table shows the currently selected bullet shape's
4556  \SpecialChar LaTeX
4557  equivalent and this can be edited if desired.
4558  If you do modify the text you will also need to specify any needed packages
4559  in the \SpecialChar LaTeX
4560  preamble.
4561 \change_unchanged
4562
4563 \end_layout
4564
4565 \begin_layout Standard
4566 The six panels are divided up by the packages they require.
4567  The following table shows the mappings from button name to \SpecialChar LaTeX
4568  package.
4569 \end_layout
4570
4571 \begin_layout Standard
4572 \align center
4573 \begin_inset Tabular
4574 <lyxtabular version="3" rows="7" columns="2">
4575 <features tabularvalignment="middle">
4576 <column alignment="center" valignment="top" width="0pt">
4577 <column alignment="center" valignment="top" width="0pt">
4578 <row>
4579 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
4580 \begin_inset Text
4581
4582 \begin_layout Plain Layout
4583
4584 \family roman
4585 \series medium
4586 \shape up
4587 \size normal
4588 \emph off
4589 \bar no
4590 \noun off
4591 \color none
4592 Button
4593 \end_layout
4594
4595 \end_inset
4596 </cell>
4597 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
4598 \begin_inset Text
4599
4600 \begin_layout Plain Layout
4601
4602 \family roman
4603 \series medium
4604 \shape up
4605 \size normal
4606 \emph off
4607 \bar no
4608 \noun off
4609 \color none
4610 Packages Required
4611 \end_layout
4612
4613 \end_inset
4614 </cell>
4615 </row>
4616 <row>
4617 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4618 \begin_inset Text
4619
4620 \begin_layout Plain Layout
4621
4622 \family sans
4623 \series medium
4624 \shape up
4625 \size normal
4626 \emph off
4627 \bar no
4628 \noun off
4629 \color none
4630 Standard
4631 \end_layout
4632
4633 \end_inset
4634 </cell>
4635 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4636 \begin_inset Text
4637
4638 \begin_layout Plain Layout
4639
4640 \series medium
4641 \shape up
4642 \size normal
4643 \emph off
4644 \bar no
4645 \noun off
4646 \color none
4647 base \SpecialChar LaTeX
4648
4649 \end_layout
4650
4651 \end_inset
4652 </cell>
4653 </row>
4654 <row>
4655 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4656 \begin_inset Text
4657
4658 \begin_layout Plain Layout
4659
4660 \family sans
4661 \series medium
4662 \shape up
4663 \size normal
4664 \emph off
4665 \bar no
4666 \noun off
4667 \color none
4668 Maths
4669 \end_layout
4670
4671 \end_inset
4672 </cell>
4673 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4674 \begin_inset Text
4675
4676 \begin_layout Plain Layout
4677
4678 \family typewriter
4679 \series medium
4680 \shape up
4681 \size normal
4682 \emph off
4683 \bar no
4684 \noun off
4685 \color none
4686 amssymb.sty
4687 \end_layout
4688
4689 \end_inset
4690 </cell>
4691 </row>
4692 <row>
4693 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4694 \begin_inset Text
4695
4696 \begin_layout Plain Layout
4697
4698 \family sans
4699 \series medium
4700 \shape up
4701 \size normal
4702 \emph off
4703 \bar no
4704 \noun off
4705 \color none
4706 Ding1
4707 \end_layout
4708
4709 \end_inset
4710 </cell>
4711 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4712 \begin_inset Text
4713
4714 \begin_layout Plain Layout
4715
4716 \family typewriter
4717 \series medium
4718 \shape up
4719 \size normal
4720 \emph off
4721 \bar no
4722 \noun off
4723 \color none
4724 pifont.sty
4725 \end_layout
4726
4727 \end_inset
4728 </cell>
4729 </row>
4730 <row>
4731 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4732 \begin_inset Text
4733
4734 \begin_layout Plain Layout
4735
4736 \family sans
4737 \series medium
4738 \shape up
4739 \size normal
4740 \emph off
4741 \bar no
4742 \noun off
4743 \color none
4744 Ding2
4745 \end_layout
4746
4747 \end_inset
4748 </cell>
4749 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4750 \begin_inset Text
4751
4752 \begin_layout Plain Layout
4753
4754 \family typewriter
4755 \series medium
4756 \shape up
4757 \size normal
4758 \emph off
4759 \bar no
4760 \noun off
4761 \color none
4762 pifont.sty
4763 \end_layout
4764
4765 \end_inset
4766 </cell>
4767 </row>
4768 <row>
4769 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4770 \begin_inset Text
4771
4772 \begin_layout Plain Layout
4773
4774 \family sans
4775 \series medium
4776 \shape up
4777 \size normal
4778 \emph off
4779 \bar no
4780 \noun off
4781 \color none
4782 Ding3
4783 \end_layout
4784
4785 \end_inset
4786 </cell>
4787 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4788 \begin_inset Text
4789
4790 \begin_layout Plain Layout
4791
4792 \family typewriter
4793 \series medium
4794 \shape up
4795 \size normal
4796 \emph off
4797 \bar no
4798 \noun off
4799 \color none
4800 pifont.sty
4801 \end_layout
4802
4803 \end_inset
4804 </cell>
4805 </row>
4806 <row>
4807 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
4808 \begin_inset Text
4809
4810 \begin_layout Plain Layout
4811
4812 \family sans
4813 \series medium
4814 \shape up
4815 \size normal
4816 \emph off
4817 \bar no
4818 \noun off
4819 \color none
4820 Ding4
4821 \end_layout
4822
4823 \end_inset
4824 </cell>
4825 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
4826 \begin_inset Text
4827
4828 \begin_layout Plain Layout
4829
4830 \family typewriter
4831 \series medium
4832 \shape up
4833 \size normal
4834 \emph off
4835 \bar no
4836 \noun off
4837 \color none
4838 pifont.sty
4839 \end_layout
4840
4841 \end_inset
4842 </cell>
4843 </row>
4844 </lyxtabular>
4845
4846 \end_inset
4847
4848
4849 \end_layout
4850
4851 \begin_layout Standard
4852 \SpecialChar LyX
4853  doesn't stop you using bullets from packages you don't have.
4854  If you get errors from \SpecialChar LaTeX
4855  when you try to view or print the file, then it
4856  is likely you are missing a package.
4857 \begin_inset Foot
4858 status collapsed
4859
4860 \begin_layout Plain Layout
4861 \SpecialChar LyX
4862  doesn't restrict your use since you may be editing locally and exporting
4863  elsewhere.
4864 \end_layout
4865
4866 \end_inset
4867
4868
4869 \end_layout
4870
4871 \begin_layout Subsection
4872 How to use it
4873 \end_layout
4874
4875 \begin_layout Standard
4876 Select which bullet depth you want to change then select the bullet shape
4877  and size.
4878  Any changes will not be visible in \SpecialChar LyX
4879 , but are visible when viewing the document.
4880 \end_layout
4881
4882 \begin_layout Standard
4883 You can reset a bullet shape to the default simply by clicking your right
4884  mouse button on the appropriate bullet depth button.
4885 \begin_inset Foot
4886 status open
4887
4888 \begin_layout Plain Layout
4889 If you 
4890 \emph on
4891 really
4892 \emph default
4893  want to have multiple sets of paragraphs with different sets of bullets
4894  in each, then you're going to have to get your hands dirty with \SpecialChar TeX
4895  code.
4896  The bullet selection dialog can help though because it provides you with
4897  the \SpecialChar LaTeX
4898  code for a wide range of bullet shapes.
4899  To make your own custom paragraphs you have the following options:
4900 \end_layout
4901
4902 \begin_layout Plain Layout
4903 \begin_inset ERT
4904 status open
4905
4906 \begin_layout Plain Layout
4907
4908
4909 \backslash
4910 let
4911 \backslash
4912 savelabelitemi=
4913 \backslash
4914 labelitemi
4915 \end_layout
4916
4917 \end_inset
4918
4919
4920 \end_layout
4921
4922 \begin_layout Plain Layout
4923 \begin_inset ERT
4924 status open
4925
4926 \begin_layout Plain Layout
4927
4928
4929 \backslash
4930 renewcommand
4931 \backslash
4932 labelitemi[0]{
4933 \backslash
4934 small
4935 \backslash
4936 (
4937 \backslash
4938 sharp
4939 \backslash
4940 )}
4941 \end_layout
4942
4943 \end_inset
4944
4945
4946 \end_layout
4947
4948 \begin_layout Itemize
4949 Use the \SpecialChar LaTeX
4950  command 
4951 \begin_inset Flex Code
4952 status collapsed
4953
4954 \begin_layout Plain Layout
4955
4956 \backslash
4957 renewcommand{}{}
4958 \end_layout
4959
4960 \end_inset
4961
4962  to specify a new bullet shape for a given depth.
4963  You'll also need to save the current bullet shape so you can restore it
4964  again afterwards.
4965  In this itemized list the following \SpecialChar LaTeX
4966  code was used to change the bullet
4967  used for the first depth.
4968 \end_layout
4969
4970 \begin_deeper
4971 \begin_layout LyX-Code
4972
4973 \backslash
4974 let
4975 \backslash
4976 savelabelitemi=
4977 \backslash
4978 labelitemi 
4979 \end_layout
4980
4981 \begin_layout LyX-Code
4982
4983 \backslash
4984 renewcommand
4985 \backslash
4986 labelitemi[0]{
4987 \backslash
4988 small
4989 \backslash
4990 (
4991 \backslash
4992 sharp
4993 \backslash
4994 )}
4995 \end_layout
4996
4997 \end_deeper
4998 \begin_layout Itemize
4999 Note that the itemize depth is specified in Roman numerals as part of the
5000  
5001 \family typewriter
5002
5003 \backslash
5004 labelitem
5005 \family default
5006  command.
5007 \end_layout
5008
5009 \begin_layout Itemize
5010 \begin_inset Argument item:1
5011 status open
5012
5013 \begin_layout Plain Layout
5014 \begin_inset ERT
5015 status open
5016
5017 \begin_layout Plain Layout
5018
5019
5020 \backslash
5021 (
5022 \backslash
5023 star
5024 \backslash
5025 )
5026 \end_layout
5027
5028 \end_inset
5029
5030
5031 \end_layout
5032
5033 \end_inset
5034
5035  Specify each individual entry by starting each item with the bullet shape
5036  enclosed in a 
5037 \begin_inset Quotes eld
5038 \end_inset
5039
5040 Custom Item
5041 \begin_inset Quotes erd
5042 \end_inset
5043
5044  inset (available at 
5045 \family sans
5046 Insert\SpecialChar menuseparator
5047 Custom Item
5048 \family default
5049 ) and set as 
5050 \begin_inset Flex Noun
5051 status collapsed
5052
5053 \begin_layout Plain Layout
5054 \SpecialChar TeX
5055  Code
5056 \end_layout
5057
5058 \end_inset
5059
5060 .
5061  For example, this item was started with 
5062 \begin_inset Flex Code
5063 status collapsed
5064
5065 \begin_layout Plain Layout
5066
5067 \backslash
5068 (
5069 \backslash
5070 star
5071 \backslash
5072 )
5073 \end_layout
5074
5075 \end_inset
5076
5077 .
5078 \end_layout
5079
5080 \begin_layout Plain Layout
5081 \begin_inset ERT
5082 status open
5083
5084 \begin_layout Plain Layout
5085
5086
5087 \backslash
5088 renewcommand
5089 \backslash
5090 labelitemi[0]{
5091 \backslash
5092 savelabelitemi}
5093 \end_layout
5094
5095 \end_inset
5096
5097
5098 \end_layout
5099
5100 \begin_layout Plain Layout
5101 You'll also need to revert the labelitem back to its previous setting for
5102  the global bullet shape settings to remain in effect.
5103  The way used here was:
5104 \end_layout
5105
5106 \begin_layout LyX-Code
5107
5108 \backslash
5109 renewcommand
5110 \backslash
5111 labelitemi[0]{
5112 \backslash
5113 savelabelitemi}
5114 \end_layout
5115
5116 \end_inset
5117
5118
5119 \end_layout
5120
5121 \begin_layout Chapter
5122 \SpecialChar LyX
5123  and the World Wide Web
5124 \end_layout
5125
5126 \begin_layout Standard
5127 \SpecialChar LyX
5128  has long supported the export of documents to various web-friendly formats,
5129  such as HTML.
5130  Before version 2.0, however, HTML export was always accomplished by the
5131  use of external converters.
5132 \begin_inset Foot
5133 status collapsed
5134
5135 \begin_layout Plain Layout
5136 For details on the use of external converters with \SpecialChar LyX
5137 , see the 
5138 \emph on
5139 Converters
5140 \emph default
5141  section of the Customization manual.
5142 \end_layout
5143
5144 \end_inset
5145
5146  These fall into two large groups: there are converters that use \SpecialChar LaTeX
5147  as an
5148  intermediate format, such as 
5149 \begin_inset Flex Code
5150 status collapsed
5151
5152 \begin_layout Plain Layout
5153 htlatex
5154 \end_layout
5155
5156 \end_inset
5157
5158
5159 \begin_inset Flex Code
5160 status collapsed
5161
5162 \begin_layout Plain Layout
5163 html2latex
5164 \end_layout
5165
5166 \end_inset
5167
5168 , and 
5169 \begin_inset Flex Code
5170 status collapsed
5171
5172 \begin_layout Plain Layout
5173 plastex
5174 \end_layout
5175
5176 \end_inset
5177
5178 , relying upon \SpecialChar LyX
5179  to produce the \SpecialChar LaTeX
5180 ; and there is a converter that works directly
5181  on \SpecialChar LyX
5182  files, 
5183 \begin_inset Flex Code
5184 status collapsed
5185
5186 \begin_layout Plain Layout
5187 e\SpecialChar LyX
5188 er
5189 \end_layout
5190
5191 \end_inset
5192
5193 .
5194  All of these have different advantages and disadvantages.
5195  
5196 \end_layout
5197
5198 \begin_layout Standard
5199 The \SpecialChar LaTeX
5200 -based converters have the advantage that, in principle, they know everythin
5201 g about the exported document that \SpecialChar LaTeX
5202  does.
5203  Such converters do not care, for example, if a certain block of code was
5204  produced by \SpecialChar LyX
5205  or was Evil Red Text.
5206  These converters know about 
5207 \begin_inset Flex Code
5208 status collapsed
5209
5210 \begin_layout Plain Layout
5211 aux
5212 \end_layout
5213
5214 \end_inset
5215
5216  files, counters, and references, and can often make use of the 
5217 \begin_inset Flex Code
5218 status collapsed
5219
5220 \begin_layout Plain Layout
5221 bbl
5222 \end_layout
5223
5224 \end_inset
5225
5226  files generated by Bib\SpecialChar TeX
5227 .
5228  On the other hand, \SpecialChar LaTeX
5229  is a very hard language to parse—it is sometimes said
5230  that only \SpecialChar TeX
5231  itself understands \SpecialChar TeX
5232 —and \SpecialChar LaTeX
5233 -based converters will often choke on
5234  what seem to be quite simple constructs; complex ones can throw them completely
5235 , and as of this writing, for example, the 
5236 \emph on
5237 Embedded Objects
5238 \emph default
5239  manual will not export with 
5240 \begin_inset Flex Code
5241 status collapsed
5242
5243 \begin_layout Plain Layout
5244 htlatex
5245 \end_layout
5246
5247 \end_inset
5248
5249 , though the others will.
5250  The other issue concerns how math is handled.
5251  These converters typically convert the formulae into little pictures that
5252  are then linked from the HTML document.
5253  Since these are actually generated by \SpecialChar LaTeX
5254 , they are accurate.
5255  But they do not scale well, and just getting them to look as if they are
5256  actually meant to be in your document—so that the font sizes seem to be
5257  roughly the same—can be a challenge.
5258 \end_layout
5259
5260 \begin_layout Standard
5261 Alex Fernandez's 
5262 \begin_inset Flex Code
5263 status collapsed
5264
5265 \begin_layout Plain Layout
5266 e\SpecialChar LyX
5267 er
5268 \end_layout
5269
5270 \end_inset
5271
5272  (
5273 \begin_inset CommandInset href
5274 LatexCommand href
5275 name "http://pinchito.es/elyxer/"
5276 target "http://pinchito.es/elyxer/"
5277 literal "false"
5278
5279 \end_inset
5280
5281 ) solves some of these problems.
5282  In particular, the formulae it produces scale perfectly, since it renders
5283  math using a combination of HTML and CSS rather than converting the formulae
5284  to images.
5285  But even moderately complex formula are rendered less well than with 
5286 \begin_inset Flex Code
5287 status collapsed
5288
5289 \begin_layout Plain Layout
5290 htlatex
5291 \end_layout
5292
5293 \end_inset
5294
5295 ; this reflects the limitations of HTML.
5296 \begin_inset Foot
5297 status collapsed
5298
5299 \begin_layout Plain Layout
5300 That said, 
5301 \begin_inset Flex Code
5302 status collapsed
5303
5304 \begin_layout Plain Layout
5305 e\SpecialChar LyX
5306 er
5307 \end_layout
5308
5309 \end_inset
5310
5311  can also use jsMath and MathJax for equations, but this setting is only
5312  available globally and requires one to have access to a server that runs
5313  the backend.
5314 \end_layout
5315
5316 \end_inset
5317
5318  More importantly (as of version 1.1.1, at least), 
5319 \begin_inset Flex Code
5320 status collapsed
5321
5322 \begin_layout Plain Layout
5323 e\SpecialChar LyX
5324 er
5325 \end_layout
5326
5327 \end_inset
5328
5329  has limited support for math macros and no support for user-defined paragraph
5330  or character styles.
5331  These limitations make 
5332 \begin_inset Flex Code
5333 status collapsed
5334
5335 \begin_layout Plain Layout
5336 e\SpecialChar LyX
5337 er
5338 \end_layout
5339
5340 \end_inset
5341
5342  unsuitable for many of the documents \SpecialChar LyX
5343  users produce.
5344  In principle, of course, these problems could be solved, but the \SpecialChar LyX
5345  developers
5346  have decided to follow a different path and have made \SpecialChar LyX
5347  itself capable of
5348  writing XHTML, just as it is capable of writing \SpecialChar LaTeX
5349 , DocBook, and plaintext.
5350 \end_layout
5351
5352 \begin_layout Standard
5353 As of this writing, XHTML output remains under development and should probably
5354  be regarded as 
5355 \begin_inset Quotes eld
5356 \end_inset
5357
5358 experimental
5359 \begin_inset Quotes erd
5360 \end_inset
5361
5362 .
5363 \begin_inset Foot
5364 status collapsed
5365
5366 \begin_layout Plain Layout
5367 The file 
5368 \begin_inset Flex Code
5369 status collapsed
5370
5371 \begin_layout Plain Layout
5372 development/HTML/HTML.notes
5373 \end_layout
5374
5375 \end_inset
5376
5377 , which can be found in the \SpecialChar LyX
5378  source tree or 
5379 \begin_inset CommandInset href
5380 LatexCommand href
5381 name "accessed online"
5382 target "https://www.lyx.org/trac/browser/lyxgit/development/HTML/HTML.notes?rev=master"
5383 literal "false"
5384
5385 \end_inset
5386
5387 , usually contains up-to-date information about the state of XHTML output.
5388  See also the list of XHTML bugs on 
5389 \begin_inset CommandInset href
5390 LatexCommand href
5391 name "the bug tracker"
5392 target "https://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"
5393 literal "false"
5394
5395 \end_inset
5396
5397 .
5398 \end_layout
5399
5400 \end_inset
5401
5402  Still, the developers have chosen this approach because it has several
5403  potential advantages over the other two.
5404 \end_layout
5405
5406 \begin_layout Standard
5407 These advantages are primarily due to the fact that the XHTML output routines,
5408  since they are part of \SpecialChar LyX
5409 , know everything \SpecialChar LyX
5410  knows about the document being
5411  exported.
5412 \begin_inset Foot
5413 status collapsed
5414
5415 \begin_layout Plain Layout
5416 Another advantage is that, since these routines are internal to \SpecialChar LyX
5417 , they are
5418  immune to changes in \SpecialChar LyX
5419 's file format, or to changes in the semantics of
5420  existing insets.
5421 \end_layout
5422
5423 \end_inset
5424
5425  So they know about the table of contents (as displayed in the outline),
5426  about the counters associated with different paragraph styles, and about
5427  user-defined styles.
5428  The XHTML output routines know what \SpecialChar LyX
5429  knows about internationalization,
5430  too, so they will output 
5431 \begin_inset Quotes eld
5432 \end_inset
5433
5434 Chapter 1
5435 \begin_inset Quotes erd
5436 \end_inset
5437
5438  or 
5439 \begin_inset Quotes eld
5440 \end_inset
5441
5442
5443 \lang ngerman
5444 Kapitel
5445 \lang english
5446  1
5447 \begin_inset Quotes erd
5448 \end_inset
5449
5450 , depending upon the language in effect at the time.
5451  
5452 \end_layout
5453
5454 \begin_layout Standard
5455 Quite generally, the output routines know what \SpecialChar LyX
5456  knows about document layout,
5457  that is, about how the document is to be rendered on screen.
5458  We use this information when we output the document as XHTML.
5459  In particular, \SpecialChar LyX
5460  
5461 \emph on
5462 automatically
5463 \emph default
5464  generates CSS style information corresponding to the layout information
5465  it uses to render the document on screen: if section headings are supposed
5466  to be sans-serif and bold as seen in \SpecialChar LyX
5467 , then (by default) they will be sans-seri
5468 f and bold when viewed in a web browser, too.
5469  And this is true not just for pre-defined styles, like Section, but for
5470  any style, including user-defined styles.
5471  Indeed, the XHTML output routines make no distinction between user-defined
5472  paragraph and 
5473 \change_deleted 244031559 1603876931
5474 character
5475 \change_inserted 244031559 1603876940
5476 text
5477 \change_unchanged
5478  styles and \SpecialChar LyX
5479 's own pre-defined styles: in each case, everything \SpecialChar LyX
5480  knows about
5481  the styles is contained in the layout files.
5482  And much the same is true as regards pre-defined textual insets, such as
5483  footnotes, and various custom insets.
5484  
5485 \end_layout
5486
5487 \begin_layout Standard
5488 The result is that XHTML output can be customized and extended in exactly
5489  the same way \SpecialChar LaTeX
5490  output can be customized and extended: through layout files
5491  and modules.
5492  See chapter five of the 
5493 \emph on
5494 Customization 
5495 \emph default
5496 manual for the details.
5497 \end_layout
5498
5499 \begin_layout Standard
5500 The remainder of this chapter contains more detailed information on XHTML
5501  output, its limitations, and ways to work around those limitations.
5502 \end_layout
5503
5504 \begin_layout Section
5505 Math Output in XHTML
5506 \end_layout
5507
5508 \begin_layout Standard
5509 \SpecialChar LyX
5510  offers four choices for how math is rendered.
5511  These have various advantages and disadvantages:
5512 \end_layout
5513
5514 \begin_layout Itemize
5515 MathML
5516 \begin_inset Newline newline
5517 \end_inset
5518
5519 MathML is a dialect of XML designed specifically for mathematics on the
5520  web, and it typically renders very well in browsers that support it.
5521  The disadvantage is that not all browsers support MathML, and support is
5522  not complete even in the Gecko-based browsers, such as Firefox.
5523 \begin_inset Newline newline
5524 \end_inset
5525
5526 If \SpecialChar LyX
5527  is unable to render a formula as MathML—for example, if the formula
5528  uses the 
5529 \begin_inset Flex Code
5530 status collapsed
5531
5532 \begin_layout Plain Layout
5533 xymatrix
5534 \end_layout
5535
5536 \end_inset
5537
5538  package or ERT—then it will instead output the formula as an image.
5539  
5540 \end_layout
5541
5542 \begin_layout Itemize
5543 HTML
5544 \begin_inset Newline newline
5545 \end_inset
5546
5547 As mentioned above, 
5548 \begin_inset Flex Code
5549 status collapsed
5550
5551 \begin_layout Plain Layout
5552 elyxer
5553 \end_layout
5554
5555 \end_inset
5556
5557  outputs math as HTML, styled by CSS.
5558 \begin_inset Foot
5559 status collapsed
5560
5561 \begin_layout Plain Layout
5562 \SpecialChar LyX
5563  has borrowed some of the CSS for its HTML output from 
5564 \begin_inset Flex Code
5565 status collapsed
5566
5567 \begin_layout Plain Layout
5568 elyxer
5569 \end_layout
5570
5571 \end_inset
5572
5573 .
5574 \end_layout
5575
5576 \end_inset
5577
5578  For simple formulae, this can work quite well, though with more complicated
5579  formulae it tends to break down.
5580  Still, this method has the advantage that it is very widely supported and
5581  so it may be appropriate for documents that contain only a little, fairly
5582  simple math.
5583 \begin_inset Newline newline
5584 \end_inset
5585
5586 If Lyx is unable to render a formula as HTML—for example, if the formula
5587  uses the 
5588 \begin_inset Flex Code
5589 status collapsed
5590
5591 \begin_layout Plain Layout
5592 xymatrix
5593 \end_layout
5594
5595 \end_inset
5596
5597  package or ERT—then it will instead output the formula as an image.
5598  
5599 \end_layout
5600
5601 \begin_layout Itemize
5602 Images
5603 \begin_inset Newline newline
5604 \end_inset
5605
5606 Like 
5607 \begin_inset Flex Code
5608 status collapsed
5609
5610 \begin_layout Plain Layout
5611 htlatex
5612 \end_layout
5613
5614 \end_inset
5615
5616 , \SpecialChar LyX
5617  will output formulae as images, the very same images, in fact, that are
5618  used for instant preview.
5619 \begin_inset Foot
5620 status collapsed
5621
5622 \begin_layout Plain Layout
5623 Instant preview does 
5624 \emph on
5625 not 
5626 \emph default
5627 have to be on for images to be output, however.
5628 \end_layout
5629
5630 \end_inset
5631
5632  The advantage to this method is that the images are simply generated by
5633  \SpecialChar LaTeX
5634 , so they are very accurate.
5635  The disadvantage, as mentioned earlier, is that these are bitmapped images,
5636  so they do not scale terribly well, and one cannot copy them, etc.
5637 \begin_inset Newline newline
5638 \end_inset
5639
5640 The size of the images can be controlled by setting the 
5641 \begin_inset Quotes eld
5642 \end_inset
5643
5644 Math Images Scaling
5645 \begin_inset Quotes erd
5646 \end_inset
5647
5648  parameter under 
5649 \begin_inset Flex Noun
5650 status collapsed
5651
5652 \begin_layout Plain Layout
5653 Document\SpecialChar menuseparator
5654 Settings\SpecialChar menuseparator
5655 Formats
5656 \end_layout
5657
5658 \end_inset
5659
5660 .
5661 \begin_inset Foot
5662 status collapsed
5663
5664 \begin_layout Plain Layout
5665 For those who want to know, this controls the resolution of the image in
5666  dots per inch and is based upon a default of 75 dpi.
5667 \end_layout
5668
5669 \end_inset
5670
5671
5672 \begin_inset Newline newline
5673 \end_inset
5674
5675 If \SpecialChar LyX
5676  for some reason fails to create an image for a formula (e.g., if a required
5677  \SpecialChar LaTeX
5678  package is not installed), then it will fall back to outputing the raw
5679  \SpecialChar LaTeX
5680 .
5681 \end_layout
5682
5683 \begin_layout Itemize
5684 \SpecialChar LaTeX
5685
5686 \begin_inset Newline newline
5687 \end_inset
5688
5689 Finally, \SpecialChar LyX
5690  will happily output math as \SpecialChar LaTeX
5691 .
5692  As well as being the output of last resort, this method can be used with
5693  such tools as 
5694 \begin_inset CommandInset href
5695 LatexCommand href
5696 name "jsMath"
5697 target "http://www.math.union.edu/~dpvc/jsMath/"
5698 literal "false"
5699
5700 \end_inset
5701
5702 , which uses JavaScript to render \SpecialChar LaTeX
5703  embedded in HTML documents.
5704  \SpecialChar LyX
5705  wraps the \SpecialChar LaTeX
5706  in either a 
5707 \begin_inset Flex Code
5708 status collapsed
5709
5710 \begin_layout Plain Layout
5711 span
5712 \end_layout
5713
5714 \end_inset
5715
5716  (for inline formulas) or 
5717 \begin_inset Flex Code
5718 status collapsed
5719
5720 \begin_layout Plain Layout
5721 div
5722 \end_layout
5723
5724 \end_inset
5725
5726  (for displayed formulas) with 
5727 \begin_inset Flex Code
5728 status collapsed
5729
5730 \begin_layout Plain Layout
5731 class='math'
5732 \end_layout
5733
5734 \end_inset
5735
5736 , as is required for jsMath.
5737 \end_layout
5738
5739 \begin_layout Standard
5740 One of these output methods must be selected under 
5741 \begin_inset Flex Noun
5742 status collapsed
5743
5744 \begin_layout Plain Layout
5745 Document\SpecialChar menuseparator
5746 Settings\SpecialChar menuseparator
5747 Formats
5748 \end_layout
5749
5750 \end_inset
5751
5752 .
5753  By default, \SpecialChar LyX
5754  outputs MathML.
5755  This is a document-wide setting, therefore.
5756 \end_layout
5757
5758 \begin_layout Standard
5759 Eventually, \SpecialChar LyX
5760  will offer the user the option to select an alternate output
5761  method for a particular inset, say, one that isn't being rendered very
5762  well by MathML.
5763 \begin_inset Foot
5764 status collapsed
5765
5766 \begin_layout Plain Layout
5767 That said, since \SpecialChar LyX
5768  falls back to images if the inset contains ERT, then one
5769  can force output as an image by putting some harmless ERT into the math,
5770  for example: 
5771 \begin_inset Formula $a=b\relax$
5772 \end_inset
5773
5774 .
5775 \end_layout
5776
5777 \end_inset
5778
5779
5780 \end_layout
5781
5782 \begin_layout Section
5783 Bibliography and Citations
5784 \end_layout
5785
5786 \begin_layout Standard
5787 XHTML output fully supports bibliographies and citations.
5788  
5789 \end_layout
5790
5791 \begin_layout Standard
5792 Citation labels are generated by the same machinery that generates \SpecialChar LyX
5793 's on-screen
5794  labels, so the labels will look in the output much as they do in \SpecialChar LyX
5795 , though
5796  better.
5797  If you are using numerical citations, then \SpecialChar LyX
5798  will output numerical labels,
5799  such as [1] or [17], rather than simply showing the citation key in square
5800  brackets, as it does on-screen.
5801  If you are using author-year citations, then \SpecialChar LyX
5802  will add lowercase letters
5803  to the years, just as Bib\SpecialChar TeX
5804  does, if it finds more than one citation for
5805  a given author-year combination.
5806  The labels will be printed with the bibliography entries.
5807  Note that there is, at present, no way to customize the appearance of the
5808  labels, for example, to choose between square brackets and parentheses.
5809 \end_layout
5810
5811 \begin_layout Standard
5812 Bibliography output is handled by the same machinery that handles the presentati
5813 on of reference information in the citation dialog, so you will see in the
5814  XHTML output pretty much what you would see if you were to look at a given
5815  entry in the citation dialog.
5816  The formatting can be customized in your layout file or, preferably, in
5817  a module.
5818  See the 
5819 \emph on
5820 Customization
5821 \emph default
5822  manual for the details.
5823 \end_layout
5824
5825 \begin_layout Standard
5826 The main defect at present is that cross-referenced information is printed
5827  with every entry with which it is associated.
5828  So you can see things like this:
5829 \end_layout
5830
5831 \begin_layout Quote
5832 Jason Stanley, 
5833 \begin_inset Quotes eld
5834 \end_inset
5835
5836 Context and Logical Form
5837 \begin_inset Quotes erd
5838 \end_inset
5839
5840 , in 
5841 \emph on
5842 Language in Context: Selected Essays
5843 \emph default
5844  (Oxford: Oxford University Press, 2007), pp.
5845  30–68.
5846 \end_layout
5847
5848 \begin_layout Quote
5849 Jason Stanley, 
5850 \begin_inset Quotes eld
5851 \end_inset
5852
5853 Semantics in Context
5854 \begin_inset Quotes erd
5855 \end_inset
5856
5857 , in 
5858 \emph on
5859 Language in Context: Selected Essays
5860 \emph default
5861  (Oxford: Oxford University Press, 2007), pp.
5862  201–30.
5863 \end_layout
5864
5865 \begin_layout Standard
5866 This should be fixed before long.
5867 \end_layout
5868
5869 \begin_layout Standard
5870 There is no support at present for sectioned bibliographies.
5871  If you have multiple bibliographies, then \SpecialChar LyX
5872  will print the same bibliography
5873  over and over.
5874 \end_layout
5875
5876 \begin_layout Section
5877 Indexes
5878 \end_layout
5879
5880 \begin_layout Standard
5881 \SpecialChar LyX
5882  will happily export indexes as XHTML, but with certain limitations at the
5883  moment.
5884 \end_layout
5885
5886 \begin_layout Standard
5887 Index export will be most reliable when you do not attempt to use the fancy
5888  constructs that are described in the section on indexes in the 
5889 \emph on
5890 User's Guide
5891 \emph default
5892 .
5893 \begin_inset Foot
5894 status collapsed
5895
5896 \begin_layout Plain Layout
5897 The main issue here is that \SpecialChar LyX
5898  itself does not really handle these.
5899  It just lets you enter what you would have to enter in raw \SpecialChar LaTeX
5900 .
5901 \end_layout
5902
5903 \end_inset
5904
5905  We'll describe how they are handled using the subsection headings from
5906  that section.
5907 \end_layout
5908
5909 \begin_layout Itemize
5910 Grouping Index Entries (aka, sub-entries): \SpecialChar LyX
5911  makes an effort to support these,
5912  but the entries must be separated by 
5913 \begin_inset Quotes eld
5914 \end_inset
5915
5916  ! 
5917 \begin_inset Quotes erd
5918 \end_inset
5919
5920 , that is, there must be spaces around the exclamation point.
5921  This is because it is otherwise too difficult to check for escaped exclamation
5922  points, ones in math, and so forth.
5923 \end_layout
5924
5925 \begin_layout Itemize
5926 Page Ranges: There is no support at all for page ranges, since these make
5927  no sense with XHMTL.
5928  Instead, you will just get two index entries, one at either end.
5929 \end_layout
5930
5931 \begin_layout Itemize
5932 Cross-referencing: There is no support for cross-referencing.
5933  If \SpecialChar LyX
5934  finds an entry containing the 
5935 \begin_inset Quotes eld
5936 \end_inset
5937
5938 |see\SpecialChar ldots
5939
5940 \begin_inset Quotes erd
5941 \end_inset
5942
5943  construct, it is just dropped, and the rest is treated as an ordinary index
5944  entry.
5945 \end_layout
5946
5947 \begin_layout Itemize
5948 Index Entry Order: \SpecialChar LyX
5949  does support attempts to fix the sorting order.
5950  It will take what is before the first `@' it finds and use that for sorting,
5951  taking what follows the first `@' to be the actual entry.
5952  At present, \SpecialChar LyX
5953  does not check for escaped `@', so do not try to index email
5954  addresses.
5955 \end_layout
5956
5957 \begin_layout Itemize
5958 Index Entry Layout: You can format entries by using the text style dialog,
5959  or by using any other method available within \SpecialChar LyX
5960  itself.
5961  There is no support for constructs like: 
5962 \begin_inset Quotes eld
5963 \end_inset
5964
5965 entry|textbf
5966 \begin_inset Quotes erd
5967 \end_inset
5968
5969 .
5970  Indeed, if \SpecialChar LyX
5971  finds a pipe symbol, `|', in an entry, it will delete it and
5972  everything that follows it.
5973 \end_layout
5974
5975 \begin_layout Itemize
5976 Multiple Indexes: There is no support for multiple indexes.
5977  Rather, all index entries will be printed as one large index.
5978  To avoid our printing several versions of the index, we print only the
5979  main index, so make sure you have one.
5980 \end_layout
5981
5982 \begin_layout Section
5983 Nomenclature and Glossary
5984 \end_layout
5985
5986 \begin_layout Standard
5987 There is at present no support for glossaries.
5988  Adding it would be fairly trivial, and welcome.
5989 \end_layout
5990
5991 \begin_layout Chapter
5992
5993 \change_inserted 1075283030 1616534180
5994 DocBook Output
5995 \end_layout
5996
5997 \begin_layout Standard
5998
5999 \change_inserted 1075283030 1616534386
6000 Apart from HTML, \SpecialChar LyX
6001  can generate documents in the DocBook XML vocabulary.
6002  With versions 2.3 and before, only select templates could be used to generate
6003  DocBook documents (only version 4).
6004  Starting with \SpecialChar LyX
6005  2.4, most \SpecialChar LyX
6006  layouts can generate valid DocBook documents (only
6007  version 5).
6008  This feature is built into \SpecialChar LyX
6009  and does not require the use of external tools.
6010 \end_layout
6011
6012 \begin_layout Standard
6013
6014 \change_inserted 1075283030 1616534437
6015 The result is that the DocBook output can be customized and extended in
6016  exactly the same way \SpecialChar LaTeX
6017  output can be customized and extended: through layout
6018  files and modules.
6019  See chapter five of the 
6020 \emph on
6021 Customization 
6022 \emph default
6023 manual for the details.
6024 \end_layout
6025
6026 \begin_layout Standard
6027
6028 \change_inserted 1075283030 1616534475
6029 Most \SpecialChar LyX
6030  features are supported with DocBook, like math output.
6031 \end_layout
6032
6033 \begin_layout Itemize
6034
6035 \change_inserted 1075283030 1616534741
6036 Math output is performed mostly in MathML (the major exception being constructio
6037 ns not supported by \SpecialChar LyX
6038 , i.e.
6039  ERTs).
6040  All formulae are also available in raw \SpecialChar TeX
6041  in the DocBook output for further
6042  processing.
6043 \end_layout
6044
6045 \begin_layout Itemize
6046
6047 \change_inserted 1075283030 1616534852
6048 Bibliographies and citations are implemented, including with an external
6049  BibTeX file.
6050  Bibliography entries are not prerendered when the detailed information
6051  are available, but rather output with the standard DocBook constructs.
6052  The external DocBook processor is expected to handle the rendering of entries.
6053 \end_layout
6054
6055 \begin_layout Itemize
6056
6057 \change_inserted 1075283030 1616534863
6058 Indexes are supported, including multiple indices.
6059  Grouping (with 
6060 \family typewriter
6061 !
6062 \family default
6063 ), page ranges, and cross-references (
6064 \family typewriter
6065 |see
6066 \family default
6067 ) are supported, with the exception of the same symbols escaped.
6068  Entry order (
6069 \family typewriter
6070 @
6071 \family default
6072 ) and layout (
6073 \family typewriter
6074 |mathbf
6075 \family default
6076 ) are not supported.
6077  There is no support for escaping of index entries.
6078 \end_layout
6079
6080 \begin_layout Itemize
6081
6082 \change_inserted 1075283030 1616534884
6083 Glossaries are implemented.
6084 \end_layout
6085
6086 \begin_layout Standard
6087
6088 \change_inserted 1075283030 1616534894
6089 Two major parameters can be set at the document level.
6090 \end_layout
6091
6092 \begin_layout Itemize
6093
6094 \change_inserted 1075283030 1616534948
6095 Format for tables: \SpecialChar LyX
6096  can generate tables either as HTML (default value) or
6097  CALS, depending on the user's requirements.
6098  Most DocBook processors accept both formats.
6099 \end_layout
6100
6101 \begin_layout Itemize
6102
6103 \change_inserted 1075283030 1616535006
6104 MathML prefix: in DocBook, MathML is included within its own name space,
6105  unlike HTML.
6106  The implication is that there must be an indication of the tags belonging
6107  to the MathML standard.
6108  Three choices are offered: 
6109 \end_layout
6110
6111 \begin_deeper
6112 \begin_layout Itemize
6113
6114 \change_inserted 1075283030 1616535044
6115 Inline: the MathML name space is defined for each formula (using the 
6116 \family typewriter
6117 xmlns
6118 \family default
6119  attribute on each formula)
6120 \end_layout
6121
6122 \begin_layout Itemize
6123
6124 \change_inserted 1075283030 1616535090
6125 With the 
6126 \family typewriter
6127 m
6128 \family default
6129  prefix (default): the MathML name space is defined at the document level
6130  (using the 
6131 \family typewriter
6132 xmlns:m
6133 \family default
6134  attribute on the root element).
6135  Each MathML is prefixed with 
6136 \family typewriter
6137 m
6138 \family default
6139 : for instance, 
6140 \family typewriter
6141 m:math
6142 \end_layout
6143
6144 \begin_layout Itemize
6145
6146 \change_inserted 1075283030 1616620405
6147 With the 
6148 \family typewriter
6149 mml
6150 \family default
6151  prefix: similar to the 
6152 \family typewriter
6153 m
6154 \family default
6155  option, but with 
6156 \family typewriter
6157 mml
6158 \end_layout
6159
6160 \begin_layout Standard
6161
6162 \change_inserted 1075283030 1616620470
6163 This option is especially useful if you want \SpecialChar LyX
6164  to match your personal style
6165  or to work with buggy software that only accepts one prefix for MathML.
6166 \change_unchanged
6167
6168 \end_layout
6169
6170 \end_deeper
6171 \begin_layout Chapter
6172 The \SpecialChar LyX
6173  Server
6174 \end_layout
6175
6176 \begin_layout Section
6177 Introduction
6178 \end_layout
6179
6180 \begin_layout Standard
6181 The `\SpecialChar LyX
6182  server' allows other programs to talk to \SpecialChar LyX
6183 , invoke \SpecialChar LyX
6184  commands, and retrieve
6185  information about the \SpecialChar LyX
6186  internal state.
6187  This is only intended for advanced users, but they should find it useful.
6188  It is by writing to the \SpecialChar LyX
6189  server, for example, that bibliography managers,
6190  such as JabRef, are able to 
6191 \begin_inset Quotes eld
6192 \end_inset
6193
6194 push
6195 \begin_inset Quotes erd
6196 \end_inset
6197
6198  citations to \SpecialChar LyX
6199 .
6200 \end_layout
6201
6202 \begin_layout Section
6203 Starting the \SpecialChar LyX
6204  Server
6205 \begin_inset CommandInset label
6206 LatexCommand label
6207 name "sec:Starting-the-Server"
6208
6209 \end_inset
6210
6211
6212 \end_layout
6213
6214 \begin_layout Standard
6215 The \SpecialChar LyX
6216  server works through the use of a pair of named pipes.
6217  These are usually located in 
6218 \begin_inset Flex Code
6219 status collapsed
6220
6221 \begin_layout Plain Layout
6222 UserDir
6223 \end_layout
6224
6225 \end_inset
6226
6227 , (except on Windows, where 
6228 \emph on
6229 local
6230 \emph default
6231  named pipes are special objects located in 
6232 \begin_inset Flex Code
6233 status collapsed
6234
6235 \begin_layout Plain Layout
6236
6237 \backslash
6238
6239 \backslash
6240 .
6241 \backslash
6242 pipe
6243 \end_layout
6244
6245 \end_inset
6246
6247 ) and have the names 
6248 \begin_inset Quotes eld
6249 \end_inset
6250
6251
6252 \begin_inset Flex Code
6253 status collapsed
6254
6255 \begin_layout Plain Layout
6256 lyxpipe.in
6257 \end_layout
6258
6259 \end_inset
6260
6261
6262 \begin_inset Quotes erd
6263 \end_inset
6264
6265  and 
6266 \begin_inset Quotes eld
6267 \end_inset
6268
6269
6270 \begin_inset Flex Code
6271 status collapsed
6272
6273 \begin_layout Plain Layout
6274 lyxpipe.out
6275 \end_layout
6276
6277 \end_inset
6278
6279
6280 \begin_inset Quotes erd
6281 \end_inset
6282
6283 .
6284  External programs write into 
6285 \begin_inset Flex Code
6286 status collapsed
6287
6288 \begin_layout Plain Layout
6289 lyxpipe.in
6290 \end_layout
6291
6292 \end_inset
6293
6294  and read back data from 
6295 \begin_inset Flex Code
6296 status collapsed
6297
6298 \begin_layout Plain Layout
6299 lyxpipe.out
6300 \end_layout
6301
6302 \end_inset
6303
6304 .
6305  The stem of the pipe names can be defined in the 
6306 \begin_inset Flex Noun
6307 status collapsed
6308
6309 \begin_layout Plain Layout
6310 Tools\SpecialChar menuseparator
6311 Preferences
6312 \end_layout
6313
6314 \end_inset
6315
6316  dialog, for example 
6317 \begin_inset Flex Code
6318 status collapsed
6319
6320 \begin_layout Plain Layout
6321 "/home/myhome/lyxpipe"
6322 \end_layout
6323
6324 \end_inset
6325
6326 , or 
6327 \begin_inset Flex Code
6328 status collapsed
6329
6330 \begin_layout Plain Layout
6331 "
6332 \backslash
6333
6334 \backslash
6335 .
6336 \backslash
6337 pipe
6338 \backslash
6339 lyxpipe"
6340 \end_layout
6341
6342 \end_inset
6343
6344  on Windows (where any working path instead of lyxpipe can be used, for
6345  example 
6346 \begin_inset Flex Code
6347 status collapsed
6348
6349 \begin_layout Plain Layout
6350 "
6351 \backslash
6352
6353 \backslash
6354 .
6355 \backslash
6356 pipe
6357 \backslash
6358 my
6359 \backslash
6360 lyx
6361 \backslash
6362 pipe"
6363 \end_layout
6364
6365 \end_inset
6366
6367  would also work).
6368  You 
6369 \emph on
6370 must
6371 \emph default
6372  configure this manually in order for the server to start.
6373 \end_layout
6374
6375 \begin_layout Standard
6376 \SpecialChar LyX
6377  will add the '
6378 \begin_inset Flex Code
6379 status collapsed
6380
6381 \begin_layout Plain Layout
6382 .in
6383 \end_layout
6384
6385 \end_inset
6386
6387 ' and '
6388 \begin_inset Flex Code
6389 status collapsed
6390
6391 \begin_layout Plain Layout
6392 .out
6393 \end_layout
6394
6395 \end_inset
6396
6397 ' to create the pipes.
6398  If one of the pipes already exists, \SpecialChar LyX
6399  will assume that another \SpecialChar LyX
6400  process
6401  is already running and will not start the server.
6402  On POSIX (Unix like) systems, if for some other reason, an unused 
6403 \begin_inset Quotes eld
6404 \end_inset
6405
6406 stale
6407 \begin_inset Quotes erd
6408 \end_inset
6409
6410  pipe is left in existence when \SpecialChar LyX
6411  closes, then \SpecialChar LyX
6412  will try to delete it.
6413  If this fails for some reason, you will need to delete the pipes manually
6414  and then restart \SpecialChar LyX
6415 .
6416  On Windows, pipes are deleted by the OS on program termination or crash,
6417  so 
6418 \begin_inset Quotes eld
6419 \end_inset
6420
6421 stale
6422 \begin_inset Quotes erd
6423 \end_inset
6424
6425  pipes should not be possible.
6426 \end_layout
6427
6428 \begin_layout Standard
6429 To have several \SpecialChar LyX
6430  processes with servers at the same time, you have to use
6431  different configurations, perhaps by using separate user directories, each
6432  with its own 
6433 \begin_inset Flex Code
6434 status collapsed
6435
6436 \begin_layout Plain Layout
6437 preferences
6438 \end_layout
6439
6440 \end_inset
6441
6442  file, for each process.
6443 \end_layout
6444
6445 \begin_layout Standard
6446 If you are developing a client program, you might find it useful to enable
6447  debugging information from the \SpecialChar LyX
6448  server.
6449  Do this by starting \SpecialChar LyX
6450  as 
6451 \begin_inset Flex Code
6452 status collapsed
6453
6454 \begin_layout Plain Layout
6455 lyx -dbg lyxserver
6456 \end_layout
6457
6458 \end_inset
6459
6460 .
6461 \end_layout
6462
6463 \begin_layout Standard
6464 You can find a complete example client written in C++ in the source distribution
6465  as 
6466 \begin_inset Flex Code
6467 status collapsed
6468
6469 \begin_layout Plain Layout
6470 development/lyxserver/server_monitor.cpp
6471 \end_layout
6472
6473 \end_inset
6474
6475 .
6476 \end_layout
6477
6478 \begin_layout Standard
6479 Another useful tool is the command-line based client found in 
6480 \begin_inset Flex Code
6481 status collapsed
6482
6483 \begin_layout Plain Layout
6484 src/client/lyxclient
6485 \end_layout
6486
6487 \end_inset
6488
6489 .
6490 \end_layout
6491
6492 \begin_layout Section
6493 Normal communication
6494 \end_layout
6495
6496 \begin_layout Standard
6497 To issue a \SpecialChar LyX
6498  call, the client writes a line of ASCII text into the input
6499  pipe.
6500  This line has the following format:
6501 \end_layout
6502
6503 \begin_layout Quote
6504 LYXCMD:
6505 \emph on
6506 clientname
6507 \emph default
6508 :
6509 \emph on
6510 function
6511 \emph default
6512 :
6513 \emph on
6514 argument
6515 \end_layout
6516
6517 \begin_layout Description
6518 clientname is a name that the client can choose arbitrarily.
6519  Its only use is that \SpecialChar LyX
6520  will echo it if it sends an answer—so a client can
6521  dispatch results from different requesters.
6522 \end_layout
6523
6524 \begin_layout Description
6525 function is the function you want \SpecialChar LyX
6526  to perform.
6527  It is the same as the commands you'd use in the minibuffer.
6528 \end_layout
6529
6530 \begin_layout Description
6531 argument is an optional argument which is meaningful only to some functions
6532  (for instance, the 
6533 \begin_inset Quotes eld
6534 \end_inset
6535
6536 self-insert
6537 \begin_inset Quotes erd
6538 \end_inset
6539
6540  LFUN will insert the argument as text at the cursor position).
6541 \end_layout
6542
6543 \begin_layout Standard
6544 The answer from \SpecialChar LyX
6545  will arrive in the output pipe and be of the form
6546 \end_layout
6547
6548 \begin_layout Quote
6549 INFO:
6550 \emph on
6551 clientname
6552 \emph default
6553 :
6554 \emph on
6555 function
6556 \emph default
6557 :
6558 \emph on
6559 data
6560 \end_layout
6561
6562 \begin_layout Standard
6563 where 
6564 \emph on
6565 clientname
6566 \emph default
6567  and 
6568 \emph on
6569 function
6570 \emph default
6571  are just echoed from the command request, while 
6572 \emph on
6573 data
6574 \emph default
6575  is more or less useful information filled according to how the command
6576  execution worked out.
6577  Some commands, such as 
6578 \begin_inset Quotes eld
6579 \end_inset
6580
6581 font-state
6582 \begin_inset Quotes erd
6583 \end_inset
6584
6585 , will return information about the internal state of \SpecialChar LyX
6586 , while other will
6587  return an empty data-response.
6588  This means that the command execution went fine.
6589 \end_layout
6590
6591 \begin_layout Standard
6592 In case of errors, the response from \SpecialChar LyX
6593  will have this form
6594 \end_layout
6595
6596 \begin_layout Quote
6597 ERROR:
6598 \emph on
6599 clientname
6600 \emph default
6601 :
6602 \emph on
6603 function
6604 \emph default
6605 :
6606 \emph on
6607 error message
6608 \end_layout
6609
6610 \begin_layout Standard
6611 where the 
6612 \emph on
6613 error message
6614 \emph default
6615  should contain an explanation of why the command failed.
6616 \end_layout
6617
6618 \begin_layout Standard
6619 Examples:
6620 \end_layout
6621
6622 \begin_layout LyX-Code
6623 echo "LYXCMD:test:beginning-of-buffer:" >~/.lyxpipe.in
6624 \begin_inset Newline newline
6625 \end_inset
6626
6627 echo "LYXCMD:test:get-xy:" >~/.lyxpipe.in
6628 \begin_inset Newline newline
6629 \end_inset
6630
6631 read a <~/.lyxpipe.out
6632 \begin_inset Newline newline
6633 \end_inset
6634
6635 echo $a
6636 \end_layout
6637
6638 \begin_layout Subsection
6639 AppleScript (Mac OS X)
6640 \end_layout
6641
6642 \begin_layout Standard
6643 Since \SpecialChar LyX
6644  2.1, \SpecialChar LyX
6645  supports basic interactions with AppleScript for normal communicatio
6646 n through the command run.
6647  This command takes a direct argument (the 
6648 \series bold
6649 function
6650 \series default
6651  to perform) and an optional argument.
6652  It either returns the output of the function or triggers an error with
6653  the error message and code.
6654 \end_layout
6655
6656 \begin_layout Standard
6657 Example:
6658 \end_layout
6659
6660 \begin_layout LyX-Code
6661 tell application "\SpecialChar LyX
6662 "
6663 \end_layout
6664
6665 \begin_layout LyX-Code
6666   try
6667 \end_layout
6668
6669 \begin_layout LyX-Code
6670     -- Stores the current file name into f
6671 \end_layout
6672
6673 \begin_layout LyX-Code
6674     set f to (run "server-get-filename" with argument "")
6675 \end_layout
6676
6677 \begin_layout LyX-Code
6678     on error the error_message number the error_number
6679 \end_layout
6680
6681 \begin_layout LyX-Code
6682       display dialog "Error: " & the error_number & ".
6683  " ¬
6684 \end_layout
6685
6686 \begin_layout LyX-Code
6687               & the error_message buttons {"OK"} default button 1
6688 \end_layout
6689
6690 \begin_layout LyX-Code
6691   end try
6692 \end_layout
6693
6694 \begin_layout LyX-Code
6695 end tell
6696 \end_layout
6697
6698 \begin_layout Section
6699 Notification
6700 \end_layout
6701
6702 \begin_layout Standard
6703 \SpecialChar LyX
6704  can notify clients of events going on asynchronously.
6705  Currently it will only do this if the user binds a key sequence with the
6706  function 
6707 \begin_inset Quotes eld
6708 \end_inset
6709
6710 notify
6711 \begin_inset Quotes erd
6712 \end_inset
6713
6714 .
6715  The format of the string \SpecialChar LyX
6716  sends is as follows:
6717 \end_layout
6718
6719 \begin_layout Quote
6720 \begin_inset Flex Code
6721 status collapsed
6722
6723 \begin_layout Plain Layout
6724 NOTIFY:
6725 \end_layout
6726
6727 \end_inset
6728
6729
6730 \emph on
6731 key-sequence
6732 \end_layout
6733
6734 \begin_layout Standard
6735 where 
6736 \emph on
6737 key-sequence
6738 \emph default
6739  is the printed representation of the key sequence that was actually typed
6740  by the user.
6741 \end_layout
6742
6743 \begin_layout Standard
6744 This mechanism can be used to extend \SpecialChar LyX
6745 's command set and implement macros.
6746  Bind some key sequence to 
6747 \begin_inset Quotes eld
6748 \end_inset
6749
6750 notify
6751 \begin_inset Quotes erd
6752 \end_inset
6753
6754 .
6755  Then start a client that listens on the output pipe, dispatches the command
6756  according to the sequence, and starts a function that may use \SpecialChar LyX
6757  calls and
6758  \SpecialChar LyX
6759  requests to issue a command or a series of commands to \SpecialChar LyX
6760 .
6761 \end_layout
6762
6763 \begin_layout Section
6764 The simple \SpecialChar LyX
6765  Server Protocol
6766 \end_layout
6767
6768 \begin_layout Standard
6769 \SpecialChar LyX
6770  implements a simple protocol that can be used for session management.
6771  All messages are of the form
6772 \end_layout
6773
6774 \begin_layout Quote
6775 LYXSRV:
6776 \emph on
6777 clientname
6778 \emph default
6779 :
6780 \emph on
6781 protocol message
6782 \end_layout
6783
6784 \begin_layout Standard
6785 where 
6786 \emph on
6787 protocol message
6788 \emph default
6789  can be 
6790 \begin_inset Quotes eld
6791 \end_inset
6792
6793 hello
6794 \begin_inset Quotes erd
6795 \end_inset
6796
6797  or 
6798 \begin_inset Quotes eld
6799 \end_inset
6800
6801 bye
6802 \begin_inset Quotes erd
6803 \end_inset
6804
6805 .
6806  If 
6807 \begin_inset Quotes eld
6808 \end_inset
6809
6810 hello
6811 \begin_inset Quotes erd
6812 \end_inset
6813
6814  is received from a client, \SpecialChar LyX
6815  will report back to inform the client that
6816  it's listening to it's messages, while 
6817 \begin_inset Quotes eld
6818 \end_inset
6819
6820 bye
6821 \begin_inset Quotes erd
6822 \end_inset
6823
6824  sent from \SpecialChar LyX
6825  will inform clients that \SpecialChar LyX
6826  is closing.
6827 \end_layout
6828
6829 \begin_layout Section
6830 Reverse DVI/PDF search
6831 \end_layout
6832
6833 \begin_layout Standard
6834 Some DVI/PDF viewers
6835 \begin_inset Foot
6836 status collapsed
6837
6838 \begin_layout Plain Layout
6839 The following viewers offer the reverse PDF search feature: Okular on KDE/Linux,
6840  Qpdfview on Unix, Skim on Mac OSX and SumatraPDF on Windows.
6841 \end_layout
6842
6843 \end_inset
6844
6845  provide 
6846 \emph on
6847 reverse search
6848 \emph default
6849  facility (also called 
6850 \emph on
6851 inverse search
6852 \emph default
6853 ).
6854  This means that you can tell \SpecialChar LyX
6855  to put the cursor to a specific line in the
6856  document by clicking at the respective position in the DVI/PDF output.
6857  To achieve this, the viewer must be able to communicate with \SpecialChar LyX
6858 .
6859  This is done via the \SpecialChar LyX
6860  server either by using the named pipe (
6861 \emph on
6862 lyxpipe
6863 \emph default
6864 ), or the UNIX domain socket (
6865 \emph on
6866 lyxsocket
6867 \emph default
6868 ) that \SpecialChar LyX
6869  creates in its temporary directory (this is the way the 
6870 \begin_inset Flex Code
6871 status collapsed
6872
6873 \begin_layout Plain Layout
6874 lyxclient
6875 \end_layout
6876
6877 \end_inset
6878
6879  program communicates with \SpecialChar LyX
6880 ).
6881  In some cases, you need a helper script that mediates between the viewer
6882  and \SpecialChar LyX
6883 , in others, the viewer can communicate with \SpecialChar LyX
6884  directly.
6885  This depends on the selected viewer and on your operating system.
6886  The same applies to the way viewers need to be configured and the way the
6887  reverse search is actually performed.
6888  In what follows, we will thus describe how to setup reverse search for
6889  specific viewers.
6890  Before we turn to this, though, we will explain what needs to be done generally
6891  to enable reverse search in the DVI/PDF output.
6892 \end_layout
6893
6894 \begin_layout Subsection
6895 Automatic setup
6896 \begin_inset CommandInset label
6897 LatexCommand label
6898 name "subsec:rev-search"
6899
6900 \end_inset
6901
6902
6903 \end_layout
6904
6905 \begin_layout Standard
6906 In most cases \SpecialChar LyX
6907  will do the work for you by pressing the following button
6908  in the toolbar: 
6909 \begin_inset Info
6910 type  "icon"
6911 arg   "buffer-toggle-output-sync"
6912 \end_inset
6913
6914 .
6915  Alternatively, you can also enable the feature by checking 
6916 \family sans
6917 Synchronize with Output
6918 \family default
6919  in 
6920 \begin_inset Flex Noun
6921 status collapsed
6922
6923 \begin_layout Plain Layout
6924 Document\SpecialChar menuseparator
6925 Settings\SpecialChar menuseparator
6926 Formats
6927 \end_layout
6928
6929 \end_inset
6930
6931 .
6932  In such a case \SpecialChar LyX
6933  will automatically insert the necessary Sync\SpecialChar TeX
6934  macro (for
6935  PDF) or load the srcltx package (for DVI) respectively.
6936  This option can be easily reached also on 
6937 \begin_inset Flex Code
6938 status collapsed
6939
6940 \begin_layout Plain Layout
6941 View/Update
6942 \end_layout
6943
6944 \end_inset
6945
6946  Toolbar.
6947 \end_layout
6948
6949 \begin_layout Standard
6950 If you need a different setting, you can select or input a custom macro
6951  from the drop down box just below 
6952 \begin_inset Flex Noun
6953 status collapsed
6954
6955 \begin_layout Plain Layout
6956 Document\SpecialChar menuseparator
6957 Settings\SpecialChar menuseparator
6958 Output\SpecialChar menuseparator
6959 Synchronize with Output
6960 \end_layout
6961
6962 \end_inset
6963
6964 .
6965 \end_layout
6966
6967 \begin_layout Standard
6968 Note that the method 
6969 \begin_inset Flex Code
6970 status collapsed
6971
6972 \begin_layout Plain Layout
6973
6974 \backslash
6975 synctex=1
6976 \end_layout
6977
6978 \end_inset
6979
6980  enables gzip compression.
6981  If your viewer does not support it, you should instead use 
6982 \begin_inset Flex Code
6983 status collapsed
6984
6985 \begin_layout Plain Layout
6986
6987 \backslash
6988 synctex=-1
6989 \end_layout
6990
6991 \end_inset
6992
6993 .
6994 \end_layout
6995
6996 \begin_layout Standard
6997 Please also note that including the 
6998 \begin_inset Flex Code
6999 status collapsed
7000
7001 \begin_layout Plain Layout
7002 srcltx
7003 \end_layout
7004
7005 \end_inset
7006
7007  package or 
7008 \begin_inset Flex Code
7009 status collapsed
7010
7011 \begin_layout Plain Layout
7012 src-specials
7013 \end_layout
7014
7015 \end_inset
7016
7017  sometimes has an undesired impact on the typesetting.
7018  Thus, you should switch output synchronization off for the final typesetting
7019  if you use the 
7020 \begin_inset Flex Code
7021 status collapsed
7022
7023 \begin_layout Plain Layout
7024 srcltx
7025 \end_layout
7026
7027 \end_inset
7028
7029  package or 
7030 \begin_inset Flex Code
7031 status collapsed
7032
7033 \begin_layout Plain Layout
7034 src-specials
7035 \end_layout
7036
7037 \end_inset
7038
7039 .
7040  
7041 \end_layout
7042
7043 \begin_layout Standard
7044 In case you need some more special settings that are not covered by the
7045  automatic settings, read the next section about how to set up output synchroniz
7046 ation manually.
7047  If the automatic setup suits your needs, you can readily jump to section
7048 \begin_inset space ~
7049 \end_inset
7050
7051
7052 \begin_inset CommandInset ref
7053 LatexCommand ref
7054 reference "subsec:configuring-viewers"
7055
7056 \end_inset
7057
7058 , where the necessary configuration steps in your viewer – needed both with
7059  the automatic and the manual setup – are described.
7060 \end_layout
7061
7062 \begin_layout Subsection
7063 Manual setup
7064 \end_layout
7065
7066 \begin_layout Standard
7067 \SpecialChar LaTeX
7068  provides several different methods for reverse search.
7069  Some are built-in in the 
7070 \begin_inset Flex Code
7071 status collapsed
7072
7073 \begin_layout Plain Layout
7074 latex/pdflatex
7075 \end_layout
7076
7077 \end_inset
7078
7079  program, some are provided by external packages.
7080  Your choice depends on whether your \SpecialChar LaTeX
7081  distribution already provides a given
7082  method (the built-in methods are rather new) and whether your viewer can
7083  cope with it.
7084  The available methods are described in the following.
7085 \end_layout
7086
7087 \begin_layout Subsubsection*
7088 Built-in DVI-search via src-specials (DVI only) 
7089 \end_layout
7090
7091 \begin_layout Standard
7092 This method provides the DVI file with the necessary information for reverse
7093  search.
7094  It is available in \SpecialChar LaTeX
7095  since quite some time (any somewhat recent \SpecialChar LaTeX
7096  distribution
7097  should include it), and it works reliably.
7098  To enable it, change the 
7099 \begin_inset Flex Noun
7100 status collapsed
7101
7102 \begin_layout Plain Layout
7103 La
7104 \family sans
7105 TeX
7106 \family default
7107  (plain)->DVI
7108 \end_layout
7109
7110 \end_inset
7111
7112  or 
7113 \begin_inset Flex Noun
7114 status collapsed
7115
7116 \begin_layout Plain Layout
7117 La
7118 \family sans
7119 TeX
7120 \family default
7121  (plain)->DraftDVI
7122 \end_layout
7123
7124 \end_inset
7125
7126  converter in 
7127 \begin_inset Flex Noun
7128 status collapsed
7129
7130 \begin_layout Plain Layout
7131 Preferences\SpecialChar menuseparator
7132 File Handling\SpecialChar menuseparator
7133 Converters
7134 \end_layout
7135
7136 \end_inset
7137
7138  to 
7139 \begin_inset Flex Code
7140 status collapsed
7141
7142 \begin_layout Plain Layout
7143 latex -src-specials $$i
7144 \end_layout
7145
7146 \end_inset
7147
7148 .
7149  If this doesn't work, check if your \SpecialChar TeX
7150  engine needs different options (the
7151  syntax might differ in some distributions).
7152 \end_layout
7153
7154 \begin_layout Subsubsection*
7155 External Packages (PDFSync and scrltx) 
7156 \end_layout
7157
7158 \begin_layout Standard
7159 The packages 
7160 \emph on
7161 pdfsync
7162 \emph default
7163  and 
7164 \emph on
7165 scrltx
7166 \emph default
7167  provide reverse search facility for PDF output (via pdflatex) and DVI output,
7168  respectively.
7169  In order to enable it, load the packages in the \SpecialChar LyX
7170  preamble: 
7171 \end_layout
7172
7173 \begin_layout Itemize
7174 \begin_inset Flex Code
7175 status collapsed
7176
7177 \begin_layout Plain Layout
7178
7179 \backslash
7180 usepackage{pdfsync}
7181 \end_layout
7182
7183 \end_inset
7184
7185  for reverse PDF search,
7186 \end_layout
7187
7188 \begin_layout Itemize
7189 \begin_inset Flex Code
7190 status collapsed
7191
7192 \begin_layout Plain Layout
7193
7194 \backslash
7195 usepackage[active]{srcltx}
7196 \end_layout
7197
7198 \end_inset
7199
7200  for reverse DVI search.
7201 \end_layout
7202
7203 \begin_layout Standard
7204 If you want to be able to perform both DVI and PDF reverse searches, you
7205  can also insert in the preamble the following lines
7206 \end_layout
7207
7208 \begin_layout LyX-Code
7209
7210 \backslash
7211 usepackage{ifpdf}
7212 \begin_inset Newline newline
7213 \end_inset
7214
7215
7216 \backslash
7217 ifpdf
7218 \begin_inset Newline newline
7219 \end_inset
7220
7221   
7222 \backslash
7223 usepackage{pdfsync}
7224 \begin_inset Newline newline
7225 \end_inset
7226
7227
7228 \backslash
7229 else
7230 \begin_inset Newline newline
7231 \end_inset
7232
7233   
7234 \backslash
7235 usepackage[active]{srcltx}
7236 \begin_inset Newline newline
7237 \end_inset
7238
7239
7240 \backslash
7241 fi
7242 \end_layout
7243
7244 \begin_layout Standard
7245 This way, you can preview the file as either DVI or PDF (pdflatex) and the
7246  right package will be used.
7247 \end_layout
7248
7249 \begin_layout Standard
7250 Note that PDFSync might affect the output layout of your document.
7251  It is therefore advised to disable PDFsync for final documents.
7252 \end_layout
7253
7254 \begin_layout Subsubsection*
7255 Built-in reverse search via Sync\SpecialChar TeX
7256  (DVI and PDF) 
7257 \end_layout
7258
7259 \begin_layout Standard
7260 Recent versions of 
7261 \begin_inset Flex Code
7262 status collapsed
7263
7264 \begin_layout Plain Layout
7265 (pdf)latex
7266 \end_layout
7267
7268 \end_inset
7269
7270  have built-in support for both PDF and DVI reverse search.
7271  This so-called 
7272 \emph on
7273 Sync\SpecialChar TeX
7274
7275 \emph default
7276  facility is basically the result of the integration of the PDFSync package
7277  to the pdftex program and its merge with the 
7278 \emph on
7279 scr-specials
7280 \emph default
7281  approach.
7282  You need at least \SpecialChar TeX
7283 Live 2008 or a recent Mik\SpecialChar TeX
7284  distribution in order to use
7285  it.
7286 \begin_inset Foot
7287 status collapsed
7288
7289 \begin_layout Plain Layout
7290 For some reason, Mik\SpecialChar TeX
7291  does not understand/obey the command \SpecialChar LyX
7292  inserts into
7293  the preamble when you check the "Enable Forward/Reverse Search" button
7294  in the toolbar and does not generate the necessary info.
7295 \end_layout
7296
7297 \begin_layout Plain Layout
7298 The generation of the required info can be forced by changing the converter
7299  "\SpecialChar LaTeX
7300  (pdflatex) -> PDF (pdflatex)" in Preferences->File handling->Converters
7301  from the default "pdflatex $$i" to "pdflatex -synctex=1 $$i" (i.e., by adding
7302  the -synctex=1 switch).
7303 \end_layout
7304
7305 \end_inset
7306
7307  Also note that only a few PDF viewers (such as Okular and Qpdfview on Unix,
7308  Skim on the Mac, SumatraPDF on Windows; see the next section for details)
7309  already provide Sync\SpecialChar TeX
7310  support.
7311 \end_layout
7312
7313 \begin_layout Standard
7314 To enable Sync\SpecialChar TeX
7315  for DVI output, change the 
7316 \begin_inset Flex Noun
7317 status collapsed
7318
7319 \begin_layout Plain Layout
7320 La
7321 \family sans
7322 TeX
7323 \family default
7324  (plain) -> DVI
7325 \end_layout
7326
7327 \end_inset
7328
7329  or 
7330 \begin_inset Flex Noun
7331 status collapsed
7332
7333 \begin_layout Plain Layout
7334 La
7335 \family sans
7336 TeX
7337 \family default
7338  (plain) -> DraftDVI
7339 \end_layout
7340
7341 \end_inset
7342
7343  converter in 
7344 \begin_inset Flex Noun
7345 status collapsed
7346
7347 \begin_layout Plain Layout
7348 Preferences\SpecialChar menuseparator
7349 File Handling\SpecialChar menuseparator
7350 Converters
7351 \end_layout
7352
7353 \end_inset
7354
7355  to 
7356 \begin_inset Flex Code
7357 status collapsed
7358
7359 \begin_layout Plain Layout
7360 latex -synctex=1 $$i
7361 \end_layout
7362
7363 \end_inset
7364
7365 , and for PDF output, change the 
7366 \begin_inset Flex Noun
7367 status collapsed
7368
7369 \begin_layout Plain Layout
7370 La
7371 \family sans
7372 TeX
7373 \family default
7374  (pdflatex) -> PDF (pdflatex)
7375 \end_layout
7376
7377 \end_inset
7378
7379  converter to 
7380 \begin_inset Flex Code
7381 status collapsed
7382
7383 \begin_layout Plain Layout
7384 pdflatex -synctex=1 $$i
7385 \end_layout
7386
7387 \end_inset
7388
7389 .
7390  Should your viewer not be considered in the following description, or in
7391  case of missing success, please check the documentation of your viewer
7392  whether the viewer needs to be configured for the use with Sync\SpecialChar TeX
7393 .
7394 \begin_inset Foot
7395 status collapsed
7396
7397 \begin_layout Plain Layout
7398 Note that the option 
7399 \begin_inset Flex Code
7400 status collapsed
7401
7402 \begin_layout Plain Layout
7403 -synctex=1
7404 \end_layout
7405
7406 \end_inset
7407
7408  option enables gzip compression.
7409  If your viewer does not support it, you should instead use 
7410 \begin_inset Flex Code
7411 status collapsed
7412
7413 \begin_layout Plain Layout
7414 -synctex=-1
7415 \end_layout
7416
7417 \end_inset
7418
7419 .
7420 \end_layout
7421
7422 \end_inset
7423
7424
7425 \end_layout
7426
7427 \begin_layout Subsection
7428 Configuring and using specific viewers
7429 \begin_inset CommandInset label
7430 LatexCommand label
7431 name "subsec:configuring-viewers"
7432
7433 \end_inset
7434
7435
7436 \end_layout
7437
7438 \begin_layout Subsubsection*
7439 Xdvi (all platforms)
7440 \end_layout
7441
7442 \begin_layout Standard
7443 If you use 
7444 \begin_inset Flex Code
7445 status collapsed
7446
7447 \begin_layout Plain Layout
7448 xdvi
7449 \end_layout
7450
7451 \end_inset
7452
7453 , you don't need to do anything else for performing a reverse DVI search,
7454  as \SpecialChar LyX
7455  already provides the necessary hooks for automatically using the 
7456 \begin_inset Flex Code
7457 status collapsed
7458
7459 \begin_layout Plain Layout
7460 lyxclient
7461 \end_layout
7462
7463 \end_inset
7464
7465  program.
7466  Just setup your document as described above (reverse search is triggered
7467  by Ctrl-click or Alt-click on Mac OSX, respectively).
7468 \end_layout
7469
7470 \begin_layout Standard
7471 However, if for whatever reason you want to use the named pipe instead of
7472  the socket for communicating with \SpecialChar LyX
7473 , simply change the DVI viewer in 
7474 \begin_inset Flex Noun
7475 status collapsed
7476
7477 \begin_layout Plain Layout
7478 Preferences\SpecialChar menuseparator
7479 File Handling\SpecialChar menuseparator
7480 File formats
7481 \end_layout
7482
7483 \end_inset
7484
7485  to
7486 \begin_inset Foot
7487 status collapsed
7488
7489 \begin_layout Plain Layout
7490 On Mac OSX you have to use 
7491 \begin_inset Flex Code
7492 status collapsed
7493
7494 \begin_layout Plain Layout
7495 DISPLAY=:0.0 xdvi -editor "lyxeditor.sh %f %l"
7496 \end_layout
7497
7498 \end_inset
7499
7500
7501 \end_layout
7502
7503 \end_inset
7504
7505  
7506 \begin_inset Flex Code
7507 status collapsed
7508
7509 \begin_layout Plain Layout
7510 xdvi -editor "lyxeditor.sh %f %l"
7511 \end_layout
7512
7513 \end_inset
7514
7515 , where 
7516 \begin_inset Flex Code
7517 status collapsed
7518
7519 \begin_layout Plain Layout
7520 lyxeditor.sh
7521 \end_layout
7522
7523 \end_inset
7524
7525  is a suitable script.
7526  For example, a minimal shell script is the following one:
7527 \end_layout
7528
7529 \begin_layout LyX-Code
7530 #!/bin/sh
7531 \begin_inset Newline newline
7532 \end_inset
7533
7534 LYXPIPE="/path/to/lyxpipe"
7535 \begin_inset Newline newline
7536 \end_inset
7537
7538 COMMAND="LYXCMD:revdvi:server-goto-file-row:$1 $2"
7539 \begin_inset Newline newline
7540 \end_inset
7541
7542 echo "$COMMAND" > "${LYXPIPE}".in || exit
7543 \begin_inset Newline newline
7544 \end_inset
7545
7546 read TMP < "${LYXPIPE}".out || exit
7547 \end_layout
7548
7549 \begin_layout Standard
7550 where 
7551 \begin_inset Flex Code
7552 status collapsed
7553
7554 \begin_layout Plain Layout
7555 /path/to/lyxpipe
7556 \end_layout
7557
7558 \end_inset
7559
7560  is the LyXServer pipe path specified in 
7561 \begin_inset Flex Noun
7562 status collapsed
7563
7564 \begin_layout Plain Layout
7565 Preferences\SpecialChar menuseparator
7566 Paths
7567 \end_layout
7568
7569 \end_inset
7570
7571 .
7572 \begin_inset Foot
7573 status collapsed
7574
7575 \begin_layout Plain Layout
7576 In the 
7577 \begin_inset Flex Code
7578 status collapsed
7579
7580 \begin_layout Plain Layout
7581 development/tools
7582 \end_layout
7583
7584 \end_inset
7585
7586  folder of a source distribution you can find a 
7587 \begin_inset Flex Code
7588 status collapsed
7589
7590 \begin_layout Plain Layout
7591 lyxeditor
7592 \end_layout
7593
7594 \end_inset
7595
7596  script which is able to locate the 
7597 \emph on
7598 lyxpipe
7599 \emph default
7600  based on your preferences.
7601 \end_layout
7602
7603 \end_inset
7604
7605
7606 \end_layout
7607
7608 \begin_layout Subsubsection*
7609 MacDviX (Mac OSX)
7610 \end_layout
7611
7612 \begin_layout Standard
7613 At the end of 
7614 \begin_inset Flex Code
7615 status collapsed
7616
7617 \begin_layout Plain Layout
7618 /Applications/MacDviX_Folder/calleditor.script
7619 \end_layout
7620
7621 \end_inset
7622
7623 , add the following lines:
7624 \end_layout
7625
7626 \begin_layout LyX-Code
7627 /Applications/LyX.app/Contents/MacOS/lyxeditor "$2" $1
7628 \begin_inset Newline newline
7629 \end_inset
7630
7631 exit 1
7632 \end_layout
7633
7634 \begin_layout Standard
7635 Modify the lines accordingly if you install \SpecialChar LyX
7636  somewhere else than in the
7637  Applications folder.
7638 \end_layout
7639
7640 \begin_layout Standard
7641 Reverse search is triggered by Alt-click (OPTION-click).
7642 \end_layout
7643
7644 \begin_layout Subsubsection*
7645 Skim (Mac OSX)
7646 \end_layout
7647
7648 \begin_layout Standard
7649 Enter 
7650 \begin_inset Flex Code
7651 status collapsed
7652
7653 \begin_layout Plain Layout
7654 open -a Skim.app $$i
7655 \end_layout
7656
7657 \end_inset
7658
7659  to the viewer setting in 
7660 \begin_inset Flex Noun
7661 status collapsed
7662
7663 \begin_layout Plain Layout
7664 Preferences\SpecialChar menuseparator
7665 File Handling\SpecialChar menuseparator
7666 File formats\SpecialChar menuseparator
7667 PDF (pdflatex)
7668 \end_layout
7669
7670 \end_inset
7671
7672 , and then in 
7673 \begin_inset Flex Noun
7674 status collapsed
7675
7676 \begin_layout Plain Layout
7677 Skim\SpecialChar menuseparator
7678 Preferences\SpecialChar menuseparator
7679 Sync
7680 \end_layout
7681
7682 \end_inset
7683
7684  choose 
7685 \begin_inset Flex Noun
7686 status collapsed
7687
7688 \begin_layout Plain Layout
7689 custom
7690 \end_layout
7691
7692 \end_inset
7693
7694  preset and enter command 
7695 \begin_inset Flex Noun
7696 status collapsed
7697
7698 \begin_layout Plain Layout
7699 /Applications/\SpecialChar LyX
7700 .app/Contents/MacOS/lyxeditor
7701 \end_layout
7702
7703 \end_inset
7704
7705 .
7706 \end_layout
7707
7708 \begin_layout Standard
7709 Reverse search is triggered by COMMAND-SHIFT-click
7710 \end_layout
7711
7712 \begin_layout Subsubsection*
7713 Evince (GNOME)
7714 \end_layout
7715
7716 \begin_layout Standard
7717 Reverse search with evince does not work out of the box, but it can be achieved
7718  by means of some third party helper scripts.
7719  Please refer to 
7720 \begin_inset CommandInset href
7721 LatexCommand href
7722 target "https://wiki.lyx.org/LyX/SyncTeX"
7723 literal "false"
7724
7725 \end_inset
7726
7727  for details.
7728 \end_layout
7729
7730 \begin_layout Subsubsection*
7731 Okular (KDE)
7732 \end_layout
7733
7734 \begin_layout Standard
7735 Go to 
7736 \begin_inset Flex Noun
7737 status collapsed
7738
7739 \begin_layout Plain Layout
7740 Settings\SpecialChar menuseparator
7741 Configure Okular\SpecialChar menuseparator
7742 Editor
7743 \end_layout
7744
7745 \end_inset
7746
7747  and select LyX
7748 \begin_inset Quotes erd
7749 \end_inset
7750
7751  as editor.
7752  This inserts the appropriate command (
7753 \begin_inset Flex Code
7754 status collapsed
7755
7756 \begin_layout Plain Layout
7757 lyxclient -g %f %l
7758 \end_layout
7759
7760 \end_inset
7761
7762 ).
7763 \end_layout
7764
7765 \begin_layout Standard
7766 Reverse search is triggered by SHIFT-click.
7767
7768 \change_inserted -712698321 1578211026
7769  Note that this only works if Okular is in 
7770 \begin_inset Quotes eld
7771 \end_inset
7772
7773 Browse
7774 \begin_inset Quotes erd
7775 \end_inset
7776
7777  mode (i.
7778 \begin_inset space \thinspace{}
7779 \end_inset
7780
7781 e., the hand symbol is clicked).
7782 \change_unchanged
7783
7784 \end_layout
7785
7786 \begin_layout Subsubsection*
7787 Qpdfview (Unix)
7788 \end_layout
7789
7790 \begin_layout Standard
7791 Qpdfview supports Sync\SpecialChar TeX
7792  since version 0.3.5.
7793  Go to 
7794 \begin_inset Flex Noun
7795 status collapsed
7796
7797 \begin_layout Plain Layout
7798 Edit\SpecialChar menuseparator
7799 Settings\SpecialChar menuseparator
7800 Behavior
7801 \end_layout
7802
7803 \end_inset
7804
7805 , click on the input field of the 
7806 \begin_inset Quotes eld
7807 \end_inset
7808
7809 Source editor
7810 \begin_inset Quotes erd
7811 \end_inset
7812
7813  item and add the command 
7814 \begin_inset Flex Code
7815 status collapsed
7816
7817 \begin_layout Plain Layout
7818 lyxclient -g %1 %2
7819 \end_layout
7820
7821 \end_inset
7822
7823 .
7824 \end_layout
7825
7826 \begin_layout Standard
7827 Reverse search is triggered by double-click or, in more recent versions,
7828  by context menu.
7829 \end_layout
7830
7831 \begin_layout Subsubsection*
7832 YAP (Windows)
7833 \end_layout
7834
7835 \begin_layout Standard
7836 Launch yap, choose its 
7837 \begin_inset Flex Noun
7838 status collapsed
7839
7840 \begin_layout Plain Layout
7841 View\SpecialChar menuseparator
7842 Options
7843 \end_layout
7844
7845 \end_inset
7846
7847  menu and select the 
7848 \begin_inset Quotes eld
7849 \end_inset
7850
7851 Inverse DVI Search
7852 \begin_inset Quotes erd
7853 \end_inset
7854
7855  tab.
7856  Click on the 
7857 \begin_inset Quotes eld
7858 \end_inset
7859
7860 New\SpecialChar ldots
7861
7862 \begin_inset Quotes erd
7863 \end_inset
7864
7865  button and, in the window that opens, enter 
7866 \begin_inset Quotes eld
7867 \end_inset
7868
7869 \SpecialChar LyX
7870  Editor
7871 \begin_inset Quotes erd
7872 \end_inset
7873
7874  (or any other name you like) in the 
7875 \begin_inset Quotes eld
7876 \end_inset
7877
7878 Name:
7879 \begin_inset Quotes erd
7880 \end_inset
7881
7882  field.
7883  Now click on the button labeled 
7884 \begin_inset Quotes eld
7885 \end_inset
7886
7887 \SpecialChar ldots
7888
7889 \begin_inset Quotes erd
7890 \end_inset
7891
7892  to open a file dialog and navigate to the directory containing the batch
7893  file 
7894 \begin_inset Flex Code
7895 status collapsed
7896
7897 \begin_layout Plain Layout
7898 lyxeditor.bat
7899 \end_layout
7900
7901 \end_inset
7902
7903  (see below).
7904  Select 
7905 \begin_inset Flex Code
7906 status collapsed
7907
7908 \begin_layout Plain Layout
7909 lyxeditor.bat
7910 \end_layout
7911
7912 \end_inset
7913
7914  and then specify the program arguments as 
7915 \begin_inset Flex Code
7916 status collapsed
7917
7918 \begin_layout Plain Layout
7919 %f %l
7920 \end_layout
7921
7922 \end_inset
7923
7924 .
7925  The 
7926 \begin_inset Flex Code
7927 status collapsed
7928
7929 \begin_layout Plain Layout
7930 lyxeditor.bat
7931 \end_layout
7932
7933 \end_inset
7934
7935  wrapper is used for communicating with \SpecialChar LyX
7936  through the 
7937 \emph on
7938 lyxpipe
7939 \emph default
7940  and is as follows:
7941 \end_layout
7942
7943 \begin_layout LyX-Code
7944 @echo off
7945 \begin_inset Newline newline
7946 \end_inset
7947
7948 echo LYXCMD:revdvi:server-goto-file-row:%~1 %2> 
7949 \backslash
7950
7951 \backslash
7952 .
7953 \backslash
7954 pipe
7955 \backslash
7956 lyxpipe.in
7957 \begin_inset Newline newline
7958 \end_inset
7959
7960 type 
7961 \backslash
7962
7963 \backslash
7964 .
7965 \backslash
7966 pipe
7967 \backslash
7968 lyxpipe.out
7969 \end_layout
7970
7971 \begin_layout Standard
7972 Make sure that the \SpecialChar LyX
7973 Server pipe path you specified in \SpecialChar LyX
7974  is 
7975 \begin_inset Flex Code
7976 status collapsed
7977
7978 \begin_layout Plain Layout
7979
7980 \backslash
7981
7982 \backslash
7983 .
7984 \backslash
7985 pipe
7986 \backslash
7987 lyxpipe
7988 \end_layout
7989
7990 \end_inset
7991
7992 , otherwise change the 
7993 \begin_inset Flex Code
7994 status collapsed
7995
7996 \begin_layout Plain Layout
7997 lyxeditor.bat
7998 \end_layout
7999
8000 \end_inset
8001
8002  wrapper accordingly.
8003 \end_layout
8004
8005 \begin_layout Standard
8006 In yap, reverse search is triggered by double-click.
8007 \end_layout
8008
8009 \begin_layout Subsubsection*
8010 SumatraPDF (Windows)
8011 \end_layout
8012
8013 \begin_layout Standard
8014 In order to use SumatraPDF for inverse search, enter 
8015 \begin_inset Flex Code
8016 status collapsed
8017
8018 \begin_layout Plain Layout
8019 SumatraPDF -inverse-search "lyxeditor.bat "%f" %l"
8020 \end_layout
8021
8022 \end_inset
8023
8024  in the viewer setting in 
8025 \begin_inset Flex Noun
8026 status collapsed
8027
8028 \begin_layout Plain Layout
8029 Preferences\SpecialChar menuseparator
8030 File Handling\SpecialChar menuseparator
8031 File formats\SpecialChar menuseparator
8032 PDF (pdflatex)
8033 \end_layout
8034
8035 \end_inset
8036
8037 , where 
8038 \begin_inset Flex Code
8039 status collapsed
8040
8041 \begin_layout Plain Layout
8042 lyxeditor.bat
8043 \end_layout
8044
8045 \end_inset
8046
8047  is the previous wrapper.
8048  If SumatraPDF.exe is not in your command PATH, use its full file name.
8049 \end_layout
8050
8051 \begin_layout Standard
8052 Reverse search is triggered by double-click.
8053 \end_layout
8054
8055 \begin_layout Subsubsection*
8056 YAP (Cygwin)
8057 \end_layout
8058
8059 \begin_layout Standard
8060 First of all, make sure that yap is your default DVI viewer in the Windows
8061  environment, then launch it, choose its 
8062 \begin_inset Flex Noun
8063 status collapsed
8064
8065 \begin_layout Plain Layout
8066 View\SpecialChar menuseparator
8067 Options
8068 \end_layout
8069
8070 \end_inset
8071
8072  menu and select the 
8073 \begin_inset Quotes eld
8074 \end_inset
8075
8076 Inverse DVI Search
8077 \begin_inset Quotes erd
8078 \end_inset
8079
8080  tab.
8081  Click on the 
8082 \begin_inset Quotes eld
8083 \end_inset
8084
8085 New\SpecialChar ldots
8086
8087 \begin_inset Quotes erd
8088 \end_inset
8089
8090  button and, in the window that opens, enter 
8091 \begin_inset Quotes eld
8092 \end_inset
8093
8094 \SpecialChar LyX
8095  Editor
8096 \begin_inset Quotes erd
8097 \end_inset
8098
8099  (or any other name you like) in the 
8100 \begin_inset Quotes eld
8101 \end_inset
8102
8103 Name:
8104 \begin_inset Quotes erd
8105 \end_inset
8106
8107  field.
8108  Now click on the button labeled 
8109 \begin_inset Quotes eld
8110 \end_inset
8111
8112 \SpecialChar ldots
8113
8114 \begin_inset Quotes erd
8115 \end_inset
8116
8117  to open a file dialog and navigate to the directory containing the 
8118 \begin_inset Flex Code
8119 status collapsed
8120
8121 \begin_layout Plain Layout
8122 lyxeditor.exe
8123 \end_layout
8124
8125 \end_inset
8126
8127  program (which is installed by default on Cygwin along with the \SpecialChar LyX
8128  executable).
8129  Select 
8130 \begin_inset Flex Code
8131 status collapsed
8132
8133 \begin_layout Plain Layout
8134 lyxeditor.exe
8135 \end_layout
8136
8137 \end_inset
8138
8139  and then specify the program arguments as 
8140 \begin_inset Flex Code
8141 status collapsed
8142
8143 \begin_layout Plain Layout
8144 -g %f %l
8145 \end_layout
8146
8147 \end_inset
8148
8149 .
8150  In this way, you will be using the 
8151 \emph on
8152 lyxsocket
8153 \emph default
8154  for communicating with \SpecialChar LyX
8155 .
8156  If, for whatever reason, you want to use the 
8157 \emph on
8158 lyxpipe
8159 \emph default
8160 , omit the 
8161 \begin_inset Flex Code
8162 status collapsed
8163
8164 \begin_layout Plain Layout
8165 -g
8166 \end_layout
8167
8168 \end_inset
8169
8170  option and be sure to specify the \SpecialChar LyX
8171 Server pipe path in the \SpecialChar LyX
8172  preferences.
8173 \end_layout
8174
8175 \begin_layout Standard
8176 In yap, reverse search is triggered by double-click.
8177 \end_layout
8178
8179 \begin_layout Subsubsection*
8180 SumatraPDF (Cygwin)
8181 \end_layout
8182
8183 \begin_layout Standard
8184 In order to use SumatraPDF for inverse search, enter 
8185 \begin_inset Flex Code
8186 status collapsed
8187
8188 \begin_layout Plain Layout
8189 SumatraPDF -inverse-search "lyxeditor -g %f %l"
8190 \end_layout
8191
8192 \end_inset
8193
8194  in the viewer setting in 
8195 \begin_inset Flex Noun
8196 status collapsed
8197
8198 \begin_layout Plain Layout
8199 Preferences\SpecialChar menuseparator
8200 File Handling\SpecialChar menuseparator
8201 File formats\SpecialChar menuseparator
8202 PDF (pdflatex)
8203 \end_layout
8204
8205 \end_inset
8206
8207 .
8208  If SumatraPDF.exe is not in your command PATH, use its full posix path.
8209  The 
8210 \begin_inset Flex Code
8211 status collapsed
8212
8213 \begin_layout Plain Layout
8214 -g
8215 \end_layout
8216
8217 \end_inset
8218
8219  enables communication via the 
8220 \emph on
8221 lyxsocket
8222 \emph default
8223 .
8224  Again, omit the 
8225 \begin_inset Flex Code
8226 status collapsed
8227
8228 \begin_layout Plain Layout
8229 -g
8230 \end_layout
8231
8232 \end_inset
8233
8234  option if you want to use the 
8235 \emph on
8236 lyxpipe
8237 \emph default
8238 , and be sure to specify the \SpecialChar LyX
8239 Server pipe path in the \SpecialChar LyX
8240  preferences.
8241 \end_layout
8242
8243 \begin_layout Standard
8244 Reverse search is triggered by double-click.
8245 \end_layout
8246
8247 \begin_layout Section
8248 Forward search
8249 \end_layout
8250
8251 \begin_layout Standard
8252 Forward search is, as the name implies, in a sense the 
8253 \begin_inset Quotes eld
8254 \end_inset
8255
8256 opposite
8257 \begin_inset Quotes erd
8258 \end_inset
8259
8260  of reverse search.
8261  It allows you to let the viewer jump to a given position from within \SpecialChar LyX
8262 .
8263  If forward search is set up (as described in what follows), you can put
8264  the cursor anywhere in your \SpecialChar LyX
8265  document, and hit 
8266 \begin_inset Flex Noun
8267 status collapsed
8268
8269 \begin_layout Plain Layout
8270 Navigate\SpecialChar menuseparator
8271 Forward search
8272 \end_layout
8273
8274 \end_inset
8275
8276  (or select 
8277 \begin_inset Flex Noun
8278 status collapsed
8279
8280 \begin_layout Plain Layout
8281 Forward search
8282 \end_layout
8283
8284 \end_inset
8285
8286  in the context menu via right mouse click), and then the viewer will jump
8287  to that position as well.
8288  This implies, of course, that your viewer supports this function.
8289 \end_layout
8290
8291 \begin_layout Standard
8292 To make forward search possible, you first need to provide the generated
8293  output PDF/DVI file with additional information about the \SpecialChar TeX
8294  sources.
8295  This can be done via the methods described in the section 
8296 \begin_inset CommandInset ref
8297 LatexCommand ref
8298 reference "subsec:rev-search"
8299
8300 \end_inset
8301
8302 .
8303 \end_layout
8304
8305 \begin_layout Standard
8306 Additionally, you need to configure \SpecialChar LyX
8307  for using your viewers in 
8308 \begin_inset Flex Noun
8309 status collapsed
8310
8311 \begin_layout Plain Layout
8312 Tools\SpecialChar menuseparator
8313 Preferences\SpecialChar menuseparator
8314 Output\SpecialChar menuseparator
8315 General
8316 \end_layout
8317
8318 \end_inset
8319
8320 .
8321  We provide a range of tested configurations for some viewers, which you
8322  can select from the drop down list.
8323  If none of these configurations suits you, you have to find out and enter
8324  a suitable configuration yourself.
8325  The definition syntax uses the following placeholders:
8326 \end_layout
8327
8328 \begin_layout Itemize
8329 \noindent
8330 \begin_inset Flex Code
8331 status collapsed
8332
8333 \begin_layout Plain Layout
8334 $$n
8335 \end_layout
8336
8337 \end_inset
8338
8339 : row number
8340 \end_layout
8341
8342 \begin_layout Itemize
8343 \noindent
8344 \begin_inset Flex Code
8345 status collapsed
8346
8347 \begin_layout Plain Layout
8348 $$t
8349 \end_layout
8350
8351 \end_inset
8352
8353 : name of the (temporary) exported .tex file (without path)
8354 \end_layout
8355
8356 \begin_layout Itemize
8357 \noindent
8358 \begin_inset Flex Code
8359 status collapsed
8360
8361 \begin_layout Plain Layout
8362 $$f
8363 \end_layout
8364
8365 \end_inset
8366
8367 : name of the (temporary) exported .tex file (including path)
8368 \end_layout
8369
8370 \begin_layout Itemize
8371 \noindent
8372 \begin_inset Flex Code
8373 status collapsed
8374
8375 \begin_layout Plain Layout
8376 $$o
8377 \end_layout
8378
8379 \end_inset
8380
8381 : name of the exported output file (either dvi or pdf, depending on which
8382  one exists in the temporary directory)
8383 \end_layout
8384
8385 \begin_layout Standard
8386 Note that only some of the viewers provide full and usable forward search
8387  functionality out of the box, among them yap, xdvi, okular
8388 \begin_inset Foot
8389 status collapsed
8390
8391 \begin_layout Plain Layout
8392 You might want to set 
8393 \begin_inset Flex Code
8394 status collapsed
8395
8396 \begin_layout Plain Layout
8397 okular --unique
8398 \end_layout
8399
8400 \end_inset
8401
8402  in 
8403 \begin_inset Flex Noun
8404 status collapsed
8405
8406 \begin_layout Plain Layout
8407 Tools\SpecialChar menuseparator
8408 Preferences\SpecialChar menuseparator
8409 File Handling\SpecialChar menuseparator
8410 File
8411 \begin_inset space ~
8412 \end_inset
8413
8414 Formats
8415 \end_layout
8416
8417 \end_inset
8418
8419
8420 \end_layout
8421
8422 \end_inset
8423
8424 , qpdfview, and SumatraPDF
8425 \begin_inset Foot
8426 status collapsed
8427
8428 \begin_layout Plain Layout
8429 SumatraPDF can also use DDE commands through the external program CMCDDE
8430  — downloadable from 
8431 \begin_inset CommandInset href
8432 LatexCommand href
8433 target "http://www.istri.fr/spip/zip/CMCDDE.zip"
8434 literal "false"
8435
8436 \end_inset
8437
8438
8439 \end_layout
8440
8441 \end_inset
8442
8443 .
8444  Others, such as evince
8445 \begin_inset Foot
8446 status collapsed
8447
8448 \begin_layout Plain Layout
8449 Forward search with evince can be achieved by means of third party helper
8450  scripts.
8451  Please refer to 
8452 \begin_inset CommandInset href
8453 LatexCommand href
8454 target "https://wiki.lyx.org/LyX/SyncTeX"
8455 literal "false"
8456
8457 \end_inset
8458
8459  for details.
8460 \end_layout
8461
8462 \end_inset
8463
8464 , require some extra tools in order to use forward search.
8465  While many of the widespread PDF viewers (most notably Adobe Reader) do
8466  not support forward search at all, some other viewers – e.
8467 \begin_inset space \thinspace{}
8468 \end_inset
8469
8470 g.
8471  xpdf – allow at least to reload the document and jump to a specific page
8472  of the file, so you can at least navigate 
8473 \begin_inset Quotes eld
8474 \end_inset
8475
8476 near
8477 \begin_inset Quotes erd
8478 \end_inset
8479
8480 .
8481  This latter functionality is provided by an external call of synctex (see
8482  the predefined example configurations).
8483  
8484 \end_layout
8485
8486 \begin_layout Standard
8487 Forward search works both with DVI and PDF output.
8488  \SpecialChar LyX
8489  simply checks which preview format you have used before (i.
8490 \begin_inset space \thinspace{}
8491 \end_inset
8492
8493 e., which format is already there in the temporary directory) and chooses
8494  the appropriate configuration for the respective format.
8495 \end_layout
8496
8497 \begin_layout Chapter
8498 Special Document Classes
8499 \end_layout
8500
8501 \begin_layout Section
8502
8503 \change_deleted 564990737 1669742044
8504 A&A Paper
8505 \end_layout
8506
8507 \begin_layout Standard
8508
8509 \change_deleted 564990737 1669742044
8510 by 
8511 \noun on
8512 Peter Sütterlin
8513 \end_layout
8514
8515 \begin_layout Subsection
8516
8517 \change_deleted 564990737 1669742044
8518 Introduction
8519 \end_layout
8520
8521 \begin_layout Standard
8522
8523 \change_deleted 564990737 1669742044
8524 This section describes how \SpecialChar LyX
8525  can be used to write articles for submission
8526  to the scientific journal 
8527 \emph on
8528 Astronomy and Astrophysics
8529 \emph default
8530  (
8531 \begin_inset Flex URL
8532 status collapsed
8533
8534 \begin_layout Plain Layout
8535
8536 https://www.aanda.org/
8537 \end_layout
8538
8539 \end_inset
8540
8541 ) using Version 5.01 of the document class 
8542 \family typewriter
8543 aa.cls
8544 \family default
8545 .
8546  This package can be downloaded from the ftp site
8547 \end_layout
8548
8549 \begin_layout Standard
8550
8551 \change_deleted 564990737 1669742044
8552 \begin_inset VSpace medskip
8553 \end_inset
8554
8555
8556 \end_layout
8557
8558 \begin_layout Standard
8559 \align center
8560
8561 \change_deleted 564990737 1669742044
8562 \begin_inset Flex URL
8563 status collapsed
8564
8565 \begin_layout Plain Layout
8566
8567 ftp://ftp.edpsciences.org/pub/aa/readme.html
8568 \end_layout
8569
8570 \end_inset
8571
8572
8573 \end_layout
8574
8575 \begin_layout Standard
8576
8577 \change_deleted 564990737 1669742044
8578 \begin_inset VSpace medskip
8579 \end_inset
8580
8581
8582 \end_layout
8583
8584 \begin_layout Standard
8585
8586 \change_deleted 564990737 1669742044
8587 A manual comes together with that package, and this text is not meant to
8588  replace the original manual but is merely a short guide in how to realize
8589  the correct form of your paper.
8590  
8591 \end_layout
8592
8593 \begin_layout Standard
8594
8595 \change_deleted 564990737 1669742044
8596 Please note that the publisher of the journal was changed from Springer
8597  to EDP Sciences starting January 1, 2001.
8598  That change involved also some slight changes to the style files, namely
8599  the removal of the thesaurus command.
8600  The \SpecialChar LyX
8601  class aa supports the newest version of these style files, V 5.01.
8602  If you have an older version installed, please upgrade.
8603  For compatibility, the old (version 4) layout has been kept as 
8604 \family sans
8605 article (A&A V4)
8606 \family default
8607 .
8608  Please refer to the comments in 
8609 \family typewriter
8610 \SpecialChar LyX
8611 Dir/layouts/aapaper.layout
8612 \family default
8613 .
8614 \end_layout
8615
8616 \begin_layout Subsection
8617
8618 \change_deleted 564990737 1669742044
8619 Getting started
8620 \end_layout
8621
8622 \begin_layout Standard
8623
8624 \change_deleted 564990737 1669742044
8625 It is recommended you start from the example template distributed with \SpecialChar LyX
8626 .
8627  If you are not using a template, note the following settings:
8628 \end_layout
8629
8630 \begin_layout Itemize
8631
8632 \change_deleted 564990737 1669742044
8633 Select 
8634 \family sans
8635 article (A&A)
8636 \family default
8637  in the 
8638 \family sans
8639 Document\SpecialChar menuseparator
8640 Settings
8641 \family default
8642  dialog (OK, that one was obvious).
8643 \end_layout
8644
8645 \begin_layout Itemize
8646
8647 \change_deleted 564990737 1669742044
8648 Don't change the option 
8649 \family sans
8650 Page
8651 \begin_inset space ~
8652 \end_inset
8653
8654 style
8655 \family default
8656 : Leave it set to 
8657 \family sans
8658 default
8659 \family default
8660 .
8661  The whole layout is done by the macros, you shouldn't change anything.
8662 \end_layout
8663
8664 \begin_layout Subsection
8665
8666 \change_deleted 564990737 1669742044
8667 The header block
8668 \end_layout
8669
8670 \begin_layout Standard
8671
8672 \change_deleted 564990737 1669742044
8673 First thing to enter is the header information.
8674  It consists of seven entries, of which some are optional.
8675  They are
8676 \end_layout
8677
8678 \begin_layout Itemize
8679
8680 \change_deleted 564990737 1669742044
8681
8682 \family sans
8683 Title
8684 \family default
8685 : [required] 
8686 \end_layout
8687
8688 \begin_layout Itemize
8689
8690 \change_deleted 564990737 1669742044
8691
8692 \family sans
8693 Subtitle
8694 \family default
8695 : [optional] 
8696 \end_layout
8697
8698 \begin_layout Itemize
8699
8700 \change_deleted 564990737 1669742044
8701
8702 \family sans
8703 Author
8704 \family default
8705 : [required]
8706 \end_layout
8707
8708 \begin_layout Itemize
8709
8710 \change_deleted 564990737 1669742044
8711
8712 \family sans
8713 Address
8714 \family default
8715 : [required]
8716 \end_layout
8717
8718 \begin_layout Itemize
8719
8720 \change_deleted 564990737 1669742044
8721
8722 \family sans
8723 Offprints
8724 \family default
8725 : [optional] if more than one author: whom to contact for offprint requests.
8726 \end_layout
8727
8728 \begin_layout Itemize
8729
8730 \change_deleted 564990737 1669742044
8731
8732 \family sans
8733 Mail
8734 \family default
8735 : [optional] mail address for contacts.
8736 \end_layout
8737
8738 \begin_layout Itemize
8739
8740 \change_deleted 564990737 1669742044
8741
8742 \family sans
8743 Date
8744 \family default
8745 : [required].
8746  Suggested format is 
8747 \family typewriter
8748 Received: <date>; Accepted <date> 
8749 \end_layout
8750
8751 \begin_layout Standard
8752
8753 \change_deleted 564990737 1669742044
8754 There is no need to issue the 
8755 \family typewriter
8756
8757 \backslash
8758 maketitle
8759 \family default
8760  command, this is done automatically by \SpecialChar LyX
8761  when the header is finished.
8762  Although the order of the single header entries doesn't matter it is advised
8763  to keep the above sequence, just to get the best optics and meets the layout
8764  of the real document.
8765 \end_layout
8766
8767 \begin_layout Standard
8768
8769 \change_deleted 564990737 1669742044
8770 If you want to place footnotes in the header block, e.
8771 \begin_inset space \thinspace{}
8772 \end_inset
8773
8774 g.
8775 \begin_inset space \space{}
8776 \end_inset
8777
8778 to state your present address, just use the standard footnote via the menu
8779  
8780 \family sans
8781 Insert\SpecialChar menuseparator
8782 Footnote.
8783
8784 \family default
8785  \SpecialChar LyX
8786  will automagically use the term 
8787 \family typewriter
8788
8789 \backslash
8790 thanks{}
8791 \family default
8792  in that case.
8793 \end_layout
8794
8795 \begin_layout Standard
8796
8797 \change_deleted 564990737 1669742044
8798 Under 
8799 \family sans
8800 Edit\SpecialChar menuseparator
8801 Text Style
8802 \family default
8803 , you'll find two insets which are relevant for the titling:
8804 \end_layout
8805
8806 \begin_layout Itemize
8807
8808 \change_deleted 564990737 1669742044
8809
8810 \family sans
8811 Institute
8812 \family typewriter
8813  
8814 \family default
8815 to mark corresponding author\SpecialChar breakableslash
8816 institute pairs.
8817  The institutes are numbered sequentially as they appear in the 
8818 \family sans
8819 Address
8820 \family default
8821  field, so you have to put a marker to each author.
8822 \end_layout
8823
8824 \begin_layout Itemize
8825
8826 \change_deleted 564990737 1669742044
8827
8828 \family sans
8829 Email
8830 \family default
8831  to supply an email address for fast contact.
8832 \end_layout
8833
8834 \begin_layout Standard
8835
8836 \change_deleted 564990737 1669742044
8837 In addition to these topics, the macros use one additional \SpecialChar LaTeX
8838  command that
8839  has no counterpart in \SpecialChar LyX
8840 :
8841 \end_layout
8842
8843 \begin_layout Itemize
8844
8845 \change_deleted 564990737 1669742044
8846
8847 \family typewriter
8848
8849 \backslash
8850 and
8851 \family default
8852  to separate different names for more than one author and institute, respectivel
8853 y.
8854 \end_layout
8855
8856 \begin_layout Standard
8857
8858 \change_deleted 564990737 1669742044
8859 The appropriate command has to be entered in \SpecialChar LyX
8860  and marked as \SpecialChar LaTeX
8861  code.
8862  See the examples.
8863  
8864 \end_layout
8865
8866 \begin_layout Subsection
8867
8868 \change_deleted 564990737 1669742044
8869 The abstract
8870 \end_layout
8871
8872 \begin_layout Standard
8873
8874 \change_deleted 564990737 1669742044
8875 The abstract should immediately follow the header block.
8876  With version 5 the abstract environment was changed to a command, and there
8877  is now a restriction to only one paragraph.
8878  In addition, it should contain an entry with the keywords.
8879  This is done via the paragraph style 
8880 \family sans
8881 Keywords
8882 \family default
8883 .
8884  Refer to the example paper.
8885 \end_layout
8886
8887 \begin_layout Subsection
8888
8889 \change_deleted 564990737 1669742044
8890 Supported environments
8891 \end_layout
8892
8893 \begin_layout Standard
8894
8895 \change_deleted 564990737 1669742044
8896 The A&A paper layout supports the following environments for structuring
8897  your text:
8898 \end_layout
8899
8900 \begin_layout Itemize
8901
8902 \change_deleted 564990737 1669742044
8903
8904 \family sans
8905 Standard
8906 \end_layout
8907
8908 \begin_layout Itemize
8909
8910 \change_deleted 564990737 1669742044
8911
8912 \family sans
8913 Section
8914 \end_layout
8915
8916 \begin_layout Itemize
8917
8918 \change_deleted 564990737 1669742044
8919
8920 \family sans
8921 Subsection
8922 \end_layout
8923
8924 \begin_layout Itemize
8925
8926 \change_deleted 564990737 1669742044
8927
8928 \family sans
8929 Subsubsection
8930 \end_layout
8931
8932 \begin_layout Itemize
8933
8934 \change_deleted 564990737 1669742044
8935
8936 \family sans
8937 Itemize
8938 \end_layout
8939
8940 \begin_layout Itemize
8941
8942 \change_deleted 564990737 1669742044
8943
8944 \family sans
8945 Enumerate
8946 \end_layout
8947
8948 \begin_layout Itemize
8949
8950 \change_deleted 564990737 1669742044
8951
8952 \family sans
8953 Description
8954 \end_layout
8955
8956 \begin_layout Itemize
8957
8958 \change_deleted 564990737 1669742044
8959
8960 \family sans
8961 Caption
8962 \end_layout
8963
8964 \begin_layout Itemize
8965
8966 \change_deleted 564990737 1669742044
8967
8968 \family sans
8969 Abstract
8970 \end_layout
8971
8972 \begin_layout Itemize
8973
8974 \change_deleted 564990737 1669742044
8975
8976 \family sans
8977 Acknowledgment
8978 \end_layout
8979
8980 \begin_layout Itemize
8981
8982 \change_deleted 564990737 1669742044
8983
8984 \family sans
8985 Bibliography
8986 \end_layout
8987
8988 \begin_layout Itemize
8989
8990 \change_deleted 564990737 1669742044
8991
8992 \family sans
8993 \SpecialChar LaTeX
8994
8995 \end_layout
8996
8997 \begin_layout Subsection
8998
8999 \change_deleted 564990737 1669742044
9000 Commands not supported by \SpecialChar LyX
9001
9002 \end_layout
9003
9004 \begin_layout Standard
9005
9006 \change_deleted 564990737 1669742044
9007 Some commands are not yet supported by the 
9008 \family sans
9009 paper (A&A)
9010 \family default
9011  layout for \SpecialChar LyX
9012 .
9013  Some have already been mentioned.
9014  For the sake of completeness, they are listed all together here:
9015 \end_layout
9016
9017 \begin_layout Itemize
9018
9019 \change_deleted 564990737 1669742044
9020
9021 \family typewriter
9022
9023 \backslash
9024 and
9025 \end_layout
9026
9027 \begin_layout Itemize
9028
9029 \change_deleted 564990737 1669742044
9030
9031 \family typewriter
9032
9033 \backslash
9034 authorrunning
9035 \end_layout
9036
9037 \begin_layout Itemize
9038
9039 \change_deleted 564990737 1669742044
9040
9041 \family typewriter
9042
9043 \backslash
9044 object{}
9045 \end_layout
9046
9047 \begin_layout Itemize
9048
9049 \change_deleted 564990737 1669742044
9050
9051 \family typewriter
9052
9053 \backslash
9054 titlerunning{}
9055 \end_layout
9056
9057 \begin_layout Standard
9058
9059 \change_deleted 564990737 1669742044
9060 If you want to use any of these commands, you have to enter them yourself.
9061  
9062 \series bold
9063 Do not forget to mark them as \SpecialChar LaTeX
9064  code!
9065 \end_layout
9066
9067 \begin_layout Subsection
9068
9069 \change_deleted 564990737 1669742044
9070 Figure and Table Floats
9071 \end_layout
9072
9073 \begin_layout Standard
9074
9075 \change_deleted 564990737 1669742044
9076 \SpecialChar LyX
9077  provides support for the necessary float environments 
9078 \family sans
9079 figure, figure*, table
9080 \family default
9081  and 
9082 \family sans
9083 table*
9084 \family default
9085 , therefore we won't tell much about it here.
9086  Refer to the 
9087 \emph on
9088 User's
9089 \begin_inset space ~
9090 \end_inset
9091
9092 Guide
9093 \emph default
9094 .
9095  Just remember that tables should be left-aligned.
9096  For that, select the table and change the alignment in 
9097 \family sans
9098 Edit\SpecialChar menuseparator
9099 Paragraph
9100 \begin_inset space ~
9101 \end_inset
9102
9103 Settings.
9104 \end_layout
9105
9106 \begin_layout Standard
9107
9108 \change_deleted 564990737 1669742044
9109 There is only one special thing: the figures with caption besides the figure.
9110  To create such a figure, you have to do the following:
9111 \end_layout
9112
9113 \begin_layout Enumerate
9114
9115 \change_deleted 564990737 1669742044
9116 Create a wide figure float: 
9117 \family sans
9118 Insert\SpecialChar menuseparator
9119 Float\SpecialChar menuseparator
9120 Figure
9121 \family default
9122 , then right click in the figure and select 
9123 \family sans
9124 Span
9125 \begin_inset space ~
9126 \end_inset
9127
9128 columns
9129 \family default
9130 .
9131 \end_layout
9132
9133 \begin_layout Enumerate
9134
9135 \change_deleted 564990737 1669742044
9136 Enter your caption text.
9137 \end_layout
9138
9139 \begin_layout Enumerate
9140
9141 \change_deleted 564990737 1669742044
9142 Press 
9143 \family sans
9144 Return
9145 \family default
9146  to move the cursor above the caption.
9147 \end_layout
9148
9149 \begin_layout Enumerate
9150
9151 \change_deleted 564990737 1669742044
9152 Insert your figure
9153 \end_layout
9154
9155 \begin_layout Enumerate
9156
9157 \change_deleted 564990737 1669742044
9158 Position the cursor behind the figure and insert a horizontal fill: 
9159 \family sans
9160 Insert\SpecialChar menuseparator
9161 Special
9162 \begin_inset space ~
9163 \end_inset
9164
9165 Character\SpecialChar menuseparator
9166 Horizontal
9167 \begin_inset space ~
9168 \end_inset
9169
9170 Fill
9171 \family default
9172 .
9173 \end_layout
9174
9175 \begin_layout Enumerate
9176
9177 \change_deleted 564990737 1669742044
9178 Switch to \SpecialChar LaTeX
9179  mode: 
9180 \family sans
9181 M-c
9182 \begin_inset space ~
9183 \end_inset
9184
9185 t
9186 \family default
9187 .
9188 \end_layout
9189
9190 \begin_layout Enumerate
9191
9192 \change_deleted 564990737 1669742044
9193 Enter 
9194 \family typewriter
9195
9196 \backslash
9197 parbox[b]{55mm}{
9198 \family default
9199 .
9200  
9201 \series bold
9202 Do not close the brace!
9203 \end_layout
9204
9205 \begin_layout Enumerate
9206
9207 \change_deleted 564990737 1669742044
9208 Position the cursor behind the caption text, switch to \SpecialChar LaTeX
9209  mode and insert
9210  the closing brace: 
9211 \family sans
9212 M-c
9213 \begin_inset space ~
9214 \end_inset
9215
9216 t
9217 \family default
9218  
9219 \family typewriter
9220 }
9221 \family default
9222 .
9223 \end_layout
9224
9225 \begin_layout Standard
9226
9227 \change_deleted 564990737 1669742044
9228 Also, refer to the figures in the example paper.
9229 \end_layout
9230
9231 \begin_layout Subsection
9232
9233 \change_deleted 564990737 1669742044
9234 Referee layout
9235 \end_layout
9236
9237 \begin_layout Standard
9238
9239 \change_deleted 564990737 1669742044
9240 For submission, the paper has to be formated in a special double-spacing
9241  layout.
9242  For this purpose, you have to give the option 
9243 \family typewriter
9244 referee
9245 \family default
9246  to the document class.
9247  This must be done using the custom class options field in the 
9248 \family sans
9249 Document\SpecialChar menuseparator
9250 Settings
9251 \family default
9252  dialog.
9253  Just enter the string 
9254 \family typewriter
9255 referee
9256 \family default
9257  there.
9258 \end_layout
9259
9260 \begin_layout Subsection
9261
9262 \change_deleted 564990737 1669742044
9263 The example paper
9264 \end_layout
9265
9266 \begin_layout Standard
9267
9268 \change_deleted 564990737 1669742044
9269 The 
9270 \family sans
9271 Examples
9272 \family default
9273  directory contains an example paper written with \SpecialChar LyX
9274 .
9275  It is the example paper from the original macro package, translated to
9276  \SpecialChar LyX
9277 .
9278  Use it for inspiration, and compare the original \SpecialChar LaTeX
9279  code with \SpecialChar LyX
9280  way of writing.
9281 \end_layout
9282
9283 \begin_layout Section
9284 AAS\SpecialChar TeX
9285
9286 \end_layout
9287
9288 \begin_layout Standard
9289 by 
9290 \noun on
9291 Mike Ressler
9292 \end_layout
9293
9294 \begin_layout Subsection
9295 Introduction
9296 \end_layout
9297
9298 \begin_layout Standard
9299 AAS\SpecialChar TeX
9300  is a set of macros produced by the American Astronomical Society to
9301  facilitate electronic manuscript submission to the three journals they
9302  publish: the Astrophysical Journal (including the Letters and Supplement),
9303  the Astronomical Journal, and the Publications of the Astronomical Society
9304  of the Pacific.
9305  \SpecialChar LyX
9306  has proven to be an excellent tool for generating these documents, especially
9307  given its equation, citation, and figure handling capabilities.
9308  \SpecialChar LyX
9309  requires version 5.0 (or higher) of these macros; preferably 6.0, which
9310  is the version described here, or higher.
9311  Versions prior to 5.0 are intended for use with \SpecialChar LaTeX
9312 2.09 and are fundamentally
9313  incompatible with \SpecialChar LyX
9314 .
9315  The AAS\SpecialChar TeX
9316  package may be downloaded from the AAS\SpecialChar TeX
9317  Web site
9318 \end_layout
9319
9320 \begin_layout Standard
9321 \begin_inset VSpace medskip
9322 \end_inset
9323
9324
9325 \end_layout
9326
9327 \begin_layout Standard
9328 \align center
9329 \begin_inset Flex URL
9330 status collapsed
9331
9332 \begin_layout Plain Layout
9333
9334 https://aas.org/aastex/aastex-downloads
9335 \end_layout
9336
9337 \end_inset
9338
9339
9340 \end_layout
9341
9342 \begin_layout Standard
9343 \begin_inset VSpace medskip
9344 \end_inset
9345
9346
9347 \end_layout
9348
9349 \begin_layout Standard
9350 A complete user guide is contained in that package and you should familiarize
9351  yourself with it thoroughly before embarking on writing a paper in \SpecialChar LyX
9352 .
9353  \SpecialChar LyX
9354  will not reduce the need to figure out all the AAS\SpecialChar TeX
9355  commands, it will only
9356  reduce the drudgery of typing everything in.
9357  It is your responsibility to ensure that the final exported \SpecialChar LaTeX
9358  document conforms
9359  completely to the requirements of the journal to which you are submitting
9360  your paper.
9361 \end_layout
9362
9363 \begin_layout Subsection
9364 Starting a New Paper
9365 \end_layout
9366
9367 \begin_layout Standard
9368 I strongly suggest that you start with the AAS\SpecialChar TeX
9369  template file.
9370  Click on 
9371 \family sans
9372 File\SpecialChar menuseparator
9373 New from
9374 \family default
9375  
9376 \family sans
9377 Template
9378 \family default
9379 , enter the new file name, then choose the 
9380 \family typewriter
9381 aastex6.lyx
9382 \family default
9383  template.
9384  This will show the most common fields found in a manuscript.
9385  Simply overwrite the existing text (including the brackets, 
9386 \family typewriter
9387 <>
9388 \family default
9389 ) with the correct information.
9390  Many of the AAS\SpecialChar TeX
9391  commands and environments can be implemented directly in
9392  \SpecialChar LyX
9393 , but some cannot.
9394  For commands such as these, the \SpecialChar LaTeX
9395  code must be entered directly and marked
9396  as such.
9397  Such commands are referred to as \SpecialChar TeX
9398  code, or Evil Red Text.
9399  I tried to minimize the amount of \SpecialChar TeX
9400  code needed in an AAS\SpecialChar TeX
9401  document.
9402 \end_layout
9403
9404 \begin_layout Subsection
9405 Finishing Your Paper
9406 \end_layout
9407
9408 \begin_layout Standard
9409 When the paper is finished to your satisfaction and previews/prints correctly,
9410  there are a few 
9411 \begin_inset Quotes eld
9412 \end_inset
9413
9414 postprocessing
9415 \begin_inset Quotes erd
9416 \end_inset
9417
9418  actions which need to be done before you submit it to the journals.
9419  
9420 \end_layout
9421
9422 \begin_layout Enumerate
9423 Export your paper as a \SpecialChar LaTeX
9424  file (
9425 \family sans
9426 File\SpecialChar menuseparator
9427 Export\SpecialChar menuseparator
9428 \SpecialChar LaTeX
9429
9430 \family default
9431 ).
9432  
9433 \end_layout
9434
9435 \begin_layout Enumerate
9436 Edit the resulting 
9437 \family typewriter
9438 .tex
9439 \family default
9440  file with your favorite text editor
9441 \end_layout
9442
9443 \begin_deeper
9444 \begin_layout Enumerate
9445 remove the comment lines before the 
9446 \family typewriter
9447
9448 \backslash
9449 documentclass
9450 \family default
9451  command
9452 \end_layout
9453
9454 \begin_layout Enumerate
9455 remove the 
9456 \family typewriter
9457
9458 \backslash
9459 usepackage...{fontenc}
9460 \family default
9461  line if it appears (usually just after 
9462 \family typewriter
9463
9464 \backslash
9465 documentclass
9466 \family default
9467 }; also remove the 
9468 \family typewriter
9469
9470 \backslash
9471 secnumdepth
9472 \family default
9473  line if it appears.
9474 \end_layout
9475
9476 \begin_layout Enumerate
9477 remove everything between (and including) the 
9478 \family typewriter
9479
9480 \backslash
9481 makeatletter
9482 \family default
9483  and 
9484 \family typewriter
9485
9486 \backslash
9487 makeatother
9488 \family default
9489  commands, except for any commands you specifically put into the \SpecialChar LaTeX
9490  preamble
9491  (which should appear immediately after the 
9492 \begin_inset Quotes eld
9493 \end_inset
9494
9495 User specified \SpecialChar LaTeX
9496  commands
9497 \begin_inset Quotes erd
9498 \end_inset
9499
9500  comment in the 
9501 \family typewriter
9502 .tex
9503 \family default
9504  file).
9505 \end_layout
9506
9507 \end_deeper
9508 \begin_layout Enumerate
9509 Run the resulting file through \SpecialChar LaTeX
9510  to make sure it still processes correctly.
9511 \end_layout
9512
9513 \begin_layout Enumerate
9514 Reread the journal requirements to make sure your filenames and formats
9515  are correct.
9516 \end_layout
9517
9518 \begin_layout Enumerate
9519 Submit it.
9520 \end_layout
9521
9522 \begin_layout Subsection
9523 Comments On Specific Commands
9524 \end_layout
9525
9526 \begin_layout Standard
9527 I will not describe the detailed usage of the individual AAS\SpecialChar TeX
9528  commands: the
9529  AAS\SpecialChar TeX
9530  User Guide (
9531 \family typewriter
9532 aasguide.tex
9533 \family default
9534 ) gives a good description of each.
9535  Thus it's probably easiest for me to go down the list as found in the guide
9536  and offer comments where necessary.
9537  So let's begin \SpecialChar ldots
9538
9539 \end_layout
9540
9541 \begin_layout Subsubsection
9542 Things that work as expected
9543 \end_layout
9544
9545 \begin_layout Standard
9546 Because they work as you might expect, I simply list them and the section
9547  they are found in: 
9548 \family typewriter
9549
9550 \backslash
9551 documentclass
9552 \family default
9553  (2.1.1), 
9554 \family typewriter
9555
9556 \backslash
9557 begin{document}
9558 \family default
9559  (2.2), 
9560 \family typewriter
9561
9562 \backslash
9563 title
9564 \family default
9565  (2.3), 
9566 \family typewriter
9567
9568 \backslash
9569 author
9570 \family default
9571  (2.3), 
9572 \family typewriter
9573
9574 \backslash
9575 affil
9576 \family default
9577  (2.3), 
9578 \family typewriter
9579
9580 \backslash
9581 abstract
9582 \family default
9583  (2.4), 
9584 \family typewriter
9585
9586 \backslash
9587 keywords
9588 \family default
9589  (2.5), 
9590 \family typewriter
9591
9592 \backslash
9593 section
9594 \family default
9595  (2.7), 
9596 \family typewriter
9597
9598 \backslash
9599 subsection
9600 \family default
9601  (2.7), 
9602 \family typewriter
9603
9604 \backslash
9605 subsubsection
9606 \family default
9607  (2.7), 
9608 \family typewriter
9609
9610 \backslash
9611 paragraph
9612 \family default
9613  (2.7), 
9614 \family typewriter
9615
9616 \backslash
9617 facility
9618 \family default
9619  (2.10), 
9620 \family typewriter
9621
9622 \backslash
9623 begin{displaymath}
9624 \family default
9625  (2.12), 
9626 \family typewriter
9627
9628 \backslash
9629 begin{equation}
9630 \family default
9631  (2.12), 
9632 \family typewriter
9633
9634 \backslash
9635 begin{eqnarray}
9636 \family default
9637  (2.12), 
9638 \family typewriter
9639
9640 \backslash
9641 begin{mathletters}
9642 \family default
9643  (2.12), 
9644 \family typewriter
9645
9646 \backslash
9647 begin{thebibliography}
9648 \family default
9649  (2.13.1), 
9650 \family typewriter
9651
9652 \backslash
9653 bibitem
9654 \family default
9655  (2.13.2), all the cite commands and their variations (2.13.2), the generic
9656  graphicx figure commands (2.14.1), 
9657 \family typewriter
9658
9659 \backslash
9660 begin{table}
9661 \family default
9662  (2.15.4), 
9663 \family typewriter
9664
9665 \backslash
9666 begin{tabular}
9667 \family default
9668  (2.15.4), 
9669 \family typewriter
9670
9671 \backslash
9672 caption
9673 \family default
9674  (2.15.4), 
9675 \family typewriter
9676
9677 \backslash
9678 label
9679 \family default
9680  (2.15.4, amongst other places), 
9681 \family typewriter
9682
9683 \backslash
9684 tablerefs
9685 \family default
9686  (2.15.5), 
9687 \family typewriter
9688
9689 \backslash
9690 tablecomments
9691 \family default
9692  (2.15.5), 
9693 \family typewriter
9694
9695 \backslash
9696 url
9697 \family default
9698  (2.17.4), 
9699 \family typewriter
9700
9701 \backslash
9702 end{document}
9703 \family default
9704  (2.18).
9705 \end_layout
9706
9707 \begin_layout Standard
9708 The following style options also work correctly: 
9709 \family typewriter
9710 longabstract
9711 \family default
9712  (2.4), 
9713 \family typewriter
9714 preprint
9715 \family default
9716  (3.2.1), 
9717 \family typewriter
9718 preprint2
9719 \family default
9720  (3.2.2), 
9721 \family typewriter
9722 eqsecnum
9723 \family default
9724  (3.3), 
9725 \family typewriter
9726 flushrt
9727 \family default
9728  (3.4).
9729  Simply put them in the 
9730 \family sans
9731 Options
9732 \family default
9733  box in 
9734 \family sans
9735 Layout\SpecialChar menuseparator
9736 Document
9737 \family default
9738 .
9739 \end_layout
9740
9741 \begin_layout Subsubsection
9742 Things that work, but require more comment
9743 \end_layout
9744
9745 \begin_layout Standard
9746 The following items work, but require a little more discussion:
9747 \end_layout
9748
9749 \begin_layout Itemize
9750 These items are reserved for use by the journal editors, but you can put
9751  them into the \SpecialChar LaTeX
9752  preamble if you feel compelled to do so: 
9753 \family typewriter
9754
9755 \backslash
9756 received
9757 \family default
9758
9759 \family typewriter
9760
9761 \backslash
9762 revised
9763 \family default
9764
9765 \family typewriter
9766
9767 \backslash
9768 accepted
9769 \family default
9770
9771 \family typewriter
9772
9773 \backslash
9774 ccc
9775 \family default
9776
9777 \family typewriter
9778
9779 \backslash
9780 cpright
9781 \family default
9782  (all from 2.1.3)
9783 \end_layout
9784
9785 \begin_layout Itemize
9786 These items may be placed in the \SpecialChar LaTeX
9787  preamble, and are included as blanks in
9788  the template file: 
9789 \family typewriter
9790
9791 \backslash
9792 slugcomment
9793 \family default
9794  (2.1.4), 
9795 \family typewriter
9796
9797 \backslash
9798 shorttitle
9799 \family default
9800  (2.1.5), 
9801 \family typewriter
9802
9803 \backslash
9804 shortauthors
9805 \family default
9806  (2.1.5)
9807 \end_layout
9808
9809 \begin_layout Itemize
9810
9811 \family typewriter
9812
9813 \backslash
9814 email
9815 \family default
9816  (2.3) – can only be used 
9817 \begin_inset Quotes eld
9818 \end_inset
9819
9820 standalone
9821 \begin_inset Quotes erd
9822 \end_inset
9823
9824 , not in the middle of a paragraph.
9825  Use \SpecialChar TeX
9826  code if you need to embed it.
9827 \end_layout
9828
9829 \begin_layout Itemize
9830
9831 \family typewriter
9832
9833 \backslash
9834 and
9835 \family default
9836  (2.3) – will have extra {} after it.
9837  This should not cause an error.
9838 \end_layout
9839
9840 \begin_layout Itemize
9841
9842 \family typewriter
9843
9844 \backslash
9845 notetoeditor
9846 \family default
9847  (2.6) – can only be used 
9848 \begin_inset Quotes eld
9849 \end_inset
9850
9851 standalone
9852 \begin_inset Quotes erd
9853 \end_inset
9854
9855 , not in the middle of a paragraph.
9856  Use \SpecialChar TeX
9857  code if you need to embed it.
9858 \end_layout
9859
9860 \begin_layout Itemize
9861
9862 \family typewriter
9863
9864 \backslash
9865 placetable
9866 \family default
9867  (2.8) – can't insert a cross-reference tag, you must type the tag name by
9868  hand
9869 \end_layout
9870
9871 \begin_layout Itemize
9872
9873 \family typewriter
9874
9875 \backslash
9876 placefigure
9877 \family default
9878  (2.8) – same as for 
9879 \family typewriter
9880
9881 \backslash
9882 placetable
9883 \end_layout
9884
9885 \begin_layout Itemize
9886
9887 \family typewriter
9888
9889 \backslash
9890 acknowledgements
9891 \family default
9892  (2.9) – will have extra {} after it.
9893  This should not cause an error.
9894 \end_layout
9895
9896 \begin_layout Itemize
9897
9898 \family typewriter
9899
9900 \backslash
9901 appendix
9902 \family default
9903  (2.11) – will have extra {} after it.
9904  This should not cause an error.
9905 \end_layout
9906
9907 \begin_layout Itemize
9908
9909 \family typewriter
9910
9911 \backslash
9912 figcaption
9913 \family default
9914  (2.14.2) – you can insert an optional filename argument by placing the cursor
9915  at the beginning of the text and selecting 
9916 \family sans
9917 Insert\SpecialChar menuseparator
9918 Short Title
9919 \family default
9920 .
9921  
9922 \begin_inset Quotes eld
9923 \end_inset
9924
9925 Short Title
9926 \begin_inset Quotes erd
9927 \end_inset
9928
9929  inserts an optional argument of the type needed by 
9930 \family typewriter
9931
9932 \backslash
9933 figcaption
9934 \family default
9935 .
9936  Hopefully it will be renamed someday.
9937 \end_layout
9938
9939 \begin_layout Itemize
9940
9941 \family typewriter
9942
9943 \backslash
9944 objectname
9945 \family default
9946  (2.17.1) – same as 
9947 \family typewriter
9948
9949 \backslash
9950 figcaption
9951 \family default
9952  for the catalog ID optional parameter
9953 \end_layout
9954
9955 \begin_layout Itemize
9956
9957 \family typewriter
9958
9959 \backslash
9960 dataset
9961 \family default
9962  (2.17.1) – same as 
9963 \family typewriter
9964
9965 \backslash
9966 figcaption
9967 \family default
9968  for the catalog ID optional parameter
9969 \end_layout
9970
9971 \begin_layout Subsubsection
9972 Things not implemented, use \SpecialChar TeX
9973  code
9974 \end_layout
9975
9976 \begin_layout Standard
9977
9978 \family typewriter
9979
9980 \backslash
9981 eqnum
9982 \family default
9983  (2.12), 
9984 \family typewriter
9985
9986 \backslash
9987 setcounter{equation}
9988 \family default
9989  (2.12), Journal name abbreviations (2.13.4), 
9990 \family typewriter
9991
9992 \backslash
9993 figurenum
9994 \family default
9995  (2.14.1), 
9996 \family typewriter
9997
9998 \backslash
9999 epsscale
10000 \family default
10001  (2.14.1), 
10002 \family typewriter
10003
10004 \backslash
10005 plotone
10006 \family default
10007  (2.14.1), 
10008 \family typewriter
10009
10010 \backslash
10011 plottwo
10012 \family default
10013  (2.14.1), 
10014 \family typewriter
10015
10016 \backslash
10017 tablenum
10018 \family default
10019  (2.15.4), 
10020 \family typewriter
10021
10022 \backslash
10023 tableline
10024 \family default
10025  (2.15.4, insert it as the first element in the lefthand cell after where
10026  you want it.
10027  Don't use any of \SpecialChar LyX
10028 's rules in the table), 
10029 \family typewriter
10030
10031 \backslash
10032 tablenotemark
10033 \family default
10034  (2.15.5), 
10035 \family typewriter
10036
10037 \backslash
10038 tablenotetext
10039 \family default
10040  (2.15.5), much of Misc (2.17, except 
10041 \family typewriter
10042
10043 \backslash
10044 objectname
10045 \family default
10046
10047 \family typewriter
10048
10049 \backslash
10050 dataset
10051 \family default
10052
10053 \family typewriter
10054
10055 \backslash
10056 url
10057 \family default
10058 , and 
10059 \family typewriter
10060
10061 \backslash
10062 email
10063 \family default
10064 ; see above), 
10065 \family typewriter
10066
10067 \backslash
10068 singlespace
10069 \family default
10070  (3.1), 
10071 \family typewriter
10072
10073 \backslash
10074 doublespace
10075 \family default
10076  (3.1), 
10077 \family typewriter
10078
10079 \backslash
10080 onecolumn
10081 \family default
10082  (3.2), 
10083 \family typewriter
10084
10085 \backslash
10086 twocolumn
10087 \family default
10088  (3.2)
10089 \end_layout
10090
10091 \begin_layout Subsubsection
10092 Things that cannot be implemented
10093 \end_layout
10094
10095 \begin_layout Standard
10096 \SpecialChar ldots
10097  at least in any meaningful sort of way, so I suggest ignoring them.
10098  They are the references environment (2.13.3), and the deluxetable environment
10099  (2.15).
10100  If you really, really need to use deluxetable, I suggest editing it in
10101  a separate file with a text editor, then using 
10102 \family sans
10103 Insert\SpecialChar menuseparator
10104 Child
10105 \begin_inset space ~
10106 \end_inset
10107
10108 Document
10109 \family default
10110  to include it in your \SpecialChar LyX
10111  document.
10112  See the 
10113 \family typewriter
10114 aas_sample.lyx
10115 \family default
10116  file to see an example of this.
10117 \end_layout
10118
10119 \begin_layout Subsection
10120 FAQs, Tips, Tricks, and Other Ruminations
10121 \end_layout
10122
10123 \begin_layout Subsubsection
10124 Getting \SpecialChar LyX
10125  and AAS\SpecialChar TeX
10126  to cooperate
10127 \end_layout
10128
10129 \begin_layout Standard
10130 It can be a bit tricky to get \SpecialChar LyX
10131  to recognize a new layout and document class.
10132  When all else fails, do this:
10133 \end_layout
10134
10135 \begin_layout Enumerate
10136 Make certain that \SpecialChar LaTeX
10137  can find AAS\SpecialChar TeX
10138 .
10139  Copy sample.tex (and perhaps table.tex) from the AAS\SpecialChar TeX
10140  distribution into a
10141  directory completely unrelated to \SpecialChar LaTeX
10142  or AAS\SpecialChar TeX
10143  and run \SpecialChar LaTeX
10144  on 
10145 \family typewriter
10146 sample.tex
10147 \family default
10148 .
10149 \end_layout
10150
10151 \begin_layout Enumerate
10152 Make certain that 
10153 \family typewriter
10154 aastex.layout
10155 \family default
10156  appears in \SpecialChar LyX
10157 's 
10158 \family typewriter
10159 layouts
10160 \family default
10161  folder
10162 \end_layout
10163
10164 \begin_layout Enumerate
10165 Rerun 
10166 \family sans
10167 Tools\SpecialChar menuseparator
10168 Reconfigure
10169 \family default
10170  in \SpecialChar LyX
10171 , then restart \SpecialChar LyX
10172 .
10173 \end_layout
10174
10175 \begin_layout Enumerate
10176 Open a regular new file, not from a template.
10177  Does AAS\SpecialChar TeX
10178  appear in the class list in 
10179 \family sans
10180 Document\SpecialChar menuseparator
10181 Settings
10182 \family default
10183 ?
10184 \end_layout
10185
10186 \begin_layout Standard
10187 If you get a warning from an existing AAS\SpecialChar TeX
10188  document about not being able
10189  to find the AAS\SpecialChar TeX
10190  layout or a message about 
10191 \begin_inset Quotes eld
10192 \end_inset
10193
10194 You should not mix title layouts with normal ones
10195 \begin_inset Quotes erd
10196 \end_inset
10197
10198 , things haven't been installed correctly.
10199 \end_layout
10200
10201 \begin_layout Subsubsection
10202 \SpecialChar LaTeX
10203  error processing a table 
10204 \end_layout
10205
10206 \begin_layout Standard
10207 \SpecialChar LyX
10208 , by default, attempts to center the table caption/title.
10209  This seems to produce a bad interaction in AAS\SpecialChar TeX
10210  so you should click somewhere
10211  in the caption/title, then select 
10212 \family sans
10213 Edit\SpecialChar menuseparator
10214 Paragraph
10215 \begin_inset space ~
10216 \end_inset
10217
10218 Settings
10219 \family default
10220 , then set the 
10221 \family sans
10222 Alignment
10223 \family default
10224  to 
10225 \family sans
10226 Block
10227 \family default
10228 .
10229  This took care of it for me.
10230 \end_layout
10231
10232 \begin_layout Subsubsection
10233 References
10234 \end_layout
10235
10236 \begin_layout Standard
10237 A couple of things: 1) I have noticed some funny spacing in the reference
10238  entries in the text.
10239  When you enter the bibliography item data, make sure their is 
10240 \emph on
10241 no
10242 \emph default
10243  space between the last author and the parenthesis setting off the year;
10244  
10245 \emph on
10246 e.
10247 \begin_inset space \thinspace{}
10248 \end_inset
10249
10250 g.
10251 \begin_inset space \space{}
10252 \end_inset
10253
10254
10255 \emph default
10256 type 
10257 \family typewriter
10258 Ressler(1992)
10259 \family default
10260 , not 
10261 \family typewriter
10262 Ressler (1992)
10263 \family default
10264 .
10265  2) Entering the references at all is not obvious.
10266  The easiest thing is to start typing your first reference at the end of
10267  the document, then mark it as type 
10268 \family sans
10269 References
10270 \family default
10271 .
10272  That will put a small gray box in front of what you just typed.
10273  Click on the box to fill in the rest of the information.
10274  For new references, go to the end of an existing reference and press return.
10275  That will create a new line with its own box, etc.
10276 \end_layout
10277
10278 \begin_layout Subsubsection
10279 Including EPS files
10280 \end_layout
10281
10282 \begin_layout Standard
10283 Even though AAS\SpecialChar TeX
10284  provides its own figure commands (
10285 \family typewriter
10286
10287 \backslash
10288 plotone
10289 \family default
10290 , for example), I much prefer \SpecialChar LaTeX
10291 's standard figure commands (with the default
10292  graphicx).
10293  You can insert the 
10294 \family typewriter
10295
10296 \backslash
10297 plotone
10298 \family default
10299 , etc.
10300 \begin_inset space ~
10301 \end_inset
10302
10303 commands as \SpecialChar TeX
10304  code into a Figure Float box if you desire, but I never have
10305  much luck getting the layout right.
10306  With the standard graphics, \SpecialChar LyX
10307  will insert a 
10308 \family typewriter
10309
10310 \backslash
10311 usepackage{graphicx}
10312 \family default
10313  command into the \SpecialChar LaTeX
10314  preamble and handle the figures in the standard \SpecialChar LaTeX2e
10315  way,
10316  interspersing the figures in the text.
10317  I believe ApJ accepts figures exactly this way now; AJ might still use
10318  the 
10319 \begin_inset Quotes eld
10320 \end_inset
10321
10322 stack everything at the end
10323 \begin_inset Quotes erd
10324 \end_inset
10325
10326  technique.
10327 \end_layout
10328
10329 \begin_layout Subsubsection
10330 Things I could have done, but didn't
10331 \end_layout
10332
10333 \begin_layout Standard
10334 There are a few 
10335 \begin_inset Quotes eld
10336 \end_inset
10337
10338 pretty
10339 \begin_inset Quotes erd
10340 \end_inset
10341
10342  things I could have implemented, but chose not to.
10343  For instance, I saw no point in double-spacing the text in the \SpecialChar LyX
10344  window,
10345  even though it is double-spaced in the paper manuscript.
10346  Also, I chose not to make separate layouts for the preprint and preprint2
10347  styles.
10348  Since I assume you will spend most of your time in the plain manuscript
10349  mode anyway, I decided not to chew up more disk space with this.
10350  
10351 \end_layout
10352
10353 \begin_layout Subsection
10354 Final Caveat
10355 \end_layout
10356
10357 \begin_layout Standard
10358 Your mileage may vary.
10359  I've now had papers published by both ApJ and AJ that have had 98% of the
10360  effort done in \SpecialChar LyX
10361 ; the last 2% was the \SpecialChar LaTeX
10362  post-processing and a few cleanups.
10363  I have had no trouble with the submission process, and I'm sure the journals
10364  were never aware that there might be a difference.
10365  So, go forth and publish!
10366 \end_layout
10367
10368 \begin_layout Section
10369 AMS \SpecialChar LaTeX
10370
10371 \end_layout
10372
10373 \begin_layout Standard
10374 by 
10375 \noun on
10376 David Johnson
10377 \noun default
10378 ; updated by 
10379 \noun on
10380 Richard Kimberly Heck
10381 \end_layout
10382
10383 \begin_layout Standard
10384 \begin_inset VSpace bigskip
10385 \end_inset
10386
10387
10388 \end_layout
10389
10390 \begin_layout Standard
10391 \noindent
10392 The AMS \SpecialChar LaTeX
10393  layouts are set up to conform to suggested styles for mathematical
10394  papers to be submitted to American Mathematical Society publications.
10395  The layouts are not tailored to a specific journal, but easily can be.
10396  You should refer to the AMS documentation for specific instructions for
10397  each journal (usually it will entail only changing a single line in the
10398  \SpecialChar TeX
10399  output).
10400  That documentation is available on the Web at 
10401 \begin_inset Flex URL
10402 status open
10403
10404 \begin_layout Plain Layout
10405
10406 http://www.ams.org
10407 \end_layout
10408
10409 \end_inset
10410
10411  or by ftp at 
10412 \begin_inset Flex URL
10413 status open
10414
10415 \begin_layout Plain Layout
10416
10417 ftp://ftp.ams.org/pub/tex/amslatex/
10418 \end_layout
10419
10420 \end_inset
10421
10422 .
10423  These layouts are appropriate, and useful, for any mathematical writing.
10424  
10425 \end_layout
10426
10427 \begin_layout Standard
10428 There are two basic AMS \SpecialChar LaTeX
10429  layouts: 
10430 \end_layout
10431
10432 \begin_layout Itemize
10433 amsart: The standard AMS article format.
10434 \end_layout
10435
10436 \begin_layout Itemize
10437 amsbook: the standard AMS book (really, monograph) format.
10438  
10439 \end_layout
10440
10441 \begin_layout Standard
10442 The layouts themselves contain only the minimum necessary to use the AMS
10443  classes.
10444  They do not, in particular, contain any of the `theorem' environments used
10445  for setting theorems, lemmas, and the like.
10446  These are contained, instead, in the 
10447 \begin_inset Flex Code
10448 status collapsed
10449
10450 \begin_layout Plain Layout
10451 Theorems (AMS)
10452 \end_layout
10453
10454 \end_inset
10455
10456  module, which is loaded by default when you select one of the AMS classes.
10457  (It can also be used with other classes and can be removed, if you would
10458  rather use something else.) Less commonly used environments are in the 
10459 \begin_inset Flex Code
10460 status collapsed
10461
10462 \begin_layout Plain Layout
10463 Theorems (AMS-Extended)
10464 \end_layout
10465
10466 \end_inset
10467
10468  module, which must be loaded manually.
10469 \end_layout
10470
10471 \begin_layout Standard
10472 By default, theorems and the like are numbered consecutively throughout
10473  the document, but this may be modified by loading the module 
10474 \begin_inset Flex Code
10475 status collapsed
10476
10477 \begin_layout Plain Layout
10478 Theorems (Order by Section)
10479 \end_layout
10480
10481 \end_inset
10482
10483  or, if you are using 
10484 \begin_inset Flex Code
10485 status collapsed
10486
10487 \begin_layout Plain Layout
10488 book (AMS)
10489 \end_layout
10490
10491 \end_inset
10492
10493 , the module 
10494 \begin_inset Flex Code
10495 status collapsed
10496
10497 \begin_layout Plain Layout
10498 Theorems (Order by Chapter)
10499 \end_layout
10500
10501 \end_inset
10502
10503 .
10504  These will number the results as 
10505 \begin_inset Formula $n.m$
10506 \end_inset
10507
10508 , where the first number refers to the section (or chapter) and the second
10509  refers to the total number of results so far in that section (or chapter).
10510  Many environments are also available unnumbered.
10511  These are indicated by an asterisk at the end.
10512  If you happen to want 
10513 \emph on
10514 only
10515 \emph default
10516  unnumbered results, the module 
10517 \begin_inset Flex Code
10518 status collapsed
10519
10520 \begin_layout Plain Layout
10521 Theorems (Starred)
10522 \end_layout
10523
10524 \end_inset
10525
10526  provides that option.
10527 \end_layout
10528
10529 \begin_layout Standard
10530 Note that these modules do not 
10531 \emph on
10532 have
10533 \emph default
10534  to be used with the AMS classes.
10535  It is perfectly possible to use the 
10536 \begin_inset Flex Code
10537 status collapsed
10538
10539 \begin_layout Plain Layout
10540 Theorems (AMS)
10541 \end_layout
10542
10543 \end_inset
10544
10545  module, and the others mentioned, with other classes, such as 
10546 \begin_inset Flex Code
10547 status collapsed
10548
10549 \begin_layout Plain Layout
10550 article
10551 \end_layout
10552
10553 \end_inset
10554
10555
10556 \begin_inset Flex Code
10557 status collapsed
10558
10559 \begin_layout Plain Layout
10560 report
10561 \end_layout
10562
10563 \end_inset
10564
10565
10566 \begin_inset Flex Code
10567 status collapsed
10568
10569 \begin_layout Plain Layout
10570 book (KOMA-script)
10571 \end_layout
10572
10573 \end_inset
10574
10575 , and so forth.
10576 \end_layout
10577
10578 \begin_layout Subsection
10579 What these layouts provide
10580 \end_layout
10581
10582 \begin_layout Standard
10583 There is a long list of included environments provided by these layouts.
10584  In AMS-\SpecialChar LaTeX
10585 , there is, in fact, an opportunity to define an unlimited variety
10586  of `theorem' environments.
10587  However, the AMS recommends the environments that are available in \SpecialChar LyX
10588 .
10589  
10590 \end_layout
10591
10592 \begin_layout Standard
10593 The following environments—as well as the standard environments, such as
10594  
10595 \begin_inset Flex Noun
10596 status collapsed
10597
10598 \begin_layout Plain Layout
10599 section
10600 \end_layout
10601
10602 \end_inset
10603
10604
10605 \begin_inset Flex Noun
10606 status collapsed
10607
10608 \begin_layout Plain Layout
10609 bibliography
10610 \end_layout
10611
10612 \end_inset
10613
10614
10615 \begin_inset Flex Noun
10616 status collapsed
10617
10618 \begin_layout Plain Layout
10619 title
10620 \end_layout
10621
10622 \end_inset
10623
10624
10625 \begin_inset Flex Noun
10626 status collapsed
10627
10628 \begin_layout Plain Layout
10629 author
10630 \end_layout
10631
10632 \end_inset
10633
10634 , and 
10635 \begin_inset Flex Noun
10636 status collapsed
10637
10638 \begin_layout Plain Layout
10639 date
10640 \end_layout
10641
10642 \end_inset
10643
10644 —are provided by 
10645 \begin_inset Flex Code
10646 status collapsed
10647
10648 \begin_layout Plain Layout
10649 article (AMS)
10650 \end_layout
10651
10652 \end_inset
10653
10654  and 
10655 \begin_inset Flex Code
10656 status collapsed
10657
10658 \begin_layout Plain Layout
10659 book (AMS)
10660 \end_layout
10661
10662 \end_inset
10663
10664 :
10665 \end_layout
10666
10667 \begin_layout Description
10668 Address This should be the author's permanent address.
10669 \end_layout
10670
10671 \begin_layout Description
10672 Current
10673 \begin_inset space ~
10674 \end_inset
10675
10676 Address This should be the author's temporary address at the time of submission,
10677  if different from the Address.
10678 \end_layout
10679
10680 \begin_layout Description
10681 Email Author's e-mail address
10682 \end_layout
10683
10684 \begin_layout Description
10685 URL Author's Web address, if desired.
10686 \end_layout
10687
10688 \begin_layout Description
10689 Keywords Key words or phrases used to identify specific topics discussed
10690  in the paper.
10691 \end_layout
10692
10693 \begin_layout Description
10694 Subjectclass These refer to the AMS Subject Classifications, published and
10695  described in 
10696 \emph on
10697 Mathematical Reviews
10698 \emph default
10699 .
10700  These are also available online at the AMS cites listed above.
10701 \end_layout
10702
10703 \begin_layout Description
10704 Thanks
10705 \end_layout
10706
10707 \begin_layout Description
10708 Dedicatory
10709 \end_layout
10710
10711 \begin_layout Description
10712 Translator
10713 \end_layout
10714
10715 \begin_layout Standard
10716 The following environments are provided by both the 
10717 \begin_inset Flex Code
10718 status collapsed
10719
10720 \begin_layout Plain Layout
10721 Theorems
10722 \end_layout
10723
10724 \end_inset
10725
10726  and 
10727 \begin_inset Flex Code
10728 status collapsed
10729
10730 \begin_layout Plain Layout
10731 Theorems (AMS)
10732 \end_layout
10733
10734 \end_inset
10735
10736  modules, in the latter case in both starred (unnumbered) and unstarred
10737  (numbered) versions.
10738  These same environments are provided only in the starred versions by the
10739  
10740 \begin_inset Flex Code
10741 status collapsed
10742
10743 \begin_layout Plain Layout
10744 Theorems (Starred)
10745 \end_layout
10746
10747 \end_inset
10748
10749  module:
10750 \end_layout
10751
10752 \begin_layout Theorem
10753 This is typically used for the statements of major results.
10754  
10755 \end_layout
10756
10757 \begin_layout Corollary*
10758 This is used for statements which follow fairly directly from previous statement
10759 s.
10760  Again, these can be major results.
10761  
10762 \end_layout
10763
10764 \begin_layout Lemma
10765 These are smaller results needed to prove other statements.
10766 \end_layout
10767
10768 \begin_layout Proposition
10769 These are less major results which (hopefully) add to the general theory
10770  being discussed.
10771 \end_layout
10772
10773 \begin_layout Conjecture
10774 These are statements provided without justification, which the author does
10775  not know how to prove, but which seem to be true (to the author, at least).
10776 \end_layout
10777
10778 \begin_layout Definition*
10779 Guess what this is for.
10780  The font is different for this environment than for the previous ones.
10781  
10782 \end_layout
10783
10784 \begin_layout Example*
10785 Used for examples illustrating proven results.
10786 \end_layout
10787
10788 \begin_layout Problem
10789 It's not really known what this is for.
10790  You should figure it out.
10791 \end_layout
10792
10793 \begin_layout Exercise*
10794 Write a description for this one.
10795 \end_layout
10796
10797 \begin_layout Remark
10798 This environment is also a type of theorem, usually a lesser sort of observation.
10799 \end_layout
10800
10801 \begin_layout Claim*
10802 Often used in the course of giving a proof of a larger result.
10803 \end_layout
10804
10805 \begin_layout Case
10806 Generally, these are used to break up long arguments, using specific instances
10807  of some condition.
10808  
10809 \end_layout
10810
10811 \begin_layout Case
10812 The numbering scheme for cases is on its own, not together with other numbered
10813  statements.
10814  
10815 \end_layout
10816
10817 \begin_layout Proof
10818 At the end of this environment, a QED symbol (usually a square, but it can
10819  vary with different styles) is placed.
10820  If you want to have other environments within this one—for example, Case
10821  environments—and have the QED symbol appear only after them, then the other
10822  environments need to be nested within the proof environment.
10823  See the section 
10824 \emph on
10825 Nesting Environments
10826 \emph default
10827  of the 
10828 \emph on
10829 User's Guide
10830 \emph default
10831  for information on nesting.
10832 \end_layout
10833
10834 \begin_layout Standard
10835 And these environments are provided by 
10836 \begin_inset Flex Code
10837 status collapsed
10838
10839 \begin_layout Plain Layout
10840 Theorems (AMS-Extended)
10841 \end_layout
10842
10843 \end_inset
10844
10845 :
10846 \end_layout
10847
10848 \begin_layout Criterion*
10849 A required condition.
10850 \end_layout
10851
10852 \begin_layout Algorithm*
10853 A general procedure to be used.
10854 \end_layout
10855
10856 \begin_layout Axiom*
10857 This is a property or statement taken as true within the system being discussed.
10858 \end_layout
10859
10860 \begin_layout Condition*
10861 Sometimes used to state a condition assumed within the present context of
10862  discussion.
10863 \end_layout
10864
10865 \begin_layout Note*
10866 Similar to a Remark.
10867 \end_layout
10868
10869 \begin_layout Notation*
10870 Used for the explanation of, yes, notation.
10871 \end_layout
10872
10873 \begin_layout Summary
10874 Do we really need to tell you? 
10875 \end_layout
10876
10877 \begin_layout Acknowledgement*
10878 Acknowledgement.
10879 \end_layout
10880
10881 \begin_layout Conclusion*
10882 Sometimes used at the end of a long train of argument.
10883 \end_layout
10884
10885 \begin_layout Fact
10886 Used in a way similar to Proposition, though perhaps lower on the scale.
10887 \end_layout
10888
10889 \begin_layout Standard
10890 In addition, the AMS classes automatically provide the AMS \SpecialChar LaTeX
10891  and AMS fonts
10892  packages.
10893  They need to be available on your system in order to use these environments.
10894 \end_layout
10895
10896 \begin_layout Section
10897 Broadway
10898 \end_layout
10899
10900 \begin_layout Standard
10901 by 
10902 \shape smallcaps
10903 Garst Reese
10904 \end_layout
10905
10906 \begin_layout Subsection
10907 Introduction
10908 \end_layout
10909
10910 \begin_layout Standard
10911 Broadway is for writing plays.
10912  The format is more decorative than Hollywood, and much less standardized.
10913  This format should be suitable for workshops.
10914 \end_layout
10915
10916 \begin_layout Subsection
10917 Special problems
10918 \end_layout
10919
10920 \begin_layout Standard
10921 The same as in Hollywood.
10922 \end_layout
10923
10924 \begin_layout Subsection
10925 Special features
10926 \end_layout
10927
10928 \begin_layout Standard
10929 Insert the 
10930 \family sans
10931 Speaker
10932 \family default
10933  names as labels then cross-reference the label to insert the name.
10934  The cross-reference dialog will show the current cast of characters.
10935 \end_layout
10936
10937 \begin_layout Subsection
10938 Paper size and Margins
10939 \end_layout
10940
10941 \begin_layout Standard
10942 USLetter, left 1.6in, right 0.75in, top 0.5in, bottom 0.75in
10943 \end_layout
10944
10945 \begin_layout Subsection
10946 Environments
10947 \end_layout
10948
10949 \begin_layout Standard
10950 The following environments are available.
10951  You can use broadway.bind to get the bind keys shown at the right.
10952 \end_layout
10953
10954 \begin_layout Itemize
10955
10956 \family sans
10957 Standard
10958 \begin_inset Newline newline
10959 \end_inset
10960
10961
10962 \family default
10963 You should not have to use this, but it is here for anything that does not
10964  fit otherwise.
10965 \end_layout
10966
10967 \begin_layout Itemize
10968
10969 \family sans
10970 Narrative
10971 \begin_inset space \hfill{}
10972 \end_inset
10973
10974 M-z n
10975 \begin_inset Newline newline
10976 \end_inset
10977
10978
10979 \family default
10980 Used to describe stage setting and the action.
10981  First use of speaker names in all CAPs.
10982 \end_layout
10983
10984 \begin_layout Itemize
10985
10986 \family sans
10987 ACT
10988 \begin_inset space \hfill{}
10989 \end_inset
10990
10991 M-z a
10992 \begin_inset Newline newline
10993 \end_inset
10994
10995
10996 \family default
10997 Automatically numbered.
10998  On screen it will be arabic, but will print as Roman.
10999 \end_layout
11000
11001 \begin_layout Itemize
11002
11003 \family sans
11004 ACT*
11005 \begin_inset space \hfill{}
11006 \end_inset
11007
11008 M-z S at
11009 \begin_inset Newline newline
11010 \end_inset
11011
11012
11013 \family default
11014 Subtitle for 
11015 \family sans
11016 ACT.
11017
11018 \family default
11019  It is just centered text.
11020 \end_layout
11021
11022 \begin_layout Itemize
11023
11024 \family sans
11025 SCENE
11026 \begin_inset space \hfill{}
11027 \end_inset
11028
11029 M-z S-S
11030 \begin_inset Newline newline
11031 \end_inset
11032
11033
11034 \family default
11035 Not automatically numbered.
11036  You supply the number.
11037  This is because I couldn't figure out how.
11038 \end_layout
11039
11040 \begin_layout Itemize
11041
11042 \family sans
11043 AT_RISE:
11044 \begin_inset space \hfill{}
11045 \end_inset
11046
11047 M-z S-R
11048 \begin_inset Newline newline
11049 \end_inset
11050
11051
11052 \family default
11053 A special case of Narrative to describe the setting and action as the curtain
11054  rises.
11055 \end_layout
11056
11057 \begin_layout Itemize
11058
11059 \family sans
11060 Speaker
11061 \begin_inset space \hfill{}
11062 \end_inset
11063
11064 M-z s
11065 \begin_inset Newline newline
11066 \end_inset
11067
11068
11069 \family default
11070 The speaker's (actor's) title, centered in all CAPS.
11071 \end_layout
11072
11073 \begin_layout Itemize
11074
11075 \family sans
11076 Parenthetical
11077 \begin_inset space \hfill{}
11078 \end_inset
11079
11080 M-z p
11081 \begin_inset Newline newline
11082 \end_inset
11083
11084
11085 \family default
11086 Instructions to the speaker.
11087  The parentheses are automatically inserted.
11088  The ( will appear on screen, but both will be in the printed play.
11089  This environment is only used within 
11090 \family sans
11091 Dialogue
11092 \family default
11093 .
11094 \end_layout
11095
11096 \begin_layout Itemize
11097
11098 \family sans
11099 Dialogue
11100 \begin_inset space \hfill{}
11101 \end_inset
11102
11103 M-z d
11104 \begin_inset Newline newline
11105 \end_inset
11106
11107
11108 \family default
11109 What the Speaker says.
11110 \end_layout
11111
11112 \begin_layout Itemize
11113
11114 \family sans
11115 CURTAIN
11116 \begin_inset space \hfill{}
11117 \end_inset
11118
11119 M-z S-C
11120 \begin_inset Newline newline
11121 \end_inset
11122
11123
11124 \family default
11125 The curtain comes down.
11126 \end_layout
11127
11128 \begin_layout Itemize
11129
11130 \family sans
11131 Title
11132 \begin_inset space \hfill{}
11133 \end_inset
11134
11135 M-z S-T
11136 \end_layout
11137
11138 \begin_layout Itemize
11139
11140 \family sans
11141 Author
11142 \begin_inset space \hfill{}
11143 \end_inset
11144
11145 M-z S-A
11146 \end_layout
11147
11148 \begin_layout Itemize
11149
11150 \family sans
11151 Right_Address
11152 \begin_inset space \hfill{}
11153 \end_inset
11154
11155 M-z r
11156 \end_layout
11157
11158 \begin_layout Standard
11159 Hello there.
11160 \end_layout
11161
11162 \begin_layout Section
11163 Dinbrief
11164 \end_layout
11165
11166 \begin_layout Standard
11167 The document class 
11168 \family sans
11169 dinbrief
11170 \family default
11171  can be used to type letters according to German conventions.
11172  A template file is included in 
11173 \family typewriter
11174 .../lyx/share/templates
11175 \family default
11176  for you to use as a starting point.
11177 \end_layout
11178
11179 \begin_layout Section
11180 Elsevier Journals
11181 \end_layout
11182
11183 \begin_layout Standard
11184 See the \SpecialChar LyX
11185  template file 
11186 \family typewriter
11187 elsarticle.lyx
11188 \family default
11189 .
11190  It contains all infos you need.
11191 \end_layout
11192
11193 \begin_layout Section
11194 Foils [aka 
11195 \family sans
11196 Foil\SpecialChar TeX
11197
11198 \family default
11199 ]
11200 \begin_inset CommandInset label
11201 LatexCommand label
11202 name "sec:foiltex"
11203
11204 \end_inset
11205
11206
11207 \end_layout
11208
11209 \begin_layout Standard
11210 by 
11211 \noun on
11212 Allan Rae
11213 \end_layout
11214
11215 \begin_layout Subsection
11216 Introduction
11217 \end_layout
11218
11219 \begin_layout Standard
11220 This section describes how to use \SpecialChar LyX
11221  to make slides for overhead projectors.
11222  There are two document classes that can do this: the default slides class
11223  and the 
11224 \family sans
11225 Foil\SpecialChar TeX
11226
11227 \family default
11228  slides class.
11229  This section documents the latter.
11230 \end_layout
11231
11232 \begin_layout Standard
11233 I'm going to say this again, nice and clear, so that there's no misunderstanding
11234 :
11235 \end_layout
11236
11237 \begin_layout Standard
11238 \begin_inset VSpace bigskip
11239 \end_inset
11240
11241
11242 \end_layout
11243
11244 \begin_layout Standard
11245 \align center
11246
11247 \size large
11248 This section documents the class 
11249 \begin_inset Quotes eld
11250 \end_inset
11251
11252
11253 \family sans
11254 FoilTeX
11255 \family default
11256
11257 \begin_inset Quotes erd
11258 \end_inset
11259
11260  
11261 \emph on
11262 only.
11263 \end_layout
11264
11265 \begin_layout Standard
11266 \begin_inset VSpace bigskip
11267 \end_inset
11268
11269
11270 \end_layout
11271
11272 \begin_layout Standard
11273 If you're looking for the documentation for 
11274 \begin_inset Quotes eld
11275 \end_inset
11276
11277
11278 \family sans
11279 slides (default)
11280 \family default
11281
11282 \begin_inset Quotes erd
11283 \end_inset
11284
11285 , check out section
11286 \begin_inset space ~
11287 \end_inset
11288
11289
11290 \begin_inset CommandInset ref
11291 LatexCommand ref
11292 reference "sec:slitex"
11293
11294 \end_inset
11295
11296 .
11297  If your machine doesn't have the 
11298 \family sans
11299 foils
11300 \family default
11301  class 
11302 \family sans
11303 FoilTeX
11304 \family default
11305  installed, you'll probably have to use the default 
11306 \family sans
11307 slides
11308 \family default
11309  class, which isn't quite as good as 
11310 \family sans
11311 foils.
11312 \end_layout
11313
11314 \begin_layout Standard
11315 The 
11316 \family sans
11317 foils
11318 \family default
11319  class is designed for use with version
11320 \begin_inset space ~
11321 \end_inset
11322
11323 2.1 of the 
11324 \family sans
11325 foils.cls
11326 \family default
11327  \SpecialChar LaTeX
11328  class file which is now an integral part of \SpecialChar LaTeX2e
11329 .
11330 \end_layout
11331
11332 \begin_layout Subsection
11333 Getting Started
11334 \end_layout
11335
11336 \begin_layout Standard
11337 Obviously, to use this document class, you need to select 
11338 \family sans
11339 FoilTeX
11340 \family default
11341  from the 
11342 \family sans
11343 Class
11344 \family default
11345  entry in the 
11346 \family sans
11347 Document
11348 \begin_inset space ~
11349 \end_inset
11350
11351 Layout
11352 \family default
11353  dialog.
11354  There are some settings in the 
11355 \family sans
11356 Document
11357 \begin_inset space ~
11358 \end_inset
11359
11360 Layout
11361 \family default
11362  dialog that you should know about that are specific to this class:
11363 \end_layout
11364
11365 \begin_layout Itemize
11366 Don't change the options 
11367 \family sans
11368 Sides
11369 \family default
11370  and 
11371 \family sans
11372 Columns
11373 \family default
11374  on the 
11375 \family sans
11376 Document
11377 \begin_inset space ~
11378 \end_inset
11379
11380 Layout
11381 \family default
11382  dialog.
11383  They're ignored by the 
11384 \family sans
11385 foils
11386 \family default
11387  class.
11388 \end_layout
11389
11390 \begin_layout Itemize
11391 The default font size is 20
11392 \begin_inset space \thinspace{}
11393 \end_inset
11394
11395 pt with the other options being 17
11396 \begin_inset space \thinspace{}
11397 \end_inset
11398
11399 pt, 25
11400 \begin_inset space \thinspace{}
11401 \end_inset
11402
11403 pt and 30
11404 \begin_inset space \thinspace{}
11405 \end_inset
11406
11407 pt.
11408 \end_layout
11409
11410 \begin_layout Itemize
11411 The default font is 
11412 \family sans
11413 sans
11414 \family default
11415  
11416 \family sans
11417 serif
11418 \family default
11419  but all math equations are still typeset in the usual roman font.
11420 \end_layout
11421
11422 \begin_layout Itemize
11423
11424 \family sans
11425 Foil\SpecialChar TeX
11426
11427 \family default
11428  supports A4 and Letter paper sizes as well as a special size for working
11429  with 35
11430 \begin_inset space \thinspace{}
11431 \end_inset
11432
11433 mm slides.
11434  It doesn't support A5, B5, legal or executive paper sizes.
11435 \end_layout
11436
11437 \begin_layout Itemize
11438 Don't bother changing the 
11439 \family sans
11440 Float Placement
11441 \family default
11442  settings because they are ignored anyway.
11443  All floats appear where they are defined in the text.
11444 \end_layout
11445
11446 \begin_layout Itemize
11447 The 
11448 \family sans
11449 Pagestyle
11450 \family default
11451  setting behaves a bit differently for this class.
11452  
11453 \family sans
11454 Foil\SpecialChar TeX
11455
11456 \family default
11457  provides extensive footer and header capabilities including a user-defined
11458  logo.
11459  See section
11460 \begin_inset space ~
11461 \end_inset
11462
11463
11464 \begin_inset CommandInset ref
11465 LatexCommand ref
11466 reference "sec:foilfoot"
11467
11468 \end_inset
11469
11470  for more details.
11471  The title page is treated differently to all other pages in the document
11472  and is 
11473 \emph on
11474 always
11475 \emph default
11476  unnumbered and 
11477 \emph on
11478 always
11479 \emph default
11480  has the logo centered at the bottom of the page (if one is defined).
11481  The possible page style choices and what they do are as follows:
11482 \end_layout
11483
11484 \begin_deeper
11485 \begin_layout Labeling
11486 \labelwidthstring MMMMMMM
11487
11488 \family sans
11489 \series bold
11490 empty
11491 \family default
11492 \series default
11493  The final output contains no page numbers, or other headers or footers
11494  (except footnotes of course).
11495  
11496 \end_layout
11497
11498 \begin_layout Labeling
11499 \labelwidthstring MMMMMMM
11500
11501 \family sans
11502 \series bold
11503 plain
11504 \family default
11505 \series default
11506  The final output contains page numbers centered at the bottom of the page.
11507  No other headings or footers (other than footnotes).
11508 \end_layout
11509
11510 \begin_layout Labeling
11511 \labelwidthstring MMMMMMM
11512
11513 \series bold
11514 foilheadings
11515 \series default
11516  Page numbers in lower right corner.
11517  Additional headers and footers are also shown.
11518  This is also the default.
11519 \end_layout
11520
11521 \begin_layout Labeling
11522 \labelwidthstring MMMMMMM
11523
11524 \series bold
11525 fancy
11526 \series default
11527  Gives you access to the 
11528 \family sans
11529 fancyheadings
11530 \family default
11531  package although its use with 
11532 \family sans
11533 Foil\SpecialChar TeX
11534
11535 \family default
11536  is discouraged by the writer of the 
11537 \family sans
11538 Foil\SpecialChar TeX
11539
11540 \family default
11541  package because of some potential page layout clashes.
11542 \end_layout
11543
11544 \end_deeper
11545 \begin_layout Subsubsection
11546 Extra Options
11547 \end_layout
11548
11549 \begin_layout Standard
11550 The following options may be used in the extra class options in the 
11551 \family sans
11552 Document\SpecialChar menuseparator
11553 Settings
11554 \family default
11555  dialog.
11556 \end_layout
11557
11558 \begin_layout Labeling
11559 \labelwidthstring MMMMMMx
11560
11561 \series bold
11562 35mmSlide
11563 \series default
11564  This sets up the page layout for 7.33
11565 \begin_inset space \thinspace{}
11566 \end_inset
11567
11568 in by 11
11569 \begin_inset space \thinspace{}
11570 \end_inset
11571
11572 in paper, which is about the same aspect ratio as a 35
11573 \begin_inset space \thinspace{}
11574 \end_inset
11575
11576 mm slide, making it a bit easier to work with this medium.
11577 \end_layout
11578
11579 \begin_layout Labeling
11580 \labelwidthstring MMMMMMx
11581
11582 \series bold
11583 headrule
11584 \series default
11585  Places a rule across the page below the header on every page except the
11586  title page.
11587 \end_layout
11588
11589 \begin_layout Labeling
11590 \labelwidthstring MMMMMMx
11591
11592 \series bold
11593 footrule
11594 \series default
11595  Places a rule across the page above the footer on every page except the
11596  title page.
11597 \end_layout
11598
11599 \begin_layout Labeling
11600 \labelwidthstring MMMMMMx
11601
11602 \series bold
11603 dvips
11604 \series default
11605  This is automatically set each time you create a new 
11606 \family sans
11607 foils
11608 \family default
11609  document.
11610  This option tells 
11611 \family sans
11612 Foil\SpecialChar TeX
11613
11614 \family default
11615  to use the dvips driver to rotate those pages that are set as landscape
11616  foils.
11617 \end_layout
11618
11619 \begin_layout Labeling
11620 \labelwidthstring MMMMMMx
11621
11622 \series bold
11623 landscape
11624 \series default
11625  Simply changes the page dimensions to those of a landscape page but doesn't
11626  do any rotation.
11627  Thus if you use this option you need to use an external program to rotate
11628  each page or feed your paper through your printer as landscape.
11629  Note that this option effectively reverses the roles of the 
11630 \family sans
11631 Foilhead
11632 \family default
11633  and 
11634 \family sans
11635 Rotatefoilhead
11636 \family default
11637  environments (don't worry these are described in the next section).
11638 \end_layout
11639
11640 \begin_layout Labeling
11641 \labelwidthstring MMMMMMx
11642
11643 \series bold
11644 leqno
11645 \series default
11646  Equation numbers on the left.
11647 \end_layout
11648
11649 \begin_layout Labeling
11650 \labelwidthstring MMMMMMx
11651
11652 \series bold
11653 fleqn
11654 \series default
11655  Flush-left equations.
11656 \end_layout
11657
11658 \begin_layout Subsection
11659 Supported Environments
11660 \end_layout
11661
11662 \begin_layout Standard
11663 Most of the environments commonly supported in other classes are also supported
11664  by the 
11665 \family sans
11666 foils
11667 \family default
11668  class.
11669  There are several additional environments provided by 
11670 \family sans
11671 Foil\SpecialChar TeX
11672
11673 \family default
11674  as well as a couple added by \SpecialChar LyX
11675 .
11676  The following environments are shared with other classes:
11677 \end_layout
11678
11679 \begin_layout Standard
11680 \begin_inset Flex Multiple Columns
11681 status open
11682
11683 \begin_layout Itemize
11684
11685 \family sans
11686 Standard
11687 \end_layout
11688
11689 \begin_layout Itemize
11690
11691 \family sans
11692 Itemize
11693 \end_layout
11694
11695 \begin_layout Itemize
11696
11697 \family sans
11698 Enumerate
11699 \end_layout
11700
11701 \begin_layout Itemize
11702
11703 \family sans
11704 Description
11705 \end_layout
11706
11707 \begin_layout Itemize
11708
11709 \family sans
11710 List
11711 \end_layout
11712
11713 \begin_layout Itemize
11714
11715 \family sans
11716 \SpecialChar LyX
11717 -Code
11718 \end_layout
11719
11720 \begin_layout Itemize
11721
11722 \family sans
11723 Verse
11724 \end_layout
11725
11726 \begin_layout Itemize
11727
11728 \family sans
11729 Quote
11730 \end_layout
11731
11732 \begin_layout Itemize
11733
11734 \family sans
11735 Quotation
11736 \end_layout
11737
11738 \begin_layout Itemize
11739
11740 \family sans
11741 TitleAuthor
11742 \end_layout
11743
11744 \begin_layout Itemize
11745
11746 \family sans
11747 Date
11748 \end_layout
11749
11750 \begin_layout Itemize
11751
11752 \family sans
11753 Abstract
11754 \end_layout
11755
11756 \begin_layout Itemize
11757
11758 \family sans
11759 Bibliography
11760 \end_layout
11761
11762 \begin_layout Itemize
11763
11764 \family sans
11765 Address
11766 \end_layout
11767
11768 \begin_layout Itemize
11769
11770 \family sans
11771 RightAddress
11772 \end_layout
11773
11774 \end_inset
11775
11776
11777 \end_layout
11778
11779 \begin_layout Standard
11780 That is, all the major environments apart from the sectioning environments.
11781  Since foils are essentially self-contained sections, with a title and body,
11782  
11783 \family sans
11784 Foil\SpecialChar TeX
11785
11786 \family default
11787  provides specific commands for starting new foils and these are:
11788 \end_layout
11789
11790 \begin_layout Itemize
11791
11792 \family sans
11793 Foilhead
11794 \end_layout
11795
11796 \begin_layout Itemize
11797
11798 \family sans
11799 Rotatefoilhead
11800 \end_layout
11801
11802 \begin_layout Standard
11803 \SpecialChar LyX
11804  also provides slightly modified versions of these two environments called:
11805 \end_layout
11806
11807 \begin_layout Itemize
11808
11809 \family sans
11810 ShortFoilhead
11811 \end_layout
11812
11813 \begin_layout Itemize
11814
11815 \family sans
11816 ShortRotatefoilhead
11817 \end_layout
11818
11819 \begin_layout Standard
11820 and the differences will be explained in the next section.
11821 \end_layout
11822
11823 \begin_layout Standard
11824 Since foils are often used in presenting ideas or new theorems and such
11825  
11826 \family sans
11827 Foil\SpecialChar TeX
11828
11829 \family default
11830  also provides a comprehensive box of goodies for presenting them:
11831 \end_layout
11832
11833 \begin_layout Standard
11834 \begin_inset Flex Multiple Columns
11835 status open
11836
11837 \begin_layout Itemize
11838
11839 \family sans
11840 Theorem
11841 \end_layout
11842
11843 \begin_layout Itemize
11844
11845 \family sans
11846 Lemma
11847 \end_layout
11848
11849 \begin_layout Itemize
11850
11851 \family sans
11852 Corollary
11853 \end_layout
11854
11855 \begin_layout Itemize
11856
11857 \family sans
11858 Proposition
11859 \end_layout
11860
11861 \begin_layout Itemize
11862
11863 \family sans
11864 Definition
11865 \end_layout
11866
11867 \begin_layout Itemize
11868
11869 \family sans
11870 Proof
11871 \end_layout
11872
11873 \begin_layout Itemize
11874
11875 \family sans
11876 Theorem*
11877 \end_layout
11878
11879 \begin_layout Itemize
11880
11881 \family sans
11882 Lemma*
11883 \end_layout
11884
11885 \begin_layout Itemize
11886
11887 \family sans
11888 Corollary*
11889 \end_layout
11890
11891 \begin_layout Itemize
11892
11893 \family sans
11894 Proposition*
11895 \end_layout
11896
11897 \begin_layout Itemize
11898
11899 \family sans
11900 Definition*
11901 \end_layout
11902
11903 \end_inset
11904
11905
11906 \end_layout
11907
11908 \begin_layout Standard
11909 The starred versions are unnumbered while the unstarred versions are numbered.
11910  There are also two list environments added by \SpecialChar LyX
11911  and these are:
11912 \end_layout
11913
11914 \begin_layout Itemize
11915
11916 \family sans
11917 TickList
11918 \end_layout
11919
11920 \begin_layout Itemize
11921
11922 \family sans
11923 CrossList
11924 \end_layout
11925
11926 \begin_layout Standard
11927
11928 \family sans
11929 Foil\SpecialChar TeX
11930
11931 \family default
11932  provides some powerful header and footer capabilities that are best set
11933  in the preamble although they may be set at any point in a document.
11934  If you want to change these settings in your document the best place to
11935  do so is at the very top of a foil, i.
11936 \begin_inset space \thinspace{}
11937 \end_inset
11938
11939 e.
11940 \emph on
11941
11942 \begin_inset space \space{}
11943 \end_inset
11944
11945
11946 \emph default
11947 straight after the foilhead.
11948 \end_layout
11949
11950 \begin_layout Standard
11951 For this purpose, the following command styles are provided [
11952 \shape smallcaps
11953 Martin Vermeer
11954 \shape default
11955 ]:
11956 \end_layout
11957
11958 \begin_layout Standard
11959 \begin_inset Flex Multiple Columns
11960 status open
11961
11962 \begin_layout Itemize
11963
11964 \family sans
11965 My
11966 \begin_inset space ~
11967 \end_inset
11968
11969 Logo
11970 \end_layout
11971
11972 \begin_layout Itemize
11973
11974 \family sans
11975 Restriction
11976 \end_layout
11977
11978 \begin_layout Itemize
11979
11980 \family sans
11981 Right
11982 \begin_inset space ~
11983 \end_inset
11984
11985 Footer
11986 \end_layout
11987
11988 \begin_layout Itemize
11989
11990 \family sans
11991 Right
11992 \begin_inset space ~
11993 \end_inset
11994
11995 Header
11996 \end_layout
11997
11998 \begin_layout Itemize
11999
12000 \family sans
12001 Left
12002 \begin_inset space ~
12003 \end_inset
12004
12005 Header
12006 \end_layout
12007
12008 \begin_deeper
12009 \begin_layout Plain Layout
12010 \begin_inset space ~
12011 \end_inset
12012
12013
12014 \end_layout
12015
12016 \end_deeper
12017 \end_inset
12018
12019
12020 \end_layout
12021
12022 \begin_layout Standard
12023 There are also a few commands provided by 
12024 \family sans
12025 Foil\SpecialChar TeX
12026
12027 \family default
12028  that aren't directly supported by \SpecialChar LyX
12029  but I'll tell you what they do and how
12030  to use them in section
12031 \begin_inset space ~
12032 \end_inset
12033
12034
12035 \begin_inset CommandInset ref
12036 LatexCommand ref
12037 reference "sec:unsuppfoils"
12038
12039 \end_inset
12040
12041 .
12042 \end_layout
12043
12044 \begin_layout Subsection
12045 Building a Set of Foils
12046 \end_layout
12047
12048 \begin_layout Standard
12049 This section will give a simple introduction to using the different environments
12050  to build a set of foils.
12051  If you want to see an example set of foils, take a look at the 
12052 \family typewriter
12053 Foils.lyx
12054 \family default
12055  file you find in \SpecialChar LyX
12056 's 
12057 \family typewriter
12058 examples
12059 \family default
12060  folder.
12061 \end_layout
12062
12063 \begin_layout Subsubsection
12064 Give It a Title Page
12065 \end_layout
12066
12067 \begin_layout Standard
12068 Unlike other classes that provide 
12069 \family sans
12070 Title
12071 \family default
12072
12073 \family sans
12074 Author
12075 \family default
12076
12077 \family sans
12078 Date
12079 \family default
12080  and 
12081 \family sans
12082 Abstract
12083 \family default
12084  environments, 
12085 \family sans
12086 foils
12087 \family default
12088  creates the title on a page of its own.
12089  If you leave out the 
12090 \family sans
12091 Date
12092 \family default
12093  environment \SpecialChar LaTeX
12094  will substitute the current date (every time you regenerate
12095  the output).
12096 \end_layout
12097
12098 \begin_layout Subsubsection
12099 Start a New Foil
12100 \end_layout
12101
12102 \begin_layout Standard
12103 As I mentioned earlier, there are four ways of starting a new foil.
12104  For portrait foils you should use 
12105 \family sans
12106 Foilhead
12107 \family default
12108  or 
12109 \family sans
12110 ShortFoilhead.
12111
12112 \family default
12113  The difference between these two environments is the amount of space between
12114  the title of the foil (the foilhead) and the body of the foil.
12115 \end_layout
12116
12117 \begin_layout Standard
12118 Landscape foils are generated using the 
12119 \family sans
12120 Rotatefoilhead
12121 \family default
12122  and 
12123 \family sans
12124 ShortRotatefoilhead
12125 \family default
12126  environments.
12127  Again the only difference is the spacing between foilhead and body.
12128  Both of the short versions have 0.5
12129 \begin_inset space ~
12130 \end_inset
12131
12132 inches less separation between the foilhead and the body.
12133  
12134 \end_layout
12135
12136 \begin_layout Standard
12137 One problem with the support for landscape foils is the requirement that
12138  you have to use the 
12139 \family typewriter
12140 dvips
12141 \family default
12142  driver to generate the PostScript output otherwise the foils won't be rotated.
12143  It is possible to get landscape foils even if you haven't got the 
12144 \family typewriter
12145 dvips
12146 \family default
12147  driver provided you can feed your foils sideways through your printer ;-)
12148 \end_layout
12149
12150 \begin_layout Subsubsection
12151 Theorems, Lemmas, Proofs and more
12152 \end_layout
12153
12154 \begin_layout Standard
12155 You can't have two of the same type of these environments directly following
12156  each other.
12157  If you use a normal paragraph break, , you will just be extending the previous
12158  environment as if you had merged the two environments together.
12159  Rather than that, you need to insert a so-called separator.
12160  Please refer to the section entitled 
12161 \emph on
12162 Separate Nestings
12163 \emph default
12164  in the 
12165 \emph on
12166 User's Guide
12167 \emph default
12168 .
12169 \end_layout
12170
12171 \begin_layout Subsubsection
12172 Lists
12173 \end_layout
12174
12175 \begin_layout Standard
12176 You get all the commonly supported list styles found in other classes as
12177  well as two new ones.
12178  I'll only describe the new ones here.
12179  If you want to find out more about the other list environments check out
12180  the 
12181 \emph on
12182 User's Guide.
12183
12184 \emph default
12185  If you intend to use itemized lists you might also want to read about the
12186  
12187 \family sans
12188 Itemize
12189 \begin_inset space ~
12190 \end_inset
12191
12192 Bullet
12193 \begin_inset space ~
12194 \end_inset
12195
12196 Selection
12197 \family default
12198  dialog described above in section
12199 \begin_inset space ~
12200 \end_inset
12201
12202
12203 \begin_inset CommandInset ref
12204 LatexCommand ref
12205 reference "sec:bullet"
12206
12207 \end_inset
12208
12209 .
12210 \end_layout
12211
12212 \begin_layout Standard
12213 The two new list styles, 
12214 \family sans
12215 TickList
12216 \family default
12217  and 
12218 \family sans
12219 CrossList
12220 \family default
12221 , are designed to make it easier for you to create lists of do's and don'ts
12222  or right and wrong by providing dedicated environments that use a tick
12223  or a cross as the label of the list.
12224  These lists are in fact dedicated variants of the 
12225 \family sans
12226 Itemize
12227 \family default
12228  environment.
12229  They do however require that you have the 
12230 \family typewriter
12231 psnfss
12232 \family default
12233  packages installed.
12234 \end_layout
12235
12236 \begin_layout Subsubsection
12237 Figures and Tables
12238 \end_layout
12239
12240 \begin_layout Standard
12241
12242 \family sans
12243 Foil\SpecialChar TeX
12244
12245 \family default
12246  redefines the floating tables and figures so that they appear exactly where
12247  they are in the text rather than pushing them to the top of the page or
12248  to some user specified location.
12249  In fact if you change the float placement settings they are simply ignored.
12250 \end_layout
12251
12252 \begin_layout Subsubsection
12253 Page Headers and Footers
12254 \begin_inset CommandInset label
12255 LatexCommand label
12256 name "sec:foilfoot"
12257
12258 \end_inset
12259
12260
12261 \end_layout
12262
12263 \begin_layout Standard
12264
12265 \family sans
12266 My
12267 \begin_inset space ~
12268 \end_inset
12269
12270 Logo
12271 \family default
12272  and 
12273 \family sans
12274 Restriction
12275 \family default
12276  are two commands used to control the left-footer text string.
12277  The first is meant to allow you to include a graphic logo on your foils
12278  and defaults to 
12279 \begin_inset Quotes eld
12280 \end_inset
12281
12282 -Typeset by 
12283 \family sans
12284 Foil\SpecialChar TeX
12285
12286 \family default
12287 -
12288 \begin_inset Quotes erd
12289 \end_inset
12290
12291 .
12292  While the second is meant to provide a classification for the audience,
12293  
12294 \emph on
12295 e.
12296 \begin_inset space \thinspace{}
12297 \end_inset
12298
12299 g.
12300 \emph default
12301
12302 \begin_inset space \space{}
12303 \end_inset
12304
12305 Confidential.
12306  It is empty by default.
12307 \end_layout
12308
12309 \begin_layout Standard
12310 The remaining page corners can be filled by 
12311 \family sans
12312 Right
12313 \begin_inset space ~
12314 \end_inset
12315
12316 Footer
12317 \family default
12318  (which defaults to page numbers), 
12319 \family sans
12320 Right
12321 \begin_inset space ~
12322 \end_inset
12323
12324 Header
12325 \family default
12326  (top right) and 
12327 \family sans
12328 Left
12329 \begin_inset space ~
12330 \end_inset
12331
12332 Header
12333 \family default
12334  (top left).
12335 \end_layout
12336
12337 \begin_layout Subsection
12338 Unsupported 
12339 \family sans
12340 Foil\SpecialChar TeX
12341
12342 \family default
12343  Goodies
12344 \begin_inset CommandInset label
12345 LatexCommand label
12346 name "sec:unsuppfoils"
12347
12348 \end_inset
12349
12350
12351 \end_layout
12352
12353 \begin_layout Standard
12354 All the commands mentioned below need to be set in a 
12355 \family sans
12356 \SpecialChar LaTeX
12357
12358 \family default
12359  environment or as 
12360 \family sans
12361 \SpecialChar TeX
12362
12363 \family default
12364  within another environment.
12365 \end_layout
12366
12367 \begin_layout Subsubsection
12368 Lengths
12369 \end_layout
12370
12371 \begin_layout Standard
12372 All lengths are adjusted using the 
12373 \family typewriter
12374
12375 \backslash
12376 setlength{
12377 \family default
12378 \emph on
12379 lengthname
12380 \family typewriter
12381 \emph default
12382 }{
12383 \family default
12384 \emph on
12385 newlength
12386 \family typewriter
12387 \emph default
12388 }
12389 \family default
12390  command.
12391  Where 
12392 \emph on
12393 lengthname
12394 \emph default
12395  should be replaced by the name given to the length you want to change and
12396  
12397 \emph on
12398 newlength
12399 \emph default
12400  is the length value.
12401  All lengths should be specified in units of length such as inches (
12402 \family typewriter
12403 in
12404 \family default
12405 ), millimeters (
12406 \family typewriter
12407 mm
12408 \family default
12409 ) or points (
12410 \family typewriter
12411 pt
12412 \family default
12413 ) or relative to some document or font-based length such as 
12414 \family typewriter
12415
12416 \backslash
12417 textwidth
12418 \family default
12419 .
12420  
12421 \end_layout
12422
12423 \begin_layout Standard
12424 It's possible to change the spacing between a foilhead and the body of the
12425  foil by adjusting the length specified by 
12426 \family typewriter
12427
12428 \backslash
12429 foilheadskip
12430 \family default
12431 .
12432  For example, to make 
12433 \emph on
12434 all
12435 \emph default
12436  foilheads 0.5
12437 \begin_inset space \space{}
12438 \end_inset
12439
12440 in closer to their bodies put the following in the preamble: 
12441 \family typewriter
12442
12443 \backslash
12444 setlength{
12445 \backslash
12446 foilheadskip}{-0.5in}
12447 \end_layout
12448
12449 \begin_layout Standard
12450 The spacings around floats can be adjusted by setting these lengths:
12451 \end_layout
12452
12453 \begin_layout Labeling
12454 \labelwidthstring MMMMMMMMMMM
12455
12456 \family typewriter
12457
12458 \backslash
12459 abovefloatskip
12460 \family default
12461  Separation between the text and the top of the float
12462 \end_layout
12463
12464 \begin_layout Labeling
12465 \labelwidthstring MMMMMMMMMMM
12466
12467 \family typewriter
12468
12469 \backslash
12470 abovecaptionskip
12471 \family default
12472  Separation between the float and the caption
12473 \end_layout
12474
12475 \begin_layout Labeling
12476 \labelwidthstring MMMMMMMMMMM
12477
12478 \family typewriter
12479
12480 \backslash
12481 belowcaptionskip
12482 \family default
12483  Separation between the caption and the following text
12484 \end_layout
12485
12486 \begin_layout Labeling
12487 \labelwidthstring MMMMMMMMMMM
12488
12489 \family typewriter
12490
12491 \backslash
12492 captionwidth
12493 \family default
12494  You can make the captions narrower than the surrounding text by adjusting
12495  this length.
12496  Best done relative to 
12497 \family typewriter
12498
12499 \backslash
12500 textwidth
12501 \family default
12502 .
12503 \end_layout
12504
12505 \begin_layout Standard
12506 There are also several title page related lengths that you may find useful
12507  if you have a long title or several authors:
12508 \end_layout
12509
12510 \begin_layout Labeling
12511 \labelwidthstring MMMMMMMMMMM
12512
12513 \family typewriter
12514
12515 \backslash
12516 abovetitleskip
12517 \family default
12518  Separation from headers to 
12519 \family sans
12520 Title
12521 \end_layout
12522
12523 \begin_layout Labeling
12524 \labelwidthstring MMMMMMMMMMM
12525
12526 \family typewriter
12527
12528 \backslash
12529 titleauthorskip
12530 \family default
12531  between 
12532 \family sans
12533 Title
12534 \family default
12535  and 
12536 \family sans
12537 Author
12538 \family default
12539  environments
12540 \end_layout
12541
12542 \begin_layout Labeling
12543 \labelwidthstring MMMMMMMMMMM
12544
12545 \family typewriter
12546
12547 \backslash
12548 authorauthorskip
12549 \family default
12550  between multiple 
12551 \family sans
12552 Author
12553 \family default
12554  lines
12555 \end_layout
12556
12557 \begin_layout Labeling
12558 \labelwidthstring MMMMMMMMMMM
12559
12560 \family typewriter
12561
12562 \backslash
12563 authordateskip
12564 \family default
12565  between the 
12566 \family sans
12567 Author
12568 \family default
12569  and the 
12570 \family sans
12571 Date
12572 \end_layout
12573
12574 \begin_layout Labeling
12575 \labelwidthstring MMMMMMMMMMM
12576
12577 \family typewriter
12578
12579 \backslash
12580 dateabstractskip
12581 \family default
12582  between the 
12583 \family sans
12584 Date
12585 \family default
12586  and the 
12587 \family sans
12588 Abstract
12589 \end_layout
12590
12591 \begin_layout Standard
12592 The last length related command affects all the list environments.
12593  If you place 
12594 \family typewriter
12595
12596 \backslash
12597 zerolistvertdimens
12598 \family default
12599  
12600 \emph on
12601 inside
12602 \emph default
12603  a list environment then all the vertical spacing between the list items
12604  is removed.
12605  Note that this is a command not a length so it doesn't require 
12606 \family typewriter
12607
12608 \backslash
12609 setlength
12610 \family default
12611  like the stuff mentioned above.
12612 \end_layout
12613
12614 \begin_layout Subsubsection
12615 Headers and Footers
12616 \end_layout
12617
12618 \begin_layout Standard
12619 The 
12620 \family typewriter
12621
12622 \backslash
12623 LogoOn
12624 \family default
12625  and 
12626 \family typewriter
12627
12628 \backslash
12629 LogoOff
12630 \family default
12631  commands control whether the logo in the 
12632 \family sans
12633 MyLogo
12634 \family default
12635  definition appear on a given page.
12636  If you put 
12637 \family typewriter
12638
12639 \backslash
12640 LogoOff
12641 \family default
12642  in the preamble then none of the foils will have the logo on them.
12643  If you don't want the logo on a particular page place the 
12644 \family typewriter
12645
12646 \backslash
12647 LogoOff
12648 \family default
12649  directly after the foilhead of that page and the 
12650 \family typewriter
12651
12652 \backslash
12653 LogoOn
12654 \family default
12655  directly after the next foilhead.
12656 \end_layout
12657
12658 \begin_layout Standard
12659 If you decide to use the 
12660 \family sans
12661 fancy
12662 \family default
12663  page style setting in the 
12664 \family sans
12665 Document
12666 \begin_inset space ~
12667 \end_inset
12668
12669 Layout
12670 \family default
12671  dialog you should probably add 
12672 \family typewriter
12673
12674 \backslash
12675 let
12676 \backslash
12677 headwidth
12678 \backslash
12679 textwidth
12680 \family default
12681  to your preamble so headers and footers on landscape pages are correctly
12682  placed when rotated.
12683  This is due to some clashes between the page layouts provided by the 
12684 \family sans
12685 fancyheadings
12686 \family default
12687  package and the 
12688 \family sans
12689 foils
12690 \family default
12691  class.
12692 \end_layout
12693
12694 \begin_layout Section
12695 Hollywood (Hollywood spec scripts)
12696 \end_layout
12697
12698 \begin_layout Standard
12699 by 
12700 \shape smallcaps
12701 Garst Reese
12702 \end_layout
12703
12704 \begin_layout Subsection
12705 Introduction
12706 \end_layout
12707
12708 \begin_layout Standard
12709 Getting the format of a Hollywood script right is a 
12710 \begin_inset Quotes eld
12711 \end_inset
12712
12713 rite of passage.
12714 \begin_inset Quotes erd
12715 \end_inset
12716
12717  It is designed to make the readers focus on content and to be easy and
12718  familiar for the actors to read.
12719  Each page of a script should be one minute of film.
12720  Nothing goes in a script that you cannot see or hear on screen.
12721  The courier 12 pt font should be used throughout.
12722  No italics.
12723 \end_layout
12724
12725 \begin_layout Subsection
12726 Special problems
12727 \end_layout
12728
12729 \begin_layout Standard
12730 Speakers' lines should NEVER break in mid-sentence.
12731  If a speaker's lines continue over a page break, repeat the 
12732 \family sans
12733 Speaker
12734 \family default
12735  title followed by (Cont'd).
12736 \end_layout
12737
12738 \begin_layout Subsection
12739 Special features
12740 \end_layout
12741
12742 \begin_layout Standard
12743 Insert the 
12744 \family sans
12745 Speaker
12746 \family default
12747  names as labels then cross-reference the label to insert the name.
12748  The cross-reference dialog will show the current cast of characters.
12749  You can use this to insert the speaker name in narratives also.
12750 \end_layout
12751
12752 \begin_layout Subsection
12753 Paper size and Margins
12754 \end_layout
12755
12756 \begin_layout Standard
12757 USLetter, left 1.6in, right 0.75in, top 0.5in, bottom 0.75in
12758 \end_layout
12759
12760 \begin_layout Subsection
12761 Environments
12762 \end_layout
12763
12764 \begin_layout Standard
12765 The following environments are available.
12766  You can use hollywood.bind to get the bind keys shown at the right.
12767 \end_layout
12768
12769 \begin_layout Itemize
12770
12771 \family sans
12772 Standard
12773 \begin_inset Newline newline
12774 \end_inset
12775
12776
12777 \family default
12778 Used where nothing else works.
12779  Try to avoid it.
12780 \end_layout
12781
12782 \begin_layout Itemize
12783
12784 \family sans
12785 FADE_IN
12786 \family default
12787 :
12788 \begin_inset space \hfill{}
12789 \end_inset
12790
12791
12792 \family sans
12793 M-z S-I
12794 \family default
12795
12796 \begin_inset Newline newline
12797 \end_inset
12798
12799 Usually followed by something like 
12800 \begin_inset Quotes eld
12801 \end_inset
12802
12803 on Sally waking up.
12804 \begin_inset Quotes erd
12805 \end_inset
12806
12807
12808 \end_layout
12809
12810 \begin_layout Itemize
12811
12812 \family sans
12813 INT:
12814 \begin_inset space \hfill{}
12815 \end_inset
12816
12817 M-z i
12818 \begin_inset Newline newline
12819 \end_inset
12820
12821
12822 \family default
12823 Introduces a new INTERIOR camera set-up.
12824  Always followed by DAY or NIGHT, or something similar to define the lighting
12825  required.
12826  Everthing on this line in CAPS.
12827 \end_layout
12828
12829 \begin_layout Itemize
12830
12831 \family sans
12832 EXT:
12833 \begin_inset space \hfill{}
12834 \end_inset
12835
12836 M-z e
12837 \begin_inset Newline newline
12838 \end_inset
12839
12840
12841 \family default
12842 Introduces a new EXTERIOR camera set-up.
12843  Everthing on this line in CAPS.
12844 \end_layout
12845
12846 \begin_layout Itemize
12847
12848 \family sans
12849 Speaker
12850 \begin_inset space \hfill{}
12851 \end_inset
12852
12853 M-z s
12854 \begin_inset Newline newline
12855 \end_inset
12856
12857
12858 \family default
12859 The character speaking.
12860 \end_layout
12861
12862 \begin_layout Itemize
12863
12864 \family sans
12865 Parenthetical
12866 \begin_inset space \hfill{}
12867 \end_inset
12868
12869 M-z p
12870 \begin_inset Newline newline
12871 \end_inset
12872
12873
12874 \family default
12875 Instructions to the speaker.
12876  The () are automatically inserted.
12877 \end_layout
12878
12879 \begin_layout Itemize
12880
12881 \family sans
12882 Dialogue
12883 \begin_inset space \hfill{}
12884 \end_inset
12885
12886 M-z d
12887 \begin_inset Newline newline
12888 \end_inset
12889
12890
12891 \family default
12892 What the 
12893 \family sans
12894 Speaker
12895 \family default
12896  says.
12897 \end_layout
12898
12899 \begin_layout Itemize
12900
12901 \family sans
12902 Transition
12903 \begin_inset space \hfill{}
12904 \end_inset
12905
12906 M-z t
12907 \begin_inset Newline newline
12908 \end_inset
12909
12910
12911 \family default
12912 Camera movement instruction.
12913  e.
12914 \begin_inset space \thinspace{}
12915 \end_inset
12916
12917 g.
12918 \begin_inset space \space{}
12919 \end_inset
12920
12921 CUT TO:
12922 \end_layout
12923
12924 \begin_layout Itemize
12925
12926 \family sans
12927 FADE OUT:
12928 \begin_inset space \hfill{}
12929 \end_inset
12930
12931 M-z S-I
12932 \end_layout
12933
12934 \begin_layout Itemize
12935
12936 \family sans
12937 Author
12938 \begin_inset space \hfill{}
12939 \end_inset
12940
12941 M-z S-A
12942 \end_layout
12943
12944 \begin_layout Itemize
12945
12946 \family sans
12947 Title
12948 \begin_inset space \hfill{}
12949 \end_inset
12950
12951 M-z S-T
12952 \end_layout
12953
12954 \begin_layout Itemize
12955
12956 \family sans
12957 Right_Address
12958 \begin_inset space \hfill{}
12959 \end_inset
12960
12961 M-z r
12962 \end_layout
12963
12964 \begin_layout Subsection
12965 Script jargon
12966 \end_layout
12967
12968 \begin_layout Itemize
12969 (O.S) — off screen
12970 \end_layout
12971
12972 \begin_layout Itemize
12973 (V.0) — voice over
12974 \end_layout
12975
12976 \begin_layout Itemize
12977 b.
12978 \begin_inset space \thinspace{}
12979 \end_inset
12980
12981 g.
12982  — background
12983 \end_layout
12984
12985 \begin_layout Itemize
12986 C.U.
12987  — close-up
12988 \end_layout
12989
12990 \begin_layout Itemize
12991 PAN — camera movement
12992 \end_layout
12993
12994 \begin_layout Itemize
12995 INSERT — cut to close-up of
12996 \end_layout
12997
12998 \begin_layout Section
12999
13000 \change_deleted 564990737 1669755802
13001 ijmpc and ijmpd
13002 \end_layout
13003
13004 \begin_layout Standard
13005
13006 \change_deleted 564990737 1669755802
13007 by 
13008 \noun on
13009 Panayotis Papasotiriou
13010 \end_layout
13011
13012 \begin_layout Subsection
13013
13014 \change_deleted 564990737 1669755802
13015 Overview
13016 \end_layout
13017
13018 \begin_layout Standard
13019
13020 \change_deleted 564990737 1669755802
13021 The ijmpc package is a set of macros that facilitates electronic manuscript
13022  submission to the 
13023 \emph on
13024 International Journal of Modern Physics C
13025 \emph default
13026 .
13027  Similarly, the ijmpd package is for creating manuscripts to be submitted
13028  to the 
13029 \emph on
13030 International Journal of Modern Physics D
13031 \emph default
13032 .
13033  Both journals are published by World Scientific.
13034  The corresponding document classes are named 
13035 \family typewriter
13036 ws-ijmpc.cls
13037 \family default
13038  and 
13039 \family typewriter
13040 ws-ijmpd.cls
13041 \family default
13042 , respectively.
13043  These files, together with instructions for the authors, can be downloaded
13044  from the sites 
13045 \begin_inset Flex URL
13046 status collapsed
13047
13048 \begin_layout Plain Layout
13049
13050 http://www.worldscinet.com/ijmpc/mkt/guidelines.shtml
13051 \end_layout
13052
13053 \end_inset
13054
13055  and 
13056 \begin_inset Flex URL
13057 status collapsed
13058
13059 \begin_layout Plain Layout
13060
13061 http://www.worldscinet.com/ijmpd/mkt/guidelines.shtml
13062 \end_layout
13063
13064 \end_inset
13065
13066 .
13067  Both packages are modified versions of the standard 
13068 \begin_inset Quotes eld
13069 \end_inset
13070
13071 article
13072 \begin_inset Quotes erd
13073 \end_inset
13074
13075  package, and they are almost (but not exactly) identical.
13076  Most of their features are supported by \SpecialChar LyX
13077 .
13078  I have used \SpecialChar LyX
13079  successfully to write articles submitted to both journals
13080  without any problem.
13081 \end_layout
13082
13083 \begin_layout Subsection
13084
13085 \change_deleted 564990737 1669755802
13086 Writing a paper
13087 \end_layout
13088
13089 \begin_layout Standard
13090
13091 \change_deleted 564990737 1669755802
13092 As usual, the easiest way to write a paper is to start with a template.
13093  Click on 
13094 \family sans
13095 File\SpecialChar menuseparator
13096 New from
13097 \family default
13098  
13099 \family sans
13100 Template
13101 \family default
13102 , then choose the 
13103 \family typewriter
13104 ijmpc.lyx
13105 \family default
13106  or 
13107 \family typewriter
13108 ijmpd.lyx
13109 \family default
13110  template.
13111  This will give an (almost) empty document that includes the most common
13112  fields found in a manuscript.
13113  Simply overwrite the existing text (including the brackets, 
13114 \family typewriter
13115 <>
13116 \family default
13117 ) with your text.
13118  You should keep in mind the following remarks.
13119 \end_layout
13120
13121 \begin_layout Enumerate
13122
13123 \change_deleted 564990737 1669755802
13124 \SpecialChar LyX
13125  won't let you change the font size and the page style of the document,
13126  because such modifications are not allowed by both packages.
13127 \end_layout
13128
13129 \begin_layout Enumerate
13130
13131 \change_deleted 564990737 1669755802
13132 The language of the document should not be changed.
13133  Before previewing your paper, be sure that the babel package is not used.
13134  To do this, click on 
13135 \begin_inset Info
13136 type  "menu"
13137 arg   "dialog-show document"
13138 \end_inset
13139
13140  
13141 \family sans
13142 \SpecialChar menuseparator
13143 Language
13144 \family default
13145 , and select 
13146 \begin_inset Quotes eld
13147 \end_inset
13148
13149 None
13150 \begin_inset Quotes erd
13151 \end_inset
13152
13153  as 
13154 \family sans
13155 Language Package
13156 \family default
13157 .
13158 \end_layout
13159
13160 \begin_layout Enumerate
13161
13162 \change_deleted 564990737 1669755802
13163 The 
13164 \begin_inset Quotes eld
13165 \end_inset
13166
13167 Keywords
13168 \begin_inset Quotes erd
13169 \end_inset
13170
13171  style must be used to define keywords.
13172 \end_layout
13173
13174 \begin_layout Enumerate
13175
13176 \change_deleted 564990737 1669755802
13177 The ijmpc package provides a style named 
13178 \begin_inset Quotes eld
13179 \end_inset
13180
13181 Classification Codes
13182 \begin_inset Quotes erd
13183 \end_inset
13184
13185 , which can be used to define classification codes, such as PACS numbers.
13186  Note that this facility is not supported by the ijmpd package.
13187 \end_layout
13188
13189 \begin_layout Enumerate
13190
13191 \change_deleted 564990737 1669755802
13192 Several new environments are available: 
13193 \begin_inset Quotes eld
13194 \end_inset
13195
13196 Definition
13197 \begin_inset Quotes erd
13198 \end_inset
13199
13200
13201 \begin_inset Quotes eld
13202 \end_inset
13203
13204 Step
13205 \begin_inset Quotes erd
13206 \end_inset
13207
13208
13209 \begin_inset Quotes eld
13210 \end_inset
13211
13212 Example
13213 \begin_inset Quotes erd
13214 \end_inset
13215
13216
13217 \begin_inset Quotes eld
13218 \end_inset
13219
13220 Remark
13221 \begin_inset Quotes erd
13222 \end_inset
13223
13224
13225 \begin_inset Quotes eld
13226 \end_inset
13227
13228 Notation
13229 \begin_inset Quotes erd
13230 \end_inset
13231
13232
13233 \begin_inset Quotes eld
13234 \end_inset
13235
13236 Theorem
13237 \begin_inset Quotes erd
13238 \end_inset
13239
13240
13241 \begin_inset Quotes eld
13242 \end_inset
13243
13244 Proof
13245 \begin_inset Quotes erd
13246 \end_inset
13247
13248
13249 \begin_inset Quotes eld
13250 \end_inset
13251
13252 Corollary
13253 \begin_inset Quotes erd
13254 \end_inset
13255
13256
13257 \begin_inset Quotes eld
13258 \end_inset
13259
13260 Lemma
13261 \begin_inset Quotes erd
13262 \end_inset
13263
13264
13265 \begin_inset Quotes eld
13266 \end_inset
13267
13268 Proposition
13269 \begin_inset Quotes erd
13270 \end_inset
13271
13272
13273 \begin_inset Quotes eld
13274 \end_inset
13275
13276 Prop
13277 \begin_inset Quotes erd
13278 \end_inset
13279
13280
13281 \begin_inset Quotes eld
13282 \end_inset
13283
13284 Question
13285 \begin_inset Quotes erd
13286 \end_inset
13287
13288
13289 \begin_inset Quotes eld
13290 \end_inset
13291
13292 Claim
13293 \begin_inset Quotes erd
13294 \end_inset
13295
13296 , and 
13297 \begin_inset Quotes eld
13298 \end_inset
13299
13300 Conjecture
13301 \begin_inset Quotes erd
13302 \end_inset
13303
13304 .
13305  Their use is more or less obvious.
13306  \SpecialChar LyX
13307  supports all these environments; it will use the proper label, text style,
13308  and numbering scheme for each of them.
13309 \end_layout
13310
13311 \begin_layout Enumerate
13312
13313 \change_deleted 564990737 1669755802
13314 Both packages use basic citations; the natbib package should not be used.
13315  In \SpecialChar LyX
13316 , citation references are shown as usual; in the output, citations are
13317  shown as superscripts.
13318  If you want to use a citation as normal text, you should use the 
13319 \family typewriter
13320 refcite
13321 \family default
13322  command, e.
13323 \begin_inset space \thinspace{}
13324 \end_inset
13325
13326 g.
13327 \begin_inset space \space{}
13328 \end_inset
13329
13330
13331 \begin_inset Quotes eld
13332 \end_inset
13333
13334 See Ref.
13335 \begin_inset space \space{}
13336 \end_inset
13337
13338
13339 \family typewriter
13340
13341 \backslash
13342 refcite{key}
13343 \family default
13344
13345 \begin_inset Quotes erd
13346 \end_inset
13347
13348 .
13349 \end_layout
13350
13351 \begin_layout Enumerate
13352
13353 \change_deleted 564990737 1669755802
13354 There is no 
13355 \begin_inset Quotes eld
13356 \end_inset
13357
13358 Acknowledgments
13359 \begin_inset Quotes erd
13360 \end_inset
13361
13362  section in both packages.
13363  To put acknowledgments, just use the 
13364 \begin_inset Quotes eld
13365 \end_inset
13366
13367 Section*
13368 \begin_inset Quotes erd
13369 \end_inset
13370
13371  environment.
13372 \end_layout
13373
13374 \begin_layout Enumerate
13375
13376 \change_deleted 564990737 1669755802
13377 Appendices may be added to the paper, 
13378 \emph on
13379 after
13380 \emph default
13381  the Acknowledgments and 
13382 \shape italic
13383 before
13384 \shape default
13385  the References.
13386  \SpecialChar LyX
13387  provides a special environment, called 
13388 \begin_inset Quotes eld
13389 \end_inset
13390
13391 Appendices Section
13392 \begin_inset Quotes erd
13393 \end_inset
13394
13395  which marks the beginning of the appendices.
13396  This environment should be left blank; it just sends a \SpecialChar LaTeX
13397  command, but nothing
13398  is really printed.
13399  In \SpecialChar LyX
13400 , the word 
13401 \begin_inset Quotes eld
13402 \end_inset
13403
13404 Appendix
13405 \begin_inset Quotes erd
13406 \end_inset
13407
13408  is printed with blue letters, as a signal that all sections after that
13409  point are appendices.
13410  To write an appendix, use the 
13411 \begin_inset Quotes eld
13412 \end_inset
13413
13414 Appendix
13415 \begin_inset Quotes erd
13416 \end_inset
13417
13418  environment.
13419  \SpecialChar LyX
13420  will number each appendix with capital letters, as required by both journals.
13421  Note that 
13422 \begin_inset Quotes eld
13423 \end_inset
13424
13425 Appendices Section
13426 \begin_inset Quotes erd
13427 \end_inset
13428
13429  
13430 \emph on
13431 must
13432 \emph default
13433  be present before the first appendix; if not, all appendices will be numbered
13434  as normal sections in the output.
13435 \end_layout
13436
13437 \begin_layout Enumerate
13438
13439 \change_deleted 564990737 1669755802
13440 The ijmpc and the ijmpd packages use the 
13441 \family typewriter
13442 tbl
13443 \family default
13444  command to implement table captions.
13445  As a result, a table created by \SpecialChar LyX
13446  is printed correctly, but its caption
13447  is ignored.
13448  However, you can use some \SpecialChar TeX
13449  code to overcome this problem, so that captions
13450  are printed as expected.
13451  To do so, create a float table as usual, remove the caption, and replace
13452  it with the \SpecialChar TeX
13453  code 
13454 \family typewriter
13455
13456 \backslash
13457 tbl{
13458 \emph on
13459 your table caption
13460 \emph default
13461 }{
13462 \family default
13463  (sic); you must also the \SpecialChar TeX
13464  code 
13465 \family typewriter
13466 }
13467 \family default
13468  immediately after the tabular material.
13469  Study the example table included in the template files to see how this
13470  trick is implemented.
13471  Alternatively, If you need table captions, you should implement the whole
13472  table float in a 
13473 \family typewriter
13474 .tex
13475 \family default
13476  file, then include this file to the \SpecialChar LyX
13477  document (
13478 \family sans
13479 Insert\SpecialChar menuseparator
13480 File\SpecialChar menuseparator
13481 Child
13482 \begin_inset space ~
13483 \end_inset
13484
13485 Document
13486 \family default
13487 ).
13488  Details on how to create a table float can be found in the files 
13489 \family typewriter
13490 ws-ijmpc.tex
13491 \family default
13492  and 
13493 \family typewriter
13494 ws-ijmpd.tex
13495 \family default
13496 , included in the corresponding packages.
13497 \end_layout
13498
13499 \begin_layout Subsection
13500
13501 \change_deleted 564990737 1669755802
13502 Preparing a paper for submission
13503 \end_layout
13504
13505 \begin_layout Standard
13506
13507 \change_deleted 564990737 1669755802
13508 Before you submit your paper you must export the \SpecialChar LyX
13509  document as a \SpecialChar LaTeX
13510  file (
13511 \family sans
13512 File\SpecialChar menuseparator
13513 Export\SpecialChar menuseparator
13514 \SpecialChar LaTeX
13515
13516 \family default
13517 )
13518 \begin_inset Foot
13519 status open
13520
13521 \begin_layout Plain Layout
13522 Actually you have the choice between \SpecialChar LaTeX
13523  (plain) and pdflatex.
13524  If you intend to use pdflatex to prepare the paper, you should use the
13525  pdflatex option so that included graphics are converted to PDF format,
13526  ready for use by pdflatex.
13527 \end_layout
13528
13529 \end_inset
13530
13531 , then make the following changes to the resulting 
13532 \family typewriter
13533 .tex
13534 \family default
13535  file.
13536 \end_layout
13537
13538 \begin_layout Enumerate
13539
13540 \change_deleted 564990737 1669755802
13541 Remove the comment lines before the 
13542 \family typewriter
13543
13544 \backslash
13545 documentclass
13546 \family default
13547  command.
13548 \end_layout
13549
13550 \begin_layout Enumerate
13551
13552 \change_deleted 564990737 1669755802
13553 Remove everything between (and including) the 
13554 \family typewriter
13555
13556 \backslash
13557 makeatletter
13558 \family default
13559  and 
13560 \family typewriter
13561
13562 \backslash
13563 makeatother
13564 \family default
13565  commands, except for any commands you specifically put into the \SpecialChar LaTeX
13566  preamble.
13567 \end_layout
13568
13569 \begin_layout Standard
13570
13571 \change_deleted 564990737 1669755802
13572 The modified 
13573 \family typewriter
13574 .tex
13575 \family default
13576  file should be saved and processed through \SpecialChar LaTeX
13577  as many times as necessary.
13578  You may also want to check the resulting 
13579 \family typewriter
13580 .dvi
13581 \family default
13582  document.
13583 \change_unchanged
13584
13585 \end_layout
13586
13587 \begin_layout Section
13588
13589 \change_deleted 564990737 1669801478
13590 iopart
13591 \end_layout
13592
13593 \begin_layout Standard
13594
13595 \change_deleted 564990737 1669801478
13596 by 
13597 \noun on
13598 Uwe Stöhr
13599 \end_layout
13600
13601 \begin_layout Subsection
13602
13603 \change_deleted 564990737 1669801478
13604 Overview
13605 \end_layout
13606
13607 \begin_layout Standard
13608
13609 \change_deleted 564990737 1669801478
13610 The iopart package provides a document class to create electronic manuscript
13611  submission to the journals published by the Institute of Physics.
13612  Instructions for the authors how to create a paper using the iopart class
13613  can be downloaded together with the iopart package from the site 
13614 \begin_inset Flex URL
13615 status collapsed
13616
13617 \begin_layout Plain Layout
13618
13619 ftp://ftp.iop.org/pub/journals/latex2e
13620 \end_layout
13621
13622 \end_inset
13623
13624 .
13625 \end_layout
13626
13627 \begin_layout Subsection
13628
13629 \change_deleted 564990737 1669801478
13630 Writing a paper
13631 \end_layout
13632
13633 \begin_layout Standard
13634
13635 \change_deleted 564990737 1669801478
13636 The easiest way to write a paper is to start with the template 
13637 \emph on
13638 IOP-article.lyx
13639 \emph default
13640  that is available via 
13641 \family sans
13642 File\SpecialChar menuseparator
13643 New From Template
13644 \family default
13645  The template explains how to use the special text environments.
13646  Here are the most important advices:
13647 \end_layout
13648
13649 \begin_layout Itemize
13650
13651 \change_deleted 564990737 1669801478
13652 To be able to compile your document to a PDF, PS, or DVI, ensure that the
13653  no AMS packages are loaded in 
13654 \family sans
13655 Document\SpecialChar menuseparator
13656 Settings\SpecialChar menuseparator
13657 Math Options
13658 \family default
13659 !
13660 \end_layout
13661
13662 \begin_layout Itemize
13663
13664 \change_deleted 564990737 1669801478
13665
13666 \size normal
13667 The title environment defines the kind of your paper.
13668  So use one of the following environments for the title:
13669 \end_layout
13670
13671 \begin_deeper
13672 \begin_layout Itemize
13673
13674 \change_deleted 564990737 1669801478
13675
13676 \family sans
13677 \size normal
13678 Title
13679 \family default
13680  for a Paper
13681 \end_layout
13682
13683 \begin_layout Itemize
13684
13685 \change_deleted 564990737 1669801478
13686
13687 \family sans
13688 \size normal
13689 Review
13690 \family default
13691  for a Review
13692 \end_layout
13693
13694 \begin_layout Itemize
13695
13696 \change_deleted 564990737 1669801478
13697
13698 \family sans
13699 \size normal
13700 Topical
13701 \family default
13702  for a Topical review
13703 \end_layout
13704
13705 \begin_layout Itemize
13706
13707 \change_deleted 564990737 1669801478
13708
13709 \family sans
13710 \size normal
13711 Comment
13712 \family default
13713  for a Comment
13714 \end_layout
13715
13716 \begin_layout Itemize
13717
13718 \change_deleted 564990737 1669801478
13719
13720 \family sans
13721 \size normal
13722 Note
13723 \family default
13724  for a Note
13725 \end_layout
13726
13727 \begin_layout Itemize
13728
13729 \change_deleted 564990737 1669801478
13730
13731 \family sans
13732 \size normal
13733 Paper
13734 \family default
13735  for a Paper (same as Title)
13736 \end_layout
13737
13738 \begin_layout Itemize
13739
13740 \change_deleted 564990737 1669801478
13741
13742 \family sans
13743 \size normal
13744 Prelim
13745 \family default
13746  for a Preliminary communication
13747 \end_layout
13748
13749 \begin_layout Itemize
13750
13751 \change_deleted 564990737 1669801478
13752
13753 \family sans
13754 \size normal
13755 Rapid
13756 \family default
13757  for a Rapid communication
13758 \end_layout
13759
13760 \begin_layout Itemize
13761
13762 \change_deleted 564990737 1669801478
13763
13764 \family sans
13765 \size normal
13766 Letter
13767 \family default
13768  for a Letter to the editor
13769 \end_layout
13770
13771 \end_deeper
13772 \begin_layout Itemize
13773
13774 \change_deleted 564990737 1669801478
13775
13776 \size normal
13777 All title environments except of 
13778 \family sans
13779 Letter
13780 \family default
13781  can have an optional short title.
13782 \end_layout
13783
13784 \begin_layout Itemize
13785
13786 \change_deleted 564990737 1669801478
13787 There is a general title environment 
13788 \family sans
13789 Article
13790 \family default
13791  which is not directly supported by \SpecialChar LyX
13792 .
13793  This can be used as \SpecialChar TeX
13794  code when your document doesn't fit into one of the
13795  other title types.
13796 \end_layout
13797
13798 \begin_layout Standard
13799
13800 \change_deleted 564990737 1669801478
13801 For more informations like hints for special table and formula formatting,
13802  look at the IOP author guidelines.
13803 \change_unchanged
13804
13805 \end_layout
13806
13807 \begin_layout Section
13808 Kluwer
13809 \end_layout
13810
13811 \begin_layout Standard
13812 by 
13813 \noun on
13814 Panayotis Papasotiriou
13815 \end_layout
13816
13817 \begin_layout Subsection
13818 Overview
13819 \end_layout
13820
13821 \begin_layout Standard
13822 The Kluwer package is a set of macros produced by Kluwer Academic Publishers
13823  that facilitates electronic manuscript submission to the journals they
13824  publish.
13825  Most known of them (at least in my domain of interest) are 
13826 \emph on
13827 Astrophysics and Space Science
13828 \emph default
13829  and 
13830 \emph on
13831 Solar Physics
13832 \emph default
13833 , but there are many others (see a complete list at 
13834 \begin_inset Flex URL
13835 status collapsed
13836
13837 \begin_layout Plain Layout
13838
13839 http://www.wkap.nl/jrnllist.htm/JRNLHOME
13840 \end_layout
13841
13842 \end_inset
13843
13844 ).
13845  The Kluwer package may be downloaded from the site 
13846 \begin_inset Flex URL
13847 status collapsed
13848
13849 \begin_layout Plain Layout
13850
13851 http://www.wkap.nl/kaphtml.htm/STYLEFILES
13852 \end_layout
13853
13854 \end_inset
13855
13856 .
13857  A complete user guide is contained in that package (but it can also be
13858  downloaded separately).
13859 \end_layout
13860
13861 \begin_layout Standard
13862 \SpecialChar LyX
13863  supports many features of the package but not everything.
13864  However, the \SpecialChar TeX
13865  code needed is reduced to some 
13866 \begin_inset Quotes eld
13867 \end_inset
13868
13869 peculiar
13870 \begin_inset Quotes erd
13871 \end_inset
13872
13873  commands of the package (see
13874 \begin_inset space ~
13875 \end_inset
13876
13877
13878 \begin_inset CommandInset ref
13879 LatexCommand ref
13880 reference "subsec:kluwer_peculiarities"
13881
13882 \end_inset
13883
13884 ).
13885  I have recently used \SpecialChar LyX
13886  to write an article submitted to the 
13887 \emph on
13888 Astrophysics and Space Science
13889 \emph default
13890  without any problem.
13891 \end_layout
13892
13893 \begin_layout Subsection
13894 Writing a paper
13895 \end_layout
13896
13897 \begin_layout Standard
13898 The easiest way to write a paper is to start with the Kluwer template file.
13899  Click on 
13900 \family sans
13901 File\SpecialChar menuseparator
13902 New from
13903 \family default
13904  
13905 \family sans
13906 Template
13907 \family default
13908 , then choose the 
13909 \family typewriter
13910 kluwer.lyx
13911 \family default
13912  template.
13913  This will give an (almost) empty document that includes the most common
13914  fields found in a manuscript and a short description of their use.
13915  As in most templates, simply overwrite the existing text (including the
13916  brackets, 
13917 \family typewriter
13918 <>
13919 \family default
13920 ) with the correct information.
13921 \end_layout
13922
13923 \begin_layout Subsection
13924 Preparing a paper for submission
13925 \end_layout
13926
13927 \begin_layout Standard
13928 As in the AAS\SpecialChar TeX
13929  package, before you submit your paper to a journal you must
13930  
13931 \begin_inset Quotes eld
13932 \end_inset
13933
13934 postprocess
13935 \begin_inset Quotes erd
13936 \end_inset
13937
13938  it as follows.
13939 \end_layout
13940
13941 \begin_layout Enumerate
13942 Export your paper as a \SpecialChar LaTeX
13943  file.
13944  To do this, click on 
13945 \family sans
13946 File\SpecialChar menuseparator
13947 Export\SpecialChar menuseparator
13948 \SpecialChar LaTeX
13949
13950 \family default
13951 .
13952  
13953 \end_layout
13954
13955 \begin_layout Enumerate
13956 Edit the resulting 
13957 \family typewriter
13958 .tex
13959 \family default
13960  file with a text editor and make the following changes
13961 \end_layout
13962
13963 \begin_deeper
13964 \begin_layout Enumerate
13965 remove the comment lines before the 
13966 \family typewriter
13967
13968 \backslash
13969 documentclass
13970 \family default
13971  command,
13972 \end_layout
13973
13974 \begin_layout Enumerate
13975 remove everything between (and including) the 
13976 \family typewriter
13977
13978 \backslash
13979 makeatletter
13980 \family default
13981  and 
13982 \family typewriter
13983
13984 \backslash
13985 makeatother
13986 \family default
13987  commands, except for any commands you specifically put into the \SpecialChar LaTeX
13988  preamble.
13989 \end_layout
13990
13991 \begin_layout Standard
13992 Save the resulting 
13993 \family typewriter
13994 .tex
13995 \family default
13996  file.
13997 \end_layout
13998
13999 \end_deeper
14000 \begin_layout Enumerate
14001 Run the 
14002 \family typewriter
14003 .tex
14004 \family default
14005  file through \SpecialChar LaTeX
14006  as many times as necessary (usually up to three).
14007 \end_layout
14008
14009 \begin_layout Enumerate
14010 View the resulting 
14011 \family typewriter
14012 .dvi
14013 \family default
14014  document using, e.
14015 \begin_inset space \thinspace{}
14016 \end_inset
14017
14018 g.
14019 \begin_inset space \space{}
14020 \end_inset
14021
14022
14023 \family sans
14024 xdvi
14025 \family default
14026 , and check if everything is OK (it should, if you didn't make any mistake).
14027 \end_layout
14028
14029 \begin_layout Subsection
14030 \begin_inset Quotes eld
14031 \end_inset
14032
14033 Peculiarities
14034 \begin_inset Quotes erd
14035 \end_inset
14036
14037  of the Kluwer package
14038 \begin_inset CommandInset label
14039 LatexCommand label
14040 name "subsec:kluwer_peculiarities"
14041
14042 \end_inset
14043
14044
14045 \end_layout
14046
14047 \begin_layout Standard
14048 The Kluwer package has the following 
14049 \begin_inset Quotes eld
14050 \end_inset
14051
14052 peculiarities
14053 \begin_inset Quotes erd
14054 \end_inset
14055
14056 .
14057 \end_layout
14058
14059 \begin_layout Enumerate
14060 It is possible to write multiple articles in the same \SpecialChar LaTeX
14061  file
14062 \begin_inset Foot
14063 status collapsed
14064
14065 \begin_layout Plain Layout
14066 I can't imagine any good reason to do this.
14067 \end_layout
14068
14069 \end_inset
14070
14071 .
14072  Each article must be included in the environment 
14073 \begin_inset Quotes eld
14074 \end_inset
14075
14076 article
14077 \begin_inset Quotes erd
14078 \end_inset
14079
14080 .
14081  Unfortunately, this environment cannot be omitted, even if you write just
14082  one article.
14083  Therefore, each article starts with the command 
14084 \family typewriter
14085
14086 \backslash
14087 begin{article}
14088 \family default
14089  and, obviously, ends with the command 
14090 \family typewriter
14091
14092 \backslash
14093 end{article}
14094 \family default
14095 .
14096  Although this can be implemented in \SpecialChar LyX
14097 , I didn't included it, since it looks
14098  ugly and can confuse the novice user.
14099  Therefore, you need to enter them directly and mark them as \SpecialChar LaTeX
14100  code (the
14101  well-known 
14102 \begin_inset Quotes eld
14103 \end_inset
14104
14105 \SpecialChar TeX
14106  code
14107 \begin_inset Quotes erd
14108 \end_inset
14109
14110 ).
14111 \end_layout
14112
14113 \begin_layout Enumerate
14114 Information given at the beginning of the article (i.
14115 \begin_inset space \thinspace{}
14116 \end_inset
14117
14118 e.
14119 \begin_inset space \space{}
14120 \end_inset
14121
14122 title, subtitle, author, institution, running title, running author, abstract
14123  and keywords) must be included in an environment called 
14124 \begin_inset Quotes eld
14125 \end_inset
14126
14127 opening
14128 \begin_inset Quotes erd
14129 \end_inset
14130
14131 .
14132  This is not implemented in \SpecialChar LyX
14133 , so you must enter title, subtitle etc.
14134 \begin_inset space ~
14135 \end_inset
14136
14137 between two \SpecialChar TeX
14138  code lines (
14139 \family typewriter
14140
14141 \backslash
14142 begin{opening}
14143 \family default
14144  and 
14145 \family typewriter
14146
14147 \backslash
14148 end{opening}
14149 \family default
14150 ).
14151 \end_layout
14152
14153 \begin_layout Enumerate
14154 According to the user manual, the label of each bibliography item must be
14155  written as 
14156 \family typewriter
14157
14158 \backslash
14159 protect
14160 \backslash
14161 citeauthoryear{
14162 \family default
14163 \emph on
14164 author(s)
14165 \family typewriter
14166 \emph default
14167 }{
14168 \family default
14169 \emph on
14170 year
14171 \family typewriter
14172 \emph default
14173 }
14174 \family default
14175 .
14176 \end_layout
14177
14178 \begin_layout Standard
14179 The 
14180 \family typewriter
14181 kluwer.lyx
14182 \family default
14183  template takes care of all these 
14184 \begin_inset Quotes eld
14185 \end_inset
14186
14187 peculiarities
14188 \begin_inset Quotes erd
14189 \end_inset
14190
14191 .
14192  If you start a new paper using this template you don't need to do anything
14193  special.
14194  Just 
14195 \end_layout
14196
14197 \begin_layout Enumerate
14198 don't delete the \SpecialChar TeX
14199  code included in the template, and
14200 \end_layout
14201
14202 \begin_layout Enumerate
14203 copy the example bibliography item included in the template and modify it
14204  as necessary to enter new bibliography items.
14205 \end_layout
14206
14207 \begin_layout Section
14208 Koma-Script
14209 \end_layout
14210
14211 \begin_layout Standard
14212 by 
14213 \noun on
14214 Bernd Rellermeyer
14215 \end_layout
14216
14217 \begin_layout Subsection
14218 Overview
14219 \end_layout
14220
14221 \begin_layout Standard
14222 The \SpecialChar LyX
14223  document classes 
14224 \emph on
14225 article (koma-script)
14226 \emph default
14227
14228 \emph on
14229 report (koma-script)
14230 \emph default
14231
14232 \emph on
14233 book
14234 \emph default
14235  
14236 \emph on
14237 (koma-script)
14238 \emph default
14239 , and 
14240 \emph on
14241 letter
14242 \emph default
14243  
14244 \emph on
14245 (koma-script)
14246 \emph default
14247  correspond to the \SpecialChar LaTeX
14248  document classes 
14249 \family typewriter
14250 scrartcl.cls
14251 \family default
14252
14253 \family typewriter
14254 scrreprt.cls
14255 \family default
14256
14257 \family typewriter
14258 scrbook.cls
14259 \family default
14260 , and 
14261 \family typewriter
14262 scrlettr.cls
14263 \family default
14264 , resp.
14265 \begin_inset space ~
14266 \end_inset
14267
14268 of the Koma-Script family.
14269  They are replacements for the standard document classes 
14270 \family typewriter
14271 article.cls
14272 \family default
14273
14274 \family typewriter
14275 report.cls
14276 \family default
14277
14278 \family typewriter
14279 book.cls
14280 \family default
14281  and 
14282 \family typewriter
14283 letter.cls
14284 \family default
14285 , resp., and fit better to European typography conventions in a number of
14286  points.
14287 \end_layout
14288
14289 \begin_layout Itemize
14290 Standard character size is 11pt in 
14291 \emph on
14292 article (koma-script)
14293 \emph default
14294
14295 \emph on
14296 report (koma-script)
14297 \emph default
14298 , and 
14299 \emph on
14300 book (koma-script)
14301 \emph default
14302 , and 12pt in 
14303 \emph on
14304 letter (koma-script)
14305 \emph default
14306 .
14307 \end_layout
14308
14309 \begin_layout Itemize
14310 Headings, labels of the description environment, and a number of elements
14311  of the 
14312 \emph on
14313 letter (koma-script)
14314 \emph default
14315  document class are set in a bold sans serif font.
14316 \begin_inset Foot
14317 status collapsed
14318
14319 \begin_layout Plain Layout
14320 There is a big difference between the bold sans serif old cm fonts and new
14321  ec fonts, especially in the appearance of headings.
14322  In comparison, the ec bold sans serif fonts look a bit thin.
14323  Here the \SpecialChar LaTeX
14324  package 
14325 \family typewriter
14326 cmsd.sty by
14327 \family default
14328  
14329 \shape smallcaps
14330 Walter Schmidt
14331 \shape default
14332  helps to produce the 
14333 \begin_inset Quotes eld
14334 \end_inset
14335
14336 usual
14337 \begin_inset Quotes erd
14338 \end_inset
14339
14340  appearance when using the ec fonts.
14341 \end_layout
14342
14343 \end_inset
14344
14345  The numbering of chapter headings is made in the same way as the numbering
14346  of section headings, that is without the extra line 
14347 \begin_inset Quotes eld
14348 \end_inset
14349
14350 Chapter\SpecialChar ldots
14351
14352 \begin_inset Quotes erd
14353 \end_inset
14354
14355 .
14356  In addition, the appearance of the headings can be modified by using a
14357  number of options (in \SpecialChar LyX
14358  to be entered in the field 
14359 \family sans
14360 Extra
14361 \begin_inset space ~
14362 \end_inset
14363
14364 Options
14365 \family default
14366  of the dialog 
14367 \family sans
14368 Layout\SpecialChar menuseparator
14369 Document
14370 \family default
14371 ).
14372  
14373 \end_layout
14374
14375 \begin_layout Itemize
14376 The main means in the Koma-Script document classes to design the type area
14377  are the options 
14378 \family sans
14379 BCOR
14380 \family default
14381  and 
14382 \family sans
14383 DIV
14384 \family default
14385  (in \SpecialChar LyX
14386  to be entered in the extra class options field in the dialog 
14387 \family sans
14388 Document\SpecialChar menuseparator
14389 Settings
14390 \family default
14391 ).
14392  They make a clearer modification of page margins possible as do the options
14393  of the dialog 
14394 \family sans
14395 Document\SpecialChar menuseparator
14396 Settings
14397 \family default
14398 .
14399  
14400 \end_layout
14401
14402 \begin_layout Itemize
14403 The \SpecialChar LaTeX
14404  document classes of the Koma-Script family define a number of additional
14405  commands.
14406  Those part of it which makes sense in \SpecialChar LyX
14407  is implemented in corresponding
14408  paragraph types.
14409 \end_layout
14410
14411 \begin_layout Standard
14412 Detailed descriptions of the \SpecialChar LaTeX
14413  document classes of the Koma-Script family
14414  can be found in the Koma-Script documentation 
14415 \emph on
14416 scrguide
14417 \emph default
14418  (German) and 
14419 \emph on
14420 scrguien
14421 \emph default
14422  (English).
14423 \end_layout
14424
14425 \begin_layout Subsection
14426 article (koma-script), report (koma-script), and book (koma-script)
14427 \end_layout
14428
14429 \begin_layout Standard
14430 The document classes 
14431 \emph on
14432 article (koma-script)
14433 \emph default
14434
14435 \emph on
14436 report (koma-script)
14437 \emph default
14438 , and 
14439 \emph on
14440 book
14441 \emph default
14442  
14443 \emph on
14444 (koma-script)
14445 \emph default
14446  are implemented in the layout files 
14447 \family typewriter
14448 scrartcl.layout
14449 \family default
14450
14451 \family typewriter
14452 scrreprt.layout
14453 \family default
14454 , and 
14455 \family typewriter
14456 scrbook.layout
14457 \family default
14458 , resp.
14459  They contain all the paragraph types of the corresponding standard document
14460  classes 
14461 \emph on
14462 article
14463 \emph default
14464
14465 \emph on
14466 report
14467 \emph default
14468 , and 
14469 \emph on
14470 book
14471 \emph default
14472 , resp., partly modified, with the exception of the \SpecialChar LyX
14473  specific 
14474 \family sans
14475 List
14476 \family default
14477 -type, which is replaced by the new 
14478 \family sans
14479 Labeling
14480 \family default
14481 -type having the same functionality.
14482  Beside the 
14483 \family sans
14484 Labeling
14485 \family default
14486 -Type there is a number of new paragraph types added.
14487  They are 
14488 \emph on
14489 not
14490 \emph default
14491  part of 
14492 \emph on
14493 letter (koma-script)
14494 \emph default
14495 .
14496 \end_layout
14497
14498 \begin_layout Itemize
14499
14500 \family sans
14501 Addpart, Addchap
14502 \family default
14503
14504 \family sans
14505 Addsec
14506 \family default
14507 : are equivalents to 
14508 \family sans
14509 Part*, Chapter*
14510 \family default
14511  and 
14512 \family sans
14513 Section*
14514 \family default
14515 , resp., additionally inserting an entry in the table of contents.
14516  
14517 \family sans
14518 Addpart
14519 \family default
14520  and 
14521 \family sans
14522 Addchap
14523 \family default
14524  are not contained in 
14525 \emph on
14526 article (koma-script)
14527 \emph default
14528 .
14529 \end_layout
14530
14531 \begin_layout Itemize
14532
14533 \family sans
14534 Addchap*
14535 \family default
14536
14537 \family sans
14538 Addsec*
14539 \family default
14540 : behave exactly as 
14541 \family sans
14542 Addchap
14543 \family default
14544  and 
14545 \family sans
14546 Addsec
14547 \family default
14548 , resp., additionally clearing running heads.
14549  
14550 \family sans
14551 Addchap*
14552 \family default
14553  is not contained in 
14554 \emph on
14555 article (koma-script)
14556 \emph default
14557 .
14558 \begin_inset Foot
14559 status collapsed
14560
14561 \begin_layout Plain Layout
14562 There is also an 
14563 \family typewriter
14564
14565 \backslash
14566 addpart*
14567 \family default
14568  command in 
14569 \emph on
14570 book (koma-script)
14571 \emph default
14572  and in 
14573 \emph on
14574 report (koma-script)
14575 \emph default
14576 , but since this is identical to 
14577 \family sans
14578 Part*
14579 \family default
14580 , is has not been implemented in \SpecialChar LyX
14581 .
14582 \end_layout
14583
14584 \end_inset
14585
14586
14587 \end_layout
14588
14589 \begin_layout Itemize
14590
14591 \family sans
14592 Minisec
14593 \family default
14594 : generates a heading directly above the following paragraph in the standard
14595  character size without affecting the structure of the document.
14596 \end_layout
14597
14598 \begin_layout Itemize
14599
14600 \family sans
14601 Captionabove
14602 \family default
14603  and 
14604 \family sans
14605 Captionbelow
14606 \family default
14607  are special captions which respect the different space settings needed
14608  for captions placed above or below an element (if you follow strict typographic
14609  rules, you might want to place table captions always above the table).
14610  You can also use the class option 
14611 \family typewriter
14612 tablecaptionsabove
14613 \family default
14614 , which will switch 
14615 \family sans
14616 caption
14617 \family default
14618  to 
14619 \family sans
14620 captionabove
14621 \family default
14622  for tables and 
14623 \family sans
14624 captionbelow
14625 \family default
14626  for figures.
14627  You need at least Koma-Script version 2.8q to use this.
14628 \end_layout
14629
14630 \begin_layout Itemize
14631
14632 \family sans
14633 Dictum
14634 \family default
14635 : can be used to set a bonmot, e.
14636 \begin_inset space \thinspace{}
14637 \end_inset
14638
14639 g.
14640 \begin_inset space \space{}
14641 \end_inset
14642
14643 at the beginning of a chapter.
14644  If you use the optional argument (
14645 \family sans
14646 Insert\SpecialChar menuseparator
14647 Dictum
14648 \begin_inset space ~
14649 \end_inset
14650
14651 Author
14652 \family default
14653 ), you can insert the dictum's author there.
14654  Dictum and author are separated by a line.
14655  You need at least Koma-Script version 2.8q to use this.
14656  
14657 \family sans
14658 Dictum
14659 \family default
14660  is not contained in 
14661 \emph on
14662 article (koma-script)
14663 \emph default
14664 .
14665 \end_layout
14666
14667 \begin_layout Standard
14668 The following types, together with the standard types 
14669 \family sans
14670 Title
14671 \family default
14672
14673 \family sans
14674 Author
14675 \family default
14676 , and 
14677 \family sans
14678 Date
14679 \family default
14680 , form the title area of the document.
14681  They must be entered ahead of the first 
14682 \begin_inset Quotes eld
14683 \end_inset
14684
14685 ordinary
14686 \begin_inset Quotes erd
14687 \end_inset
14688
14689  paragraph.
14690 \begin_inset Foot
14691 status collapsed
14692
14693 \begin_layout Plain Layout
14694 The corresponding \SpecialChar LaTeX
14695  commands must appear before the 
14696 \family typewriter
14697
14698 \backslash
14699 maketitle
14700 \family default
14701  command.
14702 \end_layout
14703
14704 \end_inset
14705
14706  When such a type is used more than once, the latter usage overwrites the
14707  former one, that means, for every type only the latest usage is valid.
14708  The order of the different types however has, like 
14709 \family sans
14710 Title
14711 \family default
14712
14713 \family sans
14714 Author
14715 \family default
14716 , and 
14717 \family sans
14718 Date
14719 \family default
14720 , no effect on the appearance of the produced document.
14721 \end_layout
14722
14723 \begin_layout Itemize
14724
14725 \family sans
14726 Subject
14727 \family default
14728 : produces a centered paragraph above the ordinary title (
14729 \family sans
14730 Title
14731 \family default
14732
14733 \family sans
14734 Author
14735 \family default
14736
14737 \family sans
14738 Date
14739 \family default
14740 ) for the subject of the document.
14741 \end_layout
14742
14743 \begin_layout Itemize
14744
14745 \family sans
14746 Publishers
14747 \family default
14748 : produces a centered paragraph below the ordinary title (
14749 \family sans
14750 Title
14751 \family default
14752
14753 \family sans
14754 Author
14755 \family default
14756
14757 \family sans
14758 Date
14759 \family default
14760 ) for the publishers' name.
14761 \end_layout
14762
14763 \begin_layout Itemize
14764
14765 \family sans
14766 Dedication
14767 \family default
14768 : in 
14769 \emph on
14770 report (koma-script)
14771 \emph default
14772  and 
14773 \emph on
14774 book (koma-script)
14775 \emph default
14776  produces a centered paragraph on its own page behind the title page, or
14777  in 
14778 \emph on
14779 article (koma-script)
14780 \emph default
14781  produces a centered paragraph below the ordinary title (
14782 \family sans
14783 Title
14784 \family default
14785
14786 \family sans
14787 Author
14788 \family default
14789
14790 \family sans
14791 Date
14792 \family default
14793
14794 \family sans
14795 Publishers
14796 \family default
14797 ) for a dedication.
14798 \end_layout
14799
14800 \begin_layout Itemize
14801
14802 \family sans
14803 Titlehead
14804 \family default
14805 : produces a left aligned paragraph above the ordinary title (
14806 \family sans
14807 Title
14808 \family default
14809
14810 \family sans
14811 Author
14812 \family default
14813
14814 \family sans
14815 Date
14816 \family default
14817
14818 \family sans
14819 Subject
14820 \family default
14821 ) for a document`s head.
14822 \end_layout
14823
14824 \begin_layout Itemize
14825
14826 \family sans
14827 Uppertitleback
14828 \family default
14829 : produces in a double-sided print in 
14830 \emph on
14831 report (koma-script)
14832 \emph default
14833  and 
14834 \emph on
14835 book (koma-script)
14836 \emph default
14837  a left-aligned paragraph at the top of the title page`s back or has no
14838  effect in a single-sided print or in 
14839 \emph on
14840 article (koma-script)
14841 \emph default
14842 .
14843 \end_layout
14844
14845 \begin_layout Itemize
14846
14847 \family sans
14848 Lowertitleback
14849 \family default
14850 : produces in a double-sided print in 
14851 \emph on
14852 report (koma-script)
14853 \emph default
14854  and 
14855 \emph on
14856 book (koma-script)
14857 \emph default
14858  a left-aligned paragraph at the bottom of the title page`s back or has
14859  no effect in a single-sided print or in 
14860 \emph on
14861 article (koma-script)
14862 \emph default
14863 .
14864 \end_layout
14865
14866 \begin_layout Itemize
14867
14868 \family sans
14869 Extratitle
14870 \family default
14871 : produces a special 
14872 \begin_inset Quotes eld
14873 \end_inset
14874
14875 dirty
14876 \begin_inset Quotes erd
14877 \end_inset
14878
14879  page ahead of the actual document containing a paragraph without special
14880  formatting.
14881 \end_layout
14882
14883 \begin_layout Standard
14884 The layout files for the document classes 
14885 \emph on
14886 article (koma-script)
14887 \emph default
14888
14889 \emph on
14890 report (koma-script)
14891 \emph default
14892 , and 
14893 \emph on
14894 book (koma-script)
14895 \emph default
14896  do include the file 
14897 \family typewriter
14898 scrmacros.inc
14899 \family default
14900 .
14901  This is thought of as a place to define your own types.
14902  Copy scrmacros
14903 \family typewriter
14904 .inc
14905 \family default
14906  in your personal layout directory and edit the file!
14907 \end_layout
14908
14909 \begin_layout Subsection
14910 letter (koma-script)
14911 \end_layout
14912
14913 \begin_layout Description
14914 Note: This section discusses the obsolete 
14915 \family sans
14916 KOMA-Script-Letter (v.
14917 \begin_inset space ~
14918 \end_inset
14919
14920 1)
14921 \family default
14922 , which is not even included anymore in recent KOMA releases.
14923  Please refer to the next section for the current KOMA-Script-Letter class
14924  (v.
14925 \begin_inset space ~
14926 \end_inset
14927
14928 2)!
14929 \end_layout
14930
14931 \begin_layout Standard
14932 \noindent
14933 The document class 
14934 \emph on
14935 letter (koma-script)
14936 \emph default
14937  is implemented in the layout file 
14938 \family typewriter
14939 scrlettr.layout
14940 \family default
14941 .
14942  It contains all the paragraph types of the corresponding standard document
14943  class 
14944 \emph on
14945 letter
14946 \emph default
14947 , partly modified, with the exception of the \SpecialChar LyX
14948  specific types 
14949 \family sans
14950 \SpecialChar LyX
14951 -Code
14952 \family default
14953  and 
14954 \family sans
14955 Comment
14956 \family default
14957  and the 
14958 \family sans
14959 List
14960 \family default
14961  type, which is replaced by the new 
14962 \family sans
14963 Labeling
14964 \family default
14965  type.
14966  In addition, it contains, in contrast to the standard document class, the
14967  standard types 
14968 \family sans
14969 \SpecialChar LaTeX
14970
14971 \family default
14972
14973 \family sans
14974 Quotation
14975 \family default
14976
14977 \family sans
14978 Quote
14979 \family default
14980 , and 
14981 \family sans
14982 Verse
14983 \family default
14984 .
14985  Furthermore, there are a number of new letter specific types.
14986 \end_layout
14987
14988 \begin_layout Standard
14989 The appearance of the letter produced by this document class can be controlled
14990  by a number of \SpecialChar LaTeX
14991  commands, which you can put in the \SpecialChar LaTeX
14992  preamble.
14993 \begin_inset Foot
14994 status collapsed
14995
14996 \begin_layout Plain Layout
14997 For example, the standard appearance of the letter`s heading, consisting
14998  of name and address, is quite self-willed.
14999  An 
15000 \begin_inset Quotes eld
15001 \end_inset
15002
15003 ordinary
15004 \begin_inset Quotes erd
15005 \end_inset
15006
15007  heading is produced by the following \SpecialChar LaTeX
15008  commands in the preamble:
15009 \end_layout
15010
15011 \begin_layout LyX-Code
15012
15013 \backslash
15014 firsthead{
15015 \backslash
15016 parbox[b]{
15017 \backslash
15018 textwidth}
15019 \end_layout
15020
15021 \begin_layout LyX-Code
15022   {
15023 \backslash
15024 ignorespaces 
15025 \backslash
15026 fromname
15027 \backslash
15028
15029 \backslash
15030  
15031 \backslash
15032 ignorespaces 
15033 \backslash
15034 fromaddress}} 
15035 \end_layout
15036
15037 \begin_layout LyX-Code
15038
15039 \backslash
15040 nexthead{
15041 \backslash
15042 parbox[b]{
15043 \backslash
15044 textwidth}
15045 \end_layout
15046
15047 \begin_layout LyX-Code
15048   {
15049 \backslash
15050 ignorespaces 
15051 \backslash
15052 fromname 
15053 \backslash
15054 hfill 
15055 \backslash
15056 ignorespaces 
15057 \backslash
15058 pagename
15059 \backslash
15060  
15061 \backslash
15062 thepage}}
15063 \end_layout
15064
15065 \end_inset
15066
15067  A detailed German description of such \SpecialChar LaTeX
15068  commands can be found in the Koma-Script
15069  documentation 
15070 \emph on
15071 scrguide
15072 \emph default
15073 .
15074  With it, the letter's author can produce his personal letter layout.
15075 \end_layout
15076
15077 \begin_layout Standard
15078 The types 
15079 \family sans
15080 Letter
15081 \family default
15082  and 
15083 \family sans
15084 Opening
15085 \family default
15086  define the beginning of the letter and must be used in every letter.
15087  To emphasize them in the \SpecialChar LyX
15088  document class, they are marked with the letter
15089  
15090 \shape italic
15091 L
15092 \shape default
15093  or 
15094 \shape italic
15095 O
15096 \shape default
15097 , resp.
15098 \begin_inset space ~
15099 \end_inset
15100
15101 in the left margin.
15102  It is possible to write any number of letters in one file.
15103  An 
15104 \family sans
15105 Opening
15106 \family default
15107  type produces a new letter using the same addressee and a 
15108 \family sans
15109 Letter
15110 \family default
15111  type produces a new addressee.
15112  The types 
15113 \family sans
15114 Closing
15115 \family default
15116
15117 \family sans
15118 PS
15119 \family default
15120
15121 \family sans
15122 CC
15123 \family default
15124 , and 
15125 \family sans
15126 Encl
15127 \family default
15128  are ordinary paragraph types and can also be used several times in one
15129  and the same letter.
15130 \end_layout
15131
15132 \begin_layout Itemize
15133
15134 \family sans
15135 Letter
15136 \family default
15137 : produces a paragraph for the addressee and implicitly defines the beginning
15138  of the letter.
15139 \end_layout
15140
15141 \begin_layout Itemize
15142
15143 \family sans
15144 Opening
15145 \family default
15146 : produces a paragraph for the form of address and implicitly produces a
15147  new letter.
15148 \end_layout
15149
15150 \begin_layout Itemize
15151
15152 \family sans
15153 Closing
15154 \family default
15155 : produces a paragraph for a close.
15156 \end_layout
15157
15158 \begin_layout Itemize
15159
15160 \family sans
15161 PS
15162 \family default
15163 : produces a paragraph for a postscript.
15164 \end_layout
15165
15166 \begin_layout Itemize
15167
15168 \family sans
15169 CC
15170 \family default
15171 : produces a paragraph for a distribution list.
15172 \end_layout
15173
15174 \begin_layout Itemize
15175
15176 \family sans
15177 Encl
15178 \family default
15179 : produces a paragraph for enclosures.
15180 \end_layout
15181
15182 \begin_layout Standard
15183 The types 
15184 \family sans
15185 Name
15186 \family default
15187
15188 \family sans
15189 Signature
15190 \family default
15191
15192 \family sans
15193 Address
15194 \family default
15195
15196 \family sans
15197 Telephone
15198 \family default
15199
15200 \family sans
15201 Place
15202 \family default
15203
15204 \family sans
15205 Backaddress
15206 \family default
15207
15208 \family sans
15209 Specialmail
15210 \family default
15211
15212 \family sans
15213 Location
15214 \family default
15215
15216 \family sans
15217 Title
15218 \family default
15219 , and 
15220 \family sans
15221 Subject
15222 \family default
15223  are input types provided with a label to enter information, which will
15224  be processed by the document class.
15225 \begin_inset Foot
15226 status collapsed
15227
15228 \begin_layout Plain Layout
15229 It could be seen as a matter of inconsequence, that the types 
15230 \family sans
15231 Letter
15232 \family default
15233  and 
15234 \family sans
15235 Opening
15236 \family default
15237  described above are not such input types as well.
15238  Because of the special meaning of those types, however, I have implemented
15239  them as ordinary paragraph types with a one letter mark in the left margin.
15240  Moreover, it would affect my feeling of symmetry, if the 
15241 \family sans
15242 Opening
15243 \family default
15244  type and the 
15245 \family sans
15246 Closing
15247 \family default
15248  type had such a serious different appearance.
15249 \end_layout
15250
15251 \end_inset
15252
15253  The types must be used ahead of the corresponding 
15254 \family sans
15255 Opening
15256 \family default
15257  type.
15258 \end_layout
15259
15260 \begin_layout Standard
15261 An implementation of these types in a WYSIWYG fashion does not seem to make
15262  sense, because the real appearance of the produced letter does not only
15263  depend on the usage of the particular type, but also on other factors.
15264  For example, a signature entered in the 
15265 \family sans
15266 Signature
15267 \family default
15268  type will in the standard behavior appear in the produced letter only,
15269  when in the same letter also a 
15270 \family sans
15271 Closing
15272 \family default
15273  type is used.
15274  The entered value of the 
15275 \family sans
15276 Telephone
15277 \family default
15278  type will in the standard behavior not appear in the produced letter at
15279  all.
15280  The possibility to design the letter`s heading freely is already indicated
15281  in a footnote above.
15282 \end_layout
15283
15284 \begin_layout Standard
15285 The input types can also be used as empty paragraphs.
15286  This makes sense e.
15287 \begin_inset space \thinspace{}
15288 \end_inset
15289
15290 g.
15291 \begin_inset space \space{}
15292 \end_inset
15293
15294 for the 
15295 \family sans
15296 Signature
15297 \family default
15298  type.
15299  If the 
15300 \family sans
15301 Signature
15302 \family default
15303  type is not used at all, in the standard behavior the value of the 
15304 \family sans
15305 Name
15306 \family default
15307  type is used as signature, whereas if an empty 
15308 \family sans
15309 Signature
15310 \family default
15311  type is used, no signature value is defined.
15312 \end_layout
15313
15314 \begin_layout Standard
15315 By using the input types it is possible to write a letter template, containing
15316  filled input types with your personal dates (name, address, etc.) and empty
15317  input types for other dates you want to enter.
15318 \end_layout
15319
15320 \begin_layout Itemize
15321
15322 \family sans
15323 Name
15324 \family default
15325 : sender's name, in the standard behavior appears as a centered paragraph
15326  in small caps in the letter`s heading.
15327 \end_layout
15328
15329 \begin_layout Itemize
15330
15331 \family sans
15332 Signature
15333 \family default
15334 : sender's signature, in the standard behavior appears below the 
15335 \family sans
15336 Closing
15337 \family default
15338  type.
15339  If no 
15340 \family sans
15341 Signature
15342 \family default
15343  type is used, the value of the 
15344 \family sans
15345 Name
15346 \family default
15347  type appears instead.
15348 \end_layout
15349
15350 \begin_layout Itemize
15351
15352 \family sans
15353 Address
15354 \family default
15355 : sender's address, in the standard behavior appears in a centered paragraph
15356  in the letter`s heading below the sender's name.
15357 \end_layout
15358
15359 \begin_layout Itemize
15360
15361 \family sans
15362 Telephone
15363 \family default
15364 : sender's telephone number, in the standard behavior only sets the \SpecialChar LaTeX
15365  variable
15366  
15367 \family typewriter
15368
15369 \backslash
15370 telephonenum
15371 \family default
15372 .
15373 \end_layout
15374
15375 \begin_layout Itemize
15376
15377 \family sans
15378 Place
15379 \family default
15380 : place of the letter`s making.
15381 \end_layout
15382
15383 \begin_layout Itemize
15384
15385 \family sans
15386 Date
15387 \family default
15388 : date of the letter`s making.
15389  
15390 \family sans
15391 Place
15392 \family default
15393  and 
15394 \family sans
15395 Date
15396 \family default
15397 , in the standard behavior, produce the place and the date in a right-aligned
15398  line below the addressee's field.
15399  If an empty 
15400 \family sans
15401 Date
15402 \family default
15403  type is used, neither place nor date appear, independent of the value of
15404  the 
15405 \family sans
15406 Place
15407 \family default
15408  type.
15409  If no 
15410 \family sans
15411 Date
15412 \family default
15413  type is used, the date of the letter `s production is used.
15414 \end_layout
15415
15416 \begin_layout Itemize
15417
15418 \family sans
15419 Backaddress
15420 \family default
15421 : sender`s back address, in the standard behavior appears above the addressee's
15422  field in a small sans serif font.
15423 \end_layout
15424
15425 \begin_layout Itemize
15426
15427 \family sans
15428 Specialmail
15429 \family default
15430 : special mail information, in the standard behavior appears underlined
15431  above the addressee's field below the back address.
15432 \end_layout
15433
15434 \begin_layout Itemize
15435
15436 \family sans
15437 Location
15438 \family default
15439 : additional information, in the standard behavior appears on right side
15440  below the addressee`s field.
15441 \end_layout
15442
15443 \begin_layout Itemize
15444
15445 \family sans
15446 Title
15447 \family default
15448 : the letter's title, in the standard behavior appears in a big, bold, sans
15449  serif font above the subject.
15450 \end_layout
15451
15452 \begin_layout Itemize
15453
15454 \family sans
15455 Subject
15456 \family default
15457 : the letter's subject, in the standard behavior appears in a bold font
15458  above the 
15459 \family sans
15460 Opening
15461 \family default
15462  paragraph.
15463 \end_layout
15464
15465 \begin_layout Standard
15466 The types 
15467 \family sans
15468 Yourref
15469 \family default
15470
15471 \family sans
15472 Yourmail
15473 \family default
15474
15475 \family sans
15476 Myref
15477 \family default
15478
15479 \family sans
15480 Customer
15481 \family default
15482 , and 
15483 \family sans
15484 Invoice
15485 \family default
15486  produce a business letter like line above the 
15487 \family sans
15488 Title
15489 \family default
15490  line containing the fields 
15491 \begin_inset Quotes eld
15492 \end_inset
15493
15494 Your ref.
15495 \begin_inset Quotes erd
15496 \end_inset
15497
15498
15499 \begin_inset Quotes eld
15500 \end_inset
15501
15502 Your letter of
15503 \begin_inset Quotes erd
15504 \end_inset
15505
15506
15507 \begin_inset Quotes eld
15508 \end_inset
15509
15510 Our ref.
15511 \begin_inset Quotes erd
15512 \end_inset
15513
15514
15515 \begin_inset Quotes eld
15516 \end_inset
15517
15518 Customer no.
15519 \begin_inset Quotes erd
15520 \end_inset
15521
15522
15523 \begin_inset Quotes eld
15524 \end_inset
15525
15526 Invoice no.
15527 \begin_inset Quotes erd
15528 \end_inset
15529
15530 , and 
15531 \begin_inset Quotes eld
15532 \end_inset
15533
15534 Date
15535 \begin_inset Quotes erd
15536 \end_inset
15537
15538 .
15539  For the date field, the value of the 
15540 \family sans
15541 Date
15542 \family default
15543  type is used.
15544  If one of these 
15545 \begin_inset Quotes eld
15546 \end_inset
15547
15548 business letter types
15549 \begin_inset Quotes erd
15550 \end_inset
15551
15552  is used, the value of the 
15553 \family sans
15554 Place
15555 \family default
15556  type however does not appear, but only the \SpecialChar LaTeX
15557  variable 
15558 \family typewriter
15559
15560 \backslash
15561 fromplace
15562 \family default
15563  is set.
15564  The ordinary output of place and date in a right-aligned line below the
15565  addressee`s field is suppressed.
15566  The types are implemented as input types provided with a label and must
15567  be used ahead of the corresponding 
15568 \family sans
15569 Opening
15570 \family default
15571  type.
15572 \end_layout
15573
15574 \begin_layout Itemize
15575
15576 \family sans
15577 Yourref
15578 \family default
15579 : Your ref.
15580 \end_layout
15581
15582 \begin_layout Itemize
15583
15584 \family sans
15585 Yourmail
15586 \family default
15587 : Your letter of.
15588 \end_layout
15589
15590 \begin_layout Itemize
15591
15592 \family sans
15593 Myref
15594 \family default
15595 : Our ref.
15596 \end_layout
15597
15598 \begin_layout Itemize
15599
15600 \family sans
15601 Customer
15602 \family default
15603 : Customer no.
15604 \end_layout
15605
15606 \begin_layout Itemize
15607
15608 \family sans
15609 Invoice
15610 \family default
15611 : Invoice no.
15612 \end_layout
15613
15614 \begin_layout Subsection
15615 The new letter class: letter (koma-script v.2)
15616 \end_layout
15617
15618 \begin_layout Standard
15619 by 
15620 \noun on
15621 Jürgen Spitzmüller
15622 \end_layout
15623
15624 \begin_layout Standard
15625 \begin_inset VSpace medskip
15626 \end_inset
15627
15628
15629 \end_layout
15630
15631 \begin_layout Standard
15632 \noindent
15633 Koma-Script version 2.8 has introduced a new letter class 
15634 \family typewriter
15635 scrlttr2
15636 \family default
15637  which supersedes the now unsupported 
15638 \family typewriter
15639 scrlettr
15640 \family default
15641 .
15642  It has — on the \SpecialChar LaTeX
15643  side — a completely new interface and is not compatible
15644  with the old class.
15645  Therefore, \SpecialChar LyX
15646  supports both, though it is recommended you use the new class.
15647 \end_layout
15648
15649 \begin_layout Standard
15650 This class covers the same functionality as 
15651 \emph on
15652 letter (koma-script),
15653 \emph default
15654  and a few more.
15655  The basic items are 
15656 \family sans
15657 Address
15658 \family default
15659  (receiver's address, same as 
15660 \family sans
15661 Letter
15662 \family default
15663  in the old layout), 
15664 \family sans
15665 Opening
15666 \family default
15667 , and 
15668 \family sans
15669 Closing
15670 \family default
15671 .
15672  
15673 \family sans
15674 NextAddress
15675 \family default
15676  will start a new letter (i.
15677 \begin_inset space \thinspace{}
15678 \end_inset
15679
15680 e.
15681 \begin_inset space \space{}
15682 \end_inset
15683
15684 you can write several letters per document).
15685  New elements are sender's 
15686 \family sans
15687 E-Mail
15688 \family default
15689
15690 \family sans
15691 URL
15692 \family default
15693
15694 \family sans
15695 Fax
15696 \family default
15697
15698 \family sans
15699 Bank
15700 \family default
15701  and the possibility to use a 
15702 \family sans
15703 Logo
15704 \family default
15705  (via 
15706 \family sans
15707 Insert\SpecialChar menuseparator
15708 Graphics
15709 \family default
15710 ) in the header.
15711 \end_layout
15712
15713 \begin_layout Standard
15714 The biggest improvement is, though, that the letter's layout is configurable
15715  to meet almost any needs.
15716  This can be done via the preamble or with a special style file (Letter
15717  Class Option, extension 
15718 \family typewriter
15719 *.lco
15720 \family default
15721 ), that will be read in as a class option.
15722 \begin_inset Foot
15723 status collapsed
15724
15725 \begin_layout Plain Layout
15726 The KOMA package comes with some default 
15727 \family typewriter
15728 *.lco
15729 \family default
15730  files.
15731  There is, for instance, a 
15732 \family typewriter
15733 DIN.lco
15734 \family default
15735  file that follows german typesetting rules, or a 
15736 \family typewriter
15737 KOMAold.lco
15738 \family default
15739  that provides the default layout of the old 
15740 \family typewriter
15741 scrlettr
15742 \family default
15743  class.
15744  The latter can be loaded with the class option 
15745 \family typewriter
15746 KOMAold
15747 \family default
15748 , inserted via the 
15749 \family sans
15750 Layout\SpecialChar menuseparator
15751 Document\SpecialChar menuseparator
15752 Extra Options
15753 \family default
15754  field.
15755 \end_layout
15756
15757 \end_inset
15758
15759  Have a look at the 
15760 \emph on
15761 koma-letter2
15762 \emph default
15763  template that is included in \SpecialChar LyX
15764  for examples.
15765  A detailed description is to be found in the Koma-Script documentation
15766  (
15767 \emph on
15768 scrguide
15769 \emph default
15770 ).
15771 \end_layout
15772
15773 \begin_layout Subsection
15774 Problems
15775 \end_layout
15776
15777 \begin_layout Standard
15778 Visualizing the Koma-Script document classes in \SpecialChar LyX
15779 , the \SpecialChar LyX
15780  internals cause some
15781  problems.
15782 \end_layout
15783
15784 \begin_layout Itemize
15785 The chapter number of a 
15786 \family sans
15787 Chapter
15788 \family default
15789  type appears on a line of its own above the chapter heading instead of
15790  appearing in the same line ahead of it.
15791  The cause for that is the \SpecialChar LyX
15792  internal behavior for the labeltype 
15793 \family sans
15794 Counter_Chapter
15795 \family default
15796  in the layout file.
15797 \end_layout
15798
15799 \begin_layout Itemize
15800 The headings of the types 
15801 \family sans
15802 Addchap
15803 \family default
15804  and 
15805 \family sans
15806 Addsec
15807 \family default
15808  are only put in the 
15809 \begin_inset Quotes eld
15810 \end_inset
15811
15812 true
15813 \begin_inset Quotes erd
15814 \end_inset
15815
15816  \SpecialChar LaTeX
15817  table of contents, but not in the \SpecialChar LyX
15818  table of contents (
15819 \family sans
15820 Document\SpecialChar menuseparator
15821 Table
15822 \begin_inset space ~
15823 \end_inset
15824
15825 of
15826 \begin_inset space ~
15827 \end_inset
15828
15829 Contents
15830 \family default
15831 ).
15832 \end_layout
15833
15834 \begin_layout Itemize
15835 The paragraphs in a 
15836 \emph on
15837 letter
15838 \emph default
15839  document class appear in a skip separation mode, not indented.
15840  This is the standard behavior, no special \SpecialChar LaTeX
15841  commands are needed for that.
15842  But in the 
15843 \family sans
15844 Document\SpecialChar menuseparator
15845 Settings
15846 \family default
15847  dialog the corresponding radio button indicates 
15848 \family sans
15849 Indent
15850 \family default
15851 .
15852  A 
15853 \family sans
15854 Skip
15855 \family default
15856  value always has the effect that extra \SpecialChar LaTeX
15857  commands are inserted in the document
15858  to produce the gap, which is not what is wanted in this case.
15859 \end_layout
15860
15861 \begin_layout Section
15862 Memoir
15863 \end_layout
15864
15865 \begin_layout Standard
15866 By 
15867 \noun on
15868 Jürgen Spitzmüller
15869 \end_layout
15870
15871 \begin_layout Subsection
15872 Overview
15873 \end_layout
15874
15875 \begin_layout Standard
15876 Memoir is a very powerful and constantly evolving class.
15877  It has been designed with regard to fictional and non-fictional literature.
15878  Its aim is to let the user have maximum control over the typesetting of
15879  his document.
15880  Memoir is based on the standard book class, but it can also emulate the
15881  article class (see below).
15882 \end_layout
15883
15884 \begin_layout Standard
15885 Peter Wilson, the developer of Memoir, is known as the author of lots of
15886  useful packages in the \SpecialChar LaTeX
15887  world.
15888  Most of them have been merged with Memoir.
15889  Therefore, it is much easier to layout the table of contents, appendices,
15890  chapter designs and such.
15891  \SpecialChar LyX
15892 , though, does not support all of these goodies natively.
15893  Some of them might be added to forthcoming releases
15894 \begin_inset Foot
15895 status collapsed
15896
15897 \begin_layout Plain Layout
15898 You are invited to send suggestions to 
15899 \begin_inset Flex URL
15900 status collapsed
15901
15902 \begin_layout Plain Layout
15903
15904 lyx-devel@lists.lyx.org
15905 \end_layout
15906
15907 \end_inset
15908
15909 .
15910 \end_layout
15911
15912 \end_inset
15913
15914 , lots will probably never be supported, due to the limitations of \SpecialChar LyX
15915 's framework.
15916  Of course you can still use all features with the help of some native \SpecialChar LaTeX
15917
15918  commands (\SpecialChar TeX
15919  code
15920 \begin_inset Foot
15921 status collapsed
15922
15923 \begin_layout Plain Layout
15924 Cf.
15925 \begin_inset ERT
15926 status collapsed
15927
15928 \begin_layout Plain Layout
15929
15930
15931 \backslash
15932  
15933 \end_layout
15934
15935 \end_inset
15936
15937 section
15938 \begin_inset space ~
15939 \end_inset
15940
15941
15942 \begin_inset CommandInset ref
15943 LatexCommand ref
15944 reference "sec:Inserting-TeX-Code"
15945
15946 \end_inset
15947
15948  for details.
15949 \end_layout
15950
15951 \end_inset
15952
15953 ).
15954  In this section, we can only list those features that are natively supported
15955  by \SpecialChar LyX
15956 .
15957  For detailed descriptions (and for the rest of features) we recommend you
15958  have a look at the detailed manual of the Memoir class
15959 \begin_inset Foot
15960 status collapsed
15961
15962 \begin_layout Plain Layout
15963 Cf.
15964 \begin_inset ERT
15965 status collapsed
15966
15967 \begin_layout Plain Layout
15968
15969
15970 \backslash
15971  
15972 \end_layout
15973
15974 \end_inset
15975
15976
15977 \begin_inset Flex URL
15978 status collapsed
15979
15980 \begin_layout Plain Layout
15981
15982 CTAN:/macros/latex/memoir/memman.pdf
15983 \end_layout
15984
15985 \end_inset
15986
15987 .
15988 \end_layout
15989
15990 \end_inset
15991
15992 , which is not only a user guide for the class, but also both a comprehensive
15993  description on good typesetting and a superb example for good typesetting
15994  itself.
15995 \end_layout
15996
15997 \begin_layout Subsection
15998 Basic features and restrictions
15999 \end_layout
16000
16001 \begin_layout Standard
16002 Memoir supports basically all features of the standard book classes.
16003  There are, however, some differences, as follows:
16004 \end_layout
16005
16006 \begin_layout Description
16007 Font
16008 \begin_inset space ~
16009 \end_inset
16010
16011 sizes: Memoir has a broader range of font sizes: 9, 10, 11, 12, 14, 17
16012 \end_layout
16013
16014 \begin_layout Description
16015 Page
16016 \begin_inset space ~
16017 \end_inset
16018
16019 style: The fancy page style is not supported, due to a command clash between
16020  Memoir and the fancyhdr package (they both define a command with the same
16021  name, which confuses \SpecialChar LaTeX
16022 ).
16023  Instead, Memoir comes with a number of its own page styles (see 
16024 \family sans
16025 Document\SpecialChar menuseparator
16026 Settings\SpecialChar menuseparator
16027 Page
16028 \begin_inset space ~
16029 \end_inset
16030
16031 Style
16032 \family default
16033 ).
16034  If you want to use these for the chapter pages, you have to use the command
16035  
16036 \family typewriter
16037
16038 \backslash
16039 chapterstyle
16040 \family default
16041  in the main text or in preamble (e.
16042 \begin_inset space \thinspace{}
16043 \end_inset
16044
16045 g.
16046 \begin_inset space \space{}
16047 \end_inset
16048
16049
16050 \family typewriter
16051
16052 \backslash
16053 chapterstyle{companion}
16054 \family default
16055 ).
16056 \end_layout
16057
16058 \begin_layout Description
16059 Sectioning: Sectionings (chapter, section, subsection etc.) come with an
16060  optional argument in the standard classes.
16061  With this, you can specify an alternative version of the title for the
16062  table of contents and the headers (for instance, if the title is too long).
16063  In \SpecialChar LyX
16064 , you can do this via 
16065 \family sans
16066 Insert\SpecialChar menuseparator
16067 Short
16068 \begin_inset space ~
16069 \end_inset
16070
16071 Title
16072 \family default
16073  at the beginning of a chapter/section.
16074  Memoir features a second optional argument and thus separates the table
16075  of contents from the header.
16076  You can define three variants of a title with this: one for the main text,
16077  one for the table of contents, and one for the headers.
16078  \SpecialChar LyX
16079  makes these available in form of specific 
16080 \family sans
16081 Short Title
16082 \family default
16083  variants in the 
16084 \family sans
16085 Insert
16086 \family default
16087  menu.
16088 \end_layout
16089
16090 \begin_layout Description
16091 TOC/LOT/LOF: In the standard classes (and in many other classes), the table
16092  of contents, the list of figures and the list of table start a new page
16093  automatically.
16094  Memoir does not follow this route.
16095  You have to insert a page break yourself, if you want to have one.
16096 \end_layout
16097
16098 \begin_layout Description
16099 Titlepage: For some unknown reason, Memoir uses pagination on the title
16100  page (in the standard classes, title pages are 
16101 \begin_inset Quotes eld
16102 \end_inset
16103
16104 empty
16105 \begin_inset Quotes erd
16106 \end_inset
16107
16108 ).
16109  If you want an empty title page, type 
16110 \family typewriter
16111
16112 \backslash
16113 aliaspagestyle{title}{empty}
16114 \family default
16115  in the preamble.
16116 \end_layout
16117
16118 \begin_layout Description
16119 Article: With the class option 
16120 \emph on
16121 article
16122 \emph default
16123  (to be inserted in 
16124 \family sans
16125 Document\SpecialChar menuseparator
16126 Settings\SpecialChar menuseparator
16127 Class Settings\SpecialChar menuseparator
16128 Custom
16129 \begin_inset space ~
16130 \end_inset
16131
16132 Options
16133 \family default
16134 ), you can emulate article style.
16135  That is, counters (footnotes, figures, tables etc.) will not be reset on
16136  new chapters, chapters don't start a new page (but are—in contrary to 
16137 \begin_inset Quotes eld
16138 \end_inset
16139
16140 real
16141 \begin_inset Quotes erd
16142 \end_inset
16143
16144  article classes—still allowed), parts, though, use their own page, as in
16145  book.
16146 \end_layout
16147
16148 \begin_layout Description
16149 Oldfontcommands: By default, Memoir does not allow the use of the deprecated
16150  font commands, which have been used in the old \SpecialChar LaTeX
16151  version 2.09 (e.
16152 \begin_inset space \thinspace{}
16153 \end_inset
16154
16155 g.
16156 \begin_inset space \space{}
16157 \end_inset
16158
16159
16160 \family typewriter
16161
16162 \backslash
16163 rm
16164 \family default
16165
16166 \family typewriter
16167
16168 \backslash
16169 it
16170 \family default
16171 ).
16172  It produces an error and stops \SpecialChar LaTeX
16173  whenever such a command appears.
16174  The class option 
16175 \emph on
16176 oldfontcommands
16177 \emph default
16178  reallows the commands and spits out warnings instead (which does at least
16179  not stop \SpecialChar LaTeX
16180 ).
16181  Since a lot of packages and particularly Bib\SpecialChar TeX
16182  style files are still using
16183  those commands, we have decided to use this option by default.
16184 \end_layout
16185
16186 \begin_layout Subsection
16187 Extra features
16188 \end_layout
16189
16190 \begin_layout Standard
16191 We will only describe the features supported by \SpecialChar LyX
16192  (which is not much currently).
16193  Please consult the Memoir manual
16194 \begin_inset Foot
16195 status collapsed
16196
16197 \begin_layout Plain Layout
16198 Cf.
16199 \begin_inset ERT
16200 status collapsed
16201
16202 \begin_layout Plain Layout
16203
16204
16205 \backslash
16206  
16207 \end_layout
16208
16209 \end_inset
16210
16211
16212 \begin_inset Flex URL
16213 status collapsed
16214
16215 \begin_layout Plain Layout
16216
16217 CTAN:/macros/latex/memoir/memman.pdf
16218 \end_layout
16219
16220 \end_inset
16221
16222 .
16223 \end_layout
16224
16225 \end_inset
16226
16227  for details.
16228 \end_layout
16229
16230 \begin_layout Description
16231 Abstract: You may wonder why an abstract is an extra feature.
16232  Well, it is in book class.
16233  Usually books don't have abstracts.
16234  Memoir, however, has.
16235  You can use it wherever and how often you like.
16236 \end_layout
16237
16238 \begin_layout Description
16239 Chapterprecis: You may know this older typesetting style: The contents of
16240  a chapter are summarized below the title and also in the table of contents
16241  (e.
16242 \begin_inset space \thinspace{}
16243 \end_inset
16244
16245 g.
16246 \begin_inset space \space{}
16247 \end_inset
16248
16249
16250 \emph on
16251 Our hero arrives in Troia; he loses some friends; he finds others
16252 \emph default
16253 ).
16254  Chapterprecis does exactly this.
16255  It is therefore only sensible below a chapter.
16256 \end_layout
16257
16258 \begin_layout Description
16259 Epigraph: An epigraph is a smart slogan or motto at the beginning of a chapter.
16260  The epigraph environment provides an elegant way of typesetting such a
16261  motto.
16262  The motto itself (text) and its (optional) author (source) are divided
16263  by a short line.
16264  The author (source) can be inserted via 
16265 \family sans
16266 Insert\SpecialChar menuseparator
16267 Epigraph Source
16268 \family default
16269 \emph on
16270 .
16271 \end_layout
16272
16273 \begin_layout Description
16274 Poemtitle: Memoir has lots of possibilities to typeset poetry (up to very
16275  complex figurative poems).
16276  \SpecialChar LyX
16277  can only support a few of them.
16278  One is poemtitle, which is a centered title for poems, which will also
16279  be added to the table of contents (verse is the standard environment for
16280  poems.
16281  Memoir has some enhanced versions of verse, but you need to use \SpecialChar TeX
16282  code,
16283  because they have to be nested inside regular verse environments, which
16284  is not possible with \SpecialChar LyX
16285 ).
16286 \end_layout
16287
16288 \begin_layout Description
16289 Poemtitle*: Same as poemtitle, but it adds no entry to the table of contents.
16290 \end_layout
16291
16292 \begin_layout Section
16293 Article (mwart), book (mwbk) and report (mwrep)
16294 \begin_inset Argument status
16295 status collapsed
16296
16297 \begin_layout Plain Layout
16298 The 
16299 \family typewriter
16300 mw
16301 \family default
16302  Classes
16303 \end_layout
16304
16305 \end_inset
16306
16307
16308 \end_layout
16309
16310 \begin_layout Standard
16311 by 
16312 \noun on
16313 Tomasz Luczak
16314 \end_layout
16315
16316 \begin_layout Standard
16317 The \SpecialChar LyX
16318  document classes 
16319 \emph on
16320 article (mwart)
16321 \emph default
16322
16323 \emph on
16324 report (mwrep)
16325 \emph default
16326  and 
16327 \emph on
16328 book
16329 \emph default
16330  
16331 \emph on
16332 (mwbk)
16333 \emph default
16334  correspond to the \SpecialChar LaTeX
16335  document classes 
16336 \family typewriter
16337 mwart.cls
16338 \family default
16339
16340 \family typewriter
16341 mwrep.cls
16342 \family default
16343  and 
16344 \family typewriter
16345 mwbk.cls
16346 \family default
16347 , resp.
16348  They are replacements for the standard document classes 
16349 \family typewriter
16350 article.cls
16351 \family default
16352
16353 \family typewriter
16354 report.cls
16355 \family default
16356  and 
16357 \family typewriter
16358 book.cls
16359 \family default
16360 , resp., and fit better to Polish typography conventions in a number of points.
16361  
16362 \end_layout
16363
16364 \begin_layout Standard
16365 Basic differences:
16366 \end_layout
16367
16368 \begin_layout Itemize
16369 Unnumbered titles (with star, e.
16370 \begin_inset space \thinspace{}
16371 \end_inset
16372
16373 g.
16374 \begin_inset space \space{}
16375 \end_inset
16376
16377
16378 \family sans
16379 Section*
16380 \family default
16381 ) are added into table of contents,
16382 \end_layout
16383
16384 \begin_layout Itemize
16385 Additional page styles:
16386 \end_layout
16387
16388 \begin_deeper
16389 \begin_layout Description
16390 uheadings header with separated lines,
16391 \end_layout
16392
16393 \begin_layout Description
16394 myheadings custom header, contents headers via commands: 
16395 \family typewriter
16396
16397 \backslash
16398 markright
16399 \family default
16400  and 
16401 \family typewriter
16402
16403 \backslash
16404 markboth
16405 \family default
16406 ,
16407 \end_layout
16408
16409 \begin_layout Description
16410 myuheadings custom header with separated lines,
16411 \end_layout
16412
16413 \begin_layout Description
16414 outer page number is placed on outer side of page
16415 \end_layout
16416
16417 \end_deeper
16418 \begin_layout Itemize
16419 Options 
16420 \end_layout
16421
16422 \begin_deeper
16423 \begin_layout Description
16424 rmheadings serif titles — default,
16425 \end_layout
16426
16427 \begin_layout Description
16428 sfheadings sansserif titles,
16429 \end_layout
16430
16431 \begin_layout Description
16432 authortitle on title page first placed is author next title — default,
16433 \end_layout
16434
16435 \begin_layout Description
16436 titleauthor on title page first placed is title next author,
16437 \end_layout
16438
16439 \begin_layout Description
16440 withmarginpar reserve place on page for margins.
16441 \end_layout
16442
16443 \end_deeper
16444 \begin_layout Section
16445 Paper
16446 \end_layout
16447
16448 \begin_layout Standard
16449 The document class 
16450 \family sans
16451 paper
16452 \family default
16453  provides an alternative to the standard 
16454 \family sans
16455 article
16456 \family default
16457  class.
16458  It provides similar functionality, but you might prefer this layout with
16459  sans serif sections, headings, and more.
16460 \end_layout
16461
16462 \begin_layout Section
16463 Rev\SpecialChar TeX
16464 4
16465 \end_layout
16466
16467 \begin_layout Standard
16468 by 
16469 \noun on
16470 Amir Karger
16471 \end_layout
16472
16473 \begin_layout Standard
16474 \begin_inset VSpace bigskip
16475 \end_inset
16476
16477
16478 \end_layout
16479
16480 \begin_layout Standard
16481 \noindent
16482 The 
16483 \family sans
16484 Revtex
16485 \begin_inset space ~
16486 \end_inset
16487
16488 4
16489 \family default
16490  textclass works with the American Physical Sociey's Rev\SpecialChar TeX
16491  4.0 (the 
16492 \begin_inset Formula $\beta$
16493 \end_inset
16494
16495  release of May, 1999) class.
16496 \end_layout
16497
16498 \begin_layout Standard
16499 \SpecialChar LyX
16500  has a 
16501 \family sans
16502 Revtex
16503 \family default
16504  textclass, which works with Rev\SpecialChar TeX
16505  3.1.
16506  However, v3.1 is basically obsolete, as it works with \SpecialChar LaTeX
16507  2.09.
16508  That means that it doesn't interact very well with \SpecialChar LyX
16509 , which requires \SpecialChar LaTeX2e
16510 , although
16511  it has been kludged to work.
16512  Since Rev\SpecialChar TeX
16513  4.0 has been designed to work much more cleanly with \SpecialChar LaTeX2e
16514 , \SpecialChar LyX
16515  with the
16516  
16517 \family sans
16518 Rev\SpecialChar TeX
16519
16520 \begin_inset space ~
16521 \end_inset
16522
16523 4
16524 \family default
16525  textclass should also be pretty easy to use.
16526 \end_layout
16527
16528 \begin_layout Standard
16529 These documents are supposed to be used in 
16530 \emph on
16531 addition
16532 \emph default
16533  to the Rev\SpecialChar TeX
16534  4.0 documents, so we don't describe any of the special Rev\SpecialChar TeX
16535  macros,
16536  and assume you'll know what to put in the preamble if necessary.
16537 \end_layout
16538
16539 \begin_layout Subsection
16540 Installation
16541 \end_layout
16542
16543 \begin_layout Standard
16544 All you need to do is install Rev\SpecialChar TeX
16545  4, as described in the package's README
16546  file.
16547  The package can be found at The Rev\SpecialChar TeX
16548  4 Web Site 
16549 \begin_inset Flex URL
16550 status collapsed
16551
16552 \begin_layout Plain Layout
16553
16554 http://publish.aps.org/revtex4/
16555 \end_layout
16556
16557 \end_inset
16558
16559 .
16560  Install it somewhere that \SpecialChar LaTeX
16561  can see it.
16562  Test it by trying to \SpecialChar LaTeX
16563  a short Rev\SpecialChar TeX
16564  4 document in some random directory (i.
16565 \begin_inset space \thinspace{}
16566 \end_inset
16567
16568 e.
16569 \begin_inset space \space{}
16570 \end_inset
16571
16572 not the directory where you installed the class file.) Then, if you reconfigure
16573  \SpecialChar LyX
16574 , it will find the class file and let you use the Rev\SpecialChar TeX
16575 4 textclass.
16576 \end_layout
16577
16578 \begin_layout Standard
16579 Probably the easiest way to get started is either to import a Rev\SpecialChar TeX
16580  4 document
16581  using 
16582 \family typewriter
16583 tex2lyx
16584 \family default
16585 , or to use the 
16586 \family sans
16587 Revtex
16588 \begin_inset space ~
16589 \end_inset
16590
16591 4
16592 \family default
16593  template, found in the templates directory.
16594 \end_layout
16595
16596 \begin_layout Subsection
16597 Preamble Matter
16598 \end_layout
16599
16600 \begin_layout Standard
16601 Optional arguments to 
16602 \family typewriter
16603
16604 \backslash
16605 documentclass
16606 \family default
16607 , like 
16608 \begin_inset Quotes eld
16609 \end_inset
16610
16611 preprint
16612 \begin_inset Quotes erd
16613 \end_inset
16614
16615  and 
16616 \begin_inset Quotes eld
16617 \end_inset
16618
16619 aps
16620 \begin_inset Quotes erd
16621 \end_inset
16622
16623 , go in the 
16624 \family sans
16625 Extra
16626 \begin_inset space ~
16627 \end_inset
16628
16629 Options
16630 \family default
16631  field in the 
16632 \family sans
16633 Document
16634 \begin_inset space ~
16635 \end_inset
16636
16637 Layout
16638 \family default
16639  dialog, as usual.
16640  Remember that in Rev\SpecialChar TeX
16641 , at least one optional argument is required! 
16642 \end_layout
16643
16644 \begin_layout Standard
16645 Other preamble matter, like 
16646 \family typewriter
16647
16648 \backslash
16649 draft
16650 \family default
16651  etc.
16652 \begin_inset space ~
16653 \end_inset
16654
16655 goes in the 
16656 \family sans
16657 \SpecialChar LaTeX
16658
16659 \begin_inset space ~
16660 \end_inset
16661
16662 Preamble
16663 \family default
16664  dialog, also as usual.
16665 \end_layout
16666
16667 \begin_layout Subsection
16668 Layouts
16669 \end_layout
16670
16671 \begin_layout Standard
16672 The layouts basically correspond to the commands in Rev\SpecialChar TeX
16673 4.0.
16674  For example, the Email layout corresponds to 
16675 \family typewriter
16676
16677 \backslash
16678 email{}
16679 \family default
16680 .
16681  Note that (at least as of Rev\SpecialChar TeX
16682  4.0 Beta), the 
16683 \family sans
16684 Address
16685 \family default
16686  and 
16687 \family sans
16688 Affiliation
16689 \family default
16690  layouts are exactly equivalent, so you shouldn't need to use both.
16691 \begin_inset Foot
16692 status collapsed
16693
16694 \begin_layout Plain Layout
16695 In case you're curious, both were included so that 
16696 \family typewriter
16697 tex2lyx
16698 \family default
16699  would be able to translate both 
16700 \family typewriter
16701
16702 \backslash
16703 address
16704 \family default
16705  and 
16706 \family typewriter
16707
16708 \backslash
16709 affiliation
16710 \family default
16711 .
16712 \end_layout
16713
16714 \end_inset
16715
16716
16717 \end_layout
16718
16719 \begin_layout Subsection
16720 Important Notes
16721 \end_layout
16722
16723 \begin_layout Standard
16724 There are a couple of important unique aspects of Rev\SpecialChar TeX
16725  4 which might cause
16726  bugs that will be even more confusing in \SpecialChar LyX
16727 .
16728 \end_layout
16729
16730 \begin_layout Standard
16731 In Rev\SpecialChar TeX
16732 , the 
16733 \family typewriter
16734
16735 \backslash
16736 thanks
16737 \family default
16738  command goes 
16739 \emph on
16740 outside
16741 \emph default
16742  the 
16743 \family typewriter
16744
16745 \backslash
16746 author
16747 \family default
16748  command.
16749  The \SpecialChar LyX
16750  equivalent is that there is a separate Thanks layout.
16751  Do 
16752 \emph on
16753 not
16754 \emph default
16755  write footnotes in the 
16756 \family sans
16757 Author
16758 \family default
16759  layout, or weird things may happen.
16760  See the Rev\SpecialChar TeX
16761  4 documentation for more details.
16762 \end_layout
16763
16764 \begin_layout Standard
16765 Also, the 
16766 \family sans
16767 Author
16768 \begin_inset space ~
16769 \end_inset
16770
16771 Email
16772 \family default
16773
16774 \family sans
16775 Author
16776 \begin_inset space ~
16777 \end_inset
16778
16779 URL
16780 \family default
16781 , and 
16782 \family sans
16783 Thanks
16784 \family default
16785  layouts must be placed 
16786 \emph on
16787 in between
16788 \emph default
16789  the 
16790 \family sans
16791 Author
16792 \family default
16793  layout and the corresponding 
16794 \family sans
16795 Address
16796 \family default
16797  (or equivalent 
16798 \family sans
16799 Affiliation
16800 \family default
16801 ) layout.
16802  If you put the 
16803 \family sans
16804 Thanks
16805 \family default
16806  after the 
16807 \family sans
16808 Address
16809 \family default
16810 , the \SpecialChar LaTeX
16811  won't compile.
16812 \end_layout
16813
16814 \begin_layout Section
16815 Springer Journals (
16816 \family sans
16817 svjour
16818 \family default
16819 )
16820 \end_layout
16821
16822 \begin_layout Standard
16823 by 
16824 \noun on
16825 Martin Vermeer
16826 \end_layout
16827
16828 \begin_layout Subsection
16829 Description
16830 \end_layout
16831
16832 \begin_layout Standard
16833 These are the layout files for some of the journal formats used by Springer
16834  Verlag and listed on 
16835 \begin_inset Flex URL
16836 status collapsed
16837
16838 \begin_layout Plain Layout
16839
16840 http://www.springer.de/author/tex/help-journals.html
16841 \end_layout
16842
16843 \end_inset
16844
16845 , where you should also go to fetch the class files (yes, these are \SpecialChar LaTeX2e
16846  now!).
16847  It is a modular system: the things common to all journals are implemented
16848  in 
16849 \family typewriter
16850 svjour.inc
16851 \family default
16852 , which journal-specific layout files (such as, e.
16853 \begin_inset space \thinspace{}
16854 \end_inset
16855
16856 g.
16857 \begin_inset space \space{}
16858 \end_inset
16859
16860
16861 \family typewriter
16862 svjog.layout
16863 \family default
16864  for Journal of Geodesy) can include.
16865 \end_layout
16866
16867 \begin_layout Standard
16868 This means that implementing support for any other Springer journal on this
16869  list is as simple as writing your own 
16870 \family typewriter
16871 sv
16872 \family default
16873 <myjournal>
16874 \family typewriter
16875 .layout
16876 \family default
16877  file following the outline given in 
16878 \family typewriter
16879 svjog.layout
16880 \family default
16881 .
16882  
16883 \end_layout
16884
16885 \begin_layout Standard
16886 It is reasonably well tested only for the Journal of Geodesy.
16887  
16888 \family typewriter
16889 svjour
16890 \family default
16891  and 
16892 \family typewriter
16893 svjog
16894 \family default
16895  come with the standard \SpecialChar LyX
16896  distribution.
16897  Install the relevant class file (downloaded from Springer) in a proper
16898  directory, reconfigure \SpecialChar LaTeX
16899  (in the te\SpecialChar TeX
16900  case by running 
16901 \family typewriter
16902 texhash
16903 \family default
16904 , as root if necessary — doesn't \SpecialChar LyX
16905  take care of this?), reconfigure \SpecialChar LyX
16906  and
16907  it should work.
16908 \end_layout
16909
16910 \begin_layout Subsection
16911 New styles
16912 \end_layout
16913
16914 \begin_layout Standard
16915 A large number of theorem-like styles — 
16916 \family sans
16917 Claim, Conjecture,
16918 \family default
16919  
16920 \family sans
16921 \SpecialChar ldots
16922 Theorem
16923 \family default
16924 .
16925 \end_layout
16926
16927 \begin_layout Standard
16928
16929 \family sans
16930 Headnote, Dedication, Subtitle, Running_\SpecialChar LaTeX
16931 _Title, Author_Running, Institute,
16932  Mail, Offprints, Keywords, Acknowledgements, Acknowledgement
16933 \family default
16934 .
16935  See the Springer class file documentation for details.
16936 \end_layout
16937
16938 \begin_layout Subsection
16939 Supported journals
16940 \end_layout
16941
16942 \begin_layout Itemize
16943
16944 \emph on
16945 Journal of Geodesy
16946 \emph default
16947
16948 \family typewriter
16949 svjog.layout
16950 \family default
16951  — Martin Vermeer
16952 \end_layout
16953
16954 \begin_layout Itemize
16955
16956 \emph on
16957 Probability Theory and Related Fields
16958 \emph default
16959
16960 \family typewriter
16961 svprobth.layout
16962 \family default
16963  — Jean-Marc Lasgouttes
16964 \end_layout
16965
16966 \begin_layout Standard
16967 Add your own, it isn't so hard!
16968 \end_layout
16969
16970 \begin_layout Subsection
16971 Credits
16972 \end_layout
16973
16974 \begin_layout Standard
16975 These files are partly based on the older 
16976 \family typewriter
16977 ejour2.layout
16978 \family default
16979 , which was again based on a tinkered-with version of an old \SpecialChar LaTeX
16980  2.09 style
16981  file from Springer.
16982  All this, and the 
16983 \family typewriter
16984 ejour2
16985 \family default
16986  layout, are now defunct.
16987  Jean-Marc Lasgouttes helped out big in making me find my way around the
16988  \SpecialChar LyX
16989  layout file mechanism.
16990 \end_layout
16991
16992 \begin_layout Subsection
16993 Bugs
16994 \end_layout
16995
16996 \begin_layout Standard
16997 Probably.
16998  But probably less than in the old hacked-\SpecialChar LaTeX
16999  
17000 \family typewriter
17001 ejour2
17002 \family default
17003 .
17004 \end_layout
17005
17006 \begin_layout Section
17007 Slides [aka 
17008 \noun on
17009 Sli\SpecialChar TeX
17010
17011 \noun default
17012 ]
17013 \begin_inset CommandInset label
17014 LatexCommand label
17015 name "sec:slitex"
17016
17017 \end_inset
17018
17019
17020 \end_layout
17021
17022 \begin_layout Standard
17023 by 
17024 \noun on
17025 John Weiss
17026 \noun default
17027  
17028 \end_layout
17029
17030 \begin_layout Subsection
17031 Introduction
17032 \end_layout
17033
17034 \begin_layout Standard
17035 This section describes how to use \SpecialChar LyX
17036  to make slides for overhead projectors.
17037  There are two document classes that can do this: the default slides class
17038  and the 
17039 \family sans
17040 Foil\SpecialChar TeX
17041
17042 \family default
17043  slides class.
17044  This section documents the former.
17045 \end_layout
17046
17047 \begin_layout Standard
17048 I'm going to say this again, nice and clear, so that there's no misunderstanding
17049 :
17050 \end_layout
17051
17052 \begin_layout Standard
17053 \begin_inset VSpace bigskip
17054 \end_inset
17055
17056
17057 \end_layout
17058
17059 \begin_layout Standard
17060 \align center
17061
17062 \size large
17063 This section documents the class 
17064 \begin_inset Quotes eld
17065 \end_inset
17066
17067
17068 \family sans
17069 slides (default)
17070 \family default
17071
17072 \begin_inset Quotes erd
17073 \end_inset
17074
17075  
17076 \emph on
17077 only.
17078 \end_layout
17079
17080 \begin_layout Standard
17081 \begin_inset VSpace bigskip
17082 \end_inset
17083
17084
17085 \end_layout
17086
17087 \begin_layout Standard
17088 If you're looking for the documentation for 
17089 \begin_inset Quotes eld
17090 \end_inset
17091
17092
17093 \family sans
17094 slides (Foil\SpecialChar TeX
17095 )
17096 \family default
17097
17098 \begin_inset Quotes erd
17099 \end_inset
17100
17101 , check out section
17102 \begin_inset space ~
17103 \end_inset
17104
17105
17106 \begin_inset CommandInset ref
17107 LatexCommand ref
17108 reference "sec:foiltex"
17109
17110 \end_inset
17111
17112 .
17113  The 
17114 \family sans
17115 foils
17116 \family default
17117  class [
17118 \begin_inset Quotes eld
17119 \end_inset
17120
17121
17122 \family sans
17123 slides (Foil\SpecialChar TeX
17124 )
17125 \family default
17126
17127 \begin_inset Quotes erd
17128 \end_inset
17129
17130 ] is actually somewhat better than the default 
17131 \family sans
17132 slides
17133 \family default
17134  class,
17135 \begin_inset Foot
17136 status collapsed
17137
17138 \begin_layout Plain Layout
17139 \SpecialChar ldots
17140 or so I've been told repeatedly by its advocates.
17141  Having never used it, I have no idea if this claim is true or not.
17142 \end_layout
17143
17144 \end_inset
17145
17146  which this section documents.
17147 \end_layout
17148
17149 \begin_layout Standard
17150 This class is the \SpecialChar LaTeX2e
17151  improvement of the old 
17152 \noun on
17153 Sli\SpecialChar TeX
17154
17155 \noun default
17156  package.
17157  Every \SpecialChar LaTeX2e
17158  distribution includes this class [which I'll just refer to as 
17159 \begin_inset Quotes eld
17160 \end_inset
17161
17162
17163 \family sans
17164 slides
17165 \family default
17166
17167 \begin_inset Quotes erd
17168 \end_inset
17169
17170  from now on], so you're bound to have it.
17171  As I noted earlier, there are other classes, such as 
17172 \family sans
17173 foils
17174 \family default
17175 , which also produce slides for overhead projectors and do a better job
17176  at it.
17177  However, there are some things which 
17178 \family sans
17179 slides
17180 \family default
17181  can do which the others can't, such as generate overlays.
17182  Read on to learn more!
17183 \end_layout
17184
17185 \begin_layout Subsection
17186 Getting Started
17187 \begin_inset CommandInset label
17188 LatexCommand label
17189 name "sec:slidesetup"
17190
17191 \end_inset
17192
17193
17194 \end_layout
17195
17196 \begin_layout Standard
17197 Obviously, to use this document class, you need to select 
17198 \begin_inset Quotes eld
17199 \end_inset
17200
17201
17202 \family sans
17203 slides (default)
17204 \family default
17205
17206 \begin_inset Quotes erd
17207 \end_inset
17208
17209  from the class list in the 
17210 \family sans
17211 Document\SpecialChar menuseparator
17212 Settings
17213 \family default
17214  dialog.
17215  There are some other special things you should know about this class:
17216 \end_layout
17217
17218 \begin_layout Itemize
17219 Don't bother changing the options 
17220 \family sans
17221 Sides and Columns
17222 \family default
17223 .
17224  They're not supported by the 
17225 \family sans
17226 slides
17227 \family default
17228  class, anyways.
17229 \end_layout
17230
17231 \begin_layout Itemize
17232 The option 
17233 \family sans
17234 Page
17235 \begin_inset space ~
17236 \end_inset
17237
17238 style
17239 \family default
17240  behaves a bit differently for this class.
17241  The possible choices and what they do are as follows:
17242 \end_layout
17243
17244 \begin_deeper
17245 \begin_layout Description
17246
17247 \family sans
17248 plain
17249 \family default
17250  The final output contains page numbers in the lower right corner.
17251 \end_layout
17252
17253 \begin_layout Description
17254
17255 \family sans
17256 headings
17257 \family default
17258  Like 
17259 \family sans
17260 plain
17261 \family default
17262 , but also prints out any time markers you've put in.
17263  This is the default.
17264 \end_layout
17265
17266 \begin_layout Description
17267
17268 \family sans
17269 empty
17270 \family default
17271  The final output contains no page numbers, time markers, or alignment markers.
17272 \end_layout
17273
17274 \end_deeper
17275 \begin_layout Itemize
17276 The 
17277 \family sans
17278 slides
17279 \family default
17280  class has an extra option: 
17281 \family typewriter
17282 clock
17283 \family default
17284 .
17285  To use it, put 
17286 \begin_inset Quotes eld
17287 \end_inset
17288
17289
17290 \family typewriter
17291 clock
17292 \family default
17293
17294 \begin_inset Quotes erd
17295 \end_inset
17296
17297  in the extra class options.
17298 \end_layout
17299
17300 \begin_deeper
17301 \begin_layout Standard
17302 Using this options allows you to add time markers to 
17303 \family sans
17304 Note
17305 \family default
17306 s.
17307  See section
17308 \begin_inset space ~
17309 \end_inset
17310
17311
17312 \begin_inset CommandInset ref
17313 LatexCommand ref
17314 reference "sec:slideNote"
17315
17316 \end_inset
17317
17318  for more details.
17319 \end_layout
17320
17321 \end_deeper
17322 \begin_layout Standard
17323 You can also use the template file 
17324 \begin_inset Quotes eld
17325 \end_inset
17326
17327
17328 \family typewriter
17329 slides.lyx
17330 \family default
17331
17332 \begin_inset Quotes erd
17333 \end_inset
17334
17335  to automatically set up a document to use the 
17336 \family sans
17337 slides
17338 \family default
17339  class [using 
17340 \family sans
17341 File\SpecialChar menuseparator
17342 New
17343 \begin_inset space ~
17344 \end_inset
17345
17346 from
17347 \begin_inset space ~
17348 \end_inset
17349
17350 Template
17351 \family default
17352  to open your new document].
17353  The template file also contains some examples of the special paragraph
17354  environments used by this class.
17355  I'll describe those next.
17356 \end_layout
17357
17358 \begin_layout Subsection
17359 Paragraph Environments
17360 \end_layout
17361
17362 \begin_layout Subsubsection
17363 Supported Environments
17364 \end_layout
17365
17366 \begin_layout Standard
17367 The first thing you'll notice when you start up a new 
17368 \family sans
17369 slides
17370 \family default
17371  document is the font size and type: it's the equivalent of the size 
17372 \begin_inset Quotes eld
17373 \end_inset
17374
17375
17376 \family sans
17377 Largest
17378 \family default
17379
17380 \begin_inset Quotes erd
17381 \end_inset
17382
17383  in the 
17384 \family sans
17385 Sans
17386 \begin_inset space ~
17387 \end_inset
17388
17389 Serif
17390 \family default
17391  font.
17392  This is also what's used in the output.
17393  Think of this as a 
17394 \begin_inset Quotes eld
17395 \end_inset
17396
17397 visual cue
17398 \begin_inset Quotes erd
17399 \end_inset
17400
17401  to remind you that this is a slide.
17402  Your final slides will use a larger font; ergo, you'll have less space.
17403  Of course, the larger default screen font isn't WYSIWYG, only a reminder.
17404 \end_layout
17405
17406 \begin_layout Standard
17407 The next thing that becomes obvious is the changes to the paragraph environment
17408  pull-down box [at the far-left end of the toolbar].
17409  Most of the paragraph environments you're used to seeing are missing.
17410  There are also five new ones.
17411  That's because the 
17412 \family sans
17413 slides
17414 \family default
17415  class itself only supports certain paragraph environments:
17416 \end_layout
17417
17418 \begin_layout Itemize
17419
17420 \family sans
17421 Standard
17422 \end_layout
17423
17424 \begin_layout Itemize
17425
17426 \family sans
17427 Itemize
17428 \end_layout
17429
17430 \begin_layout Itemize
17431
17432 \family sans
17433 Enumerate
17434 \end_layout
17435
17436 \begin_layout Itemize
17437
17438 \family sans
17439 Description
17440 \end_layout
17441
17442 \begin_layout Itemize
17443
17444 \family sans
17445 List
17446 \end_layout
17447
17448 \begin_layout Itemize
17449
17450 \family sans
17451 Quotation
17452 \end_layout
17453
17454 \begin_layout Itemize
17455
17456 \family sans
17457 Quote
17458 \end_layout
17459
17460 \begin_layout Itemize
17461
17462 \family sans
17463 Verse
17464 \end_layout
17465
17466 \begin_layout Itemize
17467
17468 \family sans
17469 Caption
17470 \end_layout
17471
17472 \begin_layout Itemize
17473
17474 \family sans
17475 \SpecialChar LyX
17476 -Code
17477 \end_layout
17478
17479 \begin_layout Standard
17480 All of the other standard environments, including the section-heading environmen
17481 ts, aren't used in the 
17482 \family sans
17483 slides
17484 \family default
17485  class.
17486 \end_layout
17487
17488 \begin_layout Standard
17489 On the other hand, you'll notice the following new environments:
17490 \end_layout
17491
17492 \begin_layout Itemize
17493
17494 \family sans
17495 Slide
17496 \end_layout
17497
17498 \begin_layout Itemize
17499
17500 \family sans
17501 Overlay
17502 \end_layout
17503
17504 \begin_layout Itemize
17505
17506 \family sans
17507 Note
17508 \end_layout
17509
17510 \begin_layout Itemize
17511
17512 \family sans
17513 InvisibleText
17514 \end_layout
17515
17516 \begin_layout Itemize
17517
17518 \family sans
17519 VisibleText
17520 \end_layout
17521
17522 \begin_layout Standard
17523 These five are kind of quirky, due to a 
17524 \begin_inset Quotes eld
17525 \end_inset
17526
17527 feature
17528 \begin_inset Quotes erd
17529 \end_inset
17530
17531  in \SpecialChar LyX
17532 .
17533  You see, \SpecialChar LyX
17534  doesn't permit you to nest any other paragraph environment into
17535  an empty environment.
17536  Now, that's fine and dandy, but it means that you wouldn't be able to start
17537  a slide with anything except plain text.
17538  To deal with this, I've performed a little 
17539 \begin_inset Quotes eld
17540 \end_inset
17541
17542 \SpecialChar LaTeX
17543  magic.
17544 \begin_inset Quotes erd
17545 \end_inset
17546
17547  
17548 \end_layout
17549
17550 \begin_layout Subsubsection
17551 Quirks of the New Environments
17552 \begin_inset CommandInset label
17553 LatexCommand label
17554 name "sec:slideQuirk"
17555
17556 \end_inset
17557
17558
17559 \end_layout
17560
17561 \begin_layout Standard
17562 All five of the new paragraph environments are somewhat quirky due to inherent
17563  limitiations in the current version of \SpecialChar LyX
17564 .
17565  As I just mentioned, \SpecialChar LyX
17566  forbids environments that begin with another environment.
17567  To get around this, the 
17568 \family sans
17569 Slide
17570 \family default
17571  environment isn't a paragraph environment as described in the 
17572 \emph on
17573 User's Guide
17574 \emph default
17575 .
17576  
17577 \end_layout
17578
17579 \begin_layout Standard
17580 You should consider 
17581 \family sans
17582 Slide
17583 \family default
17584
17585 \family sans
17586 Overlay
17587 \family default
17588 , and 
17589 \family sans
17590 Note
17591 \family default
17592  to be 
17593 \begin_inset Quotes eld
17594 \end_inset
17595
17596 pseudo-environments.
17597 \begin_inset Quotes erd
17598 \end_inset
17599
17600  They look like a section heading or a 
17601 \begin_inset Quotes eld
17602 \end_inset
17603
17604
17605 \family sans
17606 Caption
17607 \family default
17608 ,
17609 \begin_inset Quotes erd
17610 \end_inset
17611
17612  but really begin a [and, if necessary, end the previous] paragraph environment.
17613  Likewise, treat 
17614 \family sans
17615 InvisibleText
17616 \family default
17617  and 
17618 \family sans
17619 VisibleText
17620 \family default
17621  as 
17622 \begin_inset Quotes eld
17623 \end_inset
17624
17625 pseudo-commands.
17626 \begin_inset Quotes erd
17627 \end_inset
17628
17629  These two perform some action.
17630 \end_layout
17631
17632 \begin_layout Standard
17633 A common feature of all five environments, 
17634 \family sans
17635 Slide
17636 \family default
17637
17638 \family sans
17639 Overlay
17640 \family default
17641
17642 \family sans
17643 Note
17644 \family default
17645
17646 \family sans
17647 InvisibleText
17648 \family default
17649  and 
17650 \family sans
17651 VisibleText
17652 \family default
17653 , is a rather long-ish label.
17654  The text following this label — ordinarily the contents of the paragraph
17655  environment — is utterly irrelevant for 
17656 \family sans
17657 Slide
17658 \family default
17659
17660 \family sans
17661 Overlay
17662 \family default
17663
17664 \family sans
17665 Note
17666 \family default
17667
17668 \family sans
17669 InvisibleText
17670 \family default
17671  and 
17672 \family sans
17673 VisibleText
17674 \family default
17675 .
17676  \SpecialChar LyX
17677  completely ignores it.
17678  In fact, you can leave these five environments completely empty.
17679  
17680 \end_layout
17681
17682 \begin_layout Standard
17683 While you don't 
17684 \emph on
17685 have
17686 \emph default
17687  to put any text after the rather long-ish label, you might want to.
17688  This could be a short description of the contents of the 
17689 \family sans
17690 Slide
17691 \family default
17692 , for example.
17693  In that case, enter your descriptive comment and hit 
17694 \family sans
17695 Return
17696 \family default
17697  as you normally would.
17698 \end_layout
17699
17700 \begin_layout Standard
17701 If, on the other hand, you don't want to enter any descriptive text, you'll
17702  hit another \SpecialChar LyX
17703  quirk.
17704  \SpecialChar LyX
17705 , like nature, abhors a vacuum, and will not let you start a new paragraph
17706  environment until you put something in the old one.
17707  So, do this:
17708 \end_layout
17709
17710 \begin_layout Itemize
17711 Start entering the text that will 
17712 \emph on
17713 follow
17714 \emph default
17715  the new 
17716 \family sans
17717 Slide
17718 \family default
17719
17720 \family sans
17721 Overlay
17722 \family default
17723
17724 \family sans
17725 Note
17726 \family default
17727
17728 \family sans
17729 InvisibleText
17730 \family default
17731  or 
17732 \family sans
17733 VisibleText
17734 \family default
17735 .
17736  
17737 \end_layout
17738
17739 \begin_layout Itemize
17740 Now move to the beginning of that paragraph.
17741  
17742 \end_layout
17743
17744 \begin_layout Itemize
17745 Next, hit 
17746 \family sans
17747 Return
17748 \family default
17749 .
17750  
17751 \end_layout
17752
17753 \begin_layout Itemize
17754 Finally, change this new, empty paragraph to a 
17755 \family sans
17756 Slide
17757 \family default
17758
17759 \family sans
17760 Overlay
17761 \family default
17762
17763 \family sans
17764 Note
17765 \family default
17766
17767 \family sans
17768 InvisibleText
17769 \family default
17770  or 
17771 \family sans
17772 VisibleText
17773 \family default
17774 .
17775  
17776 \end_layout
17777
17778 \begin_layout Standard
17779 Some future version of \SpecialChar LyX
17780  will, hopefully, resolve this quirkiness\SpecialChar ldots
17781
17782 \end_layout
17783
17784 \begin_layout Subsection
17785 Making a Presentation with 
17786 \family sans
17787 Slide
17788 \family default
17789
17790 \family sans
17791 Overlay
17792 \family default
17793  and 
17794 \family sans
17795 Note
17796 \end_layout
17797
17798 \begin_layout Subsubsection
17799 Using the 
17800 \family sans
17801 Slide
17802 \family default
17803  Environment
17804 \end_layout
17805
17806 \begin_layout Standard
17807 If you're expecting this section to teach you how to actually make a presentatio
17808 n, you'll be sorely disappointed.
17809  Naturally, I'll describe all of the ways the 
17810 \family sans
17811 slides
17812 \family default
17813  class can assist you in preparing the materials for a presentation.
17814  Filling in the contents, however, is up to you.
17815  [Then again, that 
17816 \emph on
17817 is
17818 \emph default
17819  the \SpecialChar LyX
17820  philosophy.]
17821 \end_layout
17822
17823 \begin_layout Standard
17824 Choosing the 
17825 \family sans
17826 Slide
17827 \family default
17828  environment [in the manner described in section
17829 \begin_inset space ~
17830 \end_inset
17831
17832
17833 \begin_inset CommandInset ref
17834 LatexCommand ref
17835 reference "sec:slideQuirk"
17836
17837 \end_inset
17838
17839 ] tells \SpecialChar LyX
17840  to begin a new slide [duh].
17841  The label for this environment/
17842 \begin_inset Quotes erd
17843 \end_inset
17844
17845 pseudo-command
17846 \begin_inset Quotes erd
17847 \end_inset
17848
17849  is an 
17850 \begin_inset Quotes eld
17851 \end_inset
17852
17853 ASCII line,
17854 \begin_inset Quotes erd
17855 \end_inset
17856
17857  in cool blue, followed by the label, 
17858 \begin_inset Quotes eld
17859 \end_inset
17860
17861 NewSlide:
17862 \begin_inset Quotes erd
17863 \end_inset
17864
17865 .
17866  Any text or paragraph environments that follow this one go on the new slide.
17867  It's that simple.
17868 \end_layout
17869
17870 \begin_layout Standard
17871 Slides are probably the only time you'll need to forcibly end pages in \SpecialChar LyX
17872
17873  (this can be specified in the 
17874 \family sans
17875 Paragraph Layout
17876 \family default
17877  dialog).
17878  In fact, you'll want to, once you finish entering the contents of one slide.
17879  If you've entered more text than can physically fit on a slide, the extra
17880  overflows onto a new slide.
17881  I don't recommend doing this, however, since the overflow slide won't have
17882  any page number on it.
17883  Furthermore, it may interfere with any 
17884 \family sans
17885 Overlay
17886 \family default
17887  you've made to accompany the oversized 
17888 \family sans
17889 Slide
17890 \family default
17891 .
17892 \end_layout
17893
17894 \begin_layout Standard
17895 The 
17896 \family sans
17897 Overlay
17898 \family default
17899  and 
17900 \family sans
17901 Note
17902 \family default
17903  environments work the same way as the 
17904 \family sans
17905 Slide
17906 \family default
17907  environment.
17908  They both create an 
17909 \begin_inset Quotes eld
17910 \end_inset
17911
17912 ASCII line
17913 \begin_inset Quotes erd
17914 \end_inset
17915
17916  followed by a label [
17917 \begin_inset Quotes eld
17918 \end_inset
17919
17920 NewOverlay:
17921 \begin_inset Quotes erd
17922 \end_inset
17923
17924  and 
17925 \begin_inset Quotes eld
17926 \end_inset
17927
17928 NewNote:
17929 \begin_inset Quotes erd
17930 \end_inset
17931
17932 , respectively].
17933  The color is a stunning magenta instead of blue, and the 
17934 \begin_inset Quotes eld
17935 \end_inset
17936
17937 ASCII line
17938 \begin_inset Quotes erd
17939 \end_inset
17940
17941  will look different, in style and in length.
17942  The label fonts of all three also differ from one another.
17943 \end_layout
17944
17945 \begin_layout Standard
17946 As with a 
17947 \family sans
17948 Slide
17949 \family default
17950 , if the contents of a 
17951 \family sans
17952 Note
17953 \family default
17954  or 
17955 \family sans
17956 Overlay
17957 \family default
17958  exceed the physical size of a slide or sheet of paper, the extra will overflow
17959  onto a new sheet.
17960  Again, you should avoid this.
17961  It defeats the whole purpose of 
17962 \family sans
17963 Note
17964 \family default
17965 s and 
17966 \family sans
17967 Overlay
17968 \family default
17969 s.
17970 \end_layout
17971
17972 \begin_layout Subsubsection
17973 Using 
17974 \family sans
17975 Overlay
17976 \family default
17977  with 
17978 \family sans
17979 Slide
17980 \end_layout
17981
17982 \begin_layout Standard
17983 The idea behind an 
17984 \family sans
17985 Overlay
17986 \family default
17987  is a slide that sits atop another slide.
17988  Perhaps you wish to discuss a figure on the main 
17989 \family sans
17990 Slide
17991 \family default
17992  before displaying the text associated with it.
17993  One way to accomplish this is tape a flap of dark paper over the part of
17994  the 
17995 \family sans
17996 Slide
17997 \family default
17998  you want to display later.
17999  This method fails, however, if you wish to overlap one graph with another,
18000  for example.
18001  You would then have to fumble while speaking to align the two separate,
18002  overlapping 
18003 \family sans
18004 Slide
18005 \family default
18006 s to align the two graphs.
18007  The use of an 
18008 \family sans
18009 Overlay
18010 \family default
18011  environment in both cases makes life much easier.
18012 \end_layout
18013
18014 \begin_layout Standard
18015 Each 
18016 \family sans
18017 Overlay
18018 \family default
18019  receives the page number of its 
18020 \begin_inset Quotes eld
18021 \end_inset
18022
18023 parent
18024 \begin_inset Quotes erd
18025 \end_inset
18026
18027  
18028 \family sans
18029 Slide
18030 \family default
18031 , appended by 
18032 \begin_inset Quotes eld
18033 \end_inset
18034
18035
18036 \family typewriter
18037 -a
18038 \family default
18039
18040 \begin_inset Quotes erd
18041 \end_inset
18042
18043 .
18044 \begin_inset Foot
18045 status collapsed
18046
18047 \begin_layout Plain Layout
18048 Presumably, mutliple 
18049 \family sans
18050 Overlay
18051 \family default
18052 s would have 
18053 \begin_inset Quotes eld
18054 \end_inset
18055
18056
18057 \family typewriter
18058 -a
18059 \family default
18060
18061 \begin_inset Quotes erd
18062 \end_inset
18063
18064
18065 \begin_inset Quotes eld
18066 \end_inset
18067
18068
18069 \family typewriter
18070 -b
18071 \family default
18072
18073 \begin_inset Quotes erd
18074 \end_inset
18075
18076
18077 \begin_inset Quotes eld
18078 \end_inset
18079
18080
18081 \family typewriter
18082 -c
18083 \family default
18084
18085 \begin_inset Quotes erd
18086 \end_inset
18087
18088 , etc.
18089 \begin_inset space ~
18090 \end_inset
18091
18092 appended to the page number of the parent 
18093 \family sans
18094 Slide
18095 \family default
18096 .
18097  
18098 \end_layout
18099
18100 \end_inset
18101
18102  Clearly, you want the contents of both the 
18103 \family sans
18104 Slide
18105 \family default
18106  and the 
18107 \family sans
18108 Overlay
18109 \family default
18110  to each fit on a single physical slide! You should probably consider an
18111  
18112 \family sans
18113 Overlay
18114 \family default
18115  as 
18116 \begin_inset Quotes eld
18117 \end_inset
18118
18119 part of
18120 \begin_inset Quotes erd
18121 \end_inset
18122
18123  a 
18124 \family sans
18125 Slide
18126 \family default
18127 .
18128  Indeed, the \SpecialChar LyX
18129  
18130 \family sans
18131 slides
18132 \family default
18133  class provides a visual cue for this: the label at the start of an 
18134 \family sans
18135 Overlay
18136 \family default
18137  is shorter than that at the start of a 
18138 \family sans
18139 Slide
18140 \family default
18141 .
18142  Lastly, when you generate printable output, you'll find alignment markers
18143  in all four corners of both the 
18144 \family sans
18145 Overlay
18146 \family default
18147  page and its parent 
18148 \family sans
18149 Slide
18150 \family default
18151 .
18152  These will assist you in lining up the two physical slides.
18153 \end_layout
18154
18155 \begin_layout Standard
18156 The major problem in overlaying two slides is aligning the contents of the
18157  two transparencies.
18158  How much space should you leave for that graph on the second slide? Worse
18159  still, what if you want a graph and a sentence on second slide, but there
18160  is text on the main transparency that goes in between them? You could try
18161  and insert vertical space of the right size.
18162  The better way is to use 
18163 \family sans
18164 InvisibleText
18165 \family default
18166  and 
18167 \family sans
18168 VisibleText
18169 \family default
18170 .
18171 \end_layout
18172
18173 \begin_layout Standard
18174 As their names imply, 
18175 \family sans
18176 InvisibleText
18177 \family default
18178  and 
18179 \family sans
18180 VisibleText
18181 \family default
18182  are two command-like paragraph environments that make all subsequent text
18183  invisible and visible, respectively.
18184  Note from section
18185 \begin_inset space ~
18186 \end_inset
18187
18188
18189 \begin_inset CommandInset ref
18190 LatexCommand ref
18191 reference "sec:slideQuirk"
18192
18193 \end_inset
18194
18195  that you don't place anything 
18196 \emph on
18197 into
18198 \emph default
18199  these two environments, however.
18200  When you create an 
18201 \family sans
18202 InvisibleText
18203 \family default
18204 , it inserts a centered, sky-blue label into the page reading 
18205 \begin_inset Quotes eld
18206 \end_inset
18207
18208 <Invisible Text Follows>
18209 \begin_inset Quotes erd
18210 \end_inset
18211
18212 .
18213  For paragraphs following this label, the parts of the 
18214 \family sans
18215 Slide
18216 \family default
18217  [or 
18218 \family sans
18219 Overlay
18220 \family default
18221 ; it doesn't matter which] where they would be contain instead blank space.
18222  
18223 \end_layout
18224
18225 \begin_layout Standard
18226 For 
18227 \family sans
18228 VisibleText
18229 \family default
18230 , the corresponding centered label is 
18231 \begin_inset Quotes eld
18232 \end_inset
18233
18234 <Visible Text Follows>
18235 \begin_inset Quotes erd
18236 \end_inset
18237
18238  in blazing green.
18239  Paragraphs following this label behave normally.
18240  Note that the beginning of a new 
18241 \family sans
18242 Slide
18243 \family default
18244
18245 \family sans
18246 Overlay
18247 \family default
18248 , or 
18249 \family sans
18250 Note
18251 \family default
18252  automatically shuts off an 
18253 \family sans
18254 InvisibleText
18255 \family default
18256 .
18257  It's therefore not necessary to use 
18258 \family sans
18259 VisibleText
18260 \family default
18261  at the end of a 
18262 \family sans
18263 Slide
18264 \family default
18265 .
18266 \end_layout
18267
18268 \begin_layout Standard
18269 By now, it should be obvious how to create overlay transparencies using
18270  the proper combination of 
18271 \family sans
18272 InvisibleText
18273 \family default
18274  and 
18275 \family sans
18276 VisibleText
18277 \family default
18278  on a 
18279 \family sans
18280 Slide
18281 \family default
18282  and 
18283 \family sans
18284 Overlay
18285 \family default
18286 :
18287 \end_layout
18288
18289 \begin_layout Enumerate
18290 Create a 
18291 \family sans
18292 Slide
18293 \family default
18294 , including everything that will appear on it, whether on the main slide
18295  or on the 
18296 \family sans
18297 Overlay
18298 \family default
18299 .
18300 \end_layout
18301
18302 \begin_layout Enumerate
18303 Before each figure or paragraph that will appear only on the 
18304 \family sans
18305 Overlay
18306 \family default
18307 , insert an 
18308 \family sans
18309 InvisibleText
18310 \family default
18311  environment.
18312  If necessary, insert a 
18313 \family sans
18314 VisibleText
18315 \family default
18316  environment after the 
18317 \family sans
18318 Overlay
18319 \family default
18320 -only text.
18321 \end_layout
18322
18323 \begin_layout Enumerate
18324 Start an 
18325 \family sans
18326 Overlay
18327 \family default
18328  immediately following the 
18329 \family sans
18330 Slide
18331 \family default
18332 .
18333 \end_layout
18334
18335 \begin_layout Enumerate
18336 Copy the contents of this 
18337 \family sans
18338 Slide
18339 \family default
18340  into the 
18341 \family sans
18342 Overlay
18343 \family default
18344 .
18345 \end_layout
18346
18347 \begin_layout Enumerate
18348 Within the 
18349 \family sans
18350 Overlay
18351 \family default
18352 , change all of the 
18353 \family sans
18354 InvisibleText
18355 \family default
18356  lines to 
18357 \family sans
18358 VisibleText
18359 \family default
18360  and vice-versa.
18361 \end_layout
18362
18363 \begin_layout Standard
18364 That's it.
18365  You've just made an 
18366 \family sans
18367 Overlay
18368 \family default
18369 .
18370 \end_layout
18371
18372 \begin_layout Standard
18373 There's one problem with the way I've designed the \SpecialChar LyX
18374  
18375 \family sans
18376 slides
18377 \family default
18378  class: you can't make text in the middle of a paragraph invisible, nor
18379  make text in the middle of an invisible paragraph visible again.
18380  To accomplish this feat, you'll need to use some inlined \SpecialChar LaTeX
18381  codes.
18382 \begin_inset Foot
18383 status collapsed
18384
18385 \begin_layout Plain Layout
18386 The commands of interest are: 
18387 \end_layout
18388
18389 \begin_layout Itemize
18390
18391 \family typewriter
18392 {
18393 \backslash
18394 invisible \SpecialChar ldots
18395  }
18396 \end_layout
18397
18398 \begin_layout Itemize
18399
18400 \family typewriter
18401 {
18402 \backslash
18403 visible \SpecialChar ldots
18404  }
18405 \end_layout
18406
18407 \begin_layout Plain Layout
18408 \SpecialChar ldots
18409 and need to be marked as \SpecialChar TeX
18410 .
18411  The text whose 
18412 \begin_inset Quotes eld
18413 \end_inset
18414
18415 visibility
18416 \begin_inset Quotes erd
18417 \end_inset
18418
18419  you wish to change goes in between the brackets [and after the 
18420 \family typewriter
18421
18422 \backslash
18423 invisible
18424 \family default
18425  or 
18426 \family typewriter
18427
18428 \backslash
18429 visible
18430 \family default
18431  command].
18432  If you don't know how to mark text as \SpecialChar TeX
18433 , see the appropriate section of
18434  the 
18435 \emph on
18436 User's Guide
18437 \emph default
18438 .
18439 \end_layout
18440
18441 \end_inset
18442
18443
18444 \end_layout
18445
18446 \begin_layout Subsubsection
18447 Using 
18448 \family sans
18449 Note
18450 \family default
18451  with 
18452 \family sans
18453 Slide
18454 \family default
18455
18456 \begin_inset CommandInset label
18457 LatexCommand label
18458 name "sec:slideNote"
18459
18460 \end_inset
18461
18462
18463 \end_layout
18464
18465 \begin_layout Standard
18466 Like an 
18467 \family sans
18468 Overlay
18469 \family default
18470 , a 
18471 \family sans
18472 Note
18473 \family default
18474  is associated with a 
18475 \begin_inset Quotes eld
18476 \end_inset
18477
18478 parent
18479 \begin_inset Quotes erd
18480 \end_inset
18481
18482  
18483 \family sans
18484 Slide
18485 \family default
18486 .
18487  Here, too, the \SpecialChar LyX
18488  
18489 \family sans
18490 slides
18491 \family default
18492  class provides visual cues.
18493  The label for a 
18494 \family sans
18495 Note
18496 \family default
18497  is shorter than that of a 
18498 \family sans
18499 Slide
18500 \family default
18501  [yet longer than that of an 
18502 \family sans
18503 Overlay
18504 \family default
18505 ] and, like the label of an 
18506 \family sans
18507 Overlay
18508 \family default
18509  is shockingly magenta.
18510  Additionally, the printed 
18511 \family sans
18512 Note
18513 \family default
18514  has the page number of its 
18515 \begin_inset Quotes eld
18516 \end_inset
18517
18518 parent
18519 \begin_inset Quotes erd
18520 \end_inset
18521
18522  
18523 \family sans
18524 Slide
18525 \family default
18526 , appended by 
18527 \begin_inset Quotes eld
18528 \end_inset
18529
18530
18531 \family typewriter
18532 -
18533 \family default
18534 1
18535 \begin_inset Quotes erd
18536 \end_inset
18537
18538
18539 \begin_inset Quotes eld
18540 \end_inset
18541
18542
18543 \family typewriter
18544 -
18545 \family default
18546 2
18547 \begin_inset Quotes erd
18548 \end_inset
18549
18550
18551 \begin_inset Quotes eld
18552 \end_inset
18553
18554
18555 \family typewriter
18556 -
18557 \family default
18558 3
18559 \begin_inset Quotes erd
18560 \end_inset
18561
18562 , etc.
18563  You can have multiple 
18564 \family sans
18565 Note
18566 \family default
18567 s associated with a single 
18568 \family sans
18569 Slide
18570 \family default
18571 , and, as with 
18572 \family sans
18573 Slide
18574 \family default
18575  and 
18576 \family sans
18577 Overlay
18578 \family default
18579 , you'll probably want to break up long 
18580 \family sans
18581 Note
18582 \family default
18583 s so that they fit on a single sheet of paper.
18584 \end_layout
18585
18586 \begin_layout Standard
18587 The purpose of a 
18588 \family sans
18589 Note
18590 \family default
18591  is obvious: it contains anything additional you might want to say about
18592  a 
18593 \family sans
18594 Slide
18595 \family default
18596 .
18597  It could also be used as a sheet of reminders for a particular 
18598 \family sans
18599 Slide
18600 \family default
18601 .
18602  In the case of the latter, you might want to make use of time markers.
18603  Currently, the \SpecialChar LyX
18604  
18605 \family sans
18606 slides
18607 \family default
18608  class has no 
18609 \begin_inset Quotes eld
18610 \end_inset
18611
18612 native
18613 \begin_inset Quotes erd
18614 \end_inset
18615
18616  support for time markers, a 
18617 \noun on
18618 Sli\SpecialChar TeX
18619
18620 \noun default
18621  feature.
18622  So, you'll have to resort to using the \SpecialChar LaTeX
18623  codes.
18624 \end_layout
18625
18626 \begin_layout Standard
18627 To use time markers, you'll need to specify the extra class option 
18628 \begin_inset Quotes eld
18629 \end_inset
18630
18631
18632 \family typewriter
18633 clock
18634 \family default
18635
18636 \begin_inset Quotes erd
18637 \end_inset
18638
18639  [see section
18640 \begin_inset space ~
18641 \end_inset
18642
18643
18644 \begin_inset CommandInset ref
18645 LatexCommand ref
18646 reference "sec:slidesetup"
18647
18648 \end_inset
18649
18650 ].
18651  This option turns on timing marks, which will appear in the lower-left-hand
18652  corner of every 
18653 \family sans
18654 Note
18655 \family default
18656  you generate.
18657  To set what appears in the time marker, you use the \SpecialChar LaTeX
18658  commands 
18659 \begin_inset Quotes eld
18660 \end_inset
18661
18662
18663 \family typewriter
18664
18665 \backslash
18666 settime{}
18667 \family default
18668
18669 \begin_inset Quotes erd
18670 \end_inset
18671
18672  and 
18673 \begin_inset Quotes eld
18674 \end_inset
18675
18676
18677 \family typewriter
18678
18679 \backslash
18680 addtime{}
18681 \family default
18682
18683 \begin_inset Quotes erd
18684 \end_inset
18685
18686 .
18687  The arguments of both commands are time measured in seconds.
18688  
18689 \begin_inset Quotes eld
18690 \end_inset
18691
18692
18693 \family typewriter
18694
18695 \backslash
18696 settime{}
18697 \family default
18698
18699 \begin_inset Quotes erd
18700 \end_inset
18701
18702  sets the time marker to a given time.
18703  
18704 \begin_inset Quotes eld
18705 \end_inset
18706
18707
18708 \family typewriter
18709
18710 \backslash
18711 addtime{}
18712 \family default
18713
18714 \begin_inset Quotes erd
18715 \end_inset
18716
18717  increments the time marker by the specified amount.
18718  Using time markers and 
18719 \family sans
18720 Note
18721 \family default
18722 s in this fashion, you can remind yourself how much time to spend on a particula
18723
18724 \family sans
18725 Slide
18726 \family default
18727 .
18728 \end_layout
18729
18730 \begin_layout Standard
18731 There's one last feature to describe.
18732  Clearly, you'd like to print out all of your 
18733 \family sans
18734 Slide
18735 \family default
18736 s and 
18737 \family sans
18738 Overlay
18739 \family default
18740 s on transparencies while printing all of your 
18741 \family sans
18742 Note
18743 \family default
18744 s on plain paper.
18745  However, a 
18746 \family sans
18747 Note
18748 \family default
18749  
18750 \emph on
18751 must
18752 \emph default
18753  follow the 
18754 \family sans
18755 Slide
18756 \family default
18757  with which it is associated.
18758  What's a person to do?
18759 \end_layout
18760
18761 \begin_layout Standard
18762 Luckily, there are two \SpecialChar LaTeX
18763  commands that allow you to select what to print
18764  out.
18765  Both must be placed into the preamble of your document.
18766  The command 
18767 \begin_inset Quotes eld
18768 \end_inset
18769
18770
18771 \family typewriter
18772
18773 \backslash
18774 onlyslides{
18775 \backslash
18776 slides}
18777 \family default
18778
18779 \begin_inset Quotes erd
18780 \end_inset
18781
18782  will cause the output to contain only the 
18783 \family sans
18784 Slide
18785 \family default
18786 s and 
18787 \family sans
18788 Overlay
18789 \family default
18790 s.
18791  Correspondingly, the command 
18792 \begin_inset Quotes eld
18793 \end_inset
18794
18795
18796 \family typewriter
18797
18798 \backslash
18799 onlynotes{
18800 \backslash
18801 notes}
18802 \family default
18803
18804 \begin_inset Quotes erd
18805 \end_inset
18806
18807  prevents the output of anything but 
18808 \family sans
18809 Note
18810 \family default
18811 s.
18812  I'd advise placing both commands in the preamble and initially comment
18813  both out.
18814  You can then preview your entire presentation as you write.
18815  When you're done writing, you can then uncomment one of the two to select
18816  what you want to print.
18817  I like to uncomment 
18818 \begin_inset Quotes eld
18819 \end_inset
18820
18821
18822 \family typewriter
18823
18824 \backslash
18825 onlyslides{
18826 \backslash
18827 slides}
18828 \family default
18829
18830 \begin_inset Quotes erd
18831 \end_inset
18832
18833  , print to a file with 
18834 \begin_inset Quotes eld
18835 \end_inset
18836
18837
18838 \family typewriter
18839 -slides
18840 \family default
18841
18842 \begin_inset Quotes erd
18843 \end_inset
18844
18845  in its name, comment it back out, then uncomment 
18846 \begin_inset Quotes eld
18847 \end_inset
18848
18849
18850 \family typewriter
18851
18852 \backslash
18853 onlynotes{
18854 \backslash
18855 notes}
18856 \family default
18857
18858 \begin_inset Quotes erd
18859 \end_inset
18860
18861  and print to a 
18862 \begin_inset Quotes eld
18863 \end_inset
18864
18865
18866 \family typewriter
18867 *-notes.ps
18868 \family default
18869
18870 \begin_inset Quotes erd
18871 \end_inset
18872
18873  file.
18874  I can then send either file to a printer, loading transparencies or plain
18875  paper as appropriate.
18876 \end_layout
18877
18878 \begin_layout Standard
18879 You can also provide other arguments to the 
18880 \begin_inset Quotes eld
18881 \end_inset
18882
18883
18884 \family typewriter
18885
18886 \backslash
18887 onlyslides{}
18888 \family default
18889
18890 \begin_inset Quotes erd
18891 \end_inset
18892
18893  and 
18894 \begin_inset Quotes eld
18895 \end_inset
18896
18897
18898 \family typewriter
18899
18900 \backslash
18901 onlynotes{}
18902 \family default
18903
18904 \begin_inset Quotes erd
18905 \end_inset
18906
18907  commands.
18908  See a good \SpecialChar LaTeX
18909  book for details.
18910 \end_layout
18911
18912 \begin_layout Subsection
18913 The 
18914 \family sans
18915 slides
18916 \family default
18917  Class Template File
18918 \end_layout
18919
18920 \begin_layout Standard
18921 I have also provided a template file, 
18922 \begin_inset Quotes eld
18923 \end_inset
18924
18925
18926 \family typewriter
18927 slides.lyx
18928 \family default
18929
18930 \begin_inset Quotes erd
18931 \end_inset
18932
18933 , with the 
18934 \family sans
18935 slides
18936 \family default
18937  class.
18938  To use it, begin your new presentation with 
18939 \family sans
18940 File\SpecialChar menuseparator
18941 New
18942 \begin_inset space ~
18943 \end_inset
18944
18945 from
18946 \begin_inset space ~
18947 \end_inset
18948
18949 Template
18950 \family default
18951 .
18952  Your new \SpecialChar LyX
18953  presentation file will contain an example 
18954 \family sans
18955 Slide
18956 \family default
18957  – 
18958 \family sans
18959 Overlay
18960 \family default
18961  – 
18962 \family sans
18963 Note
18964 \family default
18965  triplet.
18966  The 
18967 \family sans
18968 Slide
18969 \family default
18970  and 
18971 \family sans
18972 Overlay
18973 \family default
18974  additionally contain an example of the use of 
18975 \family sans
18976 InvisibleText
18977 \family default
18978  and 
18979 \family sans
18980 VisibleText
18981 \family default
18982 .
18983  Lastly, the preamble will contain:
18984 \end_layout
18985
18986 \begin_layout LyX-Code
18987 % Uncomment to print out only slides and overlays
18988 \end_layout
18989
18990 \begin_layout LyX-Code
18991 %
18992 \end_layout
18993
18994 \begin_layout LyX-Code
18995 %
18996 \backslash
18997 onlyslides{
18998 \backslash
18999 slides}
19000 \begin_inset Newline newline
19001 \end_inset
19002
19003  
19004 \end_layout
19005
19006 \begin_layout LyX-Code
19007 % Uncomment to print out only notes
19008 \end_layout
19009
19010 \begin_layout LyX-Code
19011 %
19012 \end_layout
19013
19014 \begin_layout LyX-Code
19015 %
19016 \backslash
19017 onlynotes{
19018 \backslash
19019 notes}
19020 \end_layout
19021
19022 \begin_layout Standard
19023 One final thing: I created this class to support the \SpecialChar LaTeX2e
19024  
19025 \begin_inset Quotes eld
19026 \end_inset
19027
19028
19029 \noun on
19030 Sli\SpecialChar TeX
19031
19032 \noun default
19033  emulation
19034 \begin_inset Quotes erd
19035 \end_inset
19036
19037  class, one of the built-in \SpecialChar LaTeX2e
19038  classes.
19039  Neither I nor the rest of the \SpecialChar LyX
19040  Team endorse or oppose the use of this built-in
19041  slide class.
19042  It's here if you want it or need it.
19043  There exist other \SpecialChar LaTeX2e
19044  classes for creating presentations, such as the 
19045 \family sans
19046 Foils
19047 \family default
19048  class [see section
19049 \begin_inset space ~
19050 \end_inset
19051
19052
19053 \begin_inset CommandInset ref
19054 LatexCommand ref
19055 reference "sec:foiltex"
19056
19057 \end_inset
19058
19059 ] or the 
19060 \begin_inset Quotes eld
19061 \end_inset
19062
19063
19064 \family typewriter
19065 seminar
19066 \family default
19067
19068 \begin_inset Quotes erd
19069 \end_inset
19070
19071  package [present on some \SpecialChar TeX
19072  distributions].
19073  The latter is not yet supported under \SpecialChar LyX
19074 .
19075 \begin_inset Foot
19076 status collapsed
19077
19078 \begin_layout Plain Layout
19079 Perhaps you can take on the task\SpecialChar ldots
19080
19081 \end_layout
19082
19083 \end_inset
19084
19085  I know nothing about these other classes.
19086  Try them out to see what sort of alternative they provide.
19087 \end_layout
19088
19089 \begin_layout Chapter
19090 \SpecialChar LyX
19091  Features needing Extra Software
19092 \end_layout
19093
19094 \begin_layout Section
19095 Checking \SpecialChar TeX
19096
19097 \end_layout
19098
19099 \begin_layout Standard
19100 by 
19101 \noun on
19102 Asger Alstrup
19103 \end_layout
19104
19105 \begin_layout Subsection
19106 Introduction
19107 \end_layout
19108
19109 \begin_layout Standard
19110 If you have the 
19111 \family typewriter
19112 chktex
19113 \family default
19114  program installed
19115 \begin_inset Foot
19116 status collapsed
19117
19118 \begin_layout Plain Layout
19119
19120 \family typewriter
19121 chktex
19122 \family default
19123  is not yet available when you are using the \SpecialChar LaTeX
19124  distribution MiK\SpecialChar TeX
19125 .
19126 \end_layout
19127
19128 \end_inset
19129
19130 , you'll find in the 
19131 \family sans
19132 Tools
19133 \family default
19134  menu the entry: 
19135 \family sans
19136 Check
19137 \begin_inset space ~
19138 \end_inset
19139
19140 TeX
19141 \family default
19142 .
19143  You can get 
19144 \family typewriter
19145 chktex
19146 \family default
19147  from CTAN,
19148 \begin_inset Newline newline
19149 \end_inset
19150
19151
19152 \begin_inset CommandInset href
19153 LatexCommand href
19154 target "https://www.ctan.org/tex-archive/help/Catalogue/entries/chktex.html"
19155 literal "false"
19156
19157 \end_inset
19158
19159 .
19160 \end_layout
19161
19162 \begin_layout Standard
19163 The 
19164 \family sans
19165 Chk\SpecialChar TeX
19166
19167 \family default
19168  package is a program that was written by 
19169 \begin_inset Flex Noun
19170 status collapsed
19171
19172 \begin_layout Plain Layout
19173 Jens T.
19174 \begin_inset space ~
19175 \end_inset
19176
19177 Berger Thielemann
19178 \end_layout
19179
19180 \end_inset
19181
19182  in frustration because some constructs in \SpecialChar LaTeX
19183  are sometimes non-intuitive,
19184  and easy to forget.
19185  The program runs over your \SpecialChar LaTeX
19186  file, checks the integrity of the file, and
19187  flags some common errors.
19188  In other technical words, it is 
19189 \family typewriter
19190 lint
19191 \family default
19192  for \SpecialChar LaTeX
19193 .
19194 \end_layout
19195
19196 \begin_layout Standard
19197 Well, what is a syntax checker doing in \SpecialChar LyX
19198  which is supposed to produce correct
19199  \SpecialChar LaTeX
19200  anyways? The answer is simple: Just as 
19201 \family typewriter
19202 Lint
19203 \family default
19204  not only checks the 
19205 \emph on
19206 syntax
19207 \emph default
19208  of C programs, but also does 
19209 \emph on
19210 semantic
19211 \emph default
19212  checks for type-errors, 
19213 \family sans
19214 Chk\SpecialChar TeX
19215
19216 \family default
19217  catches some common 
19218 \emph on
19219 typographic
19220 \emph default
19221  errors, in addition to the syntactical ones.
19222  Specifically, 
19223 \family sans
19224 Chk\SpecialChar TeX
19225
19226 \family default
19227  is capable of detecting several common errors, such as
19228 \end_layout
19229
19230 \begin_layout Itemize
19231 Ellipsis detection:
19232 \begin_inset Newline newline
19233 \end_inset
19234
19235 Use \SpecialChar ldots
19236  instead of ...
19237 \end_layout
19238
19239 \begin_layout Itemize
19240 No space in front of/after parenthesis:
19241 \begin_inset Newline newline
19242 \end_inset
19243
19244 ( wrong spacing )
19245 \end_layout
19246
19247 \begin_layout Itemize
19248 Enforcement of normal space after common abbreviations:
19249 \begin_inset Newline newline
19250 \end_inset
19251
19252 e.
19253 \begin_inset space \thinspace{}
19254 \end_inset
19255
19256 g.
19257 \begin_inset space \space{}
19258 \end_inset
19259
19260 is too wide spacing.
19261 \end_layout
19262
19263 \begin_layout Itemize
19264 Enforcement of end-of-sentence space when the last sentence ends with a
19265  capital letter:
19266 \begin_inset Newline newline
19267 \end_inset
19268
19269 This is a TEST.
19270  And this is wrong spacing.
19271 \end_layout
19272
19273 \begin_layout Itemize
19274 Space in front of labels and similar commands:
19275 \begin_inset Newline newline
19276 \end_inset
19277
19278 The label should stick right up to the text to avoid falling to a wrong
19279  page.
19280  
19281 \begin_inset CommandInset label
19282 LatexCommand label
19283 name "sec:chktex"
19284
19285 \end_inset
19286
19287  
19288 \begin_inset Foot
19289 status collapsed
19290
19291 \begin_layout Plain Layout
19292 This footnote is in danger of falling off to a wrong page
19293 \end_layout
19294
19295 \end_inset
19296
19297  The label is separated too much.
19298 \end_layout
19299
19300 \begin_layout Itemize
19301 Space in front of references, instead of hard spaces:
19302 \begin_inset Newline newline
19303 \end_inset
19304
19305 If you have bad luck, the text will break right between the referenced text
19306  and reference number, and that's a pity.
19307  See section 
19308 \begin_inset CommandInset ref
19309 LatexCommand ref
19310 reference "sec:chktex"
19311
19312 \end_inset
19313
19314 .
19315 \end_layout
19316
19317 \begin_layout Itemize
19318 Use of 
19319 \begin_inset Quotes eld
19320 \end_inset
19321
19322 x
19323 \begin_inset Quotes erd
19324 \end_inset
19325
19326  instead of 
19327 \begin_inset Formula $\times$
19328 \end_inset
19329
19330  between numbers:
19331 \begin_inset Newline newline
19332 \end_inset
19333
19334 2x2 looks cheap compared to 
19335 \begin_inset Formula $2\times2$
19336 \end_inset
19337
19338 .
19339 \end_layout
19340
19341 \begin_layout Standard
19342 and more \SpecialChar ldots
19343  It is an invaluable tool when you are 
19344 \begin_inset Quotes eld
19345 \end_inset
19346
19347 finishing up
19348 \begin_inset Quotes erd
19349 \end_inset
19350
19351  your document before printing, and you should run it right after the obligatory
19352  spelling check, and before you go fine tuning the typesetting.
19353 \end_layout
19354
19355 \begin_layout Subsection
19356 How to use it
19357 \end_layout
19358
19359 \begin_layout Standard
19360 If you have the program installed, usage is as simple as choosing 
19361 \family sans
19362 Tools\SpecialChar menuseparator
19363 Check
19364 \begin_inset space ~
19365 \end_inset
19366
19367 TeX
19368 \family default
19369 .
19370  This will make \SpecialChar LyX
19371  generate a \SpecialChar LaTeX
19372  file of your document, start 
19373 \family sans
19374 Chk\SpecialChar TeX
19375
19376 \family default
19377  to check it, and then make \SpecialChar LyX
19378  insert 
19379 \begin_inset Quotes eld
19380 \end_inset
19381
19382 error boxes
19383 \begin_inset Quotes erd
19384 \end_inset
19385
19386  with the warnings from 
19387 \family sans
19388 Chk\SpecialChar TeX
19389
19390 \family default
19391 , if there were any.
19392  The warnings will be placed close to the point of the mistake, and you
19393  can quickly find them by using the 
19394 \family sans
19395 Navigate\SpecialChar menuseparator
19396 Error
19397 \family default
19398  menu item, or the shortcut key 
19399 \family sans
19400 C-g
19401 \family default
19402  from the default 
19403 \family typewriter
19404 cua
19405 \family default
19406  bind file.
19407  Open the error boxes by clicking on them with the mouse, or use the shortcut
19408  key 
19409 \family sans
19410 C-i
19411 \family default
19412  from 
19413 \family typewriter
19414 cua
19415 \family default
19416  bindings, or the corresponding 
19417 \family sans
19418 C-o
19419 \family default
19420  for the alternate 
19421 \family typewriter
19422 emacs
19423 \family default
19424  bind file.
19425  Read the warning and correct the mistake, if it is a mistake.
19426  If you have trouble understanding what the warning is about, you can safely
19427  ignore it.
19428  Remember that there is a hidden layer between the document on screen and
19429  the technical details in invoking 
19430 \family sans
19431 Chk\SpecialChar TeX
19432
19433 \family default
19434 , and this gap can make some warnings seem arcane or just plain silly.
19435 \end_layout
19436
19437 \begin_layout Standard
19438 This document is an excellent testing bed for the feature, and it should
19439  provide quite a few warnings for you to fiddle with.
19440  Since computers are only so smart, expect most of the warnings to be false
19441  alarms, though.
19442 \end_layout
19443
19444 \begin_layout Subsection
19445 How to fine tune it
19446 \end_layout
19447
19448 \begin_layout Standard
19449 Sometimes, you'll find that 
19450 \family sans
19451 Chk\SpecialChar TeX
19452
19453 \family default
19454  makes more noise than suits your mood.
19455  Then you can choose not to use it, wait until your mood changes, or try
19456  to customize 
19457 \family sans
19458 Chk\SpecialChar TeX
19459
19460 \family default
19461  to get better along with you.
19462 \end_layout
19463
19464 \begin_layout Standard
19465 Although 
19466 \family sans
19467 Chk\SpecialChar TeX
19468
19469 \family default
19470  
19471 \emph on
19472 is
19473 \emph default
19474  very configurable and extensible, you should not expect to solve all problems
19475  with 
19476 \family sans
19477 Chk\SpecialChar TeX
19478
19479 \family default
19480  in \SpecialChar LyX
19481  this way.
19482  Since \SpecialChar LyX
19483  has to generate a somewhat special \SpecialChar LaTeX
19484  file to be able to match the
19485  line numbers from the 
19486 \family sans
19487 Chk\SpecialChar TeX
19488
19489 \family default
19490  output
19491 \begin_inset Foot
19492 status collapsed
19493
19494 \begin_layout Plain Layout
19495 You can inspect the specific output from 
19496 \family sans
19497 chktex
19498 \family default
19499  by using 
19500 \family sans
19501 Document\SpecialChar menuseparator
19502 \SpecialChar LaTeX
19503
19504 \begin_inset space ~
19505 \end_inset
19506
19507 Log
19508 \family default
19509  right after a 
19510 \family sans
19511 chktex
19512 \family default
19513  run.
19514 \end_layout
19515
19516 \end_inset
19517
19518  to the internal document structure, some of the warnings will not appear
19519  correctly.
19520  There are two things you can do about this:
19521 \end_layout
19522
19523 \begin_layout Itemize
19524 Fine tune the 
19525 \family sans
19526 Chk\SpecialChar TeX
19527
19528 \family default
19529  invocation command line in 
19530 \begin_inset Flex Noun
19531 status collapsed
19532
19533 \begin_layout Plain Layout
19534 Tools\SpecialChar menuseparator
19535 Preferences\SpecialChar menuseparator
19536 Output\SpecialChar menuseparator
19537 LaTeX\SpecialChar menuseparator
19538 CheckTeX command
19539 \end_layout
19540
19541 \end_inset
19542
19543 , or the global 
19544 \family sans
19545 Chk\SpecialChar TeX
19546
19547 \family default
19548  installation configuration file (usually with the file 
19549 \family typewriter
19550 chktexrc
19551 \family default
19552 ).
19553  See below to learn what warnings can be enabled and disabled on the command
19554  line.
19555 \end_layout
19556
19557 \begin_layout Itemize
19558 Export your document as a raw \SpecialChar LaTeX
19559  file using 
19560 \family sans
19561 File\SpecialChar menuseparator
19562 Export\SpecialChar menuseparator
19563 \SpecialChar LaTeX
19564
19565 \family default
19566  and run 
19567 \family typewriter
19568 chktex
19569 \family default
19570  manually on that.
19571  Invoked in this way, it can be a hassle to find the corresponding place
19572  in the document inside \SpecialChar LyX
19573 , but with a little patience, you should be able
19574  to do it.
19575 \end_layout
19576
19577 \begin_layout Standard
19578 Here follows the warning messages that can be enabled and disabled in 
19579 \family sans
19580 Preferences
19581 \family default
19582 .
19583  Use 
19584 \family typewriter
19585 -n#
19586 \family default
19587  to disable a warning, and 
19588 \family typewriter
19589 -w#
19590 \family default
19591  to enable a warning.
19592  The emphasized entries are disabled by default, because the default is
19593  "
19594 \family typewriter
19595 chktex -n1 -n3 -n6 -n9 -n22 -n25 -n30 -n38
19596 \family default
19597 ".
19598 \end_layout
19599
19600 \begin_layout Standard
19601 Notice that you should only use the options that enable and disable warnings,
19602  because \SpecialChar LyX
19603  relies on some of the other command line parameters to be set
19604  in a specific way to have a chance to communicate with 
19605 \family typewriter
19606 chktex
19607 \family default
19608 .
19609 \end_layout
19610
19611 \begin_layout Enumerate
19612
19613 \size small
19614 \emph on
19615 Command terminated with space.
19616 \end_layout
19617
19618 \begin_layout Enumerate
19619
19620 \size small
19621 Non-breaking space (
19622 \begin_inset Quotes eld
19623 \end_inset
19624
19625
19626 \family typewriter
19627 ~
19628 \family default
19629
19630 \begin_inset Quotes erd
19631 \end_inset
19632
19633 ) should have been used.
19634 \end_layout
19635
19636 \begin_layout Enumerate
19637
19638 \size small
19639 \emph on
19640 You should enclose the previous parenthesis with 
19641 \begin_inset Quotes eld
19642 \end_inset
19643
19644
19645 \family typewriter
19646 {}
19647 \family default
19648
19649 \begin_inset Quotes erd
19650 \end_inset
19651
19652 .
19653 \end_layout
19654
19655 \begin_layout Enumerate
19656
19657 \size small
19658 Italic correction (
19659 \begin_inset Quotes eld
19660 \end_inset
19661
19662
19663 \family typewriter
19664
19665 \backslash
19666 /
19667 \family default
19668
19669 \begin_inset Quotes erd
19670 \end_inset
19671
19672 ) found in non-italic buffer.
19673 \end_layout
19674
19675 \begin_layout Enumerate
19676
19677 \size small
19678 Italic correction (
19679 \begin_inset Quotes eld
19680 \end_inset
19681
19682
19683 \family typewriter
19684
19685 \backslash
19686 /
19687 \family default
19688
19689 \begin_inset Quotes erd
19690 \end_inset
19691
19692 ) found more than once.
19693 \end_layout
19694
19695 \begin_layout Enumerate
19696
19697 \size small
19698 \emph on
19699 No italic correction (
19700 \begin_inset Quotes eld
19701 \end_inset
19702
19703
19704 \family typewriter
19705
19706 \backslash
19707 /
19708 \family default
19709
19710 \begin_inset Quotes erd
19711 \end_inset
19712
19713 ) found.
19714 \end_layout
19715
19716 \begin_layout Enumerate
19717
19718 \size small
19719 Accent command 
19720 \begin_inset Quotes eld
19721 \end_inset
19722
19723
19724 \family typewriter
19725 cmd
19726 \family default
19727
19728 \begin_inset Quotes erd
19729 \end_inset
19730
19731  needs use of 
19732 \begin_inset Quotes eld
19733 \end_inset
19734
19735
19736 \family typewriter
19737 cmd
19738 \family default
19739
19740 \begin_inset Quotes erd
19741 \end_inset
19742
19743 .
19744 \end_layout
19745
19746 \begin_layout Enumerate
19747
19748 \size small
19749 Wrong length of dash may have been used.
19750 \end_layout
19751
19752 \begin_layout Enumerate
19753
19754 \size small
19755 \emph on
19756 \begin_inset Quotes eld
19757 \end_inset
19758
19759
19760 \family typewriter
19761 %s
19762 \family default
19763
19764 \begin_inset Quotes erd
19765 \end_inset
19766
19767  expected, found 
19768 \begin_inset Quotes eld
19769 \end_inset
19770
19771
19772 \family typewriter
19773 %s
19774 \family default
19775
19776 \begin_inset Quotes erd
19777 \end_inset
19778
19779 .
19780 \end_layout
19781
19782 \begin_layout Enumerate
19783
19784 \size small
19785 Solo 
19786 \begin_inset Quotes eld
19787 \end_inset
19788
19789
19790 \family typewriter
19791 %s
19792 \family default
19793
19794 \begin_inset Quotes erd
19795 \end_inset
19796
19797  found.
19798 \end_layout
19799
19800 \begin_layout Enumerate
19801
19802 \size small
19803 You should use 
19804 \begin_inset Quotes eld
19805 \end_inset
19806
19807
19808 \family typewriter
19809 %s
19810 \family default
19811
19812 \begin_inset Quotes erd
19813 \end_inset
19814
19815  to achieve an ellipsis.
19816 \end_layout
19817
19818 \begin_layout Enumerate
19819
19820 \size small
19821 Inter-word spacing (
19822 \begin_inset Quotes eld
19823 \end_inset
19824
19825
19826 \family typewriter
19827
19828 \backslash
19829
19830 \family default
19831  
19832 \begin_inset Quotes eld
19833 \end_inset
19834
19835 ) should perhaps be used.
19836 \end_layout
19837
19838 \begin_layout Enumerate
19839
19840 \size small
19841 Inter-sentence spacing (
19842 \begin_inset Quotes eld
19843 \end_inset
19844
19845
19846 \family typewriter
19847
19848 \backslash
19849 @
19850 \family default
19851
19852 \begin_inset Quotes erd
19853 \end_inset
19854
19855 ) should perhaps be used.
19856 \end_layout
19857
19858 \begin_layout Enumerate
19859
19860 \size small
19861 Could not find argument for command.
19862 \end_layout
19863
19864 \begin_layout Enumerate
19865
19866 \size small
19867 No match found for 
19868 \begin_inset Quotes eld
19869 \end_inset
19870
19871
19872 \family typewriter
19873 %s
19874 \family default
19875
19876 \begin_inset Quotes erd
19877 \end_inset
19878
19879 .
19880 \end_layout
19881
19882 \begin_layout Enumerate
19883
19884 \size small
19885 Math mode still on at end of \SpecialChar LaTeX
19886  file.
19887 \end_layout
19888
19889 \begin_layout Enumerate
19890
19891 \size small
19892 Number of 
19893 \begin_inset Quotes eld
19894 \end_inset
19895
19896
19897 \family typewriter
19898 char
19899 \family default
19900
19901 \begin_inset Quotes erd
19902 \end_inset
19903
19904  doesn't match the number of 
19905 \begin_inset Quotes eld
19906 \end_inset
19907
19908
19909 \family typewriter
19910 char
19911 \family default
19912
19913 \begin_inset Quotes erd
19914 \end_inset
19915
19916 .
19917 \end_layout
19918
19919 \begin_layout Enumerate
19920
19921 \size small
19922 You should use either 
19923 \family typewriter
19924
19925 \begin_inset Quotes eld
19926 \end_inset
19927
19928
19929 \family default
19930  or 
19931 \family typewriter
19932
19933 \begin_inset Quotes erd
19934 \end_inset
19935
19936
19937 \family default
19938  as an alternative to 
19939 \begin_inset Quotes eld
19940 \end_inset
19941
19942
19943 \family typewriter
19944 "
19945 \family default
19946
19947 \begin_inset Quotes erd
19948 \end_inset
19949
19950 .
19951 \end_layout
19952
19953 \begin_layout Enumerate
19954
19955 \size small
19956 You should use "
19957 \family typewriter
19958 '
19959 \family default
19960 " (ASCII 39) instead of "
19961 \family typewriter
19962 ´
19963 \family default
19964 " (ASCII 180).
19965 \end_layout
19966
19967 \begin_layout Enumerate
19968
19969 \size small
19970 User-specified pattern found.
19971 \end_layout
19972
19973 \begin_layout Enumerate
19974
19975 \size small
19976 This command might not be intended.
19977 \end_layout
19978
19979 \begin_layout Enumerate
19980
19981 \size small
19982 \emph on
19983 Comment displayed.
19984 \end_layout
19985
19986 \begin_layout Enumerate
19987
19988 \size small
19989 Either 
19990 \family typewriter
19991 ''
19992 \backslash
19993 ,'
19994 \family default
19995  or 
19996 \family typewriter
19997 '
19998 \backslash
19999 ,''
20000 \family default
20001  will look better.
20002 \end_layout
20003
20004 \begin_layout Enumerate
20005
20006 \size small
20007 Delete this space to maintain correct page references.
20008 \end_layout
20009
20010 \begin_layout Enumerate
20011
20012 \size small
20013 \emph on
20014 You might wish to put this between a pair of 
20015 \begin_inset Quotes eld
20016 \end_inset
20017
20018
20019 \family typewriter
20020 {}
20021 \family default
20022
20023 \begin_inset Quotes erd
20024 \end_inset
20025
20026 .
20027 \end_layout
20028
20029 \begin_layout Enumerate
20030
20031 \size small
20032 You ought to remove spaces in front of punctuation.
20033 \end_layout
20034
20035 \begin_layout Enumerate
20036
20037 \size small
20038 Could not execute \SpecialChar LaTeX
20039  command.
20040 \end_layout
20041
20042 \begin_layout Enumerate
20043
20044 \size small
20045 Don't use 
20046 \family typewriter
20047
20048 \backslash
20049 /
20050 \family default
20051  in front of small punctuation.
20052 \end_layout
20053
20054 \begin_layout Enumerate
20055
20056 \family typewriter
20057 \size small
20058 $
20059 \backslash
20060 times$
20061 \family default
20062  may look prettier here.
20063 \end_layout
20064
20065 \begin_layout Enumerate
20066
20067 \size small
20068 \emph on
20069 Multiple spaces detected in output.
20070 \end_layout
20071
20072 \begin_layout Enumerate
20073
20074 \size small
20075 This text may be ignored.
20076 \end_layout
20077
20078 \begin_layout Enumerate
20079
20080 \size small
20081 Use 
20082 \family typewriter
20083
20084 \begin_inset Quotes eld
20085 \end_inset
20086
20087
20088 \family default
20089  to begin quotation, not 
20090 \family typewriter
20091 '
20092 \family default
20093 .
20094 \end_layout
20095
20096 \begin_layout Enumerate
20097
20098 \size small
20099 Use 
20100 \family typewriter
20101 '
20102 \family default
20103  to end quotation, not 
20104 \family typewriter
20105
20106 \begin_inset Quotes eld
20107 \end_inset
20108
20109
20110 \family default
20111 .
20112 \end_layout
20113
20114 \begin_layout Enumerate
20115
20116 \size small
20117 Don't mix quotes.
20118 \end_layout
20119
20120 \begin_layout Enumerate
20121
20122 \size small
20123 You should perhaps use 
20124 \begin_inset Quotes eld
20125 \end_inset
20126
20127
20128 \family typewriter
20129 cmd
20130 \family default
20131
20132 \begin_inset Quotes erd
20133 \end_inset
20134
20135  instead.
20136 \end_layout
20137
20138 \begin_layout Enumerate
20139
20140 \size small
20141 You should put a space in front of/after parenthesis.
20142 \end_layout
20143
20144 \begin_layout Enumerate
20145
20146 \size small
20147 You should avoid spaces in front of/after parenthesis.
20148 \end_layout
20149
20150 \begin_layout Enumerate
20151
20152 \size small
20153 \emph on
20154 You should not use punctuation in front of/after quotes.
20155 \end_layout
20156
20157 \begin_layout Enumerate
20158
20159 \size small
20160 Double space found.
20161 \end_layout
20162
20163 \begin_layout Enumerate
20164
20165 \size small
20166 You should put punctuation outside inner/inside display math mode.
20167 \end_layout
20168
20169 \begin_layout Enumerate
20170
20171 \size small
20172 You ought to not use primitive \SpecialChar TeX
20173  in \SpecialChar LaTeX
20174  code.
20175 \end_layout
20176
20177 \begin_layout Enumerate
20178
20179 \size small
20180 You should remove spaces in front of 
20181 \begin_inset Quotes eld
20182 \end_inset
20183
20184
20185 \family typewriter
20186 %s
20187 \family default
20188
20189 \begin_inset Quotes erd
20190 \end_inset
20191
20192
20193 \end_layout
20194
20195 \begin_layout Enumerate
20196
20197 \size small
20198 \begin_inset Quotes eld
20199 \end_inset
20200
20201
20202 \family typewriter
20203 %s
20204 \family default
20205
20206 \begin_inset Quotes erd
20207 \end_inset
20208
20209  is normally not followed by 
20210 \begin_inset Quotes eld
20211 \end_inset
20212
20213
20214 \family typewriter
20215 %c
20216 \family default
20217
20218 \begin_inset Quotes erd
20219 \end_inset
20220
20221 .
20222 \end_layout
20223
20224 \begin_layout Standard
20225 In later versions of \SpecialChar LyX
20226 , we hope to provide a more complete interface to this
20227  tool (and it's smaller cousin 
20228 \family typewriter
20229 lacheck
20230 \family default
20231 ) to exploit the full power of it.
20232  But it's not exactly useless as it is now: go try it on one of your existing
20233  documents of a certain length and be surprised.
20234 \end_layout
20235
20236 \begin_layout Section
20237 Version Control in \SpecialChar LyX
20238
20239 \end_layout
20240
20241 \begin_layout Standard
20242 by
20243 \noun on
20244  Lars Gullik Bjønnes 
20245 \noun default
20246 and 
20247 \noun on
20248 Pavel Sanda
20249 \end_layout
20250
20251 \begin_layout Subsection
20252 Introduction
20253 \end_layout
20254
20255 \begin_layout Standard
20256 \SpecialChar LyX
20257  supports some of the most basic RCS/CVS/SVN/GIT commands.
20258  If you need something a bit more sophisticated you will have to do that
20259  manually in a terminal.
20260 \end_layout
20261
20262 \begin_layout Standard
20263 Also note that CVS support is not as good as subversion support, so we advise
20264  using SVN instead.
20265  A good place to start learning Subversion is the SVN Book
20266 \begin_inset Foot
20267 status collapsed
20268
20269 \begin_layout Plain Layout
20270 \begin_inset CommandInset href
20271 LatexCommand href
20272 target "http://svnbook.red-bean.com/"
20273 literal "false"
20274
20275 \end_inset
20276
20277
20278 \end_layout
20279
20280 \end_inset
20281
20282 .
20283  In the case of RCS you should read 
20284 \begin_inset Quotes eld
20285 \end_inset
20286
20287 rcsintro
20288 \begin_inset Quotes erd
20289 \end_inset
20290
20291  (a man file, read it with 
20292 \family typewriter
20293 man rcsintro
20294 \family default
20295 ).
20296  This file describes all the basic features of RCS.
20297  You should especially notice the comment about a RCS directory, and the
20298  notion of a master RCS file (the file ending in 
20299 \family typewriter
20300 ,v
20301 \family default
20302 ).
20303 \end_layout
20304
20305 \begin_layout Standard
20306 Before you begin to use the version control features in \SpecialChar LyX
20307 , you should be
20308  familiar with RCS/CVS/SVN/GIT usage.
20309  The implementation in \SpecialChar LyX
20310  assumes a recent version of the GNU RCS or CVS/SVN
20311  package — no guarantees are made for older versions.
20312  Most of the log messages are not currently displayed after operations —
20313  you can check them in the Messages pane if you are unsure.
20314  Regular users of version control will appreciate the VC toolbar, which
20315  can be enabled via 
20316 \family sans
20317 View\SpecialChar menuseparator
20318 Toolbars\SpecialChar menuseparator
20319 Version
20320 \begin_inset space ~
20321 \end_inset
20322
20323 Control
20324 \family default
20325 .
20326 \end_layout
20327
20328 \begin_layout Standard
20329 For introducing your own external commands consult 
20330 \begin_inset Flex Code
20331 status collapsed
20332
20333 \begin_layout Plain Layout
20334 vc-command
20335 \end_layout
20336
20337 \end_inset
20338
20339  in the manual 
20340 \emph on
20341 \SpecialChar LyX
20342  Functions
20343 \emph default
20344 .
20345 \end_layout
20346
20347 \begin_layout Standard
20348 It is strongly recommended to store documents in uncompressed format if
20349  using version control (uncheck 
20350 \family sans
20351 Document\SpecialChar menuseparator
20352 Compressed
20353 \family default
20354  if it is checked): Uncompressed LyX documents are text files and therefore
20355  for merging two different versions by version control systems.
20356  Compressed LyX documents are binary files, which cannot be merged by version
20357  control systems.
20358 \end_layout
20359
20360 \begin_layout Subsection
20361 RCS commands in \SpecialChar LyX
20362
20363 \end_layout
20364
20365 \begin_layout Standard
20366 The following sections describe the RCS commands supported by \SpecialChar LyX
20367 .
20368  You can find them in the 
20369 \family sans
20370 File\SpecialChar menuseparator
20371 Version
20372 \begin_inset space ~
20373 \end_inset
20374
20375 Control
20376 \family default
20377  submenu.
20378  \SpecialChar LyX
20379  was tested against RCS 5.7/5.8.
20380 \end_layout
20381
20382 \begin_layout Subsubsection
20383
20384 \family sans
20385 Register
20386 \end_layout
20387
20388 \begin_layout Standard
20389 If your document is not under revision control, this is the only item shown
20390  in the menu.
20391  And if it is under revision control, the 
20392 \family sans
20393 Register
20394 \family default
20395  item is not visible.
20396  
20397 \end_layout
20398
20399 \begin_layout Standard
20400 This command registers your document with RCS (unless you are under the
20401  directory managed by CVS)\SpecialChar endofsentence
20402  You are asked interactively to supply an initial
20403  description of the document.
20404  The document is now set in Read-Only mode and you have to 
20405 \family sans
20406 Check
20407 \begin_inset space ~
20408 \end_inset
20409
20410 Out
20411 \begin_inset space ~
20412 \end_inset
20413
20414 For
20415 \begin_inset space ~
20416 \end_inset
20417
20418 Edit
20419 \family default
20420 , before making any changes to it.
20421  A document under revision control has a 
20422 \begin_inset Quotes eld
20423 \end_inset
20424
20425 [RCS:<version> <locker>]
20426 \begin_inset Quotes erd
20427 \end_inset
20428
20429  item tagged to the filename in the minibuffer.
20430 \end_layout
20431
20432 \begin_layout Standard
20433 RCS command that is run:
20434 \end_layout
20435
20436 \begin_layout LyX-Code
20437
20438 \family typewriter
20439 ci -q -u -i -t-"<initial description>" <file-name>
20440 \end_layout
20441
20442 \begin_layout Standard
20443 Read 
20444 \family typewriter
20445 man ci
20446 \family default
20447  to understand the switches.
20448  
20449 \end_layout
20450
20451 \begin_layout Subsubsection
20452
20453 \family sans
20454 Check In Changes
20455 \end_layout
20456
20457 \begin_layout Standard
20458 When you are finished editing a file, you check in your changes.
20459  When you do this, you are asked for a description of the changes.
20460  This is stored in the history log.
20461  The version number is bumped, your changes are applied to the master RCS
20462  file, the document is unlocked and set to Read-Only mode.
20463 \end_layout
20464
20465 \begin_layout Itemize
20466 RCS command: 
20467 \family typewriter
20468 ci -q -u -m"<description>" <file-name>
20469 \end_layout
20470
20471 \begin_layout Subsubsection
20472
20473 \family sans
20474 Check Out For Edit
20475 \end_layout
20476
20477 \begin_layout Standard
20478 By doing this you lock the document so that only you can edit it.
20479  This will also make the document Read-Write only for you.
20480  You will usually continue editing for a while and when you are finished
20481  you check in your changes.
20482  The status line is changed to reflect that you have locked the file.
20483 \end_layout
20484
20485 \begin_layout Itemize
20486 RCS command: 
20487 \family typewriter
20488 co -q -l <file-name>
20489 \end_layout
20490
20491 \begin_layout Subsubsection
20492
20493 \family sans
20494 Revert To Repository Version
20495 \end_layout
20496
20497 \begin_layout Standard
20498 This will discard all changes made to the document since the last check
20499  in.
20500  You get a warning before changes are discarded.
20501 \end_layout
20502
20503 \begin_layout Itemize
20504 RCS command: 
20505 \family typewriter
20506 co -f -u<version> <file-name>
20507 \end_layout
20508
20509 \begin_layout Subsubsection
20510
20511 \family sans
20512 Copy
20513 \end_layout
20514
20515 \begin_layout Standard
20516 This will create a copy of the current document.
20517  Since RCS does not support copy operations natively, the version history
20518  is not preserved, and the copy is added as a new file.
20519  It requires a clean document without any changes since the last checkin.
20520  You are asked for a file name and a description of the copy operation.
20521  After that the copy is created, both locally and in the repository.
20522  If the parent directories of the copied and original document differ, all
20523  relative paths of included files of the copy are adjusted (like in 
20524 \family sans
20525 File\SpecialChar menuseparator
20526 Save As
20527 \family default
20528 \SpecialChar ldots
20529 ).
20530  Finally, the copy is loaded instead of the original document.
20531 \end_layout
20532
20533 \begin_layout Labeling
20534 \labelwidthstring 00.00.0000
20535 RCS
20536 \begin_inset space ~
20537 \end_inset
20538
20539 commands: 
20540 \begin_inset space ~
20541 \end_inset
20542
20543
20544 \begin_inset Newline newline
20545 \end_inset
20546
20547 Copy 
20548 \begin_inset Flex Code
20549 status collapsed
20550
20551 \begin_layout Plain Layout
20552
20553 \family typewriter
20554 \begin_inset Quotes qld
20555 \end_inset
20556
20557 <file-name>
20558 \begin_inset Quotes qld
20559 \end_inset
20560
20561
20562 \end_layout
20563
20564 \end_inset
20565
20566  to 
20567 \begin_inset Flex Code
20568 status collapsed
20569
20570 \begin_layout Plain Layout
20571
20572 \family typewriter
20573 \begin_inset Quotes qld
20574 \end_inset
20575
20576 <new-file-name>
20577 \begin_inset Quotes qld
20578 \end_inset
20579
20580
20581 \end_layout
20582
20583 \end_inset
20584
20585
20586 \begin_inset Newline newline
20587 \end_inset
20588
20589
20590 \begin_inset Flex Code
20591 status collapsed
20592
20593 \begin_layout Plain Layout
20594 ci -q -u 
20595 \family typewriter
20596 -i 
20597 \begin_inset Quotes qld
20598 \end_inset
20599
20600 <new-file-name>
20601 \begin_inset Quotes qld
20602 \end_inset
20603
20604
20605 \end_layout
20606
20607 \end_inset
20608
20609
20610 \end_layout
20611
20612 \begin_layout Subsubsection
20613
20614 \family sans
20615 Undo Last Checkin
20616 \end_layout
20617
20618 \begin_layout Standard
20619 This makes as if the last check in never happened.
20620  No changes are made to the document loaded into \SpecialChar LyX
20621 , but the last version
20622  is removed from the master RCS file.
20623 \end_layout
20624
20625 \begin_layout Itemize
20626 RCS command: 
20627 \family typewriter
20628 rcs -o<version> <file-name>
20629 \end_layout
20630
20631 \begin_layout Subsubsection
20632
20633 \family sans
20634 Show History
20635 \end_layout
20636
20637 \begin_layout Standard
20638 This shows the complete history of the RCS document.
20639  The output of 
20640 \family typewriter
20641 rlog <file-name>
20642 \family default
20643  is shown in a browser.
20644  See 
20645 \family typewriter
20646 man rlog
20647 \family default
20648  for more info.
20649 \end_layout
20650
20651 \begin_layout Subsubsection
20652 Revision info
20653 \end_layout
20654
20655 \begin_layout Standard
20656 \SpecialChar LyX
20657  supports RCS version number, author name, date and time of last commit.
20658  All those are extracted from 
20659 \family typewriter
20660 rlog -r <file-name>
20661 \family default
20662 .
20663  See 
20664 \begin_inset CommandInset ref
20665 LatexCommand ref
20666 reference "subsec:VCS-Revision-Information"
20667
20668 \end_inset
20669
20670  for details.
20671 \end_layout
20672
20673 \begin_layout Subsection
20674 CVS commands in \SpecialChar LyX
20675
20676 \end_layout
20677
20678 \begin_layout Standard
20679 A subset of CVS operations is supported by \SpecialChar LyX
20680 .
20681  You can find the commands in the 
20682 \family sans
20683 File\SpecialChar menuseparator
20684 Version
20685 \begin_inset space ~
20686 \end_inset
20687
20688 Control
20689 \family default
20690  submenu.
20691  The version control system SVN is more powerful, so please use it instead
20692  of CVS if possible.
20693 \end_layout
20694
20695 \begin_layout Subsubsection
20696
20697 \family sans
20698 General CVS usage
20699 \end_layout
20700
20701 \begin_layout Standard
20702 If you start from scratch with CVS you have to create your repository and
20703  checkout the working copy with external tools.
20704  If you're using a client-server setup you may need to login before doing
20705  the first repository checkout.
20706 \end_layout
20707
20708 \begin_layout Standard
20709 If your documents are under revision control and others are using the same
20710  repository problems arise when different changes to the same document at
20711  the same location happen.
20712  Standard CVS repositories don't operate with a file locking mechanism.
20713  This may be surprising, but conflicts only occur if people disagree on
20714  the proper content of the same part of a document.
20715  So, if co-workers are used to communicate regularly, these conflicts occur
20716  rarely.
20717  If they don't communicate they have a fundamental problem anyway.
20718  Nevertheless some people like to work with so called 
20719 \begin_inset Quotes eld
20720 \end_inset
20721
20722 reserved checkouts
20723 \begin_inset Quotes erd
20724 \end_inset
20725
20726 .
20727  If they do so the working copy of all files is readonly when checked out
20728  first and the user starts editing after using a special command to make
20729  the working copy writable.
20730  When the changes are checked in the working copy returns to readonly state.
20731  With \SpecialChar LyX
20732  one has to edit the 
20733 \begin_inset Flex Code
20734 status collapsed
20735
20736 \begin_layout Plain Layout
20737 .cvsrc
20738 \end_layout
20739
20740 \end_inset
20741
20742  file and add the line 
20743 \begin_inset Flex Code
20744 status collapsed
20745
20746 \begin_layout Plain Layout
20747 cvs -r
20748 \end_layout
20749
20750 \end_inset
20751
20752  to work with reserved checkouts.
20753  The benefit is the possibility to see who is using a writable copy of some
20754  document.
20755  It's not guaranteed only one user makes a copy writable.
20756 \end_layout
20757
20758 \begin_layout Standard
20759 \SpecialChar LyX
20760  tries to guess if you're using reserved or non-reserved checkouts.
20761  If your working copy is readonly or it is writable and an additional copy
20762  of your document exists in the CVS/Base sub-directory a reserved otherwise
20763  a non-reserved checkout is assumed.
20764  When a reserved checkout is detected you have to use 
20765 \begin_inset Flex Noun
20766 status collapsed
20767
20768 \begin_layout Plain Layout
20769 Check Out
20770 \end_layout
20771
20772 \end_inset
20773
20774  to make your working copy writable if it's readonly.
20775  After doing so the 
20776 \begin_inset Flex Noun
20777 status collapsed
20778
20779 \begin_layout Plain Layout
20780 Check In
20781 \end_layout
20782
20783 \end_inset
20784
20785  operation is possible and that makes your working copy readonly again after
20786  transferring your changes to the repository.
20787 \end_layout
20788
20789 \begin_layout Standard
20790 More information about CVS can be found here 
20791 \begin_inset Flex URL
20792 status collapsed
20793
20794 \begin_layout Plain Layout
20795
20796 http://www.nongnu.org/cvs
20797 \end_layout
20798
20799 \end_inset
20800
20801  and here 
20802 \begin_inset Flex URL
20803 status collapsed
20804
20805 \begin_layout Plain Layout
20806
20807 http://ximbiot.com/cvs
20808 \end_layout
20809
20810 \end_inset
20811
20812 .
20813 \end_layout
20814
20815 \begin_layout Standard
20816 Read 
20817 \family typewriter
20818 man cvs
20819 \family default
20820  to understand the sub-commands and the switches mentioned below.
20821 \end_layout
20822
20823 \begin_layout Subsubsection
20824
20825 \family sans
20826 Register
20827 \end_layout
20828
20829 \begin_layout Standard
20830 If your document is not under revision control, this is the only item shown
20831  in the menu.
20832  And if it is under revision control, the 
20833 \family sans
20834 Register
20835 \family default
20836  item is not visible.
20837  
20838 \end_layout
20839
20840 \begin_layout Standard
20841 This command registers in CVS your document 
20842 \begin_inset Flex Strong
20843 status collapsed
20844
20845 \begin_layout Plain Layout
20846
20847 \emph on
20848 only
20849 \end_layout
20850
20851 \end_inset
20852
20853  in the case you have already the documents directory under CVS control
20854  (in particular 
20855 \family typewriter
20856 CVS/Entries
20857 \family default
20858  file exists).
20859  This means you have to create or checkout the archive by yourself using
20860  external tools.
20861  (In case you forget that step \SpecialChar LyX
20862  registers the document with RCS.)
20863 \end_layout
20864
20865 \begin_layout Standard
20866 Then you are asked interactively to supply an initial description of the
20867  document.
20868  Don't forget that registered file is not yet checked in.
20869 \end_layout
20870
20871 \begin_layout Standard
20872 CVS command that is run: 
20873 \family typewriter
20874 cvs -q add -m"<entered message>" "<file-name>"
20875 \end_layout
20876
20877 \begin_layout Standard
20878 The term 
20879 \family typewriter
20880 "<file-name>"
20881 \family default
20882  above and for all other CVS commands is an abbreviation for 
20883 \begin_inset Quotes eld
20884 \end_inset
20885
20886 change the current working directory to file location and use the file name
20887  without path component as argument
20888 \begin_inset Quotes erd
20889 \end_inset
20890
20891 .
20892 \end_layout
20893
20894 \begin_layout Subsubsection
20895
20896 \family sans
20897 Check In Changes
20898 \end_layout
20899
20900 \begin_layout Standard
20901 When you are finished editing a file, you commit your changes.
20902  When you do this and you had changed the document, you are asked for a
20903  description of the changes.
20904  After that changes are written to the repository.
20905  In case you didn't change the document and a reserved checkout is detected
20906  the reservation made on 
20907 \begin_inset Flex Noun
20908 status collapsed
20909
20910 \begin_layout Plain Layout
20911 Check Out
20912 \end_layout
20913
20914 \end_inset
20915
20916  is undone.
20917 \end_layout
20918
20919 \begin_layout Labeling
20920 \labelwidthstring 00.00.0000
20921 CVS
20922 \begin_inset space ~
20923 \end_inset
20924
20925 command: 
20926 \begin_inset space ~
20927 \end_inset
20928
20929
20930 \begin_inset Newline newline
20931 \end_inset
20932
20933
20934 \begin_inset Flex Code
20935 status collapsed
20936
20937 \begin_layout Plain Layout
20938 cvs 
20939 \family typewriter
20940 -q commit -m"<description>" "<file-name>"
20941 \end_layout
20942
20943 \end_inset
20944
20945  or
20946 \begin_inset Newline newline
20947 \end_inset
20948
20949
20950 \begin_inset Flex Code
20951 status collapsed
20952
20953 \begin_layout Plain Layout
20954 cvs -q unedit 
20955 \family typewriter
20956 "<file-name>"
20957 \end_layout
20958
20959 \end_inset
20960
20961
20962 \end_layout
20963
20964 \begin_layout Subsubsection
20965
20966 \family sans
20967 Check Out Changes
20968 \end_layout
20969
20970 \begin_layout Standard
20971 When you are sharing a repository with others, you may have to incorporate
20972  their changes into your working copy.
20973 \end_layout
20974
20975 \begin_layout Standard
20976 CVS command: 
20977 \family typewriter
20978 cvs -q update "<file-name>"
20979 \end_layout
20980
20981 \begin_layout Standard
20982 If a readonly checkout is detected the working copy is made writable and
20983  reserved.
20984 \end_layout
20985
20986 \begin_layout Standard
20987 CVS command: 
20988 \family typewriter
20989 cvs -q edit "<file-name>"
20990 \end_layout
20991
20992 \begin_layout Subsubsection
20993
20994 \family sans
20995 Revert To Repository Version
20996 \end_layout
20997
20998 \begin_layout Standard
20999 This will discard all changes made to the document since the last check
21000  in.
21001  You get a warning before changes are discarded.
21002  Firstly the file is deleted, secondly CVS update command is run.
21003 \end_layout
21004
21005 \begin_layout Standard
21006 CVS command: 
21007 \family typewriter
21008 cvs -q update "<file-name>"
21009 \end_layout
21010
21011 \begin_layout Standard
21012 If a reserved checkout is detected and the working copy has no changes only
21013  the reservation is undone.
21014 \end_layout
21015
21016 \begin_layout Standard
21017 CVS command: 
21018 \family typewriter
21019 cvs -q unedit "<file-name>"
21020 \end_layout
21021
21022 \begin_layout Subsubsection
21023
21024 \family sans
21025 Copy
21026 \end_layout
21027
21028 \begin_layout Standard
21029 This will create a copy of the current document.
21030  Since CVS does not support copy operations natively, the version history
21031  is not preserved, and the copy is added as a new file.
21032  It requires a clean document without any changes since the last checkin.
21033  You are asked for a file name and a description of the copy operation.
21034  After that the copy is created, both locally and in the repository.
21035  If the parent directories of the copied and original document differ, all
21036  relative paths of included files of the copy are adjusted (like in 
21037 \family sans
21038 File\SpecialChar menuseparator
21039 Save As
21040 \family default
21041 \SpecialChar ldots
21042 ).
21043  Finally, the copy is loaded instead of the original document.
21044 \end_layout
21045
21046 \begin_layout Labeling
21047 \labelwidthstring 00.00.0000
21048 CVS
21049 \begin_inset space ~
21050 \end_inset
21051
21052 commands: 
21053 \begin_inset space ~
21054 \end_inset
21055
21056
21057 \begin_inset Newline newline
21058 \end_inset
21059
21060 Copy 
21061 \begin_inset Flex Code
21062 status collapsed
21063
21064 \begin_layout Plain Layout
21065 "<file-name>"
21066 \end_layout
21067
21068 \end_inset
21069
21070  to 
21071 \begin_inset Flex Code
21072 status collapsed
21073
21074 \begin_layout Plain Layout
21075 "<new-file-name>"
21076 \end_layout
21077
21078 \end_inset
21079
21080
21081 \begin_inset Newline newline
21082 \end_inset
21083
21084
21085 \begin_inset Flex Code
21086 status collapsed
21087
21088 \begin_layout Plain Layout
21089 cvs -q add "<new-file-name>"
21090 \end_layout
21091
21092 \end_inset
21093
21094
21095 \end_layout
21096
21097 \begin_layout Subsubsection
21098
21099 \family sans
21100 Rename
21101 \end_layout
21102
21103 \begin_layout Standard
21104 This will rename the current document.
21105  Since CVS does not support rename operations natively, the version history
21106  is not preserved, the renamed document is added as a new file, and the
21107  original document is deleted.
21108  It requires a clean document without any changes since the last checkin.
21109  You are asked for a file name and a description of the rename operation.
21110  After that the document is renamed, both locally and in the repository.
21111  If the parent directories of the new and old file names differ, all relative
21112  paths of included files are adjusted (like in 
21113 \family sans
21114 File\SpecialChar menuseparator
21115 Save As
21116 \family default
21117 \SpecialChar ldots
21118 ).
21119  Finally, the document is reloaded using the new name.
21120 \end_layout
21121
21122 \begin_layout Labeling
21123 \labelwidthstring 00.00.0000
21124 CVS
21125 \begin_inset space ~
21126 \end_inset
21127
21128 commands: 
21129 \begin_inset space ~
21130 \end_inset
21131
21132
21133 \begin_inset Newline newline
21134 \end_inset
21135
21136 Rename 
21137 \begin_inset Flex Code
21138 status collapsed
21139
21140 \begin_layout Plain Layout
21141 "<file-name>"
21142 \end_layout
21143
21144 \end_inset
21145
21146  to 
21147 \begin_inset Flex Code
21148 status collapsed
21149
21150 \begin_layout Plain Layout
21151 "<new-file-name>"
21152 \end_layout
21153
21154 \end_inset
21155
21156
21157 \begin_inset Newline newline
21158 \end_inset
21159
21160
21161 \begin_inset Flex Code
21162 status collapsed
21163
21164 \begin_layout Plain Layout
21165 cvs -q add "<new-file-name>"
21166 \end_layout
21167
21168 \end_inset
21169
21170
21171 \begin_inset Newline newline
21172 \end_inset
21173
21174
21175 \begin_inset Flex Code
21176 status collapsed
21177
21178 \begin_layout Plain Layout
21179 cvs -q remove "<file-name>"
21180 \end_layout
21181
21182 \end_inset
21183
21184
21185 \end_layout
21186
21187 \begin_layout Subsubsection
21188 Update of the local directory checkout from repository
21189 \end_layout
21190
21191 \begin_layout Standard
21192 Once your documents gets more complex, containing sub-documents and pictures,
21193  including external 
21194 \begin_inset Flex Code
21195 status collapsed
21196
21197 \begin_layout Plain Layout
21198 .tex
21199 \end_layout
21200
21201 \end_inset
21202
21203  files and so on using version control becomes more complicated.
21204  \SpecialChar LyX
21205  supports updating the whole tree in which resides the document.
21206  This become especially useful once you cooperate with people which neither
21207  have detailed knowledge about CVS usage nor they have ambition to commit
21208  additional material to the repository.
21209  You have to organize the files structure so that all external files are
21210  in the same directory or subdirectories of the document.
21211  It's good practice anyway to store multipart documents in an extra directory.
21212 \end_layout
21213
21214 \begin_layout Standard
21215 The 
21216 \begin_inset Flex Code
21217 status collapsed
21218
21219 \begin_layout Plain Layout
21220 Update local directory from repository
21221 \end_layout
21222
21223 \end_inset
21224
21225  command updates the whole directory.
21226  If local changes are detected user is warned before update starts.
21227  In case of merge conflicts both versions of the conflicting document parts
21228  are placed in the final document.
21229  You have to review and correct the result of the merge.
21230  You'll find the conflicts enclosed in pairs of 
21231 \begin_inset Flex Code
21232 status collapsed
21233
21234 \begin_layout Plain Layout
21235 <<<<<<<
21236 \end_layout
21237
21238 \end_inset
21239
21240  and 
21241 \begin_inset Flex Code
21242 status collapsed
21243
21244 \begin_layout Plain Layout
21245 >>>>>>>
21246 \end_layout
21247
21248 \end_inset
21249
21250  separated by 
21251 \begin_inset Flex Code
21252 status collapsed
21253
21254 \begin_layout Plain Layout
21255 =======
21256 \end_layout
21257
21258 \end_inset
21259
21260 .
21261  The first part is your version as before the update operation with the
21262  document name prepended.
21263  The second one is the repository version with the version number after
21264  the sequence of 
21265 \begin_inset Flex Code
21266 status collapsed
21267
21268 \begin_layout Plain Layout
21269 >
21270 \end_layout
21271
21272 \end_inset
21273
21274  signs.
21275 \end_layout
21276
21277 \begin_layout Labeling
21278 \labelwidthstring 00.00.0000
21279 CVS
21280 \begin_inset space ~
21281 \end_inset
21282
21283 commands: 
21284 \begin_inset space ~
21285 \end_inset
21286
21287
21288 \begin_inset Newline newline
21289 \end_inset
21290
21291
21292 \begin_inset Flex Code
21293 status collapsed
21294
21295 \begin_layout Plain Layout
21296 cd $path; cvs diff 
21297 \family typewriter
21298 "."
21299 \end_layout
21300
21301 \end_inset
21302
21303  (Ask if changes are detected.)
21304 \begin_inset Newline newline
21305 \end_inset
21306
21307
21308 \begin_inset Flex Code
21309 status collapsed
21310
21311 \begin_layout Plain Layout
21312 cd $path; cvs -q update 
21313 \family typewriter
21314 "."
21315 \end_layout
21316
21317 \end_inset
21318
21319
21320 \end_layout
21321
21322 \begin_layout Standard
21323 where 
21324 \begin_inset Flex Code
21325 status collapsed
21326
21327 \begin_layout Plain Layout
21328 $path
21329 \end_layout
21330
21331 \end_inset
21332
21333  stands for the path to the document.
21334 \end_layout
21335
21336 \begin_layout Subsubsection
21337
21338 \family sans
21339 Show History
21340 \end_layout
21341
21342 \begin_layout Standard
21343 This shows the complete history of the CVS document.
21344  The output of 
21345 \family typewriter
21346 cvs log "<file-name>"
21347 \family default
21348  is shown in a browser.
21349 \end_layout
21350
21351 \begin_layout Subsubsection
21352 Revision info
21353 \end_layout
21354
21355 \begin_layout Standard
21356 \SpecialChar LyX
21357  supports CVS version number, author name, date and time of last commit.
21358  All those are extracted from 
21359 \family typewriter
21360 cvs log -r <file-name>
21361 \family default
21362 .
21363  See 
21364 \begin_inset CommandInset ref
21365 LatexCommand ref
21366 reference "subsec:VCS-Revision-Information"
21367
21368 \end_inset
21369
21370  for details.
21371 \end_layout
21372
21373 \begin_layout Subsection
21374 SVN commands in \SpecialChar LyX
21375
21376 \end_layout
21377
21378 \begin_layout Standard
21379 SVN is now partially supported by \SpecialChar LyX
21380 .
21381  You can find the commands in the 
21382 \family sans
21383 File\SpecialChar menuseparator
21384 Version
21385 \begin_inset space ~
21386 \end_inset
21387
21388 Control
21389 \family default
21390  submenu.
21391  Please note that if you use password protected access to repository via
21392  ssh, you will be asked in terminal window.
21393  \SpecialChar LyX
21394  was tested against SVN 1.5, 1.6, 1.7 and 1.8
21395 \begin_inset Foot
21396 status collapsed
21397
21398 \begin_layout Plain Layout
21399 Most of the commands will work with 1.4 too, see 
21400 \begin_inset CommandInset ref
21401 LatexCommand ref
21402 reference "subsec:SVN-Repo-Update"
21403
21404 \end_inset
21405
21406 .
21407  There seems to be currently unresolved permissions problem under SVN 1.8
21408  with reverting changes when file is locked.
21409 \end_layout
21410
21411 \end_inset
21412
21413
21414 \end_layout
21415
21416 \begin_layout Subsubsection
21417
21418 \family sans
21419 Register
21420 \end_layout
21421
21422 \begin_layout Standard
21423 If your document is not under revision control, this is the only item shown
21424  in the menu.
21425  And if it is under revision control, the 
21426 \family sans
21427 Register
21428 \family default
21429  item is not visible.
21430 \end_layout
21431
21432 \begin_layout Standard
21433 This command registers in SVN your document ONLY in case you have already
21434  the documents directory under SVN control (in particular 
21435 \family typewriter
21436 .svn/entries
21437 \family default
21438  file exists).
21439  This means you have to checkout the archive by yourself.
21440 \end_layout
21441
21442 \begin_layout Standard
21443 Then you are asked interactively to supply an initial description of the
21444  document.
21445  Don't forget that registered file is not yet commited.
21446 \end_layout
21447
21448 \begin_layout Standard
21449 SVN command that is run: 
21450 \family typewriter
21451 svn add -q 
21452 \begin_inset Quotes qld
21453 \end_inset
21454
21455 <file-name>
21456 \begin_inset Quotes qld
21457 \end_inset
21458
21459
21460 \end_layout
21461
21462 \begin_layout Standard
21463 Read 
21464 \family typewriter
21465 man svn
21466 \family default
21467  to understand the switches.
21468 \end_layout
21469
21470 \begin_layout Subsubsection
21471
21472 \family sans
21473 Check In Changes
21474 \end_layout
21475
21476 \begin_layout Standard
21477 When you are finished editing a file, you commit your changes.
21478  When you do this, you are asked for a description of the changes.
21479  After that changes are commited.
21480 \end_layout
21481
21482 \begin_layout Standard
21483 SVN command:
21484 \begin_inset Foot
21485 status collapsed
21486
21487 \begin_layout Plain Layout
21488 In case locking is not enabled.
21489  See Section 
21490 \begin_inset CommandInset ref
21491 LatexCommand ref
21492 reference "subsec:SVN-File-Locking"
21493
21494 \end_inset
21495
21496 .
21497 \end_layout
21498
21499 \end_inset
21500
21501  
21502 \family typewriter
21503 svn commit -q -m"<description>" <file-name>
21504 \end_layout
21505
21506 \begin_layout Subsubsection
21507
21508 \family sans
21509 Check Out For Edit
21510 \end_layout
21511
21512 \begin_layout Standard
21513 Updates the changes of this file from the repository.
21514  Be sure you understand SVN merging and conflicts resolving before using
21515  this function, because all conflicts has to be resolved manually by you!
21516 \end_layout
21517
21518 \begin_layout Standard
21519 SVN command:
21520 \begin_inset Foot
21521 status collapsed
21522
21523 \begin_layout Plain Layout
21524 Ditto.
21525 \end_layout
21526
21527 \end_inset
21528
21529  
21530 \family typewriter
21531 svn update --non-interactive 
21532 \begin_inset Quotes qld
21533 \end_inset
21534
21535 <file-name>
21536 \begin_inset Quotes qld
21537 \end_inset
21538
21539
21540 \end_layout
21541
21542 \begin_layout Subsubsection
21543
21544 \family sans
21545 Revert To Repository Version
21546 \end_layout
21547
21548 \begin_layout Standard
21549 This will discard all changes made to the document since the last check
21550  in.
21551  You get a warning before changes are discarded.
21552 \end_layout
21553
21554 \begin_layout Standard
21555 SVN command: 
21556 \family typewriter
21557 svn revert -q 
21558 \begin_inset Quotes qld
21559 \end_inset
21560
21561 <file-name>
21562 \begin_inset Quotes qld
21563 \end_inset
21564
21565
21566 \end_layout
21567
21568 \begin_layout Subsubsection
21569
21570 \family sans
21571 Copy
21572 \end_layout
21573
21574 \begin_layout Standard
21575 This will create a copy of the current document including the version history.
21576  It requires a clean document without any changes since the last checkin.
21577  You are asked for a file name and a description of the copy operation.
21578  After that the copy is created, both locally and in the repository.
21579  If the parent directories of the copied and original document differ, all
21580  relative paths of included files of the copy are adjusted (like in 
21581 \family sans
21582 File\SpecialChar menuseparator
21583 Save As
21584 \family default
21585 \SpecialChar ldots
21586 ).
21587  Finally, the copy is loaded instead of the original document.
21588 \end_layout
21589
21590 \begin_layout Labeling
21591 \labelwidthstring 00.00.0000
21592 SVN
21593 \begin_inset space ~
21594 \end_inset
21595
21596 commands: 
21597 \begin_inset space ~
21598 \end_inset
21599
21600
21601 \begin_inset Newline newline
21602 \end_inset
21603
21604
21605 \begin_inset Flex Code
21606 status collapsed
21607
21608 \begin_layout Plain Layout
21609 svn copy -q 
21610 \family typewriter
21611
21612 \begin_inset Quotes qld
21613 \end_inset
21614
21615 <file-name>
21616 \begin_inset Quotes qld
21617 \end_inset
21618
21619  
21620 \begin_inset Quotes qld
21621 \end_inset
21622
21623 <new-file-name>
21624 \begin_inset Quotes qld
21625 \end_inset
21626
21627
21628 \end_layout
21629
21630 \end_inset
21631
21632
21633 \begin_inset Newline newline
21634 \end_inset
21635
21636
21637 \begin_inset Flex Code
21638 status collapsed
21639
21640 \begin_layout Plain Layout
21641 svn commit
21642 \end_layout
21643
21644 \end_inset
21645
21646
21647 \end_layout
21648
21649 \begin_layout Subsubsection
21650
21651 \family sans
21652 Rename
21653 \end_layout
21654
21655 \begin_layout Standard
21656 This will rename the current document including the version history.
21657  It requires a clean document without any changes since the last checkin.
21658  You are asked for a file name and a description of the rename operation.
21659  After that the document is renamed, both locally and in the repository.
21660  If the parent directories of the new and old file names differ, all relative
21661  paths of included files are adjusted (like in 
21662 \family sans
21663 File\SpecialChar menuseparator
21664 Save As
21665 \family default
21666 \SpecialChar ldots
21667 ).
21668  Finally, the document is reloaded using the new name.
21669 \end_layout
21670
21671 \begin_layout Labeling
21672 \labelwidthstring 00.00.0000
21673 SVN
21674 \begin_inset space ~
21675 \end_inset
21676
21677 commands: 
21678 \begin_inset space ~
21679 \end_inset
21680
21681
21682 \begin_inset Newline newline
21683 \end_inset
21684
21685
21686 \begin_inset Flex Code
21687 status collapsed
21688
21689 \begin_layout Plain Layout
21690 svn move -q 
21691 \family typewriter
21692
21693 \begin_inset Quotes qld
21694 \end_inset
21695
21696 <file-name>
21697 \begin_inset Quotes qld
21698 \end_inset
21699
21700  
21701 \begin_inset Quotes qld
21702 \end_inset
21703
21704 <new-file-name>
21705 \begin_inset Quotes qld
21706 \end_inset
21707
21708
21709 \end_layout
21710
21711 \end_inset
21712
21713
21714 \begin_inset Newline newline
21715 \end_inset
21716
21717
21718 \begin_inset Flex Code
21719 status collapsed
21720
21721 \begin_layout Plain Layout
21722 svn commit
21723 \end_layout
21724
21725 \end_inset
21726
21727
21728 \end_layout
21729
21730 \begin_layout Subsubsection
21731 \begin_inset CommandInset label
21732 LatexCommand label
21733 name "subsec:SVN-Repo-Update"
21734
21735 \end_inset
21736
21737 Update of the local directory checkout from repository
21738 \begin_inset Foot
21739 status collapsed
21740
21741 \begin_layout Plain Layout
21742 Note that this command will work only with subversion 
21743 \begin_inset Formula $\geqq1.5$
21744 \end_inset
21745
21746
21747 \end_layout
21748
21749 \end_inset
21750
21751
21752 \end_layout
21753
21754 \begin_layout Standard
21755 All the commands above have one shortcoming – they deal with the current
21756  document only.
21757  Once your document contains pictures, includes external 
21758 \begin_inset Flex Code
21759 status collapsed
21760
21761 \begin_layout Plain Layout
21762 .tex
21763 \end_layout
21764
21765 \end_inset
21766
21767  files and so on administration becomes more complicated.
21768  \SpecialChar LyX
21769  now supports updating the whole tree in which resides the document
21770 \begin_inset Foot
21771 status collapsed
21772
21773 \begin_layout Plain Layout
21774 One need to organize the files structure so that all external files are
21775  in the same directory or subdirectories of the document.
21776  
21777 \end_layout
21778
21779 \end_inset
21780
21781 .
21782  This become especially useful once you cooperate with people which neither
21783  know about subversion management nor they have ambition to commit additional
21784  material to the repository.
21785  
21786 \end_layout
21787
21788 \begin_layout Standard
21789 \begin_inset Flex Code
21790 status collapsed
21791
21792 \begin_layout Plain Layout
21793 Update local directory from repository
21794 \end_layout
21795
21796 \end_inset
21797
21798  command updates the whole directory and in case of merge conflicts local
21799  version of the files are left, so no unintended data loss occurs.
21800  If local changes are detected user is warned before update starts.
21801 \end_layout
21802
21803 \begin_layout Labeling
21804 \labelwidthstring 00.00.0000
21805 SVN
21806 \begin_inset space ~
21807 \end_inset
21808
21809 commands: 
21810 \begin_inset space ~
21811 \end_inset
21812
21813
21814 \begin_inset Newline newline
21815 \end_inset
21816
21817
21818 \begin_inset Flex Code
21819 status collapsed
21820
21821 \begin_layout Plain Layout
21822 svn diff $path
21823 \end_layout
21824
21825 \end_inset
21826
21827  (Ask if changes are detected.)
21828 \begin_inset Newline newline
21829 \end_inset
21830
21831
21832 \begin_inset Flex Code
21833 status collapsed
21834
21835 \begin_layout Plain Layout
21836 svn update --accept mine-full $path
21837 \end_layout
21838
21839 \end_inset
21840
21841
21842 \end_layout
21843
21844 \begin_layout Standard
21845 where 
21846 \begin_inset Flex Code
21847 status collapsed
21848
21849 \begin_layout Plain Layout
21850 $path
21851 \end_layout
21852
21853 \end_inset
21854
21855  stands for the path to the document.
21856 \end_layout
21857
21858 \begin_layout Subsubsection
21859
21860 \family sans
21861 Show History
21862 \end_layout
21863
21864 \begin_layout Standard
21865 This shows the complete history of the SVN document.
21866  The output of 
21867 \family typewriter
21868 svn log 
21869 \begin_inset Quotes qld
21870 \end_inset
21871
21872 <file-name>
21873 \begin_inset Quotes qld
21874 \end_inset
21875
21876
21877 \family default
21878  is shown in a browser.
21879 \end_layout
21880
21881 \begin_layout Subsubsection
21882 File Locking
21883 \begin_inset CommandInset label
21884 LatexCommand label
21885 name "subsec:SVN-File-Locking"
21886
21887 \end_inset
21888
21889
21890 \end_layout
21891
21892 \begin_layout Standard
21893 The file exchange through various revision control systems brings the problem
21894  of merge conflicts in case two different users try to edit the same (parts
21895  of) document.
21896  When such a conflict happens it needs manual resolving and one reasonable
21897  alternative is to provide some kind of locking mechanism, which guarantees
21898  that only one user is allowed to edit file at the given time.
21899 \end_layout
21900
21901 \begin_layout Standard
21902 SVN has two such mechanisms to provide mutual exclusivity for file access
21903  – locks and automatic setting of write permissions (see sec.
21904  
21905 \begin_inset CommandInset ref
21906 LatexCommand ref
21907 reference "subsec:Automatical-Locking-Property"
21908
21909 \end_inset
21910
21911 ) based on 
21912 \begin_inset Flex Code
21913 status collapsed
21914
21915 \begin_layout Plain Layout
21916 svn:needs-lock
21917 \end_layout
21918
21919 \end_inset
21920
21921  file svn property
21922 \begin_inset Foot
21923 status collapsed
21924
21925 \begin_layout Plain Layout
21926 \begin_inset Flex URL
21927 status open
21928
21929 \begin_layout Plain Layout
21930
21931 http://svnbook.red-bean.com/en/1.2/svn.advanced.locking.html
21932 \end_layout
21933
21934 \end_inset
21935
21936
21937 \end_layout
21938
21939 \end_inset
21940
21941 .
21942  If this property is detected for a given document \SpecialChar LyX
21943  starts to use SVN locks
21944  for document editing automatically and the whole check-in/out mechanism
21945  switches to the same regimen as for RCS.
21946  This in particular means there are two different modes of file use in \SpecialChar LyX
21947 :
21948 \end_layout
21949
21950 \begin_layout Itemize
21951 Unlocked state.
21952  The loaded file is in the read-only mode.
21953  For editing on needs to check-out.
21954  
21955 \emph on
21956 Check-out
21957 \emph default
21958  consists of updating from the repository and gaining write lock.
21959  If the lock is not possible to obtain, we remain in unlocked state.
21960 \end_layout
21961
21962 \begin_layout Itemize
21963 Locked state.
21964  The loaded file is in the 
21965 \begin_inset Quotes els
21966 \end_inset
21967
21968 normal
21969 \begin_inset Quotes ers
21970 \end_inset
21971
21972  edit mode.
21973  No other user is allowed to edit the file.
21974  
21975 \emph on
21976 Check-in
21977 \emph default
21978  consists of commiting changes and releasing write-lock.
21979  If no changes have been made to the document, no commit will be produced
21980 \begin_inset Foot
21981 status collapsed
21982
21983 \begin_layout Plain Layout
21984 Don't be puzzled by the fact that you will be asked for commit message anyway.
21985 \end_layout
21986
21987 \end_inset
21988
21989  and only the write-lock will be released.
21990 \end_layout
21991
21992 \begin_layout Standard
21993 SVN commands:
21994 \end_layout
21995
21996 \begin_layout Labeling
21997 \labelwidthstring 00.00.0000
21998 Check-in:
21999 \family typewriter
22000  svn commit -q -m"<description>" "<file-name>"
22001 \begin_inset Newline newline
22002 \end_inset
22003
22004 svn unlock "<file-name>"
22005 \end_layout
22006
22007 \begin_layout Labeling
22008 \labelwidthstring 00.00.0000
22009 Check-out: 
22010 \family typewriter
22011 svn update "<file-name>"
22012 \begin_inset Newline newline
22013 \end_inset
22014
22015 svn lock "<file-name>"
22016 \end_layout
22017
22018 \begin_layout Subsubsection
22019
22020 \family typewriter
22021 \begin_inset CommandInset label
22022 LatexCommand label
22023 name "subsec:Automatical-Locking-Property"
22024
22025 \end_inset
22026
22027
22028 \family default
22029 Automatic Locking Property
22030 \end_layout
22031
22032 \begin_layout Standard
22033 The above mentioned automatic setting of write permissions of the .lyx file
22034  can be set through
22035 \family sans
22036  File\SpecialChar menuseparator
22037 Version
22038 \begin_inset space ~
22039 \end_inset
22040
22041 Control\SpecialChar menuseparator
22042 Use Locking Property
22043 \family default
22044 .
22045  This command is active only when the file is not locked on the svn server
22046  (i.e.
22047  you need to check-out before proceeding).
22048 \end_layout
22049
22050 \begin_layout Labeling
22051 \labelwidthstring 00.00.0000
22052 SVN
22053 \begin_inset space ~
22054 \end_inset
22055
22056 commands:
22057 \end_layout
22058
22059 \begin_layout Labeling
22060 \labelwidthstring 00.00.0000
22061 Set:
22062 \family typewriter
22063  svn propset svn:needs-lock ON "<file-name>"
22064 \end_layout
22065
22066 \begin_layout Labeling
22067 \labelwidthstring 00.00.0000
22068 Unset: 
22069 \family typewriter
22070 svn propdel svn:needs-lock "<file-name>"
22071 \end_layout
22072
22073 \begin_layout Subsubsection
22074 \begin_inset CommandInset label
22075 LatexCommand label
22076 name "subsec:VCS-Revision-Information"
22077
22078 \end_inset
22079
22080 Revision Information in Documents
22081 \end_layout
22082
22083 \begin_layout Standard
22084 There are more possibilities how to activate revision information in our
22085  document.
22086 \end_layout
22087
22088 \begin_layout Itemize
22089 \SpecialChar LyX
22090  supports directly:
22091 \end_layout
22092
22093 \begin_deeper
22094 \begin_layout Itemize
22095 tree revision information (
22096 \begin_inset Flex Code
22097 status collapsed
22098
22099 \begin_layout Plain Layout
22100 vcs-tree-revision
22101 \end_layout
22102
22103 \end_inset
22104
22105 ).
22106  The result is the output of the 
22107 \begin_inset Flex Code
22108 status collapsed
22109
22110 \begin_layout Plain Layout
22111 svnversion
22112 \end_layout
22113
22114 \end_inset
22115
22116  command, the following table gives you an idea, how to read the results.
22117 \end_layout
22118
22119 \begin_layout Standard
22120 \align center
22121 \begin_inset Tabular
22122 <lyxtabular version="3" rows="6" columns="2">
22123 <features tabularvalignment="middle">
22124 <column alignment="left" valignment="top">
22125 <column alignment="left" valignment="top">
22126 <row>
22127 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22128 \begin_inset Text
22129
22130 \begin_layout Plain Layout
22131
22132 \series bold
22133 Output
22134 \end_layout
22135
22136 \end_inset
22137 </cell>
22138 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
22139 \begin_inset Text
22140
22141 \begin_layout Plain Layout
22142
22143 \series bold
22144 Meaning
22145 \end_layout
22146
22147 \end_inset
22148 </cell>
22149 </row>
22150 <row>
22151 <cell alignment="left" valignment="top" topline="true" leftline="true" usebox="none">
22152 \begin_inset Text
22153
22154 \begin_layout Plain Layout
22155 4123:4168
22156 \end_layout
22157
22158 \end_inset
22159 </cell>
22160 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
22161 \begin_inset Text
22162
22163 \begin_layout Plain Layout
22164 mixed revision working copy
22165 \end_layout
22166
22167 \end_inset
22168 </cell>
22169 </row>
22170 <row>
22171 <cell alignment="left" valignment="top" topline="true" leftline="true" usebox="none">
22172 \begin_inset Text
22173
22174 \begin_layout Plain Layout
22175 4168M
22176 \end_layout
22177
22178 \end_inset
22179 </cell>
22180 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
22181 \begin_inset Text
22182
22183 \begin_layout Plain Layout
22184 modified working copy
22185 \end_layout
22186
22187 \end_inset
22188 </cell>
22189 </row>
22190 <row>
22191 <cell alignment="left" valignment="top" topline="true" leftline="true" usebox="none">
22192 \begin_inset Text
22193
22194 \begin_layout Plain Layout
22195 4123S
22196 \end_layout
22197
22198 \end_inset
22199 </cell>
22200 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
22201 \begin_inset Text
22202
22203 \begin_layout Plain Layout
22204 switched working copy
22205 \end_layout
22206
22207 \end_inset
22208 </cell>
22209 </row>
22210 <row>
22211 <cell alignment="left" valignment="top" topline="true" leftline="true" usebox="none">
22212 \begin_inset Text
22213
22214 \begin_layout Plain Layout
22215 4123P
22216 \end_layout
22217
22218 \end_inset
22219 </cell>
22220 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
22221 \begin_inset Text
22222
22223 \begin_layout Plain Layout
22224 partial working copy, from a sparse checkout
22225 \end_layout
22226
22227 \end_inset
22228 </cell>
22229 </row>
22230 <row>
22231 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22232 \begin_inset Text
22233
22234 \begin_layout Plain Layout
22235 4123:4168MS
22236 \end_layout
22237
22238 \end_inset
22239 </cell>
22240 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
22241 \begin_inset Text
22242
22243 \begin_layout Plain Layout
22244 mixed revision, modified, switched working copy
22245 \end_layout
22246
22247 \end_inset
22248 </cell>
22249 </row>
22250 </lyxtabular>
22251
22252 \end_inset
22253
22254
22255 \end_layout
22256
22257 \begin_layout Itemize
22258 file revision information.
22259  The result comes from parsing the output of 
22260 \begin_inset Flex Code
22261 status collapsed
22262
22263 \begin_layout Plain Layout
22264 svn
22265 \begin_inset space ~
22266 \end_inset
22267
22268 info
22269 \begin_inset space ~
22270 \end_inset
22271
22272 --xml
22273 \begin_inset space ~
22274 \end_inset
22275
22276 file.lyx
22277 \end_layout
22278
22279 \end_inset
22280
22281 .
22282  Supported flags are:
22283 \end_layout
22284
22285 \begin_deeper
22286 \begin_layout Itemize
22287 version number of the last commit (
22288 \begin_inset Flex Code
22289 status collapsed
22290
22291 \begin_layout Plain Layout
22292 vcs-revision
22293 \end_layout
22294
22295 \end_inset
22296
22297 )
22298 \end_layout
22299
22300 \begin_layout Itemize
22301 author of the last commit (
22302 \begin_inset Flex Code
22303 status collapsed
22304
22305 \begin_layout Plain Layout
22306 vcs-author
22307 \end_layout
22308
22309 \end_inset
22310
22311 )
22312 \end_layout
22313
22314 \begin_layout Itemize
22315 date of the last commit (
22316 \begin_inset Flex Code
22317 status collapsed
22318
22319 \begin_layout Plain Layout
22320 vcs-date
22321 \end_layout
22322
22323 \end_inset
22324
22325 )
22326 \end_layout
22327
22328 \begin_layout Itemize
22329 time of the last commit (
22330 \begin_inset Flex Code
22331 status collapsed
22332
22333 \begin_layout Plain Layout
22334 vcs-time
22335 \end_layout
22336
22337 \end_inset
22338
22339 )
22340 \end_layout
22341
22342 \end_deeper
22343 \begin_layout Standard
22344 You can obtain this info via InsetInfo (
22345 \change_inserted 5863208 1564400022
22346
22347 \lang american
22348 Insert\SpecialChar menuseparator
22349 Field\SpecialChar menuseparator
22350 Version Control Revision
22351 \change_deleted 5863208 1564399852
22352
22353 \lang english
22354 e.g.
22355  
22356 \begin_inset Flex Code
22357 status collapsed
22358
22359 \begin_layout Plain Layout
22360 info-insert buffer vcs-date
22361 \end_layout
22362
22363 \end_inset
22364
22365
22366 \change_unchanged
22367 ).
22368  The information will be available only when you have the file stored under
22369  svn managment (i.e.
22370  the 
22371 \begin_inset Flex Code
22372 status collapsed
22373
22374 \begin_layout Plain Layout
22375 .svn
22376 \end_layout
22377
22378 \end_inset
22379
22380  directory is available with your document).
22381 \end_layout
22382
22383 \end_deeper
22384 \begin_layout Itemize
22385 Another—a hacking one—possibility is to use svn keywords
22386 \begin_inset Foot
22387 status collapsed
22388
22389 \begin_layout Plain Layout
22390 http://svnbook.red-bean.com/en/1.4/svn.advanced.props.special.keywords.html
22391 \end_layout
22392
22393 \end_inset
22394
22395 .
22396  In short – you set file keywords property (e.g.
22397  
22398 \family sans
22399 svn propset svn:keywords 'Rev' file.lyx
22400 \family default
22401 ) and then paste keyword \SpecialChar TeX
22402  code
22403 \begin_inset Foot
22404 status collapsed
22405
22406 \begin_layout Plain Layout
22407 This is an easy way how to ensure that \SpecialChar LyX
22408  won't break the line in the middle
22409  of keyword tag.
22410 \end_layout
22411
22412 \end_inset
22413
22414  tag in your document (e.g.
22415  
22416 \begin_inset Flex Code
22417 status collapsed
22418
22419 \begin_layout Plain Layout
22420 $Rev$
22421 \end_layout
22422
22423 \end_inset
22424
22425 ).
22426  This way svn client will automatically substitute revision number (e.g.
22427  
22428 \begin_inset Flex Code
22429 status collapsed
22430
22431 \begin_layout Plain Layout
22432 $Rev: 59 $
22433 \end_layout
22434
22435 \end_inset
22436
22437 ) after each update and commit.
22438  There are more problems with this approach.
22439  Firstly, the '$' character is used in \SpecialChar TeX
22440  world for math equations, so any
22441  occurence of math formula 
22442 \begin_inset Formula $Rev$
22443 \end_inset
22444
22445  become 
22446 \begin_inset Formula $Rev:59$
22447 \end_inset
22448
22449  in your \SpecialChar LyX
22450  document.
22451  Similarly for other keywords like Id, Date, Author, etc.
22452  Secondly svn output is dependent on your locales, so its very easy that
22453  svn would produce some problematic strings once Date is used.
22454  Thirdly you get the whole 'Rev: 59' string in your document instead of
22455  the plain number.
22456  Until subversion implements user's custom keywords it will be hard to use
22457  this approach reliably or let \SpecialChar LyX
22458  to support it directly.
22459 \end_layout
22460
22461 \begin_layout Subsection
22462 SVN and Windows Environment
22463 \end_layout
22464
22465 \begin_layout Quote
22466 My inclination is to say that if the user cannot figure out the command
22467  line operations on their own fairly quickly, they would be well advised
22468  to use TortoiseSVN.
22469  —P.
22470  A.
22471  Rubin
22472 \end_layout
22473
22474 \begin_layout Subsubsection
22475 Preparation
22476 \end_layout
22477
22478 \begin_layout Standard
22479 In addition to installing \SpecialChar LyX
22480 , and having access to a Subversion repository,
22481  the user will need to install the Subversion client program.
22482  A Windows installer for the client program is available from 
22483 \begin_inset CommandInset href
22484 LatexCommand href
22485 name "CollabNet"
22486 target "http://www.collab.net/nonav/downloads/subversion/"
22487 literal "false"
22488
22489 \end_inset
22490
22491 .
22492  The user may also want to install 
22493 \begin_inset CommandInset href
22494 LatexCommand href
22495 name "TortoiseSVN"
22496 target "http://tortoisesvn.tigris.org/"
22497 literal "false"
22498
22499 \end_inset
22500
22501 , which integrates Subversion operations into the context (rightclick) menu
22502  of Windows Explorer.
22503  Operations done outside \SpecialChar LyX
22504  will typically be more convenient using the Explorer
22505  context menu.
22506  Note that TortoiseSVN is not a replacement for the client program, which
22507  is what \SpecialChar LyX
22508  itself will use.
22509 \end_layout
22510
22511 \begin_layout Subsubsection
22512 Bringing a document under Subversion control
22513 \end_layout
22514
22515 \begin_layout Standard
22516 Before a \SpecialChar LyX
22517  document can be brought under version control in Subversion, its
22518  parent directory needs to be under version control.
22519  If the document is being added to a project already in the repository,
22520  this is accomplished by checking the project out to the directory where
22521  the new document will be placed.
22522  If the project itself is not yet under version control (for instance, if
22523  this document starts a new project), the directory must be imported into
22524  the repository.
22525  This is done outside \SpecialChar LyX
22526 .
22527  Both import and checkout are easily accomplished from the Explorer context
22528  menu using TortoiseSVN, or alternatively can be done using the command
22529  line client at a DOS prompt.
22530  The procedure for importing the project using TortoiseSVN is described
22531  below, assuming an existing repository and a new project being started
22532  in 
22533 \family typewriter
22534 C:
22535 \backslash
22536 new project
22537 \family default
22538 .
22539  For information on using the Subversion client program, run 
22540 \family typewriter
22541 svn --help 
22542 \family default
22543 in a DOS shell.
22544 \end_layout
22545
22546 \begin_layout Enumerate
22547 Locate 
22548 \family typewriter
22549 C:
22550 \backslash
22551 new project 
22552 \family default
22553 in Windows Explorer, right click it, and select 
22554 \family sans
22555 TortoiseSVN\SpecialChar menuseparator
22556 Repo-browser
22557 \family default
22558 .
22559  If necessary, adjust the URL for the repository, then click OK.
22560 \end_layout
22561
22562 \begin_layout Enumerate
22563 Right click the level of the repository under which you want to place the
22564  new project folder (typically the top level) and click 
22565 \family sans
22566 Create folder
22567 \family default
22568  Supply a name for the project folder and click OK.
22569  Add a message for the log file if desired, then click OK again.
22570  The new project folder should appear in the repository.
22571  Finally, click OK again to exit the repository browser.
22572 \end_layout
22573
22574 \begin_layout Enumerate
22575 Once again right click 
22576 \family typewriter
22577 C:
22578 \backslash
22579 new project
22580 \family default
22581 , this time selecting SVN Checkout\SpecialChar ldots
22582  Select the URL of the project folder
22583  you just created in the repository, and set the checkout directory to 
22584 \family typewriter
22585 C:
22586 \backslash
22587 new project.
22588
22589 \family default
22590  Click OK.
22591  You will be warned about a non-empty folder; click OK to proceed.
22592  You should now have a 
22593 \family typewriter
22594 .svn
22595 \family default
22596  directory under 
22597 \family typewriter
22598 C:
22599 \backslash
22600 new project.
22601 \end_layout
22602
22603 \begin_layout Enumerate
22604 Create or open your document in \SpecialChar LyX
22605  and click 
22606 \family sans
22607 File\SpecialChar menuseparator
22608 Version
22609 \begin_inset space ~
22610 \end_inset
22611
22612 Control\SpecialChar menuseparator
22613 Register.
22614  
22615 \family default
22616 Add a log message and click OK to commit the document to version control.
22617 \end_layout
22618
22619 \begin_layout Standard
22620 From this point onward, you should have full functionality in the 
22621 \family sans
22622 File\SpecialChar menuseparator
22623 Version
22624 \begin_inset space ~
22625 \end_inset
22626
22627 Control
22628 \family default
22629  menu.
22630  You also have the option of checking the document in and out, viewing its
22631  history, etc.
22632  using the TortoiseSVN context menu in Windows Explorer or the Subversion
22633  client program from a command prompt.
22634 \end_layout
22635
22636 \begin_layout Subsubsection
22637 SSH tunnel used with SVN under Windows
22638 \end_layout
22639
22640 \begin_layout Standard
22641 Compared with Linux setting up an svn client to communicate over ssh under
22642  Windows is a rather troublesome task.
22643  We will at least offer some hints how to setup the client side but prior
22644  knowledge about ssh and the Windows command line is needed, also be prepared
22645  for a great deal of frustration\SpecialChar ldots
22646
22647 \end_layout
22648
22649 \begin_layout Enumerate
22650 Get an svn client for windows, as described in the previous sections.
22651  When it is a fresh install run some svn command (e.g.
22652  
22653 \begin_inset Flex Code
22654 status collapsed
22655
22656 \begin_layout Plain Layout
22657 svn --version
22658 \end_layout
22659
22660 \end_inset
22661
22662 ) to create config files, which you will need to change later on.
22663 \end_layout
22664
22665 \begin_layout Enumerate
22666 Choose an ssh client for Windows.
22667  There are several possibilities, we will use the one from Putty tools
22668 \begin_inset Foot
22669 status collapsed
22670
22671 \begin_layout Plain Layout
22672 \begin_inset Flex URL
22673 status collapsed
22674
22675 \begin_layout Plain Layout
22676
22677 http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html
22678 \end_layout
22679
22680 \end_inset
22681
22682
22683 \end_layout
22684
22685 \end_inset
22686
22687 .
22688  You will need to set the connection up so that the client doesn't ask for
22689  any password from you.
22690  To keep things easy we will use only keys without any additional password
22691  protection etc.
22692 \end_layout
22693
22694 \begin_deeper
22695 \begin_layout Enumerate
22696 Generate keys by 
22697 \begin_inset Flex Code
22698 status collapsed
22699
22700 \begin_layout Plain Layout
22701 puttygen
22702 \end_layout
22703
22704 \end_inset
22705
22706 .
22707  Save your private .ppk key file and put the public one on the server side.
22708  If the SVN server runs on Linux, note that the format of the public key
22709  is not compatible with Linux openssh and you will need to direcly copy-paste
22710  the key from the 
22711 \begin_inset Quotes eld
22712 \end_inset
22713
22714
22715 \emph on
22716 Public key for pasting into OpenSSH authorized_keys file
22717 \emph default
22718 :
22719 \begin_inset Quotes erd
22720 \end_inset
22721
22722  edit field into the server's 
22723 \begin_inset Flex Code
22724 status collapsed
22725
22726 \begin_layout Plain Layout
22727 ~/.ssh/authorized_keys
22728 \end_layout
22729
22730 \end_inset
22731
22732  / 
22733 \begin_inset Flex Code
22734 status collapsed
22735
22736 \begin_layout Plain Layout
22737 authorized_keys2
22738 \end_layout
22739
22740 \end_inset
22741
22742  file.
22743 \end_layout
22744
22745 \begin_layout Enumerate
22746 Get the Putty's 
22747 \begin_inset Flex Code
22748 status collapsed
22749
22750 \begin_layout Plain Layout
22751 plink
22752 \end_layout
22753
22754 \end_inset
22755
22756 .
22757  In the SVN config file
22758 \begin_inset Foot
22759 status collapsed
22760
22761 \begin_layout Plain Layout
22762 Exact path depends on Windows version, usually somewhere around 
22763 \begin_inset Flex Code
22764 status collapsed
22765
22766 \begin_layout Plain Layout
22767 c:
22768 \backslash
22769 Documents and Settings
22770 \backslash
22771 user
22772 \backslash
22773 Application Data
22774 \backslash
22775 Subversion
22776 \backslash
22777 config
22778 \end_layout
22779
22780 \end_inset
22781
22782  / 
22783 \begin_inset Flex Code
22784 status collapsed
22785
22786 \begin_layout Plain Layout
22787 AppData
22788 \backslash
22789 Roaming
22790 \backslash
22791 Subversion
22792 \end_layout
22793
22794 \end_inset
22795
22796 .
22797 \end_layout
22798
22799 \end_inset
22800
22801 , section [tunnels], setup ssh command, e.g.
22802  
22803 \begin_inset Flex Code
22804 status collapsed
22805
22806 \begin_layout Plain Layout
22807 ssh=c:/path/plink.exe -i c:/path/private_key.ppk
22808 \end_layout
22809
22810 \end_inset
22811
22812 .
22813 \begin_inset Foot
22814 status collapsed
22815
22816 \begin_layout Plain Layout
22817 It will usually take a lot of time to get exact command right and it depends
22818  on many things.
22819  For example do not have some remote server saved as a default session in
22820  Putty etc.
22821  If things fail, try to connect via plink without SVN first.
22822 \end_layout
22823
22824 \end_inset
22825
22826
22827 \end_layout
22828
22829 \end_deeper
22830 \begin_layout Enumerate
22831 Checkout the SVN archive, e.
22832 \begin_inset space \thinspace{}
22833 \end_inset
22834
22835 g.
22836 \begin_inset Newline newline
22837 \end_inset
22838
22839
22840 \begin_inset Flex Code
22841 status collapsed
22842
22843 \begin_layout Plain Layout
22844 svn co svn+ssh://user@server/repository_path
22845 \end_layout
22846
22847 \end_inset
22848
22849 .
22850 \end_layout
22851
22852 \begin_layout Subsubsection
22853 End-of-Line Conversions
22854 \end_layout
22855
22856 \begin_layout Standard
22857 When the collaborators are mixing Linux and Windows environments, \SpecialChar LyX
22858  will
22859  use different line endings inside the .lyx files.
22860  This is not a problem as far as \SpecialChar LyX
22861  functionality is concerned, but the commit
22862  diffs will be huge and merge-conflicts prone.
22863  Fortunately SVN itself knows
22864 \begin_inset Foot
22865 status collapsed
22866
22867 \begin_layout Plain Layout
22868 \begin_inset Flex URL
22869 status collapsed
22870
22871 \begin_layout Plain Layout
22872
22873 http://svnbook.red-bean.com/en/1.4/svn.advanced.props.file-portability.html
22874 \end_layout
22875
22876 \end_inset
22877
22878
22879 \end_layout
22880
22881 \end_inset
22882
22883  how to deal with CR/LF problems when switching .lyx files to the 
22884 \begin_inset Flex Code
22885 status collapsed
22886
22887 \begin_layout Plain Layout
22888 native
22889 \end_layout
22890
22891 \end_inset
22892
22893  mode.
22894 \begin_inset Foot
22895 status collapsed
22896
22897 \begin_layout Plain Layout
22898 For the lazy guys: 
22899 \begin_inset Flex Code
22900 status collapsed
22901
22902 \begin_layout Plain Layout
22903 svn propset svn:eol-style native FILE_NAME
22904 \end_layout
22905
22906 \end_inset
22907
22908
22909 \end_layout
22910
22911 \end_inset
22912
22913
22914 \end_layout
22915
22916 \begin_layout Subsection
22917 GIT commands in \SpecialChar LyX
22918
22919 \end_layout
22920
22921 \begin_layout Standard
22922 A minimal subset of GIT commands is now supported by \SpecialChar LyX
22923 .
22924  You can find the commands in the 
22925 \family sans
22926 File\SpecialChar menuseparator
22927 Version
22928 \begin_inset space ~
22929 \end_inset
22930
22931 Control
22932 \family default
22933  submenu.
22934  Please note that if you use password protected access to repository via
22935  ssh, you will be asked in terminal window.
22936  \SpecialChar LyX
22937  was tested against GIT 1.7.
22938 \begin_inset Foot
22939 status collapsed
22940
22941 \begin_layout Plain Layout
22942 Windows users please note that you need to ensure that git is on the path.
22943  This can be set from within \SpecialChar LyX
22944  at 
22945 \family sans
22946 Tools\SpecialChar menuseparator
22947 Preferences\SpecialChar menuseparator
22948 Paths\SpecialChar menuseparator
22949 PATH prefix
22950 \family default
22951 .
22952 \end_layout
22953
22954 \end_inset
22955
22956
22957 \end_layout
22958
22959 \begin_layout Standard
22960 One big difference of GIT and the other supported version control systems
22961  is the distributed nature of GIT: With traditional version control systems
22962  there is one central server which hosts the repository.
22963  Users commit their changes to the server, and get updates made by other
22964  users from it.
22965  With GIT, users commit to a local repository.
22966  The local repository can be synchronized with one or more remote repositories
22967  using the 
22968 \begin_inset Flex Code
22969 status collapsed
22970
22971 \begin_layout Plain Layout
22972 pull
22973 \end_layout
22974
22975 \end_inset
22976
22977  and 
22978 \begin_inset Flex Code
22979 status collapsed
22980
22981 \begin_layout Plain Layout
22982 push
22983 \end_layout
22984
22985 \end_inset
22986
22987  GIT commands.
22988  \SpecialChar LyX
22989  does not interact in any way with remote GIT repositories.
22990  It works exclusively with the local repository in a very similar way as
22991  with a central CVS or SVN repository.
22992  If you use remote GIT repositories you need to do the 
22993 \begin_inset Flex Code
22994 status collapsed
22995
22996 \begin_layout Plain Layout
22997 pull
22998 \end_layout
22999
23000 \end_inset
23001
23002  and 
23003 \begin_inset Flex Code
23004 status collapsed
23005
23006 \begin_layout Plain Layout
23007 push
23008 \end_layout
23009
23010 \end_inset
23011
23012  operations with your favourite GIT client.
23013 \end_layout
23014
23015 \begin_layout Subsubsection
23016
23017 \family sans
23018 Register
23019 \end_layout
23020
23021 \begin_layout Standard
23022 If your document is not under revision control, this is the only item shown
23023  in the menu.
23024  And if it is under revision control, the 
23025 \family sans
23026 Register
23027 \family default
23028  item is not visible.
23029 \end_layout
23030
23031 \begin_layout Standard
23032 This command registers in GIT your document ONLY in case you have already
23033  the documents directory under GIT control (in particular 
23034 \family typewriter
23035 .git/index
23036 \family default
23037  file exists).
23038  This means you have to checkout the archive by yourself.
23039 \end_layout
23040
23041 \begin_layout Standard
23042 Then you are asked interactively to supply an initial description of the
23043  document.
23044  Don't forget that registered file is not yet committed.
23045 \end_layout
23046
23047 \begin_layout Standard
23048 GIT command that is run: 
23049 \family typewriter
23050 git add 
23051 \begin_inset Quotes qld
23052 \end_inset
23053
23054 <file-name>
23055 \begin_inset Quotes qld
23056 \end_inset
23057
23058
23059 \end_layout
23060
23061 \begin_layout Standard
23062 Read 
23063 \family typewriter
23064 man git
23065 \family default
23066  to understand the switches.
23067 \end_layout
23068
23069 \begin_layout Subsubsection
23070
23071 \family sans
23072 Check In Changes
23073 \end_layout
23074
23075 \begin_layout Standard
23076 When you are finished editing a file, you commit your changes.
23077  When you do this, you are asked for a description of the changes.
23078  After that changes are committed.
23079 \end_layout
23080
23081 \begin_layout Standard
23082 GIT command: 
23083 \family typewriter
23084 git commit -q -m"<description>" <file-name>
23085 \end_layout
23086
23087 \begin_layout Subsubsection
23088
23089 \family sans
23090 Revert To Repository Version
23091 \end_layout
23092
23093 \begin_layout Standard
23094 This will discard all changes made to the document since the last check
23095  in.
23096  You get a warning before changes are discarded.
23097 \end_layout
23098
23099 \begin_layout Standard
23100 GIT command: 
23101 \family typewriter
23102 git checkout -q 
23103 \begin_inset Quotes qld
23104 \end_inset
23105
23106 <file-name>
23107 \begin_inset Quotes qld
23108 \end_inset
23109
23110
23111 \end_layout
23112
23113 \begin_layout Subsubsection
23114
23115 \family sans
23116 Rename
23117 \end_layout
23118
23119 \begin_layout Standard
23120 This will rename the current document including the version history.
23121  It requires a clean document without any changes since the last checkin.
23122  You are asked for a file name and a description of the rename operation.
23123  After that the document is renamed, both locally and in the repository.
23124  If the parent directories of the new and old file names differ, all relative
23125  paths of included files are adjusted (like in 
23126 \family sans
23127 File\SpecialChar menuseparator
23128 Save As
23129 \family default
23130 \SpecialChar ldots
23131 ).
23132  Finally, the document is reloaded using the new name.
23133 \end_layout
23134
23135 \begin_layout Labeling
23136 \labelwidthstring 00.00.0000
23137 GIT
23138 \begin_inset space ~
23139 \end_inset
23140
23141 commands: 
23142 \begin_inset space ~
23143 \end_inset
23144
23145
23146 \begin_inset Newline newline
23147 \end_inset
23148
23149
23150 \begin_inset Flex Code
23151 status collapsed
23152
23153 \begin_layout Plain Layout
23154 git mv 
23155 \family typewriter
23156
23157 \begin_inset Quotes qld
23158 \end_inset
23159
23160 <file-name>
23161 \begin_inset Quotes qld
23162 \end_inset
23163
23164  
23165 \begin_inset Quotes qld
23166 \end_inset
23167
23168 <new-file-name>
23169 \begin_inset Quotes qld
23170 \end_inset
23171
23172
23173 \end_layout
23174
23175 \end_inset
23176
23177
23178 \begin_inset Newline newline
23179 \end_inset
23180
23181
23182 \begin_inset Flex Code
23183 status collapsed
23184
23185 \begin_layout Plain Layout
23186 git commit
23187 \end_layout
23188
23189 \end_inset
23190
23191
23192 \end_layout
23193
23194 \begin_layout Subsubsection
23195
23196 \family sans
23197 Show History
23198 \end_layout
23199
23200 \begin_layout Standard
23201 This shows the complete history of the GIT document.
23202  The output of 
23203 \family typewriter
23204 git log 
23205 \begin_inset Quotes qld
23206 \end_inset
23207
23208 <file-name>
23209 \begin_inset Quotes qld
23210 \end_inset
23211
23212
23213 \family default
23214  is shown in a browser.
23215 \end_layout
23216
23217 \begin_layout Subsubsection
23218 Version Info
23219 \end_layout
23220
23221 \begin_layout Standard
23222 \SpecialChar LyX
23223  supports GIT hash number of the last commit to the file, 
23224 \change_inserted 1119979965 1564297456
23225 its abbreviated form, 
23226 \change_unchanged
23227 author name, date and time of last commit.
23228  All those are extracted from 
23229 \family typewriter
23230 git log -n 1 --pretty=format:%H%n
23231 \change_inserted 1119979965 1564297427
23232 %h%n
23233 \change_unchanged
23234 %an%n%ai
23235 \family default
23236 .
23237  Tree version information is obtained via 
23238 \family typewriter
23239 git describe --abbrev --dirty --long
23240 \family default
23241 .
23242  See 
23243 \begin_inset CommandInset ref
23244 LatexCommand ref
23245 reference "subsec:VCS-Revision-Information"
23246
23247 \end_inset
23248
23249  for other details.
23250 \end_layout
23251
23252 \begin_layout Subsection
23253 Further tuning
23254 \end_layout
23255
23256 \begin_layout Standard
23257 With the recent addition of the 
23258 \begin_inset Flex Code
23259 status collapsed
23260
23261 \begin_layout Plain Layout
23262 vc-command
23263 \end_layout
23264
23265 \end_inset
23266
23267  function \SpecialChar LyX
23268  power users are allowed to create their own commands for revision
23269  control.
23270 \end_layout
23271
23272 \begin_layout Standard
23273 As an example you can see how two TortoiseSVN commands could be integrated
23274  directly:
23275 \end_layout
23276
23277 \begin_layout Description
23278 Commit: 
23279 \begin_inset Flex Code
23280 status collapsed
23281
23282 \begin_layout Plain Layout
23283 vc-command DR "." "TortoiseProc /command:commit /path:$$p"
23284 \end_layout
23285
23286 \end_inset
23287
23288
23289 \end_layout
23290
23291 \begin_layout Description
23292 Revert: 
23293 \begin_inset Flex Code
23294 status collapsed
23295
23296 \begin_layout Plain Layout
23297 vc-command DR "." "TortoiseProc /command:revert /path:$$p"
23298 \end_layout
23299
23300 \end_inset
23301
23302
23303 \end_layout
23304
23305 \begin_layout Subsection
23306 Version control and Document comparison
23307 \end_layout
23308
23309 \begin_layout Standard
23310 One of the typical uses of version control is to inspect the changes between
23311  revisions, usually by creating 
23312 \begin_inset Flex Code
23313 status collapsed
23314
23315 \begin_layout Plain Layout
23316 diff
23317 \end_layout
23318
23319 \end_inset
23320
23321  dumps.
23322  While this is useful for plain text files, it is much less useful in the
23323  case of \SpecialChar LyX
23324  files, which have more a complicated structure.
23325  Hence we provide binding to the Document comparison feature.
23326  There are two ways of calling this feature – either by direct call of 
23327 \begin_inset Flex Code
23328 status collapsed
23329
23330 \begin_layout Plain Layout
23331 vc-compare
23332 \end_layout
23333
23334 \end_inset
23335
23336  \SpecialChar LyX
23337  function (for details see \SpecialChar LyX
23338  functions manual) or by the toolbar icon 
23339 \begin_inset Info
23340 type  "icon"
23341 arg   "vc-compare"
23342 \end_inset
23343
23344  or the menu item 
23345 \begin_inset Info
23346 type  "menu"
23347 arg   "vc-compare"
23348 \end_inset
23349
23350 , respectively.
23351  One can either compare two chosen revisions of the document or he can simply
23352  compare the current version of edited text with older revisions (where
23353  '
23354 \begin_inset Flex Noun
23355 status collapsed
23356
23357 \begin_layout Plain Layout
23358 0
23359 \end_layout
23360
23361 \end_inset
23362
23363 ' revisions back means comparison of the edited file with last commited
23364  revision).
23365  
23366 \end_layout
23367
23368 \begin_layout Standard
23369 This feature is supported for SVN and RCS though due to the more complicated
23370  versioning scheme of RCS there is a constraint – when addressing the revisions
23371  in dialog, numbers always point to the last number in RCS revision number,
23372  i.e.
23373  '35' in '1.2.35'.
23374  We don't currently support GIT addressing of revisions, one can just compare
23375  edited document with its revision X steps backs, where X is addressed as
23376  
23377 \begin_inset Flex Code
23378 status collapsed
23379
23380 \begin_layout Plain Layout
23381 HEAD~X
23382 \end_layout
23383
23384 \end_inset
23385
23386 .
23387 \end_layout
23388
23389 \begin_layout Section
23390 Literate Programming
23391 \end_layout
23392
23393 \begin_layout Standard
23394 Updated by 
23395 \noun on
23396 Kayvan Sylvan 
23397 \noun default
23398 (kayvan@sylvan.com)
23399 \noun on
23400
23401 \noun default
23402 original documentation written by 
23403 \noun on
23404 Edmar Wienskoski Jr.
23405
23406 \noun default
23407  (edmar-w-jr@technologist.com)
23408 \end_layout
23409
23410 \begin_layout Subsection
23411 Introduction
23412 \end_layout
23413
23414 \begin_layout Standard
23415 The main purpose of this documentation is to show you how to use \SpecialChar LyX
23416  for literate
23417  programming, where it is assumed that you are familiar with this programming
23418  technique, and know what 
23419 \begin_inset Quotes eld
23420 \end_inset
23421
23422 tangling
23423 \begin_inset Quotes erd
23424 \end_inset
23425
23426  and 
23427 \begin_inset Quotes eld
23428 \end_inset
23429
23430 weaving
23431 \begin_inset Quotes erd
23432 \end_inset
23433
23434  means.
23435  If that is not the case, please follow the web links provided in the following
23436  sections.
23437  There is a lot of good documentation out there covering old development
23438  history to the latest tools tips.
23439 \end_layout
23440
23441 \begin_layout Standard
23442 It is also assumed that you are familiar with \SpecialChar LyX
23443  itself to a point that you
23444  are comfortable changing your \SpecialChar LyX
23445  preferences, and X resources file.
23446  If that is not the case please refer to other \SpecialChar LyX
23447  documentation to cover your
23448  specific needs.
23449 \end_layout
23450
23451 \begin_layout Subsection
23452 Literate Programming
23453 \end_layout
23454
23455 \begin_layout Standard
23456 From the Literate Programming FAQ: 
23457 \end_layout
23458
23459 \begin_layout Quotation
23460 Literate programming is the combination of documentation and source together
23461  in a fashion suited for reading by human beings.
23462  In fact, literate programs should be enjoyable reading, even inviting!
23463  (Sorry Bob, I couldn't resist!) In general, literate programs combine source
23464  and documentation in a single file.
23465  Literate programming tools then parse the file to produce either readable
23466  documentation or compilable source.
23467  The WEB style of literate programming was created by D.
23468 \begin_inset space \thinspace{}
23469 \end_inset
23470
23471 E.
23472  Knuth during the development of his \SpecialChar TeX
23473  typesetting software.
23474  
23475 \end_layout
23476
23477 \begin_layout Standard
23478 Another excerpt says:
23479 \end_layout
23480
23481 \begin_layout Quotation
23482
23483 \emph on
23484 How is literate programming different from verbose commenting?
23485 \end_layout
23486
23487 \begin_layout Quotation
23488 There are three distinguishing characteristics.
23489  In order of importance, they are: 
23490 \end_layout
23491
23492 \begin_deeper
23493 \begin_layout Itemize
23494 flexible order of elaboration 
23495 \end_layout
23496
23497 \begin_layout Itemize
23498 automatic support for browsing 
23499 \end_layout
23500
23501 \begin_layout Itemize
23502 typeset documentation, especially diagrams and mathematics 
23503 \end_layout
23504
23505 \end_deeper
23506 \begin_layout Standard
23507 Now that I sparked your curiosity, take a look in the references.
23508 \end_layout
23509
23510 \begin_layout Subsubsection
23511 References
23512 \end_layout
23513
23514 \begin_layout Standard
23515 The complete Literate Programming FAQ can be found at:
23516 \end_layout
23517
23518 \begin_layout Quote
23519 Literate Programming FAQ 
23520 \begin_inset Flex URL
23521 status open
23522
23523 \begin_layout Plain Layout
23524
23525 http://www.literateprogramming.com/lpfaq.pdf
23526 \end_layout
23527
23528 \end_inset
23529
23530
23531 \end_layout
23532
23533 \begin_layout Standard
23534 The FAQ lists 23 (twenty three!) different literate programming tools.
23535  Where some are specialized or 
23536 \begin_inset Quotes eld
23537 \end_inset
23538
23539 tailored
23540 \begin_inset Quotes erd
23541 \end_inset
23542
23543  for particular programming languages, while other have general scope.
23544  I selected 
23545 \noun on
23546 Noweb
23547 \noun default
23548  for my own use for several reasons:
23549 \end_layout
23550
23551 \begin_layout Itemize
23552 It can generate the documentation either in \SpecialChar LaTeX
23553  or HTML.
23554 \end_layout
23555
23556 \begin_layout Itemize
23557 It has a open architecture, i.
23558 \begin_inset space \thinspace{}
23559 \end_inset
23560
23561 e.
23562 \begin_inset space \space{}
23563 \end_inset
23564
23565 it is easy to plug in new filters
23566 \begin_inset Foot
23567 status collapsed
23568
23569 \begin_layout Plain Layout
23570
23571 \emph on
23572 Filters 
23573 \emph default
23574 are programs that read a given data stream and output a manipulated data
23575  stream.
23576  That way, a WEB file (consisting of literate code) can be turned into a
23577  file consisting only of C program code or \SpecialChar LaTeX
23578  code.
23579 \end_layout
23580
23581 \end_inset
23582
23583  and to perform special processing that you may need.
23584  
23585 \end_layout
23586
23587 \begin_layout Itemize
23588 There is a good selection of filters available already (the HTML is one
23589  of them).
23590 \end_layout
23591
23592 \begin_layout Itemize
23593 It is free.
23594 \end_layout
23595
23596 \begin_layout Standard
23597 The Noweb web page can be found at: 
23598 \end_layout
23599
23600 \begin_layout Quote
23601 Noweb home page 
23602 \begin_inset Flex URL
23603 status collapsed
23604
23605 \begin_layout Plain Layout
23606
23607 https://www.cs.tufts.edu/~nr/noweb/
23608 \end_layout
23609
23610 \end_inset
23611
23612
23613 \end_layout
23614
23615 \begin_layout Standard
23616 Starting from there you can reach many other interesting links and even
23617  some literate program examples.
23618 \end_layout
23619
23620 \begin_layout Subsection
23621 \SpecialChar LyX
23622  and Literate Programming with Noweb
23623 \end_layout
23624
23625 \begin_layout Standard
23626 The \SpecialChar LyX
23627  support for Literate Programming is provided by using the generic \SpecialChar LyX
23628
23629  converters mechanism.
23630  This support is provided in a 
23631 \begin_inset Quotes eld
23632 \end_inset
23633
23634 Noweb independent
23635 \begin_inset Quotes erd
23636 \end_inset
23637
23638  way, i.
23639 \begin_inset space \thinspace{}
23640 \end_inset
23641
23642 e.
23643 \begin_inset space \space{}
23644 \end_inset
23645
23646 you will be able to use this new \SpecialChar LyX
23647  feature with some other literate programming
23648  tool of your choice by just changing your \SpecialChar LyX
23649  preferences.
23650 \end_layout
23651
23652 \begin_layout Subsubsection
23653 Generating documents and code (weaving and tangling)
23654 \end_layout
23655
23656 \begin_layout Paragraph
23657 Using the noweb module
23658 \end_layout
23659
23660 \begin_layout Standard
23661 If you have installed Noweb and \SpecialChar LyX
23662  successfully, whenever you open a new document,
23663  after you have chosen its document class, use the 
23664 \family sans
23665 Document\SpecialChar menuseparator
23666 Settings
23667 \family default
23668  menu to add the 
23669 \begin_inset Quotes eld
23670 \end_inset
23671
23672 noweb
23673 \begin_inset Quotes erd
23674 \end_inset
23675
23676  module.
23677  If Noweb is correctly installed, when you click on the 
23678 \begin_inset Quotes eld
23679 \end_inset
23680
23681 Modules
23682 \begin_inset Quotes erd
23683 \end_inset
23684
23685  link, you will see the 
23686 \begin_inset Quotes eld
23687 \end_inset
23688
23689 noweb
23690 \begin_inset Quotes erd
23691 \end_inset
23692
23693  module in the available list and you can add it to your document.
23694 \end_layout
23695
23696 \begin_layout Paragraph
23697 Typing code in
23698 \end_layout
23699
23700 \begin_layout Standard
23701 \SpecialChar LyX
23702  enables you to write code with a custom inset named 
23703 \begin_inset Flex Noun
23704 status collapsed
23705
23706 \begin_layout Plain Layout
23707 Chunk
23708 \end_layout
23709
23710 \end_inset
23711
23712 .
23713  Noweb delimits chunks like this:
23714 \end_layout
23715
23716 \begin_layout LyX-Code
23717 <<My code>>=
23718 \end_layout
23719
23720 \begin_layout LyX-Code
23721   code
23722 \end_layout
23723
23724 \begin_layout LyX-Code
23725   more code
23726 \end_layout
23727
23728 \begin_layout LyX-Code
23729   even more code
23730 \end_layout
23731
23732 \begin_layout LyX-Code
23733   @
23734 \end_layout
23735
23736 \begin_layout Standard
23737 The problem is that whatever is written in between the << and the 
23738 \family typewriter
23739 @
23740 \family default
23741  must be taken literally, i.
23742 \begin_inset space \thinspace{}
23743 \end_inset
23744
23745 e.
23746 \begin_inset space \space{}
23747 \end_inset
23748
23749 \SpecialChar LyX
23750  should be prevented from making any special interpretation of what has
23751  been written.
23752  This is also handled by 
23753 \begin_inset Flex Noun
23754 status collapsed
23755
23756 \begin_layout Plain Layout
23757 Chunk
23758 \end_layout
23759
23760 \end_inset
23761
23762 , that works like a normal text inset but has a free spacing capability.
23763 \end_layout
23764
23765 \begin_layout Standard
23766 As a special note, you can also use the 
23767 \begin_inset Quotes eld
23768 \end_inset
23769
23770 %def
23771 \begin_inset Quotes erd
23772 \end_inset
23773
23774  construct of Noweb in your chunks to add items to Noweb's identifier cross-refe
23775 rence:
23776 \end_layout
23777
23778 \begin_layout LyX-Code
23779 <<My chunk>>=
23780 \end_layout
23781
23782 \begin_layout LyX-Code
23783 def some_function(args):
23784 \end_layout
23785
23786 \begin_layout LyX-Code
23787    "This is the doc string for this function."
23788 \end_layout
23789
23790 \begin_layout LyX-Code
23791    print "My args: ", args
23792 \end_layout
23793
23794 \begin_layout LyX-Code
23795 @ %def some_function
23796 \end_layout
23797
23798 \begin_layout Standard
23799 For an example of this usage and the resulting cross-reference output, look
23800  at the Literate python program in 
23801 \emph on
23802 LIBDIR/examples/listerrors.lyx
23803 \emph default
23804  which should make this all clear.
23805 \end_layout
23806
23807 \begin_layout Paragraph
23808 Generating the documentation
23809 \end_layout
23810
23811 \begin_layout Standard
23812 At this point you already have a new document file with a proper document
23813  class, and with some code and text on it.
23814  How do I print it? The answer is simple, you select 
23815 \family sans
23816 View\SpecialChar menuseparator
23817 DVI,
23818 \family default
23819  etc.
23820  Just like you would do for a plain document.
23821  No special procedure is required.
23822 \end_layout
23823
23824 \begin_layout Standard
23825 To help orientate you, I will now explain what happens inside \SpecialChar LyX
23826 :
23827 \end_layout
23828
23829 \begin_layout Enumerate
23830 When the 
23831 \family sans
23832 Update\SpecialChar menuseparator
23833 DVI
23834 \family default
23835  menu option is chosen, a \SpecialChar LaTeX
23836  file is generated.
23837  
23838 \end_layout
23839
23840 \begin_deeper
23841 \begin_layout Standard
23842 If the document is of any literate class the generated file will be named
23843  with an extension name defined by the 
23844 \begin_inset Quotes eld
23845 \end_inset
23846
23847 literate
23848 \begin_inset Quotes erd
23849 \end_inset
23850
23851  format (defined in the Preferences panel), otherwise the file will have
23852  the usual 
23853 \family typewriter
23854 .tex
23855 \family default
23856  extension.
23857 \end_layout
23858
23859 \end_deeper
23860 \begin_layout Enumerate
23861 Note that the only difference so far is in the name of the file, no special
23862  processing is required by \SpecialChar LyX
23863 .
23864  Given that you formatted the code using the 
23865 \begin_inset Flex Noun
23866 status collapsed
23867
23868 \begin_layout Plain Layout
23869 Chunk
23870 \end_layout
23871
23872 \end_inset
23873
23874  inset that, by itself, takes care of the business.
23875 \end_layout
23876
23877 \begin_layout Enumerate
23878 If the document is of any literate class \SpecialChar LyX
23879  will then use the internal \SpecialChar LyX
23880  to
23881  Noweb converter, followed by the Noweb to \SpecialChar LaTeX
23882  converter
23883 \begin_inset Foot
23884 status collapsed
23885
23886 \begin_layout Plain Layout
23887 The converters are defined in the 
23888 \family sans
23889 Tools\SpecialChar menuseparator
23890 Preferences
23891 \family default
23892  panel, under the 
23893 \begin_inset Quotes eld
23894 \end_inset
23895
23896 Conversion
23897 \begin_inset Quotes erd
23898 \end_inset
23899
23900  tab.
23901  See section 
23902 \emph on
23903 Converters
23904 \emph default
23905  of the 
23906 \emph on
23907 Customization
23908 \emph default
23909  manual for general information about converters.
23910 \end_layout
23911
23912 \end_inset
23913
23914  to generate the \SpecialChar LaTeX
23915  file.
23916 \end_layout
23917
23918 \begin_deeper
23919 \begin_layout Standard
23920 Otherwise it will just skip this step.
23921 \end_layout
23922
23923 \end_deeper
23924 \begin_layout Enumerate
23925 Finally, \SpecialChar LaTeX
23926  is invoked and the regular post processing continues as in a plain
23927  document.
23928 \end_layout
23929
23930 \begin_layout Standard
23931 Independence from a particular 
23932 \begin_inset Quotes eld
23933 \end_inset
23934
23935 literate tool
23936 \begin_inset Quotes erd
23937 \end_inset
23938
23939  is easily achieved by changing the commands that are run by the various
23940  converters.
23941 \end_layout
23942
23943 \begin_layout Paragraph
23944 Generating the code
23945 \end_layout
23946
23947 \begin_layout Standard
23948 When the build menu option is chosen or the corresponding button in the
23949  toolbar is pressed, a \SpecialChar LaTeX
23950  file is generated just like step 1 above.
23951  Next, \SpecialChar LyX
23952  invokes the 
23953 \family typewriter
23954 Noweb->Program
23955 \family default
23956  converter.
23957  This converter needs to be defined by the user and is not installed by
23958  default, though the Program format is.
23959  This converter (like any other converter) will have two parts:
23960 \end_layout
23961
23962 \begin_layout Enumerate
23963 The converter program itself.
23964  This program performs the conversion from the one format to the other (in
23965  this case, from the Noweb format to the Program pseudo-format).
23966 \end_layout
23967
23968 \begin_layout Enumerate
23969 The error log parser.
23970  This is a program whose sole purpose is to rewrite error messages in a
23971  format that \SpecialChar LyX
23972  understands.
23973  This makes it possible for \SpecialChar LyX
23974  to place error boxes in the right places in
23975  the file buffer.
23976 \end_layout
23977
23978 \begin_layout Standard
23979 The first part, the 
23980 \begin_inset Quotes eld
23981 \end_inset
23982
23983 Converter
23984 \begin_inset Quotes erd
23985 \end_inset
23986
23987  setting, should be set to
23988 \end_layout
23989
23990 \begin_layout LyX-Code
23991
23992 \family typewriter
23993 build-script $$i
23994 \family default
23995  $$r
23996 \end_layout
23997
23998 \begin_layout Standard
23999 This basically means that \SpecialChar LyX
24000  will call 
24001 \begin_inset Quotes eld
24002 \end_inset
24003
24004 build-script
24005 \begin_inset Quotes erd
24006 \end_inset
24007
24008  (a program or script) with the name of the Noweb file (normally a file
24009  in the \SpecialChar LyX
24010  temp directory) and the directory path of the original \SpecialChar LyX
24011  file.
24012  
24013 \end_layout
24014
24015 \begin_layout Standard
24016 This is an implementation of 
24017 \begin_inset Quotes eld
24018 \end_inset
24019
24020 build-script
24021 \begin_inset Quotes erd
24022 \end_inset
24023
24024  that you can place in a directory on your path:
24025 \end_layout
24026
24027 \begin_layout LyX-Code
24028
24029 \family sans
24030 #!/bin/sh
24031 \end_layout
24032
24033 \begin_layout LyX-Code
24034
24035 \family sans
24036 #
24037 \end_layout
24038
24039 \begin_layout LyX-Code
24040
24041 \family sans
24042 notangle -Rbuild-script $1 | env NOWEB_SOURCE=$1 NOWEB_OUTPUT_DIR=$2 sh
24043 \end_layout
24044
24045 \begin_layout Standard
24046 The next part of the converter setting is the 
24047 \begin_inset Quotes eld
24048 \end_inset
24049
24050 Flags
24051 \begin_inset Quotes erd
24052 \end_inset
24053
24054  which is to be set to
24055 \end_layout
24056
24057 \begin_layout LyX-Code
24058
24059 \family typewriter
24060 parselog=$$s/scripts/listerrors
24061 \end_layout
24062
24063 \begin_layout Standard
24064 This will run any errors that are generated by the 
24065 \begin_inset Quotes eld
24066 \end_inset
24067
24068 build-script
24069 \begin_inset Quotes erd
24070 \end_inset
24071
24072  process through the 
24073 \begin_inset Quotes eld
24074 \end_inset
24075
24076 listerrors
24077 \begin_inset Quotes erd
24078 \end_inset
24079
24080  program.
24081 \end_layout
24082
24083 \begin_layout Standard
24084 The build will normally take place in \SpecialChar LyX
24085 's temporary directory, so the files
24086  produced by the conversion will be in that directory.
24087  \SpecialChar LyX
24088  will copy out what it regards as the `main' file, but the 
24089 \family typewriter
24090 Noweb->Program
24091 \family default
24092  conversion may produce several files, and so most of these would then be
24093  deleted when \SpecialChar LyX
24094  was closed.
24095  This is why we pass in the NOWEB_OUTPUT_DIR environment variable so that
24096  the build-script chunk can place the generated files in that location.
24097 \end_layout
24098
24099 \begin_layout Paragraph
24100 Build instructions in the document
24101 \end_layout
24102
24103 \begin_layout Standard
24104 The last piece of the integration between \SpecialChar LyX
24105  and noweb is the 
24106 \begin_inset Quotes eld
24107 \end_inset
24108
24109 build-script
24110 \begin_inset Quotes erd
24111 \end_inset
24112
24113  chunk.
24114  Generally, the instructions for building your program should be embedded
24115  in a chunk of its own.
24116  The noweb-specific 
24117 \begin_inset Quotes eld
24118 \end_inset
24119
24120 build-script
24121 \begin_inset Quotes erd
24122 \end_inset
24123
24124  above uses the notangle command to look for this chunk (called 
24125 \begin_inset Quotes eld
24126 \end_inset
24127
24128 build-script
24129 \begin_inset Quotes erd
24130 \end_inset
24131
24132 ) and runs its contents through 
24133 \begin_inset Quotes eld
24134 \end_inset
24135
24136 sh
24137 \begin_inset Quotes erd
24138 \end_inset
24139
24140 .
24141 \end_layout
24142
24143 \begin_layout Standard
24144 Typically, such a chunk would look something like this:
24145 \end_layout
24146
24147 \begin_layout LyX-Code
24148 <<build-script>>=
24149 \end_layout
24150
24151 \begin_layout LyX-Code
24152 #!/bin/sh
24153 \begin_inset Newline newline
24154 \end_inset
24155
24156 if [ -z "${NOWEB_SOURCE}" ]
24157 \begin_inset Newline newline
24158 \end_inset
24159
24160 then
24161 \end_layout
24162
24163 \begin_layout LyX-Code
24164 NOWEB_SOURCE=myfile.nw
24165 \begin_inset Newline newline
24166 \end_inset
24167
24168 fi
24169 \begin_inset Newline newline
24170 \end_inset
24171
24172 [...
24173  code to extract files ...
24174  use NOWEB_OUTPUT_DIR here ...]
24175 \begin_inset Newline newline
24176 \end_inset
24177
24178 [...
24179  code to compile files ...]
24180 \begin_inset Newline newline
24181 \end_inset
24182
24183 @
24184 \end_layout
24185
24186 \begin_layout Standard
24187 Look in 
24188 \emph on
24189 LIBDIR/examples/listerrors.lyx
24190 \emph default
24191  or in 
24192 \emph on
24193 LIBDIR/examples/Literate.lyx
24194 \emph default
24195  which implement two versions of the 
24196 \begin_inset Quotes eld
24197 \end_inset
24198
24199 listerrors
24200 \begin_inset Quotes erd
24201 \end_inset
24202
24203  program for some illustrations of how all of these pieces go together or
24204  in 
24205 \emph on
24206 LIBDIR/examples/noweb2lyx.lyx.
24207
24208 \emph default
24209  Interestingly, these three files show off the language-indepence of the
24210  \SpecialChar LyX
24211  literate programming support since they are written in Python, C and Perl
24212  respectively.
24213 \end_layout
24214
24215 \begin_layout Subsubsection
24216 Configuring \SpecialChar LyX
24217
24218 \end_layout
24219
24220 \begin_layout Standard
24221 All the Literate Programming support is configured by the 
24222 \family sans
24223 Tools\SpecialChar menuseparator
24224 Preferences
24225 \family default
24226  panel in the 
24227 \begin_inset Quotes eld
24228 \end_inset
24229
24230 File Handling
24231 \begin_inset Quotes erd
24232 \end_inset
24233
24234  tab.
24235  The important parts are:
24236 \end_layout
24237
24238 \begin_layout Description
24239 the
24240 \begin_inset space ~
24241 \end_inset
24242
24243
24244 \begin_inset Quotes eld
24245 \end_inset
24246
24247 NoWeb
24248 \begin_inset Quotes erd
24249 \end_inset
24250
24251
24252 \begin_inset space ~
24253 \end_inset
24254
24255 format Set up via the File Formats tab, this is where the Noweb-specific
24256  pieces are set up.
24257  The 
24258 \family sans
24259 GUI Name
24260 \family default
24261  is set to 
24262 \family typewriter
24263 NoWeb
24264 \family default
24265 , the file extension is set to 
24266 \family typewriter
24267 .nw
24268 \family default
24269 .
24270  This tells \SpecialChar LyX
24271  to create a file with a 
24272 \family typewriter
24273 .nw
24274 \family default
24275  extension in the first step of the conversion process.
24276 \end_layout
24277
24278 \begin_layout Description
24279 the
24280 \begin_inset space ~
24281 \end_inset
24282
24283
24284 \family sans
24285 Program
24286 \family default
24287
24288 \begin_inset space ~
24289 \end_inset
24290
24291 format This is an empty format whose sole purpose is to be the endpoint
24292  of a conversion (which then allows us to set up a converter for it).
24293 \end_layout
24294
24295 \begin_layout Description
24296
24297 \family sans
24298 NoWeb
24299 \family default
24300 ->
24301 \family sans
24302 \SpecialChar LaTeX
24303
24304 \family default
24305  This converter performs the 
24306 \begin_inset Quotes eld
24307 \end_inset
24308
24309 weaving
24310 \begin_inset Quotes erd
24311 \end_inset
24312
24313  of the literate document.
24314  For Noweb, it is set to 
24315 \begin_inset Quotes eld
24316 \end_inset
24317
24318
24319 \family typewriter
24320 noweave -delay -index $$i > $$o
24321 \family default
24322
24323 \begin_inset Quotes erd
24324 \end_inset
24325
24326
24327 \end_layout
24328
24329 \begin_layout Description
24330
24331 \family sans
24332 NoWeb
24333 \family default
24334 ->
24335 \family sans
24336 Program
24337 \family default
24338  This performs the 
24339 \begin_inset Quotes eld
24340 \end_inset
24341
24342 tangling step
24343 \begin_inset Quotes erd
24344 \end_inset
24345
24346 .
24347  As stated above, the Converter is set to 
24348 \begin_inset Quotes eld
24349 \end_inset
24350
24351
24352 \family typewriter
24353 build-script $$i
24354 \family default
24355  $$r
24356 \begin_inset Quotes erd
24357 \end_inset
24358
24359 , with Flags set to
24360 \begin_inset Newline newline
24361 \end_inset
24362
24363
24364 \begin_inset Quotes eld
24365 \end_inset
24366
24367
24368 \family typewriter
24369 parselog=$$s/scripts/listerrors
24370 \family default
24371
24372 \begin_inset Quotes erd
24373 \end_inset
24374
24375 .
24376 \end_layout
24377
24378 \begin_layout Subsubsection
24379 Debug extensions
24380 \end_layout
24381
24382 \begin_layout Standard
24383 There is also a new function implemented in the \SpecialChar LyX
24384  server, the 
24385 \begin_inset Quotes eld
24386 \end_inset
24387
24388 server-goto-file-row" function, to be used with ddd/gdb or other debugger.
24389  
24390 \end_layout
24391
24392 \begin_layout Standard
24393 When debugging code with ddd/gdb, it is possible to invoke a text editor
24394  at the current execution position with a single key stroke.
24395  The default ddd configuration for that is shift-ctrl-V.
24396  It happens that you can define the editor command line invocation in ddd
24397  by accessing the 
24398 \family sans
24399 Edit\SpecialChar menuseparator
24400 Preferences\SpecialChar menuseparator
24401 Helpers
24402 \family default
24403  dialog and changing the "Edit Sources" entry.
24404 \end_layout
24405
24406 \begin_layout Standard
24407 I take advantage of the newly created \SpecialChar LyX
24408  server function and this ddd feature,
24409  and set 
24410 \begin_inset Quotes eld
24411 \end_inset
24412
24413 Edit Sources
24414 \begin_inset Quotes erd
24415 \end_inset
24416
24417  to:
24418 \end_layout
24419
24420 \begin_layout LyX-Code
24421 echo "LYXCMD:monitor:server-goto-file-row:@FILE@ @LINE@" >~/.lyxpipe.in
24422 \end_layout
24423
24424 \begin_layout Standard
24425 With this, whenever you are using ddd and find a point in the program that
24426  you want to edit, you just press shift-ctrl-V (in the ddd window), and
24427  ddd will forward this information to \SpecialChar LyX
24428  through the \SpecialChar LyX
24429  server and then the
24430  \SpecialChar LyX
24431  window will show the same file with the cursor at the same position ddd
24432  was pointing to.
24433  No more guessing or long scrolling to locate a point in the program back
24434  from debugging !
24435 \end_layout
24436
24437 \begin_layout Standard
24438 Note however that you must enable the \SpecialChar LyX
24439  server to get this feature working
24440  (it is disabled by default).
24441  Sec.
24442 \begin_inset space ~
24443 \end_inset
24444
24445
24446 \begin_inset CommandInset ref
24447 LatexCommand ref
24448 reference "sec:Starting-the-Server"
24449
24450 \end_inset
24451
24452  explains how to do that.
24453 \end_layout
24454
24455 \begin_layout Subsubsection
24456 Toolbar extensions
24457 \end_layout
24458
24459 \begin_layout Standard
24460 There are six new buttons that can be added to your \SpecialChar LyX
24461  toolbar.
24462  Four of these buttons are short cuts to layout styles: 
24463 \family sans
24464 Standard
24465 \family default
24466
24467 \family sans
24468 Section
24469 \family default
24470
24471 \family sans
24472 \SpecialChar LaTeX
24473
24474 \family default
24475 , and 
24476 \family sans
24477 \SpecialChar LyX
24478 -Code
24479 \family default
24480 , one for the custom inset 
24481 \family sans
24482 Chunk
24483 \family default
24484 .
24485  The last one is a short cut to the 
24486 \begin_inset Quotes eld
24487 \end_inset
24488
24489 Build Program
24490 \begin_inset Quotes erd
24491 \end_inset
24492
24493  File menu entry.
24494  
24495 \end_layout
24496
24497 \begin_layout Standard
24498 \SpecialChar LyX
24499  has a range of buttons that are available for tool bar customization.
24500  In my toolbar I like to combine the six short cuts above with two more:
24501  One for 
24502 \family sans
24503 Document
24504 \family default
24505 \SpecialChar menuseparator
24506
24507 \family sans
24508 Update
24509 \family default
24510 \SpecialChar menuseparator
24511
24512 \family sans
24513 DVI
24514 \family default
24515  and the other for 
24516 \family sans
24517 Document\SpecialChar menuseparator
24518 View\SpecialChar menuseparator
24519 DVI
24520 \family default
24521  File menu entries.
24522  Here is how it looks like:
24523 \end_layout
24524
24525 \begin_layout LyX-Code
24526 Toolbar
24527 \end_layout
24528
24529 \begin_layout LyX-Code
24530   Layouts
24531 \end_layout
24532
24533 \begin_layout LyX-Code
24534   Icon "layout Standard"
24535 \end_layout
24536
24537 \begin_layout LyX-Code
24538   Icon "layout Section"
24539 \end_layout
24540
24541 \begin_layout LyX-Code
24542   Icon "layout \SpecialChar LaTeX
24543 "
24544 \end_layout
24545
24546 \begin_layout LyX-Code
24547   Icon "layout \SpecialChar LyX
24548 -Code"
24549 \end_layout
24550
24551 \begin_layout LyX-Code
24552   Icon "flex.insert Chunk"
24553 \end_layout
24554
24555 \begin_layout LyX-Code
24556   Separator
24557 \end_layout
24558
24559 \begin_layout LyX-Code
24560   Icon "buffer-view"
24561 \end_layout
24562
24563 \begin_layout LyX-Code
24564   Icon "buffer-typeset"
24565 \end_layout
24566
24567 \begin_layout LyX-Code
24568   Icon "build-program"
24569 \end_layout
24570
24571 \begin_layout LyX-Code
24572   Separator
24573 \end_layout
24574
24575 \begin_layout LyX-Code
24576 .
24577 \end_layout
24578
24579 \begin_layout LyX-Code
24580 .
24581 \end_layout
24582
24583 \begin_layout LyX-Code
24584 .
24585 \end_layout
24586
24587 \begin_layout LyX-Code
24588 End
24589 \end_layout
24590
24591 \begin_layout Subsubsection
24592 Colors customization
24593 \end_layout
24594
24595 \begin_layout Standard
24596 There are a number of colors in \SpecialChar LyX
24597  that can be customized in 
24598 \family sans
24599 Preferences
24600 \family default
24601 .
24602  One of the things that bothers people is the \SpecialChar LaTeX
24603  font color.
24604  The default color is red, since the chunks uses \SpecialChar LaTeX
24605  font, and there is a lot
24606  of chunks in literate documents, you may get tired of seeing everything
24607  in red.
24608  You can change it by going to the tabs 
24609 \family sans
24610 Look&Feel
24611 \family default
24612
24613 \family sans
24614 Colors.
24615 \end_layout
24616
24617 \begin_layout Standard
24618 The next thing is the visible presence of the newline character in the screen.
24619  You can choose the color of this particular character and make it blend
24620  in the background.
24621  I recommend you choosing a color that is close to the background but not
24622  equal, that way you still can see it is there, but it is not bothering
24623  you anymore.
24624 \end_layout
24625
24626 \begin_layout Subsection
24627 \SpecialChar LyX
24628  and knitr/Sweave
24629 \end_layout
24630
24631 \begin_layout Standard
24632 Support for 
24633 \family sans
24634 knitr
24635 \family default
24636  and 
24637 \family sans
24638 Sweave
24639 \family default
24640  is documented in the 
24641 \emph on
24642 knitr.lyx
24643 \emph default
24644  example file and in the Sweave manual (menu 
24645 \family sans
24646 Help\SpecialChar menuseparator
24647 Specific Manuals
24648 \family default
24649 ).
24650 \end_layout
24651
24652 \begin_layout Chapter
24653 Special features
24654 \end_layout
24655
24656 \begin_layout Standard
24657 You can do everything with \SpecialChar LyX
24658  that you can do with \SpecialChar LaTeX
24659 .
24660  However, \SpecialChar LyX
24661  cannot support every \SpecialChar LaTeX
24662  feature directly.
24663  But you can always use \SpecialChar TeX
24664  Code.
24665  This chapter shows you some more special things you might want to use.
24666  For other special things you can do with figures, tables, floats, boxes
24667  and notes, have a look at the 
24668 \emph on
24669 Embedded
24670 \begin_inset space ~
24671 \end_inset
24672
24673 Objects
24674 \emph default
24675  manual.
24676 \end_layout
24677
24678 \begin_layout Section
24679 Multiple Text Columns
24680 \end_layout
24681
24682 \begin_layout Standard
24683 This feature is independent of the option 
24684 \family sans
24685 Two-column document
24686 \family default
24687  in the document settings under 
24688 \family sans
24689 Text Layout
24690 \family default
24691 .
24692  If you want to have 2
24693 \begin_inset space ~
24694 \end_inset
24695
24696 columns for the whole document, it is recommended to use the 
24697 \family sans
24698 Two-column document
24699 \family default
24700  option.
24701  For all other cases use this feature.
24702 \end_layout
24703
24704 \begin_layout Standard
24705 To use multiple text columns in your document, you have to load the module
24706  
24707 \family sans
24708 Multiple Columns
24709 \family default
24710  (menu 
24711 \family sans
24712 Document\SpecialChar menuseparator
24713 Settings\SpecialChar menuseparator
24714 Modules
24715 \family default
24716 ) and must have the \SpecialChar LaTeX
24717 -package 
24718 \begin_inset Flex Code
24719 status collapsed
24720
24721 \begin_layout Plain Layout
24722 multicol
24723 \end_layout
24724
24725 \end_inset
24726
24727  installed.
24728 \end_layout
24729
24730 \begin_layout Standard
24731 Footnotes within multiple columns will be placed at the bottom of the page
24732  and not under each column.
24733  Within the different columns you can use everything, with the limitation
24734  that for floats you need to use the float option 
24735 \family sans
24736 Span columns
24737 \family default
24738 .
24739 \end_layout
24740
24741 \begin_layout Subsection
24742 Basics
24743 \end_layout
24744
24745 \begin_layout Standard
24746 If you want to have 2
24747 \begin_inset space ~
24748 \end_inset
24749
24750 columns in your text, insert a multicolumn inset via the menu 
24751 \family sans
24752 Insert\SpecialChar menuseparator
24753 Custom
24754 \begin_inset space ~
24755 \end_inset
24756
24757 Insets\SpecialChar menuseparator
24758 Multiple
24759 \begin_inset space ~
24760 \end_inset
24761
24762 Columns
24763 \family default
24764  where the columns should start.
24765  Write all text that should be printed in 2
24766 \begin_inset space ~
24767 \end_inset
24768
24769 columns into this inset.
24770 \end_layout
24771
24772 \begin_layout Standard
24773 Here is an example:
24774 \end_layout
24775
24776 \begin_layout Standard
24777 \noindent
24778 \begin_inset Flex Multiple Columns
24779 status open
24780
24781 \begin_layout Plain Layout
24782 \noindent
24783
24784 \series bold
24785 \size small
24786 The Adventure of the Empty House
24787 \series default
24788
24789 \begin_inset Newline newline
24790 \end_inset
24791
24792 by Sir Arthur Conan Doyle
24793 \end_layout
24794
24795 \begin_layout Plain Layout
24796
24797 \size small
24798 It was in the spring of the year 1894 that all London was interested, and
24799  the fashionable world dismayed, by the murder of the Honourable Ronald
24800  Adair under most unusual and inexplicable circumstances.
24801  The public has already learned those particulars of the crime which came
24802  out in the police investigation, but a good deal was suppressed upon that
24803  occasion, since the case for the prosecution was so overwhelmingly strong
24804  that it was not necessary to bring forward all the facts.
24805  Only now, at the end of nearly ten years, am I allowed to supply those
24806  missing links which make up the whole of that remarkable chain.
24807  The crime was of interest in itself, but that interest was as nothing to
24808  me compared to the inconceivable sequel, which afforded me the greatest
24809  shock and surprise of any event in my adventurous life.
24810  Even now, after this long interval, I find myself thrilling as I think
24811  of it, and feeling once more that sudden flood of joy, amazement, and increduli
24812 ty which utterly submerged my mind.
24813  Let me say to that public, which has shown some interest in those glimpses
24814  which I have occasionally given them of the thoughts and actions of a very
24815  remarkable man, that they are not to blame me if I have not shared my knowledge
24816  with them, for I should have considered it my first duty to do so, had
24817  I not been barred by a positive prohibition from his own lips, which was
24818  only withdrawn upon the third of last month.
24819 \end_layout
24820
24821 \end_inset
24822
24823
24824 \end_layout
24825
24826 \begin_layout Standard
24827 To get 3 or more columns, set the cursor into the multicolumn inset and
24828  use the menu 
24829 \family sans
24830 Insert\SpecialChar menuseparator
24831 Number
24832 \begin_inset space ~
24833 \end_inset
24834
24835 of
24836 \begin_inset space ~
24837 \end_inset
24838
24839 Columns
24840 \family default
24841 .
24842  The number of the desired columns is written into that inset (for 3
24843 \begin_inset space ~
24844 \end_inset
24845
24846 columns write 
24847 \begin_inset Quotes eld
24848 \end_inset
24849
24850 3
24851 \begin_inset Quotes erd
24852 \end_inset
24853
24854 ).
24855 \begin_inset Newline newline
24856 \end_inset
24857
24858 Here is an example with 3
24859 \begin_inset space ~
24860 \end_inset
24861
24862 columns:
24863 \end_layout
24864
24865 \begin_layout Standard
24866 \begin_inset Flex Multiple Columns
24867 status open
24868
24869 \begin_layout Plain Layout
24870
24871 \size footnotesize
24872 \begin_inset Argument 1
24873 status open
24874
24875 \begin_layout Plain Layout
24876
24877 3
24878 \end_layout
24879
24880 \end_inset
24881
24882 It can be imagined that my close intimacy with Sherlock Holmes had interested
24883  me deeply in crime, and that after his disappearance I never failed to
24884  read with care the various problems which came before the public.
24885  And I even attempted, more than once, for my own private satisfaction,
24886  to employ his methods in their solution, though with indifferent success.
24887  There was none, however, which appealed to me like this tragedy of Ronald
24888  Adair.
24889  As I read the evidence at the inquest, which led up to a verdict of willful
24890  murder against some person or persons unknown, I realized more clearly
24891  than I had ever done the loss which the community had sustained by the
24892  death of Sherlock Holmes.
24893  There were points about this strange business which would, I was sure,
24894  have specially appealed to him, and the efforts of the police would have
24895  been supplemented, or more probably anticipated, by the trained observation
24896  and the alert mind of the first criminal agent in Europe.
24897  All day, as I drove upon my round, I turned over the case in my mind and
24898  found no explanation which appeared to me to be adequate.
24899  At the risk of telling a twice-told tale, I will recapitulate the facts
24900  as they were known to the public at the conclusion of the inquest.
24901 \end_layout
24902
24903 \end_inset
24904
24905
24906 \end_layout
24907
24908 \begin_layout Standard
24909 You can have up to 10
24910 \begin_inset space ~
24911 \end_inset
24912
24913 columns if you want to, but that might not be very pleasant for the readers
24914  of your document.
24915 \end_layout
24916
24917 \begin_layout Standard
24918 \begin_inset Newpage newpage
24919 \end_inset
24920
24921
24922 \end_layout
24923
24924 \begin_layout Subsection
24925 Columns inside Columns
24926 \end_layout
24927
24928 \begin_layout Standard
24929 You can also have columns inside columns:
24930 \end_layout
24931
24932 \begin_layout Standard
24933 \begin_inset Flex Multiple Columns
24934 status open
24935
24936 \begin_layout Plain Layout
24937
24938 \size footnotesize
24939 The Honourable Ronald Adair was the second son of the Earl of Maynooth,
24940  at that time governor of one of the Australian colonies.
24941  Adair's mother had returned from Australia to undergo the operation for
24942  cataract, and she, her son Ronald, and her daughter Hilda were living together
24943  at 427 Park Lane.
24944 \end_layout
24945
24946 \begin_layout Plain Layout
24947 \begin_inset Flex Multiple Columns
24948 status open
24949
24950 \begin_layout Plain Layout
24951
24952 \size footnotesize
24953 The youth moved in the best society
24954 \begin_inset space ~
24955 \end_inset
24956
24957 – had, so far as was known, no enemies and no particular vices.
24958  He had been engaged to Miss Edith Woodley, of Carstairs, but the engagement
24959  had been broken off by mutual consent some months before, and there was
24960  no sign that it had left any very profound feeling behind it.
24961  For the rest {sic} the man's life moved in a narrow and conventional circle,
24962  for his habits were quiet and his nature unemotional.
24963  Yet it was upon this easy-going young aristocrat that death came, in most
24964  strange and unexpected form, between the hours of ten and eleven-twenty
24965  on the night of March 30, 1894.
24966 \end_layout
24967
24968 \end_inset
24969
24970
24971 \end_layout
24972
24973 \begin_layout Plain Layout
24974
24975 \size footnotesize
24976 Ronald Adair was fond of cards
24977 \begin_inset space ~
24978 \end_inset
24979
24980 – playing continually, but never for such stakes as would hurt him.
24981  He was a member of the Baldwin, the Cavendish, and the Bagatelle card clubs.
24982  It was shown that, after dinner on the day of his death, he had played
24983  a rubber of whist at the latter club.
24984  He had also played there in the afternoon.
24985
24986 \size default
24987  
24988 \size footnotesize
24989 The evidence of those who had played with him
24990 \begin_inset space ~
24991 \end_inset
24992
24993 – Mr.
24994  Murray, Sir John Hardy, and Colonel Moran
24995 \begin_inset space ~
24996 \end_inset
24997
24998 – showed that the game was whist, and that there was a fairly equal fall
24999  of the cards.
25000  Adair might have lost five pounds, but not more.
25001  His fortune was a considerable one, and such a loss could not in any way
25002  affect him.
25003  He had played nearly every day at one club or other, but he was a cautious
25004  player, and usually rose a winner.
25005  It came out in evidence that, in partnership with Colonel Moran, he had
25006  actually won as much as four hundred and twenty pounds in a sitting, some
25007  weeks before, from Godfrey Milner and Lord Balmoral.
25008  So much for his recent history as it came out at the inquest.
25009 \end_layout
25010
25011 \end_inset
25012
25013
25014 \end_layout
25015
25016 \begin_layout Subsection
25017 Advanced Examples
25018 \end_layout
25019
25020 \begin_layout Standard
25021 The examples in this section show some more special features of multiple
25022  columns.
25023 \end_layout
25024
25025 \begin_layout Standard
25026 For more features of multiple columns, have a look at the 
25027 \begin_inset CommandInset href
25028 LatexCommand href
25029 name "documentation"
25030 target "http://mirror.ctan.org/macros/latex/required/tools/multicol.pdf"
25031 literal "false"
25032
25033 \end_inset
25034
25035  of the \SpecialChar LaTeX
25036 -package 
25037 \begin_inset Flex Code
25038 status collapsed
25039
25040 \begin_layout Plain Layout
25041 multicol
25042 \end_layout
25043
25044 \end_inset
25045
25046 .
25047 \end_layout
25048
25049 \begin_layout Subsubsection
25050 Preface
25051 \end_layout
25052
25053 \begin_layout Standard
25054 To add a preface text for multiple columns, set the cursor into the multicolumn
25055  inset and use the menu 
25056 \family sans
25057 Insert\SpecialChar menuseparator
25058 Preface
25059 \family default
25060 .
25061  Write your preface text into that inset.
25062 \begin_inset Newline newline
25063 \end_inset
25064
25065 This is an example with some preface text:
25066 \end_layout
25067
25068 \begin_layout Standard
25069 \begin_inset VSpace bigskip
25070 \end_inset
25071
25072
25073 \end_layout
25074
25075 \begin_layout Standard
25076 \begin_inset Flex Multiple Columns
25077 status open
25078
25079 \begin_layout Plain Layout
25080 \begin_inset Argument 2
25081 status open
25082
25083 \begin_layout Plain Layout
25084 And the story continues and continues and continues and continues\SpecialChar ldots
25085
25086 \end_layout
25087
25088 \end_inset
25089
25090
25091 \size small
25092 On the evening of the crime, he returned from the club exactly at ten.
25093  His mother and sister were out spending the evening with a relation.
25094  The servant deposed that she heard him enter the front room on the second
25095  floor, generally used as his sitting-room.
25096  She had lit a fire there, and as it smoked she had opened the window.
25097  No sound was heard from the room until eleven-twenty, the hour of the return
25098  of Lady Maynooth and her daughter.
25099  Desiring to say good-night, she attempted to enter her son's room.
25100  The door was locked on the inside, and no answer could be got to their
25101  cries and knocking.
25102  Help was obtained, and the door forced.
25103  The unfortunate young man was found lying near the table.
25104  His head had been horribly mutilated by an expanding revolver bullet, but
25105  no weapon of any sort was to be found in the room.
25106 \end_layout
25107
25108 \end_inset
25109
25110
25111 \end_layout
25112
25113 \begin_layout Standard
25114 You can also use a section heading as the preface if you use a section command
25115  as \SpecialChar TeX
25116  Code.
25117  For example the command
25118 \end_layout
25119
25120 \begin_layout LyX-Code
25121
25122 \backslash
25123 subsection{subsection title}
25124 \end_layout
25125
25126 \begin_layout Standard
25127 creates a subsection.
25128  In this example the preface is a subsubsection:
25129 \end_layout
25130
25131 \begin_layout Standard
25132 \begin_inset Flex Multiple Columns
25133 status open
25134
25135 \begin_layout Plain Layout
25136 \begin_inset Argument 2
25137 status open
25138
25139 \begin_layout Plain Layout
25140 \begin_inset ERT
25141 status collapsed
25142
25143 \begin_layout Plain Layout
25144
25145
25146 \backslash
25147 subsubsection{
25148 \end_layout
25149
25150 \end_inset
25151
25152 This is a subsubsection heading as a preface
25153 \begin_inset ERT
25154 status collapsed
25155
25156 \begin_layout Plain Layout
25157
25158 }
25159 \end_layout
25160
25161 \end_inset
25162
25163
25164 \end_layout
25165
25166 \end_inset
25167
25168
25169 \size small
25170 A minute examination of the circumstances served only to make the case more
25171  complex.
25172  In the first place, no reason could be given why the young man should have
25173  fastened the door upon the inside.
25174  There was the possibility that the murderer had done this, and had afterwards
25175  escaped by the window.
25176  The drop was at least twenty feet, however, and a bed of crocuses in full
25177  bloom lay beneath.
25178  Neither the flowers nor the earth showed any sign of having been disturbed,
25179  nor were there any marks upon the narrow strip of grass which separated
25180  the house from the road.
25181  Apparently, therefore, it was the young man himself who had fastened the
25182  door.
25183  But how did he come by his death? No one could have climbed up to the window
25184  without leaving traces.
25185  Suppose a man had fired through the window, he would indeed be a remarkable
25186  shot who could with a revolver inflict so deadly a wound.
25187  Again, Park Lane is a frequented thoroughfare; there is a cab stand within
25188  a hundred yards of the house.
25189  No one had heard a shot.
25190 \end_layout
25191
25192 \end_inset
25193
25194
25195 \end_layout
25196
25197 \begin_layout Standard
25198 If there is less vertical space than 6
25199 \begin_inset space ~
25200 \end_inset
25201
25202 text lines is left on the page at the beginning of the multiple columns,
25203  a page break will be inserted before the multiple columns.
25204  Depending on the number of lines of the preface text, you might want to
25205  change this space.
25206  This is done by setting the cursor into the mulitcolumn inset behind the
25207  preface (if there is any) and using the menu 
25208 \family sans
25209 Insert\SpecialChar menuseparator
25210 Space
25211 \begin_inset space ~
25212 \end_inset
25213
25214 Before
25215 \begin_inset space ~
25216 \end_inset
25217
25218 Page
25219 \begin_inset space ~
25220 \end_inset
25221
25222 Break
25223 \family default
25224 .
25225  Insert into that inset the amount of space like e.
25226 \begin_inset space \thinspace{}
25227 \end_inset
25228
25229 g.
25230 \begin_inset space \space{}
25231 \end_inset
25232
25233
25234 \begin_inset Quotes eld
25235 \end_inset
25236
25237 5cm
25238 \begin_inset Quotes erd
25239 \end_inset
25240
25241 .
25242 \begin_inset Newline newline
25243 \end_inset
25244
25245 In this example the space is set to 7
25246 \begin_inset space ~
25247 \end_inset
25248
25249 text lines by using 
25250 \begin_inset Flex Code
25251 status collapsed
25252
25253 \begin_layout Plain Layout
25254 7
25255 \backslash
25256 baselineskip
25257 \end_layout
25258
25259 \end_inset
25260
25261  (where the command 
25262 \begin_inset Flex Code
25263 status collapsed
25264
25265 \begin_layout Plain Layout
25266
25267 \backslash
25268 baselineskip
25269 \end_layout
25270
25271 \end_inset
25272
25273  needs to be inserted as \SpecialChar TeX
25274  code):
25275 \end_layout
25276
25277 \begin_layout Standard
25278 \begin_inset Flex Multiple Columns
25279 status open
25280
25281 \begin_layout Plain Layout
25282 \begin_inset Argument 3
25283 status open
25284
25285 \begin_layout Plain Layout
25286 7
25287 \begin_inset ERT
25288 status collapsed
25289
25290 \begin_layout Plain Layout
25291
25292
25293 \backslash
25294 baselineskip
25295 \end_layout
25296
25297 \end_inset
25298
25299
25300 \end_layout
25301
25302 \end_inset
25303
25304
25305 \size small
25306 On the evening of the crime, he returned from the club exactly at ten.
25307  His mother and sister were out spending the evening with a relation.
25308  The servant deposed that she heard him enter the front room on the second
25309  floor, generally used as his sitting-room.
25310  She had lit a fire there, and as it smoked she had opened the window.
25311  No sound was heard from the room until eleven-twenty, the hour of the return
25312  of Lady Maynooth and her daughter.
25313  Desiring to say good-night, she attempted to enter her son's room.
25314  The door was locked on the inside, and no answer could be got to their
25315  cries and knocking.
25316  Help was obtained, and the door forced.
25317  The unfortunate young man was found lying near the table.
25318  His head had been horribly mutilated by an expanding revolver bullet, but
25319  no weapon of any sort was to be found in the room.
25320 \end_layout
25321
25322 \end_inset
25323
25324
25325 \end_layout
25326
25327 \begin_layout Subsubsection
25328 Surrounding Space
25329 \end_layout
25330
25331 \begin_layout Standard
25332 The amount of space before and after multiple columns can be changed by
25333  changing the length 
25334 \begin_inset Flex Code
25335 status collapsed
25336
25337 \begin_layout Plain Layout
25338
25339 \backslash
25340 multicolsep
25341 \end_layout
25342
25343 \end_inset
25344
25345 .
25346  For example the command
25347 \end_layout
25348
25349 \begin_layout LyX-Code
25350
25351 \backslash
25352 setlength{
25353 \backslash
25354 multicolsep}{3cm}
25355 \end_layout
25356
25357 \begin_layout Standard
25358 in \SpecialChar TeX
25359  Code changes its value to 3
25360 \begin_inset space \thinspace{}
25361 \end_inset
25362
25363 cm.
25364  The change must be made before the multiple columns' start.
25365  The predefined value is 13
25366 \begin_inset space \thinspace{}
25367 \end_inset
25368
25369 pt.
25370 \end_layout
25371
25372 \begin_layout Standard
25373 For this example 
25374 \begin_inset Flex Code
25375 status collapsed
25376
25377 \begin_layout Plain Layout
25378
25379 \backslash
25380 multicolsep
25381 \end_layout
25382
25383 \end_inset
25384
25385  was set to 2.5
25386 \begin_inset space \thinspace{}
25387 \end_inset
25388
25389 cm:
25390 \end_layout
25391
25392 \begin_layout Standard
25393 \begin_inset ERT
25394 status open
25395
25396 \begin_layout Plain Layout
25397
25398
25399 \backslash
25400 setlength{
25401 \backslash
25402 multicolsep}{2.5cm}
25403 \end_layout
25404
25405 \end_inset
25406
25407
25408 \end_layout
25409
25410 \begin_layout Standard
25411 \begin_inset Flex Multiple Columns
25412 status open
25413
25414 \begin_layout Plain Layout
25415
25416 \size small
25417 All day I turned these facts over in my mind, endeavouring to hit upon some
25418  theory which could reconcile them all, and to find that line of least resistanc
25419 e which my poor friend had declared to be the starting-point of every investigat
25420 ion.
25421  I confess that I made little progress.
25422  In the evening I strolled across the Park, and found myself about six o'clock
25423  at the Oxford Street end of Park Lane.
25424  A group of loafers upon the pavements, all staring up at a particular window,
25425  directed me to the house which I had come to see.
25426  A tall, thin man with coloured glasses, whom I strongly suspected of being
25427  a plain-clothes detective, was pointing out some theory of his own, while
25428  the others crowded round to listen to what he said.
25429  I got as near him as I could, but his observations seemed to me to be absurd,
25430  so I withdrew again in some disgust.
25431  As I did so I struck against an elderly, deformed man, who had been behind
25432  me, and I knocked down several books which he was carrying.
25433 \end_layout
25434
25435 \end_inset
25436
25437
25438 \end_layout
25439
25440 \begin_layout Standard
25441 \begin_inset Note Greyedout
25442 status open
25443
25444 \begin_layout Plain Layout
25445
25446 \series bold
25447 Note:
25448 \series default
25449  The values you set with 
25450 \begin_inset Flex Code
25451 status collapsed
25452
25453 \begin_layout Plain Layout
25454
25455 \backslash
25456 setlength
25457 \end_layout
25458
25459 \end_inset
25460
25461  will be used for all following multiple columns until you change them again.
25462 \end_layout
25463
25464 \end_inset
25465
25466
25467 \end_layout
25468
25469 \begin_layout Standard
25470 \begin_inset ERT
25471 status collapsed
25472
25473 \begin_layout Plain Layout
25474
25475
25476 \backslash
25477 setlength{
25478 \backslash
25479 multicolsep}{13pt}
25480 \end_layout
25481
25482 \end_inset
25483
25484
25485 \begin_inset Note Note
25486 status collapsed
25487
25488 \begin_layout Plain Layout
25489 go back to the default
25490 \end_layout
25491
25492 \end_inset
25493
25494
25495 \end_layout
25496
25497 \begin_layout Standard
25498 \begin_inset Newpage newpage
25499 \end_inset
25500
25501
25502 \end_layout
25503
25504 \begin_layout Subsubsection
25505 Column Breaks
25506 \end_layout
25507
25508 \begin_layout Standard
25509 A column break can be forced by inserting the command 
25510 \begin_inset Flex Code
25511 status collapsed
25512
25513 \begin_layout Plain Layout
25514
25515 \backslash
25516 columnbreak{}
25517 \end_layout
25518
25519 \end_inset
25520
25521  as \SpecialChar TeX
25522  Code to that position in the text where the column should be broken.
25523  Note that this leads in most cases to whitespace in the text.
25524 \begin_inset Newline newline
25525 \end_inset
25526
25527 Here is an example:
25528 \end_layout
25529
25530 \begin_layout Standard
25531 \begin_inset Flex Multiple Columns
25532 status open
25533
25534 \begin_layout Plain Layout
25535
25536 \size small
25537 \begin_inset Quotes eld
25538 \end_inset
25539
25540 You're surprised to see me, sir,
25541 \begin_inset Quotes erd
25542 \end_inset
25543
25544  said he, in a strange, croaking voice.
25545 \end_layout
25546
25547 \begin_layout Plain Layout
25548
25549 \size small
25550 I acknowledged that I was.
25551 \end_layout
25552
25553 \begin_layout Plain Layout
25554
25555 \size small
25556 \begin_inset Quotes eld
25557 \end_inset
25558
25559 Well, I've a conscience, sir, and when I chanced to see you go into this
25560  house, as I came hobbling after you, I thought to myself, I'll just step
25561  in and see that kind gentleman, and tell him that if I was a bit gruff
25562  in my manner there was not any harm meant, and that I am much obliged to
25563  him for picking up my books.
25564 \begin_inset Quotes erd
25565 \end_inset
25566
25567
25568 \end_layout
25569
25570 \begin_layout Plain Layout
25571
25572 \size small
25573 \begin_inset Quotes eld
25574 \end_inset
25575
25576 You make too much of a trifle,
25577 \begin_inset Quotes erd
25578 \end_inset
25579
25580  said I.
25581  
25582 \begin_inset Quotes eld
25583 \end_inset
25584
25585 May I ask how you knew who I was?
25586 \begin_inset Quotes erd
25587 \end_inset
25588
25589  AFTER THIS SENTENCE THE COLUMN BREAK IS FORCED.
25590 \begin_inset ERT
25591 status collapsed
25592
25593 \begin_layout Plain Layout
25594
25595
25596 \backslash
25597 columnbreak{}
25598 \end_layout
25599
25600 \end_inset
25601
25602
25603 \end_layout
25604
25605 \begin_layout Plain Layout
25606
25607 \size small
25608 \begin_inset Quotes eld
25609 \end_inset
25610
25611 Well, sir, if it isn't too great a liberty, I am a neighbour of yours, for
25612  you'll find my little bookshop at the corner of Church Street, and very
25613  happy to see you, I am sure.
25614  Maybe you collect yourself, sir.
25615  Here's 
25616 \noun on
25617 British
25618 \begin_inset space ~
25619 \end_inset
25620
25621 Birds
25622 \noun default
25623 , and 
25624 \noun on
25625 Catullus
25626 \noun default
25627 , and 
25628 \noun on
25629 The Holy War
25630 \noun default
25631
25632 \begin_inset space ~
25633 \end_inset
25634
25635 – a bargain, every one of them.
25636  With five volumes you could just fill that gap on that second shelf.
25637  It looks untidy, does it not, sir?
25638 \begin_inset Quotes erd
25639 \end_inset
25640
25641
25642 \end_layout
25643
25644 \end_inset
25645
25646
25647 \end_layout
25648
25649 \begin_layout Subsubsection
25650 Column Separation
25651 \end_layout
25652
25653 \begin_layout Standard
25654 The width of the columns is automatically calculated, but you can modify
25655  the space between the columns.
25656  This is done by changing the length 
25657 \begin_inset Flex Code
25658 status collapsed
25659
25660 \begin_layout Plain Layout
25661
25662 \backslash
25663 columnsep
25664 \end_layout
25665
25666 \end_inset
25667
25668 .
25669  Its predefined value is 10
25670 \begin_inset space \thinspace{}
25671 \end_inset
25672
25673 pt.
25674  Here is an example where 
25675 \begin_inset Flex Code
25676 status collapsed
25677
25678 \begin_layout Plain Layout
25679
25680 \backslash
25681 columnsep
25682 \end_layout
25683
25684 \end_inset
25685
25686  is set to 3
25687 \begin_inset space \thinspace{}
25688 \end_inset
25689
25690 cm:
25691 \end_layout
25692
25693 \begin_layout Standard
25694 \begin_inset ERT
25695 status open
25696
25697 \begin_layout Plain Layout
25698
25699
25700 \backslash
25701 setlength{
25702 \backslash
25703 columnsep}{3cm}
25704 \end_layout
25705
25706 \end_inset
25707
25708
25709 \end_layout
25710
25711 \begin_layout Standard
25712 \begin_inset Flex Multiple Columns
25713 status open
25714
25715 \begin_layout Plain Layout
25716
25717 \size small
25718 My observations of No.
25719 \begin_inset space \space{}
25720 \end_inset
25721
25722 427 Park Lane did little to clear up the problem in which I was interested.
25723  The house was separated from the street by a low wall and railing, the
25724  whole not more than five feet high.
25725  It was perfectly easy, therefore, for anyone to get into the garden, but
25726  the window was entirely inaccessible, since there was no water pipe or
25727  anything which could help the most active man to climb it.
25728  More puzzled than ever, I retraced my steps to Kensington.
25729  I had not been in my study five minutes when the maid entered to say that
25730  a person desired to see me.
25731  To my astonishment it was none other than my strange old book collector,
25732  his sharp, wizened face peering out from a frame of white hair, and his
25733  precious volumes, a dozen of them at least, wedged under his right arm.
25734 \end_layout
25735
25736 \end_inset
25737
25738
25739 \end_layout
25740
25741 \begin_layout Standard
25742 \begin_inset ERT
25743 status collapsed
25744
25745 \begin_layout Plain Layout
25746
25747
25748 \backslash
25749 setlength{
25750 \backslash
25751 columnsep}{10pt}
25752 \end_layout
25753
25754 \end_inset
25755
25756
25757 \begin_inset Note Note
25758 status collapsed
25759
25760 \begin_layout Plain Layout
25761 go back to the default
25762 \end_layout
25763
25764 \end_inset
25765
25766
25767 \end_layout
25768
25769 \begin_layout Subsubsection
25770 Vertical Lines
25771 \end_layout
25772
25773 \begin_layout Standard
25774 Between the columns a rule with a width of the length 
25775 \begin_inset Flex Code
25776 status collapsed
25777
25778 \begin_layout Plain Layout
25779
25780 \backslash
25781 columnseprule
25782 \end_layout
25783
25784 \end_inset
25785
25786  is placed.
25787  If this rule width is set to 0
25788 \begin_inset space \thinspace{}
25789 \end_inset
25790
25791 pt (this is the default), the rule is suppressed.
25792  In the following example the rule is 2
25793 \begin_inset space \thinspace{}
25794 \end_inset
25795
25796 pt wide:
25797 \end_layout
25798
25799 \begin_layout Standard
25800 \begin_inset ERT
25801 status open
25802
25803 \begin_layout Plain Layout
25804
25805
25806 \backslash
25807 setlength{
25808 \backslash
25809 columnseprule}{2pt}
25810 \end_layout
25811
25812 \end_inset
25813
25814
25815 \end_layout
25816
25817 \begin_layout Standard
25818 \begin_inset Flex Multiple Columns
25819 status open
25820
25821 \begin_layout Plain Layout
25822
25823 \size small
25824 \begin_inset Quotes eld
25825 \end_inset
25826
25827 You're surprised to see me, sir,
25828 \begin_inset Quotes erd
25829 \end_inset
25830
25831  said he, in a strange, croaking voice.
25832 \end_layout
25833
25834 \begin_layout Plain Layout
25835
25836 \size small
25837 I acknowledged that I was.
25838 \end_layout
25839
25840 \begin_layout Plain Layout
25841
25842 \size small
25843 \begin_inset Quotes eld
25844 \end_inset
25845
25846 Well, I've a conscience, sir, and when I chanced to see you go into this
25847  house, as I came hobbling after you, I thought to myself, I'll just step
25848  in and see that kind gentleman, and tell him that if I was a bit gruff
25849  in my manner there was not any harm meant, and that I am much obliged to
25850  him for picking up my books.
25851 \begin_inset Quotes erd
25852 \end_inset
25853
25854
25855 \end_layout
25856
25857 \begin_layout Plain Layout
25858
25859 \size small
25860 \begin_inset Quotes eld
25861 \end_inset
25862
25863 You make too much of a trifle,
25864 \begin_inset Quotes erd
25865 \end_inset
25866
25867  said I.
25868  
25869 \begin_inset Quotes eld
25870 \end_inset
25871
25872 May I ask how you knew who I was?
25873 \begin_inset Quotes erd
25874 \end_inset
25875
25876
25877 \end_layout
25878
25879 \begin_layout Plain Layout
25880
25881 \size small
25882 \begin_inset Quotes eld
25883 \end_inset
25884
25885 Well, sir, if it isn't too great a liberty, I am a neighbour of yours, for
25886  you'll find my little bookshop at the corner of Church Street, and very
25887  happy to see you, I am sure.
25888  Maybe you collect yourself, sir.
25889  Here's 
25890 \noun on
25891 British
25892 \begin_inset space ~
25893 \end_inset
25894
25895 Birds
25896 \noun default
25897 , and 
25898 \noun on
25899 Catullus
25900 \noun default
25901 , and 
25902 \noun on
25903 The Holy War
25904 \noun default
25905
25906 \begin_inset space ~
25907 \end_inset
25908
25909 – a bargain, every one of them.
25910  With five volumes you could just fill that gap on that second shelf.
25911  It looks untidy, does it not, sir?
25912 \begin_inset Quotes erd
25913 \end_inset
25914
25915
25916 \end_layout
25917
25918 \end_inset
25919
25920
25921 \end_layout
25922
25923 \begin_layout Standard
25924 \begin_inset VSpace defskip
25925 \end_inset
25926
25927
25928 \end_layout
25929
25930 \begin_layout Standard
25931 The rule can be colored by redefining the command 
25932 \begin_inset Flex Code
25933 status collapsed
25934
25935 \begin_layout Plain Layout
25936
25937 \backslash
25938 columnseprulecolor
25939 \end_layout
25940
25941 \end_inset
25942
25943 .
25944  This is done by inserting the command
25945 \end_layout
25946
25947 \begin_layout LyX-Code
25948
25949 \backslash
25950 renewcommand{
25951 \backslash
25952 columnseprulecolor}{
25953 \backslash
25954 color{red}}
25955 \end_layout
25956
25957 \begin_layout Standard
25958 as \SpecialChar TeX
25959  Code before the multicolumn inset.
25960  Replace 
25961 \begin_inset Flex Code
25962 status collapsed
25963
25964 \begin_layout Plain Layout
25965 red
25966 \end_layout
25967
25968 \end_inset
25969
25970  in this command by a color of your choice.
25971  You can use all pre- and self-defined colors.
25972  See the 
25973 \emph on
25974 EmbeddedObjects
25975 \emph default
25976  manual, section 
25977 \emph on
25978 Colored
25979 \begin_inset space ~
25980 \end_inset
25981
25982 Tables
25983 \emph default
25984  for more information about pre- and self-defined colors.
25985  To go back to the default color insert the command
25986 \end_layout
25987
25988 \begin_layout LyX-Code
25989
25990 \backslash
25991 renewcommand{
25992 \backslash
25993 columnseprulecolor}{
25994 \backslash
25995 normalcolor}
25996 \end_layout
25997
25998 \begin_layout Standard
25999 Here is the example with a cyan rule and 1
26000 \begin_inset space \thinspace{}
26001 \end_inset
26002
26003 cm column separation:
26004 \end_layout
26005
26006 \begin_layout Standard
26007 \begin_inset ERT
26008 status open
26009
26010 \begin_layout Plain Layout
26011
26012
26013 \backslash
26014 setlength{
26015 \backslash
26016 columnsep}{1cm}
26017 \end_layout
26018
26019 \begin_layout Plain Layout
26020
26021
26022 \backslash
26023 renewcommand{
26024 \backslash
26025 columnseprulecolor}{
26026 \backslash
26027 color{cyan}}
26028 \end_layout
26029
26030 \end_inset
26031
26032
26033 \end_layout
26034
26035 \begin_layout Standard
26036 \begin_inset Flex Multiple Columns
26037 status open
26038
26039 \begin_layout Plain Layout
26040
26041 \size small
26042 \begin_inset Quotes eld
26043 \end_inset
26044
26045 You're surprised to see me, sir,
26046 \begin_inset Quotes erd
26047 \end_inset
26048
26049  said he, in a strange, croaking voice.
26050 \end_layout
26051
26052 \begin_layout Plain Layout
26053
26054 \size small
26055 I acknowledged that I was.
26056 \end_layout
26057
26058 \begin_layout Plain Layout
26059
26060 \size small
26061 \begin_inset Quotes eld
26062 \end_inset
26063
26064 Well, I've a conscience, sir, and when I chanced to see you go into this
26065  house, as I came hobbling after you, I thought to myself, I'll just step
26066  in and see that kind gentleman, and tell him that if I was a bit gruff
26067  in my manner there was not any harm meant, and that I am much obliged to
26068  him for picking up my books.
26069 \begin_inset Quotes erd
26070 \end_inset
26071
26072
26073 \end_layout
26074
26075 \begin_layout Plain Layout
26076
26077 \size small
26078 \begin_inset Quotes eld
26079 \end_inset
26080
26081 You make too much of a trifle,
26082 \begin_inset Quotes erd
26083 \end_inset
26084
26085  said I.
26086  
26087 \begin_inset Quotes eld
26088 \end_inset
26089
26090 May I ask how you knew who I was?
26091 \begin_inset Quotes erd
26092 \end_inset
26093
26094
26095 \end_layout
26096
26097 \begin_layout Plain Layout
26098
26099 \size small
26100 \begin_inset Quotes eld
26101 \end_inset
26102
26103 Well, sir, if it isn't too great a liberty, I am a neighbour of yours, for
26104  you'll find my little bookshop at the corner of Church Street, and very
26105  happy to see you, I am sure.
26106  Maybe you collect yourself, sir.
26107  Here's 
26108 \noun on
26109 British
26110 \begin_inset space ~
26111 \end_inset
26112
26113 Birds
26114 \noun default
26115 , and 
26116 \noun on
26117 Catullus
26118 \noun default
26119 , and 
26120 \noun on
26121 The Holy War
26122 \noun default
26123
26124 \begin_inset space ~
26125 \end_inset
26126
26127 – a bargain, every one of them.
26128  With five volumes you could just fill that gap on that second shelf.
26129  It looks untidy, does it not, sir?
26130 \begin_inset Quotes erd
26131 \end_inset
26132
26133
26134 \end_layout
26135
26136 \end_inset
26137
26138
26139 \end_layout
26140
26141 \begin_layout Standard
26142 \begin_inset ERT
26143 status collapsed
26144
26145 \begin_layout Plain Layout
26146
26147
26148 \backslash
26149 setlength{
26150 \backslash
26151 columnseprule}{0pt}
26152 \end_layout
26153
26154 \begin_layout Plain Layout
26155
26156
26157 \backslash
26158 renewcommand{
26159 \backslash
26160 columnseprulecolor}{
26161 \backslash
26162 normalcolor}
26163 \end_layout
26164
26165 \end_inset
26166
26167
26168 \begin_inset Note Note
26169 status collapsed
26170
26171 \begin_layout Plain Layout
26172 go back to the default
26173 \end_layout
26174
26175 \end_inset
26176
26177
26178 \end_layout
26179
26180 \begin_layout Section
26181 Non-standard Paragraph Shapes
26182 \end_layout
26183
26184 \begin_layout Standard
26185 \noindent
26186 \SpecialChar LaTeX
26187  as well as any other text processor uses by default rectangular paragraphs.
26188  For special cases like for example posters, invitation cards or poems you
26189  can modify the paragraph shape to one of your choice.
26190  This can be done by using the \SpecialChar LaTeX
26191 -package 
26192 \begin_inset Flex Code
26193 status collapsed
26194
26195 \begin_layout Plain Layout
26196 shapepar
26197 \end_layout
26198
26199 \end_inset
26200
26201  which is loaded by using in the document settings the module 
26202 \family sans
26203 Custom paragraph shapes
26204 \family default
26205 .
26206 \end_layout
26207
26208 \begin_layout Subsection
26209 Predefined shapes
26210 \end_layout
26211
26212 \begin_layout Standard
26213
26214 \series bold
26215 shapepar
26216 \series default
26217  provides the following shapes:
26218 \end_layout
26219
26220 \begin_layout Standard
26221 \begin_inset Tabular
26222 <lyxtabular version="3" rows="13" columns="3">
26223 <features booktabs="true" islongtable="true" longtabularalignment="center">
26224 <column alignment="left" valignment="middle" width="16col%">
26225 <column alignment="left" valignment="middle" width="40col%">
26226 <column alignment="left" valignment="middle" width="35col%">
26227 <row endhead="true">
26228 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26229 \begin_inset Text
26230
26231 \begin_layout Plain Layout
26232
26233 \series bold
26234 \size small
26235 Name
26236 \end_layout
26237
26238 \end_inset
26239 </cell>
26240 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26241 \begin_inset Text
26242
26243 \begin_layout Plain Layout
26244
26245 \series bold
26246 \size small
26247 Description
26248 \end_layout
26249
26250 \end_inset
26251 </cell>
26252 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
26253 \begin_inset Text
26254
26255 \begin_layout Plain Layout
26256
26257 \series bold
26258 \size small
26259 Annotation
26260 \end_layout
26261
26262 \end_inset
26263 </cell>
26264 </row>
26265 <row interlinespace="default">
26266 <cell alignment="left" valignment="top" usebox="none">
26267 \begin_inset Text
26268
26269 \begin_layout Plain Layout
26270
26271 \size small
26272 CDlabel
26273 \end_layout
26274
26275 \end_inset
26276 </cell>
26277 <cell alignment="left" valignment="top" usebox="none">
26278 \begin_inset Text
26279
26280 \begin_layout Plain Layout
26281
26282 \size small
26283 Circle with circular hole (in the size of a CD/DVD)
26284 \end_layout
26285
26286 \end_inset
26287 </cell>
26288 <cell alignment="left" valignment="top" usebox="none">
26289 \begin_inset Text
26290
26291 \begin_layout Plain Layout
26292
26293 \size small
26294 Cannot be scaled, take care there is not too much text
26295 \end_layout
26296
26297 \end_inset
26298 </cell>
26299 </row>
26300 <row interlinespace="default">
26301 <cell alignment="left" valignment="top" usebox="none">
26302 \begin_inset Text
26303
26304 \begin_layout Plain Layout
26305
26306 \size small
26307 Circle
26308 \end_layout
26309
26310 \end_inset
26311 </cell>
26312 <cell alignment="left" valignment="top" usebox="none">
26313 \begin_inset Text
26314
26315 \begin_layout Plain Layout
26316
26317 \size small
26318 Circle
26319 \end_layout
26320
26321 \end_inset
26322 </cell>
26323 <cell alignment="left" valignment="top" usebox="none">
26324 \begin_inset Text
26325
26326 \begin_layout Plain Layout
26327
26328 \size small
26329 Fragile, calculation might fail
26330 \end_layout
26331
26332 \end_inset
26333 </cell>
26334 </row>
26335 <row interlinespace="default">
26336 <cell alignment="left" valignment="top" usebox="none">
26337 \begin_inset Text
26338
26339 \begin_layout Plain Layout
26340
26341 \size small
26342 Diamond
26343 \end_layout
26344
26345 \end_inset
26346 </cell>
26347 <cell alignment="left" valignment="top" usebox="none">
26348 \begin_inset Text
26349
26350 \begin_layout Plain Layout
26351
26352 \size small
26353 Rhomboid (symbolizing a 
26354 \begin_inset Quotes eld
26355 \end_inset
26356
26357 diamond
26358 \begin_inset Quotes erd
26359 \end_inset
26360
26361 )
26362 \end_layout
26363
26364 \end_inset
26365 </cell>
26366 <cell alignment="left" valignment="top" usebox="none">
26367 \begin_inset Text
26368
26369 \begin_layout Plain Layout
26370
26371 \size small
26372 -
26373 \end_layout
26374
26375 \end_inset
26376 </cell>
26377 </row>
26378 <row interlinespace="default">
26379 <cell alignment="left" valignment="top" usebox="none">
26380 \begin_inset Text
26381
26382 \begin_layout Plain Layout
26383
26384 \size small
26385 Heart
26386 \end_layout
26387
26388 \end_inset
26389 </cell>
26390 <cell alignment="left" valignment="top" usebox="none">
26391 \begin_inset Text
26392
26393 \begin_layout Plain Layout
26394
26395 \size small
26396 Heart-like shape
26397 \end_layout
26398
26399 \end_inset
26400 </cell>
26401 <cell alignment="left" valignment="top" usebox="none">
26402 \begin_inset Text
26403
26404 \begin_layout Plain Layout
26405
26406 \size small
26407 -
26408 \end_layout
26409
26410 \end_inset
26411 </cell>
26412 </row>
26413 <row interlinespace="default">
26414 <cell alignment="left" valignment="top" usebox="none">
26415 \begin_inset Text
26416
26417 \begin_layout Plain Layout
26418
26419 \size small
26420 Hexagon
26421 \end_layout
26422
26423 \end_inset
26424 </cell>
26425 <cell alignment="left" valignment="top" usebox="none">
26426 \begin_inset Text
26427
26428 \begin_layout Plain Layout
26429
26430 \size small
26431 Hexagon
26432 \end_layout
26433
26434 \end_inset
26435 </cell>
26436 <cell alignment="left" valignment="top" usebox="none">
26437 \begin_inset Text
26438
26439 \begin_layout Plain Layout
26440
26441 \size small
26442 -
26443 \end_layout
26444
26445 \end_inset
26446 </cell>
26447 </row>
26448 <row interlinespace="default">
26449 <cell alignment="left" valignment="top" usebox="none">
26450 \begin_inset Text
26451
26452 \begin_layout Plain Layout
26453
26454 \size small
26455 Nut
26456 \end_layout
26457
26458 \end_inset
26459 </cell>
26460 <cell alignment="left" valignment="top" usebox="none">
26461 \begin_inset Text
26462
26463 \begin_layout Plain Layout
26464
26465 \size small
26466 Nut for bolt (hexagon with circular hole)
26467 \end_layout
26468
26469 \end_inset
26470 </cell>
26471 <cell alignment="left" valignment="top" usebox="none">
26472 \begin_inset Text
26473
26474 \begin_layout Plain Layout
26475
26476 \size small
26477 -
26478 \end_layout
26479
26480 \end_inset
26481 </cell>
26482 </row>
26483 <row interlinespace="default">
26484 <cell alignment="left" valignment="top" usebox="none">
26485 \begin_inset Text
26486
26487 \begin_layout Plain Layout
26488
26489 \size small
26490 Square
26491 \end_layout
26492
26493 \end_inset
26494 </cell>
26495 <cell alignment="left" valignment="top" usebox="none">
26496 \begin_inset Text
26497
26498 \begin_layout Plain Layout
26499
26500 \size small
26501 Square
26502 \end_layout
26503
26504 \end_inset
26505 </cell>
26506 <cell alignment="left" valignment="top" usebox="none">
26507 \begin_inset Text
26508
26509 \begin_layout Plain Layout
26510
26511 \size small
26512 -
26513 \end_layout
26514
26515 \end_inset
26516 </cell>
26517 </row>
26518 <row interlinespace="default">
26519 <cell alignment="left" valignment="top" usebox="none">
26520 \begin_inset Text
26521
26522 \begin_layout Plain Layout
26523
26524 \size small
26525 Star
26526 \end_layout
26527
26528 \end_inset
26529 </cell>
26530 <cell alignment="left" valignment="top" usebox="none">
26531 \begin_inset Text
26532
26533 \begin_layout Plain Layout
26534
26535 \size small
26536 Five-point star
26537 \end_layout
26538
26539 \end_inset
26540 </cell>
26541 <cell alignment="left" valignment="top" usebox="none">
26542 \begin_inset Text
26543
26544 \begin_layout Plain Layout
26545
26546 \size small
26547 -
26548 \end_layout
26549
26550 \end_inset
26551 </cell>
26552 </row>
26553 <row interlinespace="default">
26554 <cell alignment="left" valignment="top" usebox="none">
26555 \begin_inset Text
26556
26557 \begin_layout Plain Layout
26558
26559 \size small
26560 Candle
26561 \end_layout
26562
26563 \end_inset
26564 </cell>
26565 <cell alignment="left" valignment="top" usebox="none">
26566 \begin_inset Text
26567
26568 \begin_layout Plain Layout
26569
26570 \size small
26571 Burning candle
26572 \end_layout
26573
26574 \end_inset
26575 </cell>
26576 <cell alignment="left" valignment="top" usebox="none">
26577 \begin_inset Text
26578
26579 \begin_layout Plain Layout
26580
26581 \size small
26582 -
26583 \end_layout
26584
26585 \end_inset
26586 </cell>
26587 </row>
26588 <row interlinespace="default">
26589 <cell alignment="left" valignment="top" usebox="none">
26590 \begin_inset Text
26591
26592 \begin_layout Plain Layout
26593
26594 \size small
26595 Drop down/up
26596 \end_layout
26597
26598 \end_inset
26599 </cell>
26600 <cell alignment="left" valignment="top" usebox="none">
26601 \begin_inset Text
26602
26603 \begin_layout Plain Layout
26604
26605 \size small
26606 Normal/reversed rain drop
26607 \end_layout
26608
26609 \end_inset
26610 </cell>
26611 <cell alignment="left" valignment="top" usebox="none">
26612 \begin_inset Text
26613
26614 \begin_layout Plain Layout
26615
26616 \size small
26617 Fragile, calculation might fail
26618 \end_layout
26619
26620 \end_inset
26621 </cell>
26622 </row>
26623 <row interlinespace="default">
26624 <cell alignment="left" valignment="top" usebox="none">
26625 \begin_inset Text
26626
26627 \begin_layout Plain Layout
26628
26629 \size small
26630 \SpecialChar TeX
26631
26632 \end_layout
26633
26634 \end_inset
26635 </cell>
26636 <cell alignment="left" valignment="top" usebox="none">
26637 \begin_inset Text
26638
26639 \begin_layout Plain Layout
26640
26641 \size small
26642 The \SpecialChar TeX
26643  logo
26644 \end_layout
26645
26646 \end_inset
26647 </cell>
26648 <cell alignment="left" valignment="top" usebox="none">
26649 \begin_inset Text
26650
26651 \begin_layout Plain Layout
26652
26653 \size small
26654 -
26655 \end_layout
26656
26657 \end_inset
26658 </cell>
26659 </row>
26660 <row interlinespace="default">
26661 <cell alignment="left" valignment="top" bottomline="true" usebox="none">
26662 \begin_inset Text
26663
26664 \begin_layout Plain Layout
26665
26666 \size small
26667 Triangle up/down/
26668 \begin_inset Newline newline
26669 \end_inset
26670
26671 left/right
26672 \end_layout
26673
26674 \end_inset
26675 </cell>
26676 <cell alignment="left" valignment="top" bottomline="true" usebox="none">
26677 \begin_inset Text
26678
26679 \begin_layout Plain Layout
26680
26681 \size small
26682 Triangles in different orientations
26683 \end_layout
26684
26685 \end_inset
26686 </cell>
26687 <cell alignment="left" valignment="top" bottomline="true" usebox="none">
26688 \begin_inset Text
26689
26690 \begin_layout Plain Layout
26691
26692 \size small
26693 -
26694 \end_layout
26695
26696 \end_inset
26697 </cell>
26698 </row>
26699 </lyxtabular>
26700
26701 \end_inset
26702
26703
26704 \end_layout
26705
26706 \begin_layout Standard
26707 To use a shape for your paragraph, simply select it in \SpecialChar LyX
26708 's pull-down box
26709  for environments in the toolbar.
26710 \end_layout
26711
26712 \begin_layout Standard
26713 \begin_inset Newpage newpage
26714 \end_inset
26715
26716
26717 \end_layout
26718
26719 \begin_layout Standard
26720 Here is an example paragraph in the shape of a nut:
26721 \end_layout
26722
26723 \begin_layout Standard
26724 \begin_inset VSpace bigskip
26725 \end_inset
26726
26727
26728 \end_layout
26729
26730 \begin_layout Nut
26731
26732 \lang latin
26733 Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
26734  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
26735  voluptua.
26736  At vero eos et accusam et justo duo dolores et ea rebum.
26737  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
26738  sit amet.
26739  Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
26740  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
26741  voluptua.
26742 \end_layout
26743
26744 \begin_layout Standard
26745 \begin_inset VSpace bigskip
26746 \end_inset
26747
26748
26749 \end_layout
26750
26751 \begin_layout Standard
26752 \begin_inset Note Greyedout
26753 status open
26754
26755 \begin_layout Plain Layout
26756
26757 \series bold
26758 Note
26759 \series default
26760
26761 \family sans
26762 shapepar
26763 \family default
26764  paragraphs cannot run over a page break.
26765 \end_layout
26766
26767 \end_inset
26768
26769
26770 \end_layout
26771
26772 \begin_layout Standard
26773 \begin_inset VSpace bigskip
26774 \end_inset
26775
26776
26777 \end_layout
26778
26779 \begin_layout Standard
26780 The package 
26781 \begin_inset Flex Code
26782 status collapsed
26783
26784 \begin_layout Plain Layout
26785 shapepar
26786 \end_layout
26787
26788 \end_inset
26789
26790  takes care that the shape will always be preserved, no matter how much
26791  text is in the paragraph.
26792  Therefore the paragraph size changes with the amount of contained text.
26793  This can lead to paragraph sizes exceeding the page margins.
26794  To demonstrate the size scaling, here is the same example paragraph but
26795  with twice as much text:
26796 \end_layout
26797
26798 \begin_layout Standard
26799 \begin_inset Newpage newpage
26800 \end_inset
26801
26802
26803 \end_layout
26804
26805 \begin_layout Nut
26806
26807 \lang latin
26808 Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
26809  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
26810  voluptua.
26811  At vero eos et accusam et justo duo dolores et ea rebum.
26812  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
26813  sit amet.
26814  Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
26815  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
26816  voluptua.
26817  Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
26818  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
26819  voluptua.
26820  At vero eos et accusam et justo duo dolores et ea rebum.
26821  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
26822  sit amet.
26823  Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
26824  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
26825  voluptua.
26826 \end_layout
26827
26828 \begin_layout Standard
26829 \begin_inset VSpace bigskip
26830 \end_inset
26831
26832
26833 \end_layout
26834
26835 \begin_layout Standard
26836 An exception is the shape 
26837 \family sans
26838 CDlabel
26839 \family default
26840 .
26841  It cannot be scaled because it must fit the size of a CD/DVD.
26842  Therefore the amount of text that fits into the shape is limited.
26843 \begin_inset Newline newline
26844 \end_inset
26845
26846 The 
26847 \family sans
26848 drop
26849 \family default
26850  shapes and the 
26851 \family sans
26852 circle
26853 \family default
26854  shape are fragile, meaning that the calculation of their size can fail,
26855  depending on the amount of text.
26856  You will then get the \SpecialChar LaTeX
26857  error 
26858 \begin_inset Quotes eld
26859 \end_inset
26860
26861 Arithmetic overflow
26862 \begin_inset Quotes erd
26863 \end_inset
26864
26865 .
26866  In this case one can try to remove or add some text; if nothing works one
26867  has to use another shape.
26868 \end_layout
26869
26870 \begin_layout Standard
26871 \begin_inset VSpace bigskip
26872 \end_inset
26873
26874
26875 \end_layout
26876
26877 \begin_layout Standard
26878 For shapes with tips you will maybe see that \SpecialChar LaTeX
26879 's hyphenation routine fails
26880  for text in the tips.
26881  Therefore it is often necessary to add hyphenation points 
26882 \family sans
26883 (
26884 \begin_inset Info
26885 type  "shortcut"
26886 arg   "specialchar-insert hyphenation"
26887 \end_inset
26888
26889
26890 \family default
26891 ) to the corresponding text parts.
26892 \end_layout
26893
26894 \begin_layout Standard
26895 \begin_inset VSpace bigskip
26896 \end_inset
26897
26898
26899 \end_layout
26900
26901 \begin_layout Standard
26902 Shapepar paragraphs are either always centered or placed on the page so
26903  that their left border touches the left page margin.
26904  You can therefore not use the paragraph dialog to align such paragraphs.
26905  A solution is to put the paragraph into a minipage or parbox and align
26906  the box.
26907  The problem is hereby to find the right width for the box.
26908  Because if it is too wide and you center the box, the paragraph is not
26909  centered too because it sticks at the left side of the box.
26910  So you might have to play a bit with the width until it fits.
26911  Here are two heart-shaped paragraphs, the first one is not aligned, the
26912  second one is right-aligned:
26913 \end_layout
26914
26915 \begin_layout Standard
26916 \begin_inset Newpage newpage
26917 \end_inset
26918
26919
26920 \end_layout
26921
26922 \begin_layout Heart
26923 \noindent
26924
26925 \lang latin
26926 Lo\SpecialChar softhyphen
26927 rem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
26928  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
26929  voluptua.
26930  At vero eos et accusam et justo duo dolores et ea rebum.
26931  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
26932  sit amet.
26933 \end_layout
26934
26935 \begin_layout Standard
26936 \begin_inset VSpace bigskip
26937 \end_inset
26938
26939
26940 \end_layout
26941
26942 \begin_layout Standard
26943 \noindent
26944 \align right
26945 \begin_inset Box Frameless
26946 position "t"
26947 hor_pos "c"
26948 has_inner_box 1
26949 inner_pos "t"
26950 use_parbox 1
26951 use_makebox 0
26952 width "42col%"
26953 special "none"
26954 height "1in"
26955 height_special "totalheight"
26956 thickness "0.4pt"
26957 separation "3pt"
26958 shadowsize "4pt"
26959 framecolor "black"
26960 backgroundcolor "none"
26961 status open
26962
26963 \begin_layout Heart
26964 \noindent
26965
26966 \lang latin
26967 Lo\SpecialChar softhyphen
26968 rem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
26969  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
26970  voluptua.
26971  At vero eos et accusam et justo duo dolores et ea rebum.
26972  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
26973  sit amet.
26974 \end_layout
26975
26976 \end_inset
26977
26978
26979 \end_layout
26980
26981 \begin_layout Subsection
26982 Custom shapes
26983 \end_layout
26984
26985 \begin_layout Standard
26986 You can define any shape you want.
26987  Doing this manually is a lot of work because every coordinate must be specified.
26988  But there is a way to let the computer calculate the coordinates:
26989 \end_layout
26990
26991 \begin_layout Enumerate
26992 Install the program 
26993 \begin_inset CommandInset href
26994 LatexCommand href
26995 name "Jpgfdraw"
26996 target "https://www.ctan.org/tex-archive/graphics/jpgfdraw"
26997 literal "false"
26998
26999 \end_inset
27000
27001 .
27002 \end_layout
27003
27004 \begin_layout Enumerate
27005 In 
27006 \family sans
27007 Jpgfdraw
27008 \family default
27009  go to the menu 
27010 \family sans
27011 TeX/LaTeX\SpecialChar menuseparator
27012 Settings\SpecialChar menuseparator
27013 Set Normal Size
27014 \family default
27015  and select the font size you are using in your document.
27016  For example this document uses the size 12
27017 \begin_inset space \thinspace{}
27018 \end_inset
27019
27020 pt.
27021 \end_layout
27022
27023 \begin_layout Enumerate
27024 Draw a shape.
27025 \end_layout
27026
27027 \begin_layout Enumerate
27028 Use the menu 
27029 \family sans
27030 TeX/LaTeX\SpecialChar menuseparator
27031 Shapepar
27032 \family default
27033  to export the shape to coordinates.
27034  In the appearing dialog use either the outline of your shape for the coordinate
27035 s or the path itself.
27036 \begin_inset Foot
27037 status collapsed
27038
27039 \begin_layout Plain Layout
27040 For more information see 
27041 \begin_inset CommandInset href
27042 LatexCommand href
27043 target "http://www.dickimaw-books.com/apps/jpgfdraw/manual/shapepar.html"
27044 literal "false"
27045
27046 \end_inset
27047
27048
27049 \end_layout
27050
27051 \end_inset
27052
27053
27054 \end_layout
27055
27056 \begin_layout Standard
27057 The coordinates are written into a \SpecialChar TeX
27058  file.
27059  To use it for your \SpecialChar LyX
27060  document
27061 \end_layout
27062
27063 \begin_layout Enumerate
27064 Place the cursor before the first character of your paragraph (or into a
27065  new empty one).
27066 \end_layout
27067
27068 \begin_layout Enumerate
27069 Open in \SpecialChar LyX
27070  the menu 
27071 \family sans
27072 Insert\SpecialChar menuseparator
27073 File\SpecialChar menuseparator
27074 Child
27075 \begin_inset space ~
27076 \end_inset
27077
27078 Document
27079 \family default
27080 , select the file and use 
27081 \family sans
27082 Input
27083 \family default
27084  as 
27085 \family sans
27086 Include Type.
27087 \end_layout
27088
27089 \begin_layout Standard
27090 \begin_inset VSpace defskip
27091 \end_inset
27092
27093
27094 \end_layout
27095
27096 \begin_layout Standard
27097 \begin_inset Note Greyedout
27098 status open
27099
27100 \begin_layout Plain Layout
27101
27102 \series bold
27103 Note
27104 \series default
27105 : The changed shape only applies to the current paragraph; everything is
27106  reset to normal for the next paragraph.
27107  Therefore the shape definition file must be input into every paragraph
27108  with the desired shape.
27109 \end_layout
27110
27111 \end_inset
27112
27113
27114 \end_layout
27115
27116 \begin_layout Standard
27117 \begin_inset VSpace bigskip
27118 \end_inset
27119
27120
27121 \end_layout
27122
27123 \begin_layout Standard
27124 Here is an example:
27125 \end_layout
27126
27127 \begin_layout Standard
27128 \begin_inset VSpace bigskip
27129 \end_inset
27130
27131
27132 \end_layout
27133
27134 \begin_layout Standard
27135 \begin_inset CommandInset include
27136 LatexCommand input
27137 filename "SpecialParagraphShape.tex"
27138 literal "true"
27139
27140 \end_inset
27141
27142
27143 \lang latin
27144 Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
27145  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
27146  voluptua.
27147  At vero eos et accusam et justo duo dolores et ea rebum.
27148  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
27149  sit amet.
27150  Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
27151  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
27152  voluptua.
27153 \end_layout
27154
27155 \begin_layout Standard
27156 \begin_inset VSpace bigskip
27157 \end_inset
27158
27159
27160 \end_layout
27161
27162 \begin_layout Standard
27163
27164 \series bold
27165 A tip:
27166 \series default
27167  to draw complexer shapes in 
27168 \family sans
27169 Jpgfdraw
27170 \family default
27171  you can draw the shape in a program of your choice and import the resulting
27172  image to 
27173 \family sans
27174 Jpgfdraw
27175 \family default
27176 .
27177  Then you only need to draw a line or spline along the outline of the image.
27178 \end_layout
27179
27180 \begin_layout Standard
27181 \begin_inset VSpace bigskip
27182 \end_inset
27183
27184
27185 \end_layout
27186
27187 \begin_layout Standard
27188 The module 
27189 \family sans
27190 Custom paragraph shapes
27191 \family default
27192  also provides the two commands 
27193 \family sans
27194 shapepar
27195 \family default
27196  and 
27197 \family sans
27198 Shapepar
27199 \family default
27200  which can be used to define custom shapes coordinate by coordinate.
27201 \begin_inset Foot
27202 status collapsed
27203
27204 \begin_layout Plain Layout
27205 These commands are internally used for all shapes described here.
27206 \end_layout
27207
27208 \end_inset
27209
27210  For information how these styles are used and about further customization
27211  possibilities, have a look at the 
27212 \begin_inset CommandInset href
27213 LatexCommand href
27214 name "documentation"
27215 target "https://www.ctan.org/tex-archive/macros/latex/contrib/shapepar/shapepar.pdf"
27216 literal "false"
27217
27218 \end_inset
27219
27220  of the package 
27221 \begin_inset Flex Code
27222 status collapsed
27223
27224 \begin_layout Plain Layout
27225 shapepar
27226 \end_layout
27227
27228 \end_inset
27229
27230 .
27231 \end_layout
27232
27233 \end_body
27234 \end_document