]> git.lyx.org Git - lyx.git/blob - lib/doc/Additional.lyx
bcc05d1a9f72534b98f9c22a70d51b8ffc7723d1
[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
13809 \change_deleted 564990737 1670317155
13810 Kluwer
13811 \end_layout
13812
13813 \begin_layout Standard
13814
13815 \change_deleted 564990737 1670317155
13816 by 
13817 \noun on
13818 Panayotis Papasotiriou
13819 \end_layout
13820
13821 \begin_layout Subsection
13822
13823 \change_deleted 564990737 1670317155
13824 Overview
13825 \end_layout
13826
13827 \begin_layout Standard
13828
13829 \change_deleted 564990737 1670317155
13830 The Kluwer package is a set of macros produced by Kluwer Academic Publishers
13831  that facilitates electronic manuscript submission to the journals they
13832  publish.
13833  Most known of them (at least in my domain of interest) are 
13834 \emph on
13835 Astrophysics and Space Science
13836 \emph default
13837  and 
13838 \emph on
13839 Solar Physics
13840 \emph default
13841 , but there are many others (see a complete list at 
13842 \begin_inset Flex URL
13843 status collapsed
13844
13845 \begin_layout Plain Layout
13846
13847 http://www.wkap.nl/jrnllist.htm/JRNLHOME
13848 \end_layout
13849
13850 \end_inset
13851
13852 ).
13853  The Kluwer package may be downloaded from the site 
13854 \begin_inset Flex URL
13855 status collapsed
13856
13857 \begin_layout Plain Layout
13858
13859 http://www.wkap.nl/kaphtml.htm/STYLEFILES
13860 \end_layout
13861
13862 \end_inset
13863
13864 .
13865  A complete user guide is contained in that package (but it can also be
13866  downloaded separately).
13867 \end_layout
13868
13869 \begin_layout Standard
13870
13871 \change_deleted 564990737 1670317155
13872 \SpecialChar LyX
13873  supports many features of the package but not everything.
13874  However, the \SpecialChar TeX
13875  code needed is reduced to some 
13876 \begin_inset Quotes eld
13877 \end_inset
13878
13879 peculiar
13880 \begin_inset Quotes erd
13881 \end_inset
13882
13883  commands of the package (see
13884 \begin_inset space ~
13885 \end_inset
13886
13887
13888 \begin_inset CommandInset ref
13889 LatexCommand ref
13890 reference "subsec:kluwer_peculiarities"
13891
13892 \end_inset
13893
13894 ).
13895  I have recently used \SpecialChar LyX
13896  to write an article submitted to the 
13897 \emph on
13898 Astrophysics and Space Science
13899 \emph default
13900  without any problem.
13901 \end_layout
13902
13903 \begin_layout Subsection
13904
13905 \change_deleted 564990737 1670317155
13906 Writing a paper
13907 \end_layout
13908
13909 \begin_layout Standard
13910
13911 \change_deleted 564990737 1670317155
13912 The easiest way to write a paper is to start with the Kluwer template file.
13913  Click on 
13914 \family sans
13915 File\SpecialChar menuseparator
13916 New from
13917 \family default
13918  
13919 \family sans
13920 Template
13921 \family default
13922 , then choose the 
13923 \family typewriter
13924 kluwer.lyx
13925 \family default
13926  template.
13927  This will give an (almost) empty document that includes the most common
13928  fields found in a manuscript and a short description of their use.
13929  As in most templates, simply overwrite the existing text (including the
13930  brackets, 
13931 \family typewriter
13932 <>
13933 \family default
13934 ) with the correct information.
13935 \end_layout
13936
13937 \begin_layout Subsection
13938
13939 \change_deleted 564990737 1670317155
13940 Preparing a paper for submission
13941 \end_layout
13942
13943 \begin_layout Standard
13944
13945 \change_deleted 564990737 1670317155
13946 As in the AAS\SpecialChar TeX
13947  package, before you submit your paper to a journal you must
13948  
13949 \begin_inset Quotes eld
13950 \end_inset
13951
13952 postprocess
13953 \begin_inset Quotes erd
13954 \end_inset
13955
13956  it as follows.
13957 \end_layout
13958
13959 \begin_layout Enumerate
13960
13961 \change_deleted 564990737 1670317155
13962 Export your paper as a \SpecialChar LaTeX
13963  file.
13964  To do this, click on 
13965 \family sans
13966 File\SpecialChar menuseparator
13967 Export\SpecialChar menuseparator
13968 \SpecialChar LaTeX
13969
13970 \family default
13971 .
13972  
13973 \end_layout
13974
13975 \begin_layout Enumerate
13976
13977 \change_deleted 564990737 1670317155
13978 Edit the resulting 
13979 \family typewriter
13980 .tex
13981 \family default
13982  file with a text editor and make the following changes
13983 \end_layout
13984
13985 \begin_deeper
13986 \begin_layout Enumerate
13987
13988 \change_deleted 564990737 1670317155
13989 remove the comment lines before the 
13990 \family typewriter
13991
13992 \backslash
13993 documentclass
13994 \family default
13995  command,
13996 \end_layout
13997
13998 \begin_layout Enumerate
13999
14000 \change_deleted 564990737 1670317155
14001 remove everything between (and including) the 
14002 \family typewriter
14003
14004 \backslash
14005 makeatletter
14006 \family default
14007  and 
14008 \family typewriter
14009
14010 \backslash
14011 makeatother
14012 \family default
14013  commands, except for any commands you specifically put into the \SpecialChar LaTeX
14014  preamble.
14015 \end_layout
14016
14017 \begin_layout Standard
14018
14019 \change_deleted 564990737 1670317155
14020 Save the resulting 
14021 \family typewriter
14022 .tex
14023 \family default
14024  file.
14025 \end_layout
14026
14027 \end_deeper
14028 \begin_layout Enumerate
14029
14030 \change_deleted 564990737 1670317155
14031 Run the 
14032 \family typewriter
14033 .tex
14034 \family default
14035  file through \SpecialChar LaTeX
14036  as many times as necessary (usually up to three).
14037 \end_layout
14038
14039 \begin_layout Enumerate
14040
14041 \change_deleted 564990737 1670317155
14042 View the resulting 
14043 \family typewriter
14044 .dvi
14045 \family default
14046  document using, e.
14047 \begin_inset space \thinspace{}
14048 \end_inset
14049
14050 g.
14051 \begin_inset space \space{}
14052 \end_inset
14053
14054
14055 \family sans
14056 xdvi
14057 \family default
14058 , and check if everything is OK (it should, if you didn't make any mistake).
14059 \end_layout
14060
14061 \begin_layout Subsection
14062
14063 \change_deleted 564990737 1670317155
14064 \begin_inset Quotes eld
14065 \end_inset
14066
14067 Peculiarities
14068 \begin_inset Quotes erd
14069 \end_inset
14070
14071  of the Kluwer package
14072 \begin_inset CommandInset label
14073 LatexCommand label
14074 name "subsec:kluwer_peculiarities"
14075
14076 \end_inset
14077
14078
14079 \end_layout
14080
14081 \begin_layout Standard
14082
14083 \change_deleted 564990737 1670317155
14084 The Kluwer package has the following 
14085 \begin_inset Quotes eld
14086 \end_inset
14087
14088 peculiarities
14089 \begin_inset Quotes erd
14090 \end_inset
14091
14092 .
14093 \end_layout
14094
14095 \begin_layout Enumerate
14096
14097 \change_deleted 564990737 1670317155
14098 It is possible to write multiple articles in the same \SpecialChar LaTeX
14099  file
14100 \begin_inset Foot
14101 status collapsed
14102
14103 \begin_layout Plain Layout
14104 I can't imagine any good reason to do this.
14105 \end_layout
14106
14107 \end_inset
14108
14109 .
14110  Each article must be included in the environment 
14111 \begin_inset Quotes eld
14112 \end_inset
14113
14114 article
14115 \begin_inset Quotes erd
14116 \end_inset
14117
14118 .
14119  Unfortunately, this environment cannot be omitted, even if you write just
14120  one article.
14121  Therefore, each article starts with the command 
14122 \family typewriter
14123
14124 \backslash
14125 begin{article}
14126 \family default
14127  and, obviously, ends with the command 
14128 \family typewriter
14129
14130 \backslash
14131 end{article}
14132 \family default
14133 .
14134  Although this can be implemented in \SpecialChar LyX
14135 , I didn't included it, since it looks
14136  ugly and can confuse the novice user.
14137  Therefore, you need to enter them directly and mark them as \SpecialChar LaTeX
14138  code (the
14139  well-known 
14140 \begin_inset Quotes eld
14141 \end_inset
14142
14143 \SpecialChar TeX
14144  code
14145 \begin_inset Quotes erd
14146 \end_inset
14147
14148 ).
14149 \end_layout
14150
14151 \begin_layout Enumerate
14152
14153 \change_deleted 564990737 1670317155
14154 Information given at the beginning of the article (i.
14155 \begin_inset space \thinspace{}
14156 \end_inset
14157
14158 e.
14159 \begin_inset space \space{}
14160 \end_inset
14161
14162 title, subtitle, author, institution, running title, running author, abstract
14163  and keywords) must be included in an environment called 
14164 \begin_inset Quotes eld
14165 \end_inset
14166
14167 opening
14168 \begin_inset Quotes erd
14169 \end_inset
14170
14171 .
14172  This is not implemented in \SpecialChar LyX
14173 , so you must enter title, subtitle etc.
14174 \begin_inset space ~
14175 \end_inset
14176
14177 between two \SpecialChar TeX
14178  code lines (
14179 \family typewriter
14180
14181 \backslash
14182 begin{opening}
14183 \family default
14184  and 
14185 \family typewriter
14186
14187 \backslash
14188 end{opening}
14189 \family default
14190 ).
14191 \end_layout
14192
14193 \begin_layout Enumerate
14194
14195 \change_deleted 564990737 1670317155
14196 According to the user manual, the label of each bibliography item must be
14197  written as 
14198 \family typewriter
14199
14200 \backslash
14201 protect
14202 \backslash
14203 citeauthoryear{
14204 \family default
14205 \emph on
14206 author(s)
14207 \family typewriter
14208 \emph default
14209 }{
14210 \family default
14211 \emph on
14212 year
14213 \family typewriter
14214 \emph default
14215 }
14216 \family default
14217 .
14218 \end_layout
14219
14220 \begin_layout Standard
14221
14222 \change_deleted 564990737 1670317155
14223 The 
14224 \family typewriter
14225 kluwer.lyx
14226 \family default
14227  template takes care of all these 
14228 \begin_inset Quotes eld
14229 \end_inset
14230
14231 peculiarities
14232 \begin_inset Quotes erd
14233 \end_inset
14234
14235 .
14236  If you start a new paper using this template you don't need to do anything
14237  special.
14238  Just 
14239 \end_layout
14240
14241 \begin_layout Enumerate
14242
14243 \change_deleted 564990737 1670317155
14244 don't delete the \SpecialChar TeX
14245  code included in the template, and
14246 \end_layout
14247
14248 \begin_layout Enumerate
14249
14250 \change_deleted 564990737 1670317155
14251 copy the example bibliography item included in the template and modify it
14252  as necessary to enter new bibliography items.
14253 \end_layout
14254
14255 \begin_layout Section
14256 Koma-Script
14257 \end_layout
14258
14259 \begin_layout Standard
14260 by 
14261 \noun on
14262 Bernd Rellermeyer
14263 \end_layout
14264
14265 \begin_layout Subsection
14266 Overview
14267 \end_layout
14268
14269 \begin_layout Standard
14270 The \SpecialChar LyX
14271  document classes 
14272 \emph on
14273 article (koma-script)
14274 \emph default
14275
14276 \emph on
14277 report (koma-script)
14278 \emph default
14279
14280 \emph on
14281 book
14282 \emph default
14283  
14284 \emph on
14285 (koma-script)
14286 \emph default
14287 , and 
14288 \emph on
14289 letter
14290 \emph default
14291  
14292 \emph on
14293 (koma-script)
14294 \emph default
14295  correspond to the \SpecialChar LaTeX
14296  document classes 
14297 \family typewriter
14298 scrartcl.cls
14299 \family default
14300
14301 \family typewriter
14302 scrreprt.cls
14303 \family default
14304
14305 \family typewriter
14306 scrbook.cls
14307 \family default
14308 , and 
14309 \family typewriter
14310 scrlettr.cls
14311 \family default
14312 , resp.
14313 \begin_inset space ~
14314 \end_inset
14315
14316 of the Koma-Script family.
14317  They are replacements for the standard document classes 
14318 \family typewriter
14319 article.cls
14320 \family default
14321
14322 \family typewriter
14323 report.cls
14324 \family default
14325
14326 \family typewriter
14327 book.cls
14328 \family default
14329  and 
14330 \family typewriter
14331 letter.cls
14332 \family default
14333 , resp., and fit better to European typography conventions in a number of
14334  points.
14335 \end_layout
14336
14337 \begin_layout Itemize
14338 Standard character size is 11pt in 
14339 \emph on
14340 article (koma-script)
14341 \emph default
14342
14343 \emph on
14344 report (koma-script)
14345 \emph default
14346 , and 
14347 \emph on
14348 book (koma-script)
14349 \emph default
14350 , and 12pt in 
14351 \emph on
14352 letter (koma-script)
14353 \emph default
14354 .
14355 \end_layout
14356
14357 \begin_layout Itemize
14358 Headings, labels of the description environment, and a number of elements
14359  of the 
14360 \emph on
14361 letter (koma-script)
14362 \emph default
14363  document class are set in a bold sans serif font.
14364 \begin_inset Foot
14365 status collapsed
14366
14367 \begin_layout Plain Layout
14368 There is a big difference between the bold sans serif old cm fonts and new
14369  ec fonts, especially in the appearance of headings.
14370  In comparison, the ec bold sans serif fonts look a bit thin.
14371  Here the \SpecialChar LaTeX
14372  package 
14373 \family typewriter
14374 cmsd.sty by
14375 \family default
14376  
14377 \shape smallcaps
14378 Walter Schmidt
14379 \shape default
14380  helps to produce the 
14381 \begin_inset Quotes eld
14382 \end_inset
14383
14384 usual
14385 \begin_inset Quotes erd
14386 \end_inset
14387
14388  appearance when using the ec fonts.
14389 \end_layout
14390
14391 \end_inset
14392
14393  The numbering of chapter headings is made in the same way as the numbering
14394  of section headings, that is without the extra line 
14395 \begin_inset Quotes eld
14396 \end_inset
14397
14398 Chapter\SpecialChar ldots
14399
14400 \begin_inset Quotes erd
14401 \end_inset
14402
14403 .
14404  In addition, the appearance of the headings can be modified by using a
14405  number of options (in \SpecialChar LyX
14406  to be entered in the field 
14407 \family sans
14408 Extra
14409 \begin_inset space ~
14410 \end_inset
14411
14412 Options
14413 \family default
14414  of the dialog 
14415 \family sans
14416 Layout\SpecialChar menuseparator
14417 Document
14418 \family default
14419 ).
14420  
14421 \end_layout
14422
14423 \begin_layout Itemize
14424 The main means in the Koma-Script document classes to design the type area
14425  are the options 
14426 \family sans
14427 BCOR
14428 \family default
14429  and 
14430 \family sans
14431 DIV
14432 \family default
14433  (in \SpecialChar LyX
14434  to be entered in the extra class options field in the dialog 
14435 \family sans
14436 Document\SpecialChar menuseparator
14437 Settings
14438 \family default
14439 ).
14440  They make a clearer modification of page margins possible as do the options
14441  of the dialog 
14442 \family sans
14443 Document\SpecialChar menuseparator
14444 Settings
14445 \family default
14446 .
14447  
14448 \end_layout
14449
14450 \begin_layout Itemize
14451 The \SpecialChar LaTeX
14452  document classes of the Koma-Script family define a number of additional
14453  commands.
14454  Those part of it which makes sense in \SpecialChar LyX
14455  is implemented in corresponding
14456  paragraph types.
14457 \end_layout
14458
14459 \begin_layout Standard
14460 Detailed descriptions of the \SpecialChar LaTeX
14461  document classes of the Koma-Script family
14462  can be found in the Koma-Script documentation 
14463 \emph on
14464 scrguide
14465 \emph default
14466  (German) and 
14467 \emph on
14468 scrguien
14469 \emph default
14470  (English).
14471 \end_layout
14472
14473 \begin_layout Subsection
14474 article (koma-script), report (koma-script), and book (koma-script)
14475 \end_layout
14476
14477 \begin_layout Standard
14478 The document classes 
14479 \emph on
14480 article (koma-script)
14481 \emph default
14482
14483 \emph on
14484 report (koma-script)
14485 \emph default
14486 , and 
14487 \emph on
14488 book
14489 \emph default
14490  
14491 \emph on
14492 (koma-script)
14493 \emph default
14494  are implemented in the layout files 
14495 \family typewriter
14496 scrartcl.layout
14497 \family default
14498
14499 \family typewriter
14500 scrreprt.layout
14501 \family default
14502 , and 
14503 \family typewriter
14504 scrbook.layout
14505 \family default
14506 , resp.
14507  They contain all the paragraph types of the corresponding standard document
14508  classes 
14509 \emph on
14510 article
14511 \emph default
14512
14513 \emph on
14514 report
14515 \emph default
14516 , and 
14517 \emph on
14518 book
14519 \emph default
14520 , resp., partly modified, with the exception of the \SpecialChar LyX
14521  specific 
14522 \family sans
14523 List
14524 \family default
14525 -type, which is replaced by the new 
14526 \family sans
14527 Labeling
14528 \family default
14529 -type having the same functionality.
14530  Beside the 
14531 \family sans
14532 Labeling
14533 \family default
14534 -Type there is a number of new paragraph types added.
14535  They are 
14536 \emph on
14537 not
14538 \emph default
14539  part of 
14540 \emph on
14541 letter (koma-script)
14542 \emph default
14543 .
14544 \end_layout
14545
14546 \begin_layout Itemize
14547
14548 \family sans
14549 Addpart, Addchap
14550 \family default
14551
14552 \family sans
14553 Addsec
14554 \family default
14555 : are equivalents to 
14556 \family sans
14557 Part*, Chapter*
14558 \family default
14559  and 
14560 \family sans
14561 Section*
14562 \family default
14563 , resp., additionally inserting an entry in the table of contents.
14564  
14565 \family sans
14566 Addpart
14567 \family default
14568  and 
14569 \family sans
14570 Addchap
14571 \family default
14572  are not contained in 
14573 \emph on
14574 article (koma-script)
14575 \emph default
14576 .
14577 \end_layout
14578
14579 \begin_layout Itemize
14580
14581 \family sans
14582 Addchap*
14583 \family default
14584
14585 \family sans
14586 Addsec*
14587 \family default
14588 : behave exactly as 
14589 \family sans
14590 Addchap
14591 \family default
14592  and 
14593 \family sans
14594 Addsec
14595 \family default
14596 , resp., additionally clearing running heads.
14597  
14598 \family sans
14599 Addchap*
14600 \family default
14601  is not contained in 
14602 \emph on
14603 article (koma-script)
14604 \emph default
14605 .
14606 \begin_inset Foot
14607 status collapsed
14608
14609 \begin_layout Plain Layout
14610 There is also an 
14611 \family typewriter
14612
14613 \backslash
14614 addpart*
14615 \family default
14616  command in 
14617 \emph on
14618 book (koma-script)
14619 \emph default
14620  and in 
14621 \emph on
14622 report (koma-script)
14623 \emph default
14624 , but since this is identical to 
14625 \family sans
14626 Part*
14627 \family default
14628 , is has not been implemented in \SpecialChar LyX
14629 .
14630 \end_layout
14631
14632 \end_inset
14633
14634
14635 \end_layout
14636
14637 \begin_layout Itemize
14638
14639 \family sans
14640 Minisec
14641 \family default
14642 : generates a heading directly above the following paragraph in the standard
14643  character size without affecting the structure of the document.
14644 \end_layout
14645
14646 \begin_layout Itemize
14647
14648 \family sans
14649 Captionabove
14650 \family default
14651  and 
14652 \family sans
14653 Captionbelow
14654 \family default
14655  are special captions which respect the different space settings needed
14656  for captions placed above or below an element (if you follow strict typographic
14657  rules, you might want to place table captions always above the table).
14658  You can also use the class option 
14659 \family typewriter
14660 tablecaptionsabove
14661 \family default
14662 , which will switch 
14663 \family sans
14664 caption
14665 \family default
14666  to 
14667 \family sans
14668 captionabove
14669 \family default
14670  for tables and 
14671 \family sans
14672 captionbelow
14673 \family default
14674  for figures.
14675  You need at least Koma-Script version 2.8q to use this.
14676 \end_layout
14677
14678 \begin_layout Itemize
14679
14680 \family sans
14681 Dictum
14682 \family default
14683 : can be used to set a bonmot, e.
14684 \begin_inset space \thinspace{}
14685 \end_inset
14686
14687 g.
14688 \begin_inset space \space{}
14689 \end_inset
14690
14691 at the beginning of a chapter.
14692  If you use the optional argument (
14693 \family sans
14694 Insert\SpecialChar menuseparator
14695 Dictum
14696 \begin_inset space ~
14697 \end_inset
14698
14699 Author
14700 \family default
14701 ), you can insert the dictum's author there.
14702  Dictum and author are separated by a line.
14703  You need at least Koma-Script version 2.8q to use this.
14704  
14705 \family sans
14706 Dictum
14707 \family default
14708  is not contained in 
14709 \emph on
14710 article (koma-script)
14711 \emph default
14712 .
14713 \end_layout
14714
14715 \begin_layout Standard
14716 The following types, together with the standard types 
14717 \family sans
14718 Title
14719 \family default
14720
14721 \family sans
14722 Author
14723 \family default
14724 , and 
14725 \family sans
14726 Date
14727 \family default
14728 , form the title area of the document.
14729  They must be entered ahead of the first 
14730 \begin_inset Quotes eld
14731 \end_inset
14732
14733 ordinary
14734 \begin_inset Quotes erd
14735 \end_inset
14736
14737  paragraph.
14738 \begin_inset Foot
14739 status collapsed
14740
14741 \begin_layout Plain Layout
14742 The corresponding \SpecialChar LaTeX
14743  commands must appear before the 
14744 \family typewriter
14745
14746 \backslash
14747 maketitle
14748 \family default
14749  command.
14750 \end_layout
14751
14752 \end_inset
14753
14754  When such a type is used more than once, the latter usage overwrites the
14755  former one, that means, for every type only the latest usage is valid.
14756  The order of the different types however has, like 
14757 \family sans
14758 Title
14759 \family default
14760
14761 \family sans
14762 Author
14763 \family default
14764 , and 
14765 \family sans
14766 Date
14767 \family default
14768 , no effect on the appearance of the produced document.
14769 \end_layout
14770
14771 \begin_layout Itemize
14772
14773 \family sans
14774 Subject
14775 \family default
14776 : produces a centered paragraph above the ordinary title (
14777 \family sans
14778 Title
14779 \family default
14780
14781 \family sans
14782 Author
14783 \family default
14784
14785 \family sans
14786 Date
14787 \family default
14788 ) for the subject of the document.
14789 \end_layout
14790
14791 \begin_layout Itemize
14792
14793 \family sans
14794 Publishers
14795 \family default
14796 : produces a centered paragraph below the ordinary title (
14797 \family sans
14798 Title
14799 \family default
14800
14801 \family sans
14802 Author
14803 \family default
14804
14805 \family sans
14806 Date
14807 \family default
14808 ) for the publishers' name.
14809 \end_layout
14810
14811 \begin_layout Itemize
14812
14813 \family sans
14814 Dedication
14815 \family default
14816 : in 
14817 \emph on
14818 report (koma-script)
14819 \emph default
14820  and 
14821 \emph on
14822 book (koma-script)
14823 \emph default
14824  produces a centered paragraph on its own page behind the title page, or
14825  in 
14826 \emph on
14827 article (koma-script)
14828 \emph default
14829  produces a centered paragraph below the ordinary title (
14830 \family sans
14831 Title
14832 \family default
14833
14834 \family sans
14835 Author
14836 \family default
14837
14838 \family sans
14839 Date
14840 \family default
14841
14842 \family sans
14843 Publishers
14844 \family default
14845 ) for a dedication.
14846 \end_layout
14847
14848 \begin_layout Itemize
14849
14850 \family sans
14851 Titlehead
14852 \family default
14853 : produces a left aligned paragraph above the ordinary title (
14854 \family sans
14855 Title
14856 \family default
14857
14858 \family sans
14859 Author
14860 \family default
14861
14862 \family sans
14863 Date
14864 \family default
14865
14866 \family sans
14867 Subject
14868 \family default
14869 ) for a document`s head.
14870 \end_layout
14871
14872 \begin_layout Itemize
14873
14874 \family sans
14875 Uppertitleback
14876 \family default
14877 : produces in a double-sided print in 
14878 \emph on
14879 report (koma-script)
14880 \emph default
14881  and 
14882 \emph on
14883 book (koma-script)
14884 \emph default
14885  a left-aligned paragraph at the top of the title page`s back or has no
14886  effect in a single-sided print or in 
14887 \emph on
14888 article (koma-script)
14889 \emph default
14890 .
14891 \end_layout
14892
14893 \begin_layout Itemize
14894
14895 \family sans
14896 Lowertitleback
14897 \family default
14898 : produces in a double-sided print in 
14899 \emph on
14900 report (koma-script)
14901 \emph default
14902  and 
14903 \emph on
14904 book (koma-script)
14905 \emph default
14906  a left-aligned paragraph at the bottom of the title page`s back or has
14907  no effect in a single-sided print or in 
14908 \emph on
14909 article (koma-script)
14910 \emph default
14911 .
14912 \end_layout
14913
14914 \begin_layout Itemize
14915
14916 \family sans
14917 Extratitle
14918 \family default
14919 : produces a special 
14920 \begin_inset Quotes eld
14921 \end_inset
14922
14923 dirty
14924 \begin_inset Quotes erd
14925 \end_inset
14926
14927  page ahead of the actual document containing a paragraph without special
14928  formatting.
14929 \end_layout
14930
14931 \begin_layout Standard
14932 The layout files for the document classes 
14933 \emph on
14934 article (koma-script)
14935 \emph default
14936
14937 \emph on
14938 report (koma-script)
14939 \emph default
14940 , and 
14941 \emph on
14942 book (koma-script)
14943 \emph default
14944  do include the file 
14945 \family typewriter
14946 scrmacros.inc
14947 \family default
14948 .
14949  This is thought of as a place to define your own types.
14950  Copy scrmacros
14951 \family typewriter
14952 .inc
14953 \family default
14954  in your personal layout directory and edit the file!
14955 \end_layout
14956
14957 \begin_layout Subsection
14958 letter (koma-script)
14959 \end_layout
14960
14961 \begin_layout Description
14962 Note: This section discusses the obsolete 
14963 \family sans
14964 KOMA-Script-Letter (v.
14965 \begin_inset space ~
14966 \end_inset
14967
14968 1)
14969 \family default
14970 , which is not even included anymore in recent KOMA releases.
14971  Please refer to the next section for the current KOMA-Script-Letter class
14972  (v.
14973 \begin_inset space ~
14974 \end_inset
14975
14976 2)!
14977 \end_layout
14978
14979 \begin_layout Standard
14980 \noindent
14981 The document class 
14982 \emph on
14983 letter (koma-script)
14984 \emph default
14985  is implemented in the layout file 
14986 \family typewriter
14987 scrlettr.layout
14988 \family default
14989 .
14990  It contains all the paragraph types of the corresponding standard document
14991  class 
14992 \emph on
14993 letter
14994 \emph default
14995 , partly modified, with the exception of the \SpecialChar LyX
14996  specific types 
14997 \family sans
14998 \SpecialChar LyX
14999 -Code
15000 \family default
15001  and 
15002 \family sans
15003 Comment
15004 \family default
15005  and the 
15006 \family sans
15007 List
15008 \family default
15009  type, which is replaced by the new 
15010 \family sans
15011 Labeling
15012 \family default
15013  type.
15014  In addition, it contains, in contrast to the standard document class, the
15015  standard types 
15016 \family sans
15017 \SpecialChar LaTeX
15018
15019 \family default
15020
15021 \family sans
15022 Quotation
15023 \family default
15024
15025 \family sans
15026 Quote
15027 \family default
15028 , and 
15029 \family sans
15030 Verse
15031 \family default
15032 .
15033  Furthermore, there are a number of new letter specific types.
15034 \end_layout
15035
15036 \begin_layout Standard
15037 The appearance of the letter produced by this document class can be controlled
15038  by a number of \SpecialChar LaTeX
15039  commands, which you can put in the \SpecialChar LaTeX
15040  preamble.
15041 \begin_inset Foot
15042 status collapsed
15043
15044 \begin_layout Plain Layout
15045 For example, the standard appearance of the letter`s heading, consisting
15046  of name and address, is quite self-willed.
15047  An 
15048 \begin_inset Quotes eld
15049 \end_inset
15050
15051 ordinary
15052 \begin_inset Quotes erd
15053 \end_inset
15054
15055  heading is produced by the following \SpecialChar LaTeX
15056  commands in the preamble:
15057 \end_layout
15058
15059 \begin_layout LyX-Code
15060
15061 \backslash
15062 firsthead{
15063 \backslash
15064 parbox[b]{
15065 \backslash
15066 textwidth}
15067 \end_layout
15068
15069 \begin_layout LyX-Code
15070   {
15071 \backslash
15072 ignorespaces 
15073 \backslash
15074 fromname
15075 \backslash
15076
15077 \backslash
15078  
15079 \backslash
15080 ignorespaces 
15081 \backslash
15082 fromaddress}} 
15083 \end_layout
15084
15085 \begin_layout LyX-Code
15086
15087 \backslash
15088 nexthead{
15089 \backslash
15090 parbox[b]{
15091 \backslash
15092 textwidth}
15093 \end_layout
15094
15095 \begin_layout LyX-Code
15096   {
15097 \backslash
15098 ignorespaces 
15099 \backslash
15100 fromname 
15101 \backslash
15102 hfill 
15103 \backslash
15104 ignorespaces 
15105 \backslash
15106 pagename
15107 \backslash
15108  
15109 \backslash
15110 thepage}}
15111 \end_layout
15112
15113 \end_inset
15114
15115  A detailed German description of such \SpecialChar LaTeX
15116  commands can be found in the Koma-Script
15117  documentation 
15118 \emph on
15119 scrguide
15120 \emph default
15121 .
15122  With it, the letter's author can produce his personal letter layout.
15123 \end_layout
15124
15125 \begin_layout Standard
15126 The types 
15127 \family sans
15128 Letter
15129 \family default
15130  and 
15131 \family sans
15132 Opening
15133 \family default
15134  define the beginning of the letter and must be used in every letter.
15135  To emphasize them in the \SpecialChar LyX
15136  document class, they are marked with the letter
15137  
15138 \shape italic
15139 L
15140 \shape default
15141  or 
15142 \shape italic
15143 O
15144 \shape default
15145 , resp.
15146 \begin_inset space ~
15147 \end_inset
15148
15149 in the left margin.
15150  It is possible to write any number of letters in one file.
15151  An 
15152 \family sans
15153 Opening
15154 \family default
15155  type produces a new letter using the same addressee and a 
15156 \family sans
15157 Letter
15158 \family default
15159  type produces a new addressee.
15160  The types 
15161 \family sans
15162 Closing
15163 \family default
15164
15165 \family sans
15166 PS
15167 \family default
15168
15169 \family sans
15170 CC
15171 \family default
15172 , and 
15173 \family sans
15174 Encl
15175 \family default
15176  are ordinary paragraph types and can also be used several times in one
15177  and the same letter.
15178 \end_layout
15179
15180 \begin_layout Itemize
15181
15182 \family sans
15183 Letter
15184 \family default
15185 : produces a paragraph for the addressee and implicitly defines the beginning
15186  of the letter.
15187 \end_layout
15188
15189 \begin_layout Itemize
15190
15191 \family sans
15192 Opening
15193 \family default
15194 : produces a paragraph for the form of address and implicitly produces a
15195  new letter.
15196 \end_layout
15197
15198 \begin_layout Itemize
15199
15200 \family sans
15201 Closing
15202 \family default
15203 : produces a paragraph for a close.
15204 \end_layout
15205
15206 \begin_layout Itemize
15207
15208 \family sans
15209 PS
15210 \family default
15211 : produces a paragraph for a postscript.
15212 \end_layout
15213
15214 \begin_layout Itemize
15215
15216 \family sans
15217 CC
15218 \family default
15219 : produces a paragraph for a distribution list.
15220 \end_layout
15221
15222 \begin_layout Itemize
15223
15224 \family sans
15225 Encl
15226 \family default
15227 : produces a paragraph for enclosures.
15228 \end_layout
15229
15230 \begin_layout Standard
15231 The types 
15232 \family sans
15233 Name
15234 \family default
15235
15236 \family sans
15237 Signature
15238 \family default
15239
15240 \family sans
15241 Address
15242 \family default
15243
15244 \family sans
15245 Telephone
15246 \family default
15247
15248 \family sans
15249 Place
15250 \family default
15251
15252 \family sans
15253 Backaddress
15254 \family default
15255
15256 \family sans
15257 Specialmail
15258 \family default
15259
15260 \family sans
15261 Location
15262 \family default
15263
15264 \family sans
15265 Title
15266 \family default
15267 , and 
15268 \family sans
15269 Subject
15270 \family default
15271  are input types provided with a label to enter information, which will
15272  be processed by the document class.
15273 \begin_inset Foot
15274 status collapsed
15275
15276 \begin_layout Plain Layout
15277 It could be seen as a matter of inconsequence, that the types 
15278 \family sans
15279 Letter
15280 \family default
15281  and 
15282 \family sans
15283 Opening
15284 \family default
15285  described above are not such input types as well.
15286  Because of the special meaning of those types, however, I have implemented
15287  them as ordinary paragraph types with a one letter mark in the left margin.
15288  Moreover, it would affect my feeling of symmetry, if the 
15289 \family sans
15290 Opening
15291 \family default
15292  type and the 
15293 \family sans
15294 Closing
15295 \family default
15296  type had such a serious different appearance.
15297 \end_layout
15298
15299 \end_inset
15300
15301  The types must be used ahead of the corresponding 
15302 \family sans
15303 Opening
15304 \family default
15305  type.
15306 \end_layout
15307
15308 \begin_layout Standard
15309 An implementation of these types in a WYSIWYG fashion does not seem to make
15310  sense, because the real appearance of the produced letter does not only
15311  depend on the usage of the particular type, but also on other factors.
15312  For example, a signature entered in the 
15313 \family sans
15314 Signature
15315 \family default
15316  type will in the standard behavior appear in the produced letter only,
15317  when in the same letter also a 
15318 \family sans
15319 Closing
15320 \family default
15321  type is used.
15322  The entered value of the 
15323 \family sans
15324 Telephone
15325 \family default
15326  type will in the standard behavior not appear in the produced letter at
15327  all.
15328  The possibility to design the letter`s heading freely is already indicated
15329  in a footnote above.
15330 \end_layout
15331
15332 \begin_layout Standard
15333 The input types can also be used as empty paragraphs.
15334  This makes sense e.
15335 \begin_inset space \thinspace{}
15336 \end_inset
15337
15338 g.
15339 \begin_inset space \space{}
15340 \end_inset
15341
15342 for the 
15343 \family sans
15344 Signature
15345 \family default
15346  type.
15347  If the 
15348 \family sans
15349 Signature
15350 \family default
15351  type is not used at all, in the standard behavior the value of the 
15352 \family sans
15353 Name
15354 \family default
15355  type is used as signature, whereas if an empty 
15356 \family sans
15357 Signature
15358 \family default
15359  type is used, no signature value is defined.
15360 \end_layout
15361
15362 \begin_layout Standard
15363 By using the input types it is possible to write a letter template, containing
15364  filled input types with your personal dates (name, address, etc.) and empty
15365  input types for other dates you want to enter.
15366 \end_layout
15367
15368 \begin_layout Itemize
15369
15370 \family sans
15371 Name
15372 \family default
15373 : sender's name, in the standard behavior appears as a centered paragraph
15374  in small caps in the letter`s heading.
15375 \end_layout
15376
15377 \begin_layout Itemize
15378
15379 \family sans
15380 Signature
15381 \family default
15382 : sender's signature, in the standard behavior appears below the 
15383 \family sans
15384 Closing
15385 \family default
15386  type.
15387  If no 
15388 \family sans
15389 Signature
15390 \family default
15391  type is used, the value of the 
15392 \family sans
15393 Name
15394 \family default
15395  type appears instead.
15396 \end_layout
15397
15398 \begin_layout Itemize
15399
15400 \family sans
15401 Address
15402 \family default
15403 : sender's address, in the standard behavior appears in a centered paragraph
15404  in the letter`s heading below the sender's name.
15405 \end_layout
15406
15407 \begin_layout Itemize
15408
15409 \family sans
15410 Telephone
15411 \family default
15412 : sender's telephone number, in the standard behavior only sets the \SpecialChar LaTeX
15413  variable
15414  
15415 \family typewriter
15416
15417 \backslash
15418 telephonenum
15419 \family default
15420 .
15421 \end_layout
15422
15423 \begin_layout Itemize
15424
15425 \family sans
15426 Place
15427 \family default
15428 : place of the letter`s making.
15429 \end_layout
15430
15431 \begin_layout Itemize
15432
15433 \family sans
15434 Date
15435 \family default
15436 : date of the letter`s making.
15437  
15438 \family sans
15439 Place
15440 \family default
15441  and 
15442 \family sans
15443 Date
15444 \family default
15445 , in the standard behavior, produce the place and the date in a right-aligned
15446  line below the addressee's field.
15447  If an empty 
15448 \family sans
15449 Date
15450 \family default
15451  type is used, neither place nor date appear, independent of the value of
15452  the 
15453 \family sans
15454 Place
15455 \family default
15456  type.
15457  If no 
15458 \family sans
15459 Date
15460 \family default
15461  type is used, the date of the letter `s production is used.
15462 \end_layout
15463
15464 \begin_layout Itemize
15465
15466 \family sans
15467 Backaddress
15468 \family default
15469 : sender`s back address, in the standard behavior appears above the addressee's
15470  field in a small sans serif font.
15471 \end_layout
15472
15473 \begin_layout Itemize
15474
15475 \family sans
15476 Specialmail
15477 \family default
15478 : special mail information, in the standard behavior appears underlined
15479  above the addressee's field below the back address.
15480 \end_layout
15481
15482 \begin_layout Itemize
15483
15484 \family sans
15485 Location
15486 \family default
15487 : additional information, in the standard behavior appears on right side
15488  below the addressee`s field.
15489 \end_layout
15490
15491 \begin_layout Itemize
15492
15493 \family sans
15494 Title
15495 \family default
15496 : the letter's title, in the standard behavior appears in a big, bold, sans
15497  serif font above the subject.
15498 \end_layout
15499
15500 \begin_layout Itemize
15501
15502 \family sans
15503 Subject
15504 \family default
15505 : the letter's subject, in the standard behavior appears in a bold font
15506  above the 
15507 \family sans
15508 Opening
15509 \family default
15510  paragraph.
15511 \end_layout
15512
15513 \begin_layout Standard
15514 The types 
15515 \family sans
15516 Yourref
15517 \family default
15518
15519 \family sans
15520 Yourmail
15521 \family default
15522
15523 \family sans
15524 Myref
15525 \family default
15526
15527 \family sans
15528 Customer
15529 \family default
15530 , and 
15531 \family sans
15532 Invoice
15533 \family default
15534  produce a business letter like line above the 
15535 \family sans
15536 Title
15537 \family default
15538  line containing the fields 
15539 \begin_inset Quotes eld
15540 \end_inset
15541
15542 Your ref.
15543 \begin_inset Quotes erd
15544 \end_inset
15545
15546
15547 \begin_inset Quotes eld
15548 \end_inset
15549
15550 Your letter of
15551 \begin_inset Quotes erd
15552 \end_inset
15553
15554
15555 \begin_inset Quotes eld
15556 \end_inset
15557
15558 Our ref.
15559 \begin_inset Quotes erd
15560 \end_inset
15561
15562
15563 \begin_inset Quotes eld
15564 \end_inset
15565
15566 Customer no.
15567 \begin_inset Quotes erd
15568 \end_inset
15569
15570
15571 \begin_inset Quotes eld
15572 \end_inset
15573
15574 Invoice no.
15575 \begin_inset Quotes erd
15576 \end_inset
15577
15578 , and 
15579 \begin_inset Quotes eld
15580 \end_inset
15581
15582 Date
15583 \begin_inset Quotes erd
15584 \end_inset
15585
15586 .
15587  For the date field, the value of the 
15588 \family sans
15589 Date
15590 \family default
15591  type is used.
15592  If one of these 
15593 \begin_inset Quotes eld
15594 \end_inset
15595
15596 business letter types
15597 \begin_inset Quotes erd
15598 \end_inset
15599
15600  is used, the value of the 
15601 \family sans
15602 Place
15603 \family default
15604  type however does not appear, but only the \SpecialChar LaTeX
15605  variable 
15606 \family typewriter
15607
15608 \backslash
15609 fromplace
15610 \family default
15611  is set.
15612  The ordinary output of place and date in a right-aligned line below the
15613  addressee`s field is suppressed.
15614  The types are implemented as input types provided with a label and must
15615  be used ahead of the corresponding 
15616 \family sans
15617 Opening
15618 \family default
15619  type.
15620 \end_layout
15621
15622 \begin_layout Itemize
15623
15624 \family sans
15625 Yourref
15626 \family default
15627 : Your ref.
15628 \end_layout
15629
15630 \begin_layout Itemize
15631
15632 \family sans
15633 Yourmail
15634 \family default
15635 : Your letter of.
15636 \end_layout
15637
15638 \begin_layout Itemize
15639
15640 \family sans
15641 Myref
15642 \family default
15643 : Our ref.
15644 \end_layout
15645
15646 \begin_layout Itemize
15647
15648 \family sans
15649 Customer
15650 \family default
15651 : Customer no.
15652 \end_layout
15653
15654 \begin_layout Itemize
15655
15656 \family sans
15657 Invoice
15658 \family default
15659 : Invoice no.
15660 \end_layout
15661
15662 \begin_layout Subsection
15663 The new letter class: letter (koma-script v.2)
15664 \end_layout
15665
15666 \begin_layout Standard
15667 by 
15668 \noun on
15669 Jürgen Spitzmüller
15670 \end_layout
15671
15672 \begin_layout Standard
15673 \begin_inset VSpace medskip
15674 \end_inset
15675
15676
15677 \end_layout
15678
15679 \begin_layout Standard
15680 \noindent
15681 Koma-Script version 2.8 has introduced a new letter class 
15682 \family typewriter
15683 scrlttr2
15684 \family default
15685  which supersedes the now unsupported 
15686 \family typewriter
15687 scrlettr
15688 \family default
15689 .
15690  It has — on the \SpecialChar LaTeX
15691  side — a completely new interface and is not compatible
15692  with the old class.
15693  Therefore, \SpecialChar LyX
15694  supports both, though it is recommended you use the new class.
15695 \end_layout
15696
15697 \begin_layout Standard
15698 This class covers the same functionality as 
15699 \emph on
15700 letter (koma-script),
15701 \emph default
15702  and a few more.
15703  The basic items are 
15704 \family sans
15705 Address
15706 \family default
15707  (receiver's address, same as 
15708 \family sans
15709 Letter
15710 \family default
15711  in the old layout), 
15712 \family sans
15713 Opening
15714 \family default
15715 , and 
15716 \family sans
15717 Closing
15718 \family default
15719 .
15720  
15721 \family sans
15722 NextAddress
15723 \family default
15724  will start a new letter (i.
15725 \begin_inset space \thinspace{}
15726 \end_inset
15727
15728 e.
15729 \begin_inset space \space{}
15730 \end_inset
15731
15732 you can write several letters per document).
15733  New elements are sender's 
15734 \family sans
15735 E-Mail
15736 \family default
15737
15738 \family sans
15739 URL
15740 \family default
15741
15742 \family sans
15743 Fax
15744 \family default
15745
15746 \family sans
15747 Bank
15748 \family default
15749  and the possibility to use a 
15750 \family sans
15751 Logo
15752 \family default
15753  (via 
15754 \family sans
15755 Insert\SpecialChar menuseparator
15756 Graphics
15757 \family default
15758 ) in the header.
15759 \end_layout
15760
15761 \begin_layout Standard
15762 The biggest improvement is, though, that the letter's layout is configurable
15763  to meet almost any needs.
15764  This can be done via the preamble or with a special style file (Letter
15765  Class Option, extension 
15766 \family typewriter
15767 *.lco
15768 \family default
15769 ), that will be read in as a class option.
15770 \begin_inset Foot
15771 status collapsed
15772
15773 \begin_layout Plain Layout
15774 The KOMA package comes with some default 
15775 \family typewriter
15776 *.lco
15777 \family default
15778  files.
15779  There is, for instance, a 
15780 \family typewriter
15781 DIN.lco
15782 \family default
15783  file that follows german typesetting rules, or a 
15784 \family typewriter
15785 KOMAold.lco
15786 \family default
15787  that provides the default layout of the old 
15788 \family typewriter
15789 scrlettr
15790 \family default
15791  class.
15792  The latter can be loaded with the class option 
15793 \family typewriter
15794 KOMAold
15795 \family default
15796 , inserted via the 
15797 \family sans
15798 Layout\SpecialChar menuseparator
15799 Document\SpecialChar menuseparator
15800 Extra Options
15801 \family default
15802  field.
15803 \end_layout
15804
15805 \end_inset
15806
15807  Have a look at the 
15808 \emph on
15809 koma-letter2
15810 \emph default
15811  template that is included in \SpecialChar LyX
15812  for examples.
15813  A detailed description is to be found in the Koma-Script documentation
15814  (
15815 \emph on
15816 scrguide
15817 \emph default
15818 ).
15819 \end_layout
15820
15821 \begin_layout Subsection
15822 Problems
15823 \end_layout
15824
15825 \begin_layout Standard
15826 Visualizing the Koma-Script document classes in \SpecialChar LyX
15827 , the \SpecialChar LyX
15828  internals cause some
15829  problems.
15830 \end_layout
15831
15832 \begin_layout Itemize
15833 The chapter number of a 
15834 \family sans
15835 Chapter
15836 \family default
15837  type appears on a line of its own above the chapter heading instead of
15838  appearing in the same line ahead of it.
15839  The cause for that is the \SpecialChar LyX
15840  internal behavior for the labeltype 
15841 \family sans
15842 Counter_Chapter
15843 \family default
15844  in the layout file.
15845 \end_layout
15846
15847 \begin_layout Itemize
15848 The headings of the types 
15849 \family sans
15850 Addchap
15851 \family default
15852  and 
15853 \family sans
15854 Addsec
15855 \family default
15856  are only put in the 
15857 \begin_inset Quotes eld
15858 \end_inset
15859
15860 true
15861 \begin_inset Quotes erd
15862 \end_inset
15863
15864  \SpecialChar LaTeX
15865  table of contents, but not in the \SpecialChar LyX
15866  table of contents (
15867 \family sans
15868 Document\SpecialChar menuseparator
15869 Table
15870 \begin_inset space ~
15871 \end_inset
15872
15873 of
15874 \begin_inset space ~
15875 \end_inset
15876
15877 Contents
15878 \family default
15879 ).
15880 \end_layout
15881
15882 \begin_layout Itemize
15883 The paragraphs in a 
15884 \emph on
15885 letter
15886 \emph default
15887  document class appear in a skip separation mode, not indented.
15888  This is the standard behavior, no special \SpecialChar LaTeX
15889  commands are needed for that.
15890  But in the 
15891 \family sans
15892 Document\SpecialChar menuseparator
15893 Settings
15894 \family default
15895  dialog the corresponding radio button indicates 
15896 \family sans
15897 Indent
15898 \family default
15899 .
15900  A 
15901 \family sans
15902 Skip
15903 \family default
15904  value always has the effect that extra \SpecialChar LaTeX
15905  commands are inserted in the document
15906  to produce the gap, which is not what is wanted in this case.
15907 \end_layout
15908
15909 \begin_layout Section
15910 Memoir
15911 \end_layout
15912
15913 \begin_layout Standard
15914 By 
15915 \noun on
15916 Jürgen Spitzmüller
15917 \end_layout
15918
15919 \begin_layout Subsection
15920 Overview
15921 \end_layout
15922
15923 \begin_layout Standard
15924 Memoir is a very powerful and constantly evolving class.
15925  It has been designed with regard to fictional and non-fictional literature.
15926  Its aim is to let the user have maximum control over the typesetting of
15927  his document.
15928  Memoir is based on the standard book class, but it can also emulate the
15929  article class (see below).
15930 \end_layout
15931
15932 \begin_layout Standard
15933 Peter Wilson, the developer of Memoir, is known as the author of lots of
15934  useful packages in the \SpecialChar LaTeX
15935  world.
15936  Most of them have been merged with Memoir.
15937  Therefore, it is much easier to layout the table of contents, appendices,
15938  chapter designs and such.
15939  \SpecialChar LyX
15940 , though, does not support all of these goodies natively.
15941  Some of them might be added to forthcoming releases
15942 \begin_inset Foot
15943 status collapsed
15944
15945 \begin_layout Plain Layout
15946 You are invited to send suggestions to 
15947 \begin_inset Flex URL
15948 status collapsed
15949
15950 \begin_layout Plain Layout
15951
15952 lyx-devel@lists.lyx.org
15953 \end_layout
15954
15955 \end_inset
15956
15957 .
15958 \end_layout
15959
15960 \end_inset
15961
15962 , lots will probably never be supported, due to the limitations of \SpecialChar LyX
15963 's framework.
15964  Of course you can still use all features with the help of some native \SpecialChar LaTeX
15965
15966  commands (\SpecialChar TeX
15967  code
15968 \begin_inset Foot
15969 status collapsed
15970
15971 \begin_layout Plain Layout
15972 Cf.
15973 \begin_inset ERT
15974 status collapsed
15975
15976 \begin_layout Plain Layout
15977
15978
15979 \backslash
15980  
15981 \end_layout
15982
15983 \end_inset
15984
15985 section
15986 \begin_inset space ~
15987 \end_inset
15988
15989
15990 \begin_inset CommandInset ref
15991 LatexCommand ref
15992 reference "sec:Inserting-TeX-Code"
15993
15994 \end_inset
15995
15996  for details.
15997 \end_layout
15998
15999 \end_inset
16000
16001 ).
16002  In this section, we can only list those features that are natively supported
16003  by \SpecialChar LyX
16004 .
16005  For detailed descriptions (and for the rest of features) we recommend you
16006  have a look at the detailed manual of the Memoir class
16007 \begin_inset Foot
16008 status collapsed
16009
16010 \begin_layout Plain Layout
16011 Cf.
16012 \begin_inset ERT
16013 status collapsed
16014
16015 \begin_layout Plain Layout
16016
16017
16018 \backslash
16019  
16020 \end_layout
16021
16022 \end_inset
16023
16024
16025 \begin_inset Flex URL
16026 status collapsed
16027
16028 \begin_layout Plain Layout
16029
16030 CTAN:/macros/latex/memoir/memman.pdf
16031 \end_layout
16032
16033 \end_inset
16034
16035 .
16036 \end_layout
16037
16038 \end_inset
16039
16040 , which is not only a user guide for the class, but also both a comprehensive
16041  description on good typesetting and a superb example for good typesetting
16042  itself.
16043 \end_layout
16044
16045 \begin_layout Subsection
16046 Basic features and restrictions
16047 \end_layout
16048
16049 \begin_layout Standard
16050 Memoir supports basically all features of the standard book classes.
16051  There are, however, some differences, as follows:
16052 \end_layout
16053
16054 \begin_layout Description
16055 Font
16056 \begin_inset space ~
16057 \end_inset
16058
16059 sizes: Memoir has a broader range of font sizes: 9, 10, 11, 12, 14, 17
16060 \end_layout
16061
16062 \begin_layout Description
16063 Page
16064 \begin_inset space ~
16065 \end_inset
16066
16067 style: The fancy page style is not supported, due to a command clash between
16068  Memoir and the fancyhdr package (they both define a command with the same
16069  name, which confuses \SpecialChar LaTeX
16070 ).
16071  Instead, Memoir comes with a number of its own page styles (see 
16072 \family sans
16073 Document\SpecialChar menuseparator
16074 Settings\SpecialChar menuseparator
16075 Page
16076 \begin_inset space ~
16077 \end_inset
16078
16079 Style
16080 \family default
16081 ).
16082  If you want to use these for the chapter pages, you have to use the command
16083  
16084 \family typewriter
16085
16086 \backslash
16087 chapterstyle
16088 \family default
16089  in the main text or in preamble (e.
16090 \begin_inset space \thinspace{}
16091 \end_inset
16092
16093 g.
16094 \begin_inset space \space{}
16095 \end_inset
16096
16097
16098 \family typewriter
16099
16100 \backslash
16101 chapterstyle{companion}
16102 \family default
16103 ).
16104 \end_layout
16105
16106 \begin_layout Description
16107 Sectioning: Sectionings (chapter, section, subsection etc.) come with an
16108  optional argument in the standard classes.
16109  With this, you can specify an alternative version of the title for the
16110  table of contents and the headers (for instance, if the title is too long).
16111  In \SpecialChar LyX
16112 , you can do this via 
16113 \family sans
16114 Insert\SpecialChar menuseparator
16115 Short
16116 \begin_inset space ~
16117 \end_inset
16118
16119 Title
16120 \family default
16121  at the beginning of a chapter/section.
16122  Memoir features a second optional argument and thus separates the table
16123  of contents from the header.
16124  You can define three variants of a title with this: one for the main text,
16125  one for the table of contents, and one for the headers.
16126  \SpecialChar LyX
16127  makes these available in form of specific 
16128 \family sans
16129 Short Title
16130 \family default
16131  variants in the 
16132 \family sans
16133 Insert
16134 \family default
16135  menu.
16136 \end_layout
16137
16138 \begin_layout Description
16139 TOC/LOT/LOF: In the standard classes (and in many other classes), the table
16140  of contents, the list of figures and the list of table start a new page
16141  automatically.
16142  Memoir does not follow this route.
16143  You have to insert a page break yourself, if you want to have one.
16144 \end_layout
16145
16146 \begin_layout Description
16147 Titlepage: For some unknown reason, Memoir uses pagination on the title
16148  page (in the standard classes, title pages are 
16149 \begin_inset Quotes eld
16150 \end_inset
16151
16152 empty
16153 \begin_inset Quotes erd
16154 \end_inset
16155
16156 ).
16157  If you want an empty title page, type 
16158 \family typewriter
16159
16160 \backslash
16161 aliaspagestyle{title}{empty}
16162 \family default
16163  in the preamble.
16164 \end_layout
16165
16166 \begin_layout Description
16167 Article: With the class option 
16168 \emph on
16169 article
16170 \emph default
16171  (to be inserted in 
16172 \family sans
16173 Document\SpecialChar menuseparator
16174 Settings\SpecialChar menuseparator
16175 Class Settings\SpecialChar menuseparator
16176 Custom
16177 \begin_inset space ~
16178 \end_inset
16179
16180 Options
16181 \family default
16182 ), you can emulate article style.
16183  That is, counters (footnotes, figures, tables etc.) will not be reset on
16184  new chapters, chapters don't start a new page (but are—in contrary to 
16185 \begin_inset Quotes eld
16186 \end_inset
16187
16188 real
16189 \begin_inset Quotes erd
16190 \end_inset
16191
16192  article classes—still allowed), parts, though, use their own page, as in
16193  book.
16194 \end_layout
16195
16196 \begin_layout Description
16197 Oldfontcommands: By default, Memoir does not allow the use of the deprecated
16198  font commands, which have been used in the old \SpecialChar LaTeX
16199  version 2.09 (e.
16200 \begin_inset space \thinspace{}
16201 \end_inset
16202
16203 g.
16204 \begin_inset space \space{}
16205 \end_inset
16206
16207
16208 \family typewriter
16209
16210 \backslash
16211 rm
16212 \family default
16213
16214 \family typewriter
16215
16216 \backslash
16217 it
16218 \family default
16219 ).
16220  It produces an error and stops \SpecialChar LaTeX
16221  whenever such a command appears.
16222  The class option 
16223 \emph on
16224 oldfontcommands
16225 \emph default
16226  reallows the commands and spits out warnings instead (which does at least
16227  not stop \SpecialChar LaTeX
16228 ).
16229  Since a lot of packages and particularly Bib\SpecialChar TeX
16230  style files are still using
16231  those commands, we have decided to use this option by default.
16232 \end_layout
16233
16234 \begin_layout Subsection
16235 Extra features
16236 \end_layout
16237
16238 \begin_layout Standard
16239 We will only describe the features supported by \SpecialChar LyX
16240  (which is not much currently).
16241  Please consult the Memoir manual
16242 \begin_inset Foot
16243 status collapsed
16244
16245 \begin_layout Plain Layout
16246 Cf.
16247 \begin_inset ERT
16248 status collapsed
16249
16250 \begin_layout Plain Layout
16251
16252
16253 \backslash
16254  
16255 \end_layout
16256
16257 \end_inset
16258
16259
16260 \begin_inset Flex URL
16261 status collapsed
16262
16263 \begin_layout Plain Layout
16264
16265 CTAN:/macros/latex/memoir/memman.pdf
16266 \end_layout
16267
16268 \end_inset
16269
16270 .
16271 \end_layout
16272
16273 \end_inset
16274
16275  for details.
16276 \end_layout
16277
16278 \begin_layout Description
16279 Abstract: You may wonder why an abstract is an extra feature.
16280  Well, it is in book class.
16281  Usually books don't have abstracts.
16282  Memoir, however, has.
16283  You can use it wherever and how often you like.
16284 \end_layout
16285
16286 \begin_layout Description
16287 Chapterprecis: You may know this older typesetting style: The contents of
16288  a chapter are summarized below the title and also in the table of contents
16289  (e.
16290 \begin_inset space \thinspace{}
16291 \end_inset
16292
16293 g.
16294 \begin_inset space \space{}
16295 \end_inset
16296
16297
16298 \emph on
16299 Our hero arrives in Troia; he loses some friends; he finds others
16300 \emph default
16301 ).
16302  Chapterprecis does exactly this.
16303  It is therefore only sensible below a chapter.
16304 \end_layout
16305
16306 \begin_layout Description
16307 Epigraph: An epigraph is a smart slogan or motto at the beginning of a chapter.
16308  The epigraph environment provides an elegant way of typesetting such a
16309  motto.
16310  The motto itself (text) and its (optional) author (source) are divided
16311  by a short line.
16312  The author (source) can be inserted via 
16313 \family sans
16314 Insert\SpecialChar menuseparator
16315 Epigraph Source
16316 \family default
16317 \emph on
16318 .
16319 \end_layout
16320
16321 \begin_layout Description
16322 Poemtitle: Memoir has lots of possibilities to typeset poetry (up to very
16323  complex figurative poems).
16324  \SpecialChar LyX
16325  can only support a few of them.
16326  One is poemtitle, which is a centered title for poems, which will also
16327  be added to the table of contents (verse is the standard environment for
16328  poems.
16329  Memoir has some enhanced versions of verse, but you need to use \SpecialChar TeX
16330  code,
16331  because they have to be nested inside regular verse environments, which
16332  is not possible with \SpecialChar LyX
16333 ).
16334 \end_layout
16335
16336 \begin_layout Description
16337 Poemtitle*: Same as poemtitle, but it adds no entry to the table of contents.
16338 \end_layout
16339
16340 \begin_layout Section
16341 Article (mwart), book (mwbk) and report (mwrep)
16342 \begin_inset Argument status
16343 status collapsed
16344
16345 \begin_layout Plain Layout
16346 The 
16347 \family typewriter
16348 mw
16349 \family default
16350  Classes
16351 \end_layout
16352
16353 \end_inset
16354
16355
16356 \end_layout
16357
16358 \begin_layout Standard
16359 by 
16360 \noun on
16361 Tomasz Luczak
16362 \end_layout
16363
16364 \begin_layout Standard
16365 The \SpecialChar LyX
16366  document classes 
16367 \emph on
16368 article (mwart)
16369 \emph default
16370
16371 \emph on
16372 report (mwrep)
16373 \emph default
16374  and 
16375 \emph on
16376 book
16377 \emph default
16378  
16379 \emph on
16380 (mwbk)
16381 \emph default
16382  correspond to the \SpecialChar LaTeX
16383  document classes 
16384 \family typewriter
16385 mwart.cls
16386 \family default
16387
16388 \family typewriter
16389 mwrep.cls
16390 \family default
16391  and 
16392 \family typewriter
16393 mwbk.cls
16394 \family default
16395 , resp.
16396  They are replacements for the standard document classes 
16397 \family typewriter
16398 article.cls
16399 \family default
16400
16401 \family typewriter
16402 report.cls
16403 \family default
16404  and 
16405 \family typewriter
16406 book.cls
16407 \family default
16408 , resp., and fit better to Polish typography conventions in a number of points.
16409  
16410 \end_layout
16411
16412 \begin_layout Standard
16413 Basic differences:
16414 \end_layout
16415
16416 \begin_layout Itemize
16417 Unnumbered titles (with star, e.
16418 \begin_inset space \thinspace{}
16419 \end_inset
16420
16421 g.
16422 \begin_inset space \space{}
16423 \end_inset
16424
16425
16426 \family sans
16427 Section*
16428 \family default
16429 ) are added into table of contents,
16430 \end_layout
16431
16432 \begin_layout Itemize
16433 Additional page styles:
16434 \end_layout
16435
16436 \begin_deeper
16437 \begin_layout Description
16438 uheadings header with separated lines,
16439 \end_layout
16440
16441 \begin_layout Description
16442 myheadings custom header, contents headers via commands: 
16443 \family typewriter
16444
16445 \backslash
16446 markright
16447 \family default
16448  and 
16449 \family typewriter
16450
16451 \backslash
16452 markboth
16453 \family default
16454 ,
16455 \end_layout
16456
16457 \begin_layout Description
16458 myuheadings custom header with separated lines,
16459 \end_layout
16460
16461 \begin_layout Description
16462 outer page number is placed on outer side of page
16463 \end_layout
16464
16465 \end_deeper
16466 \begin_layout Itemize
16467 Options 
16468 \end_layout
16469
16470 \begin_deeper
16471 \begin_layout Description
16472 rmheadings serif titles — default,
16473 \end_layout
16474
16475 \begin_layout Description
16476 sfheadings sansserif titles,
16477 \end_layout
16478
16479 \begin_layout Description
16480 authortitle on title page first placed is author next title — default,
16481 \end_layout
16482
16483 \begin_layout Description
16484 titleauthor on title page first placed is title next author,
16485 \end_layout
16486
16487 \begin_layout Description
16488 withmarginpar reserve place on page for margins.
16489 \end_layout
16490
16491 \end_deeper
16492 \begin_layout Section
16493 Paper
16494 \end_layout
16495
16496 \begin_layout Standard
16497 The document class 
16498 \family sans
16499 paper
16500 \family default
16501  provides an alternative to the standard 
16502 \family sans
16503 article
16504 \family default
16505  class.
16506  It provides similar functionality, but you might prefer this layout with
16507  sans serif sections, headings, and more.
16508 \end_layout
16509
16510 \begin_layout Section
16511 Rev\SpecialChar TeX
16512 4
16513 \end_layout
16514
16515 \begin_layout Standard
16516 by 
16517 \noun on
16518 Amir Karger
16519 \end_layout
16520
16521 \begin_layout Standard
16522 \begin_inset VSpace bigskip
16523 \end_inset
16524
16525
16526 \end_layout
16527
16528 \begin_layout Standard
16529 \noindent
16530 The 
16531 \family sans
16532 Revtex
16533 \begin_inset space ~
16534 \end_inset
16535
16536 4
16537 \family default
16538  textclass works with the American Physical Sociey's Rev\SpecialChar TeX
16539  4.0 (the 
16540 \begin_inset Formula $\beta$
16541 \end_inset
16542
16543  release of May, 1999) class.
16544 \end_layout
16545
16546 \begin_layout Standard
16547 \SpecialChar LyX
16548  has a 
16549 \family sans
16550 Revtex
16551 \family default
16552  textclass, which works with Rev\SpecialChar TeX
16553  3.1.
16554  However, v3.1 is basically obsolete, as it works with \SpecialChar LaTeX
16555  2.09.
16556  That means that it doesn't interact very well with \SpecialChar LyX
16557 , which requires \SpecialChar LaTeX2e
16558 , although
16559  it has been kludged to work.
16560  Since Rev\SpecialChar TeX
16561  4.0 has been designed to work much more cleanly with \SpecialChar LaTeX2e
16562 , \SpecialChar LyX
16563  with the
16564  
16565 \family sans
16566 Rev\SpecialChar TeX
16567
16568 \begin_inset space ~
16569 \end_inset
16570
16571 4
16572 \family default
16573  textclass should also be pretty easy to use.
16574 \end_layout
16575
16576 \begin_layout Standard
16577 These documents are supposed to be used in 
16578 \emph on
16579 addition
16580 \emph default
16581  to the Rev\SpecialChar TeX
16582  4.0 documents, so we don't describe any of the special Rev\SpecialChar TeX
16583  macros,
16584  and assume you'll know what to put in the preamble if necessary.
16585 \end_layout
16586
16587 \begin_layout Subsection
16588 Installation
16589 \end_layout
16590
16591 \begin_layout Standard
16592 All you need to do is install Rev\SpecialChar TeX
16593  4, as described in the package's README
16594  file.
16595  The package can be found at The Rev\SpecialChar TeX
16596  4 Web Site 
16597 \begin_inset Flex URL
16598 status collapsed
16599
16600 \begin_layout Plain Layout
16601
16602 http://publish.aps.org/revtex4/
16603 \end_layout
16604
16605 \end_inset
16606
16607 .
16608  Install it somewhere that \SpecialChar LaTeX
16609  can see it.
16610  Test it by trying to \SpecialChar LaTeX
16611  a short Rev\SpecialChar TeX
16612  4 document in some random directory (i.
16613 \begin_inset space \thinspace{}
16614 \end_inset
16615
16616 e.
16617 \begin_inset space \space{}
16618 \end_inset
16619
16620 not the directory where you installed the class file.) Then, if you reconfigure
16621  \SpecialChar LyX
16622 , it will find the class file and let you use the Rev\SpecialChar TeX
16623 4 textclass.
16624 \end_layout
16625
16626 \begin_layout Standard
16627 Probably the easiest way to get started is either to import a Rev\SpecialChar TeX
16628  4 document
16629  using 
16630 \family typewriter
16631 tex2lyx
16632 \family default
16633 , or to use the 
16634 \family sans
16635 Revtex
16636 \begin_inset space ~
16637 \end_inset
16638
16639 4
16640 \family default
16641  template, found in the templates directory.
16642 \end_layout
16643
16644 \begin_layout Subsection
16645 Preamble Matter
16646 \end_layout
16647
16648 \begin_layout Standard
16649 Optional arguments to 
16650 \family typewriter
16651
16652 \backslash
16653 documentclass
16654 \family default
16655 , like 
16656 \begin_inset Quotes eld
16657 \end_inset
16658
16659 preprint
16660 \begin_inset Quotes erd
16661 \end_inset
16662
16663  and 
16664 \begin_inset Quotes eld
16665 \end_inset
16666
16667 aps
16668 \begin_inset Quotes erd
16669 \end_inset
16670
16671 , go in the 
16672 \family sans
16673 Extra
16674 \begin_inset space ~
16675 \end_inset
16676
16677 Options
16678 \family default
16679  field in the 
16680 \family sans
16681 Document
16682 \begin_inset space ~
16683 \end_inset
16684
16685 Layout
16686 \family default
16687  dialog, as usual.
16688  Remember that in Rev\SpecialChar TeX
16689 , at least one optional argument is required! 
16690 \end_layout
16691
16692 \begin_layout Standard
16693 Other preamble matter, like 
16694 \family typewriter
16695
16696 \backslash
16697 draft
16698 \family default
16699  etc.
16700 \begin_inset space ~
16701 \end_inset
16702
16703 goes in the 
16704 \family sans
16705 \SpecialChar LaTeX
16706
16707 \begin_inset space ~
16708 \end_inset
16709
16710 Preamble
16711 \family default
16712  dialog, also as usual.
16713 \end_layout
16714
16715 \begin_layout Subsection
16716 Layouts
16717 \end_layout
16718
16719 \begin_layout Standard
16720 The layouts basically correspond to the commands in Rev\SpecialChar TeX
16721 4.0.
16722  For example, the Email layout corresponds to 
16723 \family typewriter
16724
16725 \backslash
16726 email{}
16727 \family default
16728 .
16729  Note that (at least as of Rev\SpecialChar TeX
16730  4.0 Beta), the 
16731 \family sans
16732 Address
16733 \family default
16734  and 
16735 \family sans
16736 Affiliation
16737 \family default
16738  layouts are exactly equivalent, so you shouldn't need to use both.
16739 \begin_inset Foot
16740 status collapsed
16741
16742 \begin_layout Plain Layout
16743 In case you're curious, both were included so that 
16744 \family typewriter
16745 tex2lyx
16746 \family default
16747  would be able to translate both 
16748 \family typewriter
16749
16750 \backslash
16751 address
16752 \family default
16753  and 
16754 \family typewriter
16755
16756 \backslash
16757 affiliation
16758 \family default
16759 .
16760 \end_layout
16761
16762 \end_inset
16763
16764
16765 \end_layout
16766
16767 \begin_layout Subsection
16768 Important Notes
16769 \end_layout
16770
16771 \begin_layout Standard
16772 There are a couple of important unique aspects of Rev\SpecialChar TeX
16773  4 which might cause
16774  bugs that will be even more confusing in \SpecialChar LyX
16775 .
16776 \end_layout
16777
16778 \begin_layout Standard
16779 In Rev\SpecialChar TeX
16780 , the 
16781 \family typewriter
16782
16783 \backslash
16784 thanks
16785 \family default
16786  command goes 
16787 \emph on
16788 outside
16789 \emph default
16790  the 
16791 \family typewriter
16792
16793 \backslash
16794 author
16795 \family default
16796  command.
16797  The \SpecialChar LyX
16798  equivalent is that there is a separate Thanks layout.
16799  Do 
16800 \emph on
16801 not
16802 \emph default
16803  write footnotes in the 
16804 \family sans
16805 Author
16806 \family default
16807  layout, or weird things may happen.
16808  See the Rev\SpecialChar TeX
16809  4 documentation for more details.
16810 \end_layout
16811
16812 \begin_layout Standard
16813 Also, the 
16814 \family sans
16815 Author
16816 \begin_inset space ~
16817 \end_inset
16818
16819 Email
16820 \family default
16821
16822 \family sans
16823 Author
16824 \begin_inset space ~
16825 \end_inset
16826
16827 URL
16828 \family default
16829 , and 
16830 \family sans
16831 Thanks
16832 \family default
16833  layouts must be placed 
16834 \emph on
16835 in between
16836 \emph default
16837  the 
16838 \family sans
16839 Author
16840 \family default
16841  layout and the corresponding 
16842 \family sans
16843 Address
16844 \family default
16845  (or equivalent 
16846 \family sans
16847 Affiliation
16848 \family default
16849 ) layout.
16850  If you put the 
16851 \family sans
16852 Thanks
16853 \family default
16854  after the 
16855 \family sans
16856 Address
16857 \family default
16858 , the \SpecialChar LaTeX
16859  won't compile.
16860 \end_layout
16861
16862 \begin_layout Section
16863 Springer Journals (
16864 \family sans
16865 svjour
16866 \family default
16867 )
16868 \end_layout
16869
16870 \begin_layout Standard
16871 by 
16872 \noun on
16873 Martin Vermeer
16874 \end_layout
16875
16876 \begin_layout Subsection
16877 Description
16878 \end_layout
16879
16880 \begin_layout Standard
16881 These are the layout files for some of the journal formats used by Springer
16882  Verlag and listed on 
16883 \begin_inset Flex URL
16884 status collapsed
16885
16886 \begin_layout Plain Layout
16887
16888 http://www.springer.de/author/tex/help-journals.html
16889 \end_layout
16890
16891 \end_inset
16892
16893 , where you should also go to fetch the class files (yes, these are \SpecialChar LaTeX2e
16894  now!).
16895  It is a modular system: the things common to all journals are implemented
16896  in 
16897 \family typewriter
16898 svjour.inc
16899 \family default
16900 , which journal-specific layout files (such as, e.
16901 \begin_inset space \thinspace{}
16902 \end_inset
16903
16904 g.
16905 \begin_inset space \space{}
16906 \end_inset
16907
16908
16909 \family typewriter
16910 svjog.layout
16911 \family default
16912  for Journal of Geodesy) can include.
16913 \end_layout
16914
16915 \begin_layout Standard
16916 This means that implementing support for any other Springer journal on this
16917  list is as simple as writing your own 
16918 \family typewriter
16919 sv
16920 \family default
16921 <myjournal>
16922 \family typewriter
16923 .layout
16924 \family default
16925  file following the outline given in 
16926 \family typewriter
16927 svjog.layout
16928 \family default
16929 .
16930  
16931 \end_layout
16932
16933 \begin_layout Standard
16934 It is reasonably well tested only for the Journal of Geodesy.
16935  
16936 \family typewriter
16937 svjour
16938 \family default
16939  and 
16940 \family typewriter
16941 svjog
16942 \family default
16943  come with the standard \SpecialChar LyX
16944  distribution.
16945  Install the relevant class file (downloaded from Springer) in a proper
16946  directory, reconfigure \SpecialChar LaTeX
16947  (in the te\SpecialChar TeX
16948  case by running 
16949 \family typewriter
16950 texhash
16951 \family default
16952 , as root if necessary — doesn't \SpecialChar LyX
16953  take care of this?), reconfigure \SpecialChar LyX
16954  and
16955  it should work.
16956 \end_layout
16957
16958 \begin_layout Subsection
16959 New styles
16960 \end_layout
16961
16962 \begin_layout Standard
16963 A large number of theorem-like styles — 
16964 \family sans
16965 Claim, Conjecture,
16966 \family default
16967  
16968 \family sans
16969 \SpecialChar ldots
16970 Theorem
16971 \family default
16972 .
16973 \end_layout
16974
16975 \begin_layout Standard
16976
16977 \family sans
16978 Headnote, Dedication, Subtitle, Running_\SpecialChar LaTeX
16979 _Title, Author_Running, Institute,
16980  Mail, Offprints, Keywords, Acknowledgements, Acknowledgement
16981 \family default
16982 .
16983  See the Springer class file documentation for details.
16984 \end_layout
16985
16986 \begin_layout Subsection
16987 Supported journals
16988 \end_layout
16989
16990 \begin_layout Itemize
16991
16992 \emph on
16993 Journal of Geodesy
16994 \emph default
16995
16996 \family typewriter
16997 svjog.layout
16998 \family default
16999  — Martin Vermeer
17000 \end_layout
17001
17002 \begin_layout Itemize
17003
17004 \emph on
17005 Probability Theory and Related Fields
17006 \emph default
17007
17008 \family typewriter
17009 svprobth.layout
17010 \family default
17011  — Jean-Marc Lasgouttes
17012 \end_layout
17013
17014 \begin_layout Standard
17015 Add your own, it isn't so hard!
17016 \end_layout
17017
17018 \begin_layout Subsection
17019 Credits
17020 \end_layout
17021
17022 \begin_layout Standard
17023 These files are partly based on the older 
17024 \family typewriter
17025 ejour2.layout
17026 \family default
17027 , which was again based on a tinkered-with version of an old \SpecialChar LaTeX
17028  2.09 style
17029  file from Springer.
17030  All this, and the 
17031 \family typewriter
17032 ejour2
17033 \family default
17034  layout, are now defunct.
17035  Jean-Marc Lasgouttes helped out big in making me find my way around the
17036  \SpecialChar LyX
17037  layout file mechanism.
17038 \end_layout
17039
17040 \begin_layout Subsection
17041 Bugs
17042 \end_layout
17043
17044 \begin_layout Standard
17045 Probably.
17046  But probably less than in the old hacked-\SpecialChar LaTeX
17047  
17048 \family typewriter
17049 ejour2
17050 \family default
17051 .
17052 \end_layout
17053
17054 \begin_layout Section
17055 Slides [aka 
17056 \noun on
17057 Sli\SpecialChar TeX
17058
17059 \noun default
17060 ]
17061 \begin_inset CommandInset label
17062 LatexCommand label
17063 name "sec:slitex"
17064
17065 \end_inset
17066
17067
17068 \end_layout
17069
17070 \begin_layout Standard
17071 by 
17072 \noun on
17073 John Weiss
17074 \noun default
17075  
17076 \end_layout
17077
17078 \begin_layout Subsection
17079 Introduction
17080 \end_layout
17081
17082 \begin_layout Standard
17083 This section describes how to use \SpecialChar LyX
17084  to make slides for overhead projectors.
17085  There are two document classes that can do this: the default slides class
17086  and the 
17087 \family sans
17088 Foil\SpecialChar TeX
17089
17090 \family default
17091  slides class.
17092  This section documents the former.
17093 \end_layout
17094
17095 \begin_layout Standard
17096 I'm going to say this again, nice and clear, so that there's no misunderstanding
17097 :
17098 \end_layout
17099
17100 \begin_layout Standard
17101 \begin_inset VSpace bigskip
17102 \end_inset
17103
17104
17105 \end_layout
17106
17107 \begin_layout Standard
17108 \align center
17109
17110 \size large
17111 This section documents the class 
17112 \begin_inset Quotes eld
17113 \end_inset
17114
17115
17116 \family sans
17117 slides (default)
17118 \family default
17119
17120 \begin_inset Quotes erd
17121 \end_inset
17122
17123  
17124 \emph on
17125 only.
17126 \end_layout
17127
17128 \begin_layout Standard
17129 \begin_inset VSpace bigskip
17130 \end_inset
17131
17132
17133 \end_layout
17134
17135 \begin_layout Standard
17136 If you're looking for the documentation for 
17137 \begin_inset Quotes eld
17138 \end_inset
17139
17140
17141 \family sans
17142 slides (Foil\SpecialChar TeX
17143 )
17144 \family default
17145
17146 \begin_inset Quotes erd
17147 \end_inset
17148
17149 , check out section
17150 \begin_inset space ~
17151 \end_inset
17152
17153
17154 \begin_inset CommandInset ref
17155 LatexCommand ref
17156 reference "sec:foiltex"
17157
17158 \end_inset
17159
17160 .
17161  The 
17162 \family sans
17163 foils
17164 \family default
17165  class [
17166 \begin_inset Quotes eld
17167 \end_inset
17168
17169
17170 \family sans
17171 slides (Foil\SpecialChar TeX
17172 )
17173 \family default
17174
17175 \begin_inset Quotes erd
17176 \end_inset
17177
17178 ] is actually somewhat better than the default 
17179 \family sans
17180 slides
17181 \family default
17182  class,
17183 \begin_inset Foot
17184 status collapsed
17185
17186 \begin_layout Plain Layout
17187 \SpecialChar ldots
17188 or so I've been told repeatedly by its advocates.
17189  Having never used it, I have no idea if this claim is true or not.
17190 \end_layout
17191
17192 \end_inset
17193
17194  which this section documents.
17195 \end_layout
17196
17197 \begin_layout Standard
17198 This class is the \SpecialChar LaTeX2e
17199  improvement of the old 
17200 \noun on
17201 Sli\SpecialChar TeX
17202
17203 \noun default
17204  package.
17205  Every \SpecialChar LaTeX2e
17206  distribution includes this class [which I'll just refer to as 
17207 \begin_inset Quotes eld
17208 \end_inset
17209
17210
17211 \family sans
17212 slides
17213 \family default
17214
17215 \begin_inset Quotes erd
17216 \end_inset
17217
17218  from now on], so you're bound to have it.
17219  As I noted earlier, there are other classes, such as 
17220 \family sans
17221 foils
17222 \family default
17223 , which also produce slides for overhead projectors and do a better job
17224  at it.
17225  However, there are some things which 
17226 \family sans
17227 slides
17228 \family default
17229  can do which the others can't, such as generate overlays.
17230  Read on to learn more!
17231 \end_layout
17232
17233 \begin_layout Subsection
17234 Getting Started
17235 \begin_inset CommandInset label
17236 LatexCommand label
17237 name "sec:slidesetup"
17238
17239 \end_inset
17240
17241
17242 \end_layout
17243
17244 \begin_layout Standard
17245 Obviously, to use this document class, you need to select 
17246 \begin_inset Quotes eld
17247 \end_inset
17248
17249
17250 \family sans
17251 slides (default)
17252 \family default
17253
17254 \begin_inset Quotes erd
17255 \end_inset
17256
17257  from the class list in the 
17258 \family sans
17259 Document\SpecialChar menuseparator
17260 Settings
17261 \family default
17262  dialog.
17263  There are some other special things you should know about this class:
17264 \end_layout
17265
17266 \begin_layout Itemize
17267 Don't bother changing the options 
17268 \family sans
17269 Sides and Columns
17270 \family default
17271 .
17272  They're not supported by the 
17273 \family sans
17274 slides
17275 \family default
17276  class, anyways.
17277 \end_layout
17278
17279 \begin_layout Itemize
17280 The option 
17281 \family sans
17282 Page
17283 \begin_inset space ~
17284 \end_inset
17285
17286 style
17287 \family default
17288  behaves a bit differently for this class.
17289  The possible choices and what they do are as follows:
17290 \end_layout
17291
17292 \begin_deeper
17293 \begin_layout Description
17294
17295 \family sans
17296 plain
17297 \family default
17298  The final output contains page numbers in the lower right corner.
17299 \end_layout
17300
17301 \begin_layout Description
17302
17303 \family sans
17304 headings
17305 \family default
17306  Like 
17307 \family sans
17308 plain
17309 \family default
17310 , but also prints out any time markers you've put in.
17311  This is the default.
17312 \end_layout
17313
17314 \begin_layout Description
17315
17316 \family sans
17317 empty
17318 \family default
17319  The final output contains no page numbers, time markers, or alignment markers.
17320 \end_layout
17321
17322 \end_deeper
17323 \begin_layout Itemize
17324 The 
17325 \family sans
17326 slides
17327 \family default
17328  class has an extra option: 
17329 \family typewriter
17330 clock
17331 \family default
17332 .
17333  To use it, put 
17334 \begin_inset Quotes eld
17335 \end_inset
17336
17337
17338 \family typewriter
17339 clock
17340 \family default
17341
17342 \begin_inset Quotes erd
17343 \end_inset
17344
17345  in the extra class options.
17346 \end_layout
17347
17348 \begin_deeper
17349 \begin_layout Standard
17350 Using this options allows you to add time markers to 
17351 \family sans
17352 Note
17353 \family default
17354 s.
17355  See section
17356 \begin_inset space ~
17357 \end_inset
17358
17359
17360 \begin_inset CommandInset ref
17361 LatexCommand ref
17362 reference "sec:slideNote"
17363
17364 \end_inset
17365
17366  for more details.
17367 \end_layout
17368
17369 \end_deeper
17370 \begin_layout Standard
17371 You can also use the template file 
17372 \begin_inset Quotes eld
17373 \end_inset
17374
17375
17376 \family typewriter
17377 slides.lyx
17378 \family default
17379
17380 \begin_inset Quotes erd
17381 \end_inset
17382
17383  to automatically set up a document to use the 
17384 \family sans
17385 slides
17386 \family default
17387  class [using 
17388 \family sans
17389 File\SpecialChar menuseparator
17390 New
17391 \begin_inset space ~
17392 \end_inset
17393
17394 from
17395 \begin_inset space ~
17396 \end_inset
17397
17398 Template
17399 \family default
17400  to open your new document].
17401  The template file also contains some examples of the special paragraph
17402  environments used by this class.
17403  I'll describe those next.
17404 \end_layout
17405
17406 \begin_layout Subsection
17407 Paragraph Environments
17408 \end_layout
17409
17410 \begin_layout Subsubsection
17411 Supported Environments
17412 \end_layout
17413
17414 \begin_layout Standard
17415 The first thing you'll notice when you start up a new 
17416 \family sans
17417 slides
17418 \family default
17419  document is the font size and type: it's the equivalent of the size 
17420 \begin_inset Quotes eld
17421 \end_inset
17422
17423
17424 \family sans
17425 Largest
17426 \family default
17427
17428 \begin_inset Quotes erd
17429 \end_inset
17430
17431  in the 
17432 \family sans
17433 Sans
17434 \begin_inset space ~
17435 \end_inset
17436
17437 Serif
17438 \family default
17439  font.
17440  This is also what's used in the output.
17441  Think of this as a 
17442 \begin_inset Quotes eld
17443 \end_inset
17444
17445 visual cue
17446 \begin_inset Quotes erd
17447 \end_inset
17448
17449  to remind you that this is a slide.
17450  Your final slides will use a larger font; ergo, you'll have less space.
17451  Of course, the larger default screen font isn't WYSIWYG, only a reminder.
17452 \end_layout
17453
17454 \begin_layout Standard
17455 The next thing that becomes obvious is the changes to the paragraph environment
17456  pull-down box [at the far-left end of the toolbar].
17457  Most of the paragraph environments you're used to seeing are missing.
17458  There are also five new ones.
17459  That's because the 
17460 \family sans
17461 slides
17462 \family default
17463  class itself only supports certain paragraph environments:
17464 \end_layout
17465
17466 \begin_layout Itemize
17467
17468 \family sans
17469 Standard
17470 \end_layout
17471
17472 \begin_layout Itemize
17473
17474 \family sans
17475 Itemize
17476 \end_layout
17477
17478 \begin_layout Itemize
17479
17480 \family sans
17481 Enumerate
17482 \end_layout
17483
17484 \begin_layout Itemize
17485
17486 \family sans
17487 Description
17488 \end_layout
17489
17490 \begin_layout Itemize
17491
17492 \family sans
17493 List
17494 \end_layout
17495
17496 \begin_layout Itemize
17497
17498 \family sans
17499 Quotation
17500 \end_layout
17501
17502 \begin_layout Itemize
17503
17504 \family sans
17505 Quote
17506 \end_layout
17507
17508 \begin_layout Itemize
17509
17510 \family sans
17511 Verse
17512 \end_layout
17513
17514 \begin_layout Itemize
17515
17516 \family sans
17517 Caption
17518 \end_layout
17519
17520 \begin_layout Itemize
17521
17522 \family sans
17523 \SpecialChar LyX
17524 -Code
17525 \end_layout
17526
17527 \begin_layout Standard
17528 All of the other standard environments, including the section-heading environmen
17529 ts, aren't used in the 
17530 \family sans
17531 slides
17532 \family default
17533  class.
17534 \end_layout
17535
17536 \begin_layout Standard
17537 On the other hand, you'll notice the following new environments:
17538 \end_layout
17539
17540 \begin_layout Itemize
17541
17542 \family sans
17543 Slide
17544 \end_layout
17545
17546 \begin_layout Itemize
17547
17548 \family sans
17549 Overlay
17550 \end_layout
17551
17552 \begin_layout Itemize
17553
17554 \family sans
17555 Note
17556 \end_layout
17557
17558 \begin_layout Itemize
17559
17560 \family sans
17561 InvisibleText
17562 \end_layout
17563
17564 \begin_layout Itemize
17565
17566 \family sans
17567 VisibleText
17568 \end_layout
17569
17570 \begin_layout Standard
17571 These five are kind of quirky, due to a 
17572 \begin_inset Quotes eld
17573 \end_inset
17574
17575 feature
17576 \begin_inset Quotes erd
17577 \end_inset
17578
17579  in \SpecialChar LyX
17580 .
17581  You see, \SpecialChar LyX
17582  doesn't permit you to nest any other paragraph environment into
17583  an empty environment.
17584  Now, that's fine and dandy, but it means that you wouldn't be able to start
17585  a slide with anything except plain text.
17586  To deal with this, I've performed a little 
17587 \begin_inset Quotes eld
17588 \end_inset
17589
17590 \SpecialChar LaTeX
17591  magic.
17592 \begin_inset Quotes erd
17593 \end_inset
17594
17595  
17596 \end_layout
17597
17598 \begin_layout Subsubsection
17599 Quirks of the New Environments
17600 \begin_inset CommandInset label
17601 LatexCommand label
17602 name "sec:slideQuirk"
17603
17604 \end_inset
17605
17606
17607 \end_layout
17608
17609 \begin_layout Standard
17610 All five of the new paragraph environments are somewhat quirky due to inherent
17611  limitiations in the current version of \SpecialChar LyX
17612 .
17613  As I just mentioned, \SpecialChar LyX
17614  forbids environments that begin with another environment.
17615  To get around this, the 
17616 \family sans
17617 Slide
17618 \family default
17619  environment isn't a paragraph environment as described in the 
17620 \emph on
17621 User's Guide
17622 \emph default
17623 .
17624  
17625 \end_layout
17626
17627 \begin_layout Standard
17628 You should consider 
17629 \family sans
17630 Slide
17631 \family default
17632
17633 \family sans
17634 Overlay
17635 \family default
17636 , and 
17637 \family sans
17638 Note
17639 \family default
17640  to be 
17641 \begin_inset Quotes eld
17642 \end_inset
17643
17644 pseudo-environments.
17645 \begin_inset Quotes erd
17646 \end_inset
17647
17648  They look like a section heading or a 
17649 \begin_inset Quotes eld
17650 \end_inset
17651
17652
17653 \family sans
17654 Caption
17655 \family default
17656 ,
17657 \begin_inset Quotes erd
17658 \end_inset
17659
17660  but really begin a [and, if necessary, end the previous] paragraph environment.
17661  Likewise, treat 
17662 \family sans
17663 InvisibleText
17664 \family default
17665  and 
17666 \family sans
17667 VisibleText
17668 \family default
17669  as 
17670 \begin_inset Quotes eld
17671 \end_inset
17672
17673 pseudo-commands.
17674 \begin_inset Quotes erd
17675 \end_inset
17676
17677  These two perform some action.
17678 \end_layout
17679
17680 \begin_layout Standard
17681 A common feature of all five environments, 
17682 \family sans
17683 Slide
17684 \family default
17685
17686 \family sans
17687 Overlay
17688 \family default
17689
17690 \family sans
17691 Note
17692 \family default
17693
17694 \family sans
17695 InvisibleText
17696 \family default
17697  and 
17698 \family sans
17699 VisibleText
17700 \family default
17701 , is a rather long-ish label.
17702  The text following this label — ordinarily the contents of the paragraph
17703  environment — is utterly irrelevant for 
17704 \family sans
17705 Slide
17706 \family default
17707
17708 \family sans
17709 Overlay
17710 \family default
17711
17712 \family sans
17713 Note
17714 \family default
17715
17716 \family sans
17717 InvisibleText
17718 \family default
17719  and 
17720 \family sans
17721 VisibleText
17722 \family default
17723 .
17724  \SpecialChar LyX
17725  completely ignores it.
17726  In fact, you can leave these five environments completely empty.
17727  
17728 \end_layout
17729
17730 \begin_layout Standard
17731 While you don't 
17732 \emph on
17733 have
17734 \emph default
17735  to put any text after the rather long-ish label, you might want to.
17736  This could be a short description of the contents of the 
17737 \family sans
17738 Slide
17739 \family default
17740 , for example.
17741  In that case, enter your descriptive comment and hit 
17742 \family sans
17743 Return
17744 \family default
17745  as you normally would.
17746 \end_layout
17747
17748 \begin_layout Standard
17749 If, on the other hand, you don't want to enter any descriptive text, you'll
17750  hit another \SpecialChar LyX
17751  quirk.
17752  \SpecialChar LyX
17753 , like nature, abhors a vacuum, and will not let you start a new paragraph
17754  environment until you put something in the old one.
17755  So, do this:
17756 \end_layout
17757
17758 \begin_layout Itemize
17759 Start entering the text that will 
17760 \emph on
17761 follow
17762 \emph default
17763  the new 
17764 \family sans
17765 Slide
17766 \family default
17767
17768 \family sans
17769 Overlay
17770 \family default
17771
17772 \family sans
17773 Note
17774 \family default
17775
17776 \family sans
17777 InvisibleText
17778 \family default
17779  or 
17780 \family sans
17781 VisibleText
17782 \family default
17783 .
17784  
17785 \end_layout
17786
17787 \begin_layout Itemize
17788 Now move to the beginning of that paragraph.
17789  
17790 \end_layout
17791
17792 \begin_layout Itemize
17793 Next, hit 
17794 \family sans
17795 Return
17796 \family default
17797 .
17798  
17799 \end_layout
17800
17801 \begin_layout Itemize
17802 Finally, change this new, empty paragraph to a 
17803 \family sans
17804 Slide
17805 \family default
17806
17807 \family sans
17808 Overlay
17809 \family default
17810
17811 \family sans
17812 Note
17813 \family default
17814
17815 \family sans
17816 InvisibleText
17817 \family default
17818  or 
17819 \family sans
17820 VisibleText
17821 \family default
17822 .
17823  
17824 \end_layout
17825
17826 \begin_layout Standard
17827 Some future version of \SpecialChar LyX
17828  will, hopefully, resolve this quirkiness\SpecialChar ldots
17829
17830 \end_layout
17831
17832 \begin_layout Subsection
17833 Making a Presentation with 
17834 \family sans
17835 Slide
17836 \family default
17837
17838 \family sans
17839 Overlay
17840 \family default
17841  and 
17842 \family sans
17843 Note
17844 \end_layout
17845
17846 \begin_layout Subsubsection
17847 Using the 
17848 \family sans
17849 Slide
17850 \family default
17851  Environment
17852 \end_layout
17853
17854 \begin_layout Standard
17855 If you're expecting this section to teach you how to actually make a presentatio
17856 n, you'll be sorely disappointed.
17857  Naturally, I'll describe all of the ways the 
17858 \family sans
17859 slides
17860 \family default
17861  class can assist you in preparing the materials for a presentation.
17862  Filling in the contents, however, is up to you.
17863  [Then again, that 
17864 \emph on
17865 is
17866 \emph default
17867  the \SpecialChar LyX
17868  philosophy.]
17869 \end_layout
17870
17871 \begin_layout Standard
17872 Choosing the 
17873 \family sans
17874 Slide
17875 \family default
17876  environment [in the manner described in section
17877 \begin_inset space ~
17878 \end_inset
17879
17880
17881 \begin_inset CommandInset ref
17882 LatexCommand ref
17883 reference "sec:slideQuirk"
17884
17885 \end_inset
17886
17887 ] tells \SpecialChar LyX
17888  to begin a new slide [duh].
17889  The label for this environment/
17890 \begin_inset Quotes erd
17891 \end_inset
17892
17893 pseudo-command
17894 \begin_inset Quotes erd
17895 \end_inset
17896
17897  is an 
17898 \begin_inset Quotes eld
17899 \end_inset
17900
17901 ASCII line,
17902 \begin_inset Quotes erd
17903 \end_inset
17904
17905  in cool blue, followed by the label, 
17906 \begin_inset Quotes eld
17907 \end_inset
17908
17909 NewSlide:
17910 \begin_inset Quotes erd
17911 \end_inset
17912
17913 .
17914  Any text or paragraph environments that follow this one go on the new slide.
17915  It's that simple.
17916 \end_layout
17917
17918 \begin_layout Standard
17919 Slides are probably the only time you'll need to forcibly end pages in \SpecialChar LyX
17920
17921  (this can be specified in the 
17922 \family sans
17923 Paragraph Layout
17924 \family default
17925  dialog).
17926  In fact, you'll want to, once you finish entering the contents of one slide.
17927  If you've entered more text than can physically fit on a slide, the extra
17928  overflows onto a new slide.
17929  I don't recommend doing this, however, since the overflow slide won't have
17930  any page number on it.
17931  Furthermore, it may interfere with any 
17932 \family sans
17933 Overlay
17934 \family default
17935  you've made to accompany the oversized 
17936 \family sans
17937 Slide
17938 \family default
17939 .
17940 \end_layout
17941
17942 \begin_layout Standard
17943 The 
17944 \family sans
17945 Overlay
17946 \family default
17947  and 
17948 \family sans
17949 Note
17950 \family default
17951  environments work the same way as the 
17952 \family sans
17953 Slide
17954 \family default
17955  environment.
17956  They both create an 
17957 \begin_inset Quotes eld
17958 \end_inset
17959
17960 ASCII line
17961 \begin_inset Quotes erd
17962 \end_inset
17963
17964  followed by a label [
17965 \begin_inset Quotes eld
17966 \end_inset
17967
17968 NewOverlay:
17969 \begin_inset Quotes erd
17970 \end_inset
17971
17972  and 
17973 \begin_inset Quotes eld
17974 \end_inset
17975
17976 NewNote:
17977 \begin_inset Quotes erd
17978 \end_inset
17979
17980 , respectively].
17981  The color is a stunning magenta instead of blue, and the 
17982 \begin_inset Quotes eld
17983 \end_inset
17984
17985 ASCII line
17986 \begin_inset Quotes erd
17987 \end_inset
17988
17989  will look different, in style and in length.
17990  The label fonts of all three also differ from one another.
17991 \end_layout
17992
17993 \begin_layout Standard
17994 As with a 
17995 \family sans
17996 Slide
17997 \family default
17998 , if the contents of a 
17999 \family sans
18000 Note
18001 \family default
18002  or 
18003 \family sans
18004 Overlay
18005 \family default
18006  exceed the physical size of a slide or sheet of paper, the extra will overflow
18007  onto a new sheet.
18008  Again, you should avoid this.
18009  It defeats the whole purpose of 
18010 \family sans
18011 Note
18012 \family default
18013 s and 
18014 \family sans
18015 Overlay
18016 \family default
18017 s.
18018 \end_layout
18019
18020 \begin_layout Subsubsection
18021 Using 
18022 \family sans
18023 Overlay
18024 \family default
18025  with 
18026 \family sans
18027 Slide
18028 \end_layout
18029
18030 \begin_layout Standard
18031 The idea behind an 
18032 \family sans
18033 Overlay
18034 \family default
18035  is a slide that sits atop another slide.
18036  Perhaps you wish to discuss a figure on the main 
18037 \family sans
18038 Slide
18039 \family default
18040  before displaying the text associated with it.
18041  One way to accomplish this is tape a flap of dark paper over the part of
18042  the 
18043 \family sans
18044 Slide
18045 \family default
18046  you want to display later.
18047  This method fails, however, if you wish to overlap one graph with another,
18048  for example.
18049  You would then have to fumble while speaking to align the two separate,
18050  overlapping 
18051 \family sans
18052 Slide
18053 \family default
18054 s to align the two graphs.
18055  The use of an 
18056 \family sans
18057 Overlay
18058 \family default
18059  environment in both cases makes life much easier.
18060 \end_layout
18061
18062 \begin_layout Standard
18063 Each 
18064 \family sans
18065 Overlay
18066 \family default
18067  receives the page number of its 
18068 \begin_inset Quotes eld
18069 \end_inset
18070
18071 parent
18072 \begin_inset Quotes erd
18073 \end_inset
18074
18075  
18076 \family sans
18077 Slide
18078 \family default
18079 , appended by 
18080 \begin_inset Quotes eld
18081 \end_inset
18082
18083
18084 \family typewriter
18085 -a
18086 \family default
18087
18088 \begin_inset Quotes erd
18089 \end_inset
18090
18091 .
18092 \begin_inset Foot
18093 status collapsed
18094
18095 \begin_layout Plain Layout
18096 Presumably, mutliple 
18097 \family sans
18098 Overlay
18099 \family default
18100 s would have 
18101 \begin_inset Quotes eld
18102 \end_inset
18103
18104
18105 \family typewriter
18106 -a
18107 \family default
18108
18109 \begin_inset Quotes erd
18110 \end_inset
18111
18112
18113 \begin_inset Quotes eld
18114 \end_inset
18115
18116
18117 \family typewriter
18118 -b
18119 \family default
18120
18121 \begin_inset Quotes erd
18122 \end_inset
18123
18124
18125 \begin_inset Quotes eld
18126 \end_inset
18127
18128
18129 \family typewriter
18130 -c
18131 \family default
18132
18133 \begin_inset Quotes erd
18134 \end_inset
18135
18136 , etc.
18137 \begin_inset space ~
18138 \end_inset
18139
18140 appended to the page number of the parent 
18141 \family sans
18142 Slide
18143 \family default
18144 .
18145  
18146 \end_layout
18147
18148 \end_inset
18149
18150  Clearly, you want the contents of both the 
18151 \family sans
18152 Slide
18153 \family default
18154  and the 
18155 \family sans
18156 Overlay
18157 \family default
18158  to each fit on a single physical slide! You should probably consider an
18159  
18160 \family sans
18161 Overlay
18162 \family default
18163  as 
18164 \begin_inset Quotes eld
18165 \end_inset
18166
18167 part of
18168 \begin_inset Quotes erd
18169 \end_inset
18170
18171  a 
18172 \family sans
18173 Slide
18174 \family default
18175 .
18176  Indeed, the \SpecialChar LyX
18177  
18178 \family sans
18179 slides
18180 \family default
18181  class provides a visual cue for this: the label at the start of an 
18182 \family sans
18183 Overlay
18184 \family default
18185  is shorter than that at the start of a 
18186 \family sans
18187 Slide
18188 \family default
18189 .
18190  Lastly, when you generate printable output, you'll find alignment markers
18191  in all four corners of both the 
18192 \family sans
18193 Overlay
18194 \family default
18195  page and its parent 
18196 \family sans
18197 Slide
18198 \family default
18199 .
18200  These will assist you in lining up the two physical slides.
18201 \end_layout
18202
18203 \begin_layout Standard
18204 The major problem in overlaying two slides is aligning the contents of the
18205  two transparencies.
18206  How much space should you leave for that graph on the second slide? Worse
18207  still, what if you want a graph and a sentence on second slide, but there
18208  is text on the main transparency that goes in between them? You could try
18209  and insert vertical space of the right size.
18210  The better way is to use 
18211 \family sans
18212 InvisibleText
18213 \family default
18214  and 
18215 \family sans
18216 VisibleText
18217 \family default
18218 .
18219 \end_layout
18220
18221 \begin_layout Standard
18222 As their names imply, 
18223 \family sans
18224 InvisibleText
18225 \family default
18226  and 
18227 \family sans
18228 VisibleText
18229 \family default
18230  are two command-like paragraph environments that make all subsequent text
18231  invisible and visible, respectively.
18232  Note from section
18233 \begin_inset space ~
18234 \end_inset
18235
18236
18237 \begin_inset CommandInset ref
18238 LatexCommand ref
18239 reference "sec:slideQuirk"
18240
18241 \end_inset
18242
18243  that you don't place anything 
18244 \emph on
18245 into
18246 \emph default
18247  these two environments, however.
18248  When you create an 
18249 \family sans
18250 InvisibleText
18251 \family default
18252 , it inserts a centered, sky-blue label into the page reading 
18253 \begin_inset Quotes eld
18254 \end_inset
18255
18256 <Invisible Text Follows>
18257 \begin_inset Quotes erd
18258 \end_inset
18259
18260 .
18261  For paragraphs following this label, the parts of the 
18262 \family sans
18263 Slide
18264 \family default
18265  [or 
18266 \family sans
18267 Overlay
18268 \family default
18269 ; it doesn't matter which] where they would be contain instead blank space.
18270  
18271 \end_layout
18272
18273 \begin_layout Standard
18274 For 
18275 \family sans
18276 VisibleText
18277 \family default
18278 , the corresponding centered label is 
18279 \begin_inset Quotes eld
18280 \end_inset
18281
18282 <Visible Text Follows>
18283 \begin_inset Quotes erd
18284 \end_inset
18285
18286  in blazing green.
18287  Paragraphs following this label behave normally.
18288  Note that the beginning of a new 
18289 \family sans
18290 Slide
18291 \family default
18292
18293 \family sans
18294 Overlay
18295 \family default
18296 , or 
18297 \family sans
18298 Note
18299 \family default
18300  automatically shuts off an 
18301 \family sans
18302 InvisibleText
18303 \family default
18304 .
18305  It's therefore not necessary to use 
18306 \family sans
18307 VisibleText
18308 \family default
18309  at the end of a 
18310 \family sans
18311 Slide
18312 \family default
18313 .
18314 \end_layout
18315
18316 \begin_layout Standard
18317 By now, it should be obvious how to create overlay transparencies using
18318  the proper combination of 
18319 \family sans
18320 InvisibleText
18321 \family default
18322  and 
18323 \family sans
18324 VisibleText
18325 \family default
18326  on a 
18327 \family sans
18328 Slide
18329 \family default
18330  and 
18331 \family sans
18332 Overlay
18333 \family default
18334 :
18335 \end_layout
18336
18337 \begin_layout Enumerate
18338 Create a 
18339 \family sans
18340 Slide
18341 \family default
18342 , including everything that will appear on it, whether on the main slide
18343  or on the 
18344 \family sans
18345 Overlay
18346 \family default
18347 .
18348 \end_layout
18349
18350 \begin_layout Enumerate
18351 Before each figure or paragraph that will appear only on the 
18352 \family sans
18353 Overlay
18354 \family default
18355 , insert an 
18356 \family sans
18357 InvisibleText
18358 \family default
18359  environment.
18360  If necessary, insert a 
18361 \family sans
18362 VisibleText
18363 \family default
18364  environment after the 
18365 \family sans
18366 Overlay
18367 \family default
18368 -only text.
18369 \end_layout
18370
18371 \begin_layout Enumerate
18372 Start an 
18373 \family sans
18374 Overlay
18375 \family default
18376  immediately following the 
18377 \family sans
18378 Slide
18379 \family default
18380 .
18381 \end_layout
18382
18383 \begin_layout Enumerate
18384 Copy the contents of this 
18385 \family sans
18386 Slide
18387 \family default
18388  into the 
18389 \family sans
18390 Overlay
18391 \family default
18392 .
18393 \end_layout
18394
18395 \begin_layout Enumerate
18396 Within the 
18397 \family sans
18398 Overlay
18399 \family default
18400 , change all of the 
18401 \family sans
18402 InvisibleText
18403 \family default
18404  lines to 
18405 \family sans
18406 VisibleText
18407 \family default
18408  and vice-versa.
18409 \end_layout
18410
18411 \begin_layout Standard
18412 That's it.
18413  You've just made an 
18414 \family sans
18415 Overlay
18416 \family default
18417 .
18418 \end_layout
18419
18420 \begin_layout Standard
18421 There's one problem with the way I've designed the \SpecialChar LyX
18422  
18423 \family sans
18424 slides
18425 \family default
18426  class: you can't make text in the middle of a paragraph invisible, nor
18427  make text in the middle of an invisible paragraph visible again.
18428  To accomplish this feat, you'll need to use some inlined \SpecialChar LaTeX
18429  codes.
18430 \begin_inset Foot
18431 status collapsed
18432
18433 \begin_layout Plain Layout
18434 The commands of interest are: 
18435 \end_layout
18436
18437 \begin_layout Itemize
18438
18439 \family typewriter
18440 {
18441 \backslash
18442 invisible \SpecialChar ldots
18443  }
18444 \end_layout
18445
18446 \begin_layout Itemize
18447
18448 \family typewriter
18449 {
18450 \backslash
18451 visible \SpecialChar ldots
18452  }
18453 \end_layout
18454
18455 \begin_layout Plain Layout
18456 \SpecialChar ldots
18457 and need to be marked as \SpecialChar TeX
18458 .
18459  The text whose 
18460 \begin_inset Quotes eld
18461 \end_inset
18462
18463 visibility
18464 \begin_inset Quotes erd
18465 \end_inset
18466
18467  you wish to change goes in between the brackets [and after the 
18468 \family typewriter
18469
18470 \backslash
18471 invisible
18472 \family default
18473  or 
18474 \family typewriter
18475
18476 \backslash
18477 visible
18478 \family default
18479  command].
18480  If you don't know how to mark text as \SpecialChar TeX
18481 , see the appropriate section of
18482  the 
18483 \emph on
18484 User's Guide
18485 \emph default
18486 .
18487 \end_layout
18488
18489 \end_inset
18490
18491
18492 \end_layout
18493
18494 \begin_layout Subsubsection
18495 Using 
18496 \family sans
18497 Note
18498 \family default
18499  with 
18500 \family sans
18501 Slide
18502 \family default
18503
18504 \begin_inset CommandInset label
18505 LatexCommand label
18506 name "sec:slideNote"
18507
18508 \end_inset
18509
18510
18511 \end_layout
18512
18513 \begin_layout Standard
18514 Like an 
18515 \family sans
18516 Overlay
18517 \family default
18518 , a 
18519 \family sans
18520 Note
18521 \family default
18522  is associated with a 
18523 \begin_inset Quotes eld
18524 \end_inset
18525
18526 parent
18527 \begin_inset Quotes erd
18528 \end_inset
18529
18530  
18531 \family sans
18532 Slide
18533 \family default
18534 .
18535  Here, too, the \SpecialChar LyX
18536  
18537 \family sans
18538 slides
18539 \family default
18540  class provides visual cues.
18541  The label for a 
18542 \family sans
18543 Note
18544 \family default
18545  is shorter than that of a 
18546 \family sans
18547 Slide
18548 \family default
18549  [yet longer than that of an 
18550 \family sans
18551 Overlay
18552 \family default
18553 ] and, like the label of an 
18554 \family sans
18555 Overlay
18556 \family default
18557  is shockingly magenta.
18558  Additionally, the printed 
18559 \family sans
18560 Note
18561 \family default
18562  has the page number of its 
18563 \begin_inset Quotes eld
18564 \end_inset
18565
18566 parent
18567 \begin_inset Quotes erd
18568 \end_inset
18569
18570  
18571 \family sans
18572 Slide
18573 \family default
18574 , appended by 
18575 \begin_inset Quotes eld
18576 \end_inset
18577
18578
18579 \family typewriter
18580 -
18581 \family default
18582 1
18583 \begin_inset Quotes erd
18584 \end_inset
18585
18586
18587 \begin_inset Quotes eld
18588 \end_inset
18589
18590
18591 \family typewriter
18592 -
18593 \family default
18594 2
18595 \begin_inset Quotes erd
18596 \end_inset
18597
18598
18599 \begin_inset Quotes eld
18600 \end_inset
18601
18602
18603 \family typewriter
18604 -
18605 \family default
18606 3
18607 \begin_inset Quotes erd
18608 \end_inset
18609
18610 , etc.
18611  You can have multiple 
18612 \family sans
18613 Note
18614 \family default
18615 s associated with a single 
18616 \family sans
18617 Slide
18618 \family default
18619 , and, as with 
18620 \family sans
18621 Slide
18622 \family default
18623  and 
18624 \family sans
18625 Overlay
18626 \family default
18627 , you'll probably want to break up long 
18628 \family sans
18629 Note
18630 \family default
18631 s so that they fit on a single sheet of paper.
18632 \end_layout
18633
18634 \begin_layout Standard
18635 The purpose of a 
18636 \family sans
18637 Note
18638 \family default
18639  is obvious: it contains anything additional you might want to say about
18640  a 
18641 \family sans
18642 Slide
18643 \family default
18644 .
18645  It could also be used as a sheet of reminders for a particular 
18646 \family sans
18647 Slide
18648 \family default
18649 .
18650  In the case of the latter, you might want to make use of time markers.
18651  Currently, the \SpecialChar LyX
18652  
18653 \family sans
18654 slides
18655 \family default
18656  class has no 
18657 \begin_inset Quotes eld
18658 \end_inset
18659
18660 native
18661 \begin_inset Quotes erd
18662 \end_inset
18663
18664  support for time markers, a 
18665 \noun on
18666 Sli\SpecialChar TeX
18667
18668 \noun default
18669  feature.
18670  So, you'll have to resort to using the \SpecialChar LaTeX
18671  codes.
18672 \end_layout
18673
18674 \begin_layout Standard
18675 To use time markers, you'll need to specify the extra class option 
18676 \begin_inset Quotes eld
18677 \end_inset
18678
18679
18680 \family typewriter
18681 clock
18682 \family default
18683
18684 \begin_inset Quotes erd
18685 \end_inset
18686
18687  [see section
18688 \begin_inset space ~
18689 \end_inset
18690
18691
18692 \begin_inset CommandInset ref
18693 LatexCommand ref
18694 reference "sec:slidesetup"
18695
18696 \end_inset
18697
18698 ].
18699  This option turns on timing marks, which will appear in the lower-left-hand
18700  corner of every 
18701 \family sans
18702 Note
18703 \family default
18704  you generate.
18705  To set what appears in the time marker, you use the \SpecialChar LaTeX
18706  commands 
18707 \begin_inset Quotes eld
18708 \end_inset
18709
18710
18711 \family typewriter
18712
18713 \backslash
18714 settime{}
18715 \family default
18716
18717 \begin_inset Quotes erd
18718 \end_inset
18719
18720  and 
18721 \begin_inset Quotes eld
18722 \end_inset
18723
18724
18725 \family typewriter
18726
18727 \backslash
18728 addtime{}
18729 \family default
18730
18731 \begin_inset Quotes erd
18732 \end_inset
18733
18734 .
18735  The arguments of both commands are time measured in seconds.
18736  
18737 \begin_inset Quotes eld
18738 \end_inset
18739
18740
18741 \family typewriter
18742
18743 \backslash
18744 settime{}
18745 \family default
18746
18747 \begin_inset Quotes erd
18748 \end_inset
18749
18750  sets the time marker to a given time.
18751  
18752 \begin_inset Quotes eld
18753 \end_inset
18754
18755
18756 \family typewriter
18757
18758 \backslash
18759 addtime{}
18760 \family default
18761
18762 \begin_inset Quotes erd
18763 \end_inset
18764
18765  increments the time marker by the specified amount.
18766  Using time markers and 
18767 \family sans
18768 Note
18769 \family default
18770 s in this fashion, you can remind yourself how much time to spend on a particula
18771
18772 \family sans
18773 Slide
18774 \family default
18775 .
18776 \end_layout
18777
18778 \begin_layout Standard
18779 There's one last feature to describe.
18780  Clearly, you'd like to print out all of your 
18781 \family sans
18782 Slide
18783 \family default
18784 s and 
18785 \family sans
18786 Overlay
18787 \family default
18788 s on transparencies while printing all of your 
18789 \family sans
18790 Note
18791 \family default
18792 s on plain paper.
18793  However, a 
18794 \family sans
18795 Note
18796 \family default
18797  
18798 \emph on
18799 must
18800 \emph default
18801  follow the 
18802 \family sans
18803 Slide
18804 \family default
18805  with which it is associated.
18806  What's a person to do?
18807 \end_layout
18808
18809 \begin_layout Standard
18810 Luckily, there are two \SpecialChar LaTeX
18811  commands that allow you to select what to print
18812  out.
18813  Both must be placed into the preamble of your document.
18814  The command 
18815 \begin_inset Quotes eld
18816 \end_inset
18817
18818
18819 \family typewriter
18820
18821 \backslash
18822 onlyslides{
18823 \backslash
18824 slides}
18825 \family default
18826
18827 \begin_inset Quotes erd
18828 \end_inset
18829
18830  will cause the output to contain only the 
18831 \family sans
18832 Slide
18833 \family default
18834 s and 
18835 \family sans
18836 Overlay
18837 \family default
18838 s.
18839  Correspondingly, the command 
18840 \begin_inset Quotes eld
18841 \end_inset
18842
18843
18844 \family typewriter
18845
18846 \backslash
18847 onlynotes{
18848 \backslash
18849 notes}
18850 \family default
18851
18852 \begin_inset Quotes erd
18853 \end_inset
18854
18855  prevents the output of anything but 
18856 \family sans
18857 Note
18858 \family default
18859 s.
18860  I'd advise placing both commands in the preamble and initially comment
18861  both out.
18862  You can then preview your entire presentation as you write.
18863  When you're done writing, you can then uncomment one of the two to select
18864  what you want to print.
18865  I like to uncomment 
18866 \begin_inset Quotes eld
18867 \end_inset
18868
18869
18870 \family typewriter
18871
18872 \backslash
18873 onlyslides{
18874 \backslash
18875 slides}
18876 \family default
18877
18878 \begin_inset Quotes erd
18879 \end_inset
18880
18881  , print to a file with 
18882 \begin_inset Quotes eld
18883 \end_inset
18884
18885
18886 \family typewriter
18887 -slides
18888 \family default
18889
18890 \begin_inset Quotes erd
18891 \end_inset
18892
18893  in its name, comment it back out, then uncomment 
18894 \begin_inset Quotes eld
18895 \end_inset
18896
18897
18898 \family typewriter
18899
18900 \backslash
18901 onlynotes{
18902 \backslash
18903 notes}
18904 \family default
18905
18906 \begin_inset Quotes erd
18907 \end_inset
18908
18909  and print to a 
18910 \begin_inset Quotes eld
18911 \end_inset
18912
18913
18914 \family typewriter
18915 *-notes.ps
18916 \family default
18917
18918 \begin_inset Quotes erd
18919 \end_inset
18920
18921  file.
18922  I can then send either file to a printer, loading transparencies or plain
18923  paper as appropriate.
18924 \end_layout
18925
18926 \begin_layout Standard
18927 You can also provide other arguments to the 
18928 \begin_inset Quotes eld
18929 \end_inset
18930
18931
18932 \family typewriter
18933
18934 \backslash
18935 onlyslides{}
18936 \family default
18937
18938 \begin_inset Quotes erd
18939 \end_inset
18940
18941  and 
18942 \begin_inset Quotes eld
18943 \end_inset
18944
18945
18946 \family typewriter
18947
18948 \backslash
18949 onlynotes{}
18950 \family default
18951
18952 \begin_inset Quotes erd
18953 \end_inset
18954
18955  commands.
18956  See a good \SpecialChar LaTeX
18957  book for details.
18958 \end_layout
18959
18960 \begin_layout Subsection
18961 The 
18962 \family sans
18963 slides
18964 \family default
18965  Class Template File
18966 \end_layout
18967
18968 \begin_layout Standard
18969 I have also provided a template file, 
18970 \begin_inset Quotes eld
18971 \end_inset
18972
18973
18974 \family typewriter
18975 slides.lyx
18976 \family default
18977
18978 \begin_inset Quotes erd
18979 \end_inset
18980
18981 , with the 
18982 \family sans
18983 slides
18984 \family default
18985  class.
18986  To use it, begin your new presentation with 
18987 \family sans
18988 File\SpecialChar menuseparator
18989 New
18990 \begin_inset space ~
18991 \end_inset
18992
18993 from
18994 \begin_inset space ~
18995 \end_inset
18996
18997 Template
18998 \family default
18999 .
19000  Your new \SpecialChar LyX
19001  presentation file will contain an example 
19002 \family sans
19003 Slide
19004 \family default
19005  – 
19006 \family sans
19007 Overlay
19008 \family default
19009  – 
19010 \family sans
19011 Note
19012 \family default
19013  triplet.
19014  The 
19015 \family sans
19016 Slide
19017 \family default
19018  and 
19019 \family sans
19020 Overlay
19021 \family default
19022  additionally contain an example of the use of 
19023 \family sans
19024 InvisibleText
19025 \family default
19026  and 
19027 \family sans
19028 VisibleText
19029 \family default
19030 .
19031  Lastly, the preamble will contain:
19032 \end_layout
19033
19034 \begin_layout LyX-Code
19035 % Uncomment to print out only slides and overlays
19036 \end_layout
19037
19038 \begin_layout LyX-Code
19039 %
19040 \end_layout
19041
19042 \begin_layout LyX-Code
19043 %
19044 \backslash
19045 onlyslides{
19046 \backslash
19047 slides}
19048 \begin_inset Newline newline
19049 \end_inset
19050
19051  
19052 \end_layout
19053
19054 \begin_layout LyX-Code
19055 % Uncomment to print out only notes
19056 \end_layout
19057
19058 \begin_layout LyX-Code
19059 %
19060 \end_layout
19061
19062 \begin_layout LyX-Code
19063 %
19064 \backslash
19065 onlynotes{
19066 \backslash
19067 notes}
19068 \end_layout
19069
19070 \begin_layout Standard
19071 One final thing: I created this class to support the \SpecialChar LaTeX2e
19072  
19073 \begin_inset Quotes eld
19074 \end_inset
19075
19076
19077 \noun on
19078 Sli\SpecialChar TeX
19079
19080 \noun default
19081  emulation
19082 \begin_inset Quotes erd
19083 \end_inset
19084
19085  class, one of the built-in \SpecialChar LaTeX2e
19086  classes.
19087  Neither I nor the rest of the \SpecialChar LyX
19088  Team endorse or oppose the use of this built-in
19089  slide class.
19090  It's here if you want it or need it.
19091  There exist other \SpecialChar LaTeX2e
19092  classes for creating presentations, such as the 
19093 \family sans
19094 Foils
19095 \family default
19096  class [see section
19097 \begin_inset space ~
19098 \end_inset
19099
19100
19101 \begin_inset CommandInset ref
19102 LatexCommand ref
19103 reference "sec:foiltex"
19104
19105 \end_inset
19106
19107 ] or the 
19108 \begin_inset Quotes eld
19109 \end_inset
19110
19111
19112 \family typewriter
19113 seminar
19114 \family default
19115
19116 \begin_inset Quotes erd
19117 \end_inset
19118
19119  package [present on some \SpecialChar TeX
19120  distributions].
19121  The latter is not yet supported under \SpecialChar LyX
19122 .
19123 \begin_inset Foot
19124 status collapsed
19125
19126 \begin_layout Plain Layout
19127 Perhaps you can take on the task\SpecialChar ldots
19128
19129 \end_layout
19130
19131 \end_inset
19132
19133  I know nothing about these other classes.
19134  Try them out to see what sort of alternative they provide.
19135 \end_layout
19136
19137 \begin_layout Chapter
19138 \SpecialChar LyX
19139  Features needing Extra Software
19140 \end_layout
19141
19142 \begin_layout Section
19143 Checking \SpecialChar TeX
19144
19145 \end_layout
19146
19147 \begin_layout Standard
19148 by 
19149 \noun on
19150 Asger Alstrup
19151 \end_layout
19152
19153 \begin_layout Subsection
19154 Introduction
19155 \end_layout
19156
19157 \begin_layout Standard
19158 If you have the 
19159 \family typewriter
19160 chktex
19161 \family default
19162  program installed
19163 \begin_inset Foot
19164 status collapsed
19165
19166 \begin_layout Plain Layout
19167
19168 \family typewriter
19169 chktex
19170 \family default
19171  is not yet available when you are using the \SpecialChar LaTeX
19172  distribution MiK\SpecialChar TeX
19173 .
19174 \end_layout
19175
19176 \end_inset
19177
19178 , you'll find in the 
19179 \family sans
19180 Tools
19181 \family default
19182  menu the entry: 
19183 \family sans
19184 Check
19185 \begin_inset space ~
19186 \end_inset
19187
19188 TeX
19189 \family default
19190 .
19191  You can get 
19192 \family typewriter
19193 chktex
19194 \family default
19195  from CTAN,
19196 \begin_inset Newline newline
19197 \end_inset
19198
19199
19200 \begin_inset CommandInset href
19201 LatexCommand href
19202 target "https://www.ctan.org/tex-archive/help/Catalogue/entries/chktex.html"
19203 literal "false"
19204
19205 \end_inset
19206
19207 .
19208 \end_layout
19209
19210 \begin_layout Standard
19211 The 
19212 \family sans
19213 Chk\SpecialChar TeX
19214
19215 \family default
19216  package is a program that was written by 
19217 \begin_inset Flex Noun
19218 status collapsed
19219
19220 \begin_layout Plain Layout
19221 Jens T.
19222 \begin_inset space ~
19223 \end_inset
19224
19225 Berger Thielemann
19226 \end_layout
19227
19228 \end_inset
19229
19230  in frustration because some constructs in \SpecialChar LaTeX
19231  are sometimes non-intuitive,
19232  and easy to forget.
19233  The program runs over your \SpecialChar LaTeX
19234  file, checks the integrity of the file, and
19235  flags some common errors.
19236  In other technical words, it is 
19237 \family typewriter
19238 lint
19239 \family default
19240  for \SpecialChar LaTeX
19241 .
19242 \end_layout
19243
19244 \begin_layout Standard
19245 Well, what is a syntax checker doing in \SpecialChar LyX
19246  which is supposed to produce correct
19247  \SpecialChar LaTeX
19248  anyways? The answer is simple: Just as 
19249 \family typewriter
19250 Lint
19251 \family default
19252  not only checks the 
19253 \emph on
19254 syntax
19255 \emph default
19256  of C programs, but also does 
19257 \emph on
19258 semantic
19259 \emph default
19260  checks for type-errors, 
19261 \family sans
19262 Chk\SpecialChar TeX
19263
19264 \family default
19265  catches some common 
19266 \emph on
19267 typographic
19268 \emph default
19269  errors, in addition to the syntactical ones.
19270  Specifically, 
19271 \family sans
19272 Chk\SpecialChar TeX
19273
19274 \family default
19275  is capable of detecting several common errors, such as
19276 \end_layout
19277
19278 \begin_layout Itemize
19279 Ellipsis detection:
19280 \begin_inset Newline newline
19281 \end_inset
19282
19283 Use \SpecialChar ldots
19284  instead of ...
19285 \end_layout
19286
19287 \begin_layout Itemize
19288 No space in front of/after parenthesis:
19289 \begin_inset Newline newline
19290 \end_inset
19291
19292 ( wrong spacing )
19293 \end_layout
19294
19295 \begin_layout Itemize
19296 Enforcement of normal space after common abbreviations:
19297 \begin_inset Newline newline
19298 \end_inset
19299
19300 e.
19301 \begin_inset space \thinspace{}
19302 \end_inset
19303
19304 g.
19305 \begin_inset space \space{}
19306 \end_inset
19307
19308 is too wide spacing.
19309 \end_layout
19310
19311 \begin_layout Itemize
19312 Enforcement of end-of-sentence space when the last sentence ends with a
19313  capital letter:
19314 \begin_inset Newline newline
19315 \end_inset
19316
19317 This is a TEST.
19318  And this is wrong spacing.
19319 \end_layout
19320
19321 \begin_layout Itemize
19322 Space in front of labels and similar commands:
19323 \begin_inset Newline newline
19324 \end_inset
19325
19326 The label should stick right up to the text to avoid falling to a wrong
19327  page.
19328  
19329 \begin_inset CommandInset label
19330 LatexCommand label
19331 name "sec:chktex"
19332
19333 \end_inset
19334
19335  
19336 \begin_inset Foot
19337 status collapsed
19338
19339 \begin_layout Plain Layout
19340 This footnote is in danger of falling off to a wrong page
19341 \end_layout
19342
19343 \end_inset
19344
19345  The label is separated too much.
19346 \end_layout
19347
19348 \begin_layout Itemize
19349 Space in front of references, instead of hard spaces:
19350 \begin_inset Newline newline
19351 \end_inset
19352
19353 If you have bad luck, the text will break right between the referenced text
19354  and reference number, and that's a pity.
19355  See section 
19356 \begin_inset CommandInset ref
19357 LatexCommand ref
19358 reference "sec:chktex"
19359
19360 \end_inset
19361
19362 .
19363 \end_layout
19364
19365 \begin_layout Itemize
19366 Use of 
19367 \begin_inset Quotes eld
19368 \end_inset
19369
19370 x
19371 \begin_inset Quotes erd
19372 \end_inset
19373
19374  instead of 
19375 \begin_inset Formula $\times$
19376 \end_inset
19377
19378  between numbers:
19379 \begin_inset Newline newline
19380 \end_inset
19381
19382 2x2 looks cheap compared to 
19383 \begin_inset Formula $2\times2$
19384 \end_inset
19385
19386 .
19387 \end_layout
19388
19389 \begin_layout Standard
19390 and more \SpecialChar ldots
19391  It is an invaluable tool when you are 
19392 \begin_inset Quotes eld
19393 \end_inset
19394
19395 finishing up
19396 \begin_inset Quotes erd
19397 \end_inset
19398
19399  your document before printing, and you should run it right after the obligatory
19400  spelling check, and before you go fine tuning the typesetting.
19401 \end_layout
19402
19403 \begin_layout Subsection
19404 How to use it
19405 \end_layout
19406
19407 \begin_layout Standard
19408 If you have the program installed, usage is as simple as choosing 
19409 \family sans
19410 Tools\SpecialChar menuseparator
19411 Check
19412 \begin_inset space ~
19413 \end_inset
19414
19415 TeX
19416 \family default
19417 .
19418  This will make \SpecialChar LyX
19419  generate a \SpecialChar LaTeX
19420  file of your document, start 
19421 \family sans
19422 Chk\SpecialChar TeX
19423
19424 \family default
19425  to check it, and then make \SpecialChar LyX
19426  insert 
19427 \begin_inset Quotes eld
19428 \end_inset
19429
19430 error boxes
19431 \begin_inset Quotes erd
19432 \end_inset
19433
19434  with the warnings from 
19435 \family sans
19436 Chk\SpecialChar TeX
19437
19438 \family default
19439 , if there were any.
19440  The warnings will be placed close to the point of the mistake, and you
19441  can quickly find them by using the 
19442 \family sans
19443 Navigate\SpecialChar menuseparator
19444 Error
19445 \family default
19446  menu item, or the shortcut key 
19447 \family sans
19448 C-g
19449 \family default
19450  from the default 
19451 \family typewriter
19452 cua
19453 \family default
19454  bind file.
19455  Open the error boxes by clicking on them with the mouse, or use the shortcut
19456  key 
19457 \family sans
19458 C-i
19459 \family default
19460  from 
19461 \family typewriter
19462 cua
19463 \family default
19464  bindings, or the corresponding 
19465 \family sans
19466 C-o
19467 \family default
19468  for the alternate 
19469 \family typewriter
19470 emacs
19471 \family default
19472  bind file.
19473  Read the warning and correct the mistake, if it is a mistake.
19474  If you have trouble understanding what the warning is about, you can safely
19475  ignore it.
19476  Remember that there is a hidden layer between the document on screen and
19477  the technical details in invoking 
19478 \family sans
19479 Chk\SpecialChar TeX
19480
19481 \family default
19482 , and this gap can make some warnings seem arcane or just plain silly.
19483 \end_layout
19484
19485 \begin_layout Standard
19486 This document is an excellent testing bed for the feature, and it should
19487  provide quite a few warnings for you to fiddle with.
19488  Since computers are only so smart, expect most of the warnings to be false
19489  alarms, though.
19490 \end_layout
19491
19492 \begin_layout Subsection
19493 How to fine tune it
19494 \end_layout
19495
19496 \begin_layout Standard
19497 Sometimes, you'll find that 
19498 \family sans
19499 Chk\SpecialChar TeX
19500
19501 \family default
19502  makes more noise than suits your mood.
19503  Then you can choose not to use it, wait until your mood changes, or try
19504  to customize 
19505 \family sans
19506 Chk\SpecialChar TeX
19507
19508 \family default
19509  to get better along with you.
19510 \end_layout
19511
19512 \begin_layout Standard
19513 Although 
19514 \family sans
19515 Chk\SpecialChar TeX
19516
19517 \family default
19518  
19519 \emph on
19520 is
19521 \emph default
19522  very configurable and extensible, you should not expect to solve all problems
19523  with 
19524 \family sans
19525 Chk\SpecialChar TeX
19526
19527 \family default
19528  in \SpecialChar LyX
19529  this way.
19530  Since \SpecialChar LyX
19531  has to generate a somewhat special \SpecialChar LaTeX
19532  file to be able to match the
19533  line numbers from the 
19534 \family sans
19535 Chk\SpecialChar TeX
19536
19537 \family default
19538  output
19539 \begin_inset Foot
19540 status collapsed
19541
19542 \begin_layout Plain Layout
19543 You can inspect the specific output from 
19544 \family sans
19545 chktex
19546 \family default
19547  by using 
19548 \family sans
19549 Document\SpecialChar menuseparator
19550 \SpecialChar LaTeX
19551
19552 \begin_inset space ~
19553 \end_inset
19554
19555 Log
19556 \family default
19557  right after a 
19558 \family sans
19559 chktex
19560 \family default
19561  run.
19562 \end_layout
19563
19564 \end_inset
19565
19566  to the internal document structure, some of the warnings will not appear
19567  correctly.
19568  There are two things you can do about this:
19569 \end_layout
19570
19571 \begin_layout Itemize
19572 Fine tune the 
19573 \family sans
19574 Chk\SpecialChar TeX
19575
19576 \family default
19577  invocation command line in 
19578 \begin_inset Flex Noun
19579 status collapsed
19580
19581 \begin_layout Plain Layout
19582 Tools\SpecialChar menuseparator
19583 Preferences\SpecialChar menuseparator
19584 Output\SpecialChar menuseparator
19585 LaTeX\SpecialChar menuseparator
19586 CheckTeX command
19587 \end_layout
19588
19589 \end_inset
19590
19591 , or the global 
19592 \family sans
19593 Chk\SpecialChar TeX
19594
19595 \family default
19596  installation configuration file (usually with the file 
19597 \family typewriter
19598 chktexrc
19599 \family default
19600 ).
19601  See below to learn what warnings can be enabled and disabled on the command
19602  line.
19603 \end_layout
19604
19605 \begin_layout Itemize
19606 Export your document as a raw \SpecialChar LaTeX
19607  file using 
19608 \family sans
19609 File\SpecialChar menuseparator
19610 Export\SpecialChar menuseparator
19611 \SpecialChar LaTeX
19612
19613 \family default
19614  and run 
19615 \family typewriter
19616 chktex
19617 \family default
19618  manually on that.
19619  Invoked in this way, it can be a hassle to find the corresponding place
19620  in the document inside \SpecialChar LyX
19621 , but with a little patience, you should be able
19622  to do it.
19623 \end_layout
19624
19625 \begin_layout Standard
19626 Here follows the warning messages that can be enabled and disabled in 
19627 \family sans
19628 Preferences
19629 \family default
19630 .
19631  Use 
19632 \family typewriter
19633 -n#
19634 \family default
19635  to disable a warning, and 
19636 \family typewriter
19637 -w#
19638 \family default
19639  to enable a warning.
19640  The emphasized entries are disabled by default, because the default is
19641  "
19642 \family typewriter
19643 chktex -n1 -n3 -n6 -n9 -n22 -n25 -n30 -n38
19644 \family default
19645 ".
19646 \end_layout
19647
19648 \begin_layout Standard
19649 Notice that you should only use the options that enable and disable warnings,
19650  because \SpecialChar LyX
19651  relies on some of the other command line parameters to be set
19652  in a specific way to have a chance to communicate with 
19653 \family typewriter
19654 chktex
19655 \family default
19656 .
19657 \end_layout
19658
19659 \begin_layout Enumerate
19660
19661 \size small
19662 \emph on
19663 Command terminated with space.
19664 \end_layout
19665
19666 \begin_layout Enumerate
19667
19668 \size small
19669 Non-breaking space (
19670 \begin_inset Quotes eld
19671 \end_inset
19672
19673
19674 \family typewriter
19675 ~
19676 \family default
19677
19678 \begin_inset Quotes erd
19679 \end_inset
19680
19681 ) should have been used.
19682 \end_layout
19683
19684 \begin_layout Enumerate
19685
19686 \size small
19687 \emph on
19688 You should enclose the previous parenthesis with 
19689 \begin_inset Quotes eld
19690 \end_inset
19691
19692
19693 \family typewriter
19694 {}
19695 \family default
19696
19697 \begin_inset Quotes erd
19698 \end_inset
19699
19700 .
19701 \end_layout
19702
19703 \begin_layout Enumerate
19704
19705 \size small
19706 Italic correction (
19707 \begin_inset Quotes eld
19708 \end_inset
19709
19710
19711 \family typewriter
19712
19713 \backslash
19714 /
19715 \family default
19716
19717 \begin_inset Quotes erd
19718 \end_inset
19719
19720 ) found in non-italic buffer.
19721 \end_layout
19722
19723 \begin_layout Enumerate
19724
19725 \size small
19726 Italic correction (
19727 \begin_inset Quotes eld
19728 \end_inset
19729
19730
19731 \family typewriter
19732
19733 \backslash
19734 /
19735 \family default
19736
19737 \begin_inset Quotes erd
19738 \end_inset
19739
19740 ) found more than once.
19741 \end_layout
19742
19743 \begin_layout Enumerate
19744
19745 \size small
19746 \emph on
19747 No italic correction (
19748 \begin_inset Quotes eld
19749 \end_inset
19750
19751
19752 \family typewriter
19753
19754 \backslash
19755 /
19756 \family default
19757
19758 \begin_inset Quotes erd
19759 \end_inset
19760
19761 ) found.
19762 \end_layout
19763
19764 \begin_layout Enumerate
19765
19766 \size small
19767 Accent command 
19768 \begin_inset Quotes eld
19769 \end_inset
19770
19771
19772 \family typewriter
19773 cmd
19774 \family default
19775
19776 \begin_inset Quotes erd
19777 \end_inset
19778
19779  needs use of 
19780 \begin_inset Quotes eld
19781 \end_inset
19782
19783
19784 \family typewriter
19785 cmd
19786 \family default
19787
19788 \begin_inset Quotes erd
19789 \end_inset
19790
19791 .
19792 \end_layout
19793
19794 \begin_layout Enumerate
19795
19796 \size small
19797 Wrong length of dash may have been used.
19798 \end_layout
19799
19800 \begin_layout Enumerate
19801
19802 \size small
19803 \emph on
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  expected, found 
19816 \begin_inset Quotes eld
19817 \end_inset
19818
19819
19820 \family typewriter
19821 %s
19822 \family default
19823
19824 \begin_inset Quotes erd
19825 \end_inset
19826
19827 .
19828 \end_layout
19829
19830 \begin_layout Enumerate
19831
19832 \size small
19833 Solo 
19834 \begin_inset Quotes eld
19835 \end_inset
19836
19837
19838 \family typewriter
19839 %s
19840 \family default
19841
19842 \begin_inset Quotes erd
19843 \end_inset
19844
19845  found.
19846 \end_layout
19847
19848 \begin_layout Enumerate
19849
19850 \size small
19851 You should use 
19852 \begin_inset Quotes eld
19853 \end_inset
19854
19855
19856 \family typewriter
19857 %s
19858 \family default
19859
19860 \begin_inset Quotes erd
19861 \end_inset
19862
19863  to achieve an ellipsis.
19864 \end_layout
19865
19866 \begin_layout Enumerate
19867
19868 \size small
19869 Inter-word spacing (
19870 \begin_inset Quotes eld
19871 \end_inset
19872
19873
19874 \family typewriter
19875
19876 \backslash
19877
19878 \family default
19879  
19880 \begin_inset Quotes eld
19881 \end_inset
19882
19883 ) should perhaps be used.
19884 \end_layout
19885
19886 \begin_layout Enumerate
19887
19888 \size small
19889 Inter-sentence spacing (
19890 \begin_inset Quotes eld
19891 \end_inset
19892
19893
19894 \family typewriter
19895
19896 \backslash
19897 @
19898 \family default
19899
19900 \begin_inset Quotes erd
19901 \end_inset
19902
19903 ) should perhaps be used.
19904 \end_layout
19905
19906 \begin_layout Enumerate
19907
19908 \size small
19909 Could not find argument for command.
19910 \end_layout
19911
19912 \begin_layout Enumerate
19913
19914 \size small
19915 No match found for 
19916 \begin_inset Quotes eld
19917 \end_inset
19918
19919
19920 \family typewriter
19921 %s
19922 \family default
19923
19924 \begin_inset Quotes erd
19925 \end_inset
19926
19927 .
19928 \end_layout
19929
19930 \begin_layout Enumerate
19931
19932 \size small
19933 Math mode still on at end of \SpecialChar LaTeX
19934  file.
19935 \end_layout
19936
19937 \begin_layout Enumerate
19938
19939 \size small
19940 Number of 
19941 \begin_inset Quotes eld
19942 \end_inset
19943
19944
19945 \family typewriter
19946 char
19947 \family default
19948
19949 \begin_inset Quotes erd
19950 \end_inset
19951
19952  doesn't match the number of 
19953 \begin_inset Quotes eld
19954 \end_inset
19955
19956
19957 \family typewriter
19958 char
19959 \family default
19960
19961 \begin_inset Quotes erd
19962 \end_inset
19963
19964 .
19965 \end_layout
19966
19967 \begin_layout Enumerate
19968
19969 \size small
19970 You should use either 
19971 \family typewriter
19972
19973 \begin_inset Quotes eld
19974 \end_inset
19975
19976
19977 \family default
19978  or 
19979 \family typewriter
19980
19981 \begin_inset Quotes erd
19982 \end_inset
19983
19984
19985 \family default
19986  as an alternative to 
19987 \begin_inset Quotes eld
19988 \end_inset
19989
19990
19991 \family typewriter
19992 "
19993 \family default
19994
19995 \begin_inset Quotes erd
19996 \end_inset
19997
19998 .
19999 \end_layout
20000
20001 \begin_layout Enumerate
20002
20003 \size small
20004 You should use "
20005 \family typewriter
20006 '
20007 \family default
20008 " (ASCII 39) instead of "
20009 \family typewriter
20010 ´
20011 \family default
20012 " (ASCII 180).
20013 \end_layout
20014
20015 \begin_layout Enumerate
20016
20017 \size small
20018 User-specified pattern found.
20019 \end_layout
20020
20021 \begin_layout Enumerate
20022
20023 \size small
20024 This command might not be intended.
20025 \end_layout
20026
20027 \begin_layout Enumerate
20028
20029 \size small
20030 \emph on
20031 Comment displayed.
20032 \end_layout
20033
20034 \begin_layout Enumerate
20035
20036 \size small
20037 Either 
20038 \family typewriter
20039 ''
20040 \backslash
20041 ,'
20042 \family default
20043  or 
20044 \family typewriter
20045 '
20046 \backslash
20047 ,''
20048 \family default
20049  will look better.
20050 \end_layout
20051
20052 \begin_layout Enumerate
20053
20054 \size small
20055 Delete this space to maintain correct page references.
20056 \end_layout
20057
20058 \begin_layout Enumerate
20059
20060 \size small
20061 \emph on
20062 You might wish to put this between a pair of 
20063 \begin_inset Quotes eld
20064 \end_inset
20065
20066
20067 \family typewriter
20068 {}
20069 \family default
20070
20071 \begin_inset Quotes erd
20072 \end_inset
20073
20074 .
20075 \end_layout
20076
20077 \begin_layout Enumerate
20078
20079 \size small
20080 You ought to remove spaces in front of punctuation.
20081 \end_layout
20082
20083 \begin_layout Enumerate
20084
20085 \size small
20086 Could not execute \SpecialChar LaTeX
20087  command.
20088 \end_layout
20089
20090 \begin_layout Enumerate
20091
20092 \size small
20093 Don't use 
20094 \family typewriter
20095
20096 \backslash
20097 /
20098 \family default
20099  in front of small punctuation.
20100 \end_layout
20101
20102 \begin_layout Enumerate
20103
20104 \family typewriter
20105 \size small
20106 $
20107 \backslash
20108 times$
20109 \family default
20110  may look prettier here.
20111 \end_layout
20112
20113 \begin_layout Enumerate
20114
20115 \size small
20116 \emph on
20117 Multiple spaces detected in output.
20118 \end_layout
20119
20120 \begin_layout Enumerate
20121
20122 \size small
20123 This text may be ignored.
20124 \end_layout
20125
20126 \begin_layout Enumerate
20127
20128 \size small
20129 Use 
20130 \family typewriter
20131
20132 \begin_inset Quotes eld
20133 \end_inset
20134
20135
20136 \family default
20137  to begin quotation, not 
20138 \family typewriter
20139 '
20140 \family default
20141 .
20142 \end_layout
20143
20144 \begin_layout Enumerate
20145
20146 \size small
20147 Use 
20148 \family typewriter
20149 '
20150 \family default
20151  to end quotation, not 
20152 \family typewriter
20153
20154 \begin_inset Quotes eld
20155 \end_inset
20156
20157
20158 \family default
20159 .
20160 \end_layout
20161
20162 \begin_layout Enumerate
20163
20164 \size small
20165 Don't mix quotes.
20166 \end_layout
20167
20168 \begin_layout Enumerate
20169
20170 \size small
20171 You should perhaps use 
20172 \begin_inset Quotes eld
20173 \end_inset
20174
20175
20176 \family typewriter
20177 cmd
20178 \family default
20179
20180 \begin_inset Quotes erd
20181 \end_inset
20182
20183  instead.
20184 \end_layout
20185
20186 \begin_layout Enumerate
20187
20188 \size small
20189 You should put a space in front of/after parenthesis.
20190 \end_layout
20191
20192 \begin_layout Enumerate
20193
20194 \size small
20195 You should avoid spaces in front of/after parenthesis.
20196 \end_layout
20197
20198 \begin_layout Enumerate
20199
20200 \size small
20201 \emph on
20202 You should not use punctuation in front of/after quotes.
20203 \end_layout
20204
20205 \begin_layout Enumerate
20206
20207 \size small
20208 Double space found.
20209 \end_layout
20210
20211 \begin_layout Enumerate
20212
20213 \size small
20214 You should put punctuation outside inner/inside display math mode.
20215 \end_layout
20216
20217 \begin_layout Enumerate
20218
20219 \size small
20220 You ought to not use primitive \SpecialChar TeX
20221  in \SpecialChar LaTeX
20222  code.
20223 \end_layout
20224
20225 \begin_layout Enumerate
20226
20227 \size small
20228 You should remove spaces in front of 
20229 \begin_inset Quotes eld
20230 \end_inset
20231
20232
20233 \family typewriter
20234 %s
20235 \family default
20236
20237 \begin_inset Quotes erd
20238 \end_inset
20239
20240
20241 \end_layout
20242
20243 \begin_layout Enumerate
20244
20245 \size small
20246 \begin_inset Quotes eld
20247 \end_inset
20248
20249
20250 \family typewriter
20251 %s
20252 \family default
20253
20254 \begin_inset Quotes erd
20255 \end_inset
20256
20257  is normally not followed by 
20258 \begin_inset Quotes eld
20259 \end_inset
20260
20261
20262 \family typewriter
20263 %c
20264 \family default
20265
20266 \begin_inset Quotes erd
20267 \end_inset
20268
20269 .
20270 \end_layout
20271
20272 \begin_layout Standard
20273 In later versions of \SpecialChar LyX
20274 , we hope to provide a more complete interface to this
20275  tool (and it's smaller cousin 
20276 \family typewriter
20277 lacheck
20278 \family default
20279 ) to exploit the full power of it.
20280  But it's not exactly useless as it is now: go try it on one of your existing
20281  documents of a certain length and be surprised.
20282 \end_layout
20283
20284 \begin_layout Section
20285 Version Control in \SpecialChar LyX
20286
20287 \end_layout
20288
20289 \begin_layout Standard
20290 by
20291 \noun on
20292  Lars Gullik Bjønnes 
20293 \noun default
20294 and 
20295 \noun on
20296 Pavel Sanda
20297 \end_layout
20298
20299 \begin_layout Subsection
20300 Introduction
20301 \end_layout
20302
20303 \begin_layout Standard
20304 \SpecialChar LyX
20305  supports some of the most basic RCS/CVS/SVN/GIT commands.
20306  If you need something a bit more sophisticated you will have to do that
20307  manually in a terminal.
20308 \end_layout
20309
20310 \begin_layout Standard
20311 Also note that CVS support is not as good as subversion support, so we advise
20312  using SVN instead.
20313  A good place to start learning Subversion is the SVN Book
20314 \begin_inset Foot
20315 status collapsed
20316
20317 \begin_layout Plain Layout
20318 \begin_inset CommandInset href
20319 LatexCommand href
20320 target "http://svnbook.red-bean.com/"
20321 literal "false"
20322
20323 \end_inset
20324
20325
20326 \end_layout
20327
20328 \end_inset
20329
20330 .
20331  In the case of RCS you should read 
20332 \begin_inset Quotes eld
20333 \end_inset
20334
20335 rcsintro
20336 \begin_inset Quotes erd
20337 \end_inset
20338
20339  (a man file, read it with 
20340 \family typewriter
20341 man rcsintro
20342 \family default
20343 ).
20344  This file describes all the basic features of RCS.
20345  You should especially notice the comment about a RCS directory, and the
20346  notion of a master RCS file (the file ending in 
20347 \family typewriter
20348 ,v
20349 \family default
20350 ).
20351 \end_layout
20352
20353 \begin_layout Standard
20354 Before you begin to use the version control features in \SpecialChar LyX
20355 , you should be
20356  familiar with RCS/CVS/SVN/GIT usage.
20357  The implementation in \SpecialChar LyX
20358  assumes a recent version of the GNU RCS or CVS/SVN
20359  package — no guarantees are made for older versions.
20360  Most of the log messages are not currently displayed after operations —
20361  you can check them in the Messages pane if you are unsure.
20362  Regular users of version control will appreciate the VC toolbar, which
20363  can be enabled via 
20364 \family sans
20365 View\SpecialChar menuseparator
20366 Toolbars\SpecialChar menuseparator
20367 Version
20368 \begin_inset space ~
20369 \end_inset
20370
20371 Control
20372 \family default
20373 .
20374 \end_layout
20375
20376 \begin_layout Standard
20377 For introducing your own external commands consult 
20378 \begin_inset Flex Code
20379 status collapsed
20380
20381 \begin_layout Plain Layout
20382 vc-command
20383 \end_layout
20384
20385 \end_inset
20386
20387  in the manual 
20388 \emph on
20389 \SpecialChar LyX
20390  Functions
20391 \emph default
20392 .
20393 \end_layout
20394
20395 \begin_layout Standard
20396 It is strongly recommended to store documents in uncompressed format if
20397  using version control (uncheck 
20398 \family sans
20399 Document\SpecialChar menuseparator
20400 Compressed
20401 \family default
20402  if it is checked): Uncompressed LyX documents are text files and therefore
20403  for merging two different versions by version control systems.
20404  Compressed LyX documents are binary files, which cannot be merged by version
20405  control systems.
20406 \end_layout
20407
20408 \begin_layout Subsection
20409 RCS commands in \SpecialChar LyX
20410
20411 \end_layout
20412
20413 \begin_layout Standard
20414 The following sections describe the RCS commands supported by \SpecialChar LyX
20415 .
20416  You can find them in the 
20417 \family sans
20418 File\SpecialChar menuseparator
20419 Version
20420 \begin_inset space ~
20421 \end_inset
20422
20423 Control
20424 \family default
20425  submenu.
20426  \SpecialChar LyX
20427  was tested against RCS 5.7/5.8.
20428 \end_layout
20429
20430 \begin_layout Subsubsection
20431
20432 \family sans
20433 Register
20434 \end_layout
20435
20436 \begin_layout Standard
20437 If your document is not under revision control, this is the only item shown
20438  in the menu.
20439  And if it is under revision control, the 
20440 \family sans
20441 Register
20442 \family default
20443  item is not visible.
20444  
20445 \end_layout
20446
20447 \begin_layout Standard
20448 This command registers your document with RCS (unless you are under the
20449  directory managed by CVS)\SpecialChar endofsentence
20450  You are asked interactively to supply an initial
20451  description of the document.
20452  The document is now set in Read-Only mode and you have to 
20453 \family sans
20454 Check
20455 \begin_inset space ~
20456 \end_inset
20457
20458 Out
20459 \begin_inset space ~
20460 \end_inset
20461
20462 For
20463 \begin_inset space ~
20464 \end_inset
20465
20466 Edit
20467 \family default
20468 , before making any changes to it.
20469  A document under revision control has a 
20470 \begin_inset Quotes eld
20471 \end_inset
20472
20473 [RCS:<version> <locker>]
20474 \begin_inset Quotes erd
20475 \end_inset
20476
20477  item tagged to the filename in the minibuffer.
20478 \end_layout
20479
20480 \begin_layout Standard
20481 RCS command that is run:
20482 \end_layout
20483
20484 \begin_layout LyX-Code
20485
20486 \family typewriter
20487 ci -q -u -i -t-"<initial description>" <file-name>
20488 \end_layout
20489
20490 \begin_layout Standard
20491 Read 
20492 \family typewriter
20493 man ci
20494 \family default
20495  to understand the switches.
20496  
20497 \end_layout
20498
20499 \begin_layout Subsubsection
20500
20501 \family sans
20502 Check In Changes
20503 \end_layout
20504
20505 \begin_layout Standard
20506 When you are finished editing a file, you check in your changes.
20507  When you do this, you are asked for a description of the changes.
20508  This is stored in the history log.
20509  The version number is bumped, your changes are applied to the master RCS
20510  file, the document is unlocked and set to Read-Only mode.
20511 \end_layout
20512
20513 \begin_layout Itemize
20514 RCS command: 
20515 \family typewriter
20516 ci -q -u -m"<description>" <file-name>
20517 \end_layout
20518
20519 \begin_layout Subsubsection
20520
20521 \family sans
20522 Check Out For Edit
20523 \end_layout
20524
20525 \begin_layout Standard
20526 By doing this you lock the document so that only you can edit it.
20527  This will also make the document Read-Write only for you.
20528  You will usually continue editing for a while and when you are finished
20529  you check in your changes.
20530  The status line is changed to reflect that you have locked the file.
20531 \end_layout
20532
20533 \begin_layout Itemize
20534 RCS command: 
20535 \family typewriter
20536 co -q -l <file-name>
20537 \end_layout
20538
20539 \begin_layout Subsubsection
20540
20541 \family sans
20542 Revert To Repository Version
20543 \end_layout
20544
20545 \begin_layout Standard
20546 This will discard all changes made to the document since the last check
20547  in.
20548  You get a warning before changes are discarded.
20549 \end_layout
20550
20551 \begin_layout Itemize
20552 RCS command: 
20553 \family typewriter
20554 co -f -u<version> <file-name>
20555 \end_layout
20556
20557 \begin_layout Subsubsection
20558
20559 \family sans
20560 Copy
20561 \end_layout
20562
20563 \begin_layout Standard
20564 This will create a copy of the current document.
20565  Since RCS does not support copy operations natively, the version history
20566  is not preserved, and the copy is added as a new file.
20567  It requires a clean document without any changes since the last checkin.
20568  You are asked for a file name and a description of the copy operation.
20569  After that the copy is created, both locally and in the repository.
20570  If the parent directories of the copied and original document differ, all
20571  relative paths of included files of the copy are adjusted (like in 
20572 \family sans
20573 File\SpecialChar menuseparator
20574 Save As
20575 \family default
20576 \SpecialChar ldots
20577 ).
20578  Finally, the copy is loaded instead of the original document.
20579 \end_layout
20580
20581 \begin_layout Labeling
20582 \labelwidthstring 00.00.0000
20583 RCS
20584 \begin_inset space ~
20585 \end_inset
20586
20587 commands: 
20588 \begin_inset space ~
20589 \end_inset
20590
20591
20592 \begin_inset Newline newline
20593 \end_inset
20594
20595 Copy 
20596 \begin_inset Flex Code
20597 status collapsed
20598
20599 \begin_layout Plain Layout
20600
20601 \family typewriter
20602 \begin_inset Quotes qld
20603 \end_inset
20604
20605 <file-name>
20606 \begin_inset Quotes qld
20607 \end_inset
20608
20609
20610 \end_layout
20611
20612 \end_inset
20613
20614  to 
20615 \begin_inset Flex Code
20616 status collapsed
20617
20618 \begin_layout Plain Layout
20619
20620 \family typewriter
20621 \begin_inset Quotes qld
20622 \end_inset
20623
20624 <new-file-name>
20625 \begin_inset Quotes qld
20626 \end_inset
20627
20628
20629 \end_layout
20630
20631 \end_inset
20632
20633
20634 \begin_inset Newline newline
20635 \end_inset
20636
20637
20638 \begin_inset Flex Code
20639 status collapsed
20640
20641 \begin_layout Plain Layout
20642 ci -q -u 
20643 \family typewriter
20644 -i 
20645 \begin_inset Quotes qld
20646 \end_inset
20647
20648 <new-file-name>
20649 \begin_inset Quotes qld
20650 \end_inset
20651
20652
20653 \end_layout
20654
20655 \end_inset
20656
20657
20658 \end_layout
20659
20660 \begin_layout Subsubsection
20661
20662 \family sans
20663 Undo Last Checkin
20664 \end_layout
20665
20666 \begin_layout Standard
20667 This makes as if the last check in never happened.
20668  No changes are made to the document loaded into \SpecialChar LyX
20669 , but the last version
20670  is removed from the master RCS file.
20671 \end_layout
20672
20673 \begin_layout Itemize
20674 RCS command: 
20675 \family typewriter
20676 rcs -o<version> <file-name>
20677 \end_layout
20678
20679 \begin_layout Subsubsection
20680
20681 \family sans
20682 Show History
20683 \end_layout
20684
20685 \begin_layout Standard
20686 This shows the complete history of the RCS document.
20687  The output of 
20688 \family typewriter
20689 rlog <file-name>
20690 \family default
20691  is shown in a browser.
20692  See 
20693 \family typewriter
20694 man rlog
20695 \family default
20696  for more info.
20697 \end_layout
20698
20699 \begin_layout Subsubsection
20700 Revision info
20701 \end_layout
20702
20703 \begin_layout Standard
20704 \SpecialChar LyX
20705  supports RCS version number, author name, date and time of last commit.
20706  All those are extracted from 
20707 \family typewriter
20708 rlog -r <file-name>
20709 \family default
20710 .
20711  See 
20712 \begin_inset CommandInset ref
20713 LatexCommand ref
20714 reference "subsec:VCS-Revision-Information"
20715
20716 \end_inset
20717
20718  for details.
20719 \end_layout
20720
20721 \begin_layout Subsection
20722 CVS commands in \SpecialChar LyX
20723
20724 \end_layout
20725
20726 \begin_layout Standard
20727 A subset of CVS operations is supported by \SpecialChar LyX
20728 .
20729  You can find the commands in the 
20730 \family sans
20731 File\SpecialChar menuseparator
20732 Version
20733 \begin_inset space ~
20734 \end_inset
20735
20736 Control
20737 \family default
20738  submenu.
20739  The version control system SVN is more powerful, so please use it instead
20740  of CVS if possible.
20741 \end_layout
20742
20743 \begin_layout Subsubsection
20744
20745 \family sans
20746 General CVS usage
20747 \end_layout
20748
20749 \begin_layout Standard
20750 If you start from scratch with CVS you have to create your repository and
20751  checkout the working copy with external tools.
20752  If you're using a client-server setup you may need to login before doing
20753  the first repository checkout.
20754 \end_layout
20755
20756 \begin_layout Standard
20757 If your documents are under revision control and others are using the same
20758  repository problems arise when different changes to the same document at
20759  the same location happen.
20760  Standard CVS repositories don't operate with a file locking mechanism.
20761  This may be surprising, but conflicts only occur if people disagree on
20762  the proper content of the same part of a document.
20763  So, if co-workers are used to communicate regularly, these conflicts occur
20764  rarely.
20765  If they don't communicate they have a fundamental problem anyway.
20766  Nevertheless some people like to work with so called 
20767 \begin_inset Quotes eld
20768 \end_inset
20769
20770 reserved checkouts
20771 \begin_inset Quotes erd
20772 \end_inset
20773
20774 .
20775  If they do so the working copy of all files is readonly when checked out
20776  first and the user starts editing after using a special command to make
20777  the working copy writable.
20778  When the changes are checked in the working copy returns to readonly state.
20779  With \SpecialChar LyX
20780  one has to edit the 
20781 \begin_inset Flex Code
20782 status collapsed
20783
20784 \begin_layout Plain Layout
20785 .cvsrc
20786 \end_layout
20787
20788 \end_inset
20789
20790  file and add the line 
20791 \begin_inset Flex Code
20792 status collapsed
20793
20794 \begin_layout Plain Layout
20795 cvs -r
20796 \end_layout
20797
20798 \end_inset
20799
20800  to work with reserved checkouts.
20801  The benefit is the possibility to see who is using a writable copy of some
20802  document.
20803  It's not guaranteed only one user makes a copy writable.
20804 \end_layout
20805
20806 \begin_layout Standard
20807 \SpecialChar LyX
20808  tries to guess if you're using reserved or non-reserved checkouts.
20809  If your working copy is readonly or it is writable and an additional copy
20810  of your document exists in the CVS/Base sub-directory a reserved otherwise
20811  a non-reserved checkout is assumed.
20812  When a reserved checkout is detected you have to use 
20813 \begin_inset Flex Noun
20814 status collapsed
20815
20816 \begin_layout Plain Layout
20817 Check Out
20818 \end_layout
20819
20820 \end_inset
20821
20822  to make your working copy writable if it's readonly.
20823  After doing so the 
20824 \begin_inset Flex Noun
20825 status collapsed
20826
20827 \begin_layout Plain Layout
20828 Check In
20829 \end_layout
20830
20831 \end_inset
20832
20833  operation is possible and that makes your working copy readonly again after
20834  transferring your changes to the repository.
20835 \end_layout
20836
20837 \begin_layout Standard
20838 More information about CVS can be found here 
20839 \begin_inset Flex URL
20840 status collapsed
20841
20842 \begin_layout Plain Layout
20843
20844 http://www.nongnu.org/cvs
20845 \end_layout
20846
20847 \end_inset
20848
20849  and here 
20850 \begin_inset Flex URL
20851 status collapsed
20852
20853 \begin_layout Plain Layout
20854
20855 http://ximbiot.com/cvs
20856 \end_layout
20857
20858 \end_inset
20859
20860 .
20861 \end_layout
20862
20863 \begin_layout Standard
20864 Read 
20865 \family typewriter
20866 man cvs
20867 \family default
20868  to understand the sub-commands and the switches mentioned below.
20869 \end_layout
20870
20871 \begin_layout Subsubsection
20872
20873 \family sans
20874 Register
20875 \end_layout
20876
20877 \begin_layout Standard
20878 If your document is not under revision control, this is the only item shown
20879  in the menu.
20880  And if it is under revision control, the 
20881 \family sans
20882 Register
20883 \family default
20884  item is not visible.
20885  
20886 \end_layout
20887
20888 \begin_layout Standard
20889 This command registers in CVS your document 
20890 \begin_inset Flex Strong
20891 status collapsed
20892
20893 \begin_layout Plain Layout
20894
20895 \emph on
20896 only
20897 \end_layout
20898
20899 \end_inset
20900
20901  in the case you have already the documents directory under CVS control
20902  (in particular 
20903 \family typewriter
20904 CVS/Entries
20905 \family default
20906  file exists).
20907  This means you have to create or checkout the archive by yourself using
20908  external tools.
20909  (In case you forget that step \SpecialChar LyX
20910  registers the document with RCS.)
20911 \end_layout
20912
20913 \begin_layout Standard
20914 Then you are asked interactively to supply an initial description of the
20915  document.
20916  Don't forget that registered file is not yet checked in.
20917 \end_layout
20918
20919 \begin_layout Standard
20920 CVS command that is run: 
20921 \family typewriter
20922 cvs -q add -m"<entered message>" "<file-name>"
20923 \end_layout
20924
20925 \begin_layout Standard
20926 The term 
20927 \family typewriter
20928 "<file-name>"
20929 \family default
20930  above and for all other CVS commands is an abbreviation for 
20931 \begin_inset Quotes eld
20932 \end_inset
20933
20934 change the current working directory to file location and use the file name
20935  without path component as argument
20936 \begin_inset Quotes erd
20937 \end_inset
20938
20939 .
20940 \end_layout
20941
20942 \begin_layout Subsubsection
20943
20944 \family sans
20945 Check In Changes
20946 \end_layout
20947
20948 \begin_layout Standard
20949 When you are finished editing a file, you commit your changes.
20950  When you do this and you had changed the document, you are asked for a
20951  description of the changes.
20952  After that changes are written to the repository.
20953  In case you didn't change the document and a reserved checkout is detected
20954  the reservation made on 
20955 \begin_inset Flex Noun
20956 status collapsed
20957
20958 \begin_layout Plain Layout
20959 Check Out
20960 \end_layout
20961
20962 \end_inset
20963
20964  is undone.
20965 \end_layout
20966
20967 \begin_layout Labeling
20968 \labelwidthstring 00.00.0000
20969 CVS
20970 \begin_inset space ~
20971 \end_inset
20972
20973 command: 
20974 \begin_inset space ~
20975 \end_inset
20976
20977
20978 \begin_inset Newline newline
20979 \end_inset
20980
20981
20982 \begin_inset Flex Code
20983 status collapsed
20984
20985 \begin_layout Plain Layout
20986 cvs 
20987 \family typewriter
20988 -q commit -m"<description>" "<file-name>"
20989 \end_layout
20990
20991 \end_inset
20992
20993  or
20994 \begin_inset Newline newline
20995 \end_inset
20996
20997
20998 \begin_inset Flex Code
20999 status collapsed
21000
21001 \begin_layout Plain Layout
21002 cvs -q unedit 
21003 \family typewriter
21004 "<file-name>"
21005 \end_layout
21006
21007 \end_inset
21008
21009
21010 \end_layout
21011
21012 \begin_layout Subsubsection
21013
21014 \family sans
21015 Check Out Changes
21016 \end_layout
21017
21018 \begin_layout Standard
21019 When you are sharing a repository with others, you may have to incorporate
21020  their changes into your working copy.
21021 \end_layout
21022
21023 \begin_layout Standard
21024 CVS command: 
21025 \family typewriter
21026 cvs -q update "<file-name>"
21027 \end_layout
21028
21029 \begin_layout Standard
21030 If a readonly checkout is detected the working copy is made writable and
21031  reserved.
21032 \end_layout
21033
21034 \begin_layout Standard
21035 CVS command: 
21036 \family typewriter
21037 cvs -q edit "<file-name>"
21038 \end_layout
21039
21040 \begin_layout Subsubsection
21041
21042 \family sans
21043 Revert To Repository Version
21044 \end_layout
21045
21046 \begin_layout Standard
21047 This will discard all changes made to the document since the last check
21048  in.
21049  You get a warning before changes are discarded.
21050  Firstly the file is deleted, secondly CVS update command is run.
21051 \end_layout
21052
21053 \begin_layout Standard
21054 CVS command: 
21055 \family typewriter
21056 cvs -q update "<file-name>"
21057 \end_layout
21058
21059 \begin_layout Standard
21060 If a reserved checkout is detected and the working copy has no changes only
21061  the reservation is undone.
21062 \end_layout
21063
21064 \begin_layout Standard
21065 CVS command: 
21066 \family typewriter
21067 cvs -q unedit "<file-name>"
21068 \end_layout
21069
21070 \begin_layout Subsubsection
21071
21072 \family sans
21073 Copy
21074 \end_layout
21075
21076 \begin_layout Standard
21077 This will create a copy of the current document.
21078  Since CVS does not support copy operations natively, the version history
21079  is not preserved, and the copy is added as a new file.
21080  It requires a clean document without any changes since the last checkin.
21081  You are asked for a file name and a description of the copy operation.
21082  After that the copy is created, both locally and in the repository.
21083  If the parent directories of the copied and original document differ, all
21084  relative paths of included files of the copy are adjusted (like in 
21085 \family sans
21086 File\SpecialChar menuseparator
21087 Save As
21088 \family default
21089 \SpecialChar ldots
21090 ).
21091  Finally, the copy is loaded instead of the original document.
21092 \end_layout
21093
21094 \begin_layout Labeling
21095 \labelwidthstring 00.00.0000
21096 CVS
21097 \begin_inset space ~
21098 \end_inset
21099
21100 commands: 
21101 \begin_inset space ~
21102 \end_inset
21103
21104
21105 \begin_inset Newline newline
21106 \end_inset
21107
21108 Copy 
21109 \begin_inset Flex Code
21110 status collapsed
21111
21112 \begin_layout Plain Layout
21113 "<file-name>"
21114 \end_layout
21115
21116 \end_inset
21117
21118  to 
21119 \begin_inset Flex Code
21120 status collapsed
21121
21122 \begin_layout Plain Layout
21123 "<new-file-name>"
21124 \end_layout
21125
21126 \end_inset
21127
21128
21129 \begin_inset Newline newline
21130 \end_inset
21131
21132
21133 \begin_inset Flex Code
21134 status collapsed
21135
21136 \begin_layout Plain Layout
21137 cvs -q add "<new-file-name>"
21138 \end_layout
21139
21140 \end_inset
21141
21142
21143 \end_layout
21144
21145 \begin_layout Subsubsection
21146
21147 \family sans
21148 Rename
21149 \end_layout
21150
21151 \begin_layout Standard
21152 This will rename the current document.
21153  Since CVS does not support rename operations natively, the version history
21154  is not preserved, the renamed document is added as a new file, and the
21155  original document is deleted.
21156  It requires a clean document without any changes since the last checkin.
21157  You are asked for a file name and a description of the rename operation.
21158  After that the document is renamed, both locally and in the repository.
21159  If the parent directories of the new and old file names differ, all relative
21160  paths of included files are adjusted (like in 
21161 \family sans
21162 File\SpecialChar menuseparator
21163 Save As
21164 \family default
21165 \SpecialChar ldots
21166 ).
21167  Finally, the document is reloaded using the new name.
21168 \end_layout
21169
21170 \begin_layout Labeling
21171 \labelwidthstring 00.00.0000
21172 CVS
21173 \begin_inset space ~
21174 \end_inset
21175
21176 commands: 
21177 \begin_inset space ~
21178 \end_inset
21179
21180
21181 \begin_inset Newline newline
21182 \end_inset
21183
21184 Rename 
21185 \begin_inset Flex Code
21186 status collapsed
21187
21188 \begin_layout Plain Layout
21189 "<file-name>"
21190 \end_layout
21191
21192 \end_inset
21193
21194  to 
21195 \begin_inset Flex Code
21196 status collapsed
21197
21198 \begin_layout Plain Layout
21199 "<new-file-name>"
21200 \end_layout
21201
21202 \end_inset
21203
21204
21205 \begin_inset Newline newline
21206 \end_inset
21207
21208
21209 \begin_inset Flex Code
21210 status collapsed
21211
21212 \begin_layout Plain Layout
21213 cvs -q add "<new-file-name>"
21214 \end_layout
21215
21216 \end_inset
21217
21218
21219 \begin_inset Newline newline
21220 \end_inset
21221
21222
21223 \begin_inset Flex Code
21224 status collapsed
21225
21226 \begin_layout Plain Layout
21227 cvs -q remove "<file-name>"
21228 \end_layout
21229
21230 \end_inset
21231
21232
21233 \end_layout
21234
21235 \begin_layout Subsubsection
21236 Update of the local directory checkout from repository
21237 \end_layout
21238
21239 \begin_layout Standard
21240 Once your documents gets more complex, containing sub-documents and pictures,
21241  including external 
21242 \begin_inset Flex Code
21243 status collapsed
21244
21245 \begin_layout Plain Layout
21246 .tex
21247 \end_layout
21248
21249 \end_inset
21250
21251  files and so on using version control becomes more complicated.
21252  \SpecialChar LyX
21253  supports updating the whole tree in which resides the document.
21254  This become especially useful once you cooperate with people which neither
21255  have detailed knowledge about CVS usage nor they have ambition to commit
21256  additional material to the repository.
21257  You have to organize the files structure so that all external files are
21258  in the same directory or subdirectories of the document.
21259  It's good practice anyway to store multipart documents in an extra directory.
21260 \end_layout
21261
21262 \begin_layout Standard
21263 The 
21264 \begin_inset Flex Code
21265 status collapsed
21266
21267 \begin_layout Plain Layout
21268 Update local directory from repository
21269 \end_layout
21270
21271 \end_inset
21272
21273  command updates the whole directory.
21274  If local changes are detected user is warned before update starts.
21275  In case of merge conflicts both versions of the conflicting document parts
21276  are placed in the final document.
21277  You have to review and correct the result of the merge.
21278  You'll find the conflicts enclosed in pairs of 
21279 \begin_inset Flex Code
21280 status collapsed
21281
21282 \begin_layout Plain Layout
21283 <<<<<<<
21284 \end_layout
21285
21286 \end_inset
21287
21288  and 
21289 \begin_inset Flex Code
21290 status collapsed
21291
21292 \begin_layout Plain Layout
21293 >>>>>>>
21294 \end_layout
21295
21296 \end_inset
21297
21298  separated by 
21299 \begin_inset Flex Code
21300 status collapsed
21301
21302 \begin_layout Plain Layout
21303 =======
21304 \end_layout
21305
21306 \end_inset
21307
21308 .
21309  The first part is your version as before the update operation with the
21310  document name prepended.
21311  The second one is the repository version with the version number after
21312  the sequence of 
21313 \begin_inset Flex Code
21314 status collapsed
21315
21316 \begin_layout Plain Layout
21317 >
21318 \end_layout
21319
21320 \end_inset
21321
21322  signs.
21323 \end_layout
21324
21325 \begin_layout Labeling
21326 \labelwidthstring 00.00.0000
21327 CVS
21328 \begin_inset space ~
21329 \end_inset
21330
21331 commands: 
21332 \begin_inset space ~
21333 \end_inset
21334
21335
21336 \begin_inset Newline newline
21337 \end_inset
21338
21339
21340 \begin_inset Flex Code
21341 status collapsed
21342
21343 \begin_layout Plain Layout
21344 cd $path; cvs diff 
21345 \family typewriter
21346 "."
21347 \end_layout
21348
21349 \end_inset
21350
21351  (Ask if changes are detected.)
21352 \begin_inset Newline newline
21353 \end_inset
21354
21355
21356 \begin_inset Flex Code
21357 status collapsed
21358
21359 \begin_layout Plain Layout
21360 cd $path; cvs -q update 
21361 \family typewriter
21362 "."
21363 \end_layout
21364
21365 \end_inset
21366
21367
21368 \end_layout
21369
21370 \begin_layout Standard
21371 where 
21372 \begin_inset Flex Code
21373 status collapsed
21374
21375 \begin_layout Plain Layout
21376 $path
21377 \end_layout
21378
21379 \end_inset
21380
21381  stands for the path to the document.
21382 \end_layout
21383
21384 \begin_layout Subsubsection
21385
21386 \family sans
21387 Show History
21388 \end_layout
21389
21390 \begin_layout Standard
21391 This shows the complete history of the CVS document.
21392  The output of 
21393 \family typewriter
21394 cvs log "<file-name>"
21395 \family default
21396  is shown in a browser.
21397 \end_layout
21398
21399 \begin_layout Subsubsection
21400 Revision info
21401 \end_layout
21402
21403 \begin_layout Standard
21404 \SpecialChar LyX
21405  supports CVS version number, author name, date and time of last commit.
21406  All those are extracted from 
21407 \family typewriter
21408 cvs log -r <file-name>
21409 \family default
21410 .
21411  See 
21412 \begin_inset CommandInset ref
21413 LatexCommand ref
21414 reference "subsec:VCS-Revision-Information"
21415
21416 \end_inset
21417
21418  for details.
21419 \end_layout
21420
21421 \begin_layout Subsection
21422 SVN commands in \SpecialChar LyX
21423
21424 \end_layout
21425
21426 \begin_layout Standard
21427 SVN is now partially supported by \SpecialChar LyX
21428 .
21429  You can find the commands in the 
21430 \family sans
21431 File\SpecialChar menuseparator
21432 Version
21433 \begin_inset space ~
21434 \end_inset
21435
21436 Control
21437 \family default
21438  submenu.
21439  Please note that if you use password protected access to repository via
21440  ssh, you will be asked in terminal window.
21441  \SpecialChar LyX
21442  was tested against SVN 1.5, 1.6, 1.7 and 1.8
21443 \begin_inset Foot
21444 status collapsed
21445
21446 \begin_layout Plain Layout
21447 Most of the commands will work with 1.4 too, see 
21448 \begin_inset CommandInset ref
21449 LatexCommand ref
21450 reference "subsec:SVN-Repo-Update"
21451
21452 \end_inset
21453
21454 .
21455  There seems to be currently unresolved permissions problem under SVN 1.8
21456  with reverting changes when file is locked.
21457 \end_layout
21458
21459 \end_inset
21460
21461
21462 \end_layout
21463
21464 \begin_layout Subsubsection
21465
21466 \family sans
21467 Register
21468 \end_layout
21469
21470 \begin_layout Standard
21471 If your document is not under revision control, this is the only item shown
21472  in the menu.
21473  And if it is under revision control, the 
21474 \family sans
21475 Register
21476 \family default
21477  item is not visible.
21478 \end_layout
21479
21480 \begin_layout Standard
21481 This command registers in SVN your document ONLY in case you have already
21482  the documents directory under SVN control (in particular 
21483 \family typewriter
21484 .svn/entries
21485 \family default
21486  file exists).
21487  This means you have to checkout the archive by yourself.
21488 \end_layout
21489
21490 \begin_layout Standard
21491 Then you are asked interactively to supply an initial description of the
21492  document.
21493  Don't forget that registered file is not yet commited.
21494 \end_layout
21495
21496 \begin_layout Standard
21497 SVN command that is run: 
21498 \family typewriter
21499 svn add -q 
21500 \begin_inset Quotes qld
21501 \end_inset
21502
21503 <file-name>
21504 \begin_inset Quotes qld
21505 \end_inset
21506
21507
21508 \end_layout
21509
21510 \begin_layout Standard
21511 Read 
21512 \family typewriter
21513 man svn
21514 \family default
21515  to understand the switches.
21516 \end_layout
21517
21518 \begin_layout Subsubsection
21519
21520 \family sans
21521 Check In Changes
21522 \end_layout
21523
21524 \begin_layout Standard
21525 When you are finished editing a file, you commit your changes.
21526  When you do this, you are asked for a description of the changes.
21527  After that changes are commited.
21528 \end_layout
21529
21530 \begin_layout Standard
21531 SVN command:
21532 \begin_inset Foot
21533 status collapsed
21534
21535 \begin_layout Plain Layout
21536 In case locking is not enabled.
21537  See Section 
21538 \begin_inset CommandInset ref
21539 LatexCommand ref
21540 reference "subsec:SVN-File-Locking"
21541
21542 \end_inset
21543
21544 .
21545 \end_layout
21546
21547 \end_inset
21548
21549  
21550 \family typewriter
21551 svn commit -q -m"<description>" <file-name>
21552 \end_layout
21553
21554 \begin_layout Subsubsection
21555
21556 \family sans
21557 Check Out For Edit
21558 \end_layout
21559
21560 \begin_layout Standard
21561 Updates the changes of this file from the repository.
21562  Be sure you understand SVN merging and conflicts resolving before using
21563  this function, because all conflicts has to be resolved manually by you!
21564 \end_layout
21565
21566 \begin_layout Standard
21567 SVN command:
21568 \begin_inset Foot
21569 status collapsed
21570
21571 \begin_layout Plain Layout
21572 Ditto.
21573 \end_layout
21574
21575 \end_inset
21576
21577  
21578 \family typewriter
21579 svn update --non-interactive 
21580 \begin_inset Quotes qld
21581 \end_inset
21582
21583 <file-name>
21584 \begin_inset Quotes qld
21585 \end_inset
21586
21587
21588 \end_layout
21589
21590 \begin_layout Subsubsection
21591
21592 \family sans
21593 Revert To Repository Version
21594 \end_layout
21595
21596 \begin_layout Standard
21597 This will discard all changes made to the document since the last check
21598  in.
21599  You get a warning before changes are discarded.
21600 \end_layout
21601
21602 \begin_layout Standard
21603 SVN command: 
21604 \family typewriter
21605 svn revert -q 
21606 \begin_inset Quotes qld
21607 \end_inset
21608
21609 <file-name>
21610 \begin_inset Quotes qld
21611 \end_inset
21612
21613
21614 \end_layout
21615
21616 \begin_layout Subsubsection
21617
21618 \family sans
21619 Copy
21620 \end_layout
21621
21622 \begin_layout Standard
21623 This will create a copy of the current document including the version history.
21624  It requires a clean document without any changes since the last checkin.
21625  You are asked for a file name and a description of the copy operation.
21626  After that the copy is created, both locally and in the repository.
21627  If the parent directories of the copied and original document differ, all
21628  relative paths of included files of the copy are adjusted (like in 
21629 \family sans
21630 File\SpecialChar menuseparator
21631 Save As
21632 \family default
21633 \SpecialChar ldots
21634 ).
21635  Finally, the copy is loaded instead of the original document.
21636 \end_layout
21637
21638 \begin_layout Labeling
21639 \labelwidthstring 00.00.0000
21640 SVN
21641 \begin_inset space ~
21642 \end_inset
21643
21644 commands: 
21645 \begin_inset space ~
21646 \end_inset
21647
21648
21649 \begin_inset Newline newline
21650 \end_inset
21651
21652
21653 \begin_inset Flex Code
21654 status collapsed
21655
21656 \begin_layout Plain Layout
21657 svn copy -q 
21658 \family typewriter
21659
21660 \begin_inset Quotes qld
21661 \end_inset
21662
21663 <file-name>
21664 \begin_inset Quotes qld
21665 \end_inset
21666
21667  
21668 \begin_inset Quotes qld
21669 \end_inset
21670
21671 <new-file-name>
21672 \begin_inset Quotes qld
21673 \end_inset
21674
21675
21676 \end_layout
21677
21678 \end_inset
21679
21680
21681 \begin_inset Newline newline
21682 \end_inset
21683
21684
21685 \begin_inset Flex Code
21686 status collapsed
21687
21688 \begin_layout Plain Layout
21689 svn commit
21690 \end_layout
21691
21692 \end_inset
21693
21694
21695 \end_layout
21696
21697 \begin_layout Subsubsection
21698
21699 \family sans
21700 Rename
21701 \end_layout
21702
21703 \begin_layout Standard
21704 This will rename the current document including the version history.
21705  It requires a clean document without any changes since the last checkin.
21706  You are asked for a file name and a description of the rename operation.
21707  After that the document is renamed, both locally and in the repository.
21708  If the parent directories of the new and old file names differ, all relative
21709  paths of included files are adjusted (like in 
21710 \family sans
21711 File\SpecialChar menuseparator
21712 Save As
21713 \family default
21714 \SpecialChar ldots
21715 ).
21716  Finally, the document is reloaded using the new name.
21717 \end_layout
21718
21719 \begin_layout Labeling
21720 \labelwidthstring 00.00.0000
21721 SVN
21722 \begin_inset space ~
21723 \end_inset
21724
21725 commands: 
21726 \begin_inset space ~
21727 \end_inset
21728
21729
21730 \begin_inset Newline newline
21731 \end_inset
21732
21733
21734 \begin_inset Flex Code
21735 status collapsed
21736
21737 \begin_layout Plain Layout
21738 svn move -q 
21739 \family typewriter
21740
21741 \begin_inset Quotes qld
21742 \end_inset
21743
21744 <file-name>
21745 \begin_inset Quotes qld
21746 \end_inset
21747
21748  
21749 \begin_inset Quotes qld
21750 \end_inset
21751
21752 <new-file-name>
21753 \begin_inset Quotes qld
21754 \end_inset
21755
21756
21757 \end_layout
21758
21759 \end_inset
21760
21761
21762 \begin_inset Newline newline
21763 \end_inset
21764
21765
21766 \begin_inset Flex Code
21767 status collapsed
21768
21769 \begin_layout Plain Layout
21770 svn commit
21771 \end_layout
21772
21773 \end_inset
21774
21775
21776 \end_layout
21777
21778 \begin_layout Subsubsection
21779 \begin_inset CommandInset label
21780 LatexCommand label
21781 name "subsec:SVN-Repo-Update"
21782
21783 \end_inset
21784
21785 Update of the local directory checkout from repository
21786 \begin_inset Foot
21787 status collapsed
21788
21789 \begin_layout Plain Layout
21790 Note that this command will work only with subversion 
21791 \begin_inset Formula $\geqq1.5$
21792 \end_inset
21793
21794
21795 \end_layout
21796
21797 \end_inset
21798
21799
21800 \end_layout
21801
21802 \begin_layout Standard
21803 All the commands above have one shortcoming – they deal with the current
21804  document only.
21805  Once your document contains pictures, includes external 
21806 \begin_inset Flex Code
21807 status collapsed
21808
21809 \begin_layout Plain Layout
21810 .tex
21811 \end_layout
21812
21813 \end_inset
21814
21815  files and so on administration becomes more complicated.
21816  \SpecialChar LyX
21817  now supports updating the whole tree in which resides the document
21818 \begin_inset Foot
21819 status collapsed
21820
21821 \begin_layout Plain Layout
21822 One need to organize the files structure so that all external files are
21823  in the same directory or subdirectories of the document.
21824  
21825 \end_layout
21826
21827 \end_inset
21828
21829 .
21830  This become especially useful once you cooperate with people which neither
21831  know about subversion management nor they have ambition to commit additional
21832  material to the repository.
21833  
21834 \end_layout
21835
21836 \begin_layout Standard
21837 \begin_inset Flex Code
21838 status collapsed
21839
21840 \begin_layout Plain Layout
21841 Update local directory from repository
21842 \end_layout
21843
21844 \end_inset
21845
21846  command updates the whole directory and in case of merge conflicts local
21847  version of the files are left, so no unintended data loss occurs.
21848  If local changes are detected user is warned before update starts.
21849 \end_layout
21850
21851 \begin_layout Labeling
21852 \labelwidthstring 00.00.0000
21853 SVN
21854 \begin_inset space ~
21855 \end_inset
21856
21857 commands: 
21858 \begin_inset space ~
21859 \end_inset
21860
21861
21862 \begin_inset Newline newline
21863 \end_inset
21864
21865
21866 \begin_inset Flex Code
21867 status collapsed
21868
21869 \begin_layout Plain Layout
21870 svn diff $path
21871 \end_layout
21872
21873 \end_inset
21874
21875  (Ask if changes are detected.)
21876 \begin_inset Newline newline
21877 \end_inset
21878
21879
21880 \begin_inset Flex Code
21881 status collapsed
21882
21883 \begin_layout Plain Layout
21884 svn update --accept mine-full $path
21885 \end_layout
21886
21887 \end_inset
21888
21889
21890 \end_layout
21891
21892 \begin_layout Standard
21893 where 
21894 \begin_inset Flex Code
21895 status collapsed
21896
21897 \begin_layout Plain Layout
21898 $path
21899 \end_layout
21900
21901 \end_inset
21902
21903  stands for the path to the document.
21904 \end_layout
21905
21906 \begin_layout Subsubsection
21907
21908 \family sans
21909 Show History
21910 \end_layout
21911
21912 \begin_layout Standard
21913 This shows the complete history of the SVN document.
21914  The output of 
21915 \family typewriter
21916 svn log 
21917 \begin_inset Quotes qld
21918 \end_inset
21919
21920 <file-name>
21921 \begin_inset Quotes qld
21922 \end_inset
21923
21924
21925 \family default
21926  is shown in a browser.
21927 \end_layout
21928
21929 \begin_layout Subsubsection
21930 File Locking
21931 \begin_inset CommandInset label
21932 LatexCommand label
21933 name "subsec:SVN-File-Locking"
21934
21935 \end_inset
21936
21937
21938 \end_layout
21939
21940 \begin_layout Standard
21941 The file exchange through various revision control systems brings the problem
21942  of merge conflicts in case two different users try to edit the same (parts
21943  of) document.
21944  When such a conflict happens it needs manual resolving and one reasonable
21945  alternative is to provide some kind of locking mechanism, which guarantees
21946  that only one user is allowed to edit file at the given time.
21947 \end_layout
21948
21949 \begin_layout Standard
21950 SVN has two such mechanisms to provide mutual exclusivity for file access
21951  – locks and automatic setting of write permissions (see sec.
21952  
21953 \begin_inset CommandInset ref
21954 LatexCommand ref
21955 reference "subsec:Automatical-Locking-Property"
21956
21957 \end_inset
21958
21959 ) based on 
21960 \begin_inset Flex Code
21961 status collapsed
21962
21963 \begin_layout Plain Layout
21964 svn:needs-lock
21965 \end_layout
21966
21967 \end_inset
21968
21969  file svn property
21970 \begin_inset Foot
21971 status collapsed
21972
21973 \begin_layout Plain Layout
21974 \begin_inset Flex URL
21975 status open
21976
21977 \begin_layout Plain Layout
21978
21979 http://svnbook.red-bean.com/en/1.2/svn.advanced.locking.html
21980 \end_layout
21981
21982 \end_inset
21983
21984
21985 \end_layout
21986
21987 \end_inset
21988
21989 .
21990  If this property is detected for a given document \SpecialChar LyX
21991  starts to use SVN locks
21992  for document editing automatically and the whole check-in/out mechanism
21993  switches to the same regimen as for RCS.
21994  This in particular means there are two different modes of file use in \SpecialChar LyX
21995 :
21996 \end_layout
21997
21998 \begin_layout Itemize
21999 Unlocked state.
22000  The loaded file is in the read-only mode.
22001  For editing on needs to check-out.
22002  
22003 \emph on
22004 Check-out
22005 \emph default
22006  consists of updating from the repository and gaining write lock.
22007  If the lock is not possible to obtain, we remain in unlocked state.
22008 \end_layout
22009
22010 \begin_layout Itemize
22011 Locked state.
22012  The loaded file is in the 
22013 \begin_inset Quotes els
22014 \end_inset
22015
22016 normal
22017 \begin_inset Quotes ers
22018 \end_inset
22019
22020  edit mode.
22021  No other user is allowed to edit the file.
22022  
22023 \emph on
22024 Check-in
22025 \emph default
22026  consists of commiting changes and releasing write-lock.
22027  If no changes have been made to the document, no commit will be produced
22028 \begin_inset Foot
22029 status collapsed
22030
22031 \begin_layout Plain Layout
22032 Don't be puzzled by the fact that you will be asked for commit message anyway.
22033 \end_layout
22034
22035 \end_inset
22036
22037  and only the write-lock will be released.
22038 \end_layout
22039
22040 \begin_layout Standard
22041 SVN commands:
22042 \end_layout
22043
22044 \begin_layout Labeling
22045 \labelwidthstring 00.00.0000
22046 Check-in:
22047 \family typewriter
22048  svn commit -q -m"<description>" "<file-name>"
22049 \begin_inset Newline newline
22050 \end_inset
22051
22052 svn unlock "<file-name>"
22053 \end_layout
22054
22055 \begin_layout Labeling
22056 \labelwidthstring 00.00.0000
22057 Check-out: 
22058 \family typewriter
22059 svn update "<file-name>"
22060 \begin_inset Newline newline
22061 \end_inset
22062
22063 svn lock "<file-name>"
22064 \end_layout
22065
22066 \begin_layout Subsubsection
22067
22068 \family typewriter
22069 \begin_inset CommandInset label
22070 LatexCommand label
22071 name "subsec:Automatical-Locking-Property"
22072
22073 \end_inset
22074
22075
22076 \family default
22077 Automatic Locking Property
22078 \end_layout
22079
22080 \begin_layout Standard
22081 The above mentioned automatic setting of write permissions of the .lyx file
22082  can be set through
22083 \family sans
22084  File\SpecialChar menuseparator
22085 Version
22086 \begin_inset space ~
22087 \end_inset
22088
22089 Control\SpecialChar menuseparator
22090 Use Locking Property
22091 \family default
22092 .
22093  This command is active only when the file is not locked on the svn server
22094  (i.e.
22095  you need to check-out before proceeding).
22096 \end_layout
22097
22098 \begin_layout Labeling
22099 \labelwidthstring 00.00.0000
22100 SVN
22101 \begin_inset space ~
22102 \end_inset
22103
22104 commands:
22105 \end_layout
22106
22107 \begin_layout Labeling
22108 \labelwidthstring 00.00.0000
22109 Set:
22110 \family typewriter
22111  svn propset svn:needs-lock ON "<file-name>"
22112 \end_layout
22113
22114 \begin_layout Labeling
22115 \labelwidthstring 00.00.0000
22116 Unset: 
22117 \family typewriter
22118 svn propdel svn:needs-lock "<file-name>"
22119 \end_layout
22120
22121 \begin_layout Subsubsection
22122 \begin_inset CommandInset label
22123 LatexCommand label
22124 name "subsec:VCS-Revision-Information"
22125
22126 \end_inset
22127
22128 Revision Information in Documents
22129 \end_layout
22130
22131 \begin_layout Standard
22132 There are more possibilities how to activate revision information in our
22133  document.
22134 \end_layout
22135
22136 \begin_layout Itemize
22137 \SpecialChar LyX
22138  supports directly:
22139 \end_layout
22140
22141 \begin_deeper
22142 \begin_layout Itemize
22143 tree revision information (
22144 \begin_inset Flex Code
22145 status collapsed
22146
22147 \begin_layout Plain Layout
22148 vcs-tree-revision
22149 \end_layout
22150
22151 \end_inset
22152
22153 ).
22154  The result is the output of the 
22155 \begin_inset Flex Code
22156 status collapsed
22157
22158 \begin_layout Plain Layout
22159 svnversion
22160 \end_layout
22161
22162 \end_inset
22163
22164  command, the following table gives you an idea, how to read the results.
22165 \end_layout
22166
22167 \begin_layout Standard
22168 \align center
22169 \begin_inset Tabular
22170 <lyxtabular version="3" rows="6" columns="2">
22171 <features tabularvalignment="middle">
22172 <column alignment="left" valignment="top">
22173 <column alignment="left" valignment="top">
22174 <row>
22175 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22176 \begin_inset Text
22177
22178 \begin_layout Plain Layout
22179
22180 \series bold
22181 Output
22182 \end_layout
22183
22184 \end_inset
22185 </cell>
22186 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
22187 \begin_inset Text
22188
22189 \begin_layout Plain Layout
22190
22191 \series bold
22192 Meaning
22193 \end_layout
22194
22195 \end_inset
22196 </cell>
22197 </row>
22198 <row>
22199 <cell alignment="left" valignment="top" topline="true" leftline="true" usebox="none">
22200 \begin_inset Text
22201
22202 \begin_layout Plain Layout
22203 4123:4168
22204 \end_layout
22205
22206 \end_inset
22207 </cell>
22208 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
22209 \begin_inset Text
22210
22211 \begin_layout Plain Layout
22212 mixed revision working copy
22213 \end_layout
22214
22215 \end_inset
22216 </cell>
22217 </row>
22218 <row>
22219 <cell alignment="left" valignment="top" topline="true" leftline="true" usebox="none">
22220 \begin_inset Text
22221
22222 \begin_layout Plain Layout
22223 4168M
22224 \end_layout
22225
22226 \end_inset
22227 </cell>
22228 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
22229 \begin_inset Text
22230
22231 \begin_layout Plain Layout
22232 modified working copy
22233 \end_layout
22234
22235 \end_inset
22236 </cell>
22237 </row>
22238 <row>
22239 <cell alignment="left" valignment="top" topline="true" leftline="true" usebox="none">
22240 \begin_inset Text
22241
22242 \begin_layout Plain Layout
22243 4123S
22244 \end_layout
22245
22246 \end_inset
22247 </cell>
22248 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
22249 \begin_inset Text
22250
22251 \begin_layout Plain Layout
22252 switched working copy
22253 \end_layout
22254
22255 \end_inset
22256 </cell>
22257 </row>
22258 <row>
22259 <cell alignment="left" valignment="top" topline="true" leftline="true" usebox="none">
22260 \begin_inset Text
22261
22262 \begin_layout Plain Layout
22263 4123P
22264 \end_layout
22265
22266 \end_inset
22267 </cell>
22268 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
22269 \begin_inset Text
22270
22271 \begin_layout Plain Layout
22272 partial working copy, from a sparse checkout
22273 \end_layout
22274
22275 \end_inset
22276 </cell>
22277 </row>
22278 <row>
22279 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22280 \begin_inset Text
22281
22282 \begin_layout Plain Layout
22283 4123:4168MS
22284 \end_layout
22285
22286 \end_inset
22287 </cell>
22288 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
22289 \begin_inset Text
22290
22291 \begin_layout Plain Layout
22292 mixed revision, modified, switched working copy
22293 \end_layout
22294
22295 \end_inset
22296 </cell>
22297 </row>
22298 </lyxtabular>
22299
22300 \end_inset
22301
22302
22303 \end_layout
22304
22305 \begin_layout Itemize
22306 file revision information.
22307  The result comes from parsing the output of 
22308 \begin_inset Flex Code
22309 status collapsed
22310
22311 \begin_layout Plain Layout
22312 svn
22313 \begin_inset space ~
22314 \end_inset
22315
22316 info
22317 \begin_inset space ~
22318 \end_inset
22319
22320 --xml
22321 \begin_inset space ~
22322 \end_inset
22323
22324 file.lyx
22325 \end_layout
22326
22327 \end_inset
22328
22329 .
22330  Supported flags are:
22331 \end_layout
22332
22333 \begin_deeper
22334 \begin_layout Itemize
22335 version number of the last commit (
22336 \begin_inset Flex Code
22337 status collapsed
22338
22339 \begin_layout Plain Layout
22340 vcs-revision
22341 \end_layout
22342
22343 \end_inset
22344
22345 )
22346 \end_layout
22347
22348 \begin_layout Itemize
22349 author of the last commit (
22350 \begin_inset Flex Code
22351 status collapsed
22352
22353 \begin_layout Plain Layout
22354 vcs-author
22355 \end_layout
22356
22357 \end_inset
22358
22359 )
22360 \end_layout
22361
22362 \begin_layout Itemize
22363 date of the last commit (
22364 \begin_inset Flex Code
22365 status collapsed
22366
22367 \begin_layout Plain Layout
22368 vcs-date
22369 \end_layout
22370
22371 \end_inset
22372
22373 )
22374 \end_layout
22375
22376 \begin_layout Itemize
22377 time of the last commit (
22378 \begin_inset Flex Code
22379 status collapsed
22380
22381 \begin_layout Plain Layout
22382 vcs-time
22383 \end_layout
22384
22385 \end_inset
22386
22387 )
22388 \end_layout
22389
22390 \end_deeper
22391 \begin_layout Standard
22392 You can obtain this info via InsetInfo (
22393 \change_inserted 5863208 1564400022
22394
22395 \lang american
22396 Insert\SpecialChar menuseparator
22397 Field\SpecialChar menuseparator
22398 Version Control Revision
22399 \change_deleted 5863208 1564399852
22400
22401 \lang english
22402 e.g.
22403  
22404 \begin_inset Flex Code
22405 status collapsed
22406
22407 \begin_layout Plain Layout
22408 info-insert buffer vcs-date
22409 \end_layout
22410
22411 \end_inset
22412
22413
22414 \change_unchanged
22415 ).
22416  The information will be available only when you have the file stored under
22417  svn managment (i.e.
22418  the 
22419 \begin_inset Flex Code
22420 status collapsed
22421
22422 \begin_layout Plain Layout
22423 .svn
22424 \end_layout
22425
22426 \end_inset
22427
22428  directory is available with your document).
22429 \end_layout
22430
22431 \end_deeper
22432 \begin_layout Itemize
22433 Another—a hacking one—possibility is to use svn keywords
22434 \begin_inset Foot
22435 status collapsed
22436
22437 \begin_layout Plain Layout
22438 http://svnbook.red-bean.com/en/1.4/svn.advanced.props.special.keywords.html
22439 \end_layout
22440
22441 \end_inset
22442
22443 .
22444  In short – you set file keywords property (e.g.
22445  
22446 \family sans
22447 svn propset svn:keywords 'Rev' file.lyx
22448 \family default
22449 ) and then paste keyword \SpecialChar TeX
22450  code
22451 \begin_inset Foot
22452 status collapsed
22453
22454 \begin_layout Plain Layout
22455 This is an easy way how to ensure that \SpecialChar LyX
22456  won't break the line in the middle
22457  of keyword tag.
22458 \end_layout
22459
22460 \end_inset
22461
22462  tag in your document (e.g.
22463  
22464 \begin_inset Flex Code
22465 status collapsed
22466
22467 \begin_layout Plain Layout
22468 $Rev$
22469 \end_layout
22470
22471 \end_inset
22472
22473 ).
22474  This way svn client will automatically substitute revision number (e.g.
22475  
22476 \begin_inset Flex Code
22477 status collapsed
22478
22479 \begin_layout Plain Layout
22480 $Rev: 59 $
22481 \end_layout
22482
22483 \end_inset
22484
22485 ) after each update and commit.
22486  There are more problems with this approach.
22487  Firstly, the '$' character is used in \SpecialChar TeX
22488  world for math equations, so any
22489  occurence of math formula 
22490 \begin_inset Formula $Rev$
22491 \end_inset
22492
22493  become 
22494 \begin_inset Formula $Rev:59$
22495 \end_inset
22496
22497  in your \SpecialChar LyX
22498  document.
22499  Similarly for other keywords like Id, Date, Author, etc.
22500  Secondly svn output is dependent on your locales, so its very easy that
22501  svn would produce some problematic strings once Date is used.
22502  Thirdly you get the whole 'Rev: 59' string in your document instead of
22503  the plain number.
22504  Until subversion implements user's custom keywords it will be hard to use
22505  this approach reliably or let \SpecialChar LyX
22506  to support it directly.
22507 \end_layout
22508
22509 \begin_layout Subsection
22510 SVN and Windows Environment
22511 \end_layout
22512
22513 \begin_layout Quote
22514 My inclination is to say that if the user cannot figure out the command
22515  line operations on their own fairly quickly, they would be well advised
22516  to use TortoiseSVN.
22517  —P.
22518  A.
22519  Rubin
22520 \end_layout
22521
22522 \begin_layout Subsubsection
22523 Preparation
22524 \end_layout
22525
22526 \begin_layout Standard
22527 In addition to installing \SpecialChar LyX
22528 , and having access to a Subversion repository,
22529  the user will need to install the Subversion client program.
22530  A Windows installer for the client program is available from 
22531 \begin_inset CommandInset href
22532 LatexCommand href
22533 name "CollabNet"
22534 target "http://www.collab.net/nonav/downloads/subversion/"
22535 literal "false"
22536
22537 \end_inset
22538
22539 .
22540  The user may also want to install 
22541 \begin_inset CommandInset href
22542 LatexCommand href
22543 name "TortoiseSVN"
22544 target "http://tortoisesvn.tigris.org/"
22545 literal "false"
22546
22547 \end_inset
22548
22549 , which integrates Subversion operations into the context (rightclick) menu
22550  of Windows Explorer.
22551  Operations done outside \SpecialChar LyX
22552  will typically be more convenient using the Explorer
22553  context menu.
22554  Note that TortoiseSVN is not a replacement for the client program, which
22555  is what \SpecialChar LyX
22556  itself will use.
22557 \end_layout
22558
22559 \begin_layout Subsubsection
22560 Bringing a document under Subversion control
22561 \end_layout
22562
22563 \begin_layout Standard
22564 Before a \SpecialChar LyX
22565  document can be brought under version control in Subversion, its
22566  parent directory needs to be under version control.
22567  If the document is being added to a project already in the repository,
22568  this is accomplished by checking the project out to the directory where
22569  the new document will be placed.
22570  If the project itself is not yet under version control (for instance, if
22571  this document starts a new project), the directory must be imported into
22572  the repository.
22573  This is done outside \SpecialChar LyX
22574 .
22575  Both import and checkout are easily accomplished from the Explorer context
22576  menu using TortoiseSVN, or alternatively can be done using the command
22577  line client at a DOS prompt.
22578  The procedure for importing the project using TortoiseSVN is described
22579  below, assuming an existing repository and a new project being started
22580  in 
22581 \family typewriter
22582 C:
22583 \backslash
22584 new project
22585 \family default
22586 .
22587  For information on using the Subversion client program, run 
22588 \family typewriter
22589 svn --help 
22590 \family default
22591 in a DOS shell.
22592 \end_layout
22593
22594 \begin_layout Enumerate
22595 Locate 
22596 \family typewriter
22597 C:
22598 \backslash
22599 new project 
22600 \family default
22601 in Windows Explorer, right click it, and select 
22602 \family sans
22603 TortoiseSVN\SpecialChar menuseparator
22604 Repo-browser
22605 \family default
22606 .
22607  If necessary, adjust the URL for the repository, then click OK.
22608 \end_layout
22609
22610 \begin_layout Enumerate
22611 Right click the level of the repository under which you want to place the
22612  new project folder (typically the top level) and click 
22613 \family sans
22614 Create folder
22615 \family default
22616  Supply a name for the project folder and click OK.
22617  Add a message for the log file if desired, then click OK again.
22618  The new project folder should appear in the repository.
22619  Finally, click OK again to exit the repository browser.
22620 \end_layout
22621
22622 \begin_layout Enumerate
22623 Once again right click 
22624 \family typewriter
22625 C:
22626 \backslash
22627 new project
22628 \family default
22629 , this time selecting SVN Checkout\SpecialChar ldots
22630  Select the URL of the project folder
22631  you just created in the repository, and set the checkout directory to 
22632 \family typewriter
22633 C:
22634 \backslash
22635 new project.
22636
22637 \family default
22638  Click OK.
22639  You will be warned about a non-empty folder; click OK to proceed.
22640  You should now have a 
22641 \family typewriter
22642 .svn
22643 \family default
22644  directory under 
22645 \family typewriter
22646 C:
22647 \backslash
22648 new project.
22649 \end_layout
22650
22651 \begin_layout Enumerate
22652 Create or open your document in \SpecialChar LyX
22653  and click 
22654 \family sans
22655 File\SpecialChar menuseparator
22656 Version
22657 \begin_inset space ~
22658 \end_inset
22659
22660 Control\SpecialChar menuseparator
22661 Register.
22662  
22663 \family default
22664 Add a log message and click OK to commit the document to version control.
22665 \end_layout
22666
22667 \begin_layout Standard
22668 From this point onward, you should have full functionality in the 
22669 \family sans
22670 File\SpecialChar menuseparator
22671 Version
22672 \begin_inset space ~
22673 \end_inset
22674
22675 Control
22676 \family default
22677  menu.
22678  You also have the option of checking the document in and out, viewing its
22679  history, etc.
22680  using the TortoiseSVN context menu in Windows Explorer or the Subversion
22681  client program from a command prompt.
22682 \end_layout
22683
22684 \begin_layout Subsubsection
22685 SSH tunnel used with SVN under Windows
22686 \end_layout
22687
22688 \begin_layout Standard
22689 Compared with Linux setting up an svn client to communicate over ssh under
22690  Windows is a rather troublesome task.
22691  We will at least offer some hints how to setup the client side but prior
22692  knowledge about ssh and the Windows command line is needed, also be prepared
22693  for a great deal of frustration\SpecialChar ldots
22694
22695 \end_layout
22696
22697 \begin_layout Enumerate
22698 Get an svn client for windows, as described in the previous sections.
22699  When it is a fresh install run some svn command (e.g.
22700  
22701 \begin_inset Flex Code
22702 status collapsed
22703
22704 \begin_layout Plain Layout
22705 svn --version
22706 \end_layout
22707
22708 \end_inset
22709
22710 ) to create config files, which you will need to change later on.
22711 \end_layout
22712
22713 \begin_layout Enumerate
22714 Choose an ssh client for Windows.
22715  There are several possibilities, we will use the one from Putty tools
22716 \begin_inset Foot
22717 status collapsed
22718
22719 \begin_layout Plain Layout
22720 \begin_inset Flex URL
22721 status collapsed
22722
22723 \begin_layout Plain Layout
22724
22725 http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html
22726 \end_layout
22727
22728 \end_inset
22729
22730
22731 \end_layout
22732
22733 \end_inset
22734
22735 .
22736  You will need to set the connection up so that the client doesn't ask for
22737  any password from you.
22738  To keep things easy we will use only keys without any additional password
22739  protection etc.
22740 \end_layout
22741
22742 \begin_deeper
22743 \begin_layout Enumerate
22744 Generate keys by 
22745 \begin_inset Flex Code
22746 status collapsed
22747
22748 \begin_layout Plain Layout
22749 puttygen
22750 \end_layout
22751
22752 \end_inset
22753
22754 .
22755  Save your private .ppk key file and put the public one on the server side.
22756  If the SVN server runs on Linux, note that the format of the public key
22757  is not compatible with Linux openssh and you will need to direcly copy-paste
22758  the key from the 
22759 \begin_inset Quotes eld
22760 \end_inset
22761
22762
22763 \emph on
22764 Public key for pasting into OpenSSH authorized_keys file
22765 \emph default
22766 :
22767 \begin_inset Quotes erd
22768 \end_inset
22769
22770  edit field into the server's 
22771 \begin_inset Flex Code
22772 status collapsed
22773
22774 \begin_layout Plain Layout
22775 ~/.ssh/authorized_keys
22776 \end_layout
22777
22778 \end_inset
22779
22780  / 
22781 \begin_inset Flex Code
22782 status collapsed
22783
22784 \begin_layout Plain Layout
22785 authorized_keys2
22786 \end_layout
22787
22788 \end_inset
22789
22790  file.
22791 \end_layout
22792
22793 \begin_layout Enumerate
22794 Get the Putty's 
22795 \begin_inset Flex Code
22796 status collapsed
22797
22798 \begin_layout Plain Layout
22799 plink
22800 \end_layout
22801
22802 \end_inset
22803
22804 .
22805  In the SVN config file
22806 \begin_inset Foot
22807 status collapsed
22808
22809 \begin_layout Plain Layout
22810 Exact path depends on Windows version, usually somewhere around 
22811 \begin_inset Flex Code
22812 status collapsed
22813
22814 \begin_layout Plain Layout
22815 c:
22816 \backslash
22817 Documents and Settings
22818 \backslash
22819 user
22820 \backslash
22821 Application Data
22822 \backslash
22823 Subversion
22824 \backslash
22825 config
22826 \end_layout
22827
22828 \end_inset
22829
22830  / 
22831 \begin_inset Flex Code
22832 status collapsed
22833
22834 \begin_layout Plain Layout
22835 AppData
22836 \backslash
22837 Roaming
22838 \backslash
22839 Subversion
22840 \end_layout
22841
22842 \end_inset
22843
22844 .
22845 \end_layout
22846
22847 \end_inset
22848
22849 , section [tunnels], setup ssh command, e.g.
22850  
22851 \begin_inset Flex Code
22852 status collapsed
22853
22854 \begin_layout Plain Layout
22855 ssh=c:/path/plink.exe -i c:/path/private_key.ppk
22856 \end_layout
22857
22858 \end_inset
22859
22860 .
22861 \begin_inset Foot
22862 status collapsed
22863
22864 \begin_layout Plain Layout
22865 It will usually take a lot of time to get exact command right and it depends
22866  on many things.
22867  For example do not have some remote server saved as a default session in
22868  Putty etc.
22869  If things fail, try to connect via plink without SVN first.
22870 \end_layout
22871
22872 \end_inset
22873
22874
22875 \end_layout
22876
22877 \end_deeper
22878 \begin_layout Enumerate
22879 Checkout the SVN archive, e.
22880 \begin_inset space \thinspace{}
22881 \end_inset
22882
22883 g.
22884 \begin_inset Newline newline
22885 \end_inset
22886
22887
22888 \begin_inset Flex Code
22889 status collapsed
22890
22891 \begin_layout Plain Layout
22892 svn co svn+ssh://user@server/repository_path
22893 \end_layout
22894
22895 \end_inset
22896
22897 .
22898 \end_layout
22899
22900 \begin_layout Subsubsection
22901 End-of-Line Conversions
22902 \end_layout
22903
22904 \begin_layout Standard
22905 When the collaborators are mixing Linux and Windows environments, \SpecialChar LyX
22906  will
22907  use different line endings inside the .lyx files.
22908  This is not a problem as far as \SpecialChar LyX
22909  functionality is concerned, but the commit
22910  diffs will be huge and merge-conflicts prone.
22911  Fortunately SVN itself knows
22912 \begin_inset Foot
22913 status collapsed
22914
22915 \begin_layout Plain Layout
22916 \begin_inset Flex URL
22917 status collapsed
22918
22919 \begin_layout Plain Layout
22920
22921 http://svnbook.red-bean.com/en/1.4/svn.advanced.props.file-portability.html
22922 \end_layout
22923
22924 \end_inset
22925
22926
22927 \end_layout
22928
22929 \end_inset
22930
22931  how to deal with CR/LF problems when switching .lyx files to the 
22932 \begin_inset Flex Code
22933 status collapsed
22934
22935 \begin_layout Plain Layout
22936 native
22937 \end_layout
22938
22939 \end_inset
22940
22941  mode.
22942 \begin_inset Foot
22943 status collapsed
22944
22945 \begin_layout Plain Layout
22946 For the lazy guys: 
22947 \begin_inset Flex Code
22948 status collapsed
22949
22950 \begin_layout Plain Layout
22951 svn propset svn:eol-style native FILE_NAME
22952 \end_layout
22953
22954 \end_inset
22955
22956
22957 \end_layout
22958
22959 \end_inset
22960
22961
22962 \end_layout
22963
22964 \begin_layout Subsection
22965 GIT commands in \SpecialChar LyX
22966
22967 \end_layout
22968
22969 \begin_layout Standard
22970 A minimal subset of GIT commands is now supported by \SpecialChar LyX
22971 .
22972  You can find the commands in the 
22973 \family sans
22974 File\SpecialChar menuseparator
22975 Version
22976 \begin_inset space ~
22977 \end_inset
22978
22979 Control
22980 \family default
22981  submenu.
22982  Please note that if you use password protected access to repository via
22983  ssh, you will be asked in terminal window.
22984  \SpecialChar LyX
22985  was tested against GIT 1.7.
22986 \begin_inset Foot
22987 status collapsed
22988
22989 \begin_layout Plain Layout
22990 Windows users please note that you need to ensure that git is on the path.
22991  This can be set from within \SpecialChar LyX
22992  at 
22993 \family sans
22994 Tools\SpecialChar menuseparator
22995 Preferences\SpecialChar menuseparator
22996 Paths\SpecialChar menuseparator
22997 PATH prefix
22998 \family default
22999 .
23000 \end_layout
23001
23002 \end_inset
23003
23004
23005 \end_layout
23006
23007 \begin_layout Standard
23008 One big difference of GIT and the other supported version control systems
23009  is the distributed nature of GIT: With traditional version control systems
23010  there is one central server which hosts the repository.
23011  Users commit their changes to the server, and get updates made by other
23012  users from it.
23013  With GIT, users commit to a local repository.
23014  The local repository can be synchronized with one or more remote repositories
23015  using the 
23016 \begin_inset Flex Code
23017 status collapsed
23018
23019 \begin_layout Plain Layout
23020 pull
23021 \end_layout
23022
23023 \end_inset
23024
23025  and 
23026 \begin_inset Flex Code
23027 status collapsed
23028
23029 \begin_layout Plain Layout
23030 push
23031 \end_layout
23032
23033 \end_inset
23034
23035  GIT commands.
23036  \SpecialChar LyX
23037  does not interact in any way with remote GIT repositories.
23038  It works exclusively with the local repository in a very similar way as
23039  with a central CVS or SVN repository.
23040  If you use remote GIT repositories you need to do the 
23041 \begin_inset Flex Code
23042 status collapsed
23043
23044 \begin_layout Plain Layout
23045 pull
23046 \end_layout
23047
23048 \end_inset
23049
23050  and 
23051 \begin_inset Flex Code
23052 status collapsed
23053
23054 \begin_layout Plain Layout
23055 push
23056 \end_layout
23057
23058 \end_inset
23059
23060  operations with your favourite GIT client.
23061 \end_layout
23062
23063 \begin_layout Subsubsection
23064
23065 \family sans
23066 Register
23067 \end_layout
23068
23069 \begin_layout Standard
23070 If your document is not under revision control, this is the only item shown
23071  in the menu.
23072  And if it is under revision control, the 
23073 \family sans
23074 Register
23075 \family default
23076  item is not visible.
23077 \end_layout
23078
23079 \begin_layout Standard
23080 This command registers in GIT your document ONLY in case you have already
23081  the documents directory under GIT control (in particular 
23082 \family typewriter
23083 .git/index
23084 \family default
23085  file exists).
23086  This means you have to checkout the archive by yourself.
23087 \end_layout
23088
23089 \begin_layout Standard
23090 Then you are asked interactively to supply an initial description of the
23091  document.
23092  Don't forget that registered file is not yet committed.
23093 \end_layout
23094
23095 \begin_layout Standard
23096 GIT command that is run: 
23097 \family typewriter
23098 git add 
23099 \begin_inset Quotes qld
23100 \end_inset
23101
23102 <file-name>
23103 \begin_inset Quotes qld
23104 \end_inset
23105
23106
23107 \end_layout
23108
23109 \begin_layout Standard
23110 Read 
23111 \family typewriter
23112 man git
23113 \family default
23114  to understand the switches.
23115 \end_layout
23116
23117 \begin_layout Subsubsection
23118
23119 \family sans
23120 Check In Changes
23121 \end_layout
23122
23123 \begin_layout Standard
23124 When you are finished editing a file, you commit your changes.
23125  When you do this, you are asked for a description of the changes.
23126  After that changes are committed.
23127 \end_layout
23128
23129 \begin_layout Standard
23130 GIT command: 
23131 \family typewriter
23132 git commit -q -m"<description>" <file-name>
23133 \end_layout
23134
23135 \begin_layout Subsubsection
23136
23137 \family sans
23138 Revert To Repository Version
23139 \end_layout
23140
23141 \begin_layout Standard
23142 This will discard all changes made to the document since the last check
23143  in.
23144  You get a warning before changes are discarded.
23145 \end_layout
23146
23147 \begin_layout Standard
23148 GIT command: 
23149 \family typewriter
23150 git checkout -q 
23151 \begin_inset Quotes qld
23152 \end_inset
23153
23154 <file-name>
23155 \begin_inset Quotes qld
23156 \end_inset
23157
23158
23159 \end_layout
23160
23161 \begin_layout Subsubsection
23162
23163 \family sans
23164 Rename
23165 \end_layout
23166
23167 \begin_layout Standard
23168 This will rename the current document including the version history.
23169  It requires a clean document without any changes since the last checkin.
23170  You are asked for a file name and a description of the rename operation.
23171  After that the document is renamed, both locally and in the repository.
23172  If the parent directories of the new and old file names differ, all relative
23173  paths of included files are adjusted (like in 
23174 \family sans
23175 File\SpecialChar menuseparator
23176 Save As
23177 \family default
23178 \SpecialChar ldots
23179 ).
23180  Finally, the document is reloaded using the new name.
23181 \end_layout
23182
23183 \begin_layout Labeling
23184 \labelwidthstring 00.00.0000
23185 GIT
23186 \begin_inset space ~
23187 \end_inset
23188
23189 commands: 
23190 \begin_inset space ~
23191 \end_inset
23192
23193
23194 \begin_inset Newline newline
23195 \end_inset
23196
23197
23198 \begin_inset Flex Code
23199 status collapsed
23200
23201 \begin_layout Plain Layout
23202 git mv 
23203 \family typewriter
23204
23205 \begin_inset Quotes qld
23206 \end_inset
23207
23208 <file-name>
23209 \begin_inset Quotes qld
23210 \end_inset
23211
23212  
23213 \begin_inset Quotes qld
23214 \end_inset
23215
23216 <new-file-name>
23217 \begin_inset Quotes qld
23218 \end_inset
23219
23220
23221 \end_layout
23222
23223 \end_inset
23224
23225
23226 \begin_inset Newline newline
23227 \end_inset
23228
23229
23230 \begin_inset Flex Code
23231 status collapsed
23232
23233 \begin_layout Plain Layout
23234 git commit
23235 \end_layout
23236
23237 \end_inset
23238
23239
23240 \end_layout
23241
23242 \begin_layout Subsubsection
23243
23244 \family sans
23245 Show History
23246 \end_layout
23247
23248 \begin_layout Standard
23249 This shows the complete history of the GIT document.
23250  The output of 
23251 \family typewriter
23252 git log 
23253 \begin_inset Quotes qld
23254 \end_inset
23255
23256 <file-name>
23257 \begin_inset Quotes qld
23258 \end_inset
23259
23260
23261 \family default
23262  is shown in a browser.
23263 \end_layout
23264
23265 \begin_layout Subsubsection
23266 Version Info
23267 \end_layout
23268
23269 \begin_layout Standard
23270 \SpecialChar LyX
23271  supports GIT hash number of the last commit to the file, 
23272 \change_inserted 1119979965 1564297456
23273 its abbreviated form, 
23274 \change_unchanged
23275 author name, date and time of last commit.
23276  All those are extracted from 
23277 \family typewriter
23278 git log -n 1 --pretty=format:%H%n
23279 \change_inserted 1119979965 1564297427
23280 %h%n
23281 \change_unchanged
23282 %an%n%ai
23283 \family default
23284 .
23285  Tree version information is obtained via 
23286 \family typewriter
23287 git describe --abbrev --dirty --long
23288 \family default
23289 .
23290  See 
23291 \begin_inset CommandInset ref
23292 LatexCommand ref
23293 reference "subsec:VCS-Revision-Information"
23294
23295 \end_inset
23296
23297  for other details.
23298 \end_layout
23299
23300 \begin_layout Subsection
23301 Further tuning
23302 \end_layout
23303
23304 \begin_layout Standard
23305 With the recent addition of the 
23306 \begin_inset Flex Code
23307 status collapsed
23308
23309 \begin_layout Plain Layout
23310 vc-command
23311 \end_layout
23312
23313 \end_inset
23314
23315  function \SpecialChar LyX
23316  power users are allowed to create their own commands for revision
23317  control.
23318 \end_layout
23319
23320 \begin_layout Standard
23321 As an example you can see how two TortoiseSVN commands could be integrated
23322  directly:
23323 \end_layout
23324
23325 \begin_layout Description
23326 Commit: 
23327 \begin_inset Flex Code
23328 status collapsed
23329
23330 \begin_layout Plain Layout
23331 vc-command DR "." "TortoiseProc /command:commit /path:$$p"
23332 \end_layout
23333
23334 \end_inset
23335
23336
23337 \end_layout
23338
23339 \begin_layout Description
23340 Revert: 
23341 \begin_inset Flex Code
23342 status collapsed
23343
23344 \begin_layout Plain Layout
23345 vc-command DR "." "TortoiseProc /command:revert /path:$$p"
23346 \end_layout
23347
23348 \end_inset
23349
23350
23351 \end_layout
23352
23353 \begin_layout Subsection
23354 Version control and Document comparison
23355 \end_layout
23356
23357 \begin_layout Standard
23358 One of the typical uses of version control is to inspect the changes between
23359  revisions, usually by creating 
23360 \begin_inset Flex Code
23361 status collapsed
23362
23363 \begin_layout Plain Layout
23364 diff
23365 \end_layout
23366
23367 \end_inset
23368
23369  dumps.
23370  While this is useful for plain text files, it is much less useful in the
23371  case of \SpecialChar LyX
23372  files, which have more a complicated structure.
23373  Hence we provide binding to the Document comparison feature.
23374  There are two ways of calling this feature – either by direct call of 
23375 \begin_inset Flex Code
23376 status collapsed
23377
23378 \begin_layout Plain Layout
23379 vc-compare
23380 \end_layout
23381
23382 \end_inset
23383
23384  \SpecialChar LyX
23385  function (for details see \SpecialChar LyX
23386  functions manual) or by the toolbar icon 
23387 \begin_inset Info
23388 type  "icon"
23389 arg   "vc-compare"
23390 \end_inset
23391
23392  or the menu item 
23393 \begin_inset Info
23394 type  "menu"
23395 arg   "vc-compare"
23396 \end_inset
23397
23398 , respectively.
23399  One can either compare two chosen revisions of the document or he can simply
23400  compare the current version of edited text with older revisions (where
23401  '
23402 \begin_inset Flex Noun
23403 status collapsed
23404
23405 \begin_layout Plain Layout
23406 0
23407 \end_layout
23408
23409 \end_inset
23410
23411 ' revisions back means comparison of the edited file with last commited
23412  revision).
23413  
23414 \end_layout
23415
23416 \begin_layout Standard
23417 This feature is supported for SVN and RCS though due to the more complicated
23418  versioning scheme of RCS there is a constraint – when addressing the revisions
23419  in dialog, numbers always point to the last number in RCS revision number,
23420  i.e.
23421  '35' in '1.2.35'.
23422  We don't currently support GIT addressing of revisions, one can just compare
23423  edited document with its revision X steps backs, where X is addressed as
23424  
23425 \begin_inset Flex Code
23426 status collapsed
23427
23428 \begin_layout Plain Layout
23429 HEAD~X
23430 \end_layout
23431
23432 \end_inset
23433
23434 .
23435 \end_layout
23436
23437 \begin_layout Section
23438 Literate Programming
23439 \end_layout
23440
23441 \begin_layout Standard
23442 Updated by 
23443 \noun on
23444 Kayvan Sylvan 
23445 \noun default
23446 (kayvan@sylvan.com)
23447 \noun on
23448
23449 \noun default
23450 original documentation written by 
23451 \noun on
23452 Edmar Wienskoski Jr.
23453
23454 \noun default
23455  (edmar-w-jr@technologist.com)
23456 \end_layout
23457
23458 \begin_layout Subsection
23459 Introduction
23460 \end_layout
23461
23462 \begin_layout Standard
23463 The main purpose of this documentation is to show you how to use \SpecialChar LyX
23464  for literate
23465  programming, where it is assumed that you are familiar with this programming
23466  technique, and know what 
23467 \begin_inset Quotes eld
23468 \end_inset
23469
23470 tangling
23471 \begin_inset Quotes erd
23472 \end_inset
23473
23474  and 
23475 \begin_inset Quotes eld
23476 \end_inset
23477
23478 weaving
23479 \begin_inset Quotes erd
23480 \end_inset
23481
23482  means.
23483  If that is not the case, please follow the web links provided in the following
23484  sections.
23485  There is a lot of good documentation out there covering old development
23486  history to the latest tools tips.
23487 \end_layout
23488
23489 \begin_layout Standard
23490 It is also assumed that you are familiar with \SpecialChar LyX
23491  itself to a point that you
23492  are comfortable changing your \SpecialChar LyX
23493  preferences, and X resources file.
23494  If that is not the case please refer to other \SpecialChar LyX
23495  documentation to cover your
23496  specific needs.
23497 \end_layout
23498
23499 \begin_layout Subsection
23500 Literate Programming
23501 \end_layout
23502
23503 \begin_layout Standard
23504 From the Literate Programming FAQ: 
23505 \end_layout
23506
23507 \begin_layout Quotation
23508 Literate programming is the combination of documentation and source together
23509  in a fashion suited for reading by human beings.
23510  In fact, literate programs should be enjoyable reading, even inviting!
23511  (Sorry Bob, I couldn't resist!) In general, literate programs combine source
23512  and documentation in a single file.
23513  Literate programming tools then parse the file to produce either readable
23514  documentation or compilable source.
23515  The WEB style of literate programming was created by D.
23516 \begin_inset space \thinspace{}
23517 \end_inset
23518
23519 E.
23520  Knuth during the development of his \SpecialChar TeX
23521  typesetting software.
23522  
23523 \end_layout
23524
23525 \begin_layout Standard
23526 Another excerpt says:
23527 \end_layout
23528
23529 \begin_layout Quotation
23530
23531 \emph on
23532 How is literate programming different from verbose commenting?
23533 \end_layout
23534
23535 \begin_layout Quotation
23536 There are three distinguishing characteristics.
23537  In order of importance, they are: 
23538 \end_layout
23539
23540 \begin_deeper
23541 \begin_layout Itemize
23542 flexible order of elaboration 
23543 \end_layout
23544
23545 \begin_layout Itemize
23546 automatic support for browsing 
23547 \end_layout
23548
23549 \begin_layout Itemize
23550 typeset documentation, especially diagrams and mathematics 
23551 \end_layout
23552
23553 \end_deeper
23554 \begin_layout Standard
23555 Now that I sparked your curiosity, take a look in the references.
23556 \end_layout
23557
23558 \begin_layout Subsubsection
23559 References
23560 \end_layout
23561
23562 \begin_layout Standard
23563 The complete Literate Programming FAQ can be found at:
23564 \end_layout
23565
23566 \begin_layout Quote
23567 Literate Programming FAQ 
23568 \begin_inset Flex URL
23569 status open
23570
23571 \begin_layout Plain Layout
23572
23573 http://www.literateprogramming.com/lpfaq.pdf
23574 \end_layout
23575
23576 \end_inset
23577
23578
23579 \end_layout
23580
23581 \begin_layout Standard
23582 The FAQ lists 23 (twenty three!) different literate programming tools.
23583  Where some are specialized or 
23584 \begin_inset Quotes eld
23585 \end_inset
23586
23587 tailored
23588 \begin_inset Quotes erd
23589 \end_inset
23590
23591  for particular programming languages, while other have general scope.
23592  I selected 
23593 \noun on
23594 Noweb
23595 \noun default
23596  for my own use for several reasons:
23597 \end_layout
23598
23599 \begin_layout Itemize
23600 It can generate the documentation either in \SpecialChar LaTeX
23601  or HTML.
23602 \end_layout
23603
23604 \begin_layout Itemize
23605 It has a open architecture, i.
23606 \begin_inset space \thinspace{}
23607 \end_inset
23608
23609 e.
23610 \begin_inset space \space{}
23611 \end_inset
23612
23613 it is easy to plug in new filters
23614 \begin_inset Foot
23615 status collapsed
23616
23617 \begin_layout Plain Layout
23618
23619 \emph on
23620 Filters 
23621 \emph default
23622 are programs that read a given data stream and output a manipulated data
23623  stream.
23624  That way, a WEB file (consisting of literate code) can be turned into a
23625  file consisting only of C program code or \SpecialChar LaTeX
23626  code.
23627 \end_layout
23628
23629 \end_inset
23630
23631  and to perform special processing that you may need.
23632  
23633 \end_layout
23634
23635 \begin_layout Itemize
23636 There is a good selection of filters available already (the HTML is one
23637  of them).
23638 \end_layout
23639
23640 \begin_layout Itemize
23641 It is free.
23642 \end_layout
23643
23644 \begin_layout Standard
23645 The Noweb web page can be found at: 
23646 \end_layout
23647
23648 \begin_layout Quote
23649 Noweb home page 
23650 \begin_inset Flex URL
23651 status collapsed
23652
23653 \begin_layout Plain Layout
23654
23655 https://www.cs.tufts.edu/~nr/noweb/
23656 \end_layout
23657
23658 \end_inset
23659
23660
23661 \end_layout
23662
23663 \begin_layout Standard
23664 Starting from there you can reach many other interesting links and even
23665  some literate program examples.
23666 \end_layout
23667
23668 \begin_layout Subsection
23669 \SpecialChar LyX
23670  and Literate Programming with Noweb
23671 \end_layout
23672
23673 \begin_layout Standard
23674 The \SpecialChar LyX
23675  support for Literate Programming is provided by using the generic \SpecialChar LyX
23676
23677  converters mechanism.
23678  This support is provided in a 
23679 \begin_inset Quotes eld
23680 \end_inset
23681
23682 Noweb independent
23683 \begin_inset Quotes erd
23684 \end_inset
23685
23686  way, i.
23687 \begin_inset space \thinspace{}
23688 \end_inset
23689
23690 e.
23691 \begin_inset space \space{}
23692 \end_inset
23693
23694 you will be able to use this new \SpecialChar LyX
23695  feature with some other literate programming
23696  tool of your choice by just changing your \SpecialChar LyX
23697  preferences.
23698 \end_layout
23699
23700 \begin_layout Subsubsection
23701 Generating documents and code (weaving and tangling)
23702 \end_layout
23703
23704 \begin_layout Paragraph
23705 Using the noweb module
23706 \end_layout
23707
23708 \begin_layout Standard
23709 If you have installed Noweb and \SpecialChar LyX
23710  successfully, whenever you open a new document,
23711  after you have chosen its document class, use the 
23712 \family sans
23713 Document\SpecialChar menuseparator
23714 Settings
23715 \family default
23716  menu to add the 
23717 \begin_inset Quotes eld
23718 \end_inset
23719
23720 noweb
23721 \begin_inset Quotes erd
23722 \end_inset
23723
23724  module.
23725  If Noweb is correctly installed, when you click on the 
23726 \begin_inset Quotes eld
23727 \end_inset
23728
23729 Modules
23730 \begin_inset Quotes erd
23731 \end_inset
23732
23733  link, you will see the 
23734 \begin_inset Quotes eld
23735 \end_inset
23736
23737 noweb
23738 \begin_inset Quotes erd
23739 \end_inset
23740
23741  module in the available list and you can add it to your document.
23742 \end_layout
23743
23744 \begin_layout Paragraph
23745 Typing code in
23746 \end_layout
23747
23748 \begin_layout Standard
23749 \SpecialChar LyX
23750  enables you to write code with a custom inset named 
23751 \begin_inset Flex Noun
23752 status collapsed
23753
23754 \begin_layout Plain Layout
23755 Chunk
23756 \end_layout
23757
23758 \end_inset
23759
23760 .
23761  Noweb delimits chunks like this:
23762 \end_layout
23763
23764 \begin_layout LyX-Code
23765 <<My code>>=
23766 \end_layout
23767
23768 \begin_layout LyX-Code
23769   code
23770 \end_layout
23771
23772 \begin_layout LyX-Code
23773   more code
23774 \end_layout
23775
23776 \begin_layout LyX-Code
23777   even more code
23778 \end_layout
23779
23780 \begin_layout LyX-Code
23781   @
23782 \end_layout
23783
23784 \begin_layout Standard
23785 The problem is that whatever is written in between the << and the 
23786 \family typewriter
23787 @
23788 \family default
23789  must be taken literally, i.
23790 \begin_inset space \thinspace{}
23791 \end_inset
23792
23793 e.
23794 \begin_inset space \space{}
23795 \end_inset
23796
23797 \SpecialChar LyX
23798  should be prevented from making any special interpretation of what has
23799  been written.
23800  This is also handled by 
23801 \begin_inset Flex Noun
23802 status collapsed
23803
23804 \begin_layout Plain Layout
23805 Chunk
23806 \end_layout
23807
23808 \end_inset
23809
23810 , that works like a normal text inset but has a free spacing capability.
23811 \end_layout
23812
23813 \begin_layout Standard
23814 As a special note, you can also use the 
23815 \begin_inset Quotes eld
23816 \end_inset
23817
23818 %def
23819 \begin_inset Quotes erd
23820 \end_inset
23821
23822  construct of Noweb in your chunks to add items to Noweb's identifier cross-refe
23823 rence:
23824 \end_layout
23825
23826 \begin_layout LyX-Code
23827 <<My chunk>>=
23828 \end_layout
23829
23830 \begin_layout LyX-Code
23831 def some_function(args):
23832 \end_layout
23833
23834 \begin_layout LyX-Code
23835    "This is the doc string for this function."
23836 \end_layout
23837
23838 \begin_layout LyX-Code
23839    print "My args: ", args
23840 \end_layout
23841
23842 \begin_layout LyX-Code
23843 @ %def some_function
23844 \end_layout
23845
23846 \begin_layout Standard
23847 For an example of this usage and the resulting cross-reference output, look
23848  at the Literate python program in 
23849 \emph on
23850 LIBDIR/examples/listerrors.lyx
23851 \emph default
23852  which should make this all clear.
23853 \end_layout
23854
23855 \begin_layout Paragraph
23856 Generating the documentation
23857 \end_layout
23858
23859 \begin_layout Standard
23860 At this point you already have a new document file with a proper document
23861  class, and with some code and text on it.
23862  How do I print it? The answer is simple, you select 
23863 \family sans
23864 View\SpecialChar menuseparator
23865 DVI,
23866 \family default
23867  etc.
23868  Just like you would do for a plain document.
23869  No special procedure is required.
23870 \end_layout
23871
23872 \begin_layout Standard
23873 To help orientate you, I will now explain what happens inside \SpecialChar LyX
23874 :
23875 \end_layout
23876
23877 \begin_layout Enumerate
23878 When the 
23879 \family sans
23880 Update\SpecialChar menuseparator
23881 DVI
23882 \family default
23883  menu option is chosen, a \SpecialChar LaTeX
23884  file is generated.
23885  
23886 \end_layout
23887
23888 \begin_deeper
23889 \begin_layout Standard
23890 If the document is of any literate class the generated file will be named
23891  with an extension name defined by the 
23892 \begin_inset Quotes eld
23893 \end_inset
23894
23895 literate
23896 \begin_inset Quotes erd
23897 \end_inset
23898
23899  format (defined in the Preferences panel), otherwise the file will have
23900  the usual 
23901 \family typewriter
23902 .tex
23903 \family default
23904  extension.
23905 \end_layout
23906
23907 \end_deeper
23908 \begin_layout Enumerate
23909 Note that the only difference so far is in the name of the file, no special
23910  processing is required by \SpecialChar LyX
23911 .
23912  Given that you formatted the code using the 
23913 \begin_inset Flex Noun
23914 status collapsed
23915
23916 \begin_layout Plain Layout
23917 Chunk
23918 \end_layout
23919
23920 \end_inset
23921
23922  inset that, by itself, takes care of the business.
23923 \end_layout
23924
23925 \begin_layout Enumerate
23926 If the document is of any literate class \SpecialChar LyX
23927  will then use the internal \SpecialChar LyX
23928  to
23929  Noweb converter, followed by the Noweb to \SpecialChar LaTeX
23930  converter
23931 \begin_inset Foot
23932 status collapsed
23933
23934 \begin_layout Plain Layout
23935 The converters are defined in the 
23936 \family sans
23937 Tools\SpecialChar menuseparator
23938 Preferences
23939 \family default
23940  panel, under the 
23941 \begin_inset Quotes eld
23942 \end_inset
23943
23944 Conversion
23945 \begin_inset Quotes erd
23946 \end_inset
23947
23948  tab.
23949  See section 
23950 \emph on
23951 Converters
23952 \emph default
23953  of the 
23954 \emph on
23955 Customization
23956 \emph default
23957  manual for general information about converters.
23958 \end_layout
23959
23960 \end_inset
23961
23962  to generate the \SpecialChar LaTeX
23963  file.
23964 \end_layout
23965
23966 \begin_deeper
23967 \begin_layout Standard
23968 Otherwise it will just skip this step.
23969 \end_layout
23970
23971 \end_deeper
23972 \begin_layout Enumerate
23973 Finally, \SpecialChar LaTeX
23974  is invoked and the regular post processing continues as in a plain
23975  document.
23976 \end_layout
23977
23978 \begin_layout Standard
23979 Independence from a particular 
23980 \begin_inset Quotes eld
23981 \end_inset
23982
23983 literate tool
23984 \begin_inset Quotes erd
23985 \end_inset
23986
23987  is easily achieved by changing the commands that are run by the various
23988  converters.
23989 \end_layout
23990
23991 \begin_layout Paragraph
23992 Generating the code
23993 \end_layout
23994
23995 \begin_layout Standard
23996 When the build menu option is chosen or the corresponding button in the
23997  toolbar is pressed, a \SpecialChar LaTeX
23998  file is generated just like step 1 above.
23999  Next, \SpecialChar LyX
24000  invokes the 
24001 \family typewriter
24002 Noweb->Program
24003 \family default
24004  converter.
24005  This converter needs to be defined by the user and is not installed by
24006  default, though the Program format is.
24007  This converter (like any other converter) will have two parts:
24008 \end_layout
24009
24010 \begin_layout Enumerate
24011 The converter program itself.
24012  This program performs the conversion from the one format to the other (in
24013  this case, from the Noweb format to the Program pseudo-format).
24014 \end_layout
24015
24016 \begin_layout Enumerate
24017 The error log parser.
24018  This is a program whose sole purpose is to rewrite error messages in a
24019  format that \SpecialChar LyX
24020  understands.
24021  This makes it possible for \SpecialChar LyX
24022  to place error boxes in the right places in
24023  the file buffer.
24024 \end_layout
24025
24026 \begin_layout Standard
24027 The first part, the 
24028 \begin_inset Quotes eld
24029 \end_inset
24030
24031 Converter
24032 \begin_inset Quotes erd
24033 \end_inset
24034
24035  setting, should be set to
24036 \end_layout
24037
24038 \begin_layout LyX-Code
24039
24040 \family typewriter
24041 build-script $$i
24042 \family default
24043  $$r
24044 \end_layout
24045
24046 \begin_layout Standard
24047 This basically means that \SpecialChar LyX
24048  will call 
24049 \begin_inset Quotes eld
24050 \end_inset
24051
24052 build-script
24053 \begin_inset Quotes erd
24054 \end_inset
24055
24056  (a program or script) with the name of the Noweb file (normally a file
24057  in the \SpecialChar LyX
24058  temp directory) and the directory path of the original \SpecialChar LyX
24059  file.
24060  
24061 \end_layout
24062
24063 \begin_layout Standard
24064 This is an implementation of 
24065 \begin_inset Quotes eld
24066 \end_inset
24067
24068 build-script
24069 \begin_inset Quotes erd
24070 \end_inset
24071
24072  that you can place in a directory on your path:
24073 \end_layout
24074
24075 \begin_layout LyX-Code
24076
24077 \family sans
24078 #!/bin/sh
24079 \end_layout
24080
24081 \begin_layout LyX-Code
24082
24083 \family sans
24084 #
24085 \end_layout
24086
24087 \begin_layout LyX-Code
24088
24089 \family sans
24090 notangle -Rbuild-script $1 | env NOWEB_SOURCE=$1 NOWEB_OUTPUT_DIR=$2 sh
24091 \end_layout
24092
24093 \begin_layout Standard
24094 The next part of the converter setting is the 
24095 \begin_inset Quotes eld
24096 \end_inset
24097
24098 Flags
24099 \begin_inset Quotes erd
24100 \end_inset
24101
24102  which is to be set to
24103 \end_layout
24104
24105 \begin_layout LyX-Code
24106
24107 \family typewriter
24108 parselog=$$s/scripts/listerrors
24109 \end_layout
24110
24111 \begin_layout Standard
24112 This will run any errors that are generated by the 
24113 \begin_inset Quotes eld
24114 \end_inset
24115
24116 build-script
24117 \begin_inset Quotes erd
24118 \end_inset
24119
24120  process through the 
24121 \begin_inset Quotes eld
24122 \end_inset
24123
24124 listerrors
24125 \begin_inset Quotes erd
24126 \end_inset
24127
24128  program.
24129 \end_layout
24130
24131 \begin_layout Standard
24132 The build will normally take place in \SpecialChar LyX
24133 's temporary directory, so the files
24134  produced by the conversion will be in that directory.
24135  \SpecialChar LyX
24136  will copy out what it regards as the `main' file, but the 
24137 \family typewriter
24138 Noweb->Program
24139 \family default
24140  conversion may produce several files, and so most of these would then be
24141  deleted when \SpecialChar LyX
24142  was closed.
24143  This is why we pass in the NOWEB_OUTPUT_DIR environment variable so that
24144  the build-script chunk can place the generated files in that location.
24145 \end_layout
24146
24147 \begin_layout Paragraph
24148 Build instructions in the document
24149 \end_layout
24150
24151 \begin_layout Standard
24152 The last piece of the integration between \SpecialChar LyX
24153  and noweb is the 
24154 \begin_inset Quotes eld
24155 \end_inset
24156
24157 build-script
24158 \begin_inset Quotes erd
24159 \end_inset
24160
24161  chunk.
24162  Generally, the instructions for building your program should be embedded
24163  in a chunk of its own.
24164  The noweb-specific 
24165 \begin_inset Quotes eld
24166 \end_inset
24167
24168 build-script
24169 \begin_inset Quotes erd
24170 \end_inset
24171
24172  above uses the notangle command to look for this chunk (called 
24173 \begin_inset Quotes eld
24174 \end_inset
24175
24176 build-script
24177 \begin_inset Quotes erd
24178 \end_inset
24179
24180 ) and runs its contents through 
24181 \begin_inset Quotes eld
24182 \end_inset
24183
24184 sh
24185 \begin_inset Quotes erd
24186 \end_inset
24187
24188 .
24189 \end_layout
24190
24191 \begin_layout Standard
24192 Typically, such a chunk would look something like this:
24193 \end_layout
24194
24195 \begin_layout LyX-Code
24196 <<build-script>>=
24197 \end_layout
24198
24199 \begin_layout LyX-Code
24200 #!/bin/sh
24201 \begin_inset Newline newline
24202 \end_inset
24203
24204 if [ -z "${NOWEB_SOURCE}" ]
24205 \begin_inset Newline newline
24206 \end_inset
24207
24208 then
24209 \end_layout
24210
24211 \begin_layout LyX-Code
24212 NOWEB_SOURCE=myfile.nw
24213 \begin_inset Newline newline
24214 \end_inset
24215
24216 fi
24217 \begin_inset Newline newline
24218 \end_inset
24219
24220 [...
24221  code to extract files ...
24222  use NOWEB_OUTPUT_DIR here ...]
24223 \begin_inset Newline newline
24224 \end_inset
24225
24226 [...
24227  code to compile files ...]
24228 \begin_inset Newline newline
24229 \end_inset
24230
24231 @
24232 \end_layout
24233
24234 \begin_layout Standard
24235 Look in 
24236 \emph on
24237 LIBDIR/examples/listerrors.lyx
24238 \emph default
24239  or in 
24240 \emph on
24241 LIBDIR/examples/Literate.lyx
24242 \emph default
24243  which implement two versions of the 
24244 \begin_inset Quotes eld
24245 \end_inset
24246
24247 listerrors
24248 \begin_inset Quotes erd
24249 \end_inset
24250
24251  program for some illustrations of how all of these pieces go together or
24252  in 
24253 \emph on
24254 LIBDIR/examples/noweb2lyx.lyx.
24255
24256 \emph default
24257  Interestingly, these three files show off the language-indepence of the
24258  \SpecialChar LyX
24259  literate programming support since they are written in Python, C and Perl
24260  respectively.
24261 \end_layout
24262
24263 \begin_layout Subsubsection
24264 Configuring \SpecialChar LyX
24265
24266 \end_layout
24267
24268 \begin_layout Standard
24269 All the Literate Programming support is configured by the 
24270 \family sans
24271 Tools\SpecialChar menuseparator
24272 Preferences
24273 \family default
24274  panel in the 
24275 \begin_inset Quotes eld
24276 \end_inset
24277
24278 File Handling
24279 \begin_inset Quotes erd
24280 \end_inset
24281
24282  tab.
24283  The important parts are:
24284 \end_layout
24285
24286 \begin_layout Description
24287 the
24288 \begin_inset space ~
24289 \end_inset
24290
24291
24292 \begin_inset Quotes eld
24293 \end_inset
24294
24295 NoWeb
24296 \begin_inset Quotes erd
24297 \end_inset
24298
24299
24300 \begin_inset space ~
24301 \end_inset
24302
24303 format Set up via the File Formats tab, this is where the Noweb-specific
24304  pieces are set up.
24305  The 
24306 \family sans
24307 GUI Name
24308 \family default
24309  is set to 
24310 \family typewriter
24311 NoWeb
24312 \family default
24313 , the file extension is set to 
24314 \family typewriter
24315 .nw
24316 \family default
24317 .
24318  This tells \SpecialChar LyX
24319  to create a file with a 
24320 \family typewriter
24321 .nw
24322 \family default
24323  extension in the first step of the conversion process.
24324 \end_layout
24325
24326 \begin_layout Description
24327 the
24328 \begin_inset space ~
24329 \end_inset
24330
24331
24332 \family sans
24333 Program
24334 \family default
24335
24336 \begin_inset space ~
24337 \end_inset
24338
24339 format This is an empty format whose sole purpose is to be the endpoint
24340  of a conversion (which then allows us to set up a converter for it).
24341 \end_layout
24342
24343 \begin_layout Description
24344
24345 \family sans
24346 NoWeb
24347 \family default
24348 ->
24349 \family sans
24350 \SpecialChar LaTeX
24351
24352 \family default
24353  This converter performs the 
24354 \begin_inset Quotes eld
24355 \end_inset
24356
24357 weaving
24358 \begin_inset Quotes erd
24359 \end_inset
24360
24361  of the literate document.
24362  For Noweb, it is set to 
24363 \begin_inset Quotes eld
24364 \end_inset
24365
24366
24367 \family typewriter
24368 noweave -delay -index $$i > $$o
24369 \family default
24370
24371 \begin_inset Quotes erd
24372 \end_inset
24373
24374
24375 \end_layout
24376
24377 \begin_layout Description
24378
24379 \family sans
24380 NoWeb
24381 \family default
24382 ->
24383 \family sans
24384 Program
24385 \family default
24386  This performs the 
24387 \begin_inset Quotes eld
24388 \end_inset
24389
24390 tangling step
24391 \begin_inset Quotes erd
24392 \end_inset
24393
24394 .
24395  As stated above, the Converter is set to 
24396 \begin_inset Quotes eld
24397 \end_inset
24398
24399
24400 \family typewriter
24401 build-script $$i
24402 \family default
24403  $$r
24404 \begin_inset Quotes erd
24405 \end_inset
24406
24407 , with Flags set to
24408 \begin_inset Newline newline
24409 \end_inset
24410
24411
24412 \begin_inset Quotes eld
24413 \end_inset
24414
24415
24416 \family typewriter
24417 parselog=$$s/scripts/listerrors
24418 \family default
24419
24420 \begin_inset Quotes erd
24421 \end_inset
24422
24423 .
24424 \end_layout
24425
24426 \begin_layout Subsubsection
24427 Debug extensions
24428 \end_layout
24429
24430 \begin_layout Standard
24431 There is also a new function implemented in the \SpecialChar LyX
24432  server, the 
24433 \begin_inset Quotes eld
24434 \end_inset
24435
24436 server-goto-file-row" function, to be used with ddd/gdb or other debugger.
24437  
24438 \end_layout
24439
24440 \begin_layout Standard
24441 When debugging code with ddd/gdb, it is possible to invoke a text editor
24442  at the current execution position with a single key stroke.
24443  The default ddd configuration for that is shift-ctrl-V.
24444  It happens that you can define the editor command line invocation in ddd
24445  by accessing the 
24446 \family sans
24447 Edit\SpecialChar menuseparator
24448 Preferences\SpecialChar menuseparator
24449 Helpers
24450 \family default
24451  dialog and changing the "Edit Sources" entry.
24452 \end_layout
24453
24454 \begin_layout Standard
24455 I take advantage of the newly created \SpecialChar LyX
24456  server function and this ddd feature,
24457  and set 
24458 \begin_inset Quotes eld
24459 \end_inset
24460
24461 Edit Sources
24462 \begin_inset Quotes erd
24463 \end_inset
24464
24465  to:
24466 \end_layout
24467
24468 \begin_layout LyX-Code
24469 echo "LYXCMD:monitor:server-goto-file-row:@FILE@ @LINE@" >~/.lyxpipe.in
24470 \end_layout
24471
24472 \begin_layout Standard
24473 With this, whenever you are using ddd and find a point in the program that
24474  you want to edit, you just press shift-ctrl-V (in the ddd window), and
24475  ddd will forward this information to \SpecialChar LyX
24476  through the \SpecialChar LyX
24477  server and then the
24478  \SpecialChar LyX
24479  window will show the same file with the cursor at the same position ddd
24480  was pointing to.
24481  No more guessing or long scrolling to locate a point in the program back
24482  from debugging !
24483 \end_layout
24484
24485 \begin_layout Standard
24486 Note however that you must enable the \SpecialChar LyX
24487  server to get this feature working
24488  (it is disabled by default).
24489  Sec.
24490 \begin_inset space ~
24491 \end_inset
24492
24493
24494 \begin_inset CommandInset ref
24495 LatexCommand ref
24496 reference "sec:Starting-the-Server"
24497
24498 \end_inset
24499
24500  explains how to do that.
24501 \end_layout
24502
24503 \begin_layout Subsubsection
24504 Toolbar extensions
24505 \end_layout
24506
24507 \begin_layout Standard
24508 There are six new buttons that can be added to your \SpecialChar LyX
24509  toolbar.
24510  Four of these buttons are short cuts to layout styles: 
24511 \family sans
24512 Standard
24513 \family default
24514
24515 \family sans
24516 Section
24517 \family default
24518
24519 \family sans
24520 \SpecialChar LaTeX
24521
24522 \family default
24523 , and 
24524 \family sans
24525 \SpecialChar LyX
24526 -Code
24527 \family default
24528 , one for the custom inset 
24529 \family sans
24530 Chunk
24531 \family default
24532 .
24533  The last one is a short cut to the 
24534 \begin_inset Quotes eld
24535 \end_inset
24536
24537 Build Program
24538 \begin_inset Quotes erd
24539 \end_inset
24540
24541  File menu entry.
24542  
24543 \end_layout
24544
24545 \begin_layout Standard
24546 \SpecialChar LyX
24547  has a range of buttons that are available for tool bar customization.
24548  In my toolbar I like to combine the six short cuts above with two more:
24549  One for 
24550 \family sans
24551 Document
24552 \family default
24553 \SpecialChar menuseparator
24554
24555 \family sans
24556 Update
24557 \family default
24558 \SpecialChar menuseparator
24559
24560 \family sans
24561 DVI
24562 \family default
24563  and the other for 
24564 \family sans
24565 Document\SpecialChar menuseparator
24566 View\SpecialChar menuseparator
24567 DVI
24568 \family default
24569  File menu entries.
24570  Here is how it looks like:
24571 \end_layout
24572
24573 \begin_layout LyX-Code
24574 Toolbar
24575 \end_layout
24576
24577 \begin_layout LyX-Code
24578   Layouts
24579 \end_layout
24580
24581 \begin_layout LyX-Code
24582   Icon "layout Standard"
24583 \end_layout
24584
24585 \begin_layout LyX-Code
24586   Icon "layout Section"
24587 \end_layout
24588
24589 \begin_layout LyX-Code
24590   Icon "layout \SpecialChar LaTeX
24591 "
24592 \end_layout
24593
24594 \begin_layout LyX-Code
24595   Icon "layout \SpecialChar LyX
24596 -Code"
24597 \end_layout
24598
24599 \begin_layout LyX-Code
24600   Icon "flex.insert Chunk"
24601 \end_layout
24602
24603 \begin_layout LyX-Code
24604   Separator
24605 \end_layout
24606
24607 \begin_layout LyX-Code
24608   Icon "buffer-view"
24609 \end_layout
24610
24611 \begin_layout LyX-Code
24612   Icon "buffer-typeset"
24613 \end_layout
24614
24615 \begin_layout LyX-Code
24616   Icon "build-program"
24617 \end_layout
24618
24619 \begin_layout LyX-Code
24620   Separator
24621 \end_layout
24622
24623 \begin_layout LyX-Code
24624 .
24625 \end_layout
24626
24627 \begin_layout LyX-Code
24628 .
24629 \end_layout
24630
24631 \begin_layout LyX-Code
24632 .
24633 \end_layout
24634
24635 \begin_layout LyX-Code
24636 End
24637 \end_layout
24638
24639 \begin_layout Subsubsection
24640 Colors customization
24641 \end_layout
24642
24643 \begin_layout Standard
24644 There are a number of colors in \SpecialChar LyX
24645  that can be customized in 
24646 \family sans
24647 Preferences
24648 \family default
24649 .
24650  One of the things that bothers people is the \SpecialChar LaTeX
24651  font color.
24652  The default color is red, since the chunks uses \SpecialChar LaTeX
24653  font, and there is a lot
24654  of chunks in literate documents, you may get tired of seeing everything
24655  in red.
24656  You can change it by going to the tabs 
24657 \family sans
24658 Look&Feel
24659 \family default
24660
24661 \family sans
24662 Colors.
24663 \end_layout
24664
24665 \begin_layout Standard
24666 The next thing is the visible presence of the newline character in the screen.
24667  You can choose the color of this particular character and make it blend
24668  in the background.
24669  I recommend you choosing a color that is close to the background but not
24670  equal, that way you still can see it is there, but it is not bothering
24671  you anymore.
24672 \end_layout
24673
24674 \begin_layout Subsection
24675 \SpecialChar LyX
24676  and knitr/Sweave
24677 \end_layout
24678
24679 \begin_layout Standard
24680 Support for 
24681 \family sans
24682 knitr
24683 \family default
24684  and 
24685 \family sans
24686 Sweave
24687 \family default
24688  is documented in the 
24689 \emph on
24690 knitr.lyx
24691 \emph default
24692  example file and in the Sweave manual (menu 
24693 \family sans
24694 Help\SpecialChar menuseparator
24695 Specific Manuals
24696 \family default
24697 ).
24698 \end_layout
24699
24700 \begin_layout Chapter
24701 Special features
24702 \end_layout
24703
24704 \begin_layout Standard
24705 You can do everything with \SpecialChar LyX
24706  that you can do with \SpecialChar LaTeX
24707 .
24708  However, \SpecialChar LyX
24709  cannot support every \SpecialChar LaTeX
24710  feature directly.
24711  But you can always use \SpecialChar TeX
24712  Code.
24713  This chapter shows you some more special things you might want to use.
24714  For other special things you can do with figures, tables, floats, boxes
24715  and notes, have a look at the 
24716 \emph on
24717 Embedded
24718 \begin_inset space ~
24719 \end_inset
24720
24721 Objects
24722 \emph default
24723  manual.
24724 \end_layout
24725
24726 \begin_layout Section
24727 Multiple Text Columns
24728 \end_layout
24729
24730 \begin_layout Standard
24731 This feature is independent of the option 
24732 \family sans
24733 Two-column document
24734 \family default
24735  in the document settings under 
24736 \family sans
24737 Text Layout
24738 \family default
24739 .
24740  If you want to have 2
24741 \begin_inset space ~
24742 \end_inset
24743
24744 columns for the whole document, it is recommended to use the 
24745 \family sans
24746 Two-column document
24747 \family default
24748  option.
24749  For all other cases use this feature.
24750 \end_layout
24751
24752 \begin_layout Standard
24753 To use multiple text columns in your document, you have to load the module
24754  
24755 \family sans
24756 Multiple Columns
24757 \family default
24758  (menu 
24759 \family sans
24760 Document\SpecialChar menuseparator
24761 Settings\SpecialChar menuseparator
24762 Modules
24763 \family default
24764 ) and must have the \SpecialChar LaTeX
24765 -package 
24766 \begin_inset Flex Code
24767 status collapsed
24768
24769 \begin_layout Plain Layout
24770 multicol
24771 \end_layout
24772
24773 \end_inset
24774
24775  installed.
24776 \end_layout
24777
24778 \begin_layout Standard
24779 Footnotes within multiple columns will be placed at the bottom of the page
24780  and not under each column.
24781  Within the different columns you can use everything, with the limitation
24782  that for floats you need to use the float option 
24783 \family sans
24784 Span columns
24785 \family default
24786 .
24787 \end_layout
24788
24789 \begin_layout Subsection
24790 Basics
24791 \end_layout
24792
24793 \begin_layout Standard
24794 If you want to have 2
24795 \begin_inset space ~
24796 \end_inset
24797
24798 columns in your text, insert a multicolumn inset via the menu 
24799 \family sans
24800 Insert\SpecialChar menuseparator
24801 Custom
24802 \begin_inset space ~
24803 \end_inset
24804
24805 Insets\SpecialChar menuseparator
24806 Multiple
24807 \begin_inset space ~
24808 \end_inset
24809
24810 Columns
24811 \family default
24812  where the columns should start.
24813  Write all text that should be printed in 2
24814 \begin_inset space ~
24815 \end_inset
24816
24817 columns into this inset.
24818 \end_layout
24819
24820 \begin_layout Standard
24821 Here is an example:
24822 \end_layout
24823
24824 \begin_layout Standard
24825 \noindent
24826 \begin_inset Flex Multiple Columns
24827 status open
24828
24829 \begin_layout Plain Layout
24830 \noindent
24831
24832 \series bold
24833 \size small
24834 The Adventure of the Empty House
24835 \series default
24836
24837 \begin_inset Newline newline
24838 \end_inset
24839
24840 by Sir Arthur Conan Doyle
24841 \end_layout
24842
24843 \begin_layout Plain Layout
24844
24845 \size small
24846 It was in the spring of the year 1894 that all London was interested, and
24847  the fashionable world dismayed, by the murder of the Honourable Ronald
24848  Adair under most unusual and inexplicable circumstances.
24849  The public has already learned those particulars of the crime which came
24850  out in the police investigation, but a good deal was suppressed upon that
24851  occasion, since the case for the prosecution was so overwhelmingly strong
24852  that it was not necessary to bring forward all the facts.
24853  Only now, at the end of nearly ten years, am I allowed to supply those
24854  missing links which make up the whole of that remarkable chain.
24855  The crime was of interest in itself, but that interest was as nothing to
24856  me compared to the inconceivable sequel, which afforded me the greatest
24857  shock and surprise of any event in my adventurous life.
24858  Even now, after this long interval, I find myself thrilling as I think
24859  of it, and feeling once more that sudden flood of joy, amazement, and increduli
24860 ty which utterly submerged my mind.
24861  Let me say to that public, which has shown some interest in those glimpses
24862  which I have occasionally given them of the thoughts and actions of a very
24863  remarkable man, that they are not to blame me if I have not shared my knowledge
24864  with them, for I should have considered it my first duty to do so, had
24865  I not been barred by a positive prohibition from his own lips, which was
24866  only withdrawn upon the third of last month.
24867 \end_layout
24868
24869 \end_inset
24870
24871
24872 \end_layout
24873
24874 \begin_layout Standard
24875 To get 3 or more columns, set the cursor into the multicolumn inset and
24876  use the menu 
24877 \family sans
24878 Insert\SpecialChar menuseparator
24879 Number
24880 \begin_inset space ~
24881 \end_inset
24882
24883 of
24884 \begin_inset space ~
24885 \end_inset
24886
24887 Columns
24888 \family default
24889 .
24890  The number of the desired columns is written into that inset (for 3
24891 \begin_inset space ~
24892 \end_inset
24893
24894 columns write 
24895 \begin_inset Quotes eld
24896 \end_inset
24897
24898 3
24899 \begin_inset Quotes erd
24900 \end_inset
24901
24902 ).
24903 \begin_inset Newline newline
24904 \end_inset
24905
24906 Here is an example with 3
24907 \begin_inset space ~
24908 \end_inset
24909
24910 columns:
24911 \end_layout
24912
24913 \begin_layout Standard
24914 \begin_inset Flex Multiple Columns
24915 status open
24916
24917 \begin_layout Plain Layout
24918
24919 \size footnotesize
24920 \begin_inset Argument 1
24921 status open
24922
24923 \begin_layout Plain Layout
24924
24925 3
24926 \end_layout
24927
24928 \end_inset
24929
24930 It can be imagined that my close intimacy with Sherlock Holmes had interested
24931  me deeply in crime, and that after his disappearance I never failed to
24932  read with care the various problems which came before the public.
24933  And I even attempted, more than once, for my own private satisfaction,
24934  to employ his methods in their solution, though with indifferent success.
24935  There was none, however, which appealed to me like this tragedy of Ronald
24936  Adair.
24937  As I read the evidence at the inquest, which led up to a verdict of willful
24938  murder against some person or persons unknown, I realized more clearly
24939  than I had ever done the loss which the community had sustained by the
24940  death of Sherlock Holmes.
24941  There were points about this strange business which would, I was sure,
24942  have specially appealed to him, and the efforts of the police would have
24943  been supplemented, or more probably anticipated, by the trained observation
24944  and the alert mind of the first criminal agent in Europe.
24945  All day, as I drove upon my round, I turned over the case in my mind and
24946  found no explanation which appeared to me to be adequate.
24947  At the risk of telling a twice-told tale, I will recapitulate the facts
24948  as they were known to the public at the conclusion of the inquest.
24949 \end_layout
24950
24951 \end_inset
24952
24953
24954 \end_layout
24955
24956 \begin_layout Standard
24957 You can have up to 10
24958 \begin_inset space ~
24959 \end_inset
24960
24961 columns if you want to, but that might not be very pleasant for the readers
24962  of your document.
24963 \end_layout
24964
24965 \begin_layout Standard
24966 \begin_inset Newpage newpage
24967 \end_inset
24968
24969
24970 \end_layout
24971
24972 \begin_layout Subsection
24973 Columns inside Columns
24974 \end_layout
24975
24976 \begin_layout Standard
24977 You can also have columns inside columns:
24978 \end_layout
24979
24980 \begin_layout Standard
24981 \begin_inset Flex Multiple Columns
24982 status open
24983
24984 \begin_layout Plain Layout
24985
24986 \size footnotesize
24987 The Honourable Ronald Adair was the second son of the Earl of Maynooth,
24988  at that time governor of one of the Australian colonies.
24989  Adair's mother had returned from Australia to undergo the operation for
24990  cataract, and she, her son Ronald, and her daughter Hilda were living together
24991  at 427 Park Lane.
24992 \end_layout
24993
24994 \begin_layout Plain Layout
24995 \begin_inset Flex Multiple Columns
24996 status open
24997
24998 \begin_layout Plain Layout
24999
25000 \size footnotesize
25001 The youth moved in the best society
25002 \begin_inset space ~
25003 \end_inset
25004
25005 – had, so far as was known, no enemies and no particular vices.
25006  He had been engaged to Miss Edith Woodley, of Carstairs, but the engagement
25007  had been broken off by mutual consent some months before, and there was
25008  no sign that it had left any very profound feeling behind it.
25009  For the rest {sic} the man's life moved in a narrow and conventional circle,
25010  for his habits were quiet and his nature unemotional.
25011  Yet it was upon this easy-going young aristocrat that death came, in most
25012  strange and unexpected form, between the hours of ten and eleven-twenty
25013  on the night of March 30, 1894.
25014 \end_layout
25015
25016 \end_inset
25017
25018
25019 \end_layout
25020
25021 \begin_layout Plain Layout
25022
25023 \size footnotesize
25024 Ronald Adair was fond of cards
25025 \begin_inset space ~
25026 \end_inset
25027
25028 – playing continually, but never for such stakes as would hurt him.
25029  He was a member of the Baldwin, the Cavendish, and the Bagatelle card clubs.
25030  It was shown that, after dinner on the day of his death, he had played
25031  a rubber of whist at the latter club.
25032  He had also played there in the afternoon.
25033
25034 \size default
25035  
25036 \size footnotesize
25037 The evidence of those who had played with him
25038 \begin_inset space ~
25039 \end_inset
25040
25041 – Mr.
25042  Murray, Sir John Hardy, and Colonel Moran
25043 \begin_inset space ~
25044 \end_inset
25045
25046 – showed that the game was whist, and that there was a fairly equal fall
25047  of the cards.
25048  Adair might have lost five pounds, but not more.
25049  His fortune was a considerable one, and such a loss could not in any way
25050  affect him.
25051  He had played nearly every day at one club or other, but he was a cautious
25052  player, and usually rose a winner.
25053  It came out in evidence that, in partnership with Colonel Moran, he had
25054  actually won as much as four hundred and twenty pounds in a sitting, some
25055  weeks before, from Godfrey Milner and Lord Balmoral.
25056  So much for his recent history as it came out at the inquest.
25057 \end_layout
25058
25059 \end_inset
25060
25061
25062 \end_layout
25063
25064 \begin_layout Subsection
25065 Advanced Examples
25066 \end_layout
25067
25068 \begin_layout Standard
25069 The examples in this section show some more special features of multiple
25070  columns.
25071 \end_layout
25072
25073 \begin_layout Standard
25074 For more features of multiple columns, have a look at the 
25075 \begin_inset CommandInset href
25076 LatexCommand href
25077 name "documentation"
25078 target "http://mirror.ctan.org/macros/latex/required/tools/multicol.pdf"
25079 literal "false"
25080
25081 \end_inset
25082
25083  of the \SpecialChar LaTeX
25084 -package 
25085 \begin_inset Flex Code
25086 status collapsed
25087
25088 \begin_layout Plain Layout
25089 multicol
25090 \end_layout
25091
25092 \end_inset
25093
25094 .
25095 \end_layout
25096
25097 \begin_layout Subsubsection
25098 Preface
25099 \end_layout
25100
25101 \begin_layout Standard
25102 To add a preface text for multiple columns, set the cursor into the multicolumn
25103  inset and use the menu 
25104 \family sans
25105 Insert\SpecialChar menuseparator
25106 Preface
25107 \family default
25108 .
25109  Write your preface text into that inset.
25110 \begin_inset Newline newline
25111 \end_inset
25112
25113 This is an example with some preface text:
25114 \end_layout
25115
25116 \begin_layout Standard
25117 \begin_inset VSpace bigskip
25118 \end_inset
25119
25120
25121 \end_layout
25122
25123 \begin_layout Standard
25124 \begin_inset Flex Multiple Columns
25125 status open
25126
25127 \begin_layout Plain Layout
25128 \begin_inset Argument 2
25129 status open
25130
25131 \begin_layout Plain Layout
25132 And the story continues and continues and continues and continues\SpecialChar ldots
25133
25134 \end_layout
25135
25136 \end_inset
25137
25138
25139 \size small
25140 On the evening of the crime, he returned from the club exactly at ten.
25141  His mother and sister were out spending the evening with a relation.
25142  The servant deposed that she heard him enter the front room on the second
25143  floor, generally used as his sitting-room.
25144  She had lit a fire there, and as it smoked she had opened the window.
25145  No sound was heard from the room until eleven-twenty, the hour of the return
25146  of Lady Maynooth and her daughter.
25147  Desiring to say good-night, she attempted to enter her son's room.
25148  The door was locked on the inside, and no answer could be got to their
25149  cries and knocking.
25150  Help was obtained, and the door forced.
25151  The unfortunate young man was found lying near the table.
25152  His head had been horribly mutilated by an expanding revolver bullet, but
25153  no weapon of any sort was to be found in the room.
25154 \end_layout
25155
25156 \end_inset
25157
25158
25159 \end_layout
25160
25161 \begin_layout Standard
25162 You can also use a section heading as the preface if you use a section command
25163  as \SpecialChar TeX
25164  Code.
25165  For example the command
25166 \end_layout
25167
25168 \begin_layout LyX-Code
25169
25170 \backslash
25171 subsection{subsection title}
25172 \end_layout
25173
25174 \begin_layout Standard
25175 creates a subsection.
25176  In this example the preface is a subsubsection:
25177 \end_layout
25178
25179 \begin_layout Standard
25180 \begin_inset Flex Multiple Columns
25181 status open
25182
25183 \begin_layout Plain Layout
25184 \begin_inset Argument 2
25185 status open
25186
25187 \begin_layout Plain Layout
25188 \begin_inset ERT
25189 status collapsed
25190
25191 \begin_layout Plain Layout
25192
25193
25194 \backslash
25195 subsubsection{
25196 \end_layout
25197
25198 \end_inset
25199
25200 This is a subsubsection heading as a preface
25201 \begin_inset ERT
25202 status collapsed
25203
25204 \begin_layout Plain Layout
25205
25206 }
25207 \end_layout
25208
25209 \end_inset
25210
25211
25212 \end_layout
25213
25214 \end_inset
25215
25216
25217 \size small
25218 A minute examination of the circumstances served only to make the case more
25219  complex.
25220  In the first place, no reason could be given why the young man should have
25221  fastened the door upon the inside.
25222  There was the possibility that the murderer had done this, and had afterwards
25223  escaped by the window.
25224  The drop was at least twenty feet, however, and a bed of crocuses in full
25225  bloom lay beneath.
25226  Neither the flowers nor the earth showed any sign of having been disturbed,
25227  nor were there any marks upon the narrow strip of grass which separated
25228  the house from the road.
25229  Apparently, therefore, it was the young man himself who had fastened the
25230  door.
25231  But how did he come by his death? No one could have climbed up to the window
25232  without leaving traces.
25233  Suppose a man had fired through the window, he would indeed be a remarkable
25234  shot who could with a revolver inflict so deadly a wound.
25235  Again, Park Lane is a frequented thoroughfare; there is a cab stand within
25236  a hundred yards of the house.
25237  No one had heard a shot.
25238 \end_layout
25239
25240 \end_inset
25241
25242
25243 \end_layout
25244
25245 \begin_layout Standard
25246 If there is less vertical space than 6
25247 \begin_inset space ~
25248 \end_inset
25249
25250 text lines is left on the page at the beginning of the multiple columns,
25251  a page break will be inserted before the multiple columns.
25252  Depending on the number of lines of the preface text, you might want to
25253  change this space.
25254  This is done by setting the cursor into the mulitcolumn inset behind the
25255  preface (if there is any) and using the menu 
25256 \family sans
25257 Insert\SpecialChar menuseparator
25258 Space
25259 \begin_inset space ~
25260 \end_inset
25261
25262 Before
25263 \begin_inset space ~
25264 \end_inset
25265
25266 Page
25267 \begin_inset space ~
25268 \end_inset
25269
25270 Break
25271 \family default
25272 .
25273  Insert into that inset the amount of space like e.
25274 \begin_inset space \thinspace{}
25275 \end_inset
25276
25277 g.
25278 \begin_inset space \space{}
25279 \end_inset
25280
25281
25282 \begin_inset Quotes eld
25283 \end_inset
25284
25285 5cm
25286 \begin_inset Quotes erd
25287 \end_inset
25288
25289 .
25290 \begin_inset Newline newline
25291 \end_inset
25292
25293 In this example the space is set to 7
25294 \begin_inset space ~
25295 \end_inset
25296
25297 text lines by using 
25298 \begin_inset Flex Code
25299 status collapsed
25300
25301 \begin_layout Plain Layout
25302 7
25303 \backslash
25304 baselineskip
25305 \end_layout
25306
25307 \end_inset
25308
25309  (where the command 
25310 \begin_inset Flex Code
25311 status collapsed
25312
25313 \begin_layout Plain Layout
25314
25315 \backslash
25316 baselineskip
25317 \end_layout
25318
25319 \end_inset
25320
25321  needs to be inserted as \SpecialChar TeX
25322  code):
25323 \end_layout
25324
25325 \begin_layout Standard
25326 \begin_inset Flex Multiple Columns
25327 status open
25328
25329 \begin_layout Plain Layout
25330 \begin_inset Argument 3
25331 status open
25332
25333 \begin_layout Plain Layout
25334 7
25335 \begin_inset ERT
25336 status collapsed
25337
25338 \begin_layout Plain Layout
25339
25340
25341 \backslash
25342 baselineskip
25343 \end_layout
25344
25345 \end_inset
25346
25347
25348 \end_layout
25349
25350 \end_inset
25351
25352
25353 \size small
25354 On the evening of the crime, he returned from the club exactly at ten.
25355  His mother and sister were out spending the evening with a relation.
25356  The servant deposed that she heard him enter the front room on the second
25357  floor, generally used as his sitting-room.
25358  She had lit a fire there, and as it smoked she had opened the window.
25359  No sound was heard from the room until eleven-twenty, the hour of the return
25360  of Lady Maynooth and her daughter.
25361  Desiring to say good-night, she attempted to enter her son's room.
25362  The door was locked on the inside, and no answer could be got to their
25363  cries and knocking.
25364  Help was obtained, and the door forced.
25365  The unfortunate young man was found lying near the table.
25366  His head had been horribly mutilated by an expanding revolver bullet, but
25367  no weapon of any sort was to be found in the room.
25368 \end_layout
25369
25370 \end_inset
25371
25372
25373 \end_layout
25374
25375 \begin_layout Subsubsection
25376 Surrounding Space
25377 \end_layout
25378
25379 \begin_layout Standard
25380 The amount of space before and after multiple columns can be changed by
25381  changing the length 
25382 \begin_inset Flex Code
25383 status collapsed
25384
25385 \begin_layout Plain Layout
25386
25387 \backslash
25388 multicolsep
25389 \end_layout
25390
25391 \end_inset
25392
25393 .
25394  For example the command
25395 \end_layout
25396
25397 \begin_layout LyX-Code
25398
25399 \backslash
25400 setlength{
25401 \backslash
25402 multicolsep}{3cm}
25403 \end_layout
25404
25405 \begin_layout Standard
25406 in \SpecialChar TeX
25407  Code changes its value to 3
25408 \begin_inset space \thinspace{}
25409 \end_inset
25410
25411 cm.
25412  The change must be made before the multiple columns' start.
25413  The predefined value is 13
25414 \begin_inset space \thinspace{}
25415 \end_inset
25416
25417 pt.
25418 \end_layout
25419
25420 \begin_layout Standard
25421 For this example 
25422 \begin_inset Flex Code
25423 status collapsed
25424
25425 \begin_layout Plain Layout
25426
25427 \backslash
25428 multicolsep
25429 \end_layout
25430
25431 \end_inset
25432
25433  was set to 2.5
25434 \begin_inset space \thinspace{}
25435 \end_inset
25436
25437 cm:
25438 \end_layout
25439
25440 \begin_layout Standard
25441 \begin_inset ERT
25442 status open
25443
25444 \begin_layout Plain Layout
25445
25446
25447 \backslash
25448 setlength{
25449 \backslash
25450 multicolsep}{2.5cm}
25451 \end_layout
25452
25453 \end_inset
25454
25455
25456 \end_layout
25457
25458 \begin_layout Standard
25459 \begin_inset Flex Multiple Columns
25460 status open
25461
25462 \begin_layout Plain Layout
25463
25464 \size small
25465 All day I turned these facts over in my mind, endeavouring to hit upon some
25466  theory which could reconcile them all, and to find that line of least resistanc
25467 e which my poor friend had declared to be the starting-point of every investigat
25468 ion.
25469  I confess that I made little progress.
25470  In the evening I strolled across the Park, and found myself about six o'clock
25471  at the Oxford Street end of Park Lane.
25472  A group of loafers upon the pavements, all staring up at a particular window,
25473  directed me to the house which I had come to see.
25474  A tall, thin man with coloured glasses, whom I strongly suspected of being
25475  a plain-clothes detective, was pointing out some theory of his own, while
25476  the others crowded round to listen to what he said.
25477  I got as near him as I could, but his observations seemed to me to be absurd,
25478  so I withdrew again in some disgust.
25479  As I did so I struck against an elderly, deformed man, who had been behind
25480  me, and I knocked down several books which he was carrying.
25481 \end_layout
25482
25483 \end_inset
25484
25485
25486 \end_layout
25487
25488 \begin_layout Standard
25489 \begin_inset Note Greyedout
25490 status open
25491
25492 \begin_layout Plain Layout
25493
25494 \series bold
25495 Note:
25496 \series default
25497  The values you set with 
25498 \begin_inset Flex Code
25499 status collapsed
25500
25501 \begin_layout Plain Layout
25502
25503 \backslash
25504 setlength
25505 \end_layout
25506
25507 \end_inset
25508
25509  will be used for all following multiple columns until you change them again.
25510 \end_layout
25511
25512 \end_inset
25513
25514
25515 \end_layout
25516
25517 \begin_layout Standard
25518 \begin_inset ERT
25519 status collapsed
25520
25521 \begin_layout Plain Layout
25522
25523
25524 \backslash
25525 setlength{
25526 \backslash
25527 multicolsep}{13pt}
25528 \end_layout
25529
25530 \end_inset
25531
25532
25533 \begin_inset Note Note
25534 status collapsed
25535
25536 \begin_layout Plain Layout
25537 go back to the default
25538 \end_layout
25539
25540 \end_inset
25541
25542
25543 \end_layout
25544
25545 \begin_layout Standard
25546 \begin_inset Newpage newpage
25547 \end_inset
25548
25549
25550 \end_layout
25551
25552 \begin_layout Subsubsection
25553 Column Breaks
25554 \end_layout
25555
25556 \begin_layout Standard
25557 A column break can be forced by inserting the command 
25558 \begin_inset Flex Code
25559 status collapsed
25560
25561 \begin_layout Plain Layout
25562
25563 \backslash
25564 columnbreak{}
25565 \end_layout
25566
25567 \end_inset
25568
25569  as \SpecialChar TeX
25570  Code to that position in the text where the column should be broken.
25571  Note that this leads in most cases to whitespace in the text.
25572 \begin_inset Newline newline
25573 \end_inset
25574
25575 Here is an example:
25576 \end_layout
25577
25578 \begin_layout Standard
25579 \begin_inset Flex Multiple Columns
25580 status open
25581
25582 \begin_layout Plain Layout
25583
25584 \size small
25585 \begin_inset Quotes eld
25586 \end_inset
25587
25588 You're surprised to see me, sir,
25589 \begin_inset Quotes erd
25590 \end_inset
25591
25592  said he, in a strange, croaking voice.
25593 \end_layout
25594
25595 \begin_layout Plain Layout
25596
25597 \size small
25598 I acknowledged that I was.
25599 \end_layout
25600
25601 \begin_layout Plain Layout
25602
25603 \size small
25604 \begin_inset Quotes eld
25605 \end_inset
25606
25607 Well, I've a conscience, sir, and when I chanced to see you go into this
25608  house, as I came hobbling after you, I thought to myself, I'll just step
25609  in and see that kind gentleman, and tell him that if I was a bit gruff
25610  in my manner there was not any harm meant, and that I am much obliged to
25611  him for picking up my books.
25612 \begin_inset Quotes erd
25613 \end_inset
25614
25615
25616 \end_layout
25617
25618 \begin_layout Plain Layout
25619
25620 \size small
25621 \begin_inset Quotes eld
25622 \end_inset
25623
25624 You make too much of a trifle,
25625 \begin_inset Quotes erd
25626 \end_inset
25627
25628  said I.
25629  
25630 \begin_inset Quotes eld
25631 \end_inset
25632
25633 May I ask how you knew who I was?
25634 \begin_inset Quotes erd
25635 \end_inset
25636
25637  AFTER THIS SENTENCE THE COLUMN BREAK IS FORCED.
25638 \begin_inset ERT
25639 status collapsed
25640
25641 \begin_layout Plain Layout
25642
25643
25644 \backslash
25645 columnbreak{}
25646 \end_layout
25647
25648 \end_inset
25649
25650
25651 \end_layout
25652
25653 \begin_layout Plain Layout
25654
25655 \size small
25656 \begin_inset Quotes eld
25657 \end_inset
25658
25659 Well, sir, if it isn't too great a liberty, I am a neighbour of yours, for
25660  you'll find my little bookshop at the corner of Church Street, and very
25661  happy to see you, I am sure.
25662  Maybe you collect yourself, sir.
25663  Here's 
25664 \noun on
25665 British
25666 \begin_inset space ~
25667 \end_inset
25668
25669 Birds
25670 \noun default
25671 , and 
25672 \noun on
25673 Catullus
25674 \noun default
25675 , and 
25676 \noun on
25677 The Holy War
25678 \noun default
25679
25680 \begin_inset space ~
25681 \end_inset
25682
25683 – a bargain, every one of them.
25684  With five volumes you could just fill that gap on that second shelf.
25685  It looks untidy, does it not, sir?
25686 \begin_inset Quotes erd
25687 \end_inset
25688
25689
25690 \end_layout
25691
25692 \end_inset
25693
25694
25695 \end_layout
25696
25697 \begin_layout Subsubsection
25698 Column Separation
25699 \end_layout
25700
25701 \begin_layout Standard
25702 The width of the columns is automatically calculated, but you can modify
25703  the space between the columns.
25704  This is done by changing the length 
25705 \begin_inset Flex Code
25706 status collapsed
25707
25708 \begin_layout Plain Layout
25709
25710 \backslash
25711 columnsep
25712 \end_layout
25713
25714 \end_inset
25715
25716 .
25717  Its predefined value is 10
25718 \begin_inset space \thinspace{}
25719 \end_inset
25720
25721 pt.
25722  Here is an example where 
25723 \begin_inset Flex Code
25724 status collapsed
25725
25726 \begin_layout Plain Layout
25727
25728 \backslash
25729 columnsep
25730 \end_layout
25731
25732 \end_inset
25733
25734  is set to 3
25735 \begin_inset space \thinspace{}
25736 \end_inset
25737
25738 cm:
25739 \end_layout
25740
25741 \begin_layout Standard
25742 \begin_inset ERT
25743 status open
25744
25745 \begin_layout Plain Layout
25746
25747
25748 \backslash
25749 setlength{
25750 \backslash
25751 columnsep}{3cm}
25752 \end_layout
25753
25754 \end_inset
25755
25756
25757 \end_layout
25758
25759 \begin_layout Standard
25760 \begin_inset Flex Multiple Columns
25761 status open
25762
25763 \begin_layout Plain Layout
25764
25765 \size small
25766 My observations of No.
25767 \begin_inset space \space{}
25768 \end_inset
25769
25770 427 Park Lane did little to clear up the problem in which I was interested.
25771  The house was separated from the street by a low wall and railing, the
25772  whole not more than five feet high.
25773  It was perfectly easy, therefore, for anyone to get into the garden, but
25774  the window was entirely inaccessible, since there was no water pipe or
25775  anything which could help the most active man to climb it.
25776  More puzzled than ever, I retraced my steps to Kensington.
25777  I had not been in my study five minutes when the maid entered to say that
25778  a person desired to see me.
25779  To my astonishment it was none other than my strange old book collector,
25780  his sharp, wizened face peering out from a frame of white hair, and his
25781  precious volumes, a dozen of them at least, wedged under his right arm.
25782 \end_layout
25783
25784 \end_inset
25785
25786
25787 \end_layout
25788
25789 \begin_layout Standard
25790 \begin_inset ERT
25791 status collapsed
25792
25793 \begin_layout Plain Layout
25794
25795
25796 \backslash
25797 setlength{
25798 \backslash
25799 columnsep}{10pt}
25800 \end_layout
25801
25802 \end_inset
25803
25804
25805 \begin_inset Note Note
25806 status collapsed
25807
25808 \begin_layout Plain Layout
25809 go back to the default
25810 \end_layout
25811
25812 \end_inset
25813
25814
25815 \end_layout
25816
25817 \begin_layout Subsubsection
25818 Vertical Lines
25819 \end_layout
25820
25821 \begin_layout Standard
25822 Between the columns a rule with a width of the length 
25823 \begin_inset Flex Code
25824 status collapsed
25825
25826 \begin_layout Plain Layout
25827
25828 \backslash
25829 columnseprule
25830 \end_layout
25831
25832 \end_inset
25833
25834  is placed.
25835  If this rule width is set to 0
25836 \begin_inset space \thinspace{}
25837 \end_inset
25838
25839 pt (this is the default), the rule is suppressed.
25840  In the following example the rule is 2
25841 \begin_inset space \thinspace{}
25842 \end_inset
25843
25844 pt wide:
25845 \end_layout
25846
25847 \begin_layout Standard
25848 \begin_inset ERT
25849 status open
25850
25851 \begin_layout Plain Layout
25852
25853
25854 \backslash
25855 setlength{
25856 \backslash
25857 columnseprule}{2pt}
25858 \end_layout
25859
25860 \end_inset
25861
25862
25863 \end_layout
25864
25865 \begin_layout Standard
25866 \begin_inset Flex Multiple Columns
25867 status open
25868
25869 \begin_layout Plain Layout
25870
25871 \size small
25872 \begin_inset Quotes eld
25873 \end_inset
25874
25875 You're surprised to see me, sir,
25876 \begin_inset Quotes erd
25877 \end_inset
25878
25879  said he, in a strange, croaking voice.
25880 \end_layout
25881
25882 \begin_layout Plain Layout
25883
25884 \size small
25885 I acknowledged that I was.
25886 \end_layout
25887
25888 \begin_layout Plain Layout
25889
25890 \size small
25891 \begin_inset Quotes eld
25892 \end_inset
25893
25894 Well, I've a conscience, sir, and when I chanced to see you go into this
25895  house, as I came hobbling after you, I thought to myself, I'll just step
25896  in and see that kind gentleman, and tell him that if I was a bit gruff
25897  in my manner there was not any harm meant, and that I am much obliged to
25898  him for picking up my books.
25899 \begin_inset Quotes erd
25900 \end_inset
25901
25902
25903 \end_layout
25904
25905 \begin_layout Plain Layout
25906
25907 \size small
25908 \begin_inset Quotes eld
25909 \end_inset
25910
25911 You make too much of a trifle,
25912 \begin_inset Quotes erd
25913 \end_inset
25914
25915  said I.
25916  
25917 \begin_inset Quotes eld
25918 \end_inset
25919
25920 May I ask how you knew who I was?
25921 \begin_inset Quotes erd
25922 \end_inset
25923
25924
25925 \end_layout
25926
25927 \begin_layout Plain Layout
25928
25929 \size small
25930 \begin_inset Quotes eld
25931 \end_inset
25932
25933 Well, sir, if it isn't too great a liberty, I am a neighbour of yours, for
25934  you'll find my little bookshop at the corner of Church Street, and very
25935  happy to see you, I am sure.
25936  Maybe you collect yourself, sir.
25937  Here's 
25938 \noun on
25939 British
25940 \begin_inset space ~
25941 \end_inset
25942
25943 Birds
25944 \noun default
25945 , and 
25946 \noun on
25947 Catullus
25948 \noun default
25949 , and 
25950 \noun on
25951 The Holy War
25952 \noun default
25953
25954 \begin_inset space ~
25955 \end_inset
25956
25957 – a bargain, every one of them.
25958  With five volumes you could just fill that gap on that second shelf.
25959  It looks untidy, does it not, sir?
25960 \begin_inset Quotes erd
25961 \end_inset
25962
25963
25964 \end_layout
25965
25966 \end_inset
25967
25968
25969 \end_layout
25970
25971 \begin_layout Standard
25972 \begin_inset VSpace defskip
25973 \end_inset
25974
25975
25976 \end_layout
25977
25978 \begin_layout Standard
25979 The rule can be colored by redefining the command 
25980 \begin_inset Flex Code
25981 status collapsed
25982
25983 \begin_layout Plain Layout
25984
25985 \backslash
25986 columnseprulecolor
25987 \end_layout
25988
25989 \end_inset
25990
25991 .
25992  This is done by inserting the command
25993 \end_layout
25994
25995 \begin_layout LyX-Code
25996
25997 \backslash
25998 renewcommand{
25999 \backslash
26000 columnseprulecolor}{
26001 \backslash
26002 color{red}}
26003 \end_layout
26004
26005 \begin_layout Standard
26006 as \SpecialChar TeX
26007  Code before the multicolumn inset.
26008  Replace 
26009 \begin_inset Flex Code
26010 status collapsed
26011
26012 \begin_layout Plain Layout
26013 red
26014 \end_layout
26015
26016 \end_inset
26017
26018  in this command by a color of your choice.
26019  You can use all pre- and self-defined colors.
26020  See the 
26021 \emph on
26022 EmbeddedObjects
26023 \emph default
26024  manual, section 
26025 \emph on
26026 Colored
26027 \begin_inset space ~
26028 \end_inset
26029
26030 Tables
26031 \emph default
26032  for more information about pre- and self-defined colors.
26033  To go back to the default color insert the command
26034 \end_layout
26035
26036 \begin_layout LyX-Code
26037
26038 \backslash
26039 renewcommand{
26040 \backslash
26041 columnseprulecolor}{
26042 \backslash
26043 normalcolor}
26044 \end_layout
26045
26046 \begin_layout Standard
26047 Here is the example with a cyan rule and 1
26048 \begin_inset space \thinspace{}
26049 \end_inset
26050
26051 cm column separation:
26052 \end_layout
26053
26054 \begin_layout Standard
26055 \begin_inset ERT
26056 status open
26057
26058 \begin_layout Plain Layout
26059
26060
26061 \backslash
26062 setlength{
26063 \backslash
26064 columnsep}{1cm}
26065 \end_layout
26066
26067 \begin_layout Plain Layout
26068
26069
26070 \backslash
26071 renewcommand{
26072 \backslash
26073 columnseprulecolor}{
26074 \backslash
26075 color{cyan}}
26076 \end_layout
26077
26078 \end_inset
26079
26080
26081 \end_layout
26082
26083 \begin_layout Standard
26084 \begin_inset Flex Multiple Columns
26085 status open
26086
26087 \begin_layout Plain Layout
26088
26089 \size small
26090 \begin_inset Quotes eld
26091 \end_inset
26092
26093 You're surprised to see me, sir,
26094 \begin_inset Quotes erd
26095 \end_inset
26096
26097  said he, in a strange, croaking voice.
26098 \end_layout
26099
26100 \begin_layout Plain Layout
26101
26102 \size small
26103 I acknowledged that I was.
26104 \end_layout
26105
26106 \begin_layout Plain Layout
26107
26108 \size small
26109 \begin_inset Quotes eld
26110 \end_inset
26111
26112 Well, I've a conscience, sir, and when I chanced to see you go into this
26113  house, as I came hobbling after you, I thought to myself, I'll just step
26114  in and see that kind gentleman, and tell him that if I was a bit gruff
26115  in my manner there was not any harm meant, and that I am much obliged to
26116  him for picking up my books.
26117 \begin_inset Quotes erd
26118 \end_inset
26119
26120
26121 \end_layout
26122
26123 \begin_layout Plain Layout
26124
26125 \size small
26126 \begin_inset Quotes eld
26127 \end_inset
26128
26129 You make too much of a trifle,
26130 \begin_inset Quotes erd
26131 \end_inset
26132
26133  said I.
26134  
26135 \begin_inset Quotes eld
26136 \end_inset
26137
26138 May I ask how you knew who I was?
26139 \begin_inset Quotes erd
26140 \end_inset
26141
26142
26143 \end_layout
26144
26145 \begin_layout Plain Layout
26146
26147 \size small
26148 \begin_inset Quotes eld
26149 \end_inset
26150
26151 Well, sir, if it isn't too great a liberty, I am a neighbour of yours, for
26152  you'll find my little bookshop at the corner of Church Street, and very
26153  happy to see you, I am sure.
26154  Maybe you collect yourself, sir.
26155  Here's 
26156 \noun on
26157 British
26158 \begin_inset space ~
26159 \end_inset
26160
26161 Birds
26162 \noun default
26163 , and 
26164 \noun on
26165 Catullus
26166 \noun default
26167 , and 
26168 \noun on
26169 The Holy War
26170 \noun default
26171
26172 \begin_inset space ~
26173 \end_inset
26174
26175 – a bargain, every one of them.
26176  With five volumes you could just fill that gap on that second shelf.
26177  It looks untidy, does it not, sir?
26178 \begin_inset Quotes erd
26179 \end_inset
26180
26181
26182 \end_layout
26183
26184 \end_inset
26185
26186
26187 \end_layout
26188
26189 \begin_layout Standard
26190 \begin_inset ERT
26191 status collapsed
26192
26193 \begin_layout Plain Layout
26194
26195
26196 \backslash
26197 setlength{
26198 \backslash
26199 columnseprule}{0pt}
26200 \end_layout
26201
26202 \begin_layout Plain Layout
26203
26204
26205 \backslash
26206 renewcommand{
26207 \backslash
26208 columnseprulecolor}{
26209 \backslash
26210 normalcolor}
26211 \end_layout
26212
26213 \end_inset
26214
26215
26216 \begin_inset Note Note
26217 status collapsed
26218
26219 \begin_layout Plain Layout
26220 go back to the default
26221 \end_layout
26222
26223 \end_inset
26224
26225
26226 \end_layout
26227
26228 \begin_layout Section
26229 Non-standard Paragraph Shapes
26230 \end_layout
26231
26232 \begin_layout Standard
26233 \noindent
26234 \SpecialChar LaTeX
26235  as well as any other text processor uses by default rectangular paragraphs.
26236  For special cases like for example posters, invitation cards or poems you
26237  can modify the paragraph shape to one of your choice.
26238  This can be done by using the \SpecialChar LaTeX
26239 -package 
26240 \begin_inset Flex Code
26241 status collapsed
26242
26243 \begin_layout Plain Layout
26244 shapepar
26245 \end_layout
26246
26247 \end_inset
26248
26249  which is loaded by using in the document settings the module 
26250 \family sans
26251 Custom paragraph shapes
26252 \family default
26253 .
26254 \end_layout
26255
26256 \begin_layout Subsection
26257 Predefined shapes
26258 \end_layout
26259
26260 \begin_layout Standard
26261
26262 \series bold
26263 shapepar
26264 \series default
26265  provides the following shapes:
26266 \end_layout
26267
26268 \begin_layout Standard
26269 \begin_inset Tabular
26270 <lyxtabular version="3" rows="13" columns="3">
26271 <features booktabs="true" islongtable="true" longtabularalignment="center">
26272 <column alignment="left" valignment="middle" width="16col%">
26273 <column alignment="left" valignment="middle" width="40col%">
26274 <column alignment="left" valignment="middle" width="35col%">
26275 <row endhead="true">
26276 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26277 \begin_inset Text
26278
26279 \begin_layout Plain Layout
26280
26281 \series bold
26282 \size small
26283 Name
26284 \end_layout
26285
26286 \end_inset
26287 </cell>
26288 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26289 \begin_inset Text
26290
26291 \begin_layout Plain Layout
26292
26293 \series bold
26294 \size small
26295 Description
26296 \end_layout
26297
26298 \end_inset
26299 </cell>
26300 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
26301 \begin_inset Text
26302
26303 \begin_layout Plain Layout
26304
26305 \series bold
26306 \size small
26307 Annotation
26308 \end_layout
26309
26310 \end_inset
26311 </cell>
26312 </row>
26313 <row interlinespace="default">
26314 <cell alignment="left" valignment="top" usebox="none">
26315 \begin_inset Text
26316
26317 \begin_layout Plain Layout
26318
26319 \size small
26320 CDlabel
26321 \end_layout
26322
26323 \end_inset
26324 </cell>
26325 <cell alignment="left" valignment="top" usebox="none">
26326 \begin_inset Text
26327
26328 \begin_layout Plain Layout
26329
26330 \size small
26331 Circle with circular hole (in the size of a CD/DVD)
26332 \end_layout
26333
26334 \end_inset
26335 </cell>
26336 <cell alignment="left" valignment="top" usebox="none">
26337 \begin_inset Text
26338
26339 \begin_layout Plain Layout
26340
26341 \size small
26342 Cannot be scaled, take care there is not too much text
26343 \end_layout
26344
26345 \end_inset
26346 </cell>
26347 </row>
26348 <row interlinespace="default">
26349 <cell alignment="left" valignment="top" usebox="none">
26350 \begin_inset Text
26351
26352 \begin_layout Plain Layout
26353
26354 \size small
26355 Circle
26356 \end_layout
26357
26358 \end_inset
26359 </cell>
26360 <cell alignment="left" valignment="top" usebox="none">
26361 \begin_inset Text
26362
26363 \begin_layout Plain Layout
26364
26365 \size small
26366 Circle
26367 \end_layout
26368
26369 \end_inset
26370 </cell>
26371 <cell alignment="left" valignment="top" usebox="none">
26372 \begin_inset Text
26373
26374 \begin_layout Plain Layout
26375
26376 \size small
26377 Fragile, calculation might fail
26378 \end_layout
26379
26380 \end_inset
26381 </cell>
26382 </row>
26383 <row interlinespace="default">
26384 <cell alignment="left" valignment="top" usebox="none">
26385 \begin_inset Text
26386
26387 \begin_layout Plain Layout
26388
26389 \size small
26390 Diamond
26391 \end_layout
26392
26393 \end_inset
26394 </cell>
26395 <cell alignment="left" valignment="top" usebox="none">
26396 \begin_inset Text
26397
26398 \begin_layout Plain Layout
26399
26400 \size small
26401 Rhomboid (symbolizing a 
26402 \begin_inset Quotes eld
26403 \end_inset
26404
26405 diamond
26406 \begin_inset Quotes erd
26407 \end_inset
26408
26409 )
26410 \end_layout
26411
26412 \end_inset
26413 </cell>
26414 <cell alignment="left" valignment="top" usebox="none">
26415 \begin_inset Text
26416
26417 \begin_layout Plain Layout
26418
26419 \size small
26420 -
26421 \end_layout
26422
26423 \end_inset
26424 </cell>
26425 </row>
26426 <row interlinespace="default">
26427 <cell alignment="left" valignment="top" usebox="none">
26428 \begin_inset Text
26429
26430 \begin_layout Plain Layout
26431
26432 \size small
26433 Heart
26434 \end_layout
26435
26436 \end_inset
26437 </cell>
26438 <cell alignment="left" valignment="top" usebox="none">
26439 \begin_inset Text
26440
26441 \begin_layout Plain Layout
26442
26443 \size small
26444 Heart-like shape
26445 \end_layout
26446
26447 \end_inset
26448 </cell>
26449 <cell alignment="left" valignment="top" usebox="none">
26450 \begin_inset Text
26451
26452 \begin_layout Plain Layout
26453
26454 \size small
26455 -
26456 \end_layout
26457
26458 \end_inset
26459 </cell>
26460 </row>
26461 <row interlinespace="default">
26462 <cell alignment="left" valignment="top" usebox="none">
26463 \begin_inset Text
26464
26465 \begin_layout Plain Layout
26466
26467 \size small
26468 Hexagon
26469 \end_layout
26470
26471 \end_inset
26472 </cell>
26473 <cell alignment="left" valignment="top" usebox="none">
26474 \begin_inset Text
26475
26476 \begin_layout Plain Layout
26477
26478 \size small
26479 Hexagon
26480 \end_layout
26481
26482 \end_inset
26483 </cell>
26484 <cell alignment="left" valignment="top" usebox="none">
26485 \begin_inset Text
26486
26487 \begin_layout Plain Layout
26488
26489 \size small
26490 -
26491 \end_layout
26492
26493 \end_inset
26494 </cell>
26495 </row>
26496 <row interlinespace="default">
26497 <cell alignment="left" valignment="top" usebox="none">
26498 \begin_inset Text
26499
26500 \begin_layout Plain Layout
26501
26502 \size small
26503 Nut
26504 \end_layout
26505
26506 \end_inset
26507 </cell>
26508 <cell alignment="left" valignment="top" usebox="none">
26509 \begin_inset Text
26510
26511 \begin_layout Plain Layout
26512
26513 \size small
26514 Nut for bolt (hexagon with circular hole)
26515 \end_layout
26516
26517 \end_inset
26518 </cell>
26519 <cell alignment="left" valignment="top" usebox="none">
26520 \begin_inset Text
26521
26522 \begin_layout Plain Layout
26523
26524 \size small
26525 -
26526 \end_layout
26527
26528 \end_inset
26529 </cell>
26530 </row>
26531 <row interlinespace="default">
26532 <cell alignment="left" valignment="top" usebox="none">
26533 \begin_inset Text
26534
26535 \begin_layout Plain Layout
26536
26537 \size small
26538 Square
26539 \end_layout
26540
26541 \end_inset
26542 </cell>
26543 <cell alignment="left" valignment="top" usebox="none">
26544 \begin_inset Text
26545
26546 \begin_layout Plain Layout
26547
26548 \size small
26549 Square
26550 \end_layout
26551
26552 \end_inset
26553 </cell>
26554 <cell alignment="left" valignment="top" usebox="none">
26555 \begin_inset Text
26556
26557 \begin_layout Plain Layout
26558
26559 \size small
26560 -
26561 \end_layout
26562
26563 \end_inset
26564 </cell>
26565 </row>
26566 <row interlinespace="default">
26567 <cell alignment="left" valignment="top" usebox="none">
26568 \begin_inset Text
26569
26570 \begin_layout Plain Layout
26571
26572 \size small
26573 Star
26574 \end_layout
26575
26576 \end_inset
26577 </cell>
26578 <cell alignment="left" valignment="top" usebox="none">
26579 \begin_inset Text
26580
26581 \begin_layout Plain Layout
26582
26583 \size small
26584 Five-point star
26585 \end_layout
26586
26587 \end_inset
26588 </cell>
26589 <cell alignment="left" valignment="top" usebox="none">
26590 \begin_inset Text
26591
26592 \begin_layout Plain Layout
26593
26594 \size small
26595 -
26596 \end_layout
26597
26598 \end_inset
26599 </cell>
26600 </row>
26601 <row interlinespace="default">
26602 <cell alignment="left" valignment="top" usebox="none">
26603 \begin_inset Text
26604
26605 \begin_layout Plain Layout
26606
26607 \size small
26608 Candle
26609 \end_layout
26610
26611 \end_inset
26612 </cell>
26613 <cell alignment="left" valignment="top" usebox="none">
26614 \begin_inset Text
26615
26616 \begin_layout Plain Layout
26617
26618 \size small
26619 Burning candle
26620 \end_layout
26621
26622 \end_inset
26623 </cell>
26624 <cell alignment="left" valignment="top" usebox="none">
26625 \begin_inset Text
26626
26627 \begin_layout Plain Layout
26628
26629 \size small
26630 -
26631 \end_layout
26632
26633 \end_inset
26634 </cell>
26635 </row>
26636 <row interlinespace="default">
26637 <cell alignment="left" valignment="top" usebox="none">
26638 \begin_inset Text
26639
26640 \begin_layout Plain Layout
26641
26642 \size small
26643 Drop down/up
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 Normal/reversed rain drop
26655 \end_layout
26656
26657 \end_inset
26658 </cell>
26659 <cell alignment="left" valignment="top" usebox="none">
26660 \begin_inset Text
26661
26662 \begin_layout Plain Layout
26663
26664 \size small
26665 Fragile, calculation might fail
26666 \end_layout
26667
26668 \end_inset
26669 </cell>
26670 </row>
26671 <row interlinespace="default">
26672 <cell alignment="left" valignment="top" usebox="none">
26673 \begin_inset Text
26674
26675 \begin_layout Plain Layout
26676
26677 \size small
26678 \SpecialChar TeX
26679
26680 \end_layout
26681
26682 \end_inset
26683 </cell>
26684 <cell alignment="left" valignment="top" usebox="none">
26685 \begin_inset Text
26686
26687 \begin_layout Plain Layout
26688
26689 \size small
26690 The \SpecialChar TeX
26691  logo
26692 \end_layout
26693
26694 \end_inset
26695 </cell>
26696 <cell alignment="left" valignment="top" usebox="none">
26697 \begin_inset Text
26698
26699 \begin_layout Plain Layout
26700
26701 \size small
26702 -
26703 \end_layout
26704
26705 \end_inset
26706 </cell>
26707 </row>
26708 <row interlinespace="default">
26709 <cell alignment="left" valignment="top" bottomline="true" usebox="none">
26710 \begin_inset Text
26711
26712 \begin_layout Plain Layout
26713
26714 \size small
26715 Triangle up/down/
26716 \begin_inset Newline newline
26717 \end_inset
26718
26719 left/right
26720 \end_layout
26721
26722 \end_inset
26723 </cell>
26724 <cell alignment="left" valignment="top" bottomline="true" usebox="none">
26725 \begin_inset Text
26726
26727 \begin_layout Plain Layout
26728
26729 \size small
26730 Triangles in different orientations
26731 \end_layout
26732
26733 \end_inset
26734 </cell>
26735 <cell alignment="left" valignment="top" bottomline="true" usebox="none">
26736 \begin_inset Text
26737
26738 \begin_layout Plain Layout
26739
26740 \size small
26741 -
26742 \end_layout
26743
26744 \end_inset
26745 </cell>
26746 </row>
26747 </lyxtabular>
26748
26749 \end_inset
26750
26751
26752 \end_layout
26753
26754 \begin_layout Standard
26755 To use a shape for your paragraph, simply select it in \SpecialChar LyX
26756 's pull-down box
26757  for environments in the toolbar.
26758 \end_layout
26759
26760 \begin_layout Standard
26761 \begin_inset Newpage newpage
26762 \end_inset
26763
26764
26765 \end_layout
26766
26767 \begin_layout Standard
26768 Here is an example paragraph in the shape of a nut:
26769 \end_layout
26770
26771 \begin_layout Standard
26772 \begin_inset VSpace bigskip
26773 \end_inset
26774
26775
26776 \end_layout
26777
26778 \begin_layout Nut
26779
26780 \lang latin
26781 Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
26782  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
26783  voluptua.
26784  At vero eos et accusam et justo duo dolores et ea rebum.
26785  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
26786  sit amet.
26787  Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
26788  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
26789  voluptua.
26790 \end_layout
26791
26792 \begin_layout Standard
26793 \begin_inset VSpace bigskip
26794 \end_inset
26795
26796
26797 \end_layout
26798
26799 \begin_layout Standard
26800 \begin_inset Note Greyedout
26801 status open
26802
26803 \begin_layout Plain Layout
26804
26805 \series bold
26806 Note
26807 \series default
26808
26809 \family sans
26810 shapepar
26811 \family default
26812  paragraphs cannot run over a page break.
26813 \end_layout
26814
26815 \end_inset
26816
26817
26818 \end_layout
26819
26820 \begin_layout Standard
26821 \begin_inset VSpace bigskip
26822 \end_inset
26823
26824
26825 \end_layout
26826
26827 \begin_layout Standard
26828 The package 
26829 \begin_inset Flex Code
26830 status collapsed
26831
26832 \begin_layout Plain Layout
26833 shapepar
26834 \end_layout
26835
26836 \end_inset
26837
26838  takes care that the shape will always be preserved, no matter how much
26839  text is in the paragraph.
26840  Therefore the paragraph size changes with the amount of contained text.
26841  This can lead to paragraph sizes exceeding the page margins.
26842  To demonstrate the size scaling, here is the same example paragraph but
26843  with twice as much text:
26844 \end_layout
26845
26846 \begin_layout Standard
26847 \begin_inset Newpage newpage
26848 \end_inset
26849
26850
26851 \end_layout
26852
26853 \begin_layout Nut
26854
26855 \lang latin
26856 Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
26857  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
26858  voluptua.
26859  At vero eos et accusam et justo duo dolores et ea rebum.
26860  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
26861  sit amet.
26862  Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
26863  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
26864  voluptua.
26865  Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
26866  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
26867  voluptua.
26868  At vero eos et accusam et justo duo dolores et ea rebum.
26869  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
26870  sit amet.
26871  Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
26872  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
26873  voluptua.
26874 \end_layout
26875
26876 \begin_layout Standard
26877 \begin_inset VSpace bigskip
26878 \end_inset
26879
26880
26881 \end_layout
26882
26883 \begin_layout Standard
26884 An exception is the shape 
26885 \family sans
26886 CDlabel
26887 \family default
26888 .
26889  It cannot be scaled because it must fit the size of a CD/DVD.
26890  Therefore the amount of text that fits into the shape is limited.
26891 \begin_inset Newline newline
26892 \end_inset
26893
26894 The 
26895 \family sans
26896 drop
26897 \family default
26898  shapes and the 
26899 \family sans
26900 circle
26901 \family default
26902  shape are fragile, meaning that the calculation of their size can fail,
26903  depending on the amount of text.
26904  You will then get the \SpecialChar LaTeX
26905  error 
26906 \begin_inset Quotes eld
26907 \end_inset
26908
26909 Arithmetic overflow
26910 \begin_inset Quotes erd
26911 \end_inset
26912
26913 .
26914  In this case one can try to remove or add some text; if nothing works one
26915  has to use another shape.
26916 \end_layout
26917
26918 \begin_layout Standard
26919 \begin_inset VSpace bigskip
26920 \end_inset
26921
26922
26923 \end_layout
26924
26925 \begin_layout Standard
26926 For shapes with tips you will maybe see that \SpecialChar LaTeX
26927 's hyphenation routine fails
26928  for text in the tips.
26929  Therefore it is often necessary to add hyphenation points 
26930 \family sans
26931 (
26932 \begin_inset Info
26933 type  "shortcut"
26934 arg   "specialchar-insert hyphenation"
26935 \end_inset
26936
26937
26938 \family default
26939 ) to the corresponding text parts.
26940 \end_layout
26941
26942 \begin_layout Standard
26943 \begin_inset VSpace bigskip
26944 \end_inset
26945
26946
26947 \end_layout
26948
26949 \begin_layout Standard
26950 Shapepar paragraphs are either always centered or placed on the page so
26951  that their left border touches the left page margin.
26952  You can therefore not use the paragraph dialog to align such paragraphs.
26953  A solution is to put the paragraph into a minipage or parbox and align
26954  the box.
26955  The problem is hereby to find the right width for the box.
26956  Because if it is too wide and you center the box, the paragraph is not
26957  centered too because it sticks at the left side of the box.
26958  So you might have to play a bit with the width until it fits.
26959  Here are two heart-shaped paragraphs, the first one is not aligned, the
26960  second one is right-aligned:
26961 \end_layout
26962
26963 \begin_layout Standard
26964 \begin_inset Newpage newpage
26965 \end_inset
26966
26967
26968 \end_layout
26969
26970 \begin_layout Heart
26971 \noindent
26972
26973 \lang latin
26974 Lo\SpecialChar softhyphen
26975 rem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
26976  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
26977  voluptua.
26978  At vero eos et accusam et justo duo dolores et ea rebum.
26979  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
26980  sit amet.
26981 \end_layout
26982
26983 \begin_layout Standard
26984 \begin_inset VSpace bigskip
26985 \end_inset
26986
26987
26988 \end_layout
26989
26990 \begin_layout Standard
26991 \noindent
26992 \align right
26993 \begin_inset Box Frameless
26994 position "t"
26995 hor_pos "c"
26996 has_inner_box 1
26997 inner_pos "t"
26998 use_parbox 1
26999 use_makebox 0
27000 width "42col%"
27001 special "none"
27002 height "1in"
27003 height_special "totalheight"
27004 thickness "0.4pt"
27005 separation "3pt"
27006 shadowsize "4pt"
27007 framecolor "black"
27008 backgroundcolor "none"
27009 status open
27010
27011 \begin_layout Heart
27012 \noindent
27013
27014 \lang latin
27015 Lo\SpecialChar softhyphen
27016 rem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
27017  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
27018  voluptua.
27019  At vero eos et accusam et justo duo dolores et ea rebum.
27020  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
27021  sit amet.
27022 \end_layout
27023
27024 \end_inset
27025
27026
27027 \end_layout
27028
27029 \begin_layout Subsection
27030 Custom shapes
27031 \end_layout
27032
27033 \begin_layout Standard
27034 You can define any shape you want.
27035  Doing this manually is a lot of work because every coordinate must be specified.
27036  But there is a way to let the computer calculate the coordinates:
27037 \end_layout
27038
27039 \begin_layout Enumerate
27040 Install the program 
27041 \begin_inset CommandInset href
27042 LatexCommand href
27043 name "Jpgfdraw"
27044 target "https://www.ctan.org/tex-archive/graphics/jpgfdraw"
27045 literal "false"
27046
27047 \end_inset
27048
27049 .
27050 \end_layout
27051
27052 \begin_layout Enumerate
27053 In 
27054 \family sans
27055 Jpgfdraw
27056 \family default
27057  go to the menu 
27058 \family sans
27059 TeX/LaTeX\SpecialChar menuseparator
27060 Settings\SpecialChar menuseparator
27061 Set Normal Size
27062 \family default
27063  and select the font size you are using in your document.
27064  For example this document uses the size 12
27065 \begin_inset space \thinspace{}
27066 \end_inset
27067
27068 pt.
27069 \end_layout
27070
27071 \begin_layout Enumerate
27072 Draw a shape.
27073 \end_layout
27074
27075 \begin_layout Enumerate
27076 Use the menu 
27077 \family sans
27078 TeX/LaTeX\SpecialChar menuseparator
27079 Shapepar
27080 \family default
27081  to export the shape to coordinates.
27082  In the appearing dialog use either the outline of your shape for the coordinate
27083 s or the path itself.
27084 \begin_inset Foot
27085 status collapsed
27086
27087 \begin_layout Plain Layout
27088 For more information see 
27089 \begin_inset CommandInset href
27090 LatexCommand href
27091 target "http://www.dickimaw-books.com/apps/jpgfdraw/manual/shapepar.html"
27092 literal "false"
27093
27094 \end_inset
27095
27096
27097 \end_layout
27098
27099 \end_inset
27100
27101
27102 \end_layout
27103
27104 \begin_layout Standard
27105 The coordinates are written into a \SpecialChar TeX
27106  file.
27107  To use it for your \SpecialChar LyX
27108  document
27109 \end_layout
27110
27111 \begin_layout Enumerate
27112 Place the cursor before the first character of your paragraph (or into a
27113  new empty one).
27114 \end_layout
27115
27116 \begin_layout Enumerate
27117 Open in \SpecialChar LyX
27118  the menu 
27119 \family sans
27120 Insert\SpecialChar menuseparator
27121 File\SpecialChar menuseparator
27122 Child
27123 \begin_inset space ~
27124 \end_inset
27125
27126 Document
27127 \family default
27128 , select the file and use 
27129 \family sans
27130 Input
27131 \family default
27132  as 
27133 \family sans
27134 Include Type.
27135 \end_layout
27136
27137 \begin_layout Standard
27138 \begin_inset VSpace defskip
27139 \end_inset
27140
27141
27142 \end_layout
27143
27144 \begin_layout Standard
27145 \begin_inset Note Greyedout
27146 status open
27147
27148 \begin_layout Plain Layout
27149
27150 \series bold
27151 Note
27152 \series default
27153 : The changed shape only applies to the current paragraph; everything is
27154  reset to normal for the next paragraph.
27155  Therefore the shape definition file must be input into every paragraph
27156  with the desired shape.
27157 \end_layout
27158
27159 \end_inset
27160
27161
27162 \end_layout
27163
27164 \begin_layout Standard
27165 \begin_inset VSpace bigskip
27166 \end_inset
27167
27168
27169 \end_layout
27170
27171 \begin_layout Standard
27172 Here is an example:
27173 \end_layout
27174
27175 \begin_layout Standard
27176 \begin_inset VSpace bigskip
27177 \end_inset
27178
27179
27180 \end_layout
27181
27182 \begin_layout Standard
27183 \begin_inset CommandInset include
27184 LatexCommand input
27185 filename "SpecialParagraphShape.tex"
27186 literal "true"
27187
27188 \end_inset
27189
27190
27191 \lang latin
27192 Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
27193  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
27194  voluptua.
27195  At vero eos et accusam et justo duo dolores et ea rebum.
27196  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
27197  sit amet.
27198  Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
27199  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
27200  voluptua.
27201 \end_layout
27202
27203 \begin_layout Standard
27204 \begin_inset VSpace bigskip
27205 \end_inset
27206
27207
27208 \end_layout
27209
27210 \begin_layout Standard
27211
27212 \series bold
27213 A tip:
27214 \series default
27215  to draw complexer shapes in 
27216 \family sans
27217 Jpgfdraw
27218 \family default
27219  you can draw the shape in a program of your choice and import the resulting
27220  image to 
27221 \family sans
27222 Jpgfdraw
27223 \family default
27224 .
27225  Then you only need to draw a line or spline along the outline of the image.
27226 \end_layout
27227
27228 \begin_layout Standard
27229 \begin_inset VSpace bigskip
27230 \end_inset
27231
27232
27233 \end_layout
27234
27235 \begin_layout Standard
27236 The module 
27237 \family sans
27238 Custom paragraph shapes
27239 \family default
27240  also provides the two commands 
27241 \family sans
27242 shapepar
27243 \family default
27244  and 
27245 \family sans
27246 Shapepar
27247 \family default
27248  which can be used to define custom shapes coordinate by coordinate.
27249 \begin_inset Foot
27250 status collapsed
27251
27252 \begin_layout Plain Layout
27253 These commands are internally used for all shapes described here.
27254 \end_layout
27255
27256 \end_inset
27257
27258  For information how these styles are used and about further customization
27259  possibilities, have a look at the 
27260 \begin_inset CommandInset href
27261 LatexCommand href
27262 name "documentation"
27263 target "https://www.ctan.org/tex-archive/macros/latex/contrib/shapepar/shapepar.pdf"
27264 literal "false"
27265
27266 \end_inset
27267
27268  of the package 
27269 \begin_inset Flex Code
27270 status collapsed
27271
27272 \begin_layout Plain Layout
27273 shapepar
27274 \end_layout
27275
27276 \end_inset
27277
27278 .
27279 \end_layout
27280
27281 \end_body
27282 \end_document