]> git.lyx.org Git - lyx.git/blob - lib/doc/Additional.lyx
Move AMS LaTeX section into new Chapter 3 Document classes
[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
2326 \change_inserted 564990737 1670439508
2327 Document classes
2328 \end_layout
2329
2330 \begin_layout Section
2331
2332 \change_inserted 564990737 1670439533
2333 \begin_inset CommandInset label
2334 LatexCommand label
2335 name "sec:Collections"
2336
2337 \end_inset
2338
2339 Collections
2340 \end_layout
2341
2342 \begin_layout Subsection
2343 AMS \SpecialChar LaTeX
2344
2345 \end_layout
2346
2347 \begin_layout Standard
2348 by 
2349 \noun on
2350 David Johnson
2351 \noun default
2352 ; updated by 
2353 \noun on
2354 Richard Kimberly Heck
2355 \end_layout
2356
2357 \begin_layout Standard
2358 \begin_inset VSpace bigskip
2359 \end_inset
2360
2361
2362 \end_layout
2363
2364 \begin_layout Standard
2365 \noindent
2366 The AMS \SpecialChar LaTeX
2367  layouts are set up to conform to suggested styles for mathematical
2368  papers to be submitted to American Mathematical Society publications.
2369  The layouts are not tailored to a specific journal, but easily can be.
2370  You should refer to the AMS documentation for specific instructions for
2371  each journal (usually it will entail only changing a single line in the
2372  \SpecialChar TeX
2373  output).
2374  That documentation is available on the Web at 
2375 \begin_inset Flex URL
2376 status open
2377
2378 \begin_layout Plain Layout
2379
2380 http://www.ams.org
2381 \end_layout
2382
2383 \end_inset
2384
2385  or by ftp at 
2386 \begin_inset Flex URL
2387 status open
2388
2389 \begin_layout Plain Layout
2390
2391 ftp://ftp.ams.org/pub/tex/amslatex/
2392 \end_layout
2393
2394 \end_inset
2395
2396 .
2397  These layouts are appropriate, and useful, for any mathematical writing.
2398  
2399 \end_layout
2400
2401 \begin_layout Standard
2402 There are two basic AMS \SpecialChar LaTeX
2403  layouts: 
2404 \end_layout
2405
2406 \begin_layout Itemize
2407 amsart: The standard AMS article format.
2408 \end_layout
2409
2410 \begin_layout Itemize
2411 amsbook: the standard AMS book (really, monograph) format.
2412  
2413 \end_layout
2414
2415 \begin_layout Standard
2416 The layouts themselves contain only the minimum necessary to use the AMS
2417  classes.
2418  They do not, in particular, contain any of the `theorem' environments used
2419  for setting theorems, lemmas, and the like.
2420  These are contained, instead, in the 
2421 \begin_inset Flex Code
2422 status collapsed
2423
2424 \begin_layout Plain Layout
2425 Theorems (AMS)
2426 \end_layout
2427
2428 \end_inset
2429
2430  module, which is loaded by default when you select one of the AMS classes.
2431  (It can also be used with other classes and can be removed, if you would
2432  rather use something else.) Less commonly used environments are in the 
2433 \begin_inset Flex Code
2434 status collapsed
2435
2436 \begin_layout Plain Layout
2437 Theorems (AMS-Extended)
2438 \end_layout
2439
2440 \end_inset
2441
2442  module, which must be loaded manually.
2443 \end_layout
2444
2445 \begin_layout Standard
2446 By default, theorems and the like are numbered consecutively throughout
2447  the document, but this may be modified by loading the module 
2448 \begin_inset Flex Code
2449 status collapsed
2450
2451 \begin_layout Plain Layout
2452 Theorems (Order by Section)
2453 \end_layout
2454
2455 \end_inset
2456
2457  or, if you are using 
2458 \begin_inset Flex Code
2459 status collapsed
2460
2461 \begin_layout Plain Layout
2462 book (AMS)
2463 \end_layout
2464
2465 \end_inset
2466
2467 , the module 
2468 \begin_inset Flex Code
2469 status collapsed
2470
2471 \begin_layout Plain Layout
2472 Theorems (Order by Chapter)
2473 \end_layout
2474
2475 \end_inset
2476
2477 .
2478  These will number the results as 
2479 \begin_inset Formula $n.m$
2480 \end_inset
2481
2482 , where the first number refers to the section (or chapter) and the second
2483  refers to the total number of results so far in that section (or chapter).
2484  Many environments are also available unnumbered.
2485  These are indicated by an asterisk at the end.
2486  If you happen to want 
2487 \emph on
2488 only
2489 \emph default
2490  unnumbered results, the module 
2491 \begin_inset Flex Code
2492 status collapsed
2493
2494 \begin_layout Plain Layout
2495 Theorems (Starred)
2496 \end_layout
2497
2498 \end_inset
2499
2500  provides that option.
2501 \end_layout
2502
2503 \begin_layout Standard
2504 Note that these modules do not 
2505 \emph on
2506 have
2507 \emph default
2508  to be used with the AMS classes.
2509  It is perfectly possible to use the 
2510 \begin_inset Flex Code
2511 status collapsed
2512
2513 \begin_layout Plain Layout
2514 Theorems (AMS)
2515 \end_layout
2516
2517 \end_inset
2518
2519  module, and the others mentioned, with other classes, such as 
2520 \begin_inset Flex Code
2521 status collapsed
2522
2523 \begin_layout Plain Layout
2524 article
2525 \end_layout
2526
2527 \end_inset
2528
2529
2530 \begin_inset Flex Code
2531 status collapsed
2532
2533 \begin_layout Plain Layout
2534 report
2535 \end_layout
2536
2537 \end_inset
2538
2539
2540 \begin_inset Flex Code
2541 status collapsed
2542
2543 \begin_layout Plain Layout
2544 book (KOMA-script)
2545 \end_layout
2546
2547 \end_inset
2548
2549 , and so forth.
2550 \end_layout
2551
2552 \begin_layout Subsubsection
2553 What these layouts provide
2554 \end_layout
2555
2556 \begin_layout Standard
2557 There is a long list of included environments provided by these layouts.
2558  In AMS-\SpecialChar LaTeX
2559 , there is, in fact, an opportunity to define an unlimited variety
2560  of `theorem' environments.
2561  However, the AMS recommends the environments that are available in \SpecialChar LyX
2562 .
2563  
2564 \end_layout
2565
2566 \begin_layout Standard
2567 The following environments—as well as the standard environments, such as
2568  
2569 \begin_inset Flex Noun
2570 status collapsed
2571
2572 \begin_layout Plain Layout
2573 section
2574 \end_layout
2575
2576 \end_inset
2577
2578
2579 \begin_inset Flex Noun
2580 status collapsed
2581
2582 \begin_layout Plain Layout
2583 bibliography
2584 \end_layout
2585
2586 \end_inset
2587
2588
2589 \begin_inset Flex Noun
2590 status collapsed
2591
2592 \begin_layout Plain Layout
2593 title
2594 \end_layout
2595
2596 \end_inset
2597
2598
2599 \begin_inset Flex Noun
2600 status collapsed
2601
2602 \begin_layout Plain Layout
2603 author
2604 \end_layout
2605
2606 \end_inset
2607
2608 , and 
2609 \begin_inset Flex Noun
2610 status collapsed
2611
2612 \begin_layout Plain Layout
2613 date
2614 \end_layout
2615
2616 \end_inset
2617
2618 —are provided by 
2619 \begin_inset Flex Code
2620 status collapsed
2621
2622 \begin_layout Plain Layout
2623 article (AMS)
2624 \end_layout
2625
2626 \end_inset
2627
2628  and 
2629 \begin_inset Flex Code
2630 status collapsed
2631
2632 \begin_layout Plain Layout
2633 book (AMS)
2634 \end_layout
2635
2636 \end_inset
2637
2638 :
2639 \end_layout
2640
2641 \begin_layout Description
2642 Address This should be the author's permanent address.
2643 \end_layout
2644
2645 \begin_layout Description
2646 Current
2647 \begin_inset space ~
2648 \end_inset
2649
2650 Address This should be the author's temporary address at the time of submission,
2651  if different from the Address.
2652 \end_layout
2653
2654 \begin_layout Description
2655 Email Author's e-mail address
2656 \end_layout
2657
2658 \begin_layout Description
2659 URL Author's Web address, if desired.
2660 \end_layout
2661
2662 \begin_layout Description
2663 Keywords Key words or phrases used to identify specific topics discussed
2664  in the paper.
2665 \end_layout
2666
2667 \begin_layout Description
2668 Subjectclass These refer to the AMS Subject Classifications, published and
2669  described in 
2670 \emph on
2671 Mathematical Reviews
2672 \emph default
2673 .
2674  These are also available online at the AMS cites listed above.
2675 \end_layout
2676
2677 \begin_layout Description
2678 Thanks
2679 \end_layout
2680
2681 \begin_layout Description
2682 Dedicatory
2683 \end_layout
2684
2685 \begin_layout Description
2686 Translator
2687 \end_layout
2688
2689 \begin_layout Standard
2690 The following environments are provided by both the 
2691 \begin_inset Flex Code
2692 status collapsed
2693
2694 \begin_layout Plain Layout
2695 Theorems
2696 \end_layout
2697
2698 \end_inset
2699
2700  and 
2701 \begin_inset Flex Code
2702 status collapsed
2703
2704 \begin_layout Plain Layout
2705 Theorems (AMS)
2706 \end_layout
2707
2708 \end_inset
2709
2710  modules, in the latter case in both starred (unnumbered) and unstarred
2711  (numbered) versions.
2712  These same environments are provided only in the starred versions by the
2713  
2714 \begin_inset Flex Code
2715 status collapsed
2716
2717 \begin_layout Plain Layout
2718 Theorems (Starred)
2719 \end_layout
2720
2721 \end_inset
2722
2723  module:
2724 \end_layout
2725
2726 \begin_layout Theorem
2727 This is typically used for the statements of major results.
2728  
2729 \end_layout
2730
2731 \begin_layout Corollary*
2732 This is used for statements which follow fairly directly from previous statement
2733 s.
2734  Again, these can be major results.
2735  
2736 \end_layout
2737
2738 \begin_layout Lemma
2739 These are smaller results needed to prove other statements.
2740 \end_layout
2741
2742 \begin_layout Proposition
2743 These are less major results which (hopefully) add to the general theory
2744  being discussed.
2745 \end_layout
2746
2747 \begin_layout Conjecture
2748 These are statements provided without justification, which the author does
2749  not know how to prove, but which seem to be true (to the author, at least).
2750 \end_layout
2751
2752 \begin_layout Definition*
2753 Guess what this is for.
2754  The font is different for this environment than for the previous ones.
2755  
2756 \end_layout
2757
2758 \begin_layout Example*
2759 Used for examples illustrating proven results.
2760 \end_layout
2761
2762 \begin_layout Problem
2763 It's not really known what this is for.
2764  You should figure it out.
2765 \end_layout
2766
2767 \begin_layout Exercise*
2768 Write a description for this one.
2769 \end_layout
2770
2771 \begin_layout Remark
2772 This environment is also a type of theorem, usually a lesser sort of observation.
2773 \end_layout
2774
2775 \begin_layout Claim*
2776 Often used in the course of giving a proof of a larger result.
2777 \end_layout
2778
2779 \begin_layout Case
2780 Generally, these are used to break up long arguments, using specific instances
2781  of some condition.
2782  
2783 \end_layout
2784
2785 \begin_layout Case
2786 The numbering scheme for cases is on its own, not together with other numbered
2787  statements.
2788  
2789 \end_layout
2790
2791 \begin_layout Proof
2792 At the end of this environment, a QED symbol (usually a square, but it can
2793  vary with different styles) is placed.
2794  If you want to have other environments within this one—for example, Case
2795  environments—and have the QED symbol appear only after them, then the other
2796  environments need to be nested within the proof environment.
2797  See the section 
2798 \emph on
2799 Nesting Environments
2800 \emph default
2801  of the 
2802 \emph on
2803 User's Guide
2804 \emph default
2805  for information on nesting.
2806 \end_layout
2807
2808 \begin_layout Standard
2809 And these environments are provided by 
2810 \begin_inset Flex Code
2811 status collapsed
2812
2813 \begin_layout Plain Layout
2814 Theorems (AMS-Extended)
2815 \end_layout
2816
2817 \end_inset
2818
2819 :
2820 \end_layout
2821
2822 \begin_layout Criterion*
2823 A required condition.
2824 \end_layout
2825
2826 \begin_layout Algorithm*
2827 A general procedure to be used.
2828 \end_layout
2829
2830 \begin_layout Axiom*
2831 This is a property or statement taken as true within the system being discussed.
2832 \end_layout
2833
2834 \begin_layout Condition*
2835 Sometimes used to state a condition assumed within the present context of
2836  discussion.
2837 \end_layout
2838
2839 \begin_layout Note*
2840 Similar to a Remark.
2841 \end_layout
2842
2843 \begin_layout Notation*
2844 Used for the explanation of, yes, notation.
2845 \end_layout
2846
2847 \begin_layout Summary
2848 Do we really need to tell you? 
2849 \end_layout
2850
2851 \begin_layout Acknowledgement*
2852 Acknowledgement.
2853 \end_layout
2854
2855 \begin_layout Conclusion*
2856 Sometimes used at the end of a long train of argument.
2857 \end_layout
2858
2859 \begin_layout Fact
2860 Used in a way similar to Proposition, though perhaps lower on the scale.
2861 \end_layout
2862
2863 \begin_layout Standard
2864 In addition, the AMS classes automatically provide the AMS \SpecialChar LaTeX
2865  and AMS fonts
2866  packages.
2867  They need to be available on your system in order to use these environments.
2868 \end_layout
2869
2870 \begin_layout Section
2871
2872 \change_inserted 564990737 1670439534
2873 Articles
2874 \end_layout
2875
2876 \begin_layout Standard
2877
2878 \change_inserted 564990737 1670439557
2879 See also the document classes in the Collections (section
2880 \begin_inset space ~
2881 \end_inset
2882
2883
2884 \begin_inset CommandInset ref
2885 LatexCommand ref
2886 reference "sec:Collections"
2887
2888 \end_inset
2889
2890 ).
2891 \end_layout
2892
2893 \begin_layout Section
2894
2895 \change_inserted 564990737 1670439560
2896 Books
2897 \end_layout
2898
2899 \begin_layout Standard
2900
2901 \change_inserted 564990737 1670439581
2902 See also the document classes in the Collections (section
2903 \begin_inset space ~
2904 \end_inset
2905
2906
2907 \begin_inset CommandInset ref
2908 LatexCommand ref
2909 reference "sec:Collections"
2910
2911 \end_inset
2912
2913 ).
2914 \end_layout
2915
2916 \begin_layout Section
2917
2918 \change_inserted 564990737 1670439605
2919 Curricula vitarum
2920 \end_layout
2921
2922 \begin_layout Section
2923
2924 \change_inserted 564990737 1670439627
2925 Letters
2926 \end_layout
2927
2928 \begin_layout Section
2929
2930 \change_inserted 564990737 1670439660
2931 Presentations
2932 \end_layout
2933
2934 \begin_layout Section
2935
2936 \change_inserted 564990737 1670439661
2937 Reports
2938 \end_layout
2939
2940 \begin_layout Subsection
2941
2942 \change_inserted 564990737 1670439661
2943 report
2944 \end_layout
2945
2946 \begin_layout Standard
2947
2948 \change_inserted 564990737 1670439661
2949 The document class 
2950 \family sans
2951 report
2952 \family default
2953  provides the 
2954 \family sans
2955 report.cls
2956 \family default
2957  document class for preparing reports.
2958  Like the 
2959 \family sans
2960 book
2961 \family default
2962  document class, this provides parts, chapters and sections but does not
2963  provide the paragraph styles needed for a book; like the 
2964 \family sans
2965 article
2966 \family default
2967  document class, it provides the abstract paragraph style.
2968  In two-sided mode, it does not start a new chapter on the right hand page.
2969 \end_layout
2970
2971 \begin_layout Standard
2972
2973 \change_inserted 564990737 1670439674
2974 The remaining 
2975 \family sans
2976 report
2977 \family default
2978  document classes are described in the Collections (section
2979 \begin_inset space ~
2980 \end_inset
2981
2982
2983 \begin_inset CommandInset ref
2984 LatexCommand ref
2985 reference "sec:Collections"
2986
2987 \end_inset
2988
2989 ).
2990 \end_layout
2991
2992 \begin_layout Section
2993
2994 \change_inserted 564990737 1670439674
2995 Scripts (drama)
2996 \end_layout
2997
2998 \begin_layout Chapter
2999 Supplemental Tools
3000 \end_layout
3001
3002 \begin_layout Section
3003 Customizing Bibliographies with Bib\SpecialChar TeX
3004  or Biblatex
3005 \end_layout
3006
3007 \begin_layout Standard
3008 The most basic information about how to use Bib\SpecialChar TeX
3009  or 
3010 \family sans
3011 Biblatex
3012 \family default
3013  with \SpecialChar LyX
3014  is contained in the section 
3015 \emph on
3016 Bibliography databases
3017 \emph default
3018  of the 
3019 \emph on
3020 User's Guide
3021 \emph default
3022 .
3023  The following subsections explain special bibliography features supported
3024  by \SpecialChar LyX
3025 .
3026 \end_layout
3027
3028 \begin_layout Subsection
3029 Alternative Citation Styles
3030 \end_layout
3031
3032 \begin_layout Standard
3033 Standard Bib\SpecialChar TeX
3034  uses numbers (e.
3035 \begin_inset space \thinspace{}
3036 \end_inset
3037
3038 g.
3039 \begin_inset space \space{}
3040 \end_inset
3041
3042
3043 \begin_inset Quotes eld
3044 \end_inset
3045
3046 [12]
3047 \begin_inset Quotes erd
3048 \end_inset
3049
3050 ) to refer to a cited work.
3051  However, in many scientific disciplines, other citation styles are in use.
3052  The most common one is the author-year style (e.
3053 \begin_inset space \thinspace{}
3054 \end_inset
3055
3056 g.
3057 \begin_inset space \space{}
3058 \end_inset
3059
3060
3061 \begin_inset Quotes eld
3062 \end_inset
3063
3064 Knuth 1984a
3065 \begin_inset Quotes erd
3066 \end_inset
3067
3068 ).
3069  \SpecialChar LyX
3070  supports three packages that provide this style, 
3071 \begin_inset Flex Code
3072 status collapsed
3073
3074 \begin_layout Plain Layout
3075 biblatex
3076 \end_layout
3077
3078 \end_inset
3079
3080
3081 \begin_inset Flex Code
3082 status collapsed
3083
3084 \begin_layout Plain Layout
3085 natbib
3086 \end_layout
3087
3088 \end_inset
3089
3090 , and 
3091 \begin_inset Flex Code
3092 status collapsed
3093
3094 \begin_layout Plain Layout
3095 jurabib
3096 \end_layout
3097
3098 \end_inset
3099
3100 .
3101  Each of these packages has their pros and cons, which cannot be listed
3102  in detail.
3103  If you only want to have simple author-year (or author-numerical) style,
3104  or if you want to use one of the countless style files for 
3105 \begin_inset Flex Code
3106 status collapsed
3107
3108 \begin_layout Plain Layout
3109 natbib
3110 \end_layout
3111
3112 \end_inset
3113
3114 , then the established 
3115 \begin_inset Flex Code
3116 status collapsed
3117
3118 \begin_layout Plain Layout
3119 natbib
3120 \end_layout
3121
3122 \end_inset
3123
3124  package is probably your choice.
3125  If you look for specific citation styles common in law studies, you might
3126  consider the 
3127 \begin_inset Flex Code
3128 status collapsed
3129
3130 \begin_layout Plain Layout
3131 jurabib
3132 \end_layout
3133
3134 \end_inset
3135
3136  package.
3137  If you want to have full control over the formatting or look for advanced
3138  features such as ibidem, footnote citations, full title citations, advanced
3139  date formats (such as 400 BC) or full localization to other languages than
3140  English, you should definitely consider 
3141 \begin_inset Flex Code
3142 status collapsed
3143
3144 \begin_layout Plain Layout
3145 biblatex
3146 \end_layout
3147
3148 \end_inset
3149
3150 , which exceeds all other packages in terms of features, but is also quite
3151  heavy and more resource-hungry.
3152 \end_layout
3153
3154 \begin_layout Standard
3155 The handling of these packages in \SpecialChar LyX
3156  is basically the same.
3157  Go to 
3158 \begin_inset Flex Noun
3159 status collapsed
3160
3161 \begin_layout Plain Layout
3162 Document\SpecialChar menuseparator
3163 Settings
3164 \end_layout
3165
3166 \end_inset
3167
3168  and select under 
3169 \begin_inset Flex Noun
3170 status collapsed
3171
3172 \begin_layout Plain Layout
3173 Bibliography
3174 \end_layout
3175
3176 \end_inset
3177
3178  the 
3179 \begin_inset Flex Noun
3180 status collapsed
3181
3182 \begin_layout Plain Layout
3183 Style Format
3184 \end_layout
3185
3186 \end_inset
3187
3188  
3189 \begin_inset Flex Noun
3190 status collapsed
3191
3192 \begin_layout Plain Layout
3193 Basic (BibTeX)
3194 \end_layout
3195
3196 \end_inset
3197
3198
3199 \begin_inset Flex Noun
3200 status collapsed
3201
3202 \begin_layout Plain Layout
3203 Biblatex
3204 \end_layout
3205
3206 \end_inset
3207
3208
3209 \begin_inset Flex Noun
3210 status collapsed
3211
3212 \begin_layout Plain Layout
3213 Biblatex (Natbib mode)
3214 \end_layout
3215
3216 \end_inset
3217
3218
3219 \begin_inset Flex Noun
3220 status collapsed
3221
3222 \begin_layout Plain Layout
3223 Natbib (BibTeX)
3224 \end_layout
3225
3226 \end_inset
3227
3228  or 
3229 \begin_inset Flex Noun
3230 status collapsed
3231
3232 \begin_layout Plain Layout
3233 Jurabib (BibTeX)
3234 \end_layout
3235
3236 \end_inset
3237
3238  (see sec.
3239 \begin_inset space ~
3240 \end_inset
3241
3242 6.5.3 in the User's Guide for more information on these choices).
3243  With all these packages, you will get some extra features in the citation
3244  dialog and you can select the style of the reference (
3245 \begin_inset Quotes eld
3246 \end_inset
3247
3248 Knuth 1984
3249 \begin_inset Quotes erd
3250 \end_inset
3251
3252
3253 \begin_inset Quotes eld
3254 \end_inset
3255
3256 Knuth (1984)
3257 \begin_inset Quotes erd
3258 \end_inset
3259
3260
3261 \begin_inset Quotes eld
3262 \end_inset
3263
3264 Knuth, 1984
3265 \begin_inset Quotes erd
3266 \end_inset
3267
3268
3269 \begin_inset Quotes eld
3270 \end_inset
3271
3272 1984
3273 \begin_inset Quotes erd
3274 \end_inset
3275
3276  etc.).
3277  Note that either package needs specifically designed style files.
3278  They all ship their own, but there are lots of additional style files,
3279  and there is even an interactive style file builder
3280 \begin_inset Foot
3281 status collapsed
3282
3283 \begin_layout Plain Layout
3284 See 
3285 \begin_inset Flex URL
3286 status open
3287
3288 \begin_layout Plain Layout
3289
3290 ftp://ctan.tug.org/tex-archive/macros/latex/contrib/custom-bib/
3291 \end_layout
3292
3293 \end_inset
3294
3295
3296 \end_layout
3297
3298 \end_inset
3299
3300  for 
3301 \begin_inset Flex Code
3302 status collapsed
3303
3304 \begin_layout Plain Layout
3305 natbib
3306 \end_layout
3307
3308 \end_inset
3309
3310 .
3311 \end_layout
3312
3313 \begin_layout Subsection
3314 Subdivided Bibliographies
3315 \end_layout
3316
3317 \begin_layout Standard
3318 Sometimes you might need to divide your bibliography into several sections.
3319  If you are for instance a historian, the possibility to separate sources
3320  and scientific works is most likely a 
3321 \begin_inset Quotes eld
3322 \end_inset
3323
3324 must have
3325 \begin_inset Quotes erd
3326 \end_inset
3327
3328 .
3329  Unfortunately, Bib\SpecialChar TeX
3330  itself does not allow you to do this.
3331  But with the help of some \SpecialChar LaTeX
3332  packages, Bib\SpecialChar TeX
3333  can be extended to fit your needs.
3334 \end_layout
3335
3336 \begin_layout Standard
3337 \SpecialChar LyX
3338  provides native support for one of these packages, 
3339 \family typewriter
3340 bibtopic
3341 \family default
3342 .
3343 \begin_inset Foot
3344 status collapsed
3345
3346 \begin_layout Plain Layout
3347 Available from 
3348 \begin_inset Flex URL
3349 status open
3350
3351 \begin_layout Plain Layout
3352
3353 ftp://ctan.tug.org/tex-archive/macros/latex/contrib/bibtopic/
3354 \end_layout
3355
3356 \end_inset
3357
3358
3359 \end_layout
3360
3361 \end_inset
3362
3363  The advantage of this package (compared to other packages such as 
3364 \family typewriter
3365 multibib
3366 \family default
3367 ) is that you don't need to define new citation commands.
3368  Instead, you need to prepare different bibliographic databases which include
3369  the entries for the different sections of the bibliography.
3370  For example: If you want to divide your bibliography into the sections
3371  
3372 \begin_inset Quotes eld
3373 \end_inset
3374
3375 Sources
3376 \begin_inset Quotes erd
3377 \end_inset
3378
3379  and 
3380 \begin_inset Quotes eld
3381 \end_inset
3382
3383 Scientific works
3384 \begin_inset Quotes erd
3385 \end_inset
3386
3387 , you first need to create two bibliographic databases, e.
3388 \begin_inset space \thinspace{}
3389 \end_inset
3390
3391 g.
3392 \begin_inset space \space{}
3393 \end_inset
3394
3395
3396 \begin_inset Flex Code
3397 status collapsed
3398
3399 \begin_layout Plain Layout
3400 sources.bib
3401 \end_layout
3402
3403 \end_inset
3404
3405  and 
3406 \begin_inset Flex Code
3407 status collapsed
3408
3409 \begin_layout Plain Layout
3410 scientific.bib
3411 \end_layout
3412
3413 \end_inset
3414
3415 .
3416  
3417 \end_layout
3418
3419 \begin_layout Standard
3420 Go to 
3421 \begin_inset Flex Noun
3422 status collapsed
3423
3424 \begin_layout Plain Layout
3425 Document\SpecialChar menuseparator
3426 Settings
3427 \end_layout
3428
3429 \end_inset
3430
3431  and check under 
3432 \begin_inset Flex Noun
3433 status collapsed
3434
3435 \begin_layout Plain Layout
3436 Bibliography
3437 \end_layout
3438
3439 \end_inset
3440
3441  the option 
3442 \begin_inset Flex Noun
3443 status collapsed
3444
3445 \begin_layout Plain Layout
3446 Subdivided bibliography
3447 \end_layout
3448
3449 \end_inset
3450
3451 .
3452  Now you can insert multiple Bib\SpecialChar TeX
3453  bibliographies, one for each section of
3454  your bibliography.
3455  Returning to our example: Insert the Bib\SpecialChar TeX
3456  bibliography 
3457 \begin_inset Flex Code
3458 status collapsed
3459
3460 \begin_layout Plain Layout
3461 sources.bib
3462 \end_layout
3463
3464 \end_inset
3465
3466  and a second one for the database 
3467 \begin_inset Flex Code
3468 status collapsed
3469
3470 \begin_layout Plain Layout
3471 scientific.bib
3472 \end_layout
3473
3474 \end_inset
3475
3476 .
3477  You are free to use the same or different styles for each section.
3478  Additionally, you can choose if the bibliography section should contain
3479  
3480 \begin_inset Quotes eld
3481 \end_inset
3482
3483 all cited references
3484 \begin_inset Quotes erd
3485 \end_inset
3486
3487  of the specified database(s) (which is the default), 
3488 \begin_inset Quotes eld
3489 \end_inset
3490
3491 all uncited references
3492 \begin_inset Quotes erd
3493 \end_inset
3494
3495  or even 
3496 \begin_inset Quotes eld
3497 \end_inset
3498
3499 all references
3500 \begin_inset Quotes erd
3501 \end_inset
3502
3503 .
3504  This might be useful if you would like to separate your bibliography into
3505  three sections: 
3506 \begin_inset Quotes eld
3507 \end_inset
3508
3509 Cited sources
3510 \begin_inset Quotes erd
3511 \end_inset
3512
3513
3514 \begin_inset Quotes eld
3515 \end_inset
3516
3517 Uncited sources
3518 \begin_inset Quotes erd
3519 \end_inset
3520
3521 , and 
3522 \begin_inset Quotes eld
3523 \end_inset
3524
3525 Scientific works
3526 \begin_inset Quotes erd
3527 \end_inset
3528
3529 .
3530  The titles for the sections can be added as ordinary sections or subsections.
3531  Since 
3532 \begin_inset Flex Code
3533 status collapsed
3534
3535 \begin_layout Plain Layout
3536 bibtopic
3537 \end_layout
3538
3539 \end_inset
3540
3541  removes the bibliography title, you have to manually re-add that, too (as
3542  a chapter* or section*, for instance).
3543 \end_layout
3544
3545 \begin_layout Standard
3546 With 
3547 \family sans
3548 Biblatex
3549 \family default
3550 , the procedure is a bit different.
3551  Since 
3552 \family typewriter
3553 bibtopic
3554 \family default
3555  does not work with 
3556 \family sans
3557 Biblatex
3558 \family default
3559 , the aforementioned 
3560 \begin_inset Flex Noun
3561 status collapsed
3562
3563 \begin_layout Plain Layout
3564 Subdivided bibliography
3565 \end_layout
3566
3567 \end_inset
3568
3569  option is disabled if you use 
3570 \family sans
3571 Biblatex
3572 \family default
3573 .
3574  However, 
3575 \family sans
3576 Biblatex
3577 \family default
3578  provides its own means to generate subdivided bibliographies.
3579  You can either add keywords to bibliography entries via the 
3580 \begin_inset Flex Code
3581 status collapsed
3582
3583 \begin_layout Plain Layout
3584 keywords
3585 \end_layout
3586
3587 \end_inset
3588
3589  entry option and then filter bibliography sections by keyword (by adding
3590  
3591 \begin_inset Flex Code
3592 status collapsed
3593
3594 \begin_layout Plain Layout
3595 keyword=mykeyword
3596 \end_layout
3597
3598 \end_inset
3599
3600  to the 
3601 \begin_inset Flex Noun
3602 status collapsed
3603
3604 \begin_layout Plain Layout
3605 Options
3606 \end_layout
3607
3608 \end_inset
3609
3610  field of the dialog that opens if you left-click on the 
3611 \begin_inset Flex Noun
3612 status collapsed
3613
3614 \begin_layout Plain Layout
3615 Biblatex Generated Bibliography
3616 \end_layout
3617
3618 \end_inset
3619
3620  button), or you can filter by entry types (such as 
3621 \emph on
3622 book
3623 \emph default
3624  or 
3625 \emph on
3626 article
3627 \emph default
3628 ) by entering e.
3629 \begin_inset space \thinspace{}
3630 \end_inset
3631
3632 g.
3633  
3634 \begin_inset Flex Code
3635 status collapsed
3636
3637 \begin_layout Plain Layout
3638 type=book
3639 \end_layout
3640
3641 \end_inset
3642
3643  or 
3644 \begin_inset Flex Code
3645 status collapsed
3646
3647 \begin_layout Plain Layout
3648 nottype=collection
3649 \end_layout
3650
3651 \end_inset
3652
3653  to the mentioned 
3654 \begin_inset Flex Noun
3655 status collapsed
3656
3657 \begin_layout Plain Layout
3658 Options
3659 \end_layout
3660
3661 \end_inset
3662
3663  field, or you can create so-called 
3664 \begin_inset Quotes eld
3665 \end_inset
3666
3667 Bibliography Categories
3668 \begin_inset Quotes erd
3669 \end_inset
3670
3671  to which you can assign individual entries.
3672  Please refer to the Biblatex manual, section 
3673 \emph on
3674 Subdivided Bibliographies
3675 \emph default
3676 , for details.
3677 \end_layout
3678
3679 \begin_layout Subsection
3680 Multiple Bibliographies
3681 \begin_inset CommandInset label
3682 LatexCommand label
3683 name "subsec:Multiple-Bibliographies"
3684
3685 \end_inset
3686
3687
3688 \end_layout
3689
3690 \begin_layout Standard
3691 Multiple bibliographies, e.
3692 \begin_inset space \thinspace{}
3693 \end_inset
3694
3695 g.
3696 \begin_inset space \space{}
3697 \end_inset
3698
3699 a bibliography for each part, chapter, section, subsection or child (sub-documen
3700 t) of the document, are also supported by \SpecialChar LyX
3701 .
3702  In order to enable it, go to 
3703 \begin_inset Flex Noun
3704 status collapsed
3705
3706 \begin_layout Plain Layout
3707 Document\SpecialChar menuseparator
3708 Settings\SpecialChar menuseparator
3709 Bibliography
3710 \end_layout
3711
3712 \end_inset
3713
3714  and select the relevant unit (e.
3715 \begin_inset space \thinspace{}
3716 \end_inset
3717
3718 g., 
3719 \begin_inset Quotes eld
3720 \end_inset
3721
3722 per section
3723 \begin_inset Quotes erd
3724 \end_inset
3725
3726 ) in the 
3727 \begin_inset Flex Noun
3728 status collapsed
3729
3730 \begin_layout Plain Layout
3731 Multiple Bibliographies
3732 \end_layout
3733
3734 \end_inset
3735
3736  combo box.
3737  Then add a Bib(la)\SpecialChar TeX
3738  bibliography to each unit (e.
3739 \begin_inset space \thinspace{}
3740 \end_inset
3741
3742 g., section) of your document.
3743  In the output, a separate bibliography, containing only the references
3744  done in the current unit is generated.
3745 \end_layout
3746
3747 \begin_layout Standard
3748 If you use Bib\SpecialChar TeX
3749 , either the 
3750 \begin_inset Flex Code
3751 status collapsed
3752
3753 \begin_layout Plain Layout
3754 chapterbib
3755 \end_layout
3756
3757 \end_inset
3758
3759  or the 
3760 \begin_inset Flex Code
3761 status collapsed
3762
3763 \begin_layout Plain Layout
3764 bibtopic
3765 \end_layout
3766
3767 \end_inset
3768
3769  package is used to create multiple bibliographies.
3770  The former package is used if you select 
3771 \begin_inset Quotes eld
3772 \end_inset
3773
3774 per child document
3775 \begin_inset Quotes erd
3776 \end_inset
3777
3778  and do 
3779 \emph on
3780 not
3781 \emph default
3782  check 
3783 \begin_inset Flex Noun
3784 status collapsed
3785
3786 \begin_layout Plain Layout
3787 Sectioned Bibliography
3788 \end_layout
3789
3790 \end_inset
3791
3792 .
3793  In all other cases, 
3794 \begin_inset Flex Code
3795 status collapsed
3796
3797 \begin_layout Plain Layout
3798 bibtopic
3799 \end_layout
3800
3801 \end_inset
3802
3803  is used.
3804 \begin_inset Foot
3805 status collapsed
3806
3807 \begin_layout Plain Layout
3808 An alternative approach, if you are willing to use some 
3809 \begin_inset Flex Noun
3810 status collapsed
3811
3812 \begin_layout Plain Layout
3813 \SpecialChar TeX
3814  Code
3815 \end_layout
3816
3817 \end_inset
3818
3819  (see section
3820 \begin_inset space ~
3821 \end_inset
3822
3823
3824 \begin_inset CommandInset ref
3825 LatexCommand ref
3826 reference "sec:Inserting-TeX-Code"
3827
3828 \end_inset
3829
3830 ), is to use the 
3831 \begin_inset Flex Code
3832 status collapsed
3833
3834 \begin_layout Plain Layout
3835 bibunits
3836 \end_layout
3837
3838 \end_inset
3839
3840  package.
3841 \end_layout
3842
3843 \end_inset
3844
3845  If 
3846 \begin_inset Flex Code
3847 status collapsed
3848
3849 \begin_layout Plain Layout
3850 bibtopic
3851 \end_layout
3852
3853 \end_inset
3854
3855  is used, \SpecialChar LyX
3856  encloses the specified units in 
3857 \begin_inset Flex Code
3858 status collapsed
3859
3860 \begin_layout Plain Layout
3861 bibtopic
3862 \end_layout
3863
3864 \end_inset
3865
3866 's 
3867 \begin_inset Flex Code
3868 status collapsed
3869
3870 \begin_layout Plain Layout
3871
3872 \backslash
3873 begin{btUnit}
3874 \end_layout
3875
3876 \end_inset
3877
3878  and 
3879 \begin_inset Flex Code
3880 status collapsed
3881
3882 \begin_layout Plain Layout
3883
3884 \backslash
3885 end{btUnit}
3886 \end_layout
3887
3888 \end_inset
3889
3890  in order to create the units.
3891  Note that this approach has some limitations.
3892  First, every citation reference has to be inside some 
3893 \begin_inset Flex Code
3894 status collapsed
3895
3896 \begin_layout Plain Layout
3897 btUnit
3898 \end_layout
3899
3900 \end_inset
3901
3902 .
3903  So citations outside a defined unit (e.
3904 \begin_inset space \thinspace{}
3905 \end_inset
3906
3907 g., before the first section if you use 
3908 \begin_inset Quotes eld
3909 \end_inset
3910
3911 by section
3912 \begin_inset Quotes erd
3913 \end_inset
3914
3915 ) will appear as 
3916 \begin_inset Quotes eld
3917 \end_inset
3918
3919 ???
3920 \begin_inset Quotes erd
3921 \end_inset
3922
3923 .
3924  You can also create your own units by entering 
3925 \begin_inset Flex Code
3926 status collapsed
3927
3928 \begin_layout Plain Layout
3929
3930 \backslash
3931 begin{btUnit}
3932 \end_layout
3933
3934 \end_inset
3935
3936  and 
3937 \begin_inset Flex Code
3938 status collapsed
3939
3940 \begin_layout Plain Layout
3941
3942 \backslash
3943 end{btUnit}
3944 \end_layout
3945
3946 \end_inset
3947
3948  as \SpecialChar TeX
3949  code (for instance to work around the mentioned limitation).
3950  Note, though, that 
3951 \begin_inset Flex Code
3952 status collapsed
3953
3954 \begin_layout Plain Layout
3955 btUnit
3956 \end_layout
3957
3958 \end_inset
3959
3960 s cannot be nested.
3961  A second limitation is that 
3962 \begin_inset Flex Code
3963 status collapsed
3964
3965 \begin_layout Plain Layout
3966 bibtopic
3967 \end_layout
3968
3969 \end_inset
3970
3971  always processes all references of a bibliography database, even if they
3972  are not cited.
3973  This can result in odd labels (e.
3974 \begin_inset space \thinspace{}
3975 \end_inset
3976
3977 g.
3978  
3979 \begin_inset Quotes eld
3980 \end_inset
3981
3982 Miller 2014b
3983 \begin_inset Quotes erd
3984 \end_inset
3985
3986  if two works of this author from 2014 are in the database, even if only
3987  one is cited).
3988 \end_layout
3989
3990 \begin_layout Standard
3991 If you use 
3992 \family sans
3993 Biblatex
3994 \family default
3995 , the 
3996 \begin_inset Flex Code
3997 status collapsed
3998
3999 \begin_layout Plain Layout
4000 refsection
4001 \end_layout
4002
4003 \end_inset
4004
4005  option is used instead.
4006  If you need specific units, you can start them with the \SpecialChar TeX
4007  code 
4008 \begin_inset Flex Code
4009 status collapsed
4010
4011 \begin_layout Plain Layout
4012
4013 \backslash
4014 newrefsection
4015 \end_layout
4016
4017 \end_inset
4018
4019  or 
4020 \begin_inset Flex Code
4021 status collapsed
4022
4023 \begin_layout Plain Layout
4024
4025 \backslash
4026 newrefsegment
4027 \end_layout
4028
4029 \end_inset
4030
4031 , respectively.
4032  If you also want to control the end of the unit, use the environment 
4033 \begin_inset Flex Code
4034 status collapsed
4035
4036 \begin_layout Plain Layout
4037
4038 \backslash
4039 begin{refsection}
4040 \end_layout
4041
4042 \end_inset
4043
4044  \SpecialChar ldots
4045  
4046 \begin_inset Flex Code
4047 status collapsed
4048
4049 \begin_layout Plain Layout
4050
4051 \backslash
4052 end{refsection}
4053 \end_layout
4054
4055 \end_inset
4056
4057  instead.
4058  Note, though, that 
4059 \begin_inset Flex Code
4060 status collapsed
4061
4062 \begin_layout Plain Layout
4063 refsection
4064 \end_layout
4065
4066 \end_inset
4067
4068 s cannot be nested.
4069  In addition to the individual bibliography of the current unit, 
4070 \family sans
4071 Biblatex
4072 \family default
4073  also provides an easy way to output all bibliographies, subsequently, at
4074  one place (e.
4075 \begin_inset space \thinspace{}
4076 \end_inset
4077
4078 g., at the end of the document).
4079  Select 
4080 \begin_inset Quotes eld
4081 \end_inset
4082
4083 all reference units
4084 \begin_inset Quotes erd
4085 \end_inset
4086
4087  from the Content combo box of the Bib(la)TeX inset dialog in order to achieve
4088  this.
4089  Please refer to the 
4090 \family sans
4091 Biblatex
4092 \family default
4093  manual for more information on this topic.
4094 \end_layout
4095
4096 \begin_layout Section
4097 Multipart Documents
4098 \end_layout
4099
4100 \begin_layout Subsection
4101 General Operation
4102 \end_layout
4103
4104 \begin_layout Standard
4105 When you are working on a large file with many sections, it is often convenient
4106  to break up the document into several files, or perhaps you have something
4107  where a table may change from time to time, but the preceding text does
4108  not.
4109  In these cases, you should seriously consider using multipart documents.
4110  For example, scientific papers often have five major sections: the introduction
4111 , observations, results, discussion, and conclusion.
4112  Each of these could be its own separate \SpecialChar LyX
4113  file, with one 
4114 \begin_inset Quotes eld
4115 \end_inset
4116
4117 master
4118 \begin_inset Quotes erd
4119 \end_inset
4120
4121  file which contains the title, authors, abstract, references, etc., plus
4122  the five included files.
4123  It is important to note that each of these files is a full \SpecialChar LyX
4124  file which
4125  can be formatted and printed on its own, as well as included in a master
4126  file.
4127  Each of these files must have the same document class, however—don't attempt
4128  to mix book classes with article classes.
4129  You may also include \SpecialChar LaTeX
4130  files; however, these files must not have their own
4131  preamble (i.
4132 \begin_inset space \thinspace{}
4133 \end_inset
4134
4135 e.
4136 \begin_inset space \space{}
4137 \end_inset
4138
4139 everything up to and including the 
4140 \begin_inset Flex Code
4141 status collapsed
4142
4143 \begin_layout Plain Layout
4144
4145 \backslash
4146 begin{document}
4147 \end_layout
4148
4149 \end_inset
4150
4151  line as well as the 
4152 \begin_inset Flex Code
4153 status collapsed
4154
4155 \begin_layout Plain Layout
4156
4157 \backslash
4158 end{document}
4159 \end_layout
4160
4161 \end_inset
4162
4163  line must be deleted) or else errors will be generated when you try to
4164  make a DVI file.
4165 \end_layout
4166
4167 \begin_layout Standard
4168 \SpecialChar LyX
4169  allows you to include files quite easily with 
4170 \begin_inset Flex Noun
4171 status collapsed
4172
4173 \begin_layout Plain Layout
4174 Insert\SpecialChar menuseparator
4175 Child
4176 \begin_inset space ~
4177 \end_inset
4178
4179 Document
4180 \end_layout
4181
4182 \end_inset
4183
4184 .
4185  When you click on this selection a small box is inserted into the file
4186  at the current cursor location.
4187  Clicking on the box raises a dialog which allows you to select the file
4188  to be included, and the method of its inclusion.
4189  
4190 \end_layout
4191
4192 \begin_layout Standard
4193 The file selection box should by now be obvious.
4194  The three inclusion methods are 
4195 \begin_inset Quotes eld
4196 \end_inset
4197
4198 include
4199 \begin_inset Quotes erd
4200 \end_inset
4201
4202
4203 \begin_inset Quotes eld
4204 \end_inset
4205
4206 input
4207 \begin_inset Quotes erd
4208 \end_inset
4209
4210 , and 
4211 \begin_inset Quotes eld
4212 \end_inset
4213
4214 verbatim
4215 \begin_inset Quotes erd
4216 \end_inset
4217
4218 .
4219  The methods 
4220 \begin_inset Quotes eld
4221 \end_inset
4222
4223 include
4224 \begin_inset Quotes erd
4225 \end_inset
4226
4227  and 
4228 \begin_inset Quotes eld
4229 \end_inset
4230
4231 input
4232 \begin_inset Quotes erd
4233 \end_inset
4234
4235  are similar in many ways, but there are also some notable differences:
4236 \end_layout
4237
4238 \begin_layout Enumerate
4239 Files that are 
4240 \begin_inset Quotes eld
4241 \end_inset
4242
4243 included
4244 \begin_inset Quotes erd
4245 \end_inset
4246
4247  are typeset beginning on a new page, while files that are 
4248 \begin_inset Quotes eld
4249 \end_inset
4250
4251 inputted
4252 \begin_inset Quotes erd
4253 \end_inset
4254
4255  are typeset starting on the current page.
4256 \end_layout
4257
4258 \begin_layout Enumerate
4259 \begin_inset Quotes eld
4260 \end_inset
4261
4262 Included
4263 \begin_inset Quotes erd
4264 \end_inset
4265
4266  files cannot themselves 
4267 \begin_inset Quotes eld
4268 \end_inset
4269
4270 include
4271 \begin_inset Quotes erd
4272 \end_inset
4273
4274  further files (
4275 \begin_inset Quotes eld
4276 \end_inset
4277
4278 grandchilds
4279 \begin_inset Quotes erd
4280 \end_inset
4281
4282 ).
4283  With 
4284 \begin_inset Quotes eld
4285 \end_inset
4286
4287 input
4288 \begin_inset Quotes erd
4289 \end_inset
4290
4291 , on the other hand, infinite sub-inputting is possible.
4292 \end_layout
4293
4294 \begin_layout Enumerate
4295 \begin_inset Quotes eld
4296 \end_inset
4297
4298 Include
4299 \begin_inset Quotes erd
4300 \end_inset
4301
4302  allow for the output of only selected 
4303 \begin_inset Quotes eld
4304 \end_inset
4305
4306 included
4307 \begin_inset Quotes erd
4308 \end_inset
4309
4310  files, while maintaining the actual counters (pagination etc.) and references
4311  (please refer to the section 
4312 \emph on
4313 Child
4314 \begin_inset space ~
4315 \end_inset
4316
4317 Documents
4318 \emph default
4319  of the 
4320 \emph on
4321 Embedded
4322 \begin_inset space ~
4323 \end_inset
4324
4325 Objects
4326 \emph default
4327  manual for details).
4328 \end_layout
4329
4330 \begin_layout Standard
4331 Hence, 
4332 \begin_inset Quotes eld
4333 \end_inset
4334
4335 include
4336 \begin_inset Quotes erd
4337 \end_inset
4338
4339  is the preferred method for chapters that are outsourced to child documents,
4340  while 
4341 \begin_inset Quotes eld
4342 \end_inset
4343
4344 input
4345 \begin_inset Quotes erd
4346 \end_inset
4347
4348  is more suitable for arbitrary file inheritance.
4349 \end_layout
4350
4351 \begin_layout Standard
4352
4353 \begin_inset Quotes eld
4354 \end_inset
4355
4356 verbatim
4357 \begin_inset Quotes erd
4358 \end_inset
4359
4360  included file allows you to include a file typeset exactly as it appears
4361  in the file, i.
4362 \begin_inset space \thinspace{}
4363 \end_inset
4364
4365 e.
4366 \begin_inset space \space{}
4367 \end_inset
4368
4369 in 
4370 \begin_inset Flex Code
4371 status collapsed
4372
4373 \begin_layout Plain Layout
4374 verbatim
4375 \end_layout
4376
4377 \end_inset
4378
4379  mode, with the characters set in a fixed-width typewriter font.
4380  Normally, spaces in this file are invisible, though two consecutive spaces
4381  are conserved, unlike \SpecialChar LyX
4382 's normal treatment of spaces.
4383  However, setting the 
4384 \begin_inset Flex Noun
4385 status collapsed
4386
4387 \begin_layout Plain Layout
4388 Mark
4389 \begin_inset space ~
4390 \end_inset
4391
4392 spaces
4393 \begin_inset space ~
4394 \end_inset
4395
4396 in
4397 \begin_inset space ~
4398 \end_inset
4399
4400 output
4401 \end_layout
4402
4403 \end_inset
4404
4405  checkbox typesets a mark to unambiguously define the presence of a space.
4406  
4407 \end_layout
4408
4409 \begin_layout Standard
4410 Generally, the master file is converted into a full \SpecialChar LaTeX
4411  file before typesetting,
4412  while the included files are converted to \SpecialChar LaTeX
4413  files that do not have all the
4414  preamble information.
4415 \end_layout
4416
4417 \begin_layout Subsection
4418 Cross-References Between Files
4419 \end_layout
4420
4421 \begin_layout Standard
4422 \begin_inset Box Shadowbox
4423 position "t"
4424 hor_pos "c"
4425 has_inner_box 1
4426 inner_pos "t"
4427 use_parbox 0
4428 use_makebox 0
4429 width "100col%"
4430 special "none"
4431 height "1in"
4432 height_special "totalheight"
4433 thickness "0.4pt"
4434 separation "3pt"
4435 shadowsize "4pt"
4436 framecolor "black"
4437 backgroundcolor "none"
4438 status open
4439
4440 \begin_layout Plain Layout
4441 This section is somewhat out of date.
4442  Need to describe default master documents and how children are opened when
4443  the master is.
4444  [[FIXME]]
4445 \end_layout
4446
4447 \end_inset
4448
4449
4450 \end_layout
4451
4452 \begin_layout Standard
4453 It is possible to set up cross-references between the different files.
4454  First, open all the files in question: let's call them A and B in a two
4455  file example, where B is included in A.
4456  Let's say you insert a label in A, then want to reference it in B.
4457  Open the cross-reference dialog whilst in document B, and you can select
4458  the 
4459 \begin_inset Quotes eld
4460 \end_inset
4461
4462 buffer
4463 \begin_inset Quotes erd
4464 \end_inset
4465
4466  to use.
4467 \end_layout
4468
4469 \begin_layout Subsection
4470 Bibliography Lists in all Subdocuments
4471 \end_layout
4472
4473 \begin_layout Standard
4474 If you work with child documents, you might want to have only one main bibliogra
4475 phy at the end, but still be able to have a selected bibliography for the
4476  child if you output it on its own.
4477  Here is how to achieve this.
4478 \end_layout
4479
4480 \begin_layout Standard
4481 For the main document, you just insert a bibliography inset at the place
4482  where the main bibliography has to appear (within the master file or within
4483  a child).
4484  If the bibliography inset is in the master file, the references will be
4485  inherited by all children, so they are available in the citation dialog
4486  within each child.
4487 \end_layout
4488
4489 \begin_layout Standard
4490 For child-specific bibliographies, insert bibliography insets within the
4491  child documents, at the place where the bibliography should appear when
4492  the child is compiled separately.
4493  However, the trick is to insert them into a branch (
4494 \family sans
4495 Insert\SpecialChar menuseparator
4496 Branch\SpecialChar menuseparator
4497 Insert New Branch...
4498 \family default
4499 ), e.
4500 \begin_inset space \thinspace{}
4501 \end_inset
4502
4503 g.
4504  called 
4505 \begin_inset Quotes eld
4506 \end_inset
4507
4508 Childonly
4509 \begin_inset Quotes erd
4510 \end_inset
4511
4512 .
4513  Within the children, activate the branch (
4514 \family sans
4515 Document\SpecialChar menuseparator
4516 Settings...\SpecialChar menuseparator
4517 Branches
4518 \family default
4519 ).
4520  Within the master, deactivate the branch (
4521 \family sans
4522 Document\SpecialChar menuseparator
4523 Settings...\SpecialChar menuseparator
4524 Branches
4525 \family default
4526 ).
4527  Now the child's bibliography will be ignored by the master, but considered
4528  by the child.
4529 \end_layout
4530
4531 \begin_layout Standard
4532 If you need multiple bibliographies (e.
4533 \begin_inset space \thinspace{}
4534 \end_inset
4535
4536 g., one per child in the 
4537 \emph on
4538 main document
4539 \emph default
4540 ), please refer to sec.
4541 \begin_inset space ~
4542 \end_inset
4543
4544
4545 \begin_inset CommandInset ref
4546 LatexCommand ref
4547 reference "subsec:Multiple-Bibliographies"
4548
4549 \end_inset
4550
4551 .
4552 \end_layout
4553
4554 \begin_layout Section
4555 \SpecialChar LyX
4556  Archives
4557 \end_layout
4558
4559 \begin_layout Standard
4560 Users sometimes need to be able to 
4561 \begin_inset Quotes eld
4562 \end_inset
4563
4564 bundle
4565 \begin_inset Quotes erd
4566 \end_inset
4567
4568  a \SpecialChar LyX
4569  file together with all the images (and other files) on which it depends,
4570  either for sending to a publisher or for sharing with a co-author.
4571  \SpecialChar LyX
4572  includes a Python script (
4573 \begin_inset Flex Code
4574 status collapsed
4575
4576 \begin_layout Plain Layout
4577 lyxpak.py
4578 \end_layout
4579
4580 \end_inset
4581
4582 ) that automates this process.
4583  To use it, you must have either the 
4584 \begin_inset Flex Code
4585 status collapsed
4586
4587 \begin_layout Plain Layout
4588 zipfile
4589 \end_layout
4590
4591 \end_inset
4592
4593  or 
4594 \begin_inset Flex Code
4595 status collapsed
4596
4597 \begin_layout Plain Layout
4598 tarfile
4599 \end_layout
4600
4601 \end_inset
4602
4603  python modules installed on your system.
4604  By default, the script prefers the 
4605 \begin_inset Flex Code
4606 status collapsed
4607
4608 \begin_layout Plain Layout
4609 gzip
4610 \end_layout
4611
4612 \end_inset
4613
4614 -compressed 
4615 \begin_inset Flex Code
4616 status collapsed
4617
4618 \begin_layout Plain Layout
4619 tar
4620 \end_layout
4621
4622 \end_inset
4623
4624  format on Unix-like systems and the 
4625 \begin_inset Flex Code
4626 status collapsed
4627
4628 \begin_layout Plain Layout
4629 zip
4630 \end_layout
4631
4632 \end_inset
4633
4634  format on Windows.
4635 \end_layout
4636
4637 \begin_layout Standard
4638 \SpecialChar LyX
4639 's configuration process will set the script up to export a `\SpecialChar LyX
4640  Archive',
4641  and this format will then be available under 
4642 \begin_inset Flex Code
4643 status collapsed
4644
4645 \begin_layout Plain Layout
4646 File\SpecialChar menuseparator
4647 Export
4648 \end_layout
4649
4650 \end_inset
4651
4652 .
4653 \end_layout
4654
4655 \begin_layout Standard
4656 Independently of the platform, the generation of a particular archive format
4657  can be forced by adding either the 
4658 \begin_inset Flex Code
4659 status collapsed
4660
4661 \begin_layout Plain Layout
4662 -t
4663 \end_layout
4664
4665 \end_inset
4666
4667  (for the 
4668 \begin_inset Flex Code
4669 status collapsed
4670
4671 \begin_layout Plain Layout
4672 tar
4673 \end_layout
4674
4675 \end_inset
4676
4677  format) or 
4678 \begin_inset Flex Code
4679 status collapsed
4680
4681 \begin_layout Plain Layout
4682 -z
4683 \end_layout
4684
4685 \end_inset
4686
4687  (for the 
4688 \begin_inset Flex Code
4689 status collapsed
4690
4691 \begin_layout Plain Layout
4692 zip
4693 \end_layout
4694
4695 \end_inset
4696
4697  format) switch to the 
4698 \begin_inset Flex Code
4699 status collapsed
4700
4701 \begin_layout Plain Layout
4702 \SpecialChar LyX
4703 \SpecialChar menuseparator
4704 \SpecialChar LyX
4705  Archive
4706 \end_layout
4707
4708 \end_inset
4709
4710  converter in 
4711 \begin_inset Flex Code
4712 status collapsed
4713
4714 \begin_layout Plain Layout
4715 Tools\SpecialChar menuseparator
4716 Preferences\SpecialChar menuseparator
4717 File Handling\SpecialChar menuseparator
4718 Converters
4719 \end_layout
4720
4721 \end_inset
4722
4723 .
4724  (Make sure you add the switch after the script name, not before it.)
4725 \end_layout
4726
4727 \begin_layout Section
4728 Fancy Headers and Footers
4729 \end_layout
4730
4731 \begin_layout Standard
4732 The default page layout is rather plain; for an 
4733 \begin_inset Flex Code
4734 status collapsed
4735
4736 \begin_layout Plain Layout
4737 article
4738 \end_layout
4739
4740 \end_inset
4741
4742  document class, all you get is a centered page number at the bottom of
4743  the page.
4744  This document uses KOMA-script's book class, so it appears to be a bit
4745  fancier.
4746  But to really put on a show, you need to set the document page style to
4747  
4748 \begin_inset Quotes eld
4749 \end_inset
4750
4751 fancy
4752 \begin_inset Quotes erd
4753 \end_inset
4754
4755 , as mentioned in the 
4756 \emph on
4757 User Guide
4758 \emph default
4759 .
4760  This section describes the \SpecialChar LaTeX
4761  code you need to insert in your \SpecialChar LaTeX
4762  preamble in
4763  order to get the desired effects.
4764 \end_layout
4765
4766 \begin_layout Standard
4767 For more information on fancy headers, see the 
4768 \begin_inset Flex Code
4769 status collapsed
4770
4771 \begin_layout Plain Layout
4772 fancyhdr
4773 \end_layout
4774
4775 \end_inset
4776
4777  package documentation.
4778  (
4779 \begin_inset Flex URL
4780 status collapsed
4781
4782 \begin_layout Plain Layout
4783
4784 https://www.ctan.org/tex-archive/help/Catalogue/entries/fancyhdr.html
4785 \end_layout
4786
4787 \end_inset
4788
4789 )
4790 \end_layout
4791
4792 \begin_layout Standard
4793 The page header is divided into three fields, not surprisingly labeled 
4794 \begin_inset Quotes eld
4795 \end_inset
4796
4797 left
4798 \begin_inset Quotes erd
4799 \end_inset
4800
4801
4802 \begin_inset Quotes eld
4803 \end_inset
4804
4805 center
4806 \begin_inset Quotes erd
4807 \end_inset
4808
4809 , and 
4810 \begin_inset Quotes eld
4811 \end_inset
4812
4813 right
4814 \begin_inset Quotes erd
4815 \end_inset
4816
4817 .
4818  The footer is also divided into these three fields.
4819  The \SpecialChar LaTeX
4820  commands to set these fields in the simplest manner are 
4821 \begin_inset Flex Code
4822 status collapsed
4823
4824 \begin_layout Plain Layout
4825
4826 \backslash
4827 lhead
4828 \end_layout
4829
4830 \end_inset
4831
4832
4833 \begin_inset Flex Code
4834 status collapsed
4835
4836 \begin_layout Plain Layout
4837
4838 \backslash
4839 chead
4840 \end_layout
4841
4842 \end_inset
4843
4844
4845 \begin_inset Flex Code
4846 status collapsed
4847
4848 \begin_layout Plain Layout
4849
4850 \backslash
4851 rhead
4852 \end_layout
4853
4854 \end_inset
4855
4856
4857 \begin_inset Flex Code
4858 status collapsed
4859
4860 \begin_layout Plain Layout
4861
4862 \backslash
4863 lfoot
4864 \end_layout
4865
4866 \end_inset
4867
4868 , etc.
4869  Suppose you wish to put your name in the upper left hand corner of each
4870  page.
4871  Simply insert the following command in the preamble: 
4872 \end_layout
4873
4874 \begin_layout Standard
4875
4876 \family typewriter
4877
4878 \backslash
4879 lhead{John Q.
4880  DocWriter}
4881 \end_layout
4882
4883 \begin_layout Standard
4884 You will now see your name in the upper left.
4885  If a field has a default entry that you would like to get rid of (often
4886  the page number appears in the central footer) simply include a command
4887  with a blank argument, e.
4888 \begin_inset space \thinspace{}
4889 \end_inset
4890
4891 g.:
4892 \end_layout
4893
4894 \begin_layout Standard
4895
4896 \family typewriter
4897
4898 \backslash
4899 cfoot{}
4900 \end_layout
4901
4902 \begin_layout Standard
4903 Let's get really fancy: lets put the section number with the word 
4904 \begin_inset Quotes eld
4905 \end_inset
4906
4907 Section
4908 \begin_inset Quotes erd
4909 \end_inset
4910
4911  (e.
4912 \begin_inset space \thinspace{}
4913 \end_inset
4914
4915 g.
4916 \begin_inset space \space{}
4917 \end_inset
4918
4919 Section 3) in the upper left, the page number (e.
4920 \begin_inset space \thinspace{}
4921 \end_inset
4922
4923 g.
4924 \begin_inset space \space{}
4925 \end_inset
4926
4927 Page 4) in the upper right, your name in the lower left, and the date in
4928  the lower right.
4929  The following commands should now appear in the preamble:
4930 \end_layout
4931
4932 \begin_layout Standard
4933
4934 \family typewriter
4935
4936 \backslash
4937 lhead{Section 
4938 \backslash
4939 thesection}
4940 \end_layout
4941
4942 \begin_layout Standard
4943
4944 \family typewriter
4945
4946 \backslash
4947 chead{}
4948 \end_layout
4949
4950 \begin_layout Standard
4951
4952 \family typewriter
4953
4954 \backslash
4955 rhead{Page 
4956 \backslash
4957 thepage}
4958 \end_layout
4959
4960 \begin_layout Standard
4961
4962 \family typewriter
4963
4964 \backslash
4965 lfoot{John Q.
4966  DocWriter}
4967 \end_layout
4968
4969 \begin_layout Standard
4970
4971 \family typewriter
4972
4973 \backslash
4974 cfoot{}
4975 \end_layout
4976
4977 \begin_layout Standard
4978
4979 \family typewriter
4980
4981 \backslash
4982 rfoot{
4983 \backslash
4984 today}
4985 \end_layout
4986
4987 \begin_layout Standard
4988 The commands 
4989 \begin_inset Flex Code
4990 status collapsed
4991
4992 \begin_layout Plain Layout
4993
4994 \backslash
4995 thesection
4996 \end_layout
4997
4998 \end_inset
4999
5000  and 
5001 \begin_inset Flex Code
5002 status collapsed
5003
5004 \begin_layout Plain Layout
5005
5006 \backslash
5007 thepage
5008 \end_layout
5009
5010 \end_inset
5011
5012  access \SpecialChar LaTeX
5013 's section and page counters, and so print out the current section
5014  and page number.
5015  
5016 \begin_inset Flex Code
5017 status collapsed
5018
5019 \begin_layout Plain Layout
5020
5021 \backslash
5022 today
5023 \end_layout
5024
5025 \end_inset
5026
5027  simply prints out today's date.
5028 \end_layout
5029
5030 \begin_layout Standard
5031 The thicknesses of the horizontal rules drawn beneath the header and above
5032  the footer can also be modified.
5033  If you don't want one of the rules, set its thickness to 0.
5034  The header rule has a default thickness of 0.4pt, the footer rule is 0pt.
5035  Use commands
5036 \family typewriter
5037  
5038 \family default
5039 like 
5040 \begin_inset Flex Code
5041 status collapsed
5042
5043 \begin_layout Plain Layout
5044
5045 \backslash
5046 renewcommand{
5047 \backslash
5048 headrulewidth}{0.4pt}
5049 \end_layout
5050
5051 \end_inset
5052
5053  and 
5054 \begin_inset Flex Code
5055 status collapsed
5056
5057 \begin_layout Plain Layout
5058
5059 \backslash
5060 renewcommand{
5061 \backslash
5062 footrulewidth}{0.4pt}
5063 \end_layout
5064
5065 \end_inset
5066
5067  to set the thicknesses.
5068 \end_layout
5069
5070 \begin_layout Standard
5071 You can switch the header/footer settings on and off for individual pages
5072  using commands like 
5073 \begin_inset Flex Code
5074 status collapsed
5075
5076 \begin_layout Plain Layout
5077
5078 \backslash
5079 thispagestyle{empty}
5080 \end_layout
5081
5082 \end_inset
5083
5084
5085 \begin_inset Flex Code
5086 status collapsed
5087
5088 \begin_layout Plain Layout
5089
5090 \backslash
5091 thispagestyle{plain}
5092 \end_layout
5093
5094 \end_inset
5095
5096 , and 
5097 \begin_inset Flex Code
5098 status collapsed
5099
5100 \begin_layout Plain Layout
5101
5102 \backslash
5103 thispagestyle{fancy}
5104 \end_layout
5105
5106 \end_inset
5107
5108 .
5109  Simply insert them in the text on the page you want changed and mark them
5110  as \SpecialChar TeX
5111  code.
5112  In fact, title pages are marked as plain by default, while following pages
5113  are marked fancy when using the global fancy setting.
5114 \end_layout
5115
5116 \begin_layout Standard
5117 As a final example, it is possible to include an image in the header or
5118  footer.
5119  Suppose you want to put a company logo in the upper lefthand corner.
5120  You might try something like
5121 \end_layout
5122
5123 \begin_layout Standard
5124
5125 \family typewriter
5126
5127 \backslash
5128 lhead{
5129 \backslash
5130 resizebox{1in}{!}{
5131 \backslash
5132 includegraphics{logo.eps}}}
5133 \end_layout
5134
5135 \begin_layout Standard
5136 \noindent
5137 (you may need to preface this with 
5138 \begin_inset Flex Code
5139 status collapsed
5140
5141 \begin_layout Plain Layout
5142
5143 \backslash
5144 usepackage{graphics}
5145 \end_layout
5146
5147 \end_inset
5148
5149  if you don't include graphics elsewhere in your document).
5150 \end_layout
5151
5152 \begin_layout Section
5153 Itemize Bullet Selection
5154 \begin_inset CommandInset label
5155 LatexCommand label
5156 name "sec:bullet"
5157
5158 \end_inset
5159
5160
5161 \end_layout
5162
5163 \begin_layout Standard
5164 by
5165 \noun on
5166  Allan Rae
5167 \end_layout
5168
5169 \begin_layout Subsection
5170 Introduction
5171 \end_layout
5172
5173 \begin_layout Standard
5174 \SpecialChar LyX
5175  provides 216 bullet shapes that can be accessed from a simple dialog.
5176  Using this dialog you can easily specify what bullet shape to use at each
5177  level of an itemized list.
5178  These settings are document-wide so you won't be able to specify different
5179  sets of bullets for different paragraphs.
5180 \begin_inset Foot
5181 status collapsed
5182
5183 \begin_layout Plain Layout
5184 Well, actually you can but you'll have to do it by hand.
5185 \end_layout
5186
5187 \end_inset
5188
5189
5190 \end_layout
5191
5192 \begin_layout Subsection
5193 How it looks
5194 \end_layout
5195
5196 \begin_layout Standard
5197 Open the dialog by selecting the 
5198 \begin_inset Flex Noun
5199 status collapsed
5200
5201 \begin_layout Plain Layout
5202 Document\SpecialChar menuseparator
5203 Settings
5204 \end_layout
5205
5206 \end_inset
5207
5208  menu item and then select the 
5209 \begin_inset Flex Noun
5210 status collapsed
5211
5212 \begin_layout Plain Layout
5213 Bullets
5214 \end_layout
5215
5216 \end_inset
5217
5218  tab.
5219 \end_layout
5220
5221 \begin_layout Standard
5222 The dialog provides you with a table of bullet shapes.
5223  A column of buttons on the left of the table provides access to the six
5224  different panels of bullet shapes.
5225  The row of buttons across the top is used to select which bullet depth
5226  you are changing.
5227
5228 \change_deleted 244031559 1603875981
5229  A text entry under the table shows the currently selected bullet shape's
5230  \SpecialChar LaTeX
5231  equivalent and this can be edited if desired.
5232  If you do modify the text you will also need to specify any needed packages
5233  in the \SpecialChar LaTeX
5234  preamble.
5235 \change_unchanged
5236
5237 \end_layout
5238
5239 \begin_layout Standard
5240 The six panels are divided up by the packages they require.
5241  The following table shows the mappings from button name to \SpecialChar LaTeX
5242  package.
5243 \end_layout
5244
5245 \begin_layout Standard
5246 \align center
5247 \begin_inset Tabular
5248 <lyxtabular version="3" rows="7" columns="2">
5249 <features tabularvalignment="middle">
5250 <column alignment="center" valignment="top" width="0pt">
5251 <column alignment="center" valignment="top" width="0pt">
5252 <row>
5253 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
5254 \begin_inset Text
5255
5256 \begin_layout Plain Layout
5257
5258 \family roman
5259 \series medium
5260 \shape up
5261 \size normal
5262 \emph off
5263 \bar no
5264 \noun off
5265 \color none
5266 Button
5267 \end_layout
5268
5269 \end_inset
5270 </cell>
5271 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
5272 \begin_inset Text
5273
5274 \begin_layout Plain Layout
5275
5276 \family roman
5277 \series medium
5278 \shape up
5279 \size normal
5280 \emph off
5281 \bar no
5282 \noun off
5283 \color none
5284 Packages Required
5285 \end_layout
5286
5287 \end_inset
5288 </cell>
5289 </row>
5290 <row>
5291 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5292 \begin_inset Text
5293
5294 \begin_layout Plain Layout
5295
5296 \family sans
5297 \series medium
5298 \shape up
5299 \size normal
5300 \emph off
5301 \bar no
5302 \noun off
5303 \color none
5304 Standard
5305 \end_layout
5306
5307 \end_inset
5308 </cell>
5309 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5310 \begin_inset Text
5311
5312 \begin_layout Plain Layout
5313
5314 \series medium
5315 \shape up
5316 \size normal
5317 \emph off
5318 \bar no
5319 \noun off
5320 \color none
5321 base \SpecialChar LaTeX
5322
5323 \end_layout
5324
5325 \end_inset
5326 </cell>
5327 </row>
5328 <row>
5329 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5330 \begin_inset Text
5331
5332 \begin_layout Plain Layout
5333
5334 \family sans
5335 \series medium
5336 \shape up
5337 \size normal
5338 \emph off
5339 \bar no
5340 \noun off
5341 \color none
5342 Maths
5343 \end_layout
5344
5345 \end_inset
5346 </cell>
5347 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5348 \begin_inset Text
5349
5350 \begin_layout Plain Layout
5351
5352 \family typewriter
5353 \series medium
5354 \shape up
5355 \size normal
5356 \emph off
5357 \bar no
5358 \noun off
5359 \color none
5360 amssymb.sty
5361 \end_layout
5362
5363 \end_inset
5364 </cell>
5365 </row>
5366 <row>
5367 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5368 \begin_inset Text
5369
5370 \begin_layout Plain Layout
5371
5372 \family sans
5373 \series medium
5374 \shape up
5375 \size normal
5376 \emph off
5377 \bar no
5378 \noun off
5379 \color none
5380 Ding1
5381 \end_layout
5382
5383 \end_inset
5384 </cell>
5385 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5386 \begin_inset Text
5387
5388 \begin_layout Plain Layout
5389
5390 \family typewriter
5391 \series medium
5392 \shape up
5393 \size normal
5394 \emph off
5395 \bar no
5396 \noun off
5397 \color none
5398 pifont.sty
5399 \end_layout
5400
5401 \end_inset
5402 </cell>
5403 </row>
5404 <row>
5405 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5406 \begin_inset Text
5407
5408 \begin_layout Plain Layout
5409
5410 \family sans
5411 \series medium
5412 \shape up
5413 \size normal
5414 \emph off
5415 \bar no
5416 \noun off
5417 \color none
5418 Ding2
5419 \end_layout
5420
5421 \end_inset
5422 </cell>
5423 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5424 \begin_inset Text
5425
5426 \begin_layout Plain Layout
5427
5428 \family typewriter
5429 \series medium
5430 \shape up
5431 \size normal
5432 \emph off
5433 \bar no
5434 \noun off
5435 \color none
5436 pifont.sty
5437 \end_layout
5438
5439 \end_inset
5440 </cell>
5441 </row>
5442 <row>
5443 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5444 \begin_inset Text
5445
5446 \begin_layout Plain Layout
5447
5448 \family sans
5449 \series medium
5450 \shape up
5451 \size normal
5452 \emph off
5453 \bar no
5454 \noun off
5455 \color none
5456 Ding3
5457 \end_layout
5458
5459 \end_inset
5460 </cell>
5461 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5462 \begin_inset Text
5463
5464 \begin_layout Plain Layout
5465
5466 \family typewriter
5467 \series medium
5468 \shape up
5469 \size normal
5470 \emph off
5471 \bar no
5472 \noun off
5473 \color none
5474 pifont.sty
5475 \end_layout
5476
5477 \end_inset
5478 </cell>
5479 </row>
5480 <row>
5481 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
5482 \begin_inset Text
5483
5484 \begin_layout Plain Layout
5485
5486 \family sans
5487 \series medium
5488 \shape up
5489 \size normal
5490 \emph off
5491 \bar no
5492 \noun off
5493 \color none
5494 Ding4
5495 \end_layout
5496
5497 \end_inset
5498 </cell>
5499 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
5500 \begin_inset Text
5501
5502 \begin_layout Plain Layout
5503
5504 \family typewriter
5505 \series medium
5506 \shape up
5507 \size normal
5508 \emph off
5509 \bar no
5510 \noun off
5511 \color none
5512 pifont.sty
5513 \end_layout
5514
5515 \end_inset
5516 </cell>
5517 </row>
5518 </lyxtabular>
5519
5520 \end_inset
5521
5522
5523 \end_layout
5524
5525 \begin_layout Standard
5526 \SpecialChar LyX
5527  doesn't stop you using bullets from packages you don't have.
5528  If you get errors from \SpecialChar LaTeX
5529  when you try to view or print the file, then it
5530  is likely you are missing a package.
5531 \begin_inset Foot
5532 status collapsed
5533
5534 \begin_layout Plain Layout
5535 \SpecialChar LyX
5536  doesn't restrict your use since you may be editing locally and exporting
5537  elsewhere.
5538 \end_layout
5539
5540 \end_inset
5541
5542
5543 \end_layout
5544
5545 \begin_layout Subsection
5546 How to use it
5547 \end_layout
5548
5549 \begin_layout Standard
5550 Select which bullet depth you want to change then select the bullet shape
5551  and size.
5552  Any changes will not be visible in \SpecialChar LyX
5553 , but are visible when viewing the document.
5554 \end_layout
5555
5556 \begin_layout Standard
5557 You can reset a bullet shape to the default simply by clicking your right
5558  mouse button on the appropriate bullet depth button.
5559 \begin_inset Foot
5560 status open
5561
5562 \begin_layout Plain Layout
5563 If you 
5564 \emph on
5565 really
5566 \emph default
5567  want to have multiple sets of paragraphs with different sets of bullets
5568  in each, then you're going to have to get your hands dirty with \SpecialChar TeX
5569  code.
5570  The bullet selection dialog can help though because it provides you with
5571  the \SpecialChar LaTeX
5572  code for a wide range of bullet shapes.
5573  To make your own custom paragraphs you have the following options:
5574 \end_layout
5575
5576 \begin_layout Plain Layout
5577 \begin_inset ERT
5578 status open
5579
5580 \begin_layout Plain Layout
5581
5582
5583 \backslash
5584 let
5585 \backslash
5586 savelabelitemi=
5587 \backslash
5588 labelitemi
5589 \end_layout
5590
5591 \end_inset
5592
5593
5594 \end_layout
5595
5596 \begin_layout Plain Layout
5597 \begin_inset ERT
5598 status open
5599
5600 \begin_layout Plain Layout
5601
5602
5603 \backslash
5604 renewcommand
5605 \backslash
5606 labelitemi[0]{
5607 \backslash
5608 small
5609 \backslash
5610 (
5611 \backslash
5612 sharp
5613 \backslash
5614 )}
5615 \end_layout
5616
5617 \end_inset
5618
5619
5620 \end_layout
5621
5622 \begin_layout Itemize
5623 Use the \SpecialChar LaTeX
5624  command 
5625 \begin_inset Flex Code
5626 status collapsed
5627
5628 \begin_layout Plain Layout
5629
5630 \backslash
5631 renewcommand{}{}
5632 \end_layout
5633
5634 \end_inset
5635
5636  to specify a new bullet shape for a given depth.
5637  You'll also need to save the current bullet shape so you can restore it
5638  again afterwards.
5639  In this itemized list the following \SpecialChar LaTeX
5640  code was used to change the bullet
5641  used for the first depth.
5642 \end_layout
5643
5644 \begin_deeper
5645 \begin_layout LyX-Code
5646
5647 \backslash
5648 let
5649 \backslash
5650 savelabelitemi=
5651 \backslash
5652 labelitemi 
5653 \end_layout
5654
5655 \begin_layout LyX-Code
5656
5657 \backslash
5658 renewcommand
5659 \backslash
5660 labelitemi[0]{
5661 \backslash
5662 small
5663 \backslash
5664 (
5665 \backslash
5666 sharp
5667 \backslash
5668 )}
5669 \end_layout
5670
5671 \end_deeper
5672 \begin_layout Itemize
5673 Note that the itemize depth is specified in Roman numerals as part of the
5674  
5675 \family typewriter
5676
5677 \backslash
5678 labelitem
5679 \family default
5680  command.
5681 \end_layout
5682
5683 \begin_layout Itemize
5684 \begin_inset Argument item:1
5685 status open
5686
5687 \begin_layout Plain Layout
5688 \begin_inset ERT
5689 status open
5690
5691 \begin_layout Plain Layout
5692
5693
5694 \backslash
5695 (
5696 \backslash
5697 star
5698 \backslash
5699 )
5700 \end_layout
5701
5702 \end_inset
5703
5704
5705 \end_layout
5706
5707 \end_inset
5708
5709  Specify each individual entry by starting each item with the bullet shape
5710  enclosed in a 
5711 \begin_inset Quotes eld
5712 \end_inset
5713
5714 Custom Item
5715 \begin_inset Quotes erd
5716 \end_inset
5717
5718  inset (available at 
5719 \family sans
5720 Insert\SpecialChar menuseparator
5721 Custom Item
5722 \family default
5723 ) and set as 
5724 \begin_inset Flex Noun
5725 status collapsed
5726
5727 \begin_layout Plain Layout
5728 \SpecialChar TeX
5729  Code
5730 \end_layout
5731
5732 \end_inset
5733
5734 .
5735  For example, this item was started with 
5736 \begin_inset Flex Code
5737 status collapsed
5738
5739 \begin_layout Plain Layout
5740
5741 \backslash
5742 (
5743 \backslash
5744 star
5745 \backslash
5746 )
5747 \end_layout
5748
5749 \end_inset
5750
5751 .
5752 \end_layout
5753
5754 \begin_layout Plain Layout
5755 \begin_inset ERT
5756 status open
5757
5758 \begin_layout Plain Layout
5759
5760
5761 \backslash
5762 renewcommand
5763 \backslash
5764 labelitemi[0]{
5765 \backslash
5766 savelabelitemi}
5767 \end_layout
5768
5769 \end_inset
5770
5771
5772 \end_layout
5773
5774 \begin_layout Plain Layout
5775 You'll also need to revert the labelitem back to its previous setting for
5776  the global bullet shape settings to remain in effect.
5777  The way used here was:
5778 \end_layout
5779
5780 \begin_layout LyX-Code
5781
5782 \backslash
5783 renewcommand
5784 \backslash
5785 labelitemi[0]{
5786 \backslash
5787 savelabelitemi}
5788 \end_layout
5789
5790 \end_inset
5791
5792
5793 \end_layout
5794
5795 \begin_layout Chapter
5796 \SpecialChar LyX
5797  and the World Wide Web
5798 \end_layout
5799
5800 \begin_layout Standard
5801 \SpecialChar LyX
5802  has long supported the export of documents to various web-friendly formats,
5803  such as HTML.
5804  Before version 2.0, however, HTML export was always accomplished by the
5805  use of external converters.
5806 \begin_inset Foot
5807 status collapsed
5808
5809 \begin_layout Plain Layout
5810 For details on the use of external converters with \SpecialChar LyX
5811 , see the 
5812 \emph on
5813 Converters
5814 \emph default
5815  section of the Customization manual.
5816 \end_layout
5817
5818 \end_inset
5819
5820  These fall into two large groups: there are converters that use \SpecialChar LaTeX
5821  as an
5822  intermediate format, such as 
5823 \begin_inset Flex Code
5824 status collapsed
5825
5826 \begin_layout Plain Layout
5827 htlatex
5828 \end_layout
5829
5830 \end_inset
5831
5832
5833 \begin_inset Flex Code
5834 status collapsed
5835
5836 \begin_layout Plain Layout
5837 html2latex
5838 \end_layout
5839
5840 \end_inset
5841
5842 , and 
5843 \begin_inset Flex Code
5844 status collapsed
5845
5846 \begin_layout Plain Layout
5847 plastex
5848 \end_layout
5849
5850 \end_inset
5851
5852 , relying upon \SpecialChar LyX
5853  to produce the \SpecialChar LaTeX
5854 ; and there is a converter that works directly
5855  on \SpecialChar LyX
5856  files, 
5857 \begin_inset Flex Code
5858 status collapsed
5859
5860 \begin_layout Plain Layout
5861 e\SpecialChar LyX
5862 er
5863 \end_layout
5864
5865 \end_inset
5866
5867 .
5868  All of these have different advantages and disadvantages.
5869  
5870 \end_layout
5871
5872 \begin_layout Standard
5873 The \SpecialChar LaTeX
5874 -based converters have the advantage that, in principle, they know everythin
5875 g about the exported document that \SpecialChar LaTeX
5876  does.
5877  Such converters do not care, for example, if a certain block of code was
5878  produced by \SpecialChar LyX
5879  or was Evil Red Text.
5880  These converters know about 
5881 \begin_inset Flex Code
5882 status collapsed
5883
5884 \begin_layout Plain Layout
5885 aux
5886 \end_layout
5887
5888 \end_inset
5889
5890  files, counters, and references, and can often make use of the 
5891 \begin_inset Flex Code
5892 status collapsed
5893
5894 \begin_layout Plain Layout
5895 bbl
5896 \end_layout
5897
5898 \end_inset
5899
5900  files generated by Bib\SpecialChar TeX
5901 .
5902  On the other hand, \SpecialChar LaTeX
5903  is a very hard language to parse—it is sometimes said
5904  that only \SpecialChar TeX
5905  itself understands \SpecialChar TeX
5906 —and \SpecialChar LaTeX
5907 -based converters will often choke on
5908  what seem to be quite simple constructs; complex ones can throw them completely
5909 , and as of this writing, for example, the 
5910 \emph on
5911 Embedded Objects
5912 \emph default
5913  manual will not export with 
5914 \begin_inset Flex Code
5915 status collapsed
5916
5917 \begin_layout Plain Layout
5918 htlatex
5919 \end_layout
5920
5921 \end_inset
5922
5923 , though the others will.
5924  The other issue concerns how math is handled.
5925  These converters typically convert the formulae into little pictures that
5926  are then linked from the HTML document.
5927  Since these are actually generated by \SpecialChar LaTeX
5928 , they are accurate.
5929  But they do not scale well, and just getting them to look as if they are
5930  actually meant to be in your document—so that the font sizes seem to be
5931  roughly the same—can be a challenge.
5932 \end_layout
5933
5934 \begin_layout Standard
5935 Alex Fernandez's 
5936 \begin_inset Flex Code
5937 status collapsed
5938
5939 \begin_layout Plain Layout
5940 e\SpecialChar LyX
5941 er
5942 \end_layout
5943
5944 \end_inset
5945
5946  (
5947 \begin_inset CommandInset href
5948 LatexCommand href
5949 name "http://pinchito.es/elyxer/"
5950 target "http://pinchito.es/elyxer/"
5951 literal "false"
5952
5953 \end_inset
5954
5955 ) solves some of these problems.
5956  In particular, the formulae it produces scale perfectly, since it renders
5957  math using a combination of HTML and CSS rather than converting the formulae
5958  to images.
5959  But even moderately complex formula are rendered less well than with 
5960 \begin_inset Flex Code
5961 status collapsed
5962
5963 \begin_layout Plain Layout
5964 htlatex
5965 \end_layout
5966
5967 \end_inset
5968
5969 ; this reflects the limitations of HTML.
5970 \begin_inset Foot
5971 status collapsed
5972
5973 \begin_layout Plain Layout
5974 That said, 
5975 \begin_inset Flex Code
5976 status collapsed
5977
5978 \begin_layout Plain Layout
5979 e\SpecialChar LyX
5980 er
5981 \end_layout
5982
5983 \end_inset
5984
5985  can also use jsMath and MathJax for equations, but this setting is only
5986  available globally and requires one to have access to a server that runs
5987  the backend.
5988 \end_layout
5989
5990 \end_inset
5991
5992  More importantly (as of version 1.1.1, at least), 
5993 \begin_inset Flex Code
5994 status collapsed
5995
5996 \begin_layout Plain Layout
5997 e\SpecialChar LyX
5998 er
5999 \end_layout
6000
6001 \end_inset
6002
6003  has limited support for math macros and no support for user-defined paragraph
6004  or character styles.
6005  These limitations make 
6006 \begin_inset Flex Code
6007 status collapsed
6008
6009 \begin_layout Plain Layout
6010 e\SpecialChar LyX
6011 er
6012 \end_layout
6013
6014 \end_inset
6015
6016  unsuitable for many of the documents \SpecialChar LyX
6017  users produce.
6018  In principle, of course, these problems could be solved, but the \SpecialChar LyX
6019  developers
6020  have decided to follow a different path and have made \SpecialChar LyX
6021  itself capable of
6022  writing XHTML, just as it is capable of writing \SpecialChar LaTeX
6023 , DocBook, and plaintext.
6024 \end_layout
6025
6026 \begin_layout Standard
6027 As of this writing, XHTML output remains under development and should probably
6028  be regarded as 
6029 \begin_inset Quotes eld
6030 \end_inset
6031
6032 experimental
6033 \begin_inset Quotes erd
6034 \end_inset
6035
6036 .
6037 \begin_inset Foot
6038 status collapsed
6039
6040 \begin_layout Plain Layout
6041 The file 
6042 \begin_inset Flex Code
6043 status collapsed
6044
6045 \begin_layout Plain Layout
6046 development/HTML/HTML.notes
6047 \end_layout
6048
6049 \end_inset
6050
6051 , which can be found in the \SpecialChar LyX
6052  source tree or 
6053 \begin_inset CommandInset href
6054 LatexCommand href
6055 name "accessed online"
6056 target "https://www.lyx.org/trac/browser/lyxgit/development/HTML/HTML.notes?rev=master"
6057 literal "false"
6058
6059 \end_inset
6060
6061 , usually contains up-to-date information about the state of XHTML output.
6062  See also the list of XHTML bugs on 
6063 \begin_inset CommandInset href
6064 LatexCommand href
6065 name "the bug tracker"
6066 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"
6067 literal "false"
6068
6069 \end_inset
6070
6071 .
6072 \end_layout
6073
6074 \end_inset
6075
6076  Still, the developers have chosen this approach because it has several
6077  potential advantages over the other two.
6078 \end_layout
6079
6080 \begin_layout Standard
6081 These advantages are primarily due to the fact that the XHTML output routines,
6082  since they are part of \SpecialChar LyX
6083 , know everything \SpecialChar LyX
6084  knows about the document being
6085  exported.
6086 \begin_inset Foot
6087 status collapsed
6088
6089 \begin_layout Plain Layout
6090 Another advantage is that, since these routines are internal to \SpecialChar LyX
6091 , they are
6092  immune to changes in \SpecialChar LyX
6093 's file format, or to changes in the semantics of
6094  existing insets.
6095 \end_layout
6096
6097 \end_inset
6098
6099  So they know about the table of contents (as displayed in the outline),
6100  about the counters associated with different paragraph styles, and about
6101  user-defined styles.
6102  The XHTML output routines know what \SpecialChar LyX
6103  knows about internationalization,
6104  too, so they will output 
6105 \begin_inset Quotes eld
6106 \end_inset
6107
6108 Chapter 1
6109 \begin_inset Quotes erd
6110 \end_inset
6111
6112  or 
6113 \begin_inset Quotes eld
6114 \end_inset
6115
6116
6117 \lang ngerman
6118 Kapitel
6119 \lang english
6120  1
6121 \begin_inset Quotes erd
6122 \end_inset
6123
6124 , depending upon the language in effect at the time.
6125  
6126 \end_layout
6127
6128 \begin_layout Standard
6129 Quite generally, the output routines know what \SpecialChar LyX
6130  knows about document layout,
6131  that is, about how the document is to be rendered on screen.
6132  We use this information when we output the document as XHTML.
6133  In particular, \SpecialChar LyX
6134  
6135 \emph on
6136 automatically
6137 \emph default
6138  generates CSS style information corresponding to the layout information
6139  it uses to render the document on screen: if section headings are supposed
6140  to be sans-serif and bold as seen in \SpecialChar LyX
6141 , then (by default) they will be sans-seri
6142 f and bold when viewed in a web browser, too.
6143  And this is true not just for pre-defined styles, like Section, but for
6144  any style, including user-defined styles.
6145  Indeed, the XHTML output routines make no distinction between user-defined
6146  paragraph and 
6147 \change_deleted 244031559 1603876931
6148 character
6149 \change_inserted 244031559 1603876940
6150 text
6151 \change_unchanged
6152  styles and \SpecialChar LyX
6153 's own pre-defined styles: in each case, everything \SpecialChar LyX
6154  knows about
6155  the styles is contained in the layout files.
6156  And much the same is true as regards pre-defined textual insets, such as
6157  footnotes, and various custom insets.
6158  
6159 \end_layout
6160
6161 \begin_layout Standard
6162 The result is that XHTML output can be customized and extended in exactly
6163  the same way \SpecialChar LaTeX
6164  output can be customized and extended: through layout files
6165  and modules.
6166  See chapter five of the 
6167 \emph on
6168 Customization 
6169 \emph default
6170 manual for the details.
6171 \end_layout
6172
6173 \begin_layout Standard
6174 The remainder of this chapter contains more detailed information on XHTML
6175  output, its limitations, and ways to work around those limitations.
6176 \end_layout
6177
6178 \begin_layout Section
6179 Math Output in XHTML
6180 \end_layout
6181
6182 \begin_layout Standard
6183 \SpecialChar LyX
6184  offers four choices for how math is rendered.
6185  These have various advantages and disadvantages:
6186 \end_layout
6187
6188 \begin_layout Itemize
6189 MathML
6190 \begin_inset Newline newline
6191 \end_inset
6192
6193 MathML is a dialect of XML designed specifically for mathematics on the
6194  web, and it typically renders very well in browsers that support it.
6195  The disadvantage is that not all browsers support MathML, and support is
6196  not complete even in the Gecko-based browsers, such as Firefox.
6197 \begin_inset Newline newline
6198 \end_inset
6199
6200 If \SpecialChar LyX
6201  is unable to render a formula as MathML—for example, if the formula
6202  uses the 
6203 \begin_inset Flex Code
6204 status collapsed
6205
6206 \begin_layout Plain Layout
6207 xymatrix
6208 \end_layout
6209
6210 \end_inset
6211
6212  package or ERT—then it will instead output the formula as an image.
6213  
6214 \end_layout
6215
6216 \begin_layout Itemize
6217 HTML
6218 \begin_inset Newline newline
6219 \end_inset
6220
6221 As mentioned above, 
6222 \begin_inset Flex Code
6223 status collapsed
6224
6225 \begin_layout Plain Layout
6226 elyxer
6227 \end_layout
6228
6229 \end_inset
6230
6231  outputs math as HTML, styled by CSS.
6232 \begin_inset Foot
6233 status collapsed
6234
6235 \begin_layout Plain Layout
6236 \SpecialChar LyX
6237  has borrowed some of the CSS for its HTML output from 
6238 \begin_inset Flex Code
6239 status collapsed
6240
6241 \begin_layout Plain Layout
6242 elyxer
6243 \end_layout
6244
6245 \end_inset
6246
6247 .
6248 \end_layout
6249
6250 \end_inset
6251
6252  For simple formulae, this can work quite well, though with more complicated
6253  formulae it tends to break down.
6254  Still, this method has the advantage that it is very widely supported and
6255  so it may be appropriate for documents that contain only a little, fairly
6256  simple math.
6257 \begin_inset Newline newline
6258 \end_inset
6259
6260 If Lyx is unable to render a formula as HTML—for example, if the formula
6261  uses the 
6262 \begin_inset Flex Code
6263 status collapsed
6264
6265 \begin_layout Plain Layout
6266 xymatrix
6267 \end_layout
6268
6269 \end_inset
6270
6271  package or ERT—then it will instead output the formula as an image.
6272  
6273 \end_layout
6274
6275 \begin_layout Itemize
6276 Images
6277 \begin_inset Newline newline
6278 \end_inset
6279
6280 Like 
6281 \begin_inset Flex Code
6282 status collapsed
6283
6284 \begin_layout Plain Layout
6285 htlatex
6286 \end_layout
6287
6288 \end_inset
6289
6290 , \SpecialChar LyX
6291  will output formulae as images, the very same images, in fact, that are
6292  used for instant preview.
6293 \begin_inset Foot
6294 status collapsed
6295
6296 \begin_layout Plain Layout
6297 Instant preview does 
6298 \emph on
6299 not 
6300 \emph default
6301 have to be on for images to be output, however.
6302 \end_layout
6303
6304 \end_inset
6305
6306  The advantage to this method is that the images are simply generated by
6307  \SpecialChar LaTeX
6308 , so they are very accurate.
6309  The disadvantage, as mentioned earlier, is that these are bitmapped images,
6310  so they do not scale terribly well, and one cannot copy them, etc.
6311 \begin_inset Newline newline
6312 \end_inset
6313
6314 The size of the images can be controlled by setting the 
6315 \begin_inset Quotes eld
6316 \end_inset
6317
6318 Math Images Scaling
6319 \begin_inset Quotes erd
6320 \end_inset
6321
6322  parameter under 
6323 \begin_inset Flex Noun
6324 status collapsed
6325
6326 \begin_layout Plain Layout
6327 Document\SpecialChar menuseparator
6328 Settings\SpecialChar menuseparator
6329 Formats
6330 \end_layout
6331
6332 \end_inset
6333
6334 .
6335 \begin_inset Foot
6336 status collapsed
6337
6338 \begin_layout Plain Layout
6339 For those who want to know, this controls the resolution of the image in
6340  dots per inch and is based upon a default of 75 dpi.
6341 \end_layout
6342
6343 \end_inset
6344
6345
6346 \begin_inset Newline newline
6347 \end_inset
6348
6349 If \SpecialChar LyX
6350  for some reason fails to create an image for a formula (e.g., if a required
6351  \SpecialChar LaTeX
6352  package is not installed), then it will fall back to outputing the raw
6353  \SpecialChar LaTeX
6354 .
6355 \end_layout
6356
6357 \begin_layout Itemize
6358 \SpecialChar LaTeX
6359
6360 \begin_inset Newline newline
6361 \end_inset
6362
6363 Finally, \SpecialChar LyX
6364  will happily output math as \SpecialChar LaTeX
6365 .
6366  As well as being the output of last resort, this method can be used with
6367  such tools as 
6368 \begin_inset CommandInset href
6369 LatexCommand href
6370 name "jsMath"
6371 target "http://www.math.union.edu/~dpvc/jsMath/"
6372 literal "false"
6373
6374 \end_inset
6375
6376 , which uses JavaScript to render \SpecialChar LaTeX
6377  embedded in HTML documents.
6378  \SpecialChar LyX
6379  wraps the \SpecialChar LaTeX
6380  in either a 
6381 \begin_inset Flex Code
6382 status collapsed
6383
6384 \begin_layout Plain Layout
6385 span
6386 \end_layout
6387
6388 \end_inset
6389
6390  (for inline formulas) or 
6391 \begin_inset Flex Code
6392 status collapsed
6393
6394 \begin_layout Plain Layout
6395 div
6396 \end_layout
6397
6398 \end_inset
6399
6400  (for displayed formulas) with 
6401 \begin_inset Flex Code
6402 status collapsed
6403
6404 \begin_layout Plain Layout
6405 class='math'
6406 \end_layout
6407
6408 \end_inset
6409
6410 , as is required for jsMath.
6411 \end_layout
6412
6413 \begin_layout Standard
6414 One of these output methods must be selected under 
6415 \begin_inset Flex Noun
6416 status collapsed
6417
6418 \begin_layout Plain Layout
6419 Document\SpecialChar menuseparator
6420 Settings\SpecialChar menuseparator
6421 Formats
6422 \end_layout
6423
6424 \end_inset
6425
6426 .
6427  By default, \SpecialChar LyX
6428  outputs MathML.
6429  This is a document-wide setting, therefore.
6430 \end_layout
6431
6432 \begin_layout Standard
6433 Eventually, \SpecialChar LyX
6434  will offer the user the option to select an alternate output
6435  method for a particular inset, say, one that isn't being rendered very
6436  well by MathML.
6437 \begin_inset Foot
6438 status collapsed
6439
6440 \begin_layout Plain Layout
6441 That said, since \SpecialChar LyX
6442  falls back to images if the inset contains ERT, then one
6443  can force output as an image by putting some harmless ERT into the math,
6444  for example: 
6445 \begin_inset Formula $a=b\relax$
6446 \end_inset
6447
6448 .
6449 \end_layout
6450
6451 \end_inset
6452
6453
6454 \end_layout
6455
6456 \begin_layout Section
6457 Bibliography and Citations
6458 \end_layout
6459
6460 \begin_layout Standard
6461 XHTML output fully supports bibliographies and citations.
6462  
6463 \end_layout
6464
6465 \begin_layout Standard
6466 Citation labels are generated by the same machinery that generates \SpecialChar LyX
6467 's on-screen
6468  labels, so the labels will look in the output much as they do in \SpecialChar LyX
6469 , though
6470  better.
6471  If you are using numerical citations, then \SpecialChar LyX
6472  will output numerical labels,
6473  such as [1] or [17], rather than simply showing the citation key in square
6474  brackets, as it does on-screen.
6475  If you are using author-year citations, then \SpecialChar LyX
6476  will add lowercase letters
6477  to the years, just as Bib\SpecialChar TeX
6478  does, if it finds more than one citation for
6479  a given author-year combination.
6480  The labels will be printed with the bibliography entries.
6481  Note that there is, at present, no way to customize the appearance of the
6482  labels, for example, to choose between square brackets and parentheses.
6483 \end_layout
6484
6485 \begin_layout Standard
6486 Bibliography output is handled by the same machinery that handles the presentati
6487 on of reference information in the citation dialog, so you will see in the
6488  XHTML output pretty much what you would see if you were to look at a given
6489  entry in the citation dialog.
6490  The formatting can be customized in your layout file or, preferably, in
6491  a module.
6492  See the 
6493 \emph on
6494 Customization
6495 \emph default
6496  manual for the details.
6497 \end_layout
6498
6499 \begin_layout Standard
6500 The main defect at present is that cross-referenced information is printed
6501  with every entry with which it is associated.
6502  So you can see things like this:
6503 \end_layout
6504
6505 \begin_layout Quote
6506 Jason Stanley, 
6507 \begin_inset Quotes eld
6508 \end_inset
6509
6510 Context and Logical Form
6511 \begin_inset Quotes erd
6512 \end_inset
6513
6514 , in 
6515 \emph on
6516 Language in Context: Selected Essays
6517 \emph default
6518  (Oxford: Oxford University Press, 2007), pp.
6519  30–68.
6520 \end_layout
6521
6522 \begin_layout Quote
6523 Jason Stanley, 
6524 \begin_inset Quotes eld
6525 \end_inset
6526
6527 Semantics in Context
6528 \begin_inset Quotes erd
6529 \end_inset
6530
6531 , in 
6532 \emph on
6533 Language in Context: Selected Essays
6534 \emph default
6535  (Oxford: Oxford University Press, 2007), pp.
6536  201–30.
6537 \end_layout
6538
6539 \begin_layout Standard
6540 This should be fixed before long.
6541 \end_layout
6542
6543 \begin_layout Standard
6544 There is no support at present for sectioned bibliographies.
6545  If you have multiple bibliographies, then \SpecialChar LyX
6546  will print the same bibliography
6547  over and over.
6548 \end_layout
6549
6550 \begin_layout Section
6551 Indexes
6552 \end_layout
6553
6554 \begin_layout Standard
6555 \SpecialChar LyX
6556  will happily export indexes as XHTML, but with certain limitations at the
6557  moment.
6558 \end_layout
6559
6560 \begin_layout Standard
6561 Index export will be most reliable when you do not attempt to use the fancy
6562  constructs that are described in the section on indexes in the 
6563 \emph on
6564 User's Guide
6565 \emph default
6566 .
6567 \begin_inset Foot
6568 status collapsed
6569
6570 \begin_layout Plain Layout
6571 The main issue here is that \SpecialChar LyX
6572  itself does not really handle these.
6573  It just lets you enter what you would have to enter in raw \SpecialChar LaTeX
6574 .
6575 \end_layout
6576
6577 \end_inset
6578
6579  We'll describe how they are handled using the subsection headings from
6580  that section.
6581 \end_layout
6582
6583 \begin_layout Itemize
6584 Grouping Index Entries (aka, sub-entries): \SpecialChar LyX
6585  makes an effort to support these,
6586  but the entries must be separated by 
6587 \begin_inset Quotes eld
6588 \end_inset
6589
6590  ! 
6591 \begin_inset Quotes erd
6592 \end_inset
6593
6594 , that is, there must be spaces around the exclamation point.
6595  This is because it is otherwise too difficult to check for escaped exclamation
6596  points, ones in math, and so forth.
6597 \end_layout
6598
6599 \begin_layout Itemize
6600 Page Ranges: There is no support at all for page ranges, since these make
6601  no sense with XHMTL.
6602  Instead, you will just get two index entries, one at either end.
6603 \end_layout
6604
6605 \begin_layout Itemize
6606 Cross-referencing: There is no support for cross-referencing.
6607  If \SpecialChar LyX
6608  finds an entry containing the 
6609 \begin_inset Quotes eld
6610 \end_inset
6611
6612 |see\SpecialChar ldots
6613
6614 \begin_inset Quotes erd
6615 \end_inset
6616
6617  construct, it is just dropped, and the rest is treated as an ordinary index
6618  entry.
6619 \end_layout
6620
6621 \begin_layout Itemize
6622 Index Entry Order: \SpecialChar LyX
6623  does support attempts to fix the sorting order.
6624  It will take what is before the first `@' it finds and use that for sorting,
6625  taking what follows the first `@' to be the actual entry.
6626  At present, \SpecialChar LyX
6627  does not check for escaped `@', so do not try to index email
6628  addresses.
6629 \end_layout
6630
6631 \begin_layout Itemize
6632 Index Entry Layout: You can format entries by using the text style dialog,
6633  or by using any other method available within \SpecialChar LyX
6634  itself.
6635  There is no support for constructs like: 
6636 \begin_inset Quotes eld
6637 \end_inset
6638
6639 entry|textbf
6640 \begin_inset Quotes erd
6641 \end_inset
6642
6643 .
6644  Indeed, if \SpecialChar LyX
6645  finds a pipe symbol, `|', in an entry, it will delete it and
6646  everything that follows it.
6647 \end_layout
6648
6649 \begin_layout Itemize
6650 Multiple Indexes: There is no support for multiple indexes.
6651  Rather, all index entries will be printed as one large index.
6652  To avoid our printing several versions of the index, we print only the
6653  main index, so make sure you have one.
6654 \end_layout
6655
6656 \begin_layout Section
6657 Nomenclature and Glossary
6658 \end_layout
6659
6660 \begin_layout Standard
6661 There is at present no support for glossaries.
6662  Adding it would be fairly trivial, and welcome.
6663 \end_layout
6664
6665 \begin_layout Chapter
6666
6667 \change_inserted 1075283030 1616534180
6668 DocBook Output
6669 \end_layout
6670
6671 \begin_layout Standard
6672
6673 \change_inserted 1075283030 1616534386
6674 Apart from HTML, \SpecialChar LyX
6675  can generate documents in the DocBook XML vocabulary.
6676  With versions 2.3 and before, only select templates could be used to generate
6677  DocBook documents (only version 4).
6678  Starting with \SpecialChar LyX
6679  2.4, most \SpecialChar LyX
6680  layouts can generate valid DocBook documents (only
6681  version 5).
6682  This feature is built into \SpecialChar LyX
6683  and does not require the use of external tools.
6684 \end_layout
6685
6686 \begin_layout Standard
6687
6688 \change_inserted 1075283030 1616534437
6689 The result is that the DocBook output can be customized and extended in
6690  exactly the same way \SpecialChar LaTeX
6691  output can be customized and extended: through layout
6692  files and modules.
6693  See chapter five of the 
6694 \emph on
6695 Customization 
6696 \emph default
6697 manual for the details.
6698 \end_layout
6699
6700 \begin_layout Standard
6701
6702 \change_inserted 1075283030 1616534475
6703 Most \SpecialChar LyX
6704  features are supported with DocBook, like math output.
6705 \end_layout
6706
6707 \begin_layout Itemize
6708
6709 \change_inserted 1075283030 1616534741
6710 Math output is performed mostly in MathML (the major exception being constructio
6711 ns not supported by \SpecialChar LyX
6712 , i.e.
6713  ERTs).
6714  All formulae are also available in raw \SpecialChar TeX
6715  in the DocBook output for further
6716  processing.
6717 \end_layout
6718
6719 \begin_layout Itemize
6720
6721 \change_inserted 1075283030 1616534852
6722 Bibliographies and citations are implemented, including with an external
6723  BibTeX file.
6724  Bibliography entries are not prerendered when the detailed information
6725  are available, but rather output with the standard DocBook constructs.
6726  The external DocBook processor is expected to handle the rendering of entries.
6727 \end_layout
6728
6729 \begin_layout Itemize
6730
6731 \change_inserted 1075283030 1616534863
6732 Indexes are supported, including multiple indices.
6733  Grouping (with 
6734 \family typewriter
6735 !
6736 \family default
6737 ), page ranges, and cross-references (
6738 \family typewriter
6739 |see
6740 \family default
6741 ) are supported, with the exception of the same symbols escaped.
6742  Entry order (
6743 \family typewriter
6744 @
6745 \family default
6746 ) and layout (
6747 \family typewriter
6748 |mathbf
6749 \family default
6750 ) are not supported.
6751  There is no support for escaping of index entries.
6752 \end_layout
6753
6754 \begin_layout Itemize
6755
6756 \change_inserted 1075283030 1616534884
6757 Glossaries are implemented.
6758 \end_layout
6759
6760 \begin_layout Standard
6761
6762 \change_inserted 1075283030 1616534894
6763 Two major parameters can be set at the document level.
6764 \end_layout
6765
6766 \begin_layout Itemize
6767
6768 \change_inserted 1075283030 1616534948
6769 Format for tables: \SpecialChar LyX
6770  can generate tables either as HTML (default value) or
6771  CALS, depending on the user's requirements.
6772  Most DocBook processors accept both formats.
6773 \end_layout
6774
6775 \begin_layout Itemize
6776
6777 \change_inserted 1075283030 1616535006
6778 MathML prefix: in DocBook, MathML is included within its own name space,
6779  unlike HTML.
6780  The implication is that there must be an indication of the tags belonging
6781  to the MathML standard.
6782  Three choices are offered: 
6783 \end_layout
6784
6785 \begin_deeper
6786 \begin_layout Itemize
6787
6788 \change_inserted 1075283030 1616535044
6789 Inline: the MathML name space is defined for each formula (using the 
6790 \family typewriter
6791 xmlns
6792 \family default
6793  attribute on each formula)
6794 \end_layout
6795
6796 \begin_layout Itemize
6797
6798 \change_inserted 1075283030 1616535090
6799 With the 
6800 \family typewriter
6801 m
6802 \family default
6803  prefix (default): the MathML name space is defined at the document level
6804  (using the 
6805 \family typewriter
6806 xmlns:m
6807 \family default
6808  attribute on the root element).
6809  Each MathML is prefixed with 
6810 \family typewriter
6811 m
6812 \family default
6813 : for instance, 
6814 \family typewriter
6815 m:math
6816 \end_layout
6817
6818 \begin_layout Itemize
6819
6820 \change_inserted 1075283030 1616620405
6821 With the 
6822 \family typewriter
6823 mml
6824 \family default
6825  prefix: similar to the 
6826 \family typewriter
6827 m
6828 \family default
6829  option, but with 
6830 \family typewriter
6831 mml
6832 \end_layout
6833
6834 \begin_layout Standard
6835
6836 \change_inserted 1075283030 1616620470
6837 This option is especially useful if you want \SpecialChar LyX
6838  to match your personal style
6839  or to work with buggy software that only accepts one prefix for MathML.
6840 \change_unchanged
6841
6842 \end_layout
6843
6844 \end_deeper
6845 \begin_layout Chapter
6846 The \SpecialChar LyX
6847  Server
6848 \end_layout
6849
6850 \begin_layout Section
6851 Introduction
6852 \end_layout
6853
6854 \begin_layout Standard
6855 The `\SpecialChar LyX
6856  server' allows other programs to talk to \SpecialChar LyX
6857 , invoke \SpecialChar LyX
6858  commands, and retrieve
6859  information about the \SpecialChar LyX
6860  internal state.
6861  This is only intended for advanced users, but they should find it useful.
6862  It is by writing to the \SpecialChar LyX
6863  server, for example, that bibliography managers,
6864  such as JabRef, are able to 
6865 \begin_inset Quotes eld
6866 \end_inset
6867
6868 push
6869 \begin_inset Quotes erd
6870 \end_inset
6871
6872  citations to \SpecialChar LyX
6873 .
6874 \end_layout
6875
6876 \begin_layout Section
6877 Starting the \SpecialChar LyX
6878  Server
6879 \begin_inset CommandInset label
6880 LatexCommand label
6881 name "sec:Starting-the-Server"
6882
6883 \end_inset
6884
6885
6886 \end_layout
6887
6888 \begin_layout Standard
6889 The \SpecialChar LyX
6890  server works through the use of a pair of named pipes.
6891  These are usually located in 
6892 \begin_inset Flex Code
6893 status collapsed
6894
6895 \begin_layout Plain Layout
6896 UserDir
6897 \end_layout
6898
6899 \end_inset
6900
6901 , (except on Windows, where 
6902 \emph on
6903 local
6904 \emph default
6905  named pipes are special objects located in 
6906 \begin_inset Flex Code
6907 status collapsed
6908
6909 \begin_layout Plain Layout
6910
6911 \backslash
6912
6913 \backslash
6914 .
6915 \backslash
6916 pipe
6917 \end_layout
6918
6919 \end_inset
6920
6921 ) and have the names 
6922 \begin_inset Quotes eld
6923 \end_inset
6924
6925
6926 \begin_inset Flex Code
6927 status collapsed
6928
6929 \begin_layout Plain Layout
6930 lyxpipe.in
6931 \end_layout
6932
6933 \end_inset
6934
6935
6936 \begin_inset Quotes erd
6937 \end_inset
6938
6939  and 
6940 \begin_inset Quotes eld
6941 \end_inset
6942
6943
6944 \begin_inset Flex Code
6945 status collapsed
6946
6947 \begin_layout Plain Layout
6948 lyxpipe.out
6949 \end_layout
6950
6951 \end_inset
6952
6953
6954 \begin_inset Quotes erd
6955 \end_inset
6956
6957 .
6958  External programs write into 
6959 \begin_inset Flex Code
6960 status collapsed
6961
6962 \begin_layout Plain Layout
6963 lyxpipe.in
6964 \end_layout
6965
6966 \end_inset
6967
6968  and read back data from 
6969 \begin_inset Flex Code
6970 status collapsed
6971
6972 \begin_layout Plain Layout
6973 lyxpipe.out
6974 \end_layout
6975
6976 \end_inset
6977
6978 .
6979  The stem of the pipe names can be defined in the 
6980 \begin_inset Flex Noun
6981 status collapsed
6982
6983 \begin_layout Plain Layout
6984 Tools\SpecialChar menuseparator
6985 Preferences
6986 \end_layout
6987
6988 \end_inset
6989
6990  dialog, for example 
6991 \begin_inset Flex Code
6992 status collapsed
6993
6994 \begin_layout Plain Layout
6995 "/home/myhome/lyxpipe"
6996 \end_layout
6997
6998 \end_inset
6999
7000 , or 
7001 \begin_inset Flex Code
7002 status collapsed
7003
7004 \begin_layout Plain Layout
7005 "
7006 \backslash
7007
7008 \backslash
7009 .
7010 \backslash
7011 pipe
7012 \backslash
7013 lyxpipe"
7014 \end_layout
7015
7016 \end_inset
7017
7018  on Windows (where any working path instead of lyxpipe can be used, for
7019  example 
7020 \begin_inset Flex Code
7021 status collapsed
7022
7023 \begin_layout Plain Layout
7024 "
7025 \backslash
7026
7027 \backslash
7028 .
7029 \backslash
7030 pipe
7031 \backslash
7032 my
7033 \backslash
7034 lyx
7035 \backslash
7036 pipe"
7037 \end_layout
7038
7039 \end_inset
7040
7041  would also work).
7042  You 
7043 \emph on
7044 must
7045 \emph default
7046  configure this manually in order for the server to start.
7047 \end_layout
7048
7049 \begin_layout Standard
7050 \SpecialChar LyX
7051  will add the '
7052 \begin_inset Flex Code
7053 status collapsed
7054
7055 \begin_layout Plain Layout
7056 .in
7057 \end_layout
7058
7059 \end_inset
7060
7061 ' and '
7062 \begin_inset Flex Code
7063 status collapsed
7064
7065 \begin_layout Plain Layout
7066 .out
7067 \end_layout
7068
7069 \end_inset
7070
7071 ' to create the pipes.
7072  If one of the pipes already exists, \SpecialChar LyX
7073  will assume that another \SpecialChar LyX
7074  process
7075  is already running and will not start the server.
7076  On POSIX (Unix like) systems, if for some other reason, an unused 
7077 \begin_inset Quotes eld
7078 \end_inset
7079
7080 stale
7081 \begin_inset Quotes erd
7082 \end_inset
7083
7084  pipe is left in existence when \SpecialChar LyX
7085  closes, then \SpecialChar LyX
7086  will try to delete it.
7087  If this fails for some reason, you will need to delete the pipes manually
7088  and then restart \SpecialChar LyX
7089 .
7090  On Windows, pipes are deleted by the OS on program termination or crash,
7091  so 
7092 \begin_inset Quotes eld
7093 \end_inset
7094
7095 stale
7096 \begin_inset Quotes erd
7097 \end_inset
7098
7099  pipes should not be possible.
7100 \end_layout
7101
7102 \begin_layout Standard
7103 To have several \SpecialChar LyX
7104  processes with servers at the same time, you have to use
7105  different configurations, perhaps by using separate user directories, each
7106  with its own 
7107 \begin_inset Flex Code
7108 status collapsed
7109
7110 \begin_layout Plain Layout
7111 preferences
7112 \end_layout
7113
7114 \end_inset
7115
7116  file, for each process.
7117 \end_layout
7118
7119 \begin_layout Standard
7120 If you are developing a client program, you might find it useful to enable
7121  debugging information from the \SpecialChar LyX
7122  server.
7123  Do this by starting \SpecialChar LyX
7124  as 
7125 \begin_inset Flex Code
7126 status collapsed
7127
7128 \begin_layout Plain Layout
7129 lyx -dbg lyxserver
7130 \end_layout
7131
7132 \end_inset
7133
7134 .
7135 \end_layout
7136
7137 \begin_layout Standard
7138 You can find a complete example client written in C++ in the source distribution
7139  as 
7140 \begin_inset Flex Code
7141 status collapsed
7142
7143 \begin_layout Plain Layout
7144 development/lyxserver/server_monitor.cpp
7145 \end_layout
7146
7147 \end_inset
7148
7149 .
7150 \end_layout
7151
7152 \begin_layout Standard
7153 Another useful tool is the command-line based client found in 
7154 \begin_inset Flex Code
7155 status collapsed
7156
7157 \begin_layout Plain Layout
7158 src/client/lyxclient
7159 \end_layout
7160
7161 \end_inset
7162
7163 .
7164 \end_layout
7165
7166 \begin_layout Section
7167 Normal communication
7168 \end_layout
7169
7170 \begin_layout Standard
7171 To issue a \SpecialChar LyX
7172  call, the client writes a line of ASCII text into the input
7173  pipe.
7174  This line has the following format:
7175 \end_layout
7176
7177 \begin_layout Quote
7178 LYXCMD:
7179 \emph on
7180 clientname
7181 \emph default
7182 :
7183 \emph on
7184 function
7185 \emph default
7186 :
7187 \emph on
7188 argument
7189 \end_layout
7190
7191 \begin_layout Description
7192 clientname is a name that the client can choose arbitrarily.
7193  Its only use is that \SpecialChar LyX
7194  will echo it if it sends an answer—so a client can
7195  dispatch results from different requesters.
7196 \end_layout
7197
7198 \begin_layout Description
7199 function is the function you want \SpecialChar LyX
7200  to perform.
7201  It is the same as the commands you'd use in the minibuffer.
7202 \end_layout
7203
7204 \begin_layout Description
7205 argument is an optional argument which is meaningful only to some functions
7206  (for instance, the 
7207 \begin_inset Quotes eld
7208 \end_inset
7209
7210 self-insert
7211 \begin_inset Quotes erd
7212 \end_inset
7213
7214  LFUN will insert the argument as text at the cursor position).
7215 \end_layout
7216
7217 \begin_layout Standard
7218 The answer from \SpecialChar LyX
7219  will arrive in the output pipe and be of the form
7220 \end_layout
7221
7222 \begin_layout Quote
7223 INFO:
7224 \emph on
7225 clientname
7226 \emph default
7227 :
7228 \emph on
7229 function
7230 \emph default
7231 :
7232 \emph on
7233 data
7234 \end_layout
7235
7236 \begin_layout Standard
7237 where 
7238 \emph on
7239 clientname
7240 \emph default
7241  and 
7242 \emph on
7243 function
7244 \emph default
7245  are just echoed from the command request, while 
7246 \emph on
7247 data
7248 \emph default
7249  is more or less useful information filled according to how the command
7250  execution worked out.
7251  Some commands, such as 
7252 \begin_inset Quotes eld
7253 \end_inset
7254
7255 font-state
7256 \begin_inset Quotes erd
7257 \end_inset
7258
7259 , will return information about the internal state of \SpecialChar LyX
7260 , while other will
7261  return an empty data-response.
7262  This means that the command execution went fine.
7263 \end_layout
7264
7265 \begin_layout Standard
7266 In case of errors, the response from \SpecialChar LyX
7267  will have this form
7268 \end_layout
7269
7270 \begin_layout Quote
7271 ERROR:
7272 \emph on
7273 clientname
7274 \emph default
7275 :
7276 \emph on
7277 function
7278 \emph default
7279 :
7280 \emph on
7281 error message
7282 \end_layout
7283
7284 \begin_layout Standard
7285 where the 
7286 \emph on
7287 error message
7288 \emph default
7289  should contain an explanation of why the command failed.
7290 \end_layout
7291
7292 \begin_layout Standard
7293 Examples:
7294 \end_layout
7295
7296 \begin_layout LyX-Code
7297 echo "LYXCMD:test:beginning-of-buffer:" >~/.lyxpipe.in
7298 \begin_inset Newline newline
7299 \end_inset
7300
7301 echo "LYXCMD:test:get-xy:" >~/.lyxpipe.in
7302 \begin_inset Newline newline
7303 \end_inset
7304
7305 read a <~/.lyxpipe.out
7306 \begin_inset Newline newline
7307 \end_inset
7308
7309 echo $a
7310 \end_layout
7311
7312 \begin_layout Subsection
7313 AppleScript (Mac OS X)
7314 \end_layout
7315
7316 \begin_layout Standard
7317 Since \SpecialChar LyX
7318  2.1, \SpecialChar LyX
7319  supports basic interactions with AppleScript for normal communicatio
7320 n through the command run.
7321  This command takes a direct argument (the 
7322 \series bold
7323 function
7324 \series default
7325  to perform) and an optional argument.
7326  It either returns the output of the function or triggers an error with
7327  the error message and code.
7328 \end_layout
7329
7330 \begin_layout Standard
7331 Example:
7332 \end_layout
7333
7334 \begin_layout LyX-Code
7335 tell application "\SpecialChar LyX
7336 "
7337 \end_layout
7338
7339 \begin_layout LyX-Code
7340   try
7341 \end_layout
7342
7343 \begin_layout LyX-Code
7344     -- Stores the current file name into f
7345 \end_layout
7346
7347 \begin_layout LyX-Code
7348     set f to (run "server-get-filename" with argument "")
7349 \end_layout
7350
7351 \begin_layout LyX-Code
7352     on error the error_message number the error_number
7353 \end_layout
7354
7355 \begin_layout LyX-Code
7356       display dialog "Error: " & the error_number & ".
7357  " ¬
7358 \end_layout
7359
7360 \begin_layout LyX-Code
7361               & the error_message buttons {"OK"} default button 1
7362 \end_layout
7363
7364 \begin_layout LyX-Code
7365   end try
7366 \end_layout
7367
7368 \begin_layout LyX-Code
7369 end tell
7370 \end_layout
7371
7372 \begin_layout Section
7373 Notification
7374 \end_layout
7375
7376 \begin_layout Standard
7377 \SpecialChar LyX
7378  can notify clients of events going on asynchronously.
7379  Currently it will only do this if the user binds a key sequence with the
7380  function 
7381 \begin_inset Quotes eld
7382 \end_inset
7383
7384 notify
7385 \begin_inset Quotes erd
7386 \end_inset
7387
7388 .
7389  The format of the string \SpecialChar LyX
7390  sends is as follows:
7391 \end_layout
7392
7393 \begin_layout Quote
7394 \begin_inset Flex Code
7395 status collapsed
7396
7397 \begin_layout Plain Layout
7398 NOTIFY:
7399 \end_layout
7400
7401 \end_inset
7402
7403
7404 \emph on
7405 key-sequence
7406 \end_layout
7407
7408 \begin_layout Standard
7409 where 
7410 \emph on
7411 key-sequence
7412 \emph default
7413  is the printed representation of the key sequence that was actually typed
7414  by the user.
7415 \end_layout
7416
7417 \begin_layout Standard
7418 This mechanism can be used to extend \SpecialChar LyX
7419 's command set and implement macros.
7420  Bind some key sequence to 
7421 \begin_inset Quotes eld
7422 \end_inset
7423
7424 notify
7425 \begin_inset Quotes erd
7426 \end_inset
7427
7428 .
7429  Then start a client that listens on the output pipe, dispatches the command
7430  according to the sequence, and starts a function that may use \SpecialChar LyX
7431  calls and
7432  \SpecialChar LyX
7433  requests to issue a command or a series of commands to \SpecialChar LyX
7434 .
7435 \end_layout
7436
7437 \begin_layout Section
7438 The simple \SpecialChar LyX
7439  Server Protocol
7440 \end_layout
7441
7442 \begin_layout Standard
7443 \SpecialChar LyX
7444  implements a simple protocol that can be used for session management.
7445  All messages are of the form
7446 \end_layout
7447
7448 \begin_layout Quote
7449 LYXSRV:
7450 \emph on
7451 clientname
7452 \emph default
7453 :
7454 \emph on
7455 protocol message
7456 \end_layout
7457
7458 \begin_layout Standard
7459 where 
7460 \emph on
7461 protocol message
7462 \emph default
7463  can be 
7464 \begin_inset Quotes eld
7465 \end_inset
7466
7467 hello
7468 \begin_inset Quotes erd
7469 \end_inset
7470
7471  or 
7472 \begin_inset Quotes eld
7473 \end_inset
7474
7475 bye
7476 \begin_inset Quotes erd
7477 \end_inset
7478
7479 .
7480  If 
7481 \begin_inset Quotes eld
7482 \end_inset
7483
7484 hello
7485 \begin_inset Quotes erd
7486 \end_inset
7487
7488  is received from a client, \SpecialChar LyX
7489  will report back to inform the client that
7490  it's listening to it's messages, while 
7491 \begin_inset Quotes eld
7492 \end_inset
7493
7494 bye
7495 \begin_inset Quotes erd
7496 \end_inset
7497
7498  sent from \SpecialChar LyX
7499  will inform clients that \SpecialChar LyX
7500  is closing.
7501 \end_layout
7502
7503 \begin_layout Section
7504 Reverse DVI/PDF search
7505 \end_layout
7506
7507 \begin_layout Standard
7508 Some DVI/PDF viewers
7509 \begin_inset Foot
7510 status collapsed
7511
7512 \begin_layout Plain Layout
7513 The following viewers offer the reverse PDF search feature: Okular on KDE/Linux,
7514  Qpdfview on Unix, Skim on Mac OSX and SumatraPDF on Windows.
7515 \end_layout
7516
7517 \end_inset
7518
7519  provide 
7520 \emph on
7521 reverse search
7522 \emph default
7523  facility (also called 
7524 \emph on
7525 inverse search
7526 \emph default
7527 ).
7528  This means that you can tell \SpecialChar LyX
7529  to put the cursor to a specific line in the
7530  document by clicking at the respective position in the DVI/PDF output.
7531  To achieve this, the viewer must be able to communicate with \SpecialChar LyX
7532 .
7533  This is done via the \SpecialChar LyX
7534  server either by using the named pipe (
7535 \emph on
7536 lyxpipe
7537 \emph default
7538 ), or the UNIX domain socket (
7539 \emph on
7540 lyxsocket
7541 \emph default
7542 ) that \SpecialChar LyX
7543  creates in its temporary directory (this is the way the 
7544 \begin_inset Flex Code
7545 status collapsed
7546
7547 \begin_layout Plain Layout
7548 lyxclient
7549 \end_layout
7550
7551 \end_inset
7552
7553  program communicates with \SpecialChar LyX
7554 ).
7555  In some cases, you need a helper script that mediates between the viewer
7556  and \SpecialChar LyX
7557 , in others, the viewer can communicate with \SpecialChar LyX
7558  directly.
7559  This depends on the selected viewer and on your operating system.
7560  The same applies to the way viewers need to be configured and the way the
7561  reverse search is actually performed.
7562  In what follows, we will thus describe how to setup reverse search for
7563  specific viewers.
7564  Before we turn to this, though, we will explain what needs to be done generally
7565  to enable reverse search in the DVI/PDF output.
7566 \end_layout
7567
7568 \begin_layout Subsection
7569 Automatic setup
7570 \begin_inset CommandInset label
7571 LatexCommand label
7572 name "subsec:rev-search"
7573
7574 \end_inset
7575
7576
7577 \end_layout
7578
7579 \begin_layout Standard
7580 In most cases \SpecialChar LyX
7581  will do the work for you by pressing the following button
7582  in the toolbar: 
7583 \begin_inset Info
7584 type  "icon"
7585 arg   "buffer-toggle-output-sync"
7586 \end_inset
7587
7588 .
7589  Alternatively, you can also enable the feature by checking 
7590 \family sans
7591 Synchronize with Output
7592 \family default
7593  in 
7594 \begin_inset Flex Noun
7595 status collapsed
7596
7597 \begin_layout Plain Layout
7598 Document\SpecialChar menuseparator
7599 Settings\SpecialChar menuseparator
7600 Formats
7601 \end_layout
7602
7603 \end_inset
7604
7605 .
7606  In such a case \SpecialChar LyX
7607  will automatically insert the necessary Sync\SpecialChar TeX
7608  macro (for
7609  PDF) or load the srcltx package (for DVI) respectively.
7610  This option can be easily reached also on 
7611 \begin_inset Flex Code
7612 status collapsed
7613
7614 \begin_layout Plain Layout
7615 View/Update
7616 \end_layout
7617
7618 \end_inset
7619
7620  Toolbar.
7621 \end_layout
7622
7623 \begin_layout Standard
7624 If you need a different setting, you can select or input a custom macro
7625  from the drop down box just below 
7626 \begin_inset Flex Noun
7627 status collapsed
7628
7629 \begin_layout Plain Layout
7630 Document\SpecialChar menuseparator
7631 Settings\SpecialChar menuseparator
7632 Output\SpecialChar menuseparator
7633 Synchronize with Output
7634 \end_layout
7635
7636 \end_inset
7637
7638 .
7639 \end_layout
7640
7641 \begin_layout Standard
7642 Note that the method 
7643 \begin_inset Flex Code
7644 status collapsed
7645
7646 \begin_layout Plain Layout
7647
7648 \backslash
7649 synctex=1
7650 \end_layout
7651
7652 \end_inset
7653
7654  enables gzip compression.
7655  If your viewer does not support it, you should instead use 
7656 \begin_inset Flex Code
7657 status collapsed
7658
7659 \begin_layout Plain Layout
7660
7661 \backslash
7662 synctex=-1
7663 \end_layout
7664
7665 \end_inset
7666
7667 .
7668 \end_layout
7669
7670 \begin_layout Standard
7671 Please also note that including the 
7672 \begin_inset Flex Code
7673 status collapsed
7674
7675 \begin_layout Plain Layout
7676 srcltx
7677 \end_layout
7678
7679 \end_inset
7680
7681  package or 
7682 \begin_inset Flex Code
7683 status collapsed
7684
7685 \begin_layout Plain Layout
7686 src-specials
7687 \end_layout
7688
7689 \end_inset
7690
7691  sometimes has an undesired impact on the typesetting.
7692  Thus, you should switch output synchronization off for the final typesetting
7693  if you use the 
7694 \begin_inset Flex Code
7695 status collapsed
7696
7697 \begin_layout Plain Layout
7698 srcltx
7699 \end_layout
7700
7701 \end_inset
7702
7703  package or 
7704 \begin_inset Flex Code
7705 status collapsed
7706
7707 \begin_layout Plain Layout
7708 src-specials
7709 \end_layout
7710
7711 \end_inset
7712
7713 .
7714  
7715 \end_layout
7716
7717 \begin_layout Standard
7718 In case you need some more special settings that are not covered by the
7719  automatic settings, read the next section about how to set up output synchroniz
7720 ation manually.
7721  If the automatic setup suits your needs, you can readily jump to section
7722 \begin_inset space ~
7723 \end_inset
7724
7725
7726 \begin_inset CommandInset ref
7727 LatexCommand ref
7728 reference "subsec:configuring-viewers"
7729
7730 \end_inset
7731
7732 , where the necessary configuration steps in your viewer – needed both with
7733  the automatic and the manual setup – are described.
7734 \end_layout
7735
7736 \begin_layout Subsection
7737 Manual setup
7738 \end_layout
7739
7740 \begin_layout Standard
7741 \SpecialChar LaTeX
7742  provides several different methods for reverse search.
7743  Some are built-in in the 
7744 \begin_inset Flex Code
7745 status collapsed
7746
7747 \begin_layout Plain Layout
7748 latex/pdflatex
7749 \end_layout
7750
7751 \end_inset
7752
7753  program, some are provided by external packages.
7754  Your choice depends on whether your \SpecialChar LaTeX
7755  distribution already provides a given
7756  method (the built-in methods are rather new) and whether your viewer can
7757  cope with it.
7758  The available methods are described in the following.
7759 \end_layout
7760
7761 \begin_layout Subsubsection*
7762 Built-in DVI-search via src-specials (DVI only) 
7763 \end_layout
7764
7765 \begin_layout Standard
7766 This method provides the DVI file with the necessary information for reverse
7767  search.
7768  It is available in \SpecialChar LaTeX
7769  since quite some time (any somewhat recent \SpecialChar LaTeX
7770  distribution
7771  should include it), and it works reliably.
7772  To enable it, change the 
7773 \begin_inset Flex Noun
7774 status collapsed
7775
7776 \begin_layout Plain Layout
7777 La
7778 \family sans
7779 TeX
7780 \family default
7781  (plain)->DVI
7782 \end_layout
7783
7784 \end_inset
7785
7786  or 
7787 \begin_inset Flex Noun
7788 status collapsed
7789
7790 \begin_layout Plain Layout
7791 La
7792 \family sans
7793 TeX
7794 \family default
7795  (plain)->DraftDVI
7796 \end_layout
7797
7798 \end_inset
7799
7800  converter in 
7801 \begin_inset Flex Noun
7802 status collapsed
7803
7804 \begin_layout Plain Layout
7805 Preferences\SpecialChar menuseparator
7806 File Handling\SpecialChar menuseparator
7807 Converters
7808 \end_layout
7809
7810 \end_inset
7811
7812  to 
7813 \begin_inset Flex Code
7814 status collapsed
7815
7816 \begin_layout Plain Layout
7817 latex -src-specials $$i
7818 \end_layout
7819
7820 \end_inset
7821
7822 .
7823  If this doesn't work, check if your \SpecialChar TeX
7824  engine needs different options (the
7825  syntax might differ in some distributions).
7826 \end_layout
7827
7828 \begin_layout Subsubsection*
7829 External Packages (PDFSync and scrltx) 
7830 \end_layout
7831
7832 \begin_layout Standard
7833 The packages 
7834 \emph on
7835 pdfsync
7836 \emph default
7837  and 
7838 \emph on
7839 scrltx
7840 \emph default
7841  provide reverse search facility for PDF output (via pdflatex) and DVI output,
7842  respectively.
7843  In order to enable it, load the packages in the \SpecialChar LyX
7844  preamble: 
7845 \end_layout
7846
7847 \begin_layout Itemize
7848 \begin_inset Flex Code
7849 status collapsed
7850
7851 \begin_layout Plain Layout
7852
7853 \backslash
7854 usepackage{pdfsync}
7855 \end_layout
7856
7857 \end_inset
7858
7859  for reverse PDF search,
7860 \end_layout
7861
7862 \begin_layout Itemize
7863 \begin_inset Flex Code
7864 status collapsed
7865
7866 \begin_layout Plain Layout
7867
7868 \backslash
7869 usepackage[active]{srcltx}
7870 \end_layout
7871
7872 \end_inset
7873
7874  for reverse DVI search.
7875 \end_layout
7876
7877 \begin_layout Standard
7878 If you want to be able to perform both DVI and PDF reverse searches, you
7879  can also insert in the preamble the following lines
7880 \end_layout
7881
7882 \begin_layout LyX-Code
7883
7884 \backslash
7885 usepackage{ifpdf}
7886 \begin_inset Newline newline
7887 \end_inset
7888
7889
7890 \backslash
7891 ifpdf
7892 \begin_inset Newline newline
7893 \end_inset
7894
7895   
7896 \backslash
7897 usepackage{pdfsync}
7898 \begin_inset Newline newline
7899 \end_inset
7900
7901
7902 \backslash
7903 else
7904 \begin_inset Newline newline
7905 \end_inset
7906
7907   
7908 \backslash
7909 usepackage[active]{srcltx}
7910 \begin_inset Newline newline
7911 \end_inset
7912
7913
7914 \backslash
7915 fi
7916 \end_layout
7917
7918 \begin_layout Standard
7919 This way, you can preview the file as either DVI or PDF (pdflatex) and the
7920  right package will be used.
7921 \end_layout
7922
7923 \begin_layout Standard
7924 Note that PDFSync might affect the output layout of your document.
7925  It is therefore advised to disable PDFsync for final documents.
7926 \end_layout
7927
7928 \begin_layout Subsubsection*
7929 Built-in reverse search via Sync\SpecialChar TeX
7930  (DVI and PDF) 
7931 \end_layout
7932
7933 \begin_layout Standard
7934 Recent versions of 
7935 \begin_inset Flex Code
7936 status collapsed
7937
7938 \begin_layout Plain Layout
7939 (pdf)latex
7940 \end_layout
7941
7942 \end_inset
7943
7944  have built-in support for both PDF and DVI reverse search.
7945  This so-called 
7946 \emph on
7947 Sync\SpecialChar TeX
7948
7949 \emph default
7950  facility is basically the result of the integration of the PDFSync package
7951  to the pdftex program and its merge with the 
7952 \emph on
7953 scr-specials
7954 \emph default
7955  approach.
7956  You need at least \SpecialChar TeX
7957 Live 2008 or a recent Mik\SpecialChar TeX
7958  distribution in order to use
7959  it.
7960 \begin_inset Foot
7961 status collapsed
7962
7963 \begin_layout Plain Layout
7964 For some reason, Mik\SpecialChar TeX
7965  does not understand/obey the command \SpecialChar LyX
7966  inserts into
7967  the preamble when you check the "Enable Forward/Reverse Search" button
7968  in the toolbar and does not generate the necessary info.
7969 \end_layout
7970
7971 \begin_layout Plain Layout
7972 The generation of the required info can be forced by changing the converter
7973  "\SpecialChar LaTeX
7974  (pdflatex) -> PDF (pdflatex)" in Preferences->File handling->Converters
7975  from the default "pdflatex $$i" to "pdflatex -synctex=1 $$i" (i.e., by adding
7976  the -synctex=1 switch).
7977 \end_layout
7978
7979 \end_inset
7980
7981  Also note that only a few PDF viewers (such as Okular and Qpdfview on Unix,
7982  Skim on the Mac, SumatraPDF on Windows; see the next section for details)
7983  already provide Sync\SpecialChar TeX
7984  support.
7985 \end_layout
7986
7987 \begin_layout Standard
7988 To enable Sync\SpecialChar TeX
7989  for DVI output, change the 
7990 \begin_inset Flex Noun
7991 status collapsed
7992
7993 \begin_layout Plain Layout
7994 La
7995 \family sans
7996 TeX
7997 \family default
7998  (plain) -> DVI
7999 \end_layout
8000
8001 \end_inset
8002
8003  or 
8004 \begin_inset Flex Noun
8005 status collapsed
8006
8007 \begin_layout Plain Layout
8008 La
8009 \family sans
8010 TeX
8011 \family default
8012  (plain) -> DraftDVI
8013 \end_layout
8014
8015 \end_inset
8016
8017  converter in 
8018 \begin_inset Flex Noun
8019 status collapsed
8020
8021 \begin_layout Plain Layout
8022 Preferences\SpecialChar menuseparator
8023 File Handling\SpecialChar menuseparator
8024 Converters
8025 \end_layout
8026
8027 \end_inset
8028
8029  to 
8030 \begin_inset Flex Code
8031 status collapsed
8032
8033 \begin_layout Plain Layout
8034 latex -synctex=1 $$i
8035 \end_layout
8036
8037 \end_inset
8038
8039 , and for PDF output, change the 
8040 \begin_inset Flex Noun
8041 status collapsed
8042
8043 \begin_layout Plain Layout
8044 La
8045 \family sans
8046 TeX
8047 \family default
8048  (pdflatex) -> PDF (pdflatex)
8049 \end_layout
8050
8051 \end_inset
8052
8053  converter to 
8054 \begin_inset Flex Code
8055 status collapsed
8056
8057 \begin_layout Plain Layout
8058 pdflatex -synctex=1 $$i
8059 \end_layout
8060
8061 \end_inset
8062
8063 .
8064  Should your viewer not be considered in the following description, or in
8065  case of missing success, please check the documentation of your viewer
8066  whether the viewer needs to be configured for the use with Sync\SpecialChar TeX
8067 .
8068 \begin_inset Foot
8069 status collapsed
8070
8071 \begin_layout Plain Layout
8072 Note that the option 
8073 \begin_inset Flex Code
8074 status collapsed
8075
8076 \begin_layout Plain Layout
8077 -synctex=1
8078 \end_layout
8079
8080 \end_inset
8081
8082  option enables gzip compression.
8083  If your viewer does not support it, you should instead use 
8084 \begin_inset Flex Code
8085 status collapsed
8086
8087 \begin_layout Plain Layout
8088 -synctex=-1
8089 \end_layout
8090
8091 \end_inset
8092
8093 .
8094 \end_layout
8095
8096 \end_inset
8097
8098
8099 \end_layout
8100
8101 \begin_layout Subsection
8102 Configuring and using specific viewers
8103 \begin_inset CommandInset label
8104 LatexCommand label
8105 name "subsec:configuring-viewers"
8106
8107 \end_inset
8108
8109
8110 \end_layout
8111
8112 \begin_layout Subsubsection*
8113 Xdvi (all platforms)
8114 \end_layout
8115
8116 \begin_layout Standard
8117 If you use 
8118 \begin_inset Flex Code
8119 status collapsed
8120
8121 \begin_layout Plain Layout
8122 xdvi
8123 \end_layout
8124
8125 \end_inset
8126
8127 , you don't need to do anything else for performing a reverse DVI search,
8128  as \SpecialChar LyX
8129  already provides the necessary hooks for automatically using the 
8130 \begin_inset Flex Code
8131 status collapsed
8132
8133 \begin_layout Plain Layout
8134 lyxclient
8135 \end_layout
8136
8137 \end_inset
8138
8139  program.
8140  Just setup your document as described above (reverse search is triggered
8141  by Ctrl-click or Alt-click on Mac OSX, respectively).
8142 \end_layout
8143
8144 \begin_layout Standard
8145 However, if for whatever reason you want to use the named pipe instead of
8146  the socket for communicating with \SpecialChar LyX
8147 , simply change the DVI viewer in 
8148 \begin_inset Flex Noun
8149 status collapsed
8150
8151 \begin_layout Plain Layout
8152 Preferences\SpecialChar menuseparator
8153 File Handling\SpecialChar menuseparator
8154 File formats
8155 \end_layout
8156
8157 \end_inset
8158
8159  to
8160 \begin_inset Foot
8161 status collapsed
8162
8163 \begin_layout Plain Layout
8164 On Mac OSX you have to use 
8165 \begin_inset Flex Code
8166 status collapsed
8167
8168 \begin_layout Plain Layout
8169 DISPLAY=:0.0 xdvi -editor "lyxeditor.sh %f %l"
8170 \end_layout
8171
8172 \end_inset
8173
8174
8175 \end_layout
8176
8177 \end_inset
8178
8179  
8180 \begin_inset Flex Code
8181 status collapsed
8182
8183 \begin_layout Plain Layout
8184 xdvi -editor "lyxeditor.sh %f %l"
8185 \end_layout
8186
8187 \end_inset
8188
8189 , where 
8190 \begin_inset Flex Code
8191 status collapsed
8192
8193 \begin_layout Plain Layout
8194 lyxeditor.sh
8195 \end_layout
8196
8197 \end_inset
8198
8199  is a suitable script.
8200  For example, a minimal shell script is the following one:
8201 \end_layout
8202
8203 \begin_layout LyX-Code
8204 #!/bin/sh
8205 \begin_inset Newline newline
8206 \end_inset
8207
8208 LYXPIPE="/path/to/lyxpipe"
8209 \begin_inset Newline newline
8210 \end_inset
8211
8212 COMMAND="LYXCMD:revdvi:server-goto-file-row:$1 $2"
8213 \begin_inset Newline newline
8214 \end_inset
8215
8216 echo "$COMMAND" > "${LYXPIPE}".in || exit
8217 \begin_inset Newline newline
8218 \end_inset
8219
8220 read TMP < "${LYXPIPE}".out || exit
8221 \end_layout
8222
8223 \begin_layout Standard
8224 where 
8225 \begin_inset Flex Code
8226 status collapsed
8227
8228 \begin_layout Plain Layout
8229 /path/to/lyxpipe
8230 \end_layout
8231
8232 \end_inset
8233
8234  is the LyXServer pipe path specified in 
8235 \begin_inset Flex Noun
8236 status collapsed
8237
8238 \begin_layout Plain Layout
8239 Preferences\SpecialChar menuseparator
8240 Paths
8241 \end_layout
8242
8243 \end_inset
8244
8245 .
8246 \begin_inset Foot
8247 status collapsed
8248
8249 \begin_layout Plain Layout
8250 In the 
8251 \begin_inset Flex Code
8252 status collapsed
8253
8254 \begin_layout Plain Layout
8255 development/tools
8256 \end_layout
8257
8258 \end_inset
8259
8260  folder of a source distribution you can find a 
8261 \begin_inset Flex Code
8262 status collapsed
8263
8264 \begin_layout Plain Layout
8265 lyxeditor
8266 \end_layout
8267
8268 \end_inset
8269
8270  script which is able to locate the 
8271 \emph on
8272 lyxpipe
8273 \emph default
8274  based on your preferences.
8275 \end_layout
8276
8277 \end_inset
8278
8279
8280 \end_layout
8281
8282 \begin_layout Subsubsection*
8283 MacDviX (Mac OSX)
8284 \end_layout
8285
8286 \begin_layout Standard
8287 At the end of 
8288 \begin_inset Flex Code
8289 status collapsed
8290
8291 \begin_layout Plain Layout
8292 /Applications/MacDviX_Folder/calleditor.script
8293 \end_layout
8294
8295 \end_inset
8296
8297 , add the following lines:
8298 \end_layout
8299
8300 \begin_layout LyX-Code
8301 /Applications/LyX.app/Contents/MacOS/lyxeditor "$2" $1
8302 \begin_inset Newline newline
8303 \end_inset
8304
8305 exit 1
8306 \end_layout
8307
8308 \begin_layout Standard
8309 Modify the lines accordingly if you install \SpecialChar LyX
8310  somewhere else than in the
8311  Applications folder.
8312 \end_layout
8313
8314 \begin_layout Standard
8315 Reverse search is triggered by Alt-click (OPTION-click).
8316 \end_layout
8317
8318 \begin_layout Subsubsection*
8319 Skim (Mac OSX)
8320 \end_layout
8321
8322 \begin_layout Standard
8323 Enter 
8324 \begin_inset Flex Code
8325 status collapsed
8326
8327 \begin_layout Plain Layout
8328 open -a Skim.app $$i
8329 \end_layout
8330
8331 \end_inset
8332
8333  to the viewer setting in 
8334 \begin_inset Flex Noun
8335 status collapsed
8336
8337 \begin_layout Plain Layout
8338 Preferences\SpecialChar menuseparator
8339 File Handling\SpecialChar menuseparator
8340 File formats\SpecialChar menuseparator
8341 PDF (pdflatex)
8342 \end_layout
8343
8344 \end_inset
8345
8346 , and then in 
8347 \begin_inset Flex Noun
8348 status collapsed
8349
8350 \begin_layout Plain Layout
8351 Skim\SpecialChar menuseparator
8352 Preferences\SpecialChar menuseparator
8353 Sync
8354 \end_layout
8355
8356 \end_inset
8357
8358  choose 
8359 \begin_inset Flex Noun
8360 status collapsed
8361
8362 \begin_layout Plain Layout
8363 custom
8364 \end_layout
8365
8366 \end_inset
8367
8368  preset and enter command 
8369 \begin_inset Flex Noun
8370 status collapsed
8371
8372 \begin_layout Plain Layout
8373 /Applications/\SpecialChar LyX
8374 .app/Contents/MacOS/lyxeditor
8375 \end_layout
8376
8377 \end_inset
8378
8379 .
8380 \end_layout
8381
8382 \begin_layout Standard
8383 Reverse search is triggered by COMMAND-SHIFT-click
8384 \end_layout
8385
8386 \begin_layout Subsubsection*
8387 Evince (GNOME)
8388 \end_layout
8389
8390 \begin_layout Standard
8391 Reverse search with evince does not work out of the box, but it can be achieved
8392  by means of some third party helper scripts.
8393  Please refer to 
8394 \begin_inset CommandInset href
8395 LatexCommand href
8396 target "https://wiki.lyx.org/LyX/SyncTeX"
8397 literal "false"
8398
8399 \end_inset
8400
8401  for details.
8402 \end_layout
8403
8404 \begin_layout Subsubsection*
8405 Okular (KDE)
8406 \end_layout
8407
8408 \begin_layout Standard
8409 Go to 
8410 \begin_inset Flex Noun
8411 status collapsed
8412
8413 \begin_layout Plain Layout
8414 Settings\SpecialChar menuseparator
8415 Configure Okular\SpecialChar menuseparator
8416 Editor
8417 \end_layout
8418
8419 \end_inset
8420
8421  and select LyX
8422 \begin_inset Quotes erd
8423 \end_inset
8424
8425  as editor.
8426  This inserts the appropriate command (
8427 \begin_inset Flex Code
8428 status collapsed
8429
8430 \begin_layout Plain Layout
8431 lyxclient -g %f %l
8432 \end_layout
8433
8434 \end_inset
8435
8436 ).
8437 \end_layout
8438
8439 \begin_layout Standard
8440 Reverse search is triggered by SHIFT-click.
8441
8442 \change_inserted -712698321 1578211026
8443  Note that this only works if Okular is in 
8444 \begin_inset Quotes eld
8445 \end_inset
8446
8447 Browse
8448 \begin_inset Quotes erd
8449 \end_inset
8450
8451  mode (i.
8452 \begin_inset space \thinspace{}
8453 \end_inset
8454
8455 e., the hand symbol is clicked).
8456 \change_unchanged
8457
8458 \end_layout
8459
8460 \begin_layout Subsubsection*
8461 Qpdfview (Unix)
8462 \end_layout
8463
8464 \begin_layout Standard
8465 Qpdfview supports Sync\SpecialChar TeX
8466  since version 0.3.5.
8467  Go to 
8468 \begin_inset Flex Noun
8469 status collapsed
8470
8471 \begin_layout Plain Layout
8472 Edit\SpecialChar menuseparator
8473 Settings\SpecialChar menuseparator
8474 Behavior
8475 \end_layout
8476
8477 \end_inset
8478
8479 , click on the input field of the 
8480 \begin_inset Quotes eld
8481 \end_inset
8482
8483 Source editor
8484 \begin_inset Quotes erd
8485 \end_inset
8486
8487  item and add the command 
8488 \begin_inset Flex Code
8489 status collapsed
8490
8491 \begin_layout Plain Layout
8492 lyxclient -g %1 %2
8493 \end_layout
8494
8495 \end_inset
8496
8497 .
8498 \end_layout
8499
8500 \begin_layout Standard
8501 Reverse search is triggered by double-click or, in more recent versions,
8502  by context menu.
8503 \end_layout
8504
8505 \begin_layout Subsubsection*
8506 YAP (Windows)
8507 \end_layout
8508
8509 \begin_layout Standard
8510 Launch yap, choose its 
8511 \begin_inset Flex Noun
8512 status collapsed
8513
8514 \begin_layout Plain Layout
8515 View\SpecialChar menuseparator
8516 Options
8517 \end_layout
8518
8519 \end_inset
8520
8521  menu and select the 
8522 \begin_inset Quotes eld
8523 \end_inset
8524
8525 Inverse DVI Search
8526 \begin_inset Quotes erd
8527 \end_inset
8528
8529  tab.
8530  Click on the 
8531 \begin_inset Quotes eld
8532 \end_inset
8533
8534 New\SpecialChar ldots
8535
8536 \begin_inset Quotes erd
8537 \end_inset
8538
8539  button and, in the window that opens, enter 
8540 \begin_inset Quotes eld
8541 \end_inset
8542
8543 \SpecialChar LyX
8544  Editor
8545 \begin_inset Quotes erd
8546 \end_inset
8547
8548  (or any other name you like) in the 
8549 \begin_inset Quotes eld
8550 \end_inset
8551
8552 Name:
8553 \begin_inset Quotes erd
8554 \end_inset
8555
8556  field.
8557  Now click on the button labeled 
8558 \begin_inset Quotes eld
8559 \end_inset
8560
8561 \SpecialChar ldots
8562
8563 \begin_inset Quotes erd
8564 \end_inset
8565
8566  to open a file dialog and navigate to the directory containing the batch
8567  file 
8568 \begin_inset Flex Code
8569 status collapsed
8570
8571 \begin_layout Plain Layout
8572 lyxeditor.bat
8573 \end_layout
8574
8575 \end_inset
8576
8577  (see below).
8578  Select 
8579 \begin_inset Flex Code
8580 status collapsed
8581
8582 \begin_layout Plain Layout
8583 lyxeditor.bat
8584 \end_layout
8585
8586 \end_inset
8587
8588  and then specify the program arguments as 
8589 \begin_inset Flex Code
8590 status collapsed
8591
8592 \begin_layout Plain Layout
8593 %f %l
8594 \end_layout
8595
8596 \end_inset
8597
8598 .
8599  The 
8600 \begin_inset Flex Code
8601 status collapsed
8602
8603 \begin_layout Plain Layout
8604 lyxeditor.bat
8605 \end_layout
8606
8607 \end_inset
8608
8609  wrapper is used for communicating with \SpecialChar LyX
8610  through the 
8611 \emph on
8612 lyxpipe
8613 \emph default
8614  and is as follows:
8615 \end_layout
8616
8617 \begin_layout LyX-Code
8618 @echo off
8619 \begin_inset Newline newline
8620 \end_inset
8621
8622 echo LYXCMD:revdvi:server-goto-file-row:%~1 %2> 
8623 \backslash
8624
8625 \backslash
8626 .
8627 \backslash
8628 pipe
8629 \backslash
8630 lyxpipe.in
8631 \begin_inset Newline newline
8632 \end_inset
8633
8634 type 
8635 \backslash
8636
8637 \backslash
8638 .
8639 \backslash
8640 pipe
8641 \backslash
8642 lyxpipe.out
8643 \end_layout
8644
8645 \begin_layout Standard
8646 Make sure that the \SpecialChar LyX
8647 Server pipe path you specified in \SpecialChar LyX
8648  is 
8649 \begin_inset Flex Code
8650 status collapsed
8651
8652 \begin_layout Plain Layout
8653
8654 \backslash
8655
8656 \backslash
8657 .
8658 \backslash
8659 pipe
8660 \backslash
8661 lyxpipe
8662 \end_layout
8663
8664 \end_inset
8665
8666 , otherwise change the 
8667 \begin_inset Flex Code
8668 status collapsed
8669
8670 \begin_layout Plain Layout
8671 lyxeditor.bat
8672 \end_layout
8673
8674 \end_inset
8675
8676  wrapper accordingly.
8677 \end_layout
8678
8679 \begin_layout Standard
8680 In yap, reverse search is triggered by double-click.
8681 \end_layout
8682
8683 \begin_layout Subsubsection*
8684 SumatraPDF (Windows)
8685 \end_layout
8686
8687 \begin_layout Standard
8688 In order to use SumatraPDF for inverse search, enter 
8689 \begin_inset Flex Code
8690 status collapsed
8691
8692 \begin_layout Plain Layout
8693 SumatraPDF -inverse-search "lyxeditor.bat "%f" %l"
8694 \end_layout
8695
8696 \end_inset
8697
8698  in the viewer setting in 
8699 \begin_inset Flex Noun
8700 status collapsed
8701
8702 \begin_layout Plain Layout
8703 Preferences\SpecialChar menuseparator
8704 File Handling\SpecialChar menuseparator
8705 File formats\SpecialChar menuseparator
8706 PDF (pdflatex)
8707 \end_layout
8708
8709 \end_inset
8710
8711 , where 
8712 \begin_inset Flex Code
8713 status collapsed
8714
8715 \begin_layout Plain Layout
8716 lyxeditor.bat
8717 \end_layout
8718
8719 \end_inset
8720
8721  is the previous wrapper.
8722  If SumatraPDF.exe is not in your command PATH, use its full file name.
8723 \end_layout
8724
8725 \begin_layout Standard
8726 Reverse search is triggered by double-click.
8727 \end_layout
8728
8729 \begin_layout Subsubsection*
8730 YAP (Cygwin)
8731 \end_layout
8732
8733 \begin_layout Standard
8734 First of all, make sure that yap is your default DVI viewer in the Windows
8735  environment, then launch it, choose its 
8736 \begin_inset Flex Noun
8737 status collapsed
8738
8739 \begin_layout Plain Layout
8740 View\SpecialChar menuseparator
8741 Options
8742 \end_layout
8743
8744 \end_inset
8745
8746  menu and select the 
8747 \begin_inset Quotes eld
8748 \end_inset
8749
8750 Inverse DVI Search
8751 \begin_inset Quotes erd
8752 \end_inset
8753
8754  tab.
8755  Click on the 
8756 \begin_inset Quotes eld
8757 \end_inset
8758
8759 New\SpecialChar ldots
8760
8761 \begin_inset Quotes erd
8762 \end_inset
8763
8764  button and, in the window that opens, enter 
8765 \begin_inset Quotes eld
8766 \end_inset
8767
8768 \SpecialChar LyX
8769  Editor
8770 \begin_inset Quotes erd
8771 \end_inset
8772
8773  (or any other name you like) in the 
8774 \begin_inset Quotes eld
8775 \end_inset
8776
8777 Name:
8778 \begin_inset Quotes erd
8779 \end_inset
8780
8781  field.
8782  Now click on the button labeled 
8783 \begin_inset Quotes eld
8784 \end_inset
8785
8786 \SpecialChar ldots
8787
8788 \begin_inset Quotes erd
8789 \end_inset
8790
8791  to open a file dialog and navigate to the directory containing the 
8792 \begin_inset Flex Code
8793 status collapsed
8794
8795 \begin_layout Plain Layout
8796 lyxeditor.exe
8797 \end_layout
8798
8799 \end_inset
8800
8801  program (which is installed by default on Cygwin along with the \SpecialChar LyX
8802  executable).
8803  Select 
8804 \begin_inset Flex Code
8805 status collapsed
8806
8807 \begin_layout Plain Layout
8808 lyxeditor.exe
8809 \end_layout
8810
8811 \end_inset
8812
8813  and then specify the program arguments as 
8814 \begin_inset Flex Code
8815 status collapsed
8816
8817 \begin_layout Plain Layout
8818 -g %f %l
8819 \end_layout
8820
8821 \end_inset
8822
8823 .
8824  In this way, you will be using the 
8825 \emph on
8826 lyxsocket
8827 \emph default
8828  for communicating with \SpecialChar LyX
8829 .
8830  If, for whatever reason, you want to use the 
8831 \emph on
8832 lyxpipe
8833 \emph default
8834 , omit the 
8835 \begin_inset Flex Code
8836 status collapsed
8837
8838 \begin_layout Plain Layout
8839 -g
8840 \end_layout
8841
8842 \end_inset
8843
8844  option and be sure to specify the \SpecialChar LyX
8845 Server pipe path in the \SpecialChar LyX
8846  preferences.
8847 \end_layout
8848
8849 \begin_layout Standard
8850 In yap, reverse search is triggered by double-click.
8851 \end_layout
8852
8853 \begin_layout Subsubsection*
8854 SumatraPDF (Cygwin)
8855 \end_layout
8856
8857 \begin_layout Standard
8858 In order to use SumatraPDF for inverse search, enter 
8859 \begin_inset Flex Code
8860 status collapsed
8861
8862 \begin_layout Plain Layout
8863 SumatraPDF -inverse-search "lyxeditor -g %f %l"
8864 \end_layout
8865
8866 \end_inset
8867
8868  in the viewer setting in 
8869 \begin_inset Flex Noun
8870 status collapsed
8871
8872 \begin_layout Plain Layout
8873 Preferences\SpecialChar menuseparator
8874 File Handling\SpecialChar menuseparator
8875 File formats\SpecialChar menuseparator
8876 PDF (pdflatex)
8877 \end_layout
8878
8879 \end_inset
8880
8881 .
8882  If SumatraPDF.exe is not in your command PATH, use its full posix path.
8883  The 
8884 \begin_inset Flex Code
8885 status collapsed
8886
8887 \begin_layout Plain Layout
8888 -g
8889 \end_layout
8890
8891 \end_inset
8892
8893  enables communication via the 
8894 \emph on
8895 lyxsocket
8896 \emph default
8897 .
8898  Again, omit the 
8899 \begin_inset Flex Code
8900 status collapsed
8901
8902 \begin_layout Plain Layout
8903 -g
8904 \end_layout
8905
8906 \end_inset
8907
8908  option if you want to use the 
8909 \emph on
8910 lyxpipe
8911 \emph default
8912 , and be sure to specify the \SpecialChar LyX
8913 Server pipe path in the \SpecialChar LyX
8914  preferences.
8915 \end_layout
8916
8917 \begin_layout Standard
8918 Reverse search is triggered by double-click.
8919 \end_layout
8920
8921 \begin_layout Section
8922 Forward search
8923 \end_layout
8924
8925 \begin_layout Standard
8926 Forward search is, as the name implies, in a sense the 
8927 \begin_inset Quotes eld
8928 \end_inset
8929
8930 opposite
8931 \begin_inset Quotes erd
8932 \end_inset
8933
8934  of reverse search.
8935  It allows you to let the viewer jump to a given position from within \SpecialChar LyX
8936 .
8937  If forward search is set up (as described in what follows), you can put
8938  the cursor anywhere in your \SpecialChar LyX
8939  document, and hit 
8940 \begin_inset Flex Noun
8941 status collapsed
8942
8943 \begin_layout Plain Layout
8944 Navigate\SpecialChar menuseparator
8945 Forward search
8946 \end_layout
8947
8948 \end_inset
8949
8950  (or select 
8951 \begin_inset Flex Noun
8952 status collapsed
8953
8954 \begin_layout Plain Layout
8955 Forward search
8956 \end_layout
8957
8958 \end_inset
8959
8960  in the context menu via right mouse click), and then the viewer will jump
8961  to that position as well.
8962  This implies, of course, that your viewer supports this function.
8963 \end_layout
8964
8965 \begin_layout Standard
8966 To make forward search possible, you first need to provide the generated
8967  output PDF/DVI file with additional information about the \SpecialChar TeX
8968  sources.
8969  This can be done via the methods described in the section 
8970 \begin_inset CommandInset ref
8971 LatexCommand ref
8972 reference "subsec:rev-search"
8973
8974 \end_inset
8975
8976 .
8977 \end_layout
8978
8979 \begin_layout Standard
8980 Additionally, you need to configure \SpecialChar LyX
8981  for using your viewers in 
8982 \begin_inset Flex Noun
8983 status collapsed
8984
8985 \begin_layout Plain Layout
8986 Tools\SpecialChar menuseparator
8987 Preferences\SpecialChar menuseparator
8988 Output\SpecialChar menuseparator
8989 General
8990 \end_layout
8991
8992 \end_inset
8993
8994 .
8995  We provide a range of tested configurations for some viewers, which you
8996  can select from the drop down list.
8997  If none of these configurations suits you, you have to find out and enter
8998  a suitable configuration yourself.
8999  The definition syntax uses the following placeholders:
9000 \end_layout
9001
9002 \begin_layout Itemize
9003 \noindent
9004 \begin_inset Flex Code
9005 status collapsed
9006
9007 \begin_layout Plain Layout
9008 $$n
9009 \end_layout
9010
9011 \end_inset
9012
9013 : row number
9014 \end_layout
9015
9016 \begin_layout Itemize
9017 \noindent
9018 \begin_inset Flex Code
9019 status collapsed
9020
9021 \begin_layout Plain Layout
9022 $$t
9023 \end_layout
9024
9025 \end_inset
9026
9027 : name of the (temporary) exported .tex file (without path)
9028 \end_layout
9029
9030 \begin_layout Itemize
9031 \noindent
9032 \begin_inset Flex Code
9033 status collapsed
9034
9035 \begin_layout Plain Layout
9036 $$f
9037 \end_layout
9038
9039 \end_inset
9040
9041 : name of the (temporary) exported .tex file (including path)
9042 \end_layout
9043
9044 \begin_layout Itemize
9045 \noindent
9046 \begin_inset Flex Code
9047 status collapsed
9048
9049 \begin_layout Plain Layout
9050 $$o
9051 \end_layout
9052
9053 \end_inset
9054
9055 : name of the exported output file (either dvi or pdf, depending on which
9056  one exists in the temporary directory)
9057 \end_layout
9058
9059 \begin_layout Standard
9060 Note that only some of the viewers provide full and usable forward search
9061  functionality out of the box, among them yap, xdvi, okular
9062 \begin_inset Foot
9063 status collapsed
9064
9065 \begin_layout Plain Layout
9066 You might want to set 
9067 \begin_inset Flex Code
9068 status collapsed
9069
9070 \begin_layout Plain Layout
9071 okular --unique
9072 \end_layout
9073
9074 \end_inset
9075
9076  in 
9077 \begin_inset Flex Noun
9078 status collapsed
9079
9080 \begin_layout Plain Layout
9081 Tools\SpecialChar menuseparator
9082 Preferences\SpecialChar menuseparator
9083 File Handling\SpecialChar menuseparator
9084 File
9085 \begin_inset space ~
9086 \end_inset
9087
9088 Formats
9089 \end_layout
9090
9091 \end_inset
9092
9093
9094 \end_layout
9095
9096 \end_inset
9097
9098 , qpdfview, and SumatraPDF
9099 \begin_inset Foot
9100 status collapsed
9101
9102 \begin_layout Plain Layout
9103 SumatraPDF can also use DDE commands through the external program CMCDDE
9104  — downloadable from 
9105 \begin_inset CommandInset href
9106 LatexCommand href
9107 target "http://www.istri.fr/spip/zip/CMCDDE.zip"
9108 literal "false"
9109
9110 \end_inset
9111
9112
9113 \end_layout
9114
9115 \end_inset
9116
9117 .
9118  Others, such as evince
9119 \begin_inset Foot
9120 status collapsed
9121
9122 \begin_layout Plain Layout
9123 Forward search with evince can be achieved by means of third party helper
9124  scripts.
9125  Please refer to 
9126 \begin_inset CommandInset href
9127 LatexCommand href
9128 target "https://wiki.lyx.org/LyX/SyncTeX"
9129 literal "false"
9130
9131 \end_inset
9132
9133  for details.
9134 \end_layout
9135
9136 \end_inset
9137
9138 , require some extra tools in order to use forward search.
9139  While many of the widespread PDF viewers (most notably Adobe Reader) do
9140  not support forward search at all, some other viewers – e.
9141 \begin_inset space \thinspace{}
9142 \end_inset
9143
9144 g.
9145  xpdf – allow at least to reload the document and jump to a specific page
9146  of the file, so you can at least navigate 
9147 \begin_inset Quotes eld
9148 \end_inset
9149
9150 near
9151 \begin_inset Quotes erd
9152 \end_inset
9153
9154 .
9155  This latter functionality is provided by an external call of synctex (see
9156  the predefined example configurations).
9157  
9158 \end_layout
9159
9160 \begin_layout Standard
9161 Forward search works both with DVI and PDF output.
9162  \SpecialChar LyX
9163  simply checks which preview format you have used before (i.
9164 \begin_inset space \thinspace{}
9165 \end_inset
9166
9167 e., which format is already there in the temporary directory) and chooses
9168  the appropriate configuration for the respective format.
9169 \end_layout
9170
9171 \begin_layout Chapter
9172 Special Document Classes
9173 \end_layout
9174
9175 \begin_layout Section
9176
9177 \change_deleted 564990737 1669742044
9178 A&A Paper
9179 \end_layout
9180
9181 \begin_layout Standard
9182
9183 \change_deleted 564990737 1669742044
9184 by 
9185 \noun on
9186 Peter Sütterlin
9187 \end_layout
9188
9189 \begin_layout Subsection
9190
9191 \change_deleted 564990737 1669742044
9192 Introduction
9193 \end_layout
9194
9195 \begin_layout Standard
9196
9197 \change_deleted 564990737 1669742044
9198 This section describes how \SpecialChar LyX
9199  can be used to write articles for submission
9200  to the scientific journal 
9201 \emph on
9202 Astronomy and Astrophysics
9203 \emph default
9204  (
9205 \begin_inset Flex URL
9206 status collapsed
9207
9208 \begin_layout Plain Layout
9209
9210 https://www.aanda.org/
9211 \end_layout
9212
9213 \end_inset
9214
9215 ) using Version 5.01 of the document class 
9216 \family typewriter
9217 aa.cls
9218 \family default
9219 .
9220  This package can be downloaded from the ftp site
9221 \end_layout
9222
9223 \begin_layout Standard
9224
9225 \change_deleted 564990737 1669742044
9226 \begin_inset VSpace medskip
9227 \end_inset
9228
9229
9230 \end_layout
9231
9232 \begin_layout Standard
9233 \align center
9234
9235 \change_deleted 564990737 1669742044
9236 \begin_inset Flex URL
9237 status collapsed
9238
9239 \begin_layout Plain Layout
9240
9241 ftp://ftp.edpsciences.org/pub/aa/readme.html
9242 \end_layout
9243
9244 \end_inset
9245
9246
9247 \end_layout
9248
9249 \begin_layout Standard
9250
9251 \change_deleted 564990737 1669742044
9252 \begin_inset VSpace medskip
9253 \end_inset
9254
9255
9256 \end_layout
9257
9258 \begin_layout Standard
9259
9260 \change_deleted 564990737 1669742044
9261 A manual comes together with that package, and this text is not meant to
9262  replace the original manual but is merely a short guide in how to realize
9263  the correct form of your paper.
9264  
9265 \end_layout
9266
9267 \begin_layout Standard
9268
9269 \change_deleted 564990737 1669742044
9270 Please note that the publisher of the journal was changed from Springer
9271  to EDP Sciences starting January 1, 2001.
9272  That change involved also some slight changes to the style files, namely
9273  the removal of the thesaurus command.
9274  The \SpecialChar LyX
9275  class aa supports the newest version of these style files, V 5.01.
9276  If you have an older version installed, please upgrade.
9277  For compatibility, the old (version 4) layout has been kept as 
9278 \family sans
9279 article (A&A V4)
9280 \family default
9281 .
9282  Please refer to the comments in 
9283 \family typewriter
9284 \SpecialChar LyX
9285 Dir/layouts/aapaper.layout
9286 \family default
9287 .
9288 \end_layout
9289
9290 \begin_layout Subsection
9291
9292 \change_deleted 564990737 1669742044
9293 Getting started
9294 \end_layout
9295
9296 \begin_layout Standard
9297
9298 \change_deleted 564990737 1669742044
9299 It is recommended you start from the example template distributed with \SpecialChar LyX
9300 .
9301  If you are not using a template, note the following settings:
9302 \end_layout
9303
9304 \begin_layout Itemize
9305
9306 \change_deleted 564990737 1669742044
9307 Select 
9308 \family sans
9309 article (A&A)
9310 \family default
9311  in the 
9312 \family sans
9313 Document\SpecialChar menuseparator
9314 Settings
9315 \family default
9316  dialog (OK, that one was obvious).
9317 \end_layout
9318
9319 \begin_layout Itemize
9320
9321 \change_deleted 564990737 1669742044
9322 Don't change the option 
9323 \family sans
9324 Page
9325 \begin_inset space ~
9326 \end_inset
9327
9328 style
9329 \family default
9330 : Leave it set to 
9331 \family sans
9332 default
9333 \family default
9334 .
9335  The whole layout is done by the macros, you shouldn't change anything.
9336 \end_layout
9337
9338 \begin_layout Subsection
9339
9340 \change_deleted 564990737 1669742044
9341 The header block
9342 \end_layout
9343
9344 \begin_layout Standard
9345
9346 \change_deleted 564990737 1669742044
9347 First thing to enter is the header information.
9348  It consists of seven entries, of which some are optional.
9349  They are
9350 \end_layout
9351
9352 \begin_layout Itemize
9353
9354 \change_deleted 564990737 1669742044
9355
9356 \family sans
9357 Title
9358 \family default
9359 : [required] 
9360 \end_layout
9361
9362 \begin_layout Itemize
9363
9364 \change_deleted 564990737 1669742044
9365
9366 \family sans
9367 Subtitle
9368 \family default
9369 : [optional] 
9370 \end_layout
9371
9372 \begin_layout Itemize
9373
9374 \change_deleted 564990737 1669742044
9375
9376 \family sans
9377 Author
9378 \family default
9379 : [required]
9380 \end_layout
9381
9382 \begin_layout Itemize
9383
9384 \change_deleted 564990737 1669742044
9385
9386 \family sans
9387 Address
9388 \family default
9389 : [required]
9390 \end_layout
9391
9392 \begin_layout Itemize
9393
9394 \change_deleted 564990737 1669742044
9395
9396 \family sans
9397 Offprints
9398 \family default
9399 : [optional] if more than one author: whom to contact for offprint requests.
9400 \end_layout
9401
9402 \begin_layout Itemize
9403
9404 \change_deleted 564990737 1669742044
9405
9406 \family sans
9407 Mail
9408 \family default
9409 : [optional] mail address for contacts.
9410 \end_layout
9411
9412 \begin_layout Itemize
9413
9414 \change_deleted 564990737 1669742044
9415
9416 \family sans
9417 Date
9418 \family default
9419 : [required].
9420  Suggested format is 
9421 \family typewriter
9422 Received: <date>; Accepted <date> 
9423 \end_layout
9424
9425 \begin_layout Standard
9426
9427 \change_deleted 564990737 1669742044
9428 There is no need to issue the 
9429 \family typewriter
9430
9431 \backslash
9432 maketitle
9433 \family default
9434  command, this is done automatically by \SpecialChar LyX
9435  when the header is finished.
9436  Although the order of the single header entries doesn't matter it is advised
9437  to keep the above sequence, just to get the best optics and meets the layout
9438  of the real document.
9439 \end_layout
9440
9441 \begin_layout Standard
9442
9443 \change_deleted 564990737 1669742044
9444 If you want to place footnotes in the header block, e.
9445 \begin_inset space \thinspace{}
9446 \end_inset
9447
9448 g.
9449 \begin_inset space \space{}
9450 \end_inset
9451
9452 to state your present address, just use the standard footnote via the menu
9453  
9454 \family sans
9455 Insert\SpecialChar menuseparator
9456 Footnote.
9457
9458 \family default
9459  \SpecialChar LyX
9460  will automagically use the term 
9461 \family typewriter
9462
9463 \backslash
9464 thanks{}
9465 \family default
9466  in that case.
9467 \end_layout
9468
9469 \begin_layout Standard
9470
9471 \change_deleted 564990737 1669742044
9472 Under 
9473 \family sans
9474 Edit\SpecialChar menuseparator
9475 Text Style
9476 \family default
9477 , you'll find two insets which are relevant for the titling:
9478 \end_layout
9479
9480 \begin_layout Itemize
9481
9482 \change_deleted 564990737 1669742044
9483
9484 \family sans
9485 Institute
9486 \family typewriter
9487  
9488 \family default
9489 to mark corresponding author\SpecialChar breakableslash
9490 institute pairs.
9491  The institutes are numbered sequentially as they appear in the 
9492 \family sans
9493 Address
9494 \family default
9495  field, so you have to put a marker to each author.
9496 \end_layout
9497
9498 \begin_layout Itemize
9499
9500 \change_deleted 564990737 1669742044
9501
9502 \family sans
9503 Email
9504 \family default
9505  to supply an email address for fast contact.
9506 \end_layout
9507
9508 \begin_layout Standard
9509
9510 \change_deleted 564990737 1669742044
9511 In addition to these topics, the macros use one additional \SpecialChar LaTeX
9512  command that
9513  has no counterpart in \SpecialChar LyX
9514 :
9515 \end_layout
9516
9517 \begin_layout Itemize
9518
9519 \change_deleted 564990737 1669742044
9520
9521 \family typewriter
9522
9523 \backslash
9524 and
9525 \family default
9526  to separate different names for more than one author and institute, respectivel
9527 y.
9528 \end_layout
9529
9530 \begin_layout Standard
9531
9532 \change_deleted 564990737 1669742044
9533 The appropriate command has to be entered in \SpecialChar LyX
9534  and marked as \SpecialChar LaTeX
9535  code.
9536  See the examples.
9537  
9538 \end_layout
9539
9540 \begin_layout Subsection
9541
9542 \change_deleted 564990737 1669742044
9543 The abstract
9544 \end_layout
9545
9546 \begin_layout Standard
9547
9548 \change_deleted 564990737 1669742044
9549 The abstract should immediately follow the header block.
9550  With version 5 the abstract environment was changed to a command, and there
9551  is now a restriction to only one paragraph.
9552  In addition, it should contain an entry with the keywords.
9553  This is done via the paragraph style 
9554 \family sans
9555 Keywords
9556 \family default
9557 .
9558  Refer to the example paper.
9559 \end_layout
9560
9561 \begin_layout Subsection
9562
9563 \change_deleted 564990737 1669742044
9564 Supported environments
9565 \end_layout
9566
9567 \begin_layout Standard
9568
9569 \change_deleted 564990737 1669742044
9570 The A&A paper layout supports the following environments for structuring
9571  your text:
9572 \end_layout
9573
9574 \begin_layout Itemize
9575
9576 \change_deleted 564990737 1669742044
9577
9578 \family sans
9579 Standard
9580 \end_layout
9581
9582 \begin_layout Itemize
9583
9584 \change_deleted 564990737 1669742044
9585
9586 \family sans
9587 Section
9588 \end_layout
9589
9590 \begin_layout Itemize
9591
9592 \change_deleted 564990737 1669742044
9593
9594 \family sans
9595 Subsection
9596 \end_layout
9597
9598 \begin_layout Itemize
9599
9600 \change_deleted 564990737 1669742044
9601
9602 \family sans
9603 Subsubsection
9604 \end_layout
9605
9606 \begin_layout Itemize
9607
9608 \change_deleted 564990737 1669742044
9609
9610 \family sans
9611 Itemize
9612 \end_layout
9613
9614 \begin_layout Itemize
9615
9616 \change_deleted 564990737 1669742044
9617
9618 \family sans
9619 Enumerate
9620 \end_layout
9621
9622 \begin_layout Itemize
9623
9624 \change_deleted 564990737 1669742044
9625
9626 \family sans
9627 Description
9628 \end_layout
9629
9630 \begin_layout Itemize
9631
9632 \change_deleted 564990737 1669742044
9633
9634 \family sans
9635 Caption
9636 \end_layout
9637
9638 \begin_layout Itemize
9639
9640 \change_deleted 564990737 1669742044
9641
9642 \family sans
9643 Abstract
9644 \end_layout
9645
9646 \begin_layout Itemize
9647
9648 \change_deleted 564990737 1669742044
9649
9650 \family sans
9651 Acknowledgment
9652 \end_layout
9653
9654 \begin_layout Itemize
9655
9656 \change_deleted 564990737 1669742044
9657
9658 \family sans
9659 Bibliography
9660 \end_layout
9661
9662 \begin_layout Itemize
9663
9664 \change_deleted 564990737 1669742044
9665
9666 \family sans
9667 \SpecialChar LaTeX
9668
9669 \end_layout
9670
9671 \begin_layout Subsection
9672
9673 \change_deleted 564990737 1669742044
9674 Commands not supported by \SpecialChar LyX
9675
9676 \end_layout
9677
9678 \begin_layout Standard
9679
9680 \change_deleted 564990737 1669742044
9681 Some commands are not yet supported by the 
9682 \family sans
9683 paper (A&A)
9684 \family default
9685  layout for \SpecialChar LyX
9686 .
9687  Some have already been mentioned.
9688  For the sake of completeness, they are listed all together here:
9689 \end_layout
9690
9691 \begin_layout Itemize
9692
9693 \change_deleted 564990737 1669742044
9694
9695 \family typewriter
9696
9697 \backslash
9698 and
9699 \end_layout
9700
9701 \begin_layout Itemize
9702
9703 \change_deleted 564990737 1669742044
9704
9705 \family typewriter
9706
9707 \backslash
9708 authorrunning
9709 \end_layout
9710
9711 \begin_layout Itemize
9712
9713 \change_deleted 564990737 1669742044
9714
9715 \family typewriter
9716
9717 \backslash
9718 object{}
9719 \end_layout
9720
9721 \begin_layout Itemize
9722
9723 \change_deleted 564990737 1669742044
9724
9725 \family typewriter
9726
9727 \backslash
9728 titlerunning{}
9729 \end_layout
9730
9731 \begin_layout Standard
9732
9733 \change_deleted 564990737 1669742044
9734 If you want to use any of these commands, you have to enter them yourself.
9735  
9736 \series bold
9737 Do not forget to mark them as \SpecialChar LaTeX
9738  code!
9739 \end_layout
9740
9741 \begin_layout Subsection
9742
9743 \change_deleted 564990737 1669742044
9744 Figure and Table Floats
9745 \end_layout
9746
9747 \begin_layout Standard
9748
9749 \change_deleted 564990737 1669742044
9750 \SpecialChar LyX
9751  provides support for the necessary float environments 
9752 \family sans
9753 figure, figure*, table
9754 \family default
9755  and 
9756 \family sans
9757 table*
9758 \family default
9759 , therefore we won't tell much about it here.
9760  Refer to the 
9761 \emph on
9762 User's
9763 \begin_inset space ~
9764 \end_inset
9765
9766 Guide
9767 \emph default
9768 .
9769  Just remember that tables should be left-aligned.
9770  For that, select the table and change the alignment in 
9771 \family sans
9772 Edit\SpecialChar menuseparator
9773 Paragraph
9774 \begin_inset space ~
9775 \end_inset
9776
9777 Settings.
9778 \end_layout
9779
9780 \begin_layout Standard
9781
9782 \change_deleted 564990737 1669742044
9783 There is only one special thing: the figures with caption besides the figure.
9784  To create such a figure, you have to do the following:
9785 \end_layout
9786
9787 \begin_layout Enumerate
9788
9789 \change_deleted 564990737 1669742044
9790 Create a wide figure float: 
9791 \family sans
9792 Insert\SpecialChar menuseparator
9793 Float\SpecialChar menuseparator
9794 Figure
9795 \family default
9796 , then right click in the figure and select 
9797 \family sans
9798 Span
9799 \begin_inset space ~
9800 \end_inset
9801
9802 columns
9803 \family default
9804 .
9805 \end_layout
9806
9807 \begin_layout Enumerate
9808
9809 \change_deleted 564990737 1669742044
9810 Enter your caption text.
9811 \end_layout
9812
9813 \begin_layout Enumerate
9814
9815 \change_deleted 564990737 1669742044
9816 Press 
9817 \family sans
9818 Return
9819 \family default
9820  to move the cursor above the caption.
9821 \end_layout
9822
9823 \begin_layout Enumerate
9824
9825 \change_deleted 564990737 1669742044
9826 Insert your figure
9827 \end_layout
9828
9829 \begin_layout Enumerate
9830
9831 \change_deleted 564990737 1669742044
9832 Position the cursor behind the figure and insert a horizontal fill: 
9833 \family sans
9834 Insert\SpecialChar menuseparator
9835 Special
9836 \begin_inset space ~
9837 \end_inset
9838
9839 Character\SpecialChar menuseparator
9840 Horizontal
9841 \begin_inset space ~
9842 \end_inset
9843
9844 Fill
9845 \family default
9846 .
9847 \end_layout
9848
9849 \begin_layout Enumerate
9850
9851 \change_deleted 564990737 1669742044
9852 Switch to \SpecialChar LaTeX
9853  mode: 
9854 \family sans
9855 M-c
9856 \begin_inset space ~
9857 \end_inset
9858
9859 t
9860 \family default
9861 .
9862 \end_layout
9863
9864 \begin_layout Enumerate
9865
9866 \change_deleted 564990737 1669742044
9867 Enter 
9868 \family typewriter
9869
9870 \backslash
9871 parbox[b]{55mm}{
9872 \family default
9873 .
9874  
9875 \series bold
9876 Do not close the brace!
9877 \end_layout
9878
9879 \begin_layout Enumerate
9880
9881 \change_deleted 564990737 1669742044
9882 Position the cursor behind the caption text, switch to \SpecialChar LaTeX
9883  mode and insert
9884  the closing brace: 
9885 \family sans
9886 M-c
9887 \begin_inset space ~
9888 \end_inset
9889
9890 t
9891 \family default
9892  
9893 \family typewriter
9894 }
9895 \family default
9896 .
9897 \end_layout
9898
9899 \begin_layout Standard
9900
9901 \change_deleted 564990737 1669742044
9902 Also, refer to the figures in the example paper.
9903 \end_layout
9904
9905 \begin_layout Subsection
9906
9907 \change_deleted 564990737 1669742044
9908 Referee layout
9909 \end_layout
9910
9911 \begin_layout Standard
9912
9913 \change_deleted 564990737 1669742044
9914 For submission, the paper has to be formated in a special double-spacing
9915  layout.
9916  For this purpose, you have to give the option 
9917 \family typewriter
9918 referee
9919 \family default
9920  to the document class.
9921  This must be done using the custom class options field in the 
9922 \family sans
9923 Document\SpecialChar menuseparator
9924 Settings
9925 \family default
9926  dialog.
9927  Just enter the string 
9928 \family typewriter
9929 referee
9930 \family default
9931  there.
9932 \end_layout
9933
9934 \begin_layout Subsection
9935
9936 \change_deleted 564990737 1669742044
9937 The example paper
9938 \end_layout
9939
9940 \begin_layout Standard
9941
9942 \change_deleted 564990737 1669742044
9943 The 
9944 \family sans
9945 Examples
9946 \family default
9947  directory contains an example paper written with \SpecialChar LyX
9948 .
9949  It is the example paper from the original macro package, translated to
9950  \SpecialChar LyX
9951 .
9952  Use it for inspiration, and compare the original \SpecialChar LaTeX
9953  code with \SpecialChar LyX
9954  way of writing.
9955 \end_layout
9956
9957 \begin_layout Section
9958 AAS\SpecialChar TeX
9959
9960 \end_layout
9961
9962 \begin_layout Standard
9963 by 
9964 \noun on
9965 Mike Ressler
9966 \end_layout
9967
9968 \begin_layout Subsection
9969 Introduction
9970 \end_layout
9971
9972 \begin_layout Standard
9973 AAS\SpecialChar TeX
9974  is a set of macros produced by the American Astronomical Society to
9975  facilitate electronic manuscript submission to the three journals they
9976  publish: the Astrophysical Journal (including the Letters and Supplement),
9977  the Astronomical Journal, and the Publications of the Astronomical Society
9978  of the Pacific.
9979  \SpecialChar LyX
9980  has proven to be an excellent tool for generating these documents, especially
9981  given its equation, citation, and figure handling capabilities.
9982  \SpecialChar LyX
9983  requires version 5.0 (or higher) of these macros; preferably 6.0, which
9984  is the version described here, or higher.
9985  Versions prior to 5.0 are intended for use with \SpecialChar LaTeX
9986 2.09 and are fundamentally
9987  incompatible with \SpecialChar LyX
9988 .
9989  The AAS\SpecialChar TeX
9990  package may be downloaded from the AAS\SpecialChar TeX
9991  Web site
9992 \end_layout
9993
9994 \begin_layout Standard
9995 \begin_inset VSpace medskip
9996 \end_inset
9997
9998
9999 \end_layout
10000
10001 \begin_layout Standard
10002 \align center
10003 \begin_inset Flex URL
10004 status collapsed
10005
10006 \begin_layout Plain Layout
10007
10008 https://aas.org/aastex/aastex-downloads
10009 \end_layout
10010
10011 \end_inset
10012
10013
10014 \end_layout
10015
10016 \begin_layout Standard
10017 \begin_inset VSpace medskip
10018 \end_inset
10019
10020
10021 \end_layout
10022
10023 \begin_layout Standard
10024 A complete user guide is contained in that package and you should familiarize
10025  yourself with it thoroughly before embarking on writing a paper in \SpecialChar LyX
10026 .
10027  \SpecialChar LyX
10028  will not reduce the need to figure out all the AAS\SpecialChar TeX
10029  commands, it will only
10030  reduce the drudgery of typing everything in.
10031  It is your responsibility to ensure that the final exported \SpecialChar LaTeX
10032  document conforms
10033  completely to the requirements of the journal to which you are submitting
10034  your paper.
10035 \end_layout
10036
10037 \begin_layout Subsection
10038 Starting a New Paper
10039 \end_layout
10040
10041 \begin_layout Standard
10042 I strongly suggest that you start with the AAS\SpecialChar TeX
10043  template file.
10044  Click on 
10045 \family sans
10046 File\SpecialChar menuseparator
10047 New from
10048 \family default
10049  
10050 \family sans
10051 Template
10052 \family default
10053 , enter the new file name, then choose the 
10054 \family typewriter
10055 aastex6.lyx
10056 \family default
10057  template.
10058  This will show the most common fields found in a manuscript.
10059  Simply overwrite the existing text (including the brackets, 
10060 \family typewriter
10061 <>
10062 \family default
10063 ) with the correct information.
10064  Many of the AAS\SpecialChar TeX
10065  commands and environments can be implemented directly in
10066  \SpecialChar LyX
10067 , but some cannot.
10068  For commands such as these, the \SpecialChar LaTeX
10069  code must be entered directly and marked
10070  as such.
10071  Such commands are referred to as \SpecialChar TeX
10072  code, or Evil Red Text.
10073  I tried to minimize the amount of \SpecialChar TeX
10074  code needed in an AAS\SpecialChar TeX
10075  document.
10076 \end_layout
10077
10078 \begin_layout Subsection
10079 Finishing Your Paper
10080 \end_layout
10081
10082 \begin_layout Standard
10083 When the paper is finished to your satisfaction and previews/prints correctly,
10084  there are a few 
10085 \begin_inset Quotes eld
10086 \end_inset
10087
10088 postprocessing
10089 \begin_inset Quotes erd
10090 \end_inset
10091
10092  actions which need to be done before you submit it to the journals.
10093  
10094 \end_layout
10095
10096 \begin_layout Enumerate
10097 Export your paper as a \SpecialChar LaTeX
10098  file (
10099 \family sans
10100 File\SpecialChar menuseparator
10101 Export\SpecialChar menuseparator
10102 \SpecialChar LaTeX
10103
10104 \family default
10105 ).
10106  
10107 \end_layout
10108
10109 \begin_layout Enumerate
10110 Edit the resulting 
10111 \family typewriter
10112 .tex
10113 \family default
10114  file with your favorite text editor
10115 \end_layout
10116
10117 \begin_deeper
10118 \begin_layout Enumerate
10119 remove the comment lines before the 
10120 \family typewriter
10121
10122 \backslash
10123 documentclass
10124 \family default
10125  command
10126 \end_layout
10127
10128 \begin_layout Enumerate
10129 remove the 
10130 \family typewriter
10131
10132 \backslash
10133 usepackage...{fontenc}
10134 \family default
10135  line if it appears (usually just after 
10136 \family typewriter
10137
10138 \backslash
10139 documentclass
10140 \family default
10141 }; also remove the 
10142 \family typewriter
10143
10144 \backslash
10145 secnumdepth
10146 \family default
10147  line if it appears.
10148 \end_layout
10149
10150 \begin_layout Enumerate
10151 remove everything between (and including) the 
10152 \family typewriter
10153
10154 \backslash
10155 makeatletter
10156 \family default
10157  and 
10158 \family typewriter
10159
10160 \backslash
10161 makeatother
10162 \family default
10163  commands, except for any commands you specifically put into the \SpecialChar LaTeX
10164  preamble
10165  (which should appear immediately after the 
10166 \begin_inset Quotes eld
10167 \end_inset
10168
10169 User specified \SpecialChar LaTeX
10170  commands
10171 \begin_inset Quotes erd
10172 \end_inset
10173
10174  comment in the 
10175 \family typewriter
10176 .tex
10177 \family default
10178  file).
10179 \end_layout
10180
10181 \end_deeper
10182 \begin_layout Enumerate
10183 Run the resulting file through \SpecialChar LaTeX
10184  to make sure it still processes correctly.
10185 \end_layout
10186
10187 \begin_layout Enumerate
10188 Reread the journal requirements to make sure your filenames and formats
10189  are correct.
10190 \end_layout
10191
10192 \begin_layout Enumerate
10193 Submit it.
10194 \end_layout
10195
10196 \begin_layout Subsection
10197 Comments On Specific Commands
10198 \end_layout
10199
10200 \begin_layout Standard
10201 I will not describe the detailed usage of the individual AAS\SpecialChar TeX
10202  commands: the
10203  AAS\SpecialChar TeX
10204  User Guide (
10205 \family typewriter
10206 aasguide.tex
10207 \family default
10208 ) gives a good description of each.
10209  Thus it's probably easiest for me to go down the list as found in the guide
10210  and offer comments where necessary.
10211  So let's begin \SpecialChar ldots
10212
10213 \end_layout
10214
10215 \begin_layout Subsubsection
10216 Things that work as expected
10217 \end_layout
10218
10219 \begin_layout Standard
10220 Because they work as you might expect, I simply list them and the section
10221  they are found in: 
10222 \family typewriter
10223
10224 \backslash
10225 documentclass
10226 \family default
10227  (2.1.1), 
10228 \family typewriter
10229
10230 \backslash
10231 begin{document}
10232 \family default
10233  (2.2), 
10234 \family typewriter
10235
10236 \backslash
10237 title
10238 \family default
10239  (2.3), 
10240 \family typewriter
10241
10242 \backslash
10243 author
10244 \family default
10245  (2.3), 
10246 \family typewriter
10247
10248 \backslash
10249 affil
10250 \family default
10251  (2.3), 
10252 \family typewriter
10253
10254 \backslash
10255 abstract
10256 \family default
10257  (2.4), 
10258 \family typewriter
10259
10260 \backslash
10261 keywords
10262 \family default
10263  (2.5), 
10264 \family typewriter
10265
10266 \backslash
10267 section
10268 \family default
10269  (2.7), 
10270 \family typewriter
10271
10272 \backslash
10273 subsection
10274 \family default
10275  (2.7), 
10276 \family typewriter
10277
10278 \backslash
10279 subsubsection
10280 \family default
10281  (2.7), 
10282 \family typewriter
10283
10284 \backslash
10285 paragraph
10286 \family default
10287  (2.7), 
10288 \family typewriter
10289
10290 \backslash
10291 facility
10292 \family default
10293  (2.10), 
10294 \family typewriter
10295
10296 \backslash
10297 begin{displaymath}
10298 \family default
10299  (2.12), 
10300 \family typewriter
10301
10302 \backslash
10303 begin{equation}
10304 \family default
10305  (2.12), 
10306 \family typewriter
10307
10308 \backslash
10309 begin{eqnarray}
10310 \family default
10311  (2.12), 
10312 \family typewriter
10313
10314 \backslash
10315 begin{mathletters}
10316 \family default
10317  (2.12), 
10318 \family typewriter
10319
10320 \backslash
10321 begin{thebibliography}
10322 \family default
10323  (2.13.1), 
10324 \family typewriter
10325
10326 \backslash
10327 bibitem
10328 \family default
10329  (2.13.2), all the cite commands and their variations (2.13.2), the generic
10330  graphicx figure commands (2.14.1), 
10331 \family typewriter
10332
10333 \backslash
10334 begin{table}
10335 \family default
10336  (2.15.4), 
10337 \family typewriter
10338
10339 \backslash
10340 begin{tabular}
10341 \family default
10342  (2.15.4), 
10343 \family typewriter
10344
10345 \backslash
10346 caption
10347 \family default
10348  (2.15.4), 
10349 \family typewriter
10350
10351 \backslash
10352 label
10353 \family default
10354  (2.15.4, amongst other places), 
10355 \family typewriter
10356
10357 \backslash
10358 tablerefs
10359 \family default
10360  (2.15.5), 
10361 \family typewriter
10362
10363 \backslash
10364 tablecomments
10365 \family default
10366  (2.15.5), 
10367 \family typewriter
10368
10369 \backslash
10370 url
10371 \family default
10372  (2.17.4), 
10373 \family typewriter
10374
10375 \backslash
10376 end{document}
10377 \family default
10378  (2.18).
10379 \end_layout
10380
10381 \begin_layout Standard
10382 The following style options also work correctly: 
10383 \family typewriter
10384 longabstract
10385 \family default
10386  (2.4), 
10387 \family typewriter
10388 preprint
10389 \family default
10390  (3.2.1), 
10391 \family typewriter
10392 preprint2
10393 \family default
10394  (3.2.2), 
10395 \family typewriter
10396 eqsecnum
10397 \family default
10398  (3.3), 
10399 \family typewriter
10400 flushrt
10401 \family default
10402  (3.4).
10403  Simply put them in the 
10404 \family sans
10405 Options
10406 \family default
10407  box in 
10408 \family sans
10409 Layout\SpecialChar menuseparator
10410 Document
10411 \family default
10412 .
10413 \end_layout
10414
10415 \begin_layout Subsubsection
10416 Things that work, but require more comment
10417 \end_layout
10418
10419 \begin_layout Standard
10420 The following items work, but require a little more discussion:
10421 \end_layout
10422
10423 \begin_layout Itemize
10424 These items are reserved for use by the journal editors, but you can put
10425  them into the \SpecialChar LaTeX
10426  preamble if you feel compelled to do so: 
10427 \family typewriter
10428
10429 \backslash
10430 received
10431 \family default
10432
10433 \family typewriter
10434
10435 \backslash
10436 revised
10437 \family default
10438
10439 \family typewriter
10440
10441 \backslash
10442 accepted
10443 \family default
10444
10445 \family typewriter
10446
10447 \backslash
10448 ccc
10449 \family default
10450
10451 \family typewriter
10452
10453 \backslash
10454 cpright
10455 \family default
10456  (all from 2.1.3)
10457 \end_layout
10458
10459 \begin_layout Itemize
10460 These items may be placed in the \SpecialChar LaTeX
10461  preamble, and are included as blanks in
10462  the template file: 
10463 \family typewriter
10464
10465 \backslash
10466 slugcomment
10467 \family default
10468  (2.1.4), 
10469 \family typewriter
10470
10471 \backslash
10472 shorttitle
10473 \family default
10474  (2.1.5), 
10475 \family typewriter
10476
10477 \backslash
10478 shortauthors
10479 \family default
10480  (2.1.5)
10481 \end_layout
10482
10483 \begin_layout Itemize
10484
10485 \family typewriter
10486
10487 \backslash
10488 email
10489 \family default
10490  (2.3) – can only be used 
10491 \begin_inset Quotes eld
10492 \end_inset
10493
10494 standalone
10495 \begin_inset Quotes erd
10496 \end_inset
10497
10498 , not in the middle of a paragraph.
10499  Use \SpecialChar TeX
10500  code if you need to embed it.
10501 \end_layout
10502
10503 \begin_layout Itemize
10504
10505 \family typewriter
10506
10507 \backslash
10508 and
10509 \family default
10510  (2.3) – will have extra {} after it.
10511  This should not cause an error.
10512 \end_layout
10513
10514 \begin_layout Itemize
10515
10516 \family typewriter
10517
10518 \backslash
10519 notetoeditor
10520 \family default
10521  (2.6) – can only be used 
10522 \begin_inset Quotes eld
10523 \end_inset
10524
10525 standalone
10526 \begin_inset Quotes erd
10527 \end_inset
10528
10529 , not in the middle of a paragraph.
10530  Use \SpecialChar TeX
10531  code if you need to embed it.
10532 \end_layout
10533
10534 \begin_layout Itemize
10535
10536 \family typewriter
10537
10538 \backslash
10539 placetable
10540 \family default
10541  (2.8) – can't insert a cross-reference tag, you must type the tag name by
10542  hand
10543 \end_layout
10544
10545 \begin_layout Itemize
10546
10547 \family typewriter
10548
10549 \backslash
10550 placefigure
10551 \family default
10552  (2.8) – same as for 
10553 \family typewriter
10554
10555 \backslash
10556 placetable
10557 \end_layout
10558
10559 \begin_layout Itemize
10560
10561 \family typewriter
10562
10563 \backslash
10564 acknowledgements
10565 \family default
10566  (2.9) – will have extra {} after it.
10567  This should not cause an error.
10568 \end_layout
10569
10570 \begin_layout Itemize
10571
10572 \family typewriter
10573
10574 \backslash
10575 appendix
10576 \family default
10577  (2.11) – will have extra {} after it.
10578  This should not cause an error.
10579 \end_layout
10580
10581 \begin_layout Itemize
10582
10583 \family typewriter
10584
10585 \backslash
10586 figcaption
10587 \family default
10588  (2.14.2) – you can insert an optional filename argument by placing the cursor
10589  at the beginning of the text and selecting 
10590 \family sans
10591 Insert\SpecialChar menuseparator
10592 Short Title
10593 \family default
10594 .
10595  
10596 \begin_inset Quotes eld
10597 \end_inset
10598
10599 Short Title
10600 \begin_inset Quotes erd
10601 \end_inset
10602
10603  inserts an optional argument of the type needed by 
10604 \family typewriter
10605
10606 \backslash
10607 figcaption
10608 \family default
10609 .
10610  Hopefully it will be renamed someday.
10611 \end_layout
10612
10613 \begin_layout Itemize
10614
10615 \family typewriter
10616
10617 \backslash
10618 objectname
10619 \family default
10620  (2.17.1) – same as 
10621 \family typewriter
10622
10623 \backslash
10624 figcaption
10625 \family default
10626  for the catalog ID optional parameter
10627 \end_layout
10628
10629 \begin_layout Itemize
10630
10631 \family typewriter
10632
10633 \backslash
10634 dataset
10635 \family default
10636  (2.17.1) – same as 
10637 \family typewriter
10638
10639 \backslash
10640 figcaption
10641 \family default
10642  for the catalog ID optional parameter
10643 \end_layout
10644
10645 \begin_layout Subsubsection
10646 Things not implemented, use \SpecialChar TeX
10647  code
10648 \end_layout
10649
10650 \begin_layout Standard
10651
10652 \family typewriter
10653
10654 \backslash
10655 eqnum
10656 \family default
10657  (2.12), 
10658 \family typewriter
10659
10660 \backslash
10661 setcounter{equation}
10662 \family default
10663  (2.12), Journal name abbreviations (2.13.4), 
10664 \family typewriter
10665
10666 \backslash
10667 figurenum
10668 \family default
10669  (2.14.1), 
10670 \family typewriter
10671
10672 \backslash
10673 epsscale
10674 \family default
10675  (2.14.1), 
10676 \family typewriter
10677
10678 \backslash
10679 plotone
10680 \family default
10681  (2.14.1), 
10682 \family typewriter
10683
10684 \backslash
10685 plottwo
10686 \family default
10687  (2.14.1), 
10688 \family typewriter
10689
10690 \backslash
10691 tablenum
10692 \family default
10693  (2.15.4), 
10694 \family typewriter
10695
10696 \backslash
10697 tableline
10698 \family default
10699  (2.15.4, insert it as the first element in the lefthand cell after where
10700  you want it.
10701  Don't use any of \SpecialChar LyX
10702 's rules in the table), 
10703 \family typewriter
10704
10705 \backslash
10706 tablenotemark
10707 \family default
10708  (2.15.5), 
10709 \family typewriter
10710
10711 \backslash
10712 tablenotetext
10713 \family default
10714  (2.15.5), much of Misc (2.17, except 
10715 \family typewriter
10716
10717 \backslash
10718 objectname
10719 \family default
10720
10721 \family typewriter
10722
10723 \backslash
10724 dataset
10725 \family default
10726
10727 \family typewriter
10728
10729 \backslash
10730 url
10731 \family default
10732 , and 
10733 \family typewriter
10734
10735 \backslash
10736 email
10737 \family default
10738 ; see above), 
10739 \family typewriter
10740
10741 \backslash
10742 singlespace
10743 \family default
10744  (3.1), 
10745 \family typewriter
10746
10747 \backslash
10748 doublespace
10749 \family default
10750  (3.1), 
10751 \family typewriter
10752
10753 \backslash
10754 onecolumn
10755 \family default
10756  (3.2), 
10757 \family typewriter
10758
10759 \backslash
10760 twocolumn
10761 \family default
10762  (3.2)
10763 \end_layout
10764
10765 \begin_layout Subsubsection
10766 Things that cannot be implemented
10767 \end_layout
10768
10769 \begin_layout Standard
10770 \SpecialChar ldots
10771  at least in any meaningful sort of way, so I suggest ignoring them.
10772  They are the references environment (2.13.3), and the deluxetable environment
10773  (2.15).
10774  If you really, really need to use deluxetable, I suggest editing it in
10775  a separate file with a text editor, then using 
10776 \family sans
10777 Insert\SpecialChar menuseparator
10778 Child
10779 \begin_inset space ~
10780 \end_inset
10781
10782 Document
10783 \family default
10784  to include it in your \SpecialChar LyX
10785  document.
10786  See the 
10787 \family typewriter
10788 aas_sample.lyx
10789 \family default
10790  file to see an example of this.
10791 \end_layout
10792
10793 \begin_layout Subsection
10794 FAQs, Tips, Tricks, and Other Ruminations
10795 \end_layout
10796
10797 \begin_layout Subsubsection
10798 Getting \SpecialChar LyX
10799  and AAS\SpecialChar TeX
10800  to cooperate
10801 \end_layout
10802
10803 \begin_layout Standard
10804 It can be a bit tricky to get \SpecialChar LyX
10805  to recognize a new layout and document class.
10806  When all else fails, do this:
10807 \end_layout
10808
10809 \begin_layout Enumerate
10810 Make certain that \SpecialChar LaTeX
10811  can find AAS\SpecialChar TeX
10812 .
10813  Copy sample.tex (and perhaps table.tex) from the AAS\SpecialChar TeX
10814  distribution into a
10815  directory completely unrelated to \SpecialChar LaTeX
10816  or AAS\SpecialChar TeX
10817  and run \SpecialChar LaTeX
10818  on 
10819 \family typewriter
10820 sample.tex
10821 \family default
10822 .
10823 \end_layout
10824
10825 \begin_layout Enumerate
10826 Make certain that 
10827 \family typewriter
10828 aastex.layout
10829 \family default
10830  appears in \SpecialChar LyX
10831 's 
10832 \family typewriter
10833 layouts
10834 \family default
10835  folder
10836 \end_layout
10837
10838 \begin_layout Enumerate
10839 Rerun 
10840 \family sans
10841 Tools\SpecialChar menuseparator
10842 Reconfigure
10843 \family default
10844  in \SpecialChar LyX
10845 , then restart \SpecialChar LyX
10846 .
10847 \end_layout
10848
10849 \begin_layout Enumerate
10850 Open a regular new file, not from a template.
10851  Does AAS\SpecialChar TeX
10852  appear in the class list in 
10853 \family sans
10854 Document\SpecialChar menuseparator
10855 Settings
10856 \family default
10857 ?
10858 \end_layout
10859
10860 \begin_layout Standard
10861 If you get a warning from an existing AAS\SpecialChar TeX
10862  document about not being able
10863  to find the AAS\SpecialChar TeX
10864  layout or a message about 
10865 \begin_inset Quotes eld
10866 \end_inset
10867
10868 You should not mix title layouts with normal ones
10869 \begin_inset Quotes erd
10870 \end_inset
10871
10872 , things haven't been installed correctly.
10873 \end_layout
10874
10875 \begin_layout Subsubsection
10876 \SpecialChar LaTeX
10877  error processing a table 
10878 \end_layout
10879
10880 \begin_layout Standard
10881 \SpecialChar LyX
10882 , by default, attempts to center the table caption/title.
10883  This seems to produce a bad interaction in AAS\SpecialChar TeX
10884  so you should click somewhere
10885  in the caption/title, then select 
10886 \family sans
10887 Edit\SpecialChar menuseparator
10888 Paragraph
10889 \begin_inset space ~
10890 \end_inset
10891
10892 Settings
10893 \family default
10894 , then set the 
10895 \family sans
10896 Alignment
10897 \family default
10898  to 
10899 \family sans
10900 Block
10901 \family default
10902 .
10903  This took care of it for me.
10904 \end_layout
10905
10906 \begin_layout Subsubsection
10907 References
10908 \end_layout
10909
10910 \begin_layout Standard
10911 A couple of things: 1) I have noticed some funny spacing in the reference
10912  entries in the text.
10913  When you enter the bibliography item data, make sure their is 
10914 \emph on
10915 no
10916 \emph default
10917  space between the last author and the parenthesis setting off the year;
10918  
10919 \emph on
10920 e.
10921 \begin_inset space \thinspace{}
10922 \end_inset
10923
10924 g.
10925 \begin_inset space \space{}
10926 \end_inset
10927
10928
10929 \emph default
10930 type 
10931 \family typewriter
10932 Ressler(1992)
10933 \family default
10934 , not 
10935 \family typewriter
10936 Ressler (1992)
10937 \family default
10938 .
10939  2) Entering the references at all is not obvious.
10940  The easiest thing is to start typing your first reference at the end of
10941  the document, then mark it as type 
10942 \family sans
10943 References
10944 \family default
10945 .
10946  That will put a small gray box in front of what you just typed.
10947  Click on the box to fill in the rest of the information.
10948  For new references, go to the end of an existing reference and press return.
10949  That will create a new line with its own box, etc.
10950 \end_layout
10951
10952 \begin_layout Subsubsection
10953 Including EPS files
10954 \end_layout
10955
10956 \begin_layout Standard
10957 Even though AAS\SpecialChar TeX
10958  provides its own figure commands (
10959 \family typewriter
10960
10961 \backslash
10962 plotone
10963 \family default
10964 , for example), I much prefer \SpecialChar LaTeX
10965 's standard figure commands (with the default
10966  graphicx).
10967  You can insert the 
10968 \family typewriter
10969
10970 \backslash
10971 plotone
10972 \family default
10973 , etc.
10974 \begin_inset space ~
10975 \end_inset
10976
10977 commands as \SpecialChar TeX
10978  code into a Figure Float box if you desire, but I never have
10979  much luck getting the layout right.
10980  With the standard graphics, \SpecialChar LyX
10981  will insert a 
10982 \family typewriter
10983
10984 \backslash
10985 usepackage{graphicx}
10986 \family default
10987  command into the \SpecialChar LaTeX
10988  preamble and handle the figures in the standard \SpecialChar LaTeX2e
10989  way,
10990  interspersing the figures in the text.
10991  I believe ApJ accepts figures exactly this way now; AJ might still use
10992  the 
10993 \begin_inset Quotes eld
10994 \end_inset
10995
10996 stack everything at the end
10997 \begin_inset Quotes erd
10998 \end_inset
10999
11000  technique.
11001 \end_layout
11002
11003 \begin_layout Subsubsection
11004 Things I could have done, but didn't
11005 \end_layout
11006
11007 \begin_layout Standard
11008 There are a few 
11009 \begin_inset Quotes eld
11010 \end_inset
11011
11012 pretty
11013 \begin_inset Quotes erd
11014 \end_inset
11015
11016  things I could have implemented, but chose not to.
11017  For instance, I saw no point in double-spacing the text in the \SpecialChar LyX
11018  window,
11019  even though it is double-spaced in the paper manuscript.
11020  Also, I chose not to make separate layouts for the preprint and preprint2
11021  styles.
11022  Since I assume you will spend most of your time in the plain manuscript
11023  mode anyway, I decided not to chew up more disk space with this.
11024  
11025 \end_layout
11026
11027 \begin_layout Subsection
11028 Final Caveat
11029 \end_layout
11030
11031 \begin_layout Standard
11032 Your mileage may vary.
11033  I've now had papers published by both ApJ and AJ that have had 98% of the
11034  effort done in \SpecialChar LyX
11035 ; the last 2% was the \SpecialChar LaTeX
11036  post-processing and a few cleanups.
11037  I have had no trouble with the submission process, and I'm sure the journals
11038  were never aware that there might be a difference.
11039  So, go forth and publish!
11040 \end_layout
11041
11042 \begin_layout Section
11043 Broadway
11044 \end_layout
11045
11046 \begin_layout Standard
11047 by 
11048 \shape smallcaps
11049 Garst Reese
11050 \end_layout
11051
11052 \begin_layout Subsection
11053 Introduction
11054 \end_layout
11055
11056 \begin_layout Standard
11057 Broadway is for writing plays.
11058  The format is more decorative than Hollywood, and much less standardized.
11059  This format should be suitable for workshops.
11060 \end_layout
11061
11062 \begin_layout Subsection
11063 Special problems
11064 \end_layout
11065
11066 \begin_layout Standard
11067 The same as in Hollywood.
11068 \end_layout
11069
11070 \begin_layout Subsection
11071 Special features
11072 \end_layout
11073
11074 \begin_layout Standard
11075 Insert the 
11076 \family sans
11077 Speaker
11078 \family default
11079  names as labels then cross-reference the label to insert the name.
11080  The cross-reference dialog will show the current cast of characters.
11081 \end_layout
11082
11083 \begin_layout Subsection
11084 Paper size and Margins
11085 \end_layout
11086
11087 \begin_layout Standard
11088 USLetter, left 1.6in, right 0.75in, top 0.5in, bottom 0.75in
11089 \end_layout
11090
11091 \begin_layout Subsection
11092 Environments
11093 \end_layout
11094
11095 \begin_layout Standard
11096 The following environments are available.
11097  You can use broadway.bind to get the bind keys shown at the right.
11098 \end_layout
11099
11100 \begin_layout Itemize
11101
11102 \family sans
11103 Standard
11104 \begin_inset Newline newline
11105 \end_inset
11106
11107
11108 \family default
11109 You should not have to use this, but it is here for anything that does not
11110  fit otherwise.
11111 \end_layout
11112
11113 \begin_layout Itemize
11114
11115 \family sans
11116 Narrative
11117 \begin_inset space \hfill{}
11118 \end_inset
11119
11120 M-z n
11121 \begin_inset Newline newline
11122 \end_inset
11123
11124
11125 \family default
11126 Used to describe stage setting and the action.
11127  First use of speaker names in all CAPs.
11128 \end_layout
11129
11130 \begin_layout Itemize
11131
11132 \family sans
11133 ACT
11134 \begin_inset space \hfill{}
11135 \end_inset
11136
11137 M-z a
11138 \begin_inset Newline newline
11139 \end_inset
11140
11141
11142 \family default
11143 Automatically numbered.
11144  On screen it will be arabic, but will print as Roman.
11145 \end_layout
11146
11147 \begin_layout Itemize
11148
11149 \family sans
11150 ACT*
11151 \begin_inset space \hfill{}
11152 \end_inset
11153
11154 M-z S at
11155 \begin_inset Newline newline
11156 \end_inset
11157
11158
11159 \family default
11160 Subtitle for 
11161 \family sans
11162 ACT.
11163
11164 \family default
11165  It is just centered text.
11166 \end_layout
11167
11168 \begin_layout Itemize
11169
11170 \family sans
11171 SCENE
11172 \begin_inset space \hfill{}
11173 \end_inset
11174
11175 M-z S-S
11176 \begin_inset Newline newline
11177 \end_inset
11178
11179
11180 \family default
11181 Not automatically numbered.
11182  You supply the number.
11183  This is because I couldn't figure out how.
11184 \end_layout
11185
11186 \begin_layout Itemize
11187
11188 \family sans
11189 AT_RISE:
11190 \begin_inset space \hfill{}
11191 \end_inset
11192
11193 M-z S-R
11194 \begin_inset Newline newline
11195 \end_inset
11196
11197
11198 \family default
11199 A special case of Narrative to describe the setting and action as the curtain
11200  rises.
11201 \end_layout
11202
11203 \begin_layout Itemize
11204
11205 \family sans
11206 Speaker
11207 \begin_inset space \hfill{}
11208 \end_inset
11209
11210 M-z s
11211 \begin_inset Newline newline
11212 \end_inset
11213
11214
11215 \family default
11216 The speaker's (actor's) title, centered in all CAPS.
11217 \end_layout
11218
11219 \begin_layout Itemize
11220
11221 \family sans
11222 Parenthetical
11223 \begin_inset space \hfill{}
11224 \end_inset
11225
11226 M-z p
11227 \begin_inset Newline newline
11228 \end_inset
11229
11230
11231 \family default
11232 Instructions to the speaker.
11233  The parentheses are automatically inserted.
11234  The ( will appear on screen, but both will be in the printed play.
11235  This environment is only used within 
11236 \family sans
11237 Dialogue
11238 \family default
11239 .
11240 \end_layout
11241
11242 \begin_layout Itemize
11243
11244 \family sans
11245 Dialogue
11246 \begin_inset space \hfill{}
11247 \end_inset
11248
11249 M-z d
11250 \begin_inset Newline newline
11251 \end_inset
11252
11253
11254 \family default
11255 What the Speaker says.
11256 \end_layout
11257
11258 \begin_layout Itemize
11259
11260 \family sans
11261 CURTAIN
11262 \begin_inset space \hfill{}
11263 \end_inset
11264
11265 M-z S-C
11266 \begin_inset Newline newline
11267 \end_inset
11268
11269
11270 \family default
11271 The curtain comes down.
11272 \end_layout
11273
11274 \begin_layout Itemize
11275
11276 \family sans
11277 Title
11278 \begin_inset space \hfill{}
11279 \end_inset
11280
11281 M-z S-T
11282 \end_layout
11283
11284 \begin_layout Itemize
11285
11286 \family sans
11287 Author
11288 \begin_inset space \hfill{}
11289 \end_inset
11290
11291 M-z S-A
11292 \end_layout
11293
11294 \begin_layout Itemize
11295
11296 \family sans
11297 Right_Address
11298 \begin_inset space \hfill{}
11299 \end_inset
11300
11301 M-z r
11302 \end_layout
11303
11304 \begin_layout Standard
11305 Hello there.
11306 \end_layout
11307
11308 \begin_layout Section
11309 Dinbrief
11310 \end_layout
11311
11312 \begin_layout Standard
11313 The document class 
11314 \family sans
11315 dinbrief
11316 \family default
11317  can be used to type letters according to German conventions.
11318  A template file is included in 
11319 \family typewriter
11320 .../lyx/share/templates
11321 \family default
11322  for you to use as a starting point.
11323 \end_layout
11324
11325 \begin_layout Section
11326 Elsevier Journals
11327 \end_layout
11328
11329 \begin_layout Standard
11330 See the \SpecialChar LyX
11331  template file 
11332 \family typewriter
11333 elsarticle.lyx
11334 \family default
11335 .
11336  It contains all infos you need.
11337 \end_layout
11338
11339 \begin_layout Section
11340 Foils [aka 
11341 \family sans
11342 Foil\SpecialChar TeX
11343
11344 \family default
11345 ]
11346 \begin_inset CommandInset label
11347 LatexCommand label
11348 name "sec:foiltex"
11349
11350 \end_inset
11351
11352
11353 \end_layout
11354
11355 \begin_layout Standard
11356 by 
11357 \noun on
11358 Allan Rae
11359 \end_layout
11360
11361 \begin_layout Subsection
11362 Introduction
11363 \end_layout
11364
11365 \begin_layout Standard
11366 This section describes how to use \SpecialChar LyX
11367  to make slides for overhead projectors.
11368  There are two document classes that can do this: the default slides class
11369  and the 
11370 \family sans
11371 Foil\SpecialChar TeX
11372
11373 \family default
11374  slides class.
11375  This section documents the latter.
11376 \end_layout
11377
11378 \begin_layout Standard
11379 I'm going to say this again, nice and clear, so that there's no misunderstanding
11380 :
11381 \end_layout
11382
11383 \begin_layout Standard
11384 \begin_inset VSpace bigskip
11385 \end_inset
11386
11387
11388 \end_layout
11389
11390 \begin_layout Standard
11391 \align center
11392
11393 \size large
11394 This section documents the class 
11395 \begin_inset Quotes eld
11396 \end_inset
11397
11398
11399 \family sans
11400 FoilTeX
11401 \family default
11402
11403 \begin_inset Quotes erd
11404 \end_inset
11405
11406  
11407 \emph on
11408 only.
11409 \end_layout
11410
11411 \begin_layout Standard
11412 \begin_inset VSpace bigskip
11413 \end_inset
11414
11415
11416 \end_layout
11417
11418 \begin_layout Standard
11419 If you're looking for the documentation for 
11420 \begin_inset Quotes eld
11421 \end_inset
11422
11423
11424 \family sans
11425 slides (default)
11426 \family default
11427
11428 \begin_inset Quotes erd
11429 \end_inset
11430
11431 , check out section
11432 \begin_inset space ~
11433 \end_inset
11434
11435
11436 \begin_inset CommandInset ref
11437 LatexCommand ref
11438 reference "sec:slitex"
11439
11440 \end_inset
11441
11442 .
11443  If your machine doesn't have the 
11444 \family sans
11445 foils
11446 \family default
11447  class 
11448 \family sans
11449 FoilTeX
11450 \family default
11451  installed, you'll probably have to use the default 
11452 \family sans
11453 slides
11454 \family default
11455  class, which isn't quite as good as 
11456 \family sans
11457 foils.
11458 \end_layout
11459
11460 \begin_layout Standard
11461 The 
11462 \family sans
11463 foils
11464 \family default
11465  class is designed for use with version
11466 \begin_inset space ~
11467 \end_inset
11468
11469 2.1 of the 
11470 \family sans
11471 foils.cls
11472 \family default
11473  \SpecialChar LaTeX
11474  class file which is now an integral part of \SpecialChar LaTeX2e
11475 .
11476 \end_layout
11477
11478 \begin_layout Subsection
11479 Getting Started
11480 \end_layout
11481
11482 \begin_layout Standard
11483 Obviously, to use this document class, you need to select 
11484 \family sans
11485 FoilTeX
11486 \family default
11487  from the 
11488 \family sans
11489 Class
11490 \family default
11491  entry in the 
11492 \family sans
11493 Document
11494 \begin_inset space ~
11495 \end_inset
11496
11497 Layout
11498 \family default
11499  dialog.
11500  There are some settings in the 
11501 \family sans
11502 Document
11503 \begin_inset space ~
11504 \end_inset
11505
11506 Layout
11507 \family default
11508  dialog that you should know about that are specific to this class:
11509 \end_layout
11510
11511 \begin_layout Itemize
11512 Don't change the options 
11513 \family sans
11514 Sides
11515 \family default
11516  and 
11517 \family sans
11518 Columns
11519 \family default
11520  on the 
11521 \family sans
11522 Document
11523 \begin_inset space ~
11524 \end_inset
11525
11526 Layout
11527 \family default
11528  dialog.
11529  They're ignored by the 
11530 \family sans
11531 foils
11532 \family default
11533  class.
11534 \end_layout
11535
11536 \begin_layout Itemize
11537 The default font size is 20
11538 \begin_inset space \thinspace{}
11539 \end_inset
11540
11541 pt with the other options being 17
11542 \begin_inset space \thinspace{}
11543 \end_inset
11544
11545 pt, 25
11546 \begin_inset space \thinspace{}
11547 \end_inset
11548
11549 pt and 30
11550 \begin_inset space \thinspace{}
11551 \end_inset
11552
11553 pt.
11554 \end_layout
11555
11556 \begin_layout Itemize
11557 The default font is 
11558 \family sans
11559 sans
11560 \family default
11561  
11562 \family sans
11563 serif
11564 \family default
11565  but all math equations are still typeset in the usual roman font.
11566 \end_layout
11567
11568 \begin_layout Itemize
11569
11570 \family sans
11571 Foil\SpecialChar TeX
11572
11573 \family default
11574  supports A4 and Letter paper sizes as well as a special size for working
11575  with 35
11576 \begin_inset space \thinspace{}
11577 \end_inset
11578
11579 mm slides.
11580  It doesn't support A5, B5, legal or executive paper sizes.
11581 \end_layout
11582
11583 \begin_layout Itemize
11584 Don't bother changing the 
11585 \family sans
11586 Float Placement
11587 \family default
11588  settings because they are ignored anyway.
11589  All floats appear where they are defined in the text.
11590 \end_layout
11591
11592 \begin_layout Itemize
11593 The 
11594 \family sans
11595 Pagestyle
11596 \family default
11597  setting behaves a bit differently for this class.
11598  
11599 \family sans
11600 Foil\SpecialChar TeX
11601
11602 \family default
11603  provides extensive footer and header capabilities including a user-defined
11604  logo.
11605  See section
11606 \begin_inset space ~
11607 \end_inset
11608
11609
11610 \begin_inset CommandInset ref
11611 LatexCommand ref
11612 reference "sec:foilfoot"
11613
11614 \end_inset
11615
11616  for more details.
11617  The title page is treated differently to all other pages in the document
11618  and is 
11619 \emph on
11620 always
11621 \emph default
11622  unnumbered and 
11623 \emph on
11624 always
11625 \emph default
11626  has the logo centered at the bottom of the page (if one is defined).
11627  The possible page style choices and what they do are as follows:
11628 \end_layout
11629
11630 \begin_deeper
11631 \begin_layout Labeling
11632 \labelwidthstring MMMMMMM
11633
11634 \family sans
11635 \series bold
11636 empty
11637 \family default
11638 \series default
11639  The final output contains no page numbers, or other headers or footers
11640  (except footnotes of course).
11641  
11642 \end_layout
11643
11644 \begin_layout Labeling
11645 \labelwidthstring MMMMMMM
11646
11647 \family sans
11648 \series bold
11649 plain
11650 \family default
11651 \series default
11652  The final output contains page numbers centered at the bottom of the page.
11653  No other headings or footers (other than footnotes).
11654 \end_layout
11655
11656 \begin_layout Labeling
11657 \labelwidthstring MMMMMMM
11658
11659 \series bold
11660 foilheadings
11661 \series default
11662  Page numbers in lower right corner.
11663  Additional headers and footers are also shown.
11664  This is also the default.
11665 \end_layout
11666
11667 \begin_layout Labeling
11668 \labelwidthstring MMMMMMM
11669
11670 \series bold
11671 fancy
11672 \series default
11673  Gives you access to the 
11674 \family sans
11675 fancyheadings
11676 \family default
11677  package although its use with 
11678 \family sans
11679 Foil\SpecialChar TeX
11680
11681 \family default
11682  is discouraged by the writer of the 
11683 \family sans
11684 Foil\SpecialChar TeX
11685
11686 \family default
11687  package because of some potential page layout clashes.
11688 \end_layout
11689
11690 \end_deeper
11691 \begin_layout Subsubsection
11692 Extra Options
11693 \end_layout
11694
11695 \begin_layout Standard
11696 The following options may be used in the extra class options in the 
11697 \family sans
11698 Document\SpecialChar menuseparator
11699 Settings
11700 \family default
11701  dialog.
11702 \end_layout
11703
11704 \begin_layout Labeling
11705 \labelwidthstring MMMMMMx
11706
11707 \series bold
11708 35mmSlide
11709 \series default
11710  This sets up the page layout for 7.33
11711 \begin_inset space \thinspace{}
11712 \end_inset
11713
11714 in by 11
11715 \begin_inset space \thinspace{}
11716 \end_inset
11717
11718 in paper, which is about the same aspect ratio as a 35
11719 \begin_inset space \thinspace{}
11720 \end_inset
11721
11722 mm slide, making it a bit easier to work with this medium.
11723 \end_layout
11724
11725 \begin_layout Labeling
11726 \labelwidthstring MMMMMMx
11727
11728 \series bold
11729 headrule
11730 \series default
11731  Places a rule across the page below the header on every page except the
11732  title page.
11733 \end_layout
11734
11735 \begin_layout Labeling
11736 \labelwidthstring MMMMMMx
11737
11738 \series bold
11739 footrule
11740 \series default
11741  Places a rule across the page above the footer on every page except the
11742  title page.
11743 \end_layout
11744
11745 \begin_layout Labeling
11746 \labelwidthstring MMMMMMx
11747
11748 \series bold
11749 dvips
11750 \series default
11751  This is automatically set each time you create a new 
11752 \family sans
11753 foils
11754 \family default
11755  document.
11756  This option tells 
11757 \family sans
11758 Foil\SpecialChar TeX
11759
11760 \family default
11761  to use the dvips driver to rotate those pages that are set as landscape
11762  foils.
11763 \end_layout
11764
11765 \begin_layout Labeling
11766 \labelwidthstring MMMMMMx
11767
11768 \series bold
11769 landscape
11770 \series default
11771  Simply changes the page dimensions to those of a landscape page but doesn't
11772  do any rotation.
11773  Thus if you use this option you need to use an external program to rotate
11774  each page or feed your paper through your printer as landscape.
11775  Note that this option effectively reverses the roles of the 
11776 \family sans
11777 Foilhead
11778 \family default
11779  and 
11780 \family sans
11781 Rotatefoilhead
11782 \family default
11783  environments (don't worry these are described in the next section).
11784 \end_layout
11785
11786 \begin_layout Labeling
11787 \labelwidthstring MMMMMMx
11788
11789 \series bold
11790 leqno
11791 \series default
11792  Equation numbers on the left.
11793 \end_layout
11794
11795 \begin_layout Labeling
11796 \labelwidthstring MMMMMMx
11797
11798 \series bold
11799 fleqn
11800 \series default
11801  Flush-left equations.
11802 \end_layout
11803
11804 \begin_layout Subsection
11805 Supported Environments
11806 \end_layout
11807
11808 \begin_layout Standard
11809 Most of the environments commonly supported in other classes are also supported
11810  by the 
11811 \family sans
11812 foils
11813 \family default
11814  class.
11815  There are several additional environments provided by 
11816 \family sans
11817 Foil\SpecialChar TeX
11818
11819 \family default
11820  as well as a couple added by \SpecialChar LyX
11821 .
11822  The following environments are shared with other classes:
11823 \end_layout
11824
11825 \begin_layout Standard
11826 \begin_inset Flex Multiple Columns
11827 status open
11828
11829 \begin_layout Itemize
11830
11831 \family sans
11832 Standard
11833 \end_layout
11834
11835 \begin_layout Itemize
11836
11837 \family sans
11838 Itemize
11839 \end_layout
11840
11841 \begin_layout Itemize
11842
11843 \family sans
11844 Enumerate
11845 \end_layout
11846
11847 \begin_layout Itemize
11848
11849 \family sans
11850 Description
11851 \end_layout
11852
11853 \begin_layout Itemize
11854
11855 \family sans
11856 List
11857 \end_layout
11858
11859 \begin_layout Itemize
11860
11861 \family sans
11862 \SpecialChar LyX
11863 -Code
11864 \end_layout
11865
11866 \begin_layout Itemize
11867
11868 \family sans
11869 Verse
11870 \end_layout
11871
11872 \begin_layout Itemize
11873
11874 \family sans
11875 Quote
11876 \end_layout
11877
11878 \begin_layout Itemize
11879
11880 \family sans
11881 Quotation
11882 \end_layout
11883
11884 \begin_layout Itemize
11885
11886 \family sans
11887 TitleAuthor
11888 \end_layout
11889
11890 \begin_layout Itemize
11891
11892 \family sans
11893 Date
11894 \end_layout
11895
11896 \begin_layout Itemize
11897
11898 \family sans
11899 Abstract
11900 \end_layout
11901
11902 \begin_layout Itemize
11903
11904 \family sans
11905 Bibliography
11906 \end_layout
11907
11908 \begin_layout Itemize
11909
11910 \family sans
11911 Address
11912 \end_layout
11913
11914 \begin_layout Itemize
11915
11916 \family sans
11917 RightAddress
11918 \end_layout
11919
11920 \end_inset
11921
11922
11923 \end_layout
11924
11925 \begin_layout Standard
11926 That is, all the major environments apart from the sectioning environments.
11927  Since foils are essentially self-contained sections, with a title and body,
11928  
11929 \family sans
11930 Foil\SpecialChar TeX
11931
11932 \family default
11933  provides specific commands for starting new foils and these are:
11934 \end_layout
11935
11936 \begin_layout Itemize
11937
11938 \family sans
11939 Foilhead
11940 \end_layout
11941
11942 \begin_layout Itemize
11943
11944 \family sans
11945 Rotatefoilhead
11946 \end_layout
11947
11948 \begin_layout Standard
11949 \SpecialChar LyX
11950  also provides slightly modified versions of these two environments called:
11951 \end_layout
11952
11953 \begin_layout Itemize
11954
11955 \family sans
11956 ShortFoilhead
11957 \end_layout
11958
11959 \begin_layout Itemize
11960
11961 \family sans
11962 ShortRotatefoilhead
11963 \end_layout
11964
11965 \begin_layout Standard
11966 and the differences will be explained in the next section.
11967 \end_layout
11968
11969 \begin_layout Standard
11970 Since foils are often used in presenting ideas or new theorems and such
11971  
11972 \family sans
11973 Foil\SpecialChar TeX
11974
11975 \family default
11976  also provides a comprehensive box of goodies for presenting them:
11977 \end_layout
11978
11979 \begin_layout Standard
11980 \begin_inset Flex Multiple Columns
11981 status open
11982
11983 \begin_layout Itemize
11984
11985 \family sans
11986 Theorem
11987 \end_layout
11988
11989 \begin_layout Itemize
11990
11991 \family sans
11992 Lemma
11993 \end_layout
11994
11995 \begin_layout Itemize
11996
11997 \family sans
11998 Corollary
11999 \end_layout
12000
12001 \begin_layout Itemize
12002
12003 \family sans
12004 Proposition
12005 \end_layout
12006
12007 \begin_layout Itemize
12008
12009 \family sans
12010 Definition
12011 \end_layout
12012
12013 \begin_layout Itemize
12014
12015 \family sans
12016 Proof
12017 \end_layout
12018
12019 \begin_layout Itemize
12020
12021 \family sans
12022 Theorem*
12023 \end_layout
12024
12025 \begin_layout Itemize
12026
12027 \family sans
12028 Lemma*
12029 \end_layout
12030
12031 \begin_layout Itemize
12032
12033 \family sans
12034 Corollary*
12035 \end_layout
12036
12037 \begin_layout Itemize
12038
12039 \family sans
12040 Proposition*
12041 \end_layout
12042
12043 \begin_layout Itemize
12044
12045 \family sans
12046 Definition*
12047 \end_layout
12048
12049 \end_inset
12050
12051
12052 \end_layout
12053
12054 \begin_layout Standard
12055 The starred versions are unnumbered while the unstarred versions are numbered.
12056  There are also two list environments added by \SpecialChar LyX
12057  and these are:
12058 \end_layout
12059
12060 \begin_layout Itemize
12061
12062 \family sans
12063 TickList
12064 \end_layout
12065
12066 \begin_layout Itemize
12067
12068 \family sans
12069 CrossList
12070 \end_layout
12071
12072 \begin_layout Standard
12073
12074 \family sans
12075 Foil\SpecialChar TeX
12076
12077 \family default
12078  provides some powerful header and footer capabilities that are best set
12079  in the preamble although they may be set at any point in a document.
12080  If you want to change these settings in your document the best place to
12081  do so is at the very top of a foil, i.
12082 \begin_inset space \thinspace{}
12083 \end_inset
12084
12085 e.
12086 \emph on
12087
12088 \begin_inset space \space{}
12089 \end_inset
12090
12091
12092 \emph default
12093 straight after the foilhead.
12094 \end_layout
12095
12096 \begin_layout Standard
12097 For this purpose, the following command styles are provided [
12098 \shape smallcaps
12099 Martin Vermeer
12100 \shape default
12101 ]:
12102 \end_layout
12103
12104 \begin_layout Standard
12105 \begin_inset Flex Multiple Columns
12106 status open
12107
12108 \begin_layout Itemize
12109
12110 \family sans
12111 My
12112 \begin_inset space ~
12113 \end_inset
12114
12115 Logo
12116 \end_layout
12117
12118 \begin_layout Itemize
12119
12120 \family sans
12121 Restriction
12122 \end_layout
12123
12124 \begin_layout Itemize
12125
12126 \family sans
12127 Right
12128 \begin_inset space ~
12129 \end_inset
12130
12131 Footer
12132 \end_layout
12133
12134 \begin_layout Itemize
12135
12136 \family sans
12137 Right
12138 \begin_inset space ~
12139 \end_inset
12140
12141 Header
12142 \end_layout
12143
12144 \begin_layout Itemize
12145
12146 \family sans
12147 Left
12148 \begin_inset space ~
12149 \end_inset
12150
12151 Header
12152 \end_layout
12153
12154 \begin_deeper
12155 \begin_layout Plain Layout
12156 \begin_inset space ~
12157 \end_inset
12158
12159
12160 \end_layout
12161
12162 \end_deeper
12163 \end_inset
12164
12165
12166 \end_layout
12167
12168 \begin_layout Standard
12169 There are also a few commands provided by 
12170 \family sans
12171 Foil\SpecialChar TeX
12172
12173 \family default
12174  that aren't directly supported by \SpecialChar LyX
12175  but I'll tell you what they do and how
12176  to use them in section
12177 \begin_inset space ~
12178 \end_inset
12179
12180
12181 \begin_inset CommandInset ref
12182 LatexCommand ref
12183 reference "sec:unsuppfoils"
12184
12185 \end_inset
12186
12187 .
12188 \end_layout
12189
12190 \begin_layout Subsection
12191 Building a Set of Foils
12192 \end_layout
12193
12194 \begin_layout Standard
12195 This section will give a simple introduction to using the different environments
12196  to build a set of foils.
12197  If you want to see an example set of foils, take a look at the 
12198 \family typewriter
12199 Foils.lyx
12200 \family default
12201  file you find in \SpecialChar LyX
12202 's 
12203 \family typewriter
12204 examples
12205 \family default
12206  folder.
12207 \end_layout
12208
12209 \begin_layout Subsubsection
12210 Give It a Title Page
12211 \end_layout
12212
12213 \begin_layout Standard
12214 Unlike other classes that provide 
12215 \family sans
12216 Title
12217 \family default
12218
12219 \family sans
12220 Author
12221 \family default
12222
12223 \family sans
12224 Date
12225 \family default
12226  and 
12227 \family sans
12228 Abstract
12229 \family default
12230  environments, 
12231 \family sans
12232 foils
12233 \family default
12234  creates the title on a page of its own.
12235  If you leave out the 
12236 \family sans
12237 Date
12238 \family default
12239  environment \SpecialChar LaTeX
12240  will substitute the current date (every time you regenerate
12241  the output).
12242 \end_layout
12243
12244 \begin_layout Subsubsection
12245 Start a New Foil
12246 \end_layout
12247
12248 \begin_layout Standard
12249 As I mentioned earlier, there are four ways of starting a new foil.
12250  For portrait foils you should use 
12251 \family sans
12252 Foilhead
12253 \family default
12254  or 
12255 \family sans
12256 ShortFoilhead.
12257
12258 \family default
12259  The difference between these two environments is the amount of space between
12260  the title of the foil (the foilhead) and the body of the foil.
12261 \end_layout
12262
12263 \begin_layout Standard
12264 Landscape foils are generated using the 
12265 \family sans
12266 Rotatefoilhead
12267 \family default
12268  and 
12269 \family sans
12270 ShortRotatefoilhead
12271 \family default
12272  environments.
12273  Again the only difference is the spacing between foilhead and body.
12274  Both of the short versions have 0.5
12275 \begin_inset space ~
12276 \end_inset
12277
12278 inches less separation between the foilhead and the body.
12279  
12280 \end_layout
12281
12282 \begin_layout Standard
12283 One problem with the support for landscape foils is the requirement that
12284  you have to use the 
12285 \family typewriter
12286 dvips
12287 \family default
12288  driver to generate the PostScript output otherwise the foils won't be rotated.
12289  It is possible to get landscape foils even if you haven't got the 
12290 \family typewriter
12291 dvips
12292 \family default
12293  driver provided you can feed your foils sideways through your printer ;-)
12294 \end_layout
12295
12296 \begin_layout Subsubsection
12297 Theorems, Lemmas, Proofs and more
12298 \end_layout
12299
12300 \begin_layout Standard
12301 You can't have two of the same type of these environments directly following
12302  each other.
12303  If you use a normal paragraph break, , you will just be extending the previous
12304  environment as if you had merged the two environments together.
12305  Rather than that, you need to insert a so-called separator.
12306  Please refer to the section entitled 
12307 \emph on
12308 Separate Nestings
12309 \emph default
12310  in the 
12311 \emph on
12312 User's Guide
12313 \emph default
12314 .
12315 \end_layout
12316
12317 \begin_layout Subsubsection
12318 Lists
12319 \end_layout
12320
12321 \begin_layout Standard
12322 You get all the commonly supported list styles found in other classes as
12323  well as two new ones.
12324  I'll only describe the new ones here.
12325  If you want to find out more about the other list environments check out
12326  the 
12327 \emph on
12328 User's Guide.
12329
12330 \emph default
12331  If you intend to use itemized lists you might also want to read about the
12332  
12333 \family sans
12334 Itemize
12335 \begin_inset space ~
12336 \end_inset
12337
12338 Bullet
12339 \begin_inset space ~
12340 \end_inset
12341
12342 Selection
12343 \family default
12344  dialog described above in section
12345 \begin_inset space ~
12346 \end_inset
12347
12348
12349 \begin_inset CommandInset ref
12350 LatexCommand ref
12351 reference "sec:bullet"
12352
12353 \end_inset
12354
12355 .
12356 \end_layout
12357
12358 \begin_layout Standard
12359 The two new list styles, 
12360 \family sans
12361 TickList
12362 \family default
12363  and 
12364 \family sans
12365 CrossList
12366 \family default
12367 , are designed to make it easier for you to create lists of do's and don'ts
12368  or right and wrong by providing dedicated environments that use a tick
12369  or a cross as the label of the list.
12370  These lists are in fact dedicated variants of the 
12371 \family sans
12372 Itemize
12373 \family default
12374  environment.
12375  They do however require that you have the 
12376 \family typewriter
12377 psnfss
12378 \family default
12379  packages installed.
12380 \end_layout
12381
12382 \begin_layout Subsubsection
12383 Figures and Tables
12384 \end_layout
12385
12386 \begin_layout Standard
12387
12388 \family sans
12389 Foil\SpecialChar TeX
12390
12391 \family default
12392  redefines the floating tables and figures so that they appear exactly where
12393  they are in the text rather than pushing them to the top of the page or
12394  to some user specified location.
12395  In fact if you change the float placement settings they are simply ignored.
12396 \end_layout
12397
12398 \begin_layout Subsubsection
12399 Page Headers and Footers
12400 \begin_inset CommandInset label
12401 LatexCommand label
12402 name "sec:foilfoot"
12403
12404 \end_inset
12405
12406
12407 \end_layout
12408
12409 \begin_layout Standard
12410
12411 \family sans
12412 My
12413 \begin_inset space ~
12414 \end_inset
12415
12416 Logo
12417 \family default
12418  and 
12419 \family sans
12420 Restriction
12421 \family default
12422  are two commands used to control the left-footer text string.
12423  The first is meant to allow you to include a graphic logo on your foils
12424  and defaults to 
12425 \begin_inset Quotes eld
12426 \end_inset
12427
12428 -Typeset by 
12429 \family sans
12430 Foil\SpecialChar TeX
12431
12432 \family default
12433 -
12434 \begin_inset Quotes erd
12435 \end_inset
12436
12437 .
12438  While the second is meant to provide a classification for the audience,
12439  
12440 \emph on
12441 e.
12442 \begin_inset space \thinspace{}
12443 \end_inset
12444
12445 g.
12446 \emph default
12447
12448 \begin_inset space \space{}
12449 \end_inset
12450
12451 Confidential.
12452  It is empty by default.
12453 \end_layout
12454
12455 \begin_layout Standard
12456 The remaining page corners can be filled by 
12457 \family sans
12458 Right
12459 \begin_inset space ~
12460 \end_inset
12461
12462 Footer
12463 \family default
12464  (which defaults to page numbers), 
12465 \family sans
12466 Right
12467 \begin_inset space ~
12468 \end_inset
12469
12470 Header
12471 \family default
12472  (top right) and 
12473 \family sans
12474 Left
12475 \begin_inset space ~
12476 \end_inset
12477
12478 Header
12479 \family default
12480  (top left).
12481 \end_layout
12482
12483 \begin_layout Subsection
12484 Unsupported 
12485 \family sans
12486 Foil\SpecialChar TeX
12487
12488 \family default
12489  Goodies
12490 \begin_inset CommandInset label
12491 LatexCommand label
12492 name "sec:unsuppfoils"
12493
12494 \end_inset
12495
12496
12497 \end_layout
12498
12499 \begin_layout Standard
12500 All the commands mentioned below need to be set in a 
12501 \family sans
12502 \SpecialChar LaTeX
12503
12504 \family default
12505  environment or as 
12506 \family sans
12507 \SpecialChar TeX
12508
12509 \family default
12510  within another environment.
12511 \end_layout
12512
12513 \begin_layout Subsubsection
12514 Lengths
12515 \end_layout
12516
12517 \begin_layout Standard
12518 All lengths are adjusted using the 
12519 \family typewriter
12520
12521 \backslash
12522 setlength{
12523 \family default
12524 \emph on
12525 lengthname
12526 \family typewriter
12527 \emph default
12528 }{
12529 \family default
12530 \emph on
12531 newlength
12532 \family typewriter
12533 \emph default
12534 }
12535 \family default
12536  command.
12537  Where 
12538 \emph on
12539 lengthname
12540 \emph default
12541  should be replaced by the name given to the length you want to change and
12542  
12543 \emph on
12544 newlength
12545 \emph default
12546  is the length value.
12547  All lengths should be specified in units of length such as inches (
12548 \family typewriter
12549 in
12550 \family default
12551 ), millimeters (
12552 \family typewriter
12553 mm
12554 \family default
12555 ) or points (
12556 \family typewriter
12557 pt
12558 \family default
12559 ) or relative to some document or font-based length such as 
12560 \family typewriter
12561
12562 \backslash
12563 textwidth
12564 \family default
12565 .
12566  
12567 \end_layout
12568
12569 \begin_layout Standard
12570 It's possible to change the spacing between a foilhead and the body of the
12571  foil by adjusting the length specified by 
12572 \family typewriter
12573
12574 \backslash
12575 foilheadskip
12576 \family default
12577 .
12578  For example, to make 
12579 \emph on
12580 all
12581 \emph default
12582  foilheads 0.5
12583 \begin_inset space \space{}
12584 \end_inset
12585
12586 in closer to their bodies put the following in the preamble: 
12587 \family typewriter
12588
12589 \backslash
12590 setlength{
12591 \backslash
12592 foilheadskip}{-0.5in}
12593 \end_layout
12594
12595 \begin_layout Standard
12596 The spacings around floats can be adjusted by setting these lengths:
12597 \end_layout
12598
12599 \begin_layout Labeling
12600 \labelwidthstring MMMMMMMMMMM
12601
12602 \family typewriter
12603
12604 \backslash
12605 abovefloatskip
12606 \family default
12607  Separation between the text and the top of the float
12608 \end_layout
12609
12610 \begin_layout Labeling
12611 \labelwidthstring MMMMMMMMMMM
12612
12613 \family typewriter
12614
12615 \backslash
12616 abovecaptionskip
12617 \family default
12618  Separation between the float and the caption
12619 \end_layout
12620
12621 \begin_layout Labeling
12622 \labelwidthstring MMMMMMMMMMM
12623
12624 \family typewriter
12625
12626 \backslash
12627 belowcaptionskip
12628 \family default
12629  Separation between the caption and the following text
12630 \end_layout
12631
12632 \begin_layout Labeling
12633 \labelwidthstring MMMMMMMMMMM
12634
12635 \family typewriter
12636
12637 \backslash
12638 captionwidth
12639 \family default
12640  You can make the captions narrower than the surrounding text by adjusting
12641  this length.
12642  Best done relative to 
12643 \family typewriter
12644
12645 \backslash
12646 textwidth
12647 \family default
12648 .
12649 \end_layout
12650
12651 \begin_layout Standard
12652 There are also several title page related lengths that you may find useful
12653  if you have a long title or several authors:
12654 \end_layout
12655
12656 \begin_layout Labeling
12657 \labelwidthstring MMMMMMMMMMM
12658
12659 \family typewriter
12660
12661 \backslash
12662 abovetitleskip
12663 \family default
12664  Separation from headers to 
12665 \family sans
12666 Title
12667 \end_layout
12668
12669 \begin_layout Labeling
12670 \labelwidthstring MMMMMMMMMMM
12671
12672 \family typewriter
12673
12674 \backslash
12675 titleauthorskip
12676 \family default
12677  between 
12678 \family sans
12679 Title
12680 \family default
12681  and 
12682 \family sans
12683 Author
12684 \family default
12685  environments
12686 \end_layout
12687
12688 \begin_layout Labeling
12689 \labelwidthstring MMMMMMMMMMM
12690
12691 \family typewriter
12692
12693 \backslash
12694 authorauthorskip
12695 \family default
12696  between multiple 
12697 \family sans
12698 Author
12699 \family default
12700  lines
12701 \end_layout
12702
12703 \begin_layout Labeling
12704 \labelwidthstring MMMMMMMMMMM
12705
12706 \family typewriter
12707
12708 \backslash
12709 authordateskip
12710 \family default
12711  between the 
12712 \family sans
12713 Author
12714 \family default
12715  and the 
12716 \family sans
12717 Date
12718 \end_layout
12719
12720 \begin_layout Labeling
12721 \labelwidthstring MMMMMMMMMMM
12722
12723 \family typewriter
12724
12725 \backslash
12726 dateabstractskip
12727 \family default
12728  between the 
12729 \family sans
12730 Date
12731 \family default
12732  and the 
12733 \family sans
12734 Abstract
12735 \end_layout
12736
12737 \begin_layout Standard
12738 The last length related command affects all the list environments.
12739  If you place 
12740 \family typewriter
12741
12742 \backslash
12743 zerolistvertdimens
12744 \family default
12745  
12746 \emph on
12747 inside
12748 \emph default
12749  a list environment then all the vertical spacing between the list items
12750  is removed.
12751  Note that this is a command not a length so it doesn't require 
12752 \family typewriter
12753
12754 \backslash
12755 setlength
12756 \family default
12757  like the stuff mentioned above.
12758 \end_layout
12759
12760 \begin_layout Subsubsection
12761 Headers and Footers
12762 \end_layout
12763
12764 \begin_layout Standard
12765 The 
12766 \family typewriter
12767
12768 \backslash
12769 LogoOn
12770 \family default
12771  and 
12772 \family typewriter
12773
12774 \backslash
12775 LogoOff
12776 \family default
12777  commands control whether the logo in the 
12778 \family sans
12779 MyLogo
12780 \family default
12781  definition appear on a given page.
12782  If you put 
12783 \family typewriter
12784
12785 \backslash
12786 LogoOff
12787 \family default
12788  in the preamble then none of the foils will have the logo on them.
12789  If you don't want the logo on a particular page place the 
12790 \family typewriter
12791
12792 \backslash
12793 LogoOff
12794 \family default
12795  directly after the foilhead of that page and the 
12796 \family typewriter
12797
12798 \backslash
12799 LogoOn
12800 \family default
12801  directly after the next foilhead.
12802 \end_layout
12803
12804 \begin_layout Standard
12805 If you decide to use the 
12806 \family sans
12807 fancy
12808 \family default
12809  page style setting in the 
12810 \family sans
12811 Document
12812 \begin_inset space ~
12813 \end_inset
12814
12815 Layout
12816 \family default
12817  dialog you should probably add 
12818 \family typewriter
12819
12820 \backslash
12821 let
12822 \backslash
12823 headwidth
12824 \backslash
12825 textwidth
12826 \family default
12827  to your preamble so headers and footers on landscape pages are correctly
12828  placed when rotated.
12829  This is due to some clashes between the page layouts provided by the 
12830 \family sans
12831 fancyheadings
12832 \family default
12833  package and the 
12834 \family sans
12835 foils
12836 \family default
12837  class.
12838 \end_layout
12839
12840 \begin_layout Section
12841 Hollywood (Hollywood spec scripts)
12842 \end_layout
12843
12844 \begin_layout Standard
12845 by 
12846 \shape smallcaps
12847 Garst Reese
12848 \end_layout
12849
12850 \begin_layout Subsection
12851 Introduction
12852 \end_layout
12853
12854 \begin_layout Standard
12855 Getting the format of a Hollywood script right is a 
12856 \begin_inset Quotes eld
12857 \end_inset
12858
12859 rite of passage.
12860 \begin_inset Quotes erd
12861 \end_inset
12862
12863  It is designed to make the readers focus on content and to be easy and
12864  familiar for the actors to read.
12865  Each page of a script should be one minute of film.
12866  Nothing goes in a script that you cannot see or hear on screen.
12867  The courier 12 pt font should be used throughout.
12868  No italics.
12869 \end_layout
12870
12871 \begin_layout Subsection
12872 Special problems
12873 \end_layout
12874
12875 \begin_layout Standard
12876 Speakers' lines should NEVER break in mid-sentence.
12877  If a speaker's lines continue over a page break, repeat the 
12878 \family sans
12879 Speaker
12880 \family default
12881  title followed by (Cont'd).
12882 \end_layout
12883
12884 \begin_layout Subsection
12885 Special features
12886 \end_layout
12887
12888 \begin_layout Standard
12889 Insert the 
12890 \family sans
12891 Speaker
12892 \family default
12893  names as labels then cross-reference the label to insert the name.
12894  The cross-reference dialog will show the current cast of characters.
12895  You can use this to insert the speaker name in narratives also.
12896 \end_layout
12897
12898 \begin_layout Subsection
12899 Paper size and Margins
12900 \end_layout
12901
12902 \begin_layout Standard
12903 USLetter, left 1.6in, right 0.75in, top 0.5in, bottom 0.75in
12904 \end_layout
12905
12906 \begin_layout Subsection
12907 Environments
12908 \end_layout
12909
12910 \begin_layout Standard
12911 The following environments are available.
12912  You can use hollywood.bind to get the bind keys shown at the right.
12913 \end_layout
12914
12915 \begin_layout Itemize
12916
12917 \family sans
12918 Standard
12919 \begin_inset Newline newline
12920 \end_inset
12921
12922
12923 \family default
12924 Used where nothing else works.
12925  Try to avoid it.
12926 \end_layout
12927
12928 \begin_layout Itemize
12929
12930 \family sans
12931 FADE_IN
12932 \family default
12933 :
12934 \begin_inset space \hfill{}
12935 \end_inset
12936
12937
12938 \family sans
12939 M-z S-I
12940 \family default
12941
12942 \begin_inset Newline newline
12943 \end_inset
12944
12945 Usually followed by something like 
12946 \begin_inset Quotes eld
12947 \end_inset
12948
12949 on Sally waking up.
12950 \begin_inset Quotes erd
12951 \end_inset
12952
12953
12954 \end_layout
12955
12956 \begin_layout Itemize
12957
12958 \family sans
12959 INT:
12960 \begin_inset space \hfill{}
12961 \end_inset
12962
12963 M-z i
12964 \begin_inset Newline newline
12965 \end_inset
12966
12967
12968 \family default
12969 Introduces a new INTERIOR camera set-up.
12970  Always followed by DAY or NIGHT, or something similar to define the lighting
12971  required.
12972  Everthing on this line in CAPS.
12973 \end_layout
12974
12975 \begin_layout Itemize
12976
12977 \family sans
12978 EXT:
12979 \begin_inset space \hfill{}
12980 \end_inset
12981
12982 M-z e
12983 \begin_inset Newline newline
12984 \end_inset
12985
12986
12987 \family default
12988 Introduces a new EXTERIOR camera set-up.
12989  Everthing on this line in CAPS.
12990 \end_layout
12991
12992 \begin_layout Itemize
12993
12994 \family sans
12995 Speaker
12996 \begin_inset space \hfill{}
12997 \end_inset
12998
12999 M-z s
13000 \begin_inset Newline newline
13001 \end_inset
13002
13003
13004 \family default
13005 The character speaking.
13006 \end_layout
13007
13008 \begin_layout Itemize
13009
13010 \family sans
13011 Parenthetical
13012 \begin_inset space \hfill{}
13013 \end_inset
13014
13015 M-z p
13016 \begin_inset Newline newline
13017 \end_inset
13018
13019
13020 \family default
13021 Instructions to the speaker.
13022  The () are automatically inserted.
13023 \end_layout
13024
13025 \begin_layout Itemize
13026
13027 \family sans
13028 Dialogue
13029 \begin_inset space \hfill{}
13030 \end_inset
13031
13032 M-z d
13033 \begin_inset Newline newline
13034 \end_inset
13035
13036
13037 \family default
13038 What the 
13039 \family sans
13040 Speaker
13041 \family default
13042  says.
13043 \end_layout
13044
13045 \begin_layout Itemize
13046
13047 \family sans
13048 Transition
13049 \begin_inset space \hfill{}
13050 \end_inset
13051
13052 M-z t
13053 \begin_inset Newline newline
13054 \end_inset
13055
13056
13057 \family default
13058 Camera movement instruction.
13059  e.
13060 \begin_inset space \thinspace{}
13061 \end_inset
13062
13063 g.
13064 \begin_inset space \space{}
13065 \end_inset
13066
13067 CUT TO:
13068 \end_layout
13069
13070 \begin_layout Itemize
13071
13072 \family sans
13073 FADE OUT:
13074 \begin_inset space \hfill{}
13075 \end_inset
13076
13077 M-z S-I
13078 \end_layout
13079
13080 \begin_layout Itemize
13081
13082 \family sans
13083 Author
13084 \begin_inset space \hfill{}
13085 \end_inset
13086
13087 M-z S-A
13088 \end_layout
13089
13090 \begin_layout Itemize
13091
13092 \family sans
13093 Title
13094 \begin_inset space \hfill{}
13095 \end_inset
13096
13097 M-z S-T
13098 \end_layout
13099
13100 \begin_layout Itemize
13101
13102 \family sans
13103 Right_Address
13104 \begin_inset space \hfill{}
13105 \end_inset
13106
13107 M-z r
13108 \end_layout
13109
13110 \begin_layout Subsection
13111 Script jargon
13112 \end_layout
13113
13114 \begin_layout Itemize
13115 (O.S) — off screen
13116 \end_layout
13117
13118 \begin_layout Itemize
13119 (V.0) — voice over
13120 \end_layout
13121
13122 \begin_layout Itemize
13123 b.
13124 \begin_inset space \thinspace{}
13125 \end_inset
13126
13127 g.
13128  — background
13129 \end_layout
13130
13131 \begin_layout Itemize
13132 C.U.
13133  — close-up
13134 \end_layout
13135
13136 \begin_layout Itemize
13137 PAN — camera movement
13138 \end_layout
13139
13140 \begin_layout Itemize
13141 INSERT — cut to close-up of
13142 \end_layout
13143
13144 \begin_layout Section
13145
13146 \change_deleted 564990737 1669755802
13147 ijmpc and ijmpd
13148 \end_layout
13149
13150 \begin_layout Standard
13151
13152 \change_deleted 564990737 1669755802
13153 by 
13154 \noun on
13155 Panayotis Papasotiriou
13156 \end_layout
13157
13158 \begin_layout Subsection
13159
13160 \change_deleted 564990737 1669755802
13161 Overview
13162 \end_layout
13163
13164 \begin_layout Standard
13165
13166 \change_deleted 564990737 1669755802
13167 The ijmpc package is a set of macros that facilitates electronic manuscript
13168  submission to the 
13169 \emph on
13170 International Journal of Modern Physics C
13171 \emph default
13172 .
13173  Similarly, the ijmpd package is for creating manuscripts to be submitted
13174  to the 
13175 \emph on
13176 International Journal of Modern Physics D
13177 \emph default
13178 .
13179  Both journals are published by World Scientific.
13180  The corresponding document classes are named 
13181 \family typewriter
13182 ws-ijmpc.cls
13183 \family default
13184  and 
13185 \family typewriter
13186 ws-ijmpd.cls
13187 \family default
13188 , respectively.
13189  These files, together with instructions for the authors, can be downloaded
13190  from the sites 
13191 \begin_inset Flex URL
13192 status collapsed
13193
13194 \begin_layout Plain Layout
13195
13196 http://www.worldscinet.com/ijmpc/mkt/guidelines.shtml
13197 \end_layout
13198
13199 \end_inset
13200
13201  and 
13202 \begin_inset Flex URL
13203 status collapsed
13204
13205 \begin_layout Plain Layout
13206
13207 http://www.worldscinet.com/ijmpd/mkt/guidelines.shtml
13208 \end_layout
13209
13210 \end_inset
13211
13212 .
13213  Both packages are modified versions of the standard 
13214 \begin_inset Quotes eld
13215 \end_inset
13216
13217 article
13218 \begin_inset Quotes erd
13219 \end_inset
13220
13221  package, and they are almost (but not exactly) identical.
13222  Most of their features are supported by \SpecialChar LyX
13223 .
13224  I have used \SpecialChar LyX
13225  successfully to write articles submitted to both journals
13226  without any problem.
13227 \end_layout
13228
13229 \begin_layout Subsection
13230
13231 \change_deleted 564990737 1669755802
13232 Writing a paper
13233 \end_layout
13234
13235 \begin_layout Standard
13236
13237 \change_deleted 564990737 1669755802
13238 As usual, the easiest way to write a paper is to start with a template.
13239  Click on 
13240 \family sans
13241 File\SpecialChar menuseparator
13242 New from
13243 \family default
13244  
13245 \family sans
13246 Template
13247 \family default
13248 , then choose the 
13249 \family typewriter
13250 ijmpc.lyx
13251 \family default
13252  or 
13253 \family typewriter
13254 ijmpd.lyx
13255 \family default
13256  template.
13257  This will give an (almost) empty document that includes the most common
13258  fields found in a manuscript.
13259  Simply overwrite the existing text (including the brackets, 
13260 \family typewriter
13261 <>
13262 \family default
13263 ) with your text.
13264  You should keep in mind the following remarks.
13265 \end_layout
13266
13267 \begin_layout Enumerate
13268
13269 \change_deleted 564990737 1669755802
13270 \SpecialChar LyX
13271  won't let you change the font size and the page style of the document,
13272  because such modifications are not allowed by both packages.
13273 \end_layout
13274
13275 \begin_layout Enumerate
13276
13277 \change_deleted 564990737 1669755802
13278 The language of the document should not be changed.
13279  Before previewing your paper, be sure that the babel package is not used.
13280  To do this, click on 
13281 \begin_inset Info
13282 type  "menu"
13283 arg   "dialog-show document"
13284 \end_inset
13285
13286  
13287 \family sans
13288 \SpecialChar menuseparator
13289 Language
13290 \family default
13291 , and select 
13292 \begin_inset Quotes eld
13293 \end_inset
13294
13295 None
13296 \begin_inset Quotes erd
13297 \end_inset
13298
13299  as 
13300 \family sans
13301 Language Package
13302 \family default
13303 .
13304 \end_layout
13305
13306 \begin_layout Enumerate
13307
13308 \change_deleted 564990737 1669755802
13309 The 
13310 \begin_inset Quotes eld
13311 \end_inset
13312
13313 Keywords
13314 \begin_inset Quotes erd
13315 \end_inset
13316
13317  style must be used to define keywords.
13318 \end_layout
13319
13320 \begin_layout Enumerate
13321
13322 \change_deleted 564990737 1669755802
13323 The ijmpc package provides a style named 
13324 \begin_inset Quotes eld
13325 \end_inset
13326
13327 Classification Codes
13328 \begin_inset Quotes erd
13329 \end_inset
13330
13331 , which can be used to define classification codes, such as PACS numbers.
13332  Note that this facility is not supported by the ijmpd package.
13333 \end_layout
13334
13335 \begin_layout Enumerate
13336
13337 \change_deleted 564990737 1669755802
13338 Several new environments are available: 
13339 \begin_inset Quotes eld
13340 \end_inset
13341
13342 Definition
13343 \begin_inset Quotes erd
13344 \end_inset
13345
13346
13347 \begin_inset Quotes eld
13348 \end_inset
13349
13350 Step
13351 \begin_inset Quotes erd
13352 \end_inset
13353
13354
13355 \begin_inset Quotes eld
13356 \end_inset
13357
13358 Example
13359 \begin_inset Quotes erd
13360 \end_inset
13361
13362
13363 \begin_inset Quotes eld
13364 \end_inset
13365
13366 Remark
13367 \begin_inset Quotes erd
13368 \end_inset
13369
13370
13371 \begin_inset Quotes eld
13372 \end_inset
13373
13374 Notation
13375 \begin_inset Quotes erd
13376 \end_inset
13377
13378
13379 \begin_inset Quotes eld
13380 \end_inset
13381
13382 Theorem
13383 \begin_inset Quotes erd
13384 \end_inset
13385
13386
13387 \begin_inset Quotes eld
13388 \end_inset
13389
13390 Proof
13391 \begin_inset Quotes erd
13392 \end_inset
13393
13394
13395 \begin_inset Quotes eld
13396 \end_inset
13397
13398 Corollary
13399 \begin_inset Quotes erd
13400 \end_inset
13401
13402
13403 \begin_inset Quotes eld
13404 \end_inset
13405
13406 Lemma
13407 \begin_inset Quotes erd
13408 \end_inset
13409
13410
13411 \begin_inset Quotes eld
13412 \end_inset
13413
13414 Proposition
13415 \begin_inset Quotes erd
13416 \end_inset
13417
13418
13419 \begin_inset Quotes eld
13420 \end_inset
13421
13422 Prop
13423 \begin_inset Quotes erd
13424 \end_inset
13425
13426
13427 \begin_inset Quotes eld
13428 \end_inset
13429
13430 Question
13431 \begin_inset Quotes erd
13432 \end_inset
13433
13434
13435 \begin_inset Quotes eld
13436 \end_inset
13437
13438 Claim
13439 \begin_inset Quotes erd
13440 \end_inset
13441
13442 , and 
13443 \begin_inset Quotes eld
13444 \end_inset
13445
13446 Conjecture
13447 \begin_inset Quotes erd
13448 \end_inset
13449
13450 .
13451  Their use is more or less obvious.
13452  \SpecialChar LyX
13453  supports all these environments; it will use the proper label, text style,
13454  and numbering scheme for each of them.
13455 \end_layout
13456
13457 \begin_layout Enumerate
13458
13459 \change_deleted 564990737 1669755802
13460 Both packages use basic citations; the natbib package should not be used.
13461  In \SpecialChar LyX
13462 , citation references are shown as usual; in the output, citations are
13463  shown as superscripts.
13464  If you want to use a citation as normal text, you should use the 
13465 \family typewriter
13466 refcite
13467 \family default
13468  command, e.
13469 \begin_inset space \thinspace{}
13470 \end_inset
13471
13472 g.
13473 \begin_inset space \space{}
13474 \end_inset
13475
13476
13477 \begin_inset Quotes eld
13478 \end_inset
13479
13480 See Ref.
13481 \begin_inset space \space{}
13482 \end_inset
13483
13484
13485 \family typewriter
13486
13487 \backslash
13488 refcite{key}
13489 \family default
13490
13491 \begin_inset Quotes erd
13492 \end_inset
13493
13494 .
13495 \end_layout
13496
13497 \begin_layout Enumerate
13498
13499 \change_deleted 564990737 1669755802
13500 There is no 
13501 \begin_inset Quotes eld
13502 \end_inset
13503
13504 Acknowledgments
13505 \begin_inset Quotes erd
13506 \end_inset
13507
13508  section in both packages.
13509  To put acknowledgments, just use the 
13510 \begin_inset Quotes eld
13511 \end_inset
13512
13513 Section*
13514 \begin_inset Quotes erd
13515 \end_inset
13516
13517  environment.
13518 \end_layout
13519
13520 \begin_layout Enumerate
13521
13522 \change_deleted 564990737 1669755802
13523 Appendices may be added to the paper, 
13524 \emph on
13525 after
13526 \emph default
13527  the Acknowledgments and 
13528 \shape italic
13529 before
13530 \shape default
13531  the References.
13532  \SpecialChar LyX
13533  provides a special environment, called 
13534 \begin_inset Quotes eld
13535 \end_inset
13536
13537 Appendices Section
13538 \begin_inset Quotes erd
13539 \end_inset
13540
13541  which marks the beginning of the appendices.
13542  This environment should be left blank; it just sends a \SpecialChar LaTeX
13543  command, but nothing
13544  is really printed.
13545  In \SpecialChar LyX
13546 , the word 
13547 \begin_inset Quotes eld
13548 \end_inset
13549
13550 Appendix
13551 \begin_inset Quotes erd
13552 \end_inset
13553
13554  is printed with blue letters, as a signal that all sections after that
13555  point are appendices.
13556  To write an appendix, use the 
13557 \begin_inset Quotes eld
13558 \end_inset
13559
13560 Appendix
13561 \begin_inset Quotes erd
13562 \end_inset
13563
13564  environment.
13565  \SpecialChar LyX
13566  will number each appendix with capital letters, as required by both journals.
13567  Note that 
13568 \begin_inset Quotes eld
13569 \end_inset
13570
13571 Appendices Section
13572 \begin_inset Quotes erd
13573 \end_inset
13574
13575  
13576 \emph on
13577 must
13578 \emph default
13579  be present before the first appendix; if not, all appendices will be numbered
13580  as normal sections in the output.
13581 \end_layout
13582
13583 \begin_layout Enumerate
13584
13585 \change_deleted 564990737 1669755802
13586 The ijmpc and the ijmpd packages use the 
13587 \family typewriter
13588 tbl
13589 \family default
13590  command to implement table captions.
13591  As a result, a table created by \SpecialChar LyX
13592  is printed correctly, but its caption
13593  is ignored.
13594  However, you can use some \SpecialChar TeX
13595  code to overcome this problem, so that captions
13596  are printed as expected.
13597  To do so, create a float table as usual, remove the caption, and replace
13598  it with the \SpecialChar TeX
13599  code 
13600 \family typewriter
13601
13602 \backslash
13603 tbl{
13604 \emph on
13605 your table caption
13606 \emph default
13607 }{
13608 \family default
13609  (sic); you must also the \SpecialChar TeX
13610  code 
13611 \family typewriter
13612 }
13613 \family default
13614  immediately after the tabular material.
13615  Study the example table included in the template files to see how this
13616  trick is implemented.
13617  Alternatively, If you need table captions, you should implement the whole
13618  table float in a 
13619 \family typewriter
13620 .tex
13621 \family default
13622  file, then include this file to the \SpecialChar LyX
13623  document (
13624 \family sans
13625 Insert\SpecialChar menuseparator
13626 File\SpecialChar menuseparator
13627 Child
13628 \begin_inset space ~
13629 \end_inset
13630
13631 Document
13632 \family default
13633 ).
13634  Details on how to create a table float can be found in the files 
13635 \family typewriter
13636 ws-ijmpc.tex
13637 \family default
13638  and 
13639 \family typewriter
13640 ws-ijmpd.tex
13641 \family default
13642 , included in the corresponding packages.
13643 \end_layout
13644
13645 \begin_layout Subsection
13646
13647 \change_deleted 564990737 1669755802
13648 Preparing a paper for submission
13649 \end_layout
13650
13651 \begin_layout Standard
13652
13653 \change_deleted 564990737 1669755802
13654 Before you submit your paper you must export the \SpecialChar LyX
13655  document as a \SpecialChar LaTeX
13656  file (
13657 \family sans
13658 File\SpecialChar menuseparator
13659 Export\SpecialChar menuseparator
13660 \SpecialChar LaTeX
13661
13662 \family default
13663 )
13664 \begin_inset Foot
13665 status open
13666
13667 \begin_layout Plain Layout
13668 Actually you have the choice between \SpecialChar LaTeX
13669  (plain) and pdflatex.
13670  If you intend to use pdflatex to prepare the paper, you should use the
13671  pdflatex option so that included graphics are converted to PDF format,
13672  ready for use by pdflatex.
13673 \end_layout
13674
13675 \end_inset
13676
13677 , then make the following changes to the resulting 
13678 \family typewriter
13679 .tex
13680 \family default
13681  file.
13682 \end_layout
13683
13684 \begin_layout Enumerate
13685
13686 \change_deleted 564990737 1669755802
13687 Remove the comment lines before the 
13688 \family typewriter
13689
13690 \backslash
13691 documentclass
13692 \family default
13693  command.
13694 \end_layout
13695
13696 \begin_layout Enumerate
13697
13698 \change_deleted 564990737 1669755802
13699 Remove everything between (and including) the 
13700 \family typewriter
13701
13702 \backslash
13703 makeatletter
13704 \family default
13705  and 
13706 \family typewriter
13707
13708 \backslash
13709 makeatother
13710 \family default
13711  commands, except for any commands you specifically put into the \SpecialChar LaTeX
13712  preamble.
13713 \end_layout
13714
13715 \begin_layout Standard
13716
13717 \change_deleted 564990737 1669755802
13718 The modified 
13719 \family typewriter
13720 .tex
13721 \family default
13722  file should be saved and processed through \SpecialChar LaTeX
13723  as many times as necessary.
13724  You may also want to check the resulting 
13725 \family typewriter
13726 .dvi
13727 \family default
13728  document.
13729 \change_unchanged
13730
13731 \end_layout
13732
13733 \begin_layout Section
13734
13735 \change_deleted 564990737 1669801478
13736 iopart
13737 \end_layout
13738
13739 \begin_layout Standard
13740
13741 \change_deleted 564990737 1669801478
13742 by 
13743 \noun on
13744 Uwe Stöhr
13745 \end_layout
13746
13747 \begin_layout Subsection
13748
13749 \change_deleted 564990737 1669801478
13750 Overview
13751 \end_layout
13752
13753 \begin_layout Standard
13754
13755 \change_deleted 564990737 1669801478
13756 The iopart package provides a document class to create electronic manuscript
13757  submission to the journals published by the Institute of Physics.
13758  Instructions for the authors how to create a paper using the iopart class
13759  can be downloaded together with the iopart package from the site 
13760 \begin_inset Flex URL
13761 status collapsed
13762
13763 \begin_layout Plain Layout
13764
13765 ftp://ftp.iop.org/pub/journals/latex2e
13766 \end_layout
13767
13768 \end_inset
13769
13770 .
13771 \end_layout
13772
13773 \begin_layout Subsection
13774
13775 \change_deleted 564990737 1669801478
13776 Writing a paper
13777 \end_layout
13778
13779 \begin_layout Standard
13780
13781 \change_deleted 564990737 1669801478
13782 The easiest way to write a paper is to start with the template 
13783 \emph on
13784 IOP-article.lyx
13785 \emph default
13786  that is available via 
13787 \family sans
13788 File\SpecialChar menuseparator
13789 New From Template
13790 \family default
13791  The template explains how to use the special text environments.
13792  Here are the most important advices:
13793 \end_layout
13794
13795 \begin_layout Itemize
13796
13797 \change_deleted 564990737 1669801478
13798 To be able to compile your document to a PDF, PS, or DVI, ensure that the
13799  no AMS packages are loaded in 
13800 \family sans
13801 Document\SpecialChar menuseparator
13802 Settings\SpecialChar menuseparator
13803 Math Options
13804 \family default
13805 !
13806 \end_layout
13807
13808 \begin_layout Itemize
13809
13810 \change_deleted 564990737 1669801478
13811
13812 \size normal
13813 The title environment defines the kind of your paper.
13814  So use one of the following environments for the title:
13815 \end_layout
13816
13817 \begin_deeper
13818 \begin_layout Itemize
13819
13820 \change_deleted 564990737 1669801478
13821
13822 \family sans
13823 \size normal
13824 Title
13825 \family default
13826  for a Paper
13827 \end_layout
13828
13829 \begin_layout Itemize
13830
13831 \change_deleted 564990737 1669801478
13832
13833 \family sans
13834 \size normal
13835 Review
13836 \family default
13837  for a Review
13838 \end_layout
13839
13840 \begin_layout Itemize
13841
13842 \change_deleted 564990737 1669801478
13843
13844 \family sans
13845 \size normal
13846 Topical
13847 \family default
13848  for a Topical review
13849 \end_layout
13850
13851 \begin_layout Itemize
13852
13853 \change_deleted 564990737 1669801478
13854
13855 \family sans
13856 \size normal
13857 Comment
13858 \family default
13859  for a Comment
13860 \end_layout
13861
13862 \begin_layout Itemize
13863
13864 \change_deleted 564990737 1669801478
13865
13866 \family sans
13867 \size normal
13868 Note
13869 \family default
13870  for a Note
13871 \end_layout
13872
13873 \begin_layout Itemize
13874
13875 \change_deleted 564990737 1669801478
13876
13877 \family sans
13878 \size normal
13879 Paper
13880 \family default
13881  for a Paper (same as Title)
13882 \end_layout
13883
13884 \begin_layout Itemize
13885
13886 \change_deleted 564990737 1669801478
13887
13888 \family sans
13889 \size normal
13890 Prelim
13891 \family default
13892  for a Preliminary communication
13893 \end_layout
13894
13895 \begin_layout Itemize
13896
13897 \change_deleted 564990737 1669801478
13898
13899 \family sans
13900 \size normal
13901 Rapid
13902 \family default
13903  for a Rapid communication
13904 \end_layout
13905
13906 \begin_layout Itemize
13907
13908 \change_deleted 564990737 1669801478
13909
13910 \family sans
13911 \size normal
13912 Letter
13913 \family default
13914  for a Letter to the editor
13915 \end_layout
13916
13917 \end_deeper
13918 \begin_layout Itemize
13919
13920 \change_deleted 564990737 1669801478
13921
13922 \size normal
13923 All title environments except of 
13924 \family sans
13925 Letter
13926 \family default
13927  can have an optional short title.
13928 \end_layout
13929
13930 \begin_layout Itemize
13931
13932 \change_deleted 564990737 1669801478
13933 There is a general title environment 
13934 \family sans
13935 Article
13936 \family default
13937  which is not directly supported by \SpecialChar LyX
13938 .
13939  This can be used as \SpecialChar TeX
13940  code when your document doesn't fit into one of the
13941  other title types.
13942 \end_layout
13943
13944 \begin_layout Standard
13945
13946 \change_deleted 564990737 1669801478
13947 For more informations like hints for special table and formula formatting,
13948  look at the IOP author guidelines.
13949 \change_unchanged
13950
13951 \end_layout
13952
13953 \begin_layout Section
13954
13955 \change_deleted 564990737 1670317155
13956 Kluwer
13957 \end_layout
13958
13959 \begin_layout Standard
13960
13961 \change_deleted 564990737 1670317155
13962 by 
13963 \noun on
13964 Panayotis Papasotiriou
13965 \end_layout
13966
13967 \begin_layout Subsection
13968
13969 \change_deleted 564990737 1670317155
13970 Overview
13971 \end_layout
13972
13973 \begin_layout Standard
13974
13975 \change_deleted 564990737 1670317155
13976 The Kluwer package is a set of macros produced by Kluwer Academic Publishers
13977  that facilitates electronic manuscript submission to the journals they
13978  publish.
13979  Most known of them (at least in my domain of interest) are 
13980 \emph on
13981 Astrophysics and Space Science
13982 \emph default
13983  and 
13984 \emph on
13985 Solar Physics
13986 \emph default
13987 , but there are many others (see a complete list at 
13988 \begin_inset Flex URL
13989 status collapsed
13990
13991 \begin_layout Plain Layout
13992
13993 http://www.wkap.nl/jrnllist.htm/JRNLHOME
13994 \end_layout
13995
13996 \end_inset
13997
13998 ).
13999  The Kluwer package may be downloaded from the site 
14000 \begin_inset Flex URL
14001 status collapsed
14002
14003 \begin_layout Plain Layout
14004
14005 http://www.wkap.nl/kaphtml.htm/STYLEFILES
14006 \end_layout
14007
14008 \end_inset
14009
14010 .
14011  A complete user guide is contained in that package (but it can also be
14012  downloaded separately).
14013 \end_layout
14014
14015 \begin_layout Standard
14016
14017 \change_deleted 564990737 1670317155
14018 \SpecialChar LyX
14019  supports many features of the package but not everything.
14020  However, the \SpecialChar TeX
14021  code needed is reduced to some 
14022 \begin_inset Quotes eld
14023 \end_inset
14024
14025 peculiar
14026 \begin_inset Quotes erd
14027 \end_inset
14028
14029  commands of the package (see
14030 \begin_inset space ~
14031 \end_inset
14032
14033
14034 \begin_inset CommandInset ref
14035 LatexCommand ref
14036 reference "subsec:kluwer_peculiarities"
14037
14038 \end_inset
14039
14040 ).
14041  I have recently used \SpecialChar LyX
14042  to write an article submitted to the 
14043 \emph on
14044 Astrophysics and Space Science
14045 \emph default
14046  without any problem.
14047 \end_layout
14048
14049 \begin_layout Subsection
14050
14051 \change_deleted 564990737 1670317155
14052 Writing a paper
14053 \end_layout
14054
14055 \begin_layout Standard
14056
14057 \change_deleted 564990737 1670317155
14058 The easiest way to write a paper is to start with the Kluwer template file.
14059  Click on 
14060 \family sans
14061 File\SpecialChar menuseparator
14062 New from
14063 \family default
14064  
14065 \family sans
14066 Template
14067 \family default
14068 , then choose the 
14069 \family typewriter
14070 kluwer.lyx
14071 \family default
14072  template.
14073  This will give an (almost) empty document that includes the most common
14074  fields found in a manuscript and a short description of their use.
14075  As in most templates, simply overwrite the existing text (including the
14076  brackets, 
14077 \family typewriter
14078 <>
14079 \family default
14080 ) with the correct information.
14081 \end_layout
14082
14083 \begin_layout Subsection
14084
14085 \change_deleted 564990737 1670317155
14086 Preparing a paper for submission
14087 \end_layout
14088
14089 \begin_layout Standard
14090
14091 \change_deleted 564990737 1670317155
14092 As in the AAS\SpecialChar TeX
14093  package, before you submit your paper to a journal you must
14094  
14095 \begin_inset Quotes eld
14096 \end_inset
14097
14098 postprocess
14099 \begin_inset Quotes erd
14100 \end_inset
14101
14102  it as follows.
14103 \end_layout
14104
14105 \begin_layout Enumerate
14106
14107 \change_deleted 564990737 1670317155
14108 Export your paper as a \SpecialChar LaTeX
14109  file.
14110  To do this, click on 
14111 \family sans
14112 File\SpecialChar menuseparator
14113 Export\SpecialChar menuseparator
14114 \SpecialChar LaTeX
14115
14116 \family default
14117 .
14118  
14119 \end_layout
14120
14121 \begin_layout Enumerate
14122
14123 \change_deleted 564990737 1670317155
14124 Edit the resulting 
14125 \family typewriter
14126 .tex
14127 \family default
14128  file with a text editor and make the following changes
14129 \end_layout
14130
14131 \begin_deeper
14132 \begin_layout Enumerate
14133
14134 \change_deleted 564990737 1670317155
14135 remove the comment lines before the 
14136 \family typewriter
14137
14138 \backslash
14139 documentclass
14140 \family default
14141  command,
14142 \end_layout
14143
14144 \begin_layout Enumerate
14145
14146 \change_deleted 564990737 1670317155
14147 remove everything between (and including) the 
14148 \family typewriter
14149
14150 \backslash
14151 makeatletter
14152 \family default
14153  and 
14154 \family typewriter
14155
14156 \backslash
14157 makeatother
14158 \family default
14159  commands, except for any commands you specifically put into the \SpecialChar LaTeX
14160  preamble.
14161 \end_layout
14162
14163 \begin_layout Standard
14164
14165 \change_deleted 564990737 1670317155
14166 Save the resulting 
14167 \family typewriter
14168 .tex
14169 \family default
14170  file.
14171 \end_layout
14172
14173 \end_deeper
14174 \begin_layout Enumerate
14175
14176 \change_deleted 564990737 1670317155
14177 Run the 
14178 \family typewriter
14179 .tex
14180 \family default
14181  file through \SpecialChar LaTeX
14182  as many times as necessary (usually up to three).
14183 \end_layout
14184
14185 \begin_layout Enumerate
14186
14187 \change_deleted 564990737 1670317155
14188 View the resulting 
14189 \family typewriter
14190 .dvi
14191 \family default
14192  document using, e.
14193 \begin_inset space \thinspace{}
14194 \end_inset
14195
14196 g.
14197 \begin_inset space \space{}
14198 \end_inset
14199
14200
14201 \family sans
14202 xdvi
14203 \family default
14204 , and check if everything is OK (it should, if you didn't make any mistake).
14205 \end_layout
14206
14207 \begin_layout Subsection
14208
14209 \change_deleted 564990737 1670317155
14210 \begin_inset Quotes eld
14211 \end_inset
14212
14213 Peculiarities
14214 \begin_inset Quotes erd
14215 \end_inset
14216
14217  of the Kluwer package
14218 \begin_inset CommandInset label
14219 LatexCommand label
14220 name "subsec:kluwer_peculiarities"
14221
14222 \end_inset
14223
14224
14225 \end_layout
14226
14227 \begin_layout Standard
14228
14229 \change_deleted 564990737 1670317155
14230 The Kluwer package has the following 
14231 \begin_inset Quotes eld
14232 \end_inset
14233
14234 peculiarities
14235 \begin_inset Quotes erd
14236 \end_inset
14237
14238 .
14239 \end_layout
14240
14241 \begin_layout Enumerate
14242
14243 \change_deleted 564990737 1670317155
14244 It is possible to write multiple articles in the same \SpecialChar LaTeX
14245  file
14246 \begin_inset Foot
14247 status collapsed
14248
14249 \begin_layout Plain Layout
14250 I can't imagine any good reason to do this.
14251 \end_layout
14252
14253 \end_inset
14254
14255 .
14256  Each article must be included in the environment 
14257 \begin_inset Quotes eld
14258 \end_inset
14259
14260 article
14261 \begin_inset Quotes erd
14262 \end_inset
14263
14264 .
14265  Unfortunately, this environment cannot be omitted, even if you write just
14266  one article.
14267  Therefore, each article starts with the command 
14268 \family typewriter
14269
14270 \backslash
14271 begin{article}
14272 \family default
14273  and, obviously, ends with the command 
14274 \family typewriter
14275
14276 \backslash
14277 end{article}
14278 \family default
14279 .
14280  Although this can be implemented in \SpecialChar LyX
14281 , I didn't included it, since it looks
14282  ugly and can confuse the novice user.
14283  Therefore, you need to enter them directly and mark them as \SpecialChar LaTeX
14284  code (the
14285  well-known 
14286 \begin_inset Quotes eld
14287 \end_inset
14288
14289 \SpecialChar TeX
14290  code
14291 \begin_inset Quotes erd
14292 \end_inset
14293
14294 ).
14295 \end_layout
14296
14297 \begin_layout Enumerate
14298
14299 \change_deleted 564990737 1670317155
14300 Information given at the beginning of the article (i.
14301 \begin_inset space \thinspace{}
14302 \end_inset
14303
14304 e.
14305 \begin_inset space \space{}
14306 \end_inset
14307
14308 title, subtitle, author, institution, running title, running author, abstract
14309  and keywords) must be included in an environment called 
14310 \begin_inset Quotes eld
14311 \end_inset
14312
14313 opening
14314 \begin_inset Quotes erd
14315 \end_inset
14316
14317 .
14318  This is not implemented in \SpecialChar LyX
14319 , so you must enter title, subtitle etc.
14320 \begin_inset space ~
14321 \end_inset
14322
14323 between two \SpecialChar TeX
14324  code lines (
14325 \family typewriter
14326
14327 \backslash
14328 begin{opening}
14329 \family default
14330  and 
14331 \family typewriter
14332
14333 \backslash
14334 end{opening}
14335 \family default
14336 ).
14337 \end_layout
14338
14339 \begin_layout Enumerate
14340
14341 \change_deleted 564990737 1670317155
14342 According to the user manual, the label of each bibliography item must be
14343  written as 
14344 \family typewriter
14345
14346 \backslash
14347 protect
14348 \backslash
14349 citeauthoryear{
14350 \family default
14351 \emph on
14352 author(s)
14353 \family typewriter
14354 \emph default
14355 }{
14356 \family default
14357 \emph on
14358 year
14359 \family typewriter
14360 \emph default
14361 }
14362 \family default
14363 .
14364 \end_layout
14365
14366 \begin_layout Standard
14367
14368 \change_deleted 564990737 1670317155
14369 The 
14370 \family typewriter
14371 kluwer.lyx
14372 \family default
14373  template takes care of all these 
14374 \begin_inset Quotes eld
14375 \end_inset
14376
14377 peculiarities
14378 \begin_inset Quotes erd
14379 \end_inset
14380
14381 .
14382  If you start a new paper using this template you don't need to do anything
14383  special.
14384  Just 
14385 \end_layout
14386
14387 \begin_layout Enumerate
14388
14389 \change_deleted 564990737 1670317155
14390 don't delete the \SpecialChar TeX
14391  code included in the template, and
14392 \end_layout
14393
14394 \begin_layout Enumerate
14395
14396 \change_deleted 564990737 1670317155
14397 copy the example bibliography item included in the template and modify it
14398  as necessary to enter new bibliography items.
14399 \end_layout
14400
14401 \begin_layout Section
14402 Koma-Script
14403 \end_layout
14404
14405 \begin_layout Standard
14406 by 
14407 \noun on
14408 Bernd Rellermeyer
14409 \end_layout
14410
14411 \begin_layout Subsection
14412 Overview
14413 \end_layout
14414
14415 \begin_layout Standard
14416 The \SpecialChar LyX
14417  document classes 
14418 \emph on
14419 article (koma-script)
14420 \emph default
14421
14422 \emph on
14423 report (koma-script)
14424 \emph default
14425
14426 \emph on
14427 book
14428 \emph default
14429  
14430 \emph on
14431 (koma-script)
14432 \emph default
14433 , and 
14434 \emph on
14435 letter
14436 \emph default
14437  
14438 \emph on
14439 (koma-script)
14440 \emph default
14441  correspond to the \SpecialChar LaTeX
14442  document classes 
14443 \family typewriter
14444 scrartcl.cls
14445 \family default
14446
14447 \family typewriter
14448 scrreprt.cls
14449 \family default
14450
14451 \family typewriter
14452 scrbook.cls
14453 \family default
14454 , and 
14455 \family typewriter
14456 scrlettr.cls
14457 \family default
14458 , resp.
14459 \begin_inset space ~
14460 \end_inset
14461
14462 of the Koma-Script family.
14463  They are replacements for the standard document classes 
14464 \family typewriter
14465 article.cls
14466 \family default
14467
14468 \family typewriter
14469 report.cls
14470 \family default
14471
14472 \family typewriter
14473 book.cls
14474 \family default
14475  and 
14476 \family typewriter
14477 letter.cls
14478 \family default
14479 , resp., and fit better to European typography conventions in a number of
14480  points.
14481 \end_layout
14482
14483 \begin_layout Itemize
14484 Standard character size is 11pt in 
14485 \emph on
14486 article (koma-script)
14487 \emph default
14488
14489 \emph on
14490 report (koma-script)
14491 \emph default
14492 , and 
14493 \emph on
14494 book (koma-script)
14495 \emph default
14496 , and 12pt in 
14497 \emph on
14498 letter (koma-script)
14499 \emph default
14500 .
14501 \end_layout
14502
14503 \begin_layout Itemize
14504 Headings, labels of the description environment, and a number of elements
14505  of the 
14506 \emph on
14507 letter (koma-script)
14508 \emph default
14509  document class are set in a bold sans serif font.
14510 \begin_inset Foot
14511 status collapsed
14512
14513 \begin_layout Plain Layout
14514 There is a big difference between the bold sans serif old cm fonts and new
14515  ec fonts, especially in the appearance of headings.
14516  In comparison, the ec bold sans serif fonts look a bit thin.
14517  Here the \SpecialChar LaTeX
14518  package 
14519 \family typewriter
14520 cmsd.sty by
14521 \family default
14522  
14523 \shape smallcaps
14524 Walter Schmidt
14525 \shape default
14526  helps to produce the 
14527 \begin_inset Quotes eld
14528 \end_inset
14529
14530 usual
14531 \begin_inset Quotes erd
14532 \end_inset
14533
14534  appearance when using the ec fonts.
14535 \end_layout
14536
14537 \end_inset
14538
14539  The numbering of chapter headings is made in the same way as the numbering
14540  of section headings, that is without the extra line 
14541 \begin_inset Quotes eld
14542 \end_inset
14543
14544 Chapter\SpecialChar ldots
14545
14546 \begin_inset Quotes erd
14547 \end_inset
14548
14549 .
14550  In addition, the appearance of the headings can be modified by using a
14551  number of options (in \SpecialChar LyX
14552  to be entered in the field 
14553 \family sans
14554 Extra
14555 \begin_inset space ~
14556 \end_inset
14557
14558 Options
14559 \family default
14560  of the dialog 
14561 \family sans
14562 Layout\SpecialChar menuseparator
14563 Document
14564 \family default
14565 ).
14566  
14567 \end_layout
14568
14569 \begin_layout Itemize
14570 The main means in the Koma-Script document classes to design the type area
14571  are the options 
14572 \family sans
14573 BCOR
14574 \family default
14575  and 
14576 \family sans
14577 DIV
14578 \family default
14579  (in \SpecialChar LyX
14580  to be entered in the extra class options field in the dialog 
14581 \family sans
14582 Document\SpecialChar menuseparator
14583 Settings
14584 \family default
14585 ).
14586  They make a clearer modification of page margins possible as do the options
14587  of the dialog 
14588 \family sans
14589 Document\SpecialChar menuseparator
14590 Settings
14591 \family default
14592 .
14593  
14594 \end_layout
14595
14596 \begin_layout Itemize
14597 The \SpecialChar LaTeX
14598  document classes of the Koma-Script family define a number of additional
14599  commands.
14600  Those part of it which makes sense in \SpecialChar LyX
14601  is implemented in corresponding
14602  paragraph types.
14603 \end_layout
14604
14605 \begin_layout Standard
14606 Detailed descriptions of the \SpecialChar LaTeX
14607  document classes of the Koma-Script family
14608  can be found in the Koma-Script documentation 
14609 \emph on
14610 scrguide
14611 \emph default
14612  (German) and 
14613 \emph on
14614 scrguien
14615 \emph default
14616  (English).
14617 \end_layout
14618
14619 \begin_layout Subsection
14620 article (koma-script), report (koma-script), and book (koma-script)
14621 \end_layout
14622
14623 \begin_layout Standard
14624 The document classes 
14625 \emph on
14626 article (koma-script)
14627 \emph default
14628
14629 \emph on
14630 report (koma-script)
14631 \emph default
14632 , and 
14633 \emph on
14634 book
14635 \emph default
14636  
14637 \emph on
14638 (koma-script)
14639 \emph default
14640  are implemented in the layout files 
14641 \family typewriter
14642 scrartcl.layout
14643 \family default
14644
14645 \family typewriter
14646 scrreprt.layout
14647 \family default
14648 , and 
14649 \family typewriter
14650 scrbook.layout
14651 \family default
14652 , resp.
14653  They contain all the paragraph types of the corresponding standard document
14654  classes 
14655 \emph on
14656 article
14657 \emph default
14658
14659 \emph on
14660 report
14661 \emph default
14662 , and 
14663 \emph on
14664 book
14665 \emph default
14666 , resp., partly modified, with the exception of the \SpecialChar LyX
14667  specific 
14668 \family sans
14669 List
14670 \family default
14671 -type, which is replaced by the new 
14672 \family sans
14673 Labeling
14674 \family default
14675 -type having the same functionality.
14676  Beside the 
14677 \family sans
14678 Labeling
14679 \family default
14680 -Type there is a number of new paragraph types added.
14681  They are 
14682 \emph on
14683 not
14684 \emph default
14685  part of 
14686 \emph on
14687 letter (koma-script)
14688 \emph default
14689 .
14690 \end_layout
14691
14692 \begin_layout Itemize
14693
14694 \family sans
14695 Addpart, Addchap
14696 \family default
14697
14698 \family sans
14699 Addsec
14700 \family default
14701 : are equivalents to 
14702 \family sans
14703 Part*, Chapter*
14704 \family default
14705  and 
14706 \family sans
14707 Section*
14708 \family default
14709 , resp., additionally inserting an entry in the table of contents.
14710  
14711 \family sans
14712 Addpart
14713 \family default
14714  and 
14715 \family sans
14716 Addchap
14717 \family default
14718  are not contained in 
14719 \emph on
14720 article (koma-script)
14721 \emph default
14722 .
14723 \end_layout
14724
14725 \begin_layout Itemize
14726
14727 \family sans
14728 Addchap*
14729 \family default
14730
14731 \family sans
14732 Addsec*
14733 \family default
14734 : behave exactly as 
14735 \family sans
14736 Addchap
14737 \family default
14738  and 
14739 \family sans
14740 Addsec
14741 \family default
14742 , resp., additionally clearing running heads.
14743  
14744 \family sans
14745 Addchap*
14746 \family default
14747  is not contained in 
14748 \emph on
14749 article (koma-script)
14750 \emph default
14751 .
14752 \begin_inset Foot
14753 status collapsed
14754
14755 \begin_layout Plain Layout
14756 There is also an 
14757 \family typewriter
14758
14759 \backslash
14760 addpart*
14761 \family default
14762  command in 
14763 \emph on
14764 book (koma-script)
14765 \emph default
14766  and in 
14767 \emph on
14768 report (koma-script)
14769 \emph default
14770 , but since this is identical to 
14771 \family sans
14772 Part*
14773 \family default
14774 , is has not been implemented in \SpecialChar LyX
14775 .
14776 \end_layout
14777
14778 \end_inset
14779
14780
14781 \end_layout
14782
14783 \begin_layout Itemize
14784
14785 \family sans
14786 Minisec
14787 \family default
14788 : generates a heading directly above the following paragraph in the standard
14789  character size without affecting the structure of the document.
14790 \end_layout
14791
14792 \begin_layout Itemize
14793
14794 \family sans
14795 Captionabove
14796 \family default
14797  and 
14798 \family sans
14799 Captionbelow
14800 \family default
14801  are special captions which respect the different space settings needed
14802  for captions placed above or below an element (if you follow strict typographic
14803  rules, you might want to place table captions always above the table).
14804  You can also use the class option 
14805 \family typewriter
14806 tablecaptionsabove
14807 \family default
14808 , which will switch 
14809 \family sans
14810 caption
14811 \family default
14812  to 
14813 \family sans
14814 captionabove
14815 \family default
14816  for tables and 
14817 \family sans
14818 captionbelow
14819 \family default
14820  for figures.
14821  You need at least Koma-Script version 2.8q to use this.
14822 \end_layout
14823
14824 \begin_layout Itemize
14825
14826 \family sans
14827 Dictum
14828 \family default
14829 : can be used to set a bonmot, e.
14830 \begin_inset space \thinspace{}
14831 \end_inset
14832
14833 g.
14834 \begin_inset space \space{}
14835 \end_inset
14836
14837 at the beginning of a chapter.
14838  If you use the optional argument (
14839 \family sans
14840 Insert\SpecialChar menuseparator
14841 Dictum
14842 \begin_inset space ~
14843 \end_inset
14844
14845 Author
14846 \family default
14847 ), you can insert the dictum's author there.
14848  Dictum and author are separated by a line.
14849  You need at least Koma-Script version 2.8q to use this.
14850  
14851 \family sans
14852 Dictum
14853 \family default
14854  is not contained in 
14855 \emph on
14856 article (koma-script)
14857 \emph default
14858 .
14859 \end_layout
14860
14861 \begin_layout Standard
14862 The following types, together with the standard types 
14863 \family sans
14864 Title
14865 \family default
14866
14867 \family sans
14868 Author
14869 \family default
14870 , and 
14871 \family sans
14872 Date
14873 \family default
14874 , form the title area of the document.
14875  They must be entered ahead of the first 
14876 \begin_inset Quotes eld
14877 \end_inset
14878
14879 ordinary
14880 \begin_inset Quotes erd
14881 \end_inset
14882
14883  paragraph.
14884 \begin_inset Foot
14885 status collapsed
14886
14887 \begin_layout Plain Layout
14888 The corresponding \SpecialChar LaTeX
14889  commands must appear before the 
14890 \family typewriter
14891
14892 \backslash
14893 maketitle
14894 \family default
14895  command.
14896 \end_layout
14897
14898 \end_inset
14899
14900  When such a type is used more than once, the latter usage overwrites the
14901  former one, that means, for every type only the latest usage is valid.
14902  The order of the different types however has, like 
14903 \family sans
14904 Title
14905 \family default
14906
14907 \family sans
14908 Author
14909 \family default
14910 , and 
14911 \family sans
14912 Date
14913 \family default
14914 , no effect on the appearance of the produced document.
14915 \end_layout
14916
14917 \begin_layout Itemize
14918
14919 \family sans
14920 Subject
14921 \family default
14922 : produces a centered paragraph above the ordinary title (
14923 \family sans
14924 Title
14925 \family default
14926
14927 \family sans
14928 Author
14929 \family default
14930
14931 \family sans
14932 Date
14933 \family default
14934 ) for the subject of the document.
14935 \end_layout
14936
14937 \begin_layout Itemize
14938
14939 \family sans
14940 Publishers
14941 \family default
14942 : produces a centered paragraph below the ordinary title (
14943 \family sans
14944 Title
14945 \family default
14946
14947 \family sans
14948 Author
14949 \family default
14950
14951 \family sans
14952 Date
14953 \family default
14954 ) for the publishers' name.
14955 \end_layout
14956
14957 \begin_layout Itemize
14958
14959 \family sans
14960 Dedication
14961 \family default
14962 : in 
14963 \emph on
14964 report (koma-script)
14965 \emph default
14966  and 
14967 \emph on
14968 book (koma-script)
14969 \emph default
14970  produces a centered paragraph on its own page behind the title page, or
14971  in 
14972 \emph on
14973 article (koma-script)
14974 \emph default
14975  produces a centered paragraph below the ordinary title (
14976 \family sans
14977 Title
14978 \family default
14979
14980 \family sans
14981 Author
14982 \family default
14983
14984 \family sans
14985 Date
14986 \family default
14987
14988 \family sans
14989 Publishers
14990 \family default
14991 ) for a dedication.
14992 \end_layout
14993
14994 \begin_layout Itemize
14995
14996 \family sans
14997 Titlehead
14998 \family default
14999 : produces a left aligned paragraph above the ordinary title (
15000 \family sans
15001 Title
15002 \family default
15003
15004 \family sans
15005 Author
15006 \family default
15007
15008 \family sans
15009 Date
15010 \family default
15011
15012 \family sans
15013 Subject
15014 \family default
15015 ) for a document`s head.
15016 \end_layout
15017
15018 \begin_layout Itemize
15019
15020 \family sans
15021 Uppertitleback
15022 \family default
15023 : produces in a double-sided print in 
15024 \emph on
15025 report (koma-script)
15026 \emph default
15027  and 
15028 \emph on
15029 book (koma-script)
15030 \emph default
15031  a left-aligned paragraph at the top of the title page`s back or has no
15032  effect in a single-sided print or in 
15033 \emph on
15034 article (koma-script)
15035 \emph default
15036 .
15037 \end_layout
15038
15039 \begin_layout Itemize
15040
15041 \family sans
15042 Lowertitleback
15043 \family default
15044 : produces in a double-sided print in 
15045 \emph on
15046 report (koma-script)
15047 \emph default
15048  and 
15049 \emph on
15050 book (koma-script)
15051 \emph default
15052  a left-aligned paragraph at the bottom of the title page`s back or has
15053  no effect in a single-sided print or in 
15054 \emph on
15055 article (koma-script)
15056 \emph default
15057 .
15058 \end_layout
15059
15060 \begin_layout Itemize
15061
15062 \family sans
15063 Extratitle
15064 \family default
15065 : produces a special 
15066 \begin_inset Quotes eld
15067 \end_inset
15068
15069 dirty
15070 \begin_inset Quotes erd
15071 \end_inset
15072
15073  page ahead of the actual document containing a paragraph without special
15074  formatting.
15075 \end_layout
15076
15077 \begin_layout Standard
15078 The layout files for the document classes 
15079 \emph on
15080 article (koma-script)
15081 \emph default
15082
15083 \emph on
15084 report (koma-script)
15085 \emph default
15086 , and 
15087 \emph on
15088 book (koma-script)
15089 \emph default
15090  do include the file 
15091 \family typewriter
15092 scrmacros.inc
15093 \family default
15094 .
15095  This is thought of as a place to define your own types.
15096  Copy scrmacros
15097 \family typewriter
15098 .inc
15099 \family default
15100  in your personal layout directory and edit the file!
15101 \end_layout
15102
15103 \begin_layout Subsection
15104 letter (koma-script)
15105 \end_layout
15106
15107 \begin_layout Description
15108 Note: This section discusses the obsolete 
15109 \family sans
15110 KOMA-Script-Letter (v.
15111 \begin_inset space ~
15112 \end_inset
15113
15114 1)
15115 \family default
15116 , which is not even included anymore in recent KOMA releases.
15117  Please refer to the next section for the current KOMA-Script-Letter class
15118  (v.
15119 \begin_inset space ~
15120 \end_inset
15121
15122 2)!
15123 \end_layout
15124
15125 \begin_layout Standard
15126 \noindent
15127 The document class 
15128 \emph on
15129 letter (koma-script)
15130 \emph default
15131  is implemented in the layout file 
15132 \family typewriter
15133 scrlettr.layout
15134 \family default
15135 .
15136  It contains all the paragraph types of the corresponding standard document
15137  class 
15138 \emph on
15139 letter
15140 \emph default
15141 , partly modified, with the exception of the \SpecialChar LyX
15142  specific types 
15143 \family sans
15144 \SpecialChar LyX
15145 -Code
15146 \family default
15147  and 
15148 \family sans
15149 Comment
15150 \family default
15151  and the 
15152 \family sans
15153 List
15154 \family default
15155  type, which is replaced by the new 
15156 \family sans
15157 Labeling
15158 \family default
15159  type.
15160  In addition, it contains, in contrast to the standard document class, the
15161  standard types 
15162 \family sans
15163 \SpecialChar LaTeX
15164
15165 \family default
15166
15167 \family sans
15168 Quotation
15169 \family default
15170
15171 \family sans
15172 Quote
15173 \family default
15174 , and 
15175 \family sans
15176 Verse
15177 \family default
15178 .
15179  Furthermore, there are a number of new letter specific types.
15180 \end_layout
15181
15182 \begin_layout Standard
15183 The appearance of the letter produced by this document class can be controlled
15184  by a number of \SpecialChar LaTeX
15185  commands, which you can put in the \SpecialChar LaTeX
15186  preamble.
15187 \begin_inset Foot
15188 status collapsed
15189
15190 \begin_layout Plain Layout
15191 For example, the standard appearance of the letter`s heading, consisting
15192  of name and address, is quite self-willed.
15193  An 
15194 \begin_inset Quotes eld
15195 \end_inset
15196
15197 ordinary
15198 \begin_inset Quotes erd
15199 \end_inset
15200
15201  heading is produced by the following \SpecialChar LaTeX
15202  commands in the preamble:
15203 \end_layout
15204
15205 \begin_layout LyX-Code
15206
15207 \backslash
15208 firsthead{
15209 \backslash
15210 parbox[b]{
15211 \backslash
15212 textwidth}
15213 \end_layout
15214
15215 \begin_layout LyX-Code
15216   {
15217 \backslash
15218 ignorespaces 
15219 \backslash
15220 fromname
15221 \backslash
15222
15223 \backslash
15224  
15225 \backslash
15226 ignorespaces 
15227 \backslash
15228 fromaddress}} 
15229 \end_layout
15230
15231 \begin_layout LyX-Code
15232
15233 \backslash
15234 nexthead{
15235 \backslash
15236 parbox[b]{
15237 \backslash
15238 textwidth}
15239 \end_layout
15240
15241 \begin_layout LyX-Code
15242   {
15243 \backslash
15244 ignorespaces 
15245 \backslash
15246 fromname 
15247 \backslash
15248 hfill 
15249 \backslash
15250 ignorespaces 
15251 \backslash
15252 pagename
15253 \backslash
15254  
15255 \backslash
15256 thepage}}
15257 \end_layout
15258
15259 \end_inset
15260
15261  A detailed German description of such \SpecialChar LaTeX
15262  commands can be found in the Koma-Script
15263  documentation 
15264 \emph on
15265 scrguide
15266 \emph default
15267 .
15268  With it, the letter's author can produce his personal letter layout.
15269 \end_layout
15270
15271 \begin_layout Standard
15272 The types 
15273 \family sans
15274 Letter
15275 \family default
15276  and 
15277 \family sans
15278 Opening
15279 \family default
15280  define the beginning of the letter and must be used in every letter.
15281  To emphasize them in the \SpecialChar LyX
15282  document class, they are marked with the letter
15283  
15284 \shape italic
15285 L
15286 \shape default
15287  or 
15288 \shape italic
15289 O
15290 \shape default
15291 , resp.
15292 \begin_inset space ~
15293 \end_inset
15294
15295 in the left margin.
15296  It is possible to write any number of letters in one file.
15297  An 
15298 \family sans
15299 Opening
15300 \family default
15301  type produces a new letter using the same addressee and a 
15302 \family sans
15303 Letter
15304 \family default
15305  type produces a new addressee.
15306  The types 
15307 \family sans
15308 Closing
15309 \family default
15310
15311 \family sans
15312 PS
15313 \family default
15314
15315 \family sans
15316 CC
15317 \family default
15318 , and 
15319 \family sans
15320 Encl
15321 \family default
15322  are ordinary paragraph types and can also be used several times in one
15323  and the same letter.
15324 \end_layout
15325
15326 \begin_layout Itemize
15327
15328 \family sans
15329 Letter
15330 \family default
15331 : produces a paragraph for the addressee and implicitly defines the beginning
15332  of the letter.
15333 \end_layout
15334
15335 \begin_layout Itemize
15336
15337 \family sans
15338 Opening
15339 \family default
15340 : produces a paragraph for the form of address and implicitly produces a
15341  new letter.
15342 \end_layout
15343
15344 \begin_layout Itemize
15345
15346 \family sans
15347 Closing
15348 \family default
15349 : produces a paragraph for a close.
15350 \end_layout
15351
15352 \begin_layout Itemize
15353
15354 \family sans
15355 PS
15356 \family default
15357 : produces a paragraph for a postscript.
15358 \end_layout
15359
15360 \begin_layout Itemize
15361
15362 \family sans
15363 CC
15364 \family default
15365 : produces a paragraph for a distribution list.
15366 \end_layout
15367
15368 \begin_layout Itemize
15369
15370 \family sans
15371 Encl
15372 \family default
15373 : produces a paragraph for enclosures.
15374 \end_layout
15375
15376 \begin_layout Standard
15377 The types 
15378 \family sans
15379 Name
15380 \family default
15381
15382 \family sans
15383 Signature
15384 \family default
15385
15386 \family sans
15387 Address
15388 \family default
15389
15390 \family sans
15391 Telephone
15392 \family default
15393
15394 \family sans
15395 Place
15396 \family default
15397
15398 \family sans
15399 Backaddress
15400 \family default
15401
15402 \family sans
15403 Specialmail
15404 \family default
15405
15406 \family sans
15407 Location
15408 \family default
15409
15410 \family sans
15411 Title
15412 \family default
15413 , and 
15414 \family sans
15415 Subject
15416 \family default
15417  are input types provided with a label to enter information, which will
15418  be processed by the document class.
15419 \begin_inset Foot
15420 status collapsed
15421
15422 \begin_layout Plain Layout
15423 It could be seen as a matter of inconsequence, that the types 
15424 \family sans
15425 Letter
15426 \family default
15427  and 
15428 \family sans
15429 Opening
15430 \family default
15431  described above are not such input types as well.
15432  Because of the special meaning of those types, however, I have implemented
15433  them as ordinary paragraph types with a one letter mark in the left margin.
15434  Moreover, it would affect my feeling of symmetry, if the 
15435 \family sans
15436 Opening
15437 \family default
15438  type and the 
15439 \family sans
15440 Closing
15441 \family default
15442  type had such a serious different appearance.
15443 \end_layout
15444
15445 \end_inset
15446
15447  The types must be used ahead of the corresponding 
15448 \family sans
15449 Opening
15450 \family default
15451  type.
15452 \end_layout
15453
15454 \begin_layout Standard
15455 An implementation of these types in a WYSIWYG fashion does not seem to make
15456  sense, because the real appearance of the produced letter does not only
15457  depend on the usage of the particular type, but also on other factors.
15458  For example, a signature entered in the 
15459 \family sans
15460 Signature
15461 \family default
15462  type will in the standard behavior appear in the produced letter only,
15463  when in the same letter also a 
15464 \family sans
15465 Closing
15466 \family default
15467  type is used.
15468  The entered value of the 
15469 \family sans
15470 Telephone
15471 \family default
15472  type will in the standard behavior not appear in the produced letter at
15473  all.
15474  The possibility to design the letter`s heading freely is already indicated
15475  in a footnote above.
15476 \end_layout
15477
15478 \begin_layout Standard
15479 The input types can also be used as empty paragraphs.
15480  This makes sense e.
15481 \begin_inset space \thinspace{}
15482 \end_inset
15483
15484 g.
15485 \begin_inset space \space{}
15486 \end_inset
15487
15488 for the 
15489 \family sans
15490 Signature
15491 \family default
15492  type.
15493  If the 
15494 \family sans
15495 Signature
15496 \family default
15497  type is not used at all, in the standard behavior the value of the 
15498 \family sans
15499 Name
15500 \family default
15501  type is used as signature, whereas if an empty 
15502 \family sans
15503 Signature
15504 \family default
15505  type is used, no signature value is defined.
15506 \end_layout
15507
15508 \begin_layout Standard
15509 By using the input types it is possible to write a letter template, containing
15510  filled input types with your personal dates (name, address, etc.) and empty
15511  input types for other dates you want to enter.
15512 \end_layout
15513
15514 \begin_layout Itemize
15515
15516 \family sans
15517 Name
15518 \family default
15519 : sender's name, in the standard behavior appears as a centered paragraph
15520  in small caps in the letter`s heading.
15521 \end_layout
15522
15523 \begin_layout Itemize
15524
15525 \family sans
15526 Signature
15527 \family default
15528 : sender's signature, in the standard behavior appears below the 
15529 \family sans
15530 Closing
15531 \family default
15532  type.
15533  If no 
15534 \family sans
15535 Signature
15536 \family default
15537  type is used, the value of the 
15538 \family sans
15539 Name
15540 \family default
15541  type appears instead.
15542 \end_layout
15543
15544 \begin_layout Itemize
15545
15546 \family sans
15547 Address
15548 \family default
15549 : sender's address, in the standard behavior appears in a centered paragraph
15550  in the letter`s heading below the sender's name.
15551 \end_layout
15552
15553 \begin_layout Itemize
15554
15555 \family sans
15556 Telephone
15557 \family default
15558 : sender's telephone number, in the standard behavior only sets the \SpecialChar LaTeX
15559  variable
15560  
15561 \family typewriter
15562
15563 \backslash
15564 telephonenum
15565 \family default
15566 .
15567 \end_layout
15568
15569 \begin_layout Itemize
15570
15571 \family sans
15572 Place
15573 \family default
15574 : place of the letter`s making.
15575 \end_layout
15576
15577 \begin_layout Itemize
15578
15579 \family sans
15580 Date
15581 \family default
15582 : date of the letter`s making.
15583  
15584 \family sans
15585 Place
15586 \family default
15587  and 
15588 \family sans
15589 Date
15590 \family default
15591 , in the standard behavior, produce the place and the date in a right-aligned
15592  line below the addressee's field.
15593  If an empty 
15594 \family sans
15595 Date
15596 \family default
15597  type is used, neither place nor date appear, independent of the value of
15598  the 
15599 \family sans
15600 Place
15601 \family default
15602  type.
15603  If no 
15604 \family sans
15605 Date
15606 \family default
15607  type is used, the date of the letter `s production is used.
15608 \end_layout
15609
15610 \begin_layout Itemize
15611
15612 \family sans
15613 Backaddress
15614 \family default
15615 : sender`s back address, in the standard behavior appears above the addressee's
15616  field in a small sans serif font.
15617 \end_layout
15618
15619 \begin_layout Itemize
15620
15621 \family sans
15622 Specialmail
15623 \family default
15624 : special mail information, in the standard behavior appears underlined
15625  above the addressee's field below the back address.
15626 \end_layout
15627
15628 \begin_layout Itemize
15629
15630 \family sans
15631 Location
15632 \family default
15633 : additional information, in the standard behavior appears on right side
15634  below the addressee`s field.
15635 \end_layout
15636
15637 \begin_layout Itemize
15638
15639 \family sans
15640 Title
15641 \family default
15642 : the letter's title, in the standard behavior appears in a big, bold, sans
15643  serif font above the subject.
15644 \end_layout
15645
15646 \begin_layout Itemize
15647
15648 \family sans
15649 Subject
15650 \family default
15651 : the letter's subject, in the standard behavior appears in a bold font
15652  above the 
15653 \family sans
15654 Opening
15655 \family default
15656  paragraph.
15657 \end_layout
15658
15659 \begin_layout Standard
15660 The types 
15661 \family sans
15662 Yourref
15663 \family default
15664
15665 \family sans
15666 Yourmail
15667 \family default
15668
15669 \family sans
15670 Myref
15671 \family default
15672
15673 \family sans
15674 Customer
15675 \family default
15676 , and 
15677 \family sans
15678 Invoice
15679 \family default
15680  produce a business letter like line above the 
15681 \family sans
15682 Title
15683 \family default
15684  line containing the fields 
15685 \begin_inset Quotes eld
15686 \end_inset
15687
15688 Your ref.
15689 \begin_inset Quotes erd
15690 \end_inset
15691
15692
15693 \begin_inset Quotes eld
15694 \end_inset
15695
15696 Your letter of
15697 \begin_inset Quotes erd
15698 \end_inset
15699
15700
15701 \begin_inset Quotes eld
15702 \end_inset
15703
15704 Our ref.
15705 \begin_inset Quotes erd
15706 \end_inset
15707
15708
15709 \begin_inset Quotes eld
15710 \end_inset
15711
15712 Customer no.
15713 \begin_inset Quotes erd
15714 \end_inset
15715
15716
15717 \begin_inset Quotes eld
15718 \end_inset
15719
15720 Invoice no.
15721 \begin_inset Quotes erd
15722 \end_inset
15723
15724 , and 
15725 \begin_inset Quotes eld
15726 \end_inset
15727
15728 Date
15729 \begin_inset Quotes erd
15730 \end_inset
15731
15732 .
15733  For the date field, the value of the 
15734 \family sans
15735 Date
15736 \family default
15737  type is used.
15738  If one of these 
15739 \begin_inset Quotes eld
15740 \end_inset
15741
15742 business letter types
15743 \begin_inset Quotes erd
15744 \end_inset
15745
15746  is used, the value of the 
15747 \family sans
15748 Place
15749 \family default
15750  type however does not appear, but only the \SpecialChar LaTeX
15751  variable 
15752 \family typewriter
15753
15754 \backslash
15755 fromplace
15756 \family default
15757  is set.
15758  The ordinary output of place and date in a right-aligned line below the
15759  addressee`s field is suppressed.
15760  The types are implemented as input types provided with a label and must
15761  be used ahead of the corresponding 
15762 \family sans
15763 Opening
15764 \family default
15765  type.
15766 \end_layout
15767
15768 \begin_layout Itemize
15769
15770 \family sans
15771 Yourref
15772 \family default
15773 : Your ref.
15774 \end_layout
15775
15776 \begin_layout Itemize
15777
15778 \family sans
15779 Yourmail
15780 \family default
15781 : Your letter of.
15782 \end_layout
15783
15784 \begin_layout Itemize
15785
15786 \family sans
15787 Myref
15788 \family default
15789 : Our ref.
15790 \end_layout
15791
15792 \begin_layout Itemize
15793
15794 \family sans
15795 Customer
15796 \family default
15797 : Customer no.
15798 \end_layout
15799
15800 \begin_layout Itemize
15801
15802 \family sans
15803 Invoice
15804 \family default
15805 : Invoice no.
15806 \end_layout
15807
15808 \begin_layout Subsection
15809 The new letter class: letter (koma-script v.2)
15810 \end_layout
15811
15812 \begin_layout Standard
15813 by 
15814 \noun on
15815 Jürgen Spitzmüller
15816 \end_layout
15817
15818 \begin_layout Standard
15819 \begin_inset VSpace medskip
15820 \end_inset
15821
15822
15823 \end_layout
15824
15825 \begin_layout Standard
15826 \noindent
15827 Koma-Script version 2.8 has introduced a new letter class 
15828 \family typewriter
15829 scrlttr2
15830 \family default
15831  which supersedes the now unsupported 
15832 \family typewriter
15833 scrlettr
15834 \family default
15835 .
15836  It has — on the \SpecialChar LaTeX
15837  side — a completely new interface and is not compatible
15838  with the old class.
15839  Therefore, \SpecialChar LyX
15840  supports both, though it is recommended you use the new class.
15841 \end_layout
15842
15843 \begin_layout Standard
15844 This class covers the same functionality as 
15845 \emph on
15846 letter (koma-script),
15847 \emph default
15848  and a few more.
15849  The basic items are 
15850 \family sans
15851 Address
15852 \family default
15853  (receiver's address, same as 
15854 \family sans
15855 Letter
15856 \family default
15857  in the old layout), 
15858 \family sans
15859 Opening
15860 \family default
15861 , and 
15862 \family sans
15863 Closing
15864 \family default
15865 .
15866  
15867 \family sans
15868 NextAddress
15869 \family default
15870  will start a new letter (i.
15871 \begin_inset space \thinspace{}
15872 \end_inset
15873
15874 e.
15875 \begin_inset space \space{}
15876 \end_inset
15877
15878 you can write several letters per document).
15879  New elements are sender's 
15880 \family sans
15881 E-Mail
15882 \family default
15883
15884 \family sans
15885 URL
15886 \family default
15887
15888 \family sans
15889 Fax
15890 \family default
15891
15892 \family sans
15893 Bank
15894 \family default
15895  and the possibility to use a 
15896 \family sans
15897 Logo
15898 \family default
15899  (via 
15900 \family sans
15901 Insert\SpecialChar menuseparator
15902 Graphics
15903 \family default
15904 ) in the header.
15905 \end_layout
15906
15907 \begin_layout Standard
15908 The biggest improvement is, though, that the letter's layout is configurable
15909  to meet almost any needs.
15910  This can be done via the preamble or with a special style file (Letter
15911  Class Option, extension 
15912 \family typewriter
15913 *.lco
15914 \family default
15915 ), that will be read in as a class option.
15916 \begin_inset Foot
15917 status collapsed
15918
15919 \begin_layout Plain Layout
15920 The KOMA package comes with some default 
15921 \family typewriter
15922 *.lco
15923 \family default
15924  files.
15925  There is, for instance, a 
15926 \family typewriter
15927 DIN.lco
15928 \family default
15929  file that follows german typesetting rules, or a 
15930 \family typewriter
15931 KOMAold.lco
15932 \family default
15933  that provides the default layout of the old 
15934 \family typewriter
15935 scrlettr
15936 \family default
15937  class.
15938  The latter can be loaded with the class option 
15939 \family typewriter
15940 KOMAold
15941 \family default
15942 , inserted via the 
15943 \family sans
15944 Layout\SpecialChar menuseparator
15945 Document\SpecialChar menuseparator
15946 Extra Options
15947 \family default
15948  field.
15949 \end_layout
15950
15951 \end_inset
15952
15953  Have a look at the 
15954 \emph on
15955 koma-letter2
15956 \emph default
15957  template that is included in \SpecialChar LyX
15958  for examples.
15959  A detailed description is to be found in the Koma-Script documentation
15960  (
15961 \emph on
15962 scrguide
15963 \emph default
15964 ).
15965 \end_layout
15966
15967 \begin_layout Subsection
15968 Problems
15969 \end_layout
15970
15971 \begin_layout Standard
15972 Visualizing the Koma-Script document classes in \SpecialChar LyX
15973 , the \SpecialChar LyX
15974  internals cause some
15975  problems.
15976 \end_layout
15977
15978 \begin_layout Itemize
15979 The chapter number of a 
15980 \family sans
15981 Chapter
15982 \family default
15983  type appears on a line of its own above the chapter heading instead of
15984  appearing in the same line ahead of it.
15985  The cause for that is the \SpecialChar LyX
15986  internal behavior for the labeltype 
15987 \family sans
15988 Counter_Chapter
15989 \family default
15990  in the layout file.
15991 \end_layout
15992
15993 \begin_layout Itemize
15994 The headings of the types 
15995 \family sans
15996 Addchap
15997 \family default
15998  and 
15999 \family sans
16000 Addsec
16001 \family default
16002  are only put in the 
16003 \begin_inset Quotes eld
16004 \end_inset
16005
16006 true
16007 \begin_inset Quotes erd
16008 \end_inset
16009
16010  \SpecialChar LaTeX
16011  table of contents, but not in the \SpecialChar LyX
16012  table of contents (
16013 \family sans
16014 Document\SpecialChar menuseparator
16015 Table
16016 \begin_inset space ~
16017 \end_inset
16018
16019 of
16020 \begin_inset space ~
16021 \end_inset
16022
16023 Contents
16024 \family default
16025 ).
16026 \end_layout
16027
16028 \begin_layout Itemize
16029 The paragraphs in a 
16030 \emph on
16031 letter
16032 \emph default
16033  document class appear in a skip separation mode, not indented.
16034  This is the standard behavior, no special \SpecialChar LaTeX
16035  commands are needed for that.
16036  But in the 
16037 \family sans
16038 Document\SpecialChar menuseparator
16039 Settings
16040 \family default
16041  dialog the corresponding radio button indicates 
16042 \family sans
16043 Indent
16044 \family default
16045 .
16046  A 
16047 \family sans
16048 Skip
16049 \family default
16050  value always has the effect that extra \SpecialChar LaTeX
16051  commands are inserted in the document
16052  to produce the gap, which is not what is wanted in this case.
16053 \end_layout
16054
16055 \begin_layout Section
16056 Memoir
16057 \end_layout
16058
16059 \begin_layout Standard
16060 By 
16061 \noun on
16062 Jürgen Spitzmüller
16063 \end_layout
16064
16065 \begin_layout Subsection
16066 Overview
16067 \end_layout
16068
16069 \begin_layout Standard
16070 Memoir is a very powerful and constantly evolving class.
16071  It has been designed with regard to fictional and non-fictional literature.
16072  Its aim is to let the user have maximum control over the typesetting of
16073  his document.
16074  Memoir is based on the standard book class, but it can also emulate the
16075  article class (see below).
16076 \end_layout
16077
16078 \begin_layout Standard
16079 Peter Wilson, the developer of Memoir, is known as the author of lots of
16080  useful packages in the \SpecialChar LaTeX
16081  world.
16082  Most of them have been merged with Memoir.
16083  Therefore, it is much easier to layout the table of contents, appendices,
16084  chapter designs and such.
16085  \SpecialChar LyX
16086 , though, does not support all of these goodies natively.
16087  Some of them might be added to forthcoming releases
16088 \begin_inset Foot
16089 status collapsed
16090
16091 \begin_layout Plain Layout
16092 You are invited to send suggestions to 
16093 \begin_inset Flex URL
16094 status collapsed
16095
16096 \begin_layout Plain Layout
16097
16098 lyx-devel@lists.lyx.org
16099 \end_layout
16100
16101 \end_inset
16102
16103 .
16104 \end_layout
16105
16106 \end_inset
16107
16108 , lots will probably never be supported, due to the limitations of \SpecialChar LyX
16109 's framework.
16110  Of course you can still use all features with the help of some native \SpecialChar LaTeX
16111
16112  commands (\SpecialChar TeX
16113  code
16114 \begin_inset Foot
16115 status collapsed
16116
16117 \begin_layout Plain Layout
16118 Cf.
16119 \begin_inset ERT
16120 status collapsed
16121
16122 \begin_layout Plain Layout
16123
16124
16125 \backslash
16126  
16127 \end_layout
16128
16129 \end_inset
16130
16131 section
16132 \begin_inset space ~
16133 \end_inset
16134
16135
16136 \begin_inset CommandInset ref
16137 LatexCommand ref
16138 reference "sec:Inserting-TeX-Code"
16139
16140 \end_inset
16141
16142  for details.
16143 \end_layout
16144
16145 \end_inset
16146
16147 ).
16148  In this section, we can only list those features that are natively supported
16149  by \SpecialChar LyX
16150 .
16151  For detailed descriptions (and for the rest of features) we recommend you
16152  have a look at the detailed manual of the Memoir class
16153 \begin_inset Foot
16154 status collapsed
16155
16156 \begin_layout Plain Layout
16157 Cf.
16158 \begin_inset ERT
16159 status collapsed
16160
16161 \begin_layout Plain Layout
16162
16163
16164 \backslash
16165  
16166 \end_layout
16167
16168 \end_inset
16169
16170
16171 \begin_inset Flex URL
16172 status collapsed
16173
16174 \begin_layout Plain Layout
16175
16176 CTAN:/macros/latex/memoir/memman.pdf
16177 \end_layout
16178
16179 \end_inset
16180
16181 .
16182 \end_layout
16183
16184 \end_inset
16185
16186 , which is not only a user guide for the class, but also both a comprehensive
16187  description on good typesetting and a superb example for good typesetting
16188  itself.
16189 \end_layout
16190
16191 \begin_layout Subsection
16192 Basic features and restrictions
16193 \end_layout
16194
16195 \begin_layout Standard
16196 Memoir supports basically all features of the standard book classes.
16197  There are, however, some differences, as follows:
16198 \end_layout
16199
16200 \begin_layout Description
16201 Font
16202 \begin_inset space ~
16203 \end_inset
16204
16205 sizes: Memoir has a broader range of font sizes: 9, 10, 11, 12, 14, 17
16206 \end_layout
16207
16208 \begin_layout Description
16209 Page
16210 \begin_inset space ~
16211 \end_inset
16212
16213 style: The fancy page style is not supported, due to a command clash between
16214  Memoir and the fancyhdr package (they both define a command with the same
16215  name, which confuses \SpecialChar LaTeX
16216 ).
16217  Instead, Memoir comes with a number of its own page styles (see 
16218 \family sans
16219 Document\SpecialChar menuseparator
16220 Settings\SpecialChar menuseparator
16221 Page
16222 \begin_inset space ~
16223 \end_inset
16224
16225 Style
16226 \family default
16227 ).
16228  If you want to use these for the chapter pages, you have to use the command
16229  
16230 \family typewriter
16231
16232 \backslash
16233 chapterstyle
16234 \family default
16235  in the main text or in preamble (e.
16236 \begin_inset space \thinspace{}
16237 \end_inset
16238
16239 g.
16240 \begin_inset space \space{}
16241 \end_inset
16242
16243
16244 \family typewriter
16245
16246 \backslash
16247 chapterstyle{companion}
16248 \family default
16249 ).
16250 \end_layout
16251
16252 \begin_layout Description
16253 Sectioning: Sectionings (chapter, section, subsection etc.) come with an
16254  optional argument in the standard classes.
16255  With this, you can specify an alternative version of the title for the
16256  table of contents and the headers (for instance, if the title is too long).
16257  In \SpecialChar LyX
16258 , you can do this via 
16259 \family sans
16260 Insert\SpecialChar menuseparator
16261 Short
16262 \begin_inset space ~
16263 \end_inset
16264
16265 Title
16266 \family default
16267  at the beginning of a chapter/section.
16268  Memoir features a second optional argument and thus separates the table
16269  of contents from the header.
16270  You can define three variants of a title with this: one for the main text,
16271  one for the table of contents, and one for the headers.
16272  \SpecialChar LyX
16273  makes these available in form of specific 
16274 \family sans
16275 Short Title
16276 \family default
16277  variants in the 
16278 \family sans
16279 Insert
16280 \family default
16281  menu.
16282 \end_layout
16283
16284 \begin_layout Description
16285 TOC/LOT/LOF: In the standard classes (and in many other classes), the table
16286  of contents, the list of figures and the list of table start a new page
16287  automatically.
16288  Memoir does not follow this route.
16289  You have to insert a page break yourself, if you want to have one.
16290 \end_layout
16291
16292 \begin_layout Description
16293 Titlepage: For some unknown reason, Memoir uses pagination on the title
16294  page (in the standard classes, title pages are 
16295 \begin_inset Quotes eld
16296 \end_inset
16297
16298 empty
16299 \begin_inset Quotes erd
16300 \end_inset
16301
16302 ).
16303  If you want an empty title page, type 
16304 \family typewriter
16305
16306 \backslash
16307 aliaspagestyle{title}{empty}
16308 \family default
16309  in the preamble.
16310 \end_layout
16311
16312 \begin_layout Description
16313 Article: With the class option 
16314 \emph on
16315 article
16316 \emph default
16317  (to be inserted in 
16318 \family sans
16319 Document\SpecialChar menuseparator
16320 Settings\SpecialChar menuseparator
16321 Class Settings\SpecialChar menuseparator
16322 Custom
16323 \begin_inset space ~
16324 \end_inset
16325
16326 Options
16327 \family default
16328 ), you can emulate article style.
16329  That is, counters (footnotes, figures, tables etc.) will not be reset on
16330  new chapters, chapters don't start a new page (but are—in contrary to 
16331 \begin_inset Quotes eld
16332 \end_inset
16333
16334 real
16335 \begin_inset Quotes erd
16336 \end_inset
16337
16338  article classes—still allowed), parts, though, use their own page, as in
16339  book.
16340 \end_layout
16341
16342 \begin_layout Description
16343 Oldfontcommands: By default, Memoir does not allow the use of the deprecated
16344  font commands, which have been used in the old \SpecialChar LaTeX
16345  version 2.09 (e.
16346 \begin_inset space \thinspace{}
16347 \end_inset
16348
16349 g.
16350 \begin_inset space \space{}
16351 \end_inset
16352
16353
16354 \family typewriter
16355
16356 \backslash
16357 rm
16358 \family default
16359
16360 \family typewriter
16361
16362 \backslash
16363 it
16364 \family default
16365 ).
16366  It produces an error and stops \SpecialChar LaTeX
16367  whenever such a command appears.
16368  The class option 
16369 \emph on
16370 oldfontcommands
16371 \emph default
16372  reallows the commands and spits out warnings instead (which does at least
16373  not stop \SpecialChar LaTeX
16374 ).
16375  Since a lot of packages and particularly Bib\SpecialChar TeX
16376  style files are still using
16377  those commands, we have decided to use this option by default.
16378 \end_layout
16379
16380 \begin_layout Subsection
16381 Extra features
16382 \end_layout
16383
16384 \begin_layout Standard
16385 We will only describe the features supported by \SpecialChar LyX
16386  (which is not much currently).
16387  Please consult the Memoir manual
16388 \begin_inset Foot
16389 status collapsed
16390
16391 \begin_layout Plain Layout
16392 Cf.
16393 \begin_inset ERT
16394 status collapsed
16395
16396 \begin_layout Plain Layout
16397
16398
16399 \backslash
16400  
16401 \end_layout
16402
16403 \end_inset
16404
16405
16406 \begin_inset Flex URL
16407 status collapsed
16408
16409 \begin_layout Plain Layout
16410
16411 CTAN:/macros/latex/memoir/memman.pdf
16412 \end_layout
16413
16414 \end_inset
16415
16416 .
16417 \end_layout
16418
16419 \end_inset
16420
16421  for details.
16422 \end_layout
16423
16424 \begin_layout Description
16425 Abstract: You may wonder why an abstract is an extra feature.
16426  Well, it is in book class.
16427  Usually books don't have abstracts.
16428  Memoir, however, has.
16429  You can use it wherever and how often you like.
16430 \end_layout
16431
16432 \begin_layout Description
16433 Chapterprecis: You may know this older typesetting style: The contents of
16434  a chapter are summarized below the title and also in the table of contents
16435  (e.
16436 \begin_inset space \thinspace{}
16437 \end_inset
16438
16439 g.
16440 \begin_inset space \space{}
16441 \end_inset
16442
16443
16444 \emph on
16445 Our hero arrives in Troia; he loses some friends; he finds others
16446 \emph default
16447 ).
16448  Chapterprecis does exactly this.
16449  It is therefore only sensible below a chapter.
16450 \end_layout
16451
16452 \begin_layout Description
16453 Epigraph: An epigraph is a smart slogan or motto at the beginning of a chapter.
16454  The epigraph environment provides an elegant way of typesetting such a
16455  motto.
16456  The motto itself (text) and its (optional) author (source) are divided
16457  by a short line.
16458  The author (source) can be inserted via 
16459 \family sans
16460 Insert\SpecialChar menuseparator
16461 Epigraph Source
16462 \family default
16463 \emph on
16464 .
16465 \end_layout
16466
16467 \begin_layout Description
16468 Poemtitle: Memoir has lots of possibilities to typeset poetry (up to very
16469  complex figurative poems).
16470  \SpecialChar LyX
16471  can only support a few of them.
16472  One is poemtitle, which is a centered title for poems, which will also
16473  be added to the table of contents (verse is the standard environment for
16474  poems.
16475  Memoir has some enhanced versions of verse, but you need to use \SpecialChar TeX
16476  code,
16477  because they have to be nested inside regular verse environments, which
16478  is not possible with \SpecialChar LyX
16479 ).
16480 \end_layout
16481
16482 \begin_layout Description
16483 Poemtitle*: Same as poemtitle, but it adds no entry to the table of contents.
16484 \end_layout
16485
16486 \begin_layout Section
16487 Article (mwart), book (mwbk) and report (mwrep)
16488 \begin_inset Argument status
16489 status collapsed
16490
16491 \begin_layout Plain Layout
16492 The 
16493 \family typewriter
16494 mw
16495 \family default
16496  Classes
16497 \end_layout
16498
16499 \end_inset
16500
16501
16502 \end_layout
16503
16504 \begin_layout Standard
16505 by 
16506 \noun on
16507 Tomasz Luczak
16508 \end_layout
16509
16510 \begin_layout Standard
16511 The \SpecialChar LyX
16512  document classes 
16513 \emph on
16514 article (mwart)
16515 \emph default
16516
16517 \emph on
16518 report (mwrep)
16519 \emph default
16520  and 
16521 \emph on
16522 book
16523 \emph default
16524  
16525 \emph on
16526 (mwbk)
16527 \emph default
16528  correspond to the \SpecialChar LaTeX
16529  document classes 
16530 \family typewriter
16531 mwart.cls
16532 \family default
16533
16534 \family typewriter
16535 mwrep.cls
16536 \family default
16537  and 
16538 \family typewriter
16539 mwbk.cls
16540 \family default
16541 , resp.
16542  They are replacements for the standard document classes 
16543 \family typewriter
16544 article.cls
16545 \family default
16546
16547 \family typewriter
16548 report.cls
16549 \family default
16550  and 
16551 \family typewriter
16552 book.cls
16553 \family default
16554 , resp., and fit better to Polish typography conventions in a number of points.
16555  
16556 \end_layout
16557
16558 \begin_layout Standard
16559 Basic differences:
16560 \end_layout
16561
16562 \begin_layout Itemize
16563 Unnumbered titles (with star, e.
16564 \begin_inset space \thinspace{}
16565 \end_inset
16566
16567 g.
16568 \begin_inset space \space{}
16569 \end_inset
16570
16571
16572 \family sans
16573 Section*
16574 \family default
16575 ) are added into table of contents,
16576 \end_layout
16577
16578 \begin_layout Itemize
16579 Additional page styles:
16580 \end_layout
16581
16582 \begin_deeper
16583 \begin_layout Description
16584 uheadings header with separated lines,
16585 \end_layout
16586
16587 \begin_layout Description
16588 myheadings custom header, contents headers via commands: 
16589 \family typewriter
16590
16591 \backslash
16592 markright
16593 \family default
16594  and 
16595 \family typewriter
16596
16597 \backslash
16598 markboth
16599 \family default
16600 ,
16601 \end_layout
16602
16603 \begin_layout Description
16604 myuheadings custom header with separated lines,
16605 \end_layout
16606
16607 \begin_layout Description
16608 outer page number is placed on outer side of page
16609 \end_layout
16610
16611 \end_deeper
16612 \begin_layout Itemize
16613 Options 
16614 \end_layout
16615
16616 \begin_deeper
16617 \begin_layout Description
16618 rmheadings serif titles — default,
16619 \end_layout
16620
16621 \begin_layout Description
16622 sfheadings sansserif titles,
16623 \end_layout
16624
16625 \begin_layout Description
16626 authortitle on title page first placed is author next title — default,
16627 \end_layout
16628
16629 \begin_layout Description
16630 titleauthor on title page first placed is title next author,
16631 \end_layout
16632
16633 \begin_layout Description
16634 withmarginpar reserve place on page for margins.
16635 \end_layout
16636
16637 \end_deeper
16638 \begin_layout Section
16639 Paper
16640 \end_layout
16641
16642 \begin_layout Standard
16643 The document class 
16644 \family sans
16645 paper
16646 \family default
16647  provides an alternative to the standard 
16648 \family sans
16649 article
16650 \family default
16651  class.
16652  It provides similar functionality, but you might prefer this layout with
16653  sans serif sections, headings, and more.
16654 \end_layout
16655
16656 \begin_layout Section
16657 Rev\SpecialChar TeX
16658 4
16659 \end_layout
16660
16661 \begin_layout Standard
16662 by 
16663 \noun on
16664 Amir Karger
16665 \end_layout
16666
16667 \begin_layout Standard
16668 \begin_inset VSpace bigskip
16669 \end_inset
16670
16671
16672 \end_layout
16673
16674 \begin_layout Standard
16675 \noindent
16676 The 
16677 \family sans
16678 Revtex
16679 \begin_inset space ~
16680 \end_inset
16681
16682 4
16683 \family default
16684  textclass works with the American Physical Sociey's Rev\SpecialChar TeX
16685  4.0 (the 
16686 \begin_inset Formula $\beta$
16687 \end_inset
16688
16689  release of May, 1999) class.
16690 \end_layout
16691
16692 \begin_layout Standard
16693 \SpecialChar LyX
16694  has a 
16695 \family sans
16696 Revtex
16697 \family default
16698  textclass, which works with Rev\SpecialChar TeX
16699  3.1.
16700  However, v3.1 is basically obsolete, as it works with \SpecialChar LaTeX
16701  2.09.
16702  That means that it doesn't interact very well with \SpecialChar LyX
16703 , which requires \SpecialChar LaTeX2e
16704 , although
16705  it has been kludged to work.
16706  Since Rev\SpecialChar TeX
16707  4.0 has been designed to work much more cleanly with \SpecialChar LaTeX2e
16708 , \SpecialChar LyX
16709  with the
16710  
16711 \family sans
16712 Rev\SpecialChar TeX
16713
16714 \begin_inset space ~
16715 \end_inset
16716
16717 4
16718 \family default
16719  textclass should also be pretty easy to use.
16720 \end_layout
16721
16722 \begin_layout Standard
16723 These documents are supposed to be used in 
16724 \emph on
16725 addition
16726 \emph default
16727  to the Rev\SpecialChar TeX
16728  4.0 documents, so we don't describe any of the special Rev\SpecialChar TeX
16729  macros,
16730  and assume you'll know what to put in the preamble if necessary.
16731 \end_layout
16732
16733 \begin_layout Subsection
16734 Installation
16735 \end_layout
16736
16737 \begin_layout Standard
16738 All you need to do is install Rev\SpecialChar TeX
16739  4, as described in the package's README
16740  file.
16741  The package can be found at The Rev\SpecialChar TeX
16742  4 Web Site 
16743 \begin_inset Flex URL
16744 status collapsed
16745
16746 \begin_layout Plain Layout
16747
16748 http://publish.aps.org/revtex4/
16749 \end_layout
16750
16751 \end_inset
16752
16753 .
16754  Install it somewhere that \SpecialChar LaTeX
16755  can see it.
16756  Test it by trying to \SpecialChar LaTeX
16757  a short Rev\SpecialChar TeX
16758  4 document in some random directory (i.
16759 \begin_inset space \thinspace{}
16760 \end_inset
16761
16762 e.
16763 \begin_inset space \space{}
16764 \end_inset
16765
16766 not the directory where you installed the class file.) Then, if you reconfigure
16767  \SpecialChar LyX
16768 , it will find the class file and let you use the Rev\SpecialChar TeX
16769 4 textclass.
16770 \end_layout
16771
16772 \begin_layout Standard
16773 Probably the easiest way to get started is either to import a Rev\SpecialChar TeX
16774  4 document
16775  using 
16776 \family typewriter
16777 tex2lyx
16778 \family default
16779 , or to use the 
16780 \family sans
16781 Revtex
16782 \begin_inset space ~
16783 \end_inset
16784
16785 4
16786 \family default
16787  template, found in the templates directory.
16788 \end_layout
16789
16790 \begin_layout Subsection
16791 Preamble Matter
16792 \end_layout
16793
16794 \begin_layout Standard
16795 Optional arguments to 
16796 \family typewriter
16797
16798 \backslash
16799 documentclass
16800 \family default
16801 , like 
16802 \begin_inset Quotes eld
16803 \end_inset
16804
16805 preprint
16806 \begin_inset Quotes erd
16807 \end_inset
16808
16809  and 
16810 \begin_inset Quotes eld
16811 \end_inset
16812
16813 aps
16814 \begin_inset Quotes erd
16815 \end_inset
16816
16817 , go in the 
16818 \family sans
16819 Extra
16820 \begin_inset space ~
16821 \end_inset
16822
16823 Options
16824 \family default
16825  field in the 
16826 \family sans
16827 Document
16828 \begin_inset space ~
16829 \end_inset
16830
16831 Layout
16832 \family default
16833  dialog, as usual.
16834  Remember that in Rev\SpecialChar TeX
16835 , at least one optional argument is required! 
16836 \end_layout
16837
16838 \begin_layout Standard
16839 Other preamble matter, like 
16840 \family typewriter
16841
16842 \backslash
16843 draft
16844 \family default
16845  etc.
16846 \begin_inset space ~
16847 \end_inset
16848
16849 goes in the 
16850 \family sans
16851 \SpecialChar LaTeX
16852
16853 \begin_inset space ~
16854 \end_inset
16855
16856 Preamble
16857 \family default
16858  dialog, also as usual.
16859 \end_layout
16860
16861 \begin_layout Subsection
16862 Layouts
16863 \end_layout
16864
16865 \begin_layout Standard
16866 The layouts basically correspond to the commands in Rev\SpecialChar TeX
16867 4.0.
16868  For example, the Email layout corresponds to 
16869 \family typewriter
16870
16871 \backslash
16872 email{}
16873 \family default
16874 .
16875  Note that (at least as of Rev\SpecialChar TeX
16876  4.0 Beta), the 
16877 \family sans
16878 Address
16879 \family default
16880  and 
16881 \family sans
16882 Affiliation
16883 \family default
16884  layouts are exactly equivalent, so you shouldn't need to use both.
16885 \begin_inset Foot
16886 status collapsed
16887
16888 \begin_layout Plain Layout
16889 In case you're curious, both were included so that 
16890 \family typewriter
16891 tex2lyx
16892 \family default
16893  would be able to translate both 
16894 \family typewriter
16895
16896 \backslash
16897 address
16898 \family default
16899  and 
16900 \family typewriter
16901
16902 \backslash
16903 affiliation
16904 \family default
16905 .
16906 \end_layout
16907
16908 \end_inset
16909
16910
16911 \end_layout
16912
16913 \begin_layout Subsection
16914 Important Notes
16915 \end_layout
16916
16917 \begin_layout Standard
16918 There are a couple of important unique aspects of Rev\SpecialChar TeX
16919  4 which might cause
16920  bugs that will be even more confusing in \SpecialChar LyX
16921 .
16922 \end_layout
16923
16924 \begin_layout Standard
16925 In Rev\SpecialChar TeX
16926 , the 
16927 \family typewriter
16928
16929 \backslash
16930 thanks
16931 \family default
16932  command goes 
16933 \emph on
16934 outside
16935 \emph default
16936  the 
16937 \family typewriter
16938
16939 \backslash
16940 author
16941 \family default
16942  command.
16943  The \SpecialChar LyX
16944  equivalent is that there is a separate Thanks layout.
16945  Do 
16946 \emph on
16947 not
16948 \emph default
16949  write footnotes in the 
16950 \family sans
16951 Author
16952 \family default
16953  layout, or weird things may happen.
16954  See the Rev\SpecialChar TeX
16955  4 documentation for more details.
16956 \end_layout
16957
16958 \begin_layout Standard
16959 Also, the 
16960 \family sans
16961 Author
16962 \begin_inset space ~
16963 \end_inset
16964
16965 Email
16966 \family default
16967
16968 \family sans
16969 Author
16970 \begin_inset space ~
16971 \end_inset
16972
16973 URL
16974 \family default
16975 , and 
16976 \family sans
16977 Thanks
16978 \family default
16979  layouts must be placed 
16980 \emph on
16981 in between
16982 \emph default
16983  the 
16984 \family sans
16985 Author
16986 \family default
16987  layout and the corresponding 
16988 \family sans
16989 Address
16990 \family default
16991  (or equivalent 
16992 \family sans
16993 Affiliation
16994 \family default
16995 ) layout.
16996  If you put the 
16997 \family sans
16998 Thanks
16999 \family default
17000  after the 
17001 \family sans
17002 Address
17003 \family default
17004 , the \SpecialChar LaTeX
17005  won't compile.
17006 \end_layout
17007
17008 \begin_layout Section
17009 Springer Journals (
17010 \family sans
17011 svjour
17012 \family default
17013 )
17014 \end_layout
17015
17016 \begin_layout Standard
17017 by 
17018 \noun on
17019 Martin Vermeer
17020 \end_layout
17021
17022 \begin_layout Subsection
17023 Description
17024 \end_layout
17025
17026 \begin_layout Standard
17027 These are the layout files for some of the journal formats used by Springer
17028  Verlag and listed on 
17029 \begin_inset Flex URL
17030 status collapsed
17031
17032 \begin_layout Plain Layout
17033
17034 http://www.springer.de/author/tex/help-journals.html
17035 \end_layout
17036
17037 \end_inset
17038
17039 , where you should also go to fetch the class files (yes, these are \SpecialChar LaTeX2e
17040  now!).
17041  It is a modular system: the things common to all journals are implemented
17042  in 
17043 \family typewriter
17044 svjour.inc
17045 \family default
17046 , which journal-specific layout files (such as, e.
17047 \begin_inset space \thinspace{}
17048 \end_inset
17049
17050 g.
17051 \begin_inset space \space{}
17052 \end_inset
17053
17054
17055 \family typewriter
17056 svjog.layout
17057 \family default
17058  for Journal of Geodesy) can include.
17059 \end_layout
17060
17061 \begin_layout Standard
17062 This means that implementing support for any other Springer journal on this
17063  list is as simple as writing your own 
17064 \family typewriter
17065 sv
17066 \family default
17067 <myjournal>
17068 \family typewriter
17069 .layout
17070 \family default
17071  file following the outline given in 
17072 \family typewriter
17073 svjog.layout
17074 \family default
17075 .
17076  
17077 \end_layout
17078
17079 \begin_layout Standard
17080 It is reasonably well tested only for the Journal of Geodesy.
17081  
17082 \family typewriter
17083 svjour
17084 \family default
17085  and 
17086 \family typewriter
17087 svjog
17088 \family default
17089  come with the standard \SpecialChar LyX
17090  distribution.
17091  Install the relevant class file (downloaded from Springer) in a proper
17092  directory, reconfigure \SpecialChar LaTeX
17093  (in the te\SpecialChar TeX
17094  case by running 
17095 \family typewriter
17096 texhash
17097 \family default
17098 , as root if necessary — doesn't \SpecialChar LyX
17099  take care of this?), reconfigure \SpecialChar LyX
17100  and
17101  it should work.
17102 \end_layout
17103
17104 \begin_layout Subsection
17105 New styles
17106 \end_layout
17107
17108 \begin_layout Standard
17109 A large number of theorem-like styles — 
17110 \family sans
17111 Claim, Conjecture,
17112 \family default
17113  
17114 \family sans
17115 \SpecialChar ldots
17116 Theorem
17117 \family default
17118 .
17119 \end_layout
17120
17121 \begin_layout Standard
17122
17123 \family sans
17124 Headnote, Dedication, Subtitle, Running_\SpecialChar LaTeX
17125 _Title, Author_Running, Institute,
17126  Mail, Offprints, Keywords, Acknowledgements, Acknowledgement
17127 \family default
17128 .
17129  See the Springer class file documentation for details.
17130 \end_layout
17131
17132 \begin_layout Subsection
17133 Supported journals
17134 \end_layout
17135
17136 \begin_layout Itemize
17137
17138 \emph on
17139 Journal of Geodesy
17140 \emph default
17141
17142 \family typewriter
17143 svjog.layout
17144 \family default
17145  — Martin Vermeer
17146 \end_layout
17147
17148 \begin_layout Itemize
17149
17150 \emph on
17151 Probability Theory and Related Fields
17152 \emph default
17153
17154 \family typewriter
17155 svprobth.layout
17156 \family default
17157  — Jean-Marc Lasgouttes
17158 \end_layout
17159
17160 \begin_layout Standard
17161 Add your own, it isn't so hard!
17162 \end_layout
17163
17164 \begin_layout Subsection
17165 Credits
17166 \end_layout
17167
17168 \begin_layout Standard
17169 These files are partly based on the older 
17170 \family typewriter
17171 ejour2.layout
17172 \family default
17173 , which was again based on a tinkered-with version of an old \SpecialChar LaTeX
17174  2.09 style
17175  file from Springer.
17176  All this, and the 
17177 \family typewriter
17178 ejour2
17179 \family default
17180  layout, are now defunct.
17181  Jean-Marc Lasgouttes helped out big in making me find my way around the
17182  \SpecialChar LyX
17183  layout file mechanism.
17184 \end_layout
17185
17186 \begin_layout Subsection
17187 Bugs
17188 \end_layout
17189
17190 \begin_layout Standard
17191 Probably.
17192  But probably less than in the old hacked-\SpecialChar LaTeX
17193  
17194 \family typewriter
17195 ejour2
17196 \family default
17197 .
17198 \end_layout
17199
17200 \begin_layout Section
17201 Slides [aka 
17202 \noun on
17203 Sli\SpecialChar TeX
17204
17205 \noun default
17206 ]
17207 \begin_inset CommandInset label
17208 LatexCommand label
17209 name "sec:slitex"
17210
17211 \end_inset
17212
17213
17214 \end_layout
17215
17216 \begin_layout Standard
17217 by 
17218 \noun on
17219 John Weiss
17220 \noun default
17221  
17222 \end_layout
17223
17224 \begin_layout Subsection
17225 Introduction
17226 \end_layout
17227
17228 \begin_layout Standard
17229 This section describes how to use \SpecialChar LyX
17230  to make slides for overhead projectors.
17231  There are two document classes that can do this: the default slides class
17232  and the 
17233 \family sans
17234 Foil\SpecialChar TeX
17235
17236 \family default
17237  slides class.
17238  This section documents the former.
17239 \end_layout
17240
17241 \begin_layout Standard
17242 I'm going to say this again, nice and clear, so that there's no misunderstanding
17243 :
17244 \end_layout
17245
17246 \begin_layout Standard
17247 \begin_inset VSpace bigskip
17248 \end_inset
17249
17250
17251 \end_layout
17252
17253 \begin_layout Standard
17254 \align center
17255
17256 \size large
17257 This section documents the class 
17258 \begin_inset Quotes eld
17259 \end_inset
17260
17261
17262 \family sans
17263 slides (default)
17264 \family default
17265
17266 \begin_inset Quotes erd
17267 \end_inset
17268
17269  
17270 \emph on
17271 only.
17272 \end_layout
17273
17274 \begin_layout Standard
17275 \begin_inset VSpace bigskip
17276 \end_inset
17277
17278
17279 \end_layout
17280
17281 \begin_layout Standard
17282 If you're looking for the documentation for 
17283 \begin_inset Quotes eld
17284 \end_inset
17285
17286
17287 \family sans
17288 slides (Foil\SpecialChar TeX
17289 )
17290 \family default
17291
17292 \begin_inset Quotes erd
17293 \end_inset
17294
17295 , check out section
17296 \begin_inset space ~
17297 \end_inset
17298
17299
17300 \begin_inset CommandInset ref
17301 LatexCommand ref
17302 reference "sec:foiltex"
17303
17304 \end_inset
17305
17306 .
17307  The 
17308 \family sans
17309 foils
17310 \family default
17311  class [
17312 \begin_inset Quotes eld
17313 \end_inset
17314
17315
17316 \family sans
17317 slides (Foil\SpecialChar TeX
17318 )
17319 \family default
17320
17321 \begin_inset Quotes erd
17322 \end_inset
17323
17324 ] is actually somewhat better than the default 
17325 \family sans
17326 slides
17327 \family default
17328  class,
17329 \begin_inset Foot
17330 status collapsed
17331
17332 \begin_layout Plain Layout
17333 \SpecialChar ldots
17334 or so I've been told repeatedly by its advocates.
17335  Having never used it, I have no idea if this claim is true or not.
17336 \end_layout
17337
17338 \end_inset
17339
17340  which this section documents.
17341 \end_layout
17342
17343 \begin_layout Standard
17344 This class is the \SpecialChar LaTeX2e
17345  improvement of the old 
17346 \noun on
17347 Sli\SpecialChar TeX
17348
17349 \noun default
17350  package.
17351  Every \SpecialChar LaTeX2e
17352  distribution includes this class [which I'll just refer to as 
17353 \begin_inset Quotes eld
17354 \end_inset
17355
17356
17357 \family sans
17358 slides
17359 \family default
17360
17361 \begin_inset Quotes erd
17362 \end_inset
17363
17364  from now on], so you're bound to have it.
17365  As I noted earlier, there are other classes, such as 
17366 \family sans
17367 foils
17368 \family default
17369 , which also produce slides for overhead projectors and do a better job
17370  at it.
17371  However, there are some things which 
17372 \family sans
17373 slides
17374 \family default
17375  can do which the others can't, such as generate overlays.
17376  Read on to learn more!
17377 \end_layout
17378
17379 \begin_layout Subsection
17380 Getting Started
17381 \begin_inset CommandInset label
17382 LatexCommand label
17383 name "sec:slidesetup"
17384
17385 \end_inset
17386
17387
17388 \end_layout
17389
17390 \begin_layout Standard
17391 Obviously, to use this document class, you need to select 
17392 \begin_inset Quotes eld
17393 \end_inset
17394
17395
17396 \family sans
17397 slides (default)
17398 \family default
17399
17400 \begin_inset Quotes erd
17401 \end_inset
17402
17403  from the class list in the 
17404 \family sans
17405 Document\SpecialChar menuseparator
17406 Settings
17407 \family default
17408  dialog.
17409  There are some other special things you should know about this class:
17410 \end_layout
17411
17412 \begin_layout Itemize
17413 Don't bother changing the options 
17414 \family sans
17415 Sides and Columns
17416 \family default
17417 .
17418  They're not supported by the 
17419 \family sans
17420 slides
17421 \family default
17422  class, anyways.
17423 \end_layout
17424
17425 \begin_layout Itemize
17426 The option 
17427 \family sans
17428 Page
17429 \begin_inset space ~
17430 \end_inset
17431
17432 style
17433 \family default
17434  behaves a bit differently for this class.
17435  The possible choices and what they do are as follows:
17436 \end_layout
17437
17438 \begin_deeper
17439 \begin_layout Description
17440
17441 \family sans
17442 plain
17443 \family default
17444  The final output contains page numbers in the lower right corner.
17445 \end_layout
17446
17447 \begin_layout Description
17448
17449 \family sans
17450 headings
17451 \family default
17452  Like 
17453 \family sans
17454 plain
17455 \family default
17456 , but also prints out any time markers you've put in.
17457  This is the default.
17458 \end_layout
17459
17460 \begin_layout Description
17461
17462 \family sans
17463 empty
17464 \family default
17465  The final output contains no page numbers, time markers, or alignment markers.
17466 \end_layout
17467
17468 \end_deeper
17469 \begin_layout Itemize
17470 The 
17471 \family sans
17472 slides
17473 \family default
17474  class has an extra option: 
17475 \family typewriter
17476 clock
17477 \family default
17478 .
17479  To use it, put 
17480 \begin_inset Quotes eld
17481 \end_inset
17482
17483
17484 \family typewriter
17485 clock
17486 \family default
17487
17488 \begin_inset Quotes erd
17489 \end_inset
17490
17491  in the extra class options.
17492 \end_layout
17493
17494 \begin_deeper
17495 \begin_layout Standard
17496 Using this options allows you to add time markers to 
17497 \family sans
17498 Note
17499 \family default
17500 s.
17501  See section
17502 \begin_inset space ~
17503 \end_inset
17504
17505
17506 \begin_inset CommandInset ref
17507 LatexCommand ref
17508 reference "sec:slideNote"
17509
17510 \end_inset
17511
17512  for more details.
17513 \end_layout
17514
17515 \end_deeper
17516 \begin_layout Standard
17517 You can also use the template file 
17518 \begin_inset Quotes eld
17519 \end_inset
17520
17521
17522 \family typewriter
17523 slides.lyx
17524 \family default
17525
17526 \begin_inset Quotes erd
17527 \end_inset
17528
17529  to automatically set up a document to use the 
17530 \family sans
17531 slides
17532 \family default
17533  class [using 
17534 \family sans
17535 File\SpecialChar menuseparator
17536 New
17537 \begin_inset space ~
17538 \end_inset
17539
17540 from
17541 \begin_inset space ~
17542 \end_inset
17543
17544 Template
17545 \family default
17546  to open your new document].
17547  The template file also contains some examples of the special paragraph
17548  environments used by this class.
17549  I'll describe those next.
17550 \end_layout
17551
17552 \begin_layout Subsection
17553 Paragraph Environments
17554 \end_layout
17555
17556 \begin_layout Subsubsection
17557 Supported Environments
17558 \end_layout
17559
17560 \begin_layout Standard
17561 The first thing you'll notice when you start up a new 
17562 \family sans
17563 slides
17564 \family default
17565  document is the font size and type: it's the equivalent of the size 
17566 \begin_inset Quotes eld
17567 \end_inset
17568
17569
17570 \family sans
17571 Largest
17572 \family default
17573
17574 \begin_inset Quotes erd
17575 \end_inset
17576
17577  in the 
17578 \family sans
17579 Sans
17580 \begin_inset space ~
17581 \end_inset
17582
17583 Serif
17584 \family default
17585  font.
17586  This is also what's used in the output.
17587  Think of this as a 
17588 \begin_inset Quotes eld
17589 \end_inset
17590
17591 visual cue
17592 \begin_inset Quotes erd
17593 \end_inset
17594
17595  to remind you that this is a slide.
17596  Your final slides will use a larger font; ergo, you'll have less space.
17597  Of course, the larger default screen font isn't WYSIWYG, only a reminder.
17598 \end_layout
17599
17600 \begin_layout Standard
17601 The next thing that becomes obvious is the changes to the paragraph environment
17602  pull-down box [at the far-left end of the toolbar].
17603  Most of the paragraph environments you're used to seeing are missing.
17604  There are also five new ones.
17605  That's because the 
17606 \family sans
17607 slides
17608 \family default
17609  class itself only supports certain paragraph environments:
17610 \end_layout
17611
17612 \begin_layout Itemize
17613
17614 \family sans
17615 Standard
17616 \end_layout
17617
17618 \begin_layout Itemize
17619
17620 \family sans
17621 Itemize
17622 \end_layout
17623
17624 \begin_layout Itemize
17625
17626 \family sans
17627 Enumerate
17628 \end_layout
17629
17630 \begin_layout Itemize
17631
17632 \family sans
17633 Description
17634 \end_layout
17635
17636 \begin_layout Itemize
17637
17638 \family sans
17639 List
17640 \end_layout
17641
17642 \begin_layout Itemize
17643
17644 \family sans
17645 Quotation
17646 \end_layout
17647
17648 \begin_layout Itemize
17649
17650 \family sans
17651 Quote
17652 \end_layout
17653
17654 \begin_layout Itemize
17655
17656 \family sans
17657 Verse
17658 \end_layout
17659
17660 \begin_layout Itemize
17661
17662 \family sans
17663 Caption
17664 \end_layout
17665
17666 \begin_layout Itemize
17667
17668 \family sans
17669 \SpecialChar LyX
17670 -Code
17671 \end_layout
17672
17673 \begin_layout Standard
17674 All of the other standard environments, including the section-heading environmen
17675 ts, aren't used in the 
17676 \family sans
17677 slides
17678 \family default
17679  class.
17680 \end_layout
17681
17682 \begin_layout Standard
17683 On the other hand, you'll notice the following new environments:
17684 \end_layout
17685
17686 \begin_layout Itemize
17687
17688 \family sans
17689 Slide
17690 \end_layout
17691
17692 \begin_layout Itemize
17693
17694 \family sans
17695 Overlay
17696 \end_layout
17697
17698 \begin_layout Itemize
17699
17700 \family sans
17701 Note
17702 \end_layout
17703
17704 \begin_layout Itemize
17705
17706 \family sans
17707 InvisibleText
17708 \end_layout
17709
17710 \begin_layout Itemize
17711
17712 \family sans
17713 VisibleText
17714 \end_layout
17715
17716 \begin_layout Standard
17717 These five are kind of quirky, due to a 
17718 \begin_inset Quotes eld
17719 \end_inset
17720
17721 feature
17722 \begin_inset Quotes erd
17723 \end_inset
17724
17725  in \SpecialChar LyX
17726 .
17727  You see, \SpecialChar LyX
17728  doesn't permit you to nest any other paragraph environment into
17729  an empty environment.
17730  Now, that's fine and dandy, but it means that you wouldn't be able to start
17731  a slide with anything except plain text.
17732  To deal with this, I've performed a little 
17733 \begin_inset Quotes eld
17734 \end_inset
17735
17736 \SpecialChar LaTeX
17737  magic.
17738 \begin_inset Quotes erd
17739 \end_inset
17740
17741  
17742 \end_layout
17743
17744 \begin_layout Subsubsection
17745 Quirks of the New Environments
17746 \begin_inset CommandInset label
17747 LatexCommand label
17748 name "sec:slideQuirk"
17749
17750 \end_inset
17751
17752
17753 \end_layout
17754
17755 \begin_layout Standard
17756 All five of the new paragraph environments are somewhat quirky due to inherent
17757  limitiations in the current version of \SpecialChar LyX
17758 .
17759  As I just mentioned, \SpecialChar LyX
17760  forbids environments that begin with another environment.
17761  To get around this, the 
17762 \family sans
17763 Slide
17764 \family default
17765  environment isn't a paragraph environment as described in the 
17766 \emph on
17767 User's Guide
17768 \emph default
17769 .
17770  
17771 \end_layout
17772
17773 \begin_layout Standard
17774 You should consider 
17775 \family sans
17776 Slide
17777 \family default
17778
17779 \family sans
17780 Overlay
17781 \family default
17782 , and 
17783 \family sans
17784 Note
17785 \family default
17786  to be 
17787 \begin_inset Quotes eld
17788 \end_inset
17789
17790 pseudo-environments.
17791 \begin_inset Quotes erd
17792 \end_inset
17793
17794  They look like a section heading or a 
17795 \begin_inset Quotes eld
17796 \end_inset
17797
17798
17799 \family sans
17800 Caption
17801 \family default
17802 ,
17803 \begin_inset Quotes erd
17804 \end_inset
17805
17806  but really begin a [and, if necessary, end the previous] paragraph environment.
17807  Likewise, treat 
17808 \family sans
17809 InvisibleText
17810 \family default
17811  and 
17812 \family sans
17813 VisibleText
17814 \family default
17815  as 
17816 \begin_inset Quotes eld
17817 \end_inset
17818
17819 pseudo-commands.
17820 \begin_inset Quotes erd
17821 \end_inset
17822
17823  These two perform some action.
17824 \end_layout
17825
17826 \begin_layout Standard
17827 A common feature of all five environments, 
17828 \family sans
17829 Slide
17830 \family default
17831
17832 \family sans
17833 Overlay
17834 \family default
17835
17836 \family sans
17837 Note
17838 \family default
17839
17840 \family sans
17841 InvisibleText
17842 \family default
17843  and 
17844 \family sans
17845 VisibleText
17846 \family default
17847 , is a rather long-ish label.
17848  The text following this label — ordinarily the contents of the paragraph
17849  environment — is utterly irrelevant for 
17850 \family sans
17851 Slide
17852 \family default
17853
17854 \family sans
17855 Overlay
17856 \family default
17857
17858 \family sans
17859 Note
17860 \family default
17861
17862 \family sans
17863 InvisibleText
17864 \family default
17865  and 
17866 \family sans
17867 VisibleText
17868 \family default
17869 .
17870  \SpecialChar LyX
17871  completely ignores it.
17872  In fact, you can leave these five environments completely empty.
17873  
17874 \end_layout
17875
17876 \begin_layout Standard
17877 While you don't 
17878 \emph on
17879 have
17880 \emph default
17881  to put any text after the rather long-ish label, you might want to.
17882  This could be a short description of the contents of the 
17883 \family sans
17884 Slide
17885 \family default
17886 , for example.
17887  In that case, enter your descriptive comment and hit 
17888 \family sans
17889 Return
17890 \family default
17891  as you normally would.
17892 \end_layout
17893
17894 \begin_layout Standard
17895 If, on the other hand, you don't want to enter any descriptive text, you'll
17896  hit another \SpecialChar LyX
17897  quirk.
17898  \SpecialChar LyX
17899 , like nature, abhors a vacuum, and will not let you start a new paragraph
17900  environment until you put something in the old one.
17901  So, do this:
17902 \end_layout
17903
17904 \begin_layout Itemize
17905 Start entering the text that will 
17906 \emph on
17907 follow
17908 \emph default
17909  the new 
17910 \family sans
17911 Slide
17912 \family default
17913
17914 \family sans
17915 Overlay
17916 \family default
17917
17918 \family sans
17919 Note
17920 \family default
17921
17922 \family sans
17923 InvisibleText
17924 \family default
17925  or 
17926 \family sans
17927 VisibleText
17928 \family default
17929 .
17930  
17931 \end_layout
17932
17933 \begin_layout Itemize
17934 Now move to the beginning of that paragraph.
17935  
17936 \end_layout
17937
17938 \begin_layout Itemize
17939 Next, hit 
17940 \family sans
17941 Return
17942 \family default
17943 .
17944  
17945 \end_layout
17946
17947 \begin_layout Itemize
17948 Finally, change this new, empty paragraph to a 
17949 \family sans
17950 Slide
17951 \family default
17952
17953 \family sans
17954 Overlay
17955 \family default
17956
17957 \family sans
17958 Note
17959 \family default
17960
17961 \family sans
17962 InvisibleText
17963 \family default
17964  or 
17965 \family sans
17966 VisibleText
17967 \family default
17968 .
17969  
17970 \end_layout
17971
17972 \begin_layout Standard
17973 Some future version of \SpecialChar LyX
17974  will, hopefully, resolve this quirkiness\SpecialChar ldots
17975
17976 \end_layout
17977
17978 \begin_layout Subsection
17979 Making a Presentation with 
17980 \family sans
17981 Slide
17982 \family default
17983
17984 \family sans
17985 Overlay
17986 \family default
17987  and 
17988 \family sans
17989 Note
17990 \end_layout
17991
17992 \begin_layout Subsubsection
17993 Using the 
17994 \family sans
17995 Slide
17996 \family default
17997  Environment
17998 \end_layout
17999
18000 \begin_layout Standard
18001 If you're expecting this section to teach you how to actually make a presentatio
18002 n, you'll be sorely disappointed.
18003  Naturally, I'll describe all of the ways the 
18004 \family sans
18005 slides
18006 \family default
18007  class can assist you in preparing the materials for a presentation.
18008  Filling in the contents, however, is up to you.
18009  [Then again, that 
18010 \emph on
18011 is
18012 \emph default
18013  the \SpecialChar LyX
18014  philosophy.]
18015 \end_layout
18016
18017 \begin_layout Standard
18018 Choosing the 
18019 \family sans
18020 Slide
18021 \family default
18022  environment [in the manner described in section
18023 \begin_inset space ~
18024 \end_inset
18025
18026
18027 \begin_inset CommandInset ref
18028 LatexCommand ref
18029 reference "sec:slideQuirk"
18030
18031 \end_inset
18032
18033 ] tells \SpecialChar LyX
18034  to begin a new slide [duh].
18035  The label for this environment/
18036 \begin_inset Quotes erd
18037 \end_inset
18038
18039 pseudo-command
18040 \begin_inset Quotes erd
18041 \end_inset
18042
18043  is an 
18044 \begin_inset Quotes eld
18045 \end_inset
18046
18047 ASCII line,
18048 \begin_inset Quotes erd
18049 \end_inset
18050
18051  in cool blue, followed by the label, 
18052 \begin_inset Quotes eld
18053 \end_inset
18054
18055 NewSlide:
18056 \begin_inset Quotes erd
18057 \end_inset
18058
18059 .
18060  Any text or paragraph environments that follow this one go on the new slide.
18061  It's that simple.
18062 \end_layout
18063
18064 \begin_layout Standard
18065 Slides are probably the only time you'll need to forcibly end pages in \SpecialChar LyX
18066
18067  (this can be specified in the 
18068 \family sans
18069 Paragraph Layout
18070 \family default
18071  dialog).
18072  In fact, you'll want to, once you finish entering the contents of one slide.
18073  If you've entered more text than can physically fit on a slide, the extra
18074  overflows onto a new slide.
18075  I don't recommend doing this, however, since the overflow slide won't have
18076  any page number on it.
18077  Furthermore, it may interfere with any 
18078 \family sans
18079 Overlay
18080 \family default
18081  you've made to accompany the oversized 
18082 \family sans
18083 Slide
18084 \family default
18085 .
18086 \end_layout
18087
18088 \begin_layout Standard
18089 The 
18090 \family sans
18091 Overlay
18092 \family default
18093  and 
18094 \family sans
18095 Note
18096 \family default
18097  environments work the same way as the 
18098 \family sans
18099 Slide
18100 \family default
18101  environment.
18102  They both create an 
18103 \begin_inset Quotes eld
18104 \end_inset
18105
18106 ASCII line
18107 \begin_inset Quotes erd
18108 \end_inset
18109
18110  followed by a label [
18111 \begin_inset Quotes eld
18112 \end_inset
18113
18114 NewOverlay:
18115 \begin_inset Quotes erd
18116 \end_inset
18117
18118  and 
18119 \begin_inset Quotes eld
18120 \end_inset
18121
18122 NewNote:
18123 \begin_inset Quotes erd
18124 \end_inset
18125
18126 , respectively].
18127  The color is a stunning magenta instead of blue, and the 
18128 \begin_inset Quotes eld
18129 \end_inset
18130
18131 ASCII line
18132 \begin_inset Quotes erd
18133 \end_inset
18134
18135  will look different, in style and in length.
18136  The label fonts of all three also differ from one another.
18137 \end_layout
18138
18139 \begin_layout Standard
18140 As with a 
18141 \family sans
18142 Slide
18143 \family default
18144 , if the contents of a 
18145 \family sans
18146 Note
18147 \family default
18148  or 
18149 \family sans
18150 Overlay
18151 \family default
18152  exceed the physical size of a slide or sheet of paper, the extra will overflow
18153  onto a new sheet.
18154  Again, you should avoid this.
18155  It defeats the whole purpose of 
18156 \family sans
18157 Note
18158 \family default
18159 s and 
18160 \family sans
18161 Overlay
18162 \family default
18163 s.
18164 \end_layout
18165
18166 \begin_layout Subsubsection
18167 Using 
18168 \family sans
18169 Overlay
18170 \family default
18171  with 
18172 \family sans
18173 Slide
18174 \end_layout
18175
18176 \begin_layout Standard
18177 The idea behind an 
18178 \family sans
18179 Overlay
18180 \family default
18181  is a slide that sits atop another slide.
18182  Perhaps you wish to discuss a figure on the main 
18183 \family sans
18184 Slide
18185 \family default
18186  before displaying the text associated with it.
18187  One way to accomplish this is tape a flap of dark paper over the part of
18188  the 
18189 \family sans
18190 Slide
18191 \family default
18192  you want to display later.
18193  This method fails, however, if you wish to overlap one graph with another,
18194  for example.
18195  You would then have to fumble while speaking to align the two separate,
18196  overlapping 
18197 \family sans
18198 Slide
18199 \family default
18200 s to align the two graphs.
18201  The use of an 
18202 \family sans
18203 Overlay
18204 \family default
18205  environment in both cases makes life much easier.
18206 \end_layout
18207
18208 \begin_layout Standard
18209 Each 
18210 \family sans
18211 Overlay
18212 \family default
18213  receives the page number of its 
18214 \begin_inset Quotes eld
18215 \end_inset
18216
18217 parent
18218 \begin_inset Quotes erd
18219 \end_inset
18220
18221  
18222 \family sans
18223 Slide
18224 \family default
18225 , appended by 
18226 \begin_inset Quotes eld
18227 \end_inset
18228
18229
18230 \family typewriter
18231 -a
18232 \family default
18233
18234 \begin_inset Quotes erd
18235 \end_inset
18236
18237 .
18238 \begin_inset Foot
18239 status collapsed
18240
18241 \begin_layout Plain Layout
18242 Presumably, mutliple 
18243 \family sans
18244 Overlay
18245 \family default
18246 s would have 
18247 \begin_inset Quotes eld
18248 \end_inset
18249
18250
18251 \family typewriter
18252 -a
18253 \family default
18254
18255 \begin_inset Quotes erd
18256 \end_inset
18257
18258
18259 \begin_inset Quotes eld
18260 \end_inset
18261
18262
18263 \family typewriter
18264 -b
18265 \family default
18266
18267 \begin_inset Quotes erd
18268 \end_inset
18269
18270
18271 \begin_inset Quotes eld
18272 \end_inset
18273
18274
18275 \family typewriter
18276 -c
18277 \family default
18278
18279 \begin_inset Quotes erd
18280 \end_inset
18281
18282 , etc.
18283 \begin_inset space ~
18284 \end_inset
18285
18286 appended to the page number of the parent 
18287 \family sans
18288 Slide
18289 \family default
18290 .
18291  
18292 \end_layout
18293
18294 \end_inset
18295
18296  Clearly, you want the contents of both the 
18297 \family sans
18298 Slide
18299 \family default
18300  and the 
18301 \family sans
18302 Overlay
18303 \family default
18304  to each fit on a single physical slide! You should probably consider an
18305  
18306 \family sans
18307 Overlay
18308 \family default
18309  as 
18310 \begin_inset Quotes eld
18311 \end_inset
18312
18313 part of
18314 \begin_inset Quotes erd
18315 \end_inset
18316
18317  a 
18318 \family sans
18319 Slide
18320 \family default
18321 .
18322  Indeed, the \SpecialChar LyX
18323  
18324 \family sans
18325 slides
18326 \family default
18327  class provides a visual cue for this: the label at the start of an 
18328 \family sans
18329 Overlay
18330 \family default
18331  is shorter than that at the start of a 
18332 \family sans
18333 Slide
18334 \family default
18335 .
18336  Lastly, when you generate printable output, you'll find alignment markers
18337  in all four corners of both the 
18338 \family sans
18339 Overlay
18340 \family default
18341  page and its parent 
18342 \family sans
18343 Slide
18344 \family default
18345 .
18346  These will assist you in lining up the two physical slides.
18347 \end_layout
18348
18349 \begin_layout Standard
18350 The major problem in overlaying two slides is aligning the contents of the
18351  two transparencies.
18352  How much space should you leave for that graph on the second slide? Worse
18353  still, what if you want a graph and a sentence on second slide, but there
18354  is text on the main transparency that goes in between them? You could try
18355  and insert vertical space of the right size.
18356  The better way is to use 
18357 \family sans
18358 InvisibleText
18359 \family default
18360  and 
18361 \family sans
18362 VisibleText
18363 \family default
18364 .
18365 \end_layout
18366
18367 \begin_layout Standard
18368 As their names imply, 
18369 \family sans
18370 InvisibleText
18371 \family default
18372  and 
18373 \family sans
18374 VisibleText
18375 \family default
18376  are two command-like paragraph environments that make all subsequent text
18377  invisible and visible, respectively.
18378  Note from section
18379 \begin_inset space ~
18380 \end_inset
18381
18382
18383 \begin_inset CommandInset ref
18384 LatexCommand ref
18385 reference "sec:slideQuirk"
18386
18387 \end_inset
18388
18389  that you don't place anything 
18390 \emph on
18391 into
18392 \emph default
18393  these two environments, however.
18394  When you create an 
18395 \family sans
18396 InvisibleText
18397 \family default
18398 , it inserts a centered, sky-blue label into the page reading 
18399 \begin_inset Quotes eld
18400 \end_inset
18401
18402 <Invisible Text Follows>
18403 \begin_inset Quotes erd
18404 \end_inset
18405
18406 .
18407  For paragraphs following this label, the parts of the 
18408 \family sans
18409 Slide
18410 \family default
18411  [or 
18412 \family sans
18413 Overlay
18414 \family default
18415 ; it doesn't matter which] where they would be contain instead blank space.
18416  
18417 \end_layout
18418
18419 \begin_layout Standard
18420 For 
18421 \family sans
18422 VisibleText
18423 \family default
18424 , the corresponding centered label is 
18425 \begin_inset Quotes eld
18426 \end_inset
18427
18428 <Visible Text Follows>
18429 \begin_inset Quotes erd
18430 \end_inset
18431
18432  in blazing green.
18433  Paragraphs following this label behave normally.
18434  Note that the beginning of a new 
18435 \family sans
18436 Slide
18437 \family default
18438
18439 \family sans
18440 Overlay
18441 \family default
18442 , or 
18443 \family sans
18444 Note
18445 \family default
18446  automatically shuts off an 
18447 \family sans
18448 InvisibleText
18449 \family default
18450 .
18451  It's therefore not necessary to use 
18452 \family sans
18453 VisibleText
18454 \family default
18455  at the end of a 
18456 \family sans
18457 Slide
18458 \family default
18459 .
18460 \end_layout
18461
18462 \begin_layout Standard
18463 By now, it should be obvious how to create overlay transparencies using
18464  the proper combination of 
18465 \family sans
18466 InvisibleText
18467 \family default
18468  and 
18469 \family sans
18470 VisibleText
18471 \family default
18472  on a 
18473 \family sans
18474 Slide
18475 \family default
18476  and 
18477 \family sans
18478 Overlay
18479 \family default
18480 :
18481 \end_layout
18482
18483 \begin_layout Enumerate
18484 Create a 
18485 \family sans
18486 Slide
18487 \family default
18488 , including everything that will appear on it, whether on the main slide
18489  or on the 
18490 \family sans
18491 Overlay
18492 \family default
18493 .
18494 \end_layout
18495
18496 \begin_layout Enumerate
18497 Before each figure or paragraph that will appear only on the 
18498 \family sans
18499 Overlay
18500 \family default
18501 , insert an 
18502 \family sans
18503 InvisibleText
18504 \family default
18505  environment.
18506  If necessary, insert a 
18507 \family sans
18508 VisibleText
18509 \family default
18510  environment after the 
18511 \family sans
18512 Overlay
18513 \family default
18514 -only text.
18515 \end_layout
18516
18517 \begin_layout Enumerate
18518 Start an 
18519 \family sans
18520 Overlay
18521 \family default
18522  immediately following the 
18523 \family sans
18524 Slide
18525 \family default
18526 .
18527 \end_layout
18528
18529 \begin_layout Enumerate
18530 Copy the contents of this 
18531 \family sans
18532 Slide
18533 \family default
18534  into the 
18535 \family sans
18536 Overlay
18537 \family default
18538 .
18539 \end_layout
18540
18541 \begin_layout Enumerate
18542 Within the 
18543 \family sans
18544 Overlay
18545 \family default
18546 , change all of the 
18547 \family sans
18548 InvisibleText
18549 \family default
18550  lines to 
18551 \family sans
18552 VisibleText
18553 \family default
18554  and vice-versa.
18555 \end_layout
18556
18557 \begin_layout Standard
18558 That's it.
18559  You've just made an 
18560 \family sans
18561 Overlay
18562 \family default
18563 .
18564 \end_layout
18565
18566 \begin_layout Standard
18567 There's one problem with the way I've designed the \SpecialChar LyX
18568  
18569 \family sans
18570 slides
18571 \family default
18572  class: you can't make text in the middle of a paragraph invisible, nor
18573  make text in the middle of an invisible paragraph visible again.
18574  To accomplish this feat, you'll need to use some inlined \SpecialChar LaTeX
18575  codes.
18576 \begin_inset Foot
18577 status collapsed
18578
18579 \begin_layout Plain Layout
18580 The commands of interest are: 
18581 \end_layout
18582
18583 \begin_layout Itemize
18584
18585 \family typewriter
18586 {
18587 \backslash
18588 invisible \SpecialChar ldots
18589  }
18590 \end_layout
18591
18592 \begin_layout Itemize
18593
18594 \family typewriter
18595 {
18596 \backslash
18597 visible \SpecialChar ldots
18598  }
18599 \end_layout
18600
18601 \begin_layout Plain Layout
18602 \SpecialChar ldots
18603 and need to be marked as \SpecialChar TeX
18604 .
18605  The text whose 
18606 \begin_inset Quotes eld
18607 \end_inset
18608
18609 visibility
18610 \begin_inset Quotes erd
18611 \end_inset
18612
18613  you wish to change goes in between the brackets [and after the 
18614 \family typewriter
18615
18616 \backslash
18617 invisible
18618 \family default
18619  or 
18620 \family typewriter
18621
18622 \backslash
18623 visible
18624 \family default
18625  command].
18626  If you don't know how to mark text as \SpecialChar TeX
18627 , see the appropriate section of
18628  the 
18629 \emph on
18630 User's Guide
18631 \emph default
18632 .
18633 \end_layout
18634
18635 \end_inset
18636
18637
18638 \end_layout
18639
18640 \begin_layout Subsubsection
18641 Using 
18642 \family sans
18643 Note
18644 \family default
18645  with 
18646 \family sans
18647 Slide
18648 \family default
18649
18650 \begin_inset CommandInset label
18651 LatexCommand label
18652 name "sec:slideNote"
18653
18654 \end_inset
18655
18656
18657 \end_layout
18658
18659 \begin_layout Standard
18660 Like an 
18661 \family sans
18662 Overlay
18663 \family default
18664 , a 
18665 \family sans
18666 Note
18667 \family default
18668  is associated with a 
18669 \begin_inset Quotes eld
18670 \end_inset
18671
18672 parent
18673 \begin_inset Quotes erd
18674 \end_inset
18675
18676  
18677 \family sans
18678 Slide
18679 \family default
18680 .
18681  Here, too, the \SpecialChar LyX
18682  
18683 \family sans
18684 slides
18685 \family default
18686  class provides visual cues.
18687  The label for a 
18688 \family sans
18689 Note
18690 \family default
18691  is shorter than that of a 
18692 \family sans
18693 Slide
18694 \family default
18695  [yet longer than that of an 
18696 \family sans
18697 Overlay
18698 \family default
18699 ] and, like the label of an 
18700 \family sans
18701 Overlay
18702 \family default
18703  is shockingly magenta.
18704  Additionally, the printed 
18705 \family sans
18706 Note
18707 \family default
18708  has the page number of its 
18709 \begin_inset Quotes eld
18710 \end_inset
18711
18712 parent
18713 \begin_inset Quotes erd
18714 \end_inset
18715
18716  
18717 \family sans
18718 Slide
18719 \family default
18720 , appended by 
18721 \begin_inset Quotes eld
18722 \end_inset
18723
18724
18725 \family typewriter
18726 -
18727 \family default
18728 1
18729 \begin_inset Quotes erd
18730 \end_inset
18731
18732
18733 \begin_inset Quotes eld
18734 \end_inset
18735
18736
18737 \family typewriter
18738 -
18739 \family default
18740 2
18741 \begin_inset Quotes erd
18742 \end_inset
18743
18744
18745 \begin_inset Quotes eld
18746 \end_inset
18747
18748
18749 \family typewriter
18750 -
18751 \family default
18752 3
18753 \begin_inset Quotes erd
18754 \end_inset
18755
18756 , etc.
18757  You can have multiple 
18758 \family sans
18759 Note
18760 \family default
18761 s associated with a single 
18762 \family sans
18763 Slide
18764 \family default
18765 , and, as with 
18766 \family sans
18767 Slide
18768 \family default
18769  and 
18770 \family sans
18771 Overlay
18772 \family default
18773 , you'll probably want to break up long 
18774 \family sans
18775 Note
18776 \family default
18777 s so that they fit on a single sheet of paper.
18778 \end_layout
18779
18780 \begin_layout Standard
18781 The purpose of a 
18782 \family sans
18783 Note
18784 \family default
18785  is obvious: it contains anything additional you might want to say about
18786  a 
18787 \family sans
18788 Slide
18789 \family default
18790 .
18791  It could also be used as a sheet of reminders for a particular 
18792 \family sans
18793 Slide
18794 \family default
18795 .
18796  In the case of the latter, you might want to make use of time markers.
18797  Currently, the \SpecialChar LyX
18798  
18799 \family sans
18800 slides
18801 \family default
18802  class has no 
18803 \begin_inset Quotes eld
18804 \end_inset
18805
18806 native
18807 \begin_inset Quotes erd
18808 \end_inset
18809
18810  support for time markers, a 
18811 \noun on
18812 Sli\SpecialChar TeX
18813
18814 \noun default
18815  feature.
18816  So, you'll have to resort to using the \SpecialChar LaTeX
18817  codes.
18818 \end_layout
18819
18820 \begin_layout Standard
18821 To use time markers, you'll need to specify the extra class option 
18822 \begin_inset Quotes eld
18823 \end_inset
18824
18825
18826 \family typewriter
18827 clock
18828 \family default
18829
18830 \begin_inset Quotes erd
18831 \end_inset
18832
18833  [see section
18834 \begin_inset space ~
18835 \end_inset
18836
18837
18838 \begin_inset CommandInset ref
18839 LatexCommand ref
18840 reference "sec:slidesetup"
18841
18842 \end_inset
18843
18844 ].
18845  This option turns on timing marks, which will appear in the lower-left-hand
18846  corner of every 
18847 \family sans
18848 Note
18849 \family default
18850  you generate.
18851  To set what appears in the time marker, you use the \SpecialChar LaTeX
18852  commands 
18853 \begin_inset Quotes eld
18854 \end_inset
18855
18856
18857 \family typewriter
18858
18859 \backslash
18860 settime{}
18861 \family default
18862
18863 \begin_inset Quotes erd
18864 \end_inset
18865
18866  and 
18867 \begin_inset Quotes eld
18868 \end_inset
18869
18870
18871 \family typewriter
18872
18873 \backslash
18874 addtime{}
18875 \family default
18876
18877 \begin_inset Quotes erd
18878 \end_inset
18879
18880 .
18881  The arguments of both commands are time measured in seconds.
18882  
18883 \begin_inset Quotes eld
18884 \end_inset
18885
18886
18887 \family typewriter
18888
18889 \backslash
18890 settime{}
18891 \family default
18892
18893 \begin_inset Quotes erd
18894 \end_inset
18895
18896  sets the time marker to a given time.
18897  
18898 \begin_inset Quotes eld
18899 \end_inset
18900
18901
18902 \family typewriter
18903
18904 \backslash
18905 addtime{}
18906 \family default
18907
18908 \begin_inset Quotes erd
18909 \end_inset
18910
18911  increments the time marker by the specified amount.
18912  Using time markers and 
18913 \family sans
18914 Note
18915 \family default
18916 s in this fashion, you can remind yourself how much time to spend on a particula
18917
18918 \family sans
18919 Slide
18920 \family default
18921 .
18922 \end_layout
18923
18924 \begin_layout Standard
18925 There's one last feature to describe.
18926  Clearly, you'd like to print out all of your 
18927 \family sans
18928 Slide
18929 \family default
18930 s and 
18931 \family sans
18932 Overlay
18933 \family default
18934 s on transparencies while printing all of your 
18935 \family sans
18936 Note
18937 \family default
18938 s on plain paper.
18939  However, a 
18940 \family sans
18941 Note
18942 \family default
18943  
18944 \emph on
18945 must
18946 \emph default
18947  follow the 
18948 \family sans
18949 Slide
18950 \family default
18951  with which it is associated.
18952  What's a person to do?
18953 \end_layout
18954
18955 \begin_layout Standard
18956 Luckily, there are two \SpecialChar LaTeX
18957  commands that allow you to select what to print
18958  out.
18959  Both must be placed into the preamble of your document.
18960  The command 
18961 \begin_inset Quotes eld
18962 \end_inset
18963
18964
18965 \family typewriter
18966
18967 \backslash
18968 onlyslides{
18969 \backslash
18970 slides}
18971 \family default
18972
18973 \begin_inset Quotes erd
18974 \end_inset
18975
18976  will cause the output to contain only the 
18977 \family sans
18978 Slide
18979 \family default
18980 s and 
18981 \family sans
18982 Overlay
18983 \family default
18984 s.
18985  Correspondingly, the command 
18986 \begin_inset Quotes eld
18987 \end_inset
18988
18989
18990 \family typewriter
18991
18992 \backslash
18993 onlynotes{
18994 \backslash
18995 notes}
18996 \family default
18997
18998 \begin_inset Quotes erd
18999 \end_inset
19000
19001  prevents the output of anything but 
19002 \family sans
19003 Note
19004 \family default
19005 s.
19006  I'd advise placing both commands in the preamble and initially comment
19007  both out.
19008  You can then preview your entire presentation as you write.
19009  When you're done writing, you can then uncomment one of the two to select
19010  what you want to print.
19011  I like to uncomment 
19012 \begin_inset Quotes eld
19013 \end_inset
19014
19015
19016 \family typewriter
19017
19018 \backslash
19019 onlyslides{
19020 \backslash
19021 slides}
19022 \family default
19023
19024 \begin_inset Quotes erd
19025 \end_inset
19026
19027  , print to a file with 
19028 \begin_inset Quotes eld
19029 \end_inset
19030
19031
19032 \family typewriter
19033 -slides
19034 \family default
19035
19036 \begin_inset Quotes erd
19037 \end_inset
19038
19039  in its name, comment it back out, then uncomment 
19040 \begin_inset Quotes eld
19041 \end_inset
19042
19043
19044 \family typewriter
19045
19046 \backslash
19047 onlynotes{
19048 \backslash
19049 notes}
19050 \family default
19051
19052 \begin_inset Quotes erd
19053 \end_inset
19054
19055  and print to a 
19056 \begin_inset Quotes eld
19057 \end_inset
19058
19059
19060 \family typewriter
19061 *-notes.ps
19062 \family default
19063
19064 \begin_inset Quotes erd
19065 \end_inset
19066
19067  file.
19068  I can then send either file to a printer, loading transparencies or plain
19069  paper as appropriate.
19070 \end_layout
19071
19072 \begin_layout Standard
19073 You can also provide other arguments to the 
19074 \begin_inset Quotes eld
19075 \end_inset
19076
19077
19078 \family typewriter
19079
19080 \backslash
19081 onlyslides{}
19082 \family default
19083
19084 \begin_inset Quotes erd
19085 \end_inset
19086
19087  and 
19088 \begin_inset Quotes eld
19089 \end_inset
19090
19091
19092 \family typewriter
19093
19094 \backslash
19095 onlynotes{}
19096 \family default
19097
19098 \begin_inset Quotes erd
19099 \end_inset
19100
19101  commands.
19102  See a good \SpecialChar LaTeX
19103  book for details.
19104 \end_layout
19105
19106 \begin_layout Subsection
19107 The 
19108 \family sans
19109 slides
19110 \family default
19111  Class Template File
19112 \end_layout
19113
19114 \begin_layout Standard
19115 I have also provided a template file, 
19116 \begin_inset Quotes eld
19117 \end_inset
19118
19119
19120 \family typewriter
19121 slides.lyx
19122 \family default
19123
19124 \begin_inset Quotes erd
19125 \end_inset
19126
19127 , with the 
19128 \family sans
19129 slides
19130 \family default
19131  class.
19132  To use it, begin your new presentation with 
19133 \family sans
19134 File\SpecialChar menuseparator
19135 New
19136 \begin_inset space ~
19137 \end_inset
19138
19139 from
19140 \begin_inset space ~
19141 \end_inset
19142
19143 Template
19144 \family default
19145 .
19146  Your new \SpecialChar LyX
19147  presentation file will contain an example 
19148 \family sans
19149 Slide
19150 \family default
19151  – 
19152 \family sans
19153 Overlay
19154 \family default
19155  – 
19156 \family sans
19157 Note
19158 \family default
19159  triplet.
19160  The 
19161 \family sans
19162 Slide
19163 \family default
19164  and 
19165 \family sans
19166 Overlay
19167 \family default
19168  additionally contain an example of the use of 
19169 \family sans
19170 InvisibleText
19171 \family default
19172  and 
19173 \family sans
19174 VisibleText
19175 \family default
19176 .
19177  Lastly, the preamble will contain:
19178 \end_layout
19179
19180 \begin_layout LyX-Code
19181 % Uncomment to print out only slides and overlays
19182 \end_layout
19183
19184 \begin_layout LyX-Code
19185 %
19186 \end_layout
19187
19188 \begin_layout LyX-Code
19189 %
19190 \backslash
19191 onlyslides{
19192 \backslash
19193 slides}
19194 \begin_inset Newline newline
19195 \end_inset
19196
19197  
19198 \end_layout
19199
19200 \begin_layout LyX-Code
19201 % Uncomment to print out only notes
19202 \end_layout
19203
19204 \begin_layout LyX-Code
19205 %
19206 \end_layout
19207
19208 \begin_layout LyX-Code
19209 %
19210 \backslash
19211 onlynotes{
19212 \backslash
19213 notes}
19214 \end_layout
19215
19216 \begin_layout Standard
19217 One final thing: I created this class to support the \SpecialChar LaTeX2e
19218  
19219 \begin_inset Quotes eld
19220 \end_inset
19221
19222
19223 \noun on
19224 Sli\SpecialChar TeX
19225
19226 \noun default
19227  emulation
19228 \begin_inset Quotes erd
19229 \end_inset
19230
19231  class, one of the built-in \SpecialChar LaTeX2e
19232  classes.
19233  Neither I nor the rest of the \SpecialChar LyX
19234  Team endorse or oppose the use of this built-in
19235  slide class.
19236  It's here if you want it or need it.
19237  There exist other \SpecialChar LaTeX2e
19238  classes for creating presentations, such as the 
19239 \family sans
19240 Foils
19241 \family default
19242  class [see section
19243 \begin_inset space ~
19244 \end_inset
19245
19246
19247 \begin_inset CommandInset ref
19248 LatexCommand ref
19249 reference "sec:foiltex"
19250
19251 \end_inset
19252
19253 ] or the 
19254 \begin_inset Quotes eld
19255 \end_inset
19256
19257
19258 \family typewriter
19259 seminar
19260 \family default
19261
19262 \begin_inset Quotes erd
19263 \end_inset
19264
19265  package [present on some \SpecialChar TeX
19266  distributions].
19267  The latter is not yet supported under \SpecialChar LyX
19268 .
19269 \begin_inset Foot
19270 status collapsed
19271
19272 \begin_layout Plain Layout
19273 Perhaps you can take on the task\SpecialChar ldots
19274
19275 \end_layout
19276
19277 \end_inset
19278
19279  I know nothing about these other classes.
19280  Try them out to see what sort of alternative they provide.
19281 \end_layout
19282
19283 \begin_layout Chapter
19284 \SpecialChar LyX
19285  Features needing Extra Software
19286 \end_layout
19287
19288 \begin_layout Section
19289 Checking \SpecialChar TeX
19290
19291 \end_layout
19292
19293 \begin_layout Standard
19294 by 
19295 \noun on
19296 Asger Alstrup
19297 \end_layout
19298
19299 \begin_layout Subsection
19300 Introduction
19301 \end_layout
19302
19303 \begin_layout Standard
19304 If you have the 
19305 \family typewriter
19306 chktex
19307 \family default
19308  program installed
19309 \begin_inset Foot
19310 status collapsed
19311
19312 \begin_layout Plain Layout
19313
19314 \family typewriter
19315 chktex
19316 \family default
19317  is not yet available when you are using the \SpecialChar LaTeX
19318  distribution MiK\SpecialChar TeX
19319 .
19320 \end_layout
19321
19322 \end_inset
19323
19324 , you'll find in the 
19325 \family sans
19326 Tools
19327 \family default
19328  menu the entry: 
19329 \family sans
19330 Check
19331 \begin_inset space ~
19332 \end_inset
19333
19334 TeX
19335 \family default
19336 .
19337  You can get 
19338 \family typewriter
19339 chktex
19340 \family default
19341  from CTAN,
19342 \begin_inset Newline newline
19343 \end_inset
19344
19345
19346 \begin_inset CommandInset href
19347 LatexCommand href
19348 target "https://www.ctan.org/tex-archive/help/Catalogue/entries/chktex.html"
19349 literal "false"
19350
19351 \end_inset
19352
19353 .
19354 \end_layout
19355
19356 \begin_layout Standard
19357 The 
19358 \family sans
19359 Chk\SpecialChar TeX
19360
19361 \family default
19362  package is a program that was written by 
19363 \begin_inset Flex Noun
19364 status collapsed
19365
19366 \begin_layout Plain Layout
19367 Jens T.
19368 \begin_inset space ~
19369 \end_inset
19370
19371 Berger Thielemann
19372 \end_layout
19373
19374 \end_inset
19375
19376  in frustration because some constructs in \SpecialChar LaTeX
19377  are sometimes non-intuitive,
19378  and easy to forget.
19379  The program runs over your \SpecialChar LaTeX
19380  file, checks the integrity of the file, and
19381  flags some common errors.
19382  In other technical words, it is 
19383 \family typewriter
19384 lint
19385 \family default
19386  for \SpecialChar LaTeX
19387 .
19388 \end_layout
19389
19390 \begin_layout Standard
19391 Well, what is a syntax checker doing in \SpecialChar LyX
19392  which is supposed to produce correct
19393  \SpecialChar LaTeX
19394  anyways? The answer is simple: Just as 
19395 \family typewriter
19396 Lint
19397 \family default
19398  not only checks the 
19399 \emph on
19400 syntax
19401 \emph default
19402  of C programs, but also does 
19403 \emph on
19404 semantic
19405 \emph default
19406  checks for type-errors, 
19407 \family sans
19408 Chk\SpecialChar TeX
19409
19410 \family default
19411  catches some common 
19412 \emph on
19413 typographic
19414 \emph default
19415  errors, in addition to the syntactical ones.
19416  Specifically, 
19417 \family sans
19418 Chk\SpecialChar TeX
19419
19420 \family default
19421  is capable of detecting several common errors, such as
19422 \end_layout
19423
19424 \begin_layout Itemize
19425 Ellipsis detection:
19426 \begin_inset Newline newline
19427 \end_inset
19428
19429 Use \SpecialChar ldots
19430  instead of ...
19431 \end_layout
19432
19433 \begin_layout Itemize
19434 No space in front of/after parenthesis:
19435 \begin_inset Newline newline
19436 \end_inset
19437
19438 ( wrong spacing )
19439 \end_layout
19440
19441 \begin_layout Itemize
19442 Enforcement of normal space after common abbreviations:
19443 \begin_inset Newline newline
19444 \end_inset
19445
19446 e.
19447 \begin_inset space \thinspace{}
19448 \end_inset
19449
19450 g.
19451 \begin_inset space \space{}
19452 \end_inset
19453
19454 is too wide spacing.
19455 \end_layout
19456
19457 \begin_layout Itemize
19458 Enforcement of end-of-sentence space when the last sentence ends with a
19459  capital letter:
19460 \begin_inset Newline newline
19461 \end_inset
19462
19463 This is a TEST.
19464  And this is wrong spacing.
19465 \end_layout
19466
19467 \begin_layout Itemize
19468 Space in front of labels and similar commands:
19469 \begin_inset Newline newline
19470 \end_inset
19471
19472 The label should stick right up to the text to avoid falling to a wrong
19473  page.
19474  
19475 \begin_inset CommandInset label
19476 LatexCommand label
19477 name "sec:chktex"
19478
19479 \end_inset
19480
19481  
19482 \begin_inset Foot
19483 status collapsed
19484
19485 \begin_layout Plain Layout
19486 This footnote is in danger of falling off to a wrong page
19487 \end_layout
19488
19489 \end_inset
19490
19491  The label is separated too much.
19492 \end_layout
19493
19494 \begin_layout Itemize
19495 Space in front of references, instead of hard spaces:
19496 \begin_inset Newline newline
19497 \end_inset
19498
19499 If you have bad luck, the text will break right between the referenced text
19500  and reference number, and that's a pity.
19501  See section 
19502 \begin_inset CommandInset ref
19503 LatexCommand ref
19504 reference "sec:chktex"
19505
19506 \end_inset
19507
19508 .
19509 \end_layout
19510
19511 \begin_layout Itemize
19512 Use of 
19513 \begin_inset Quotes eld
19514 \end_inset
19515
19516 x
19517 \begin_inset Quotes erd
19518 \end_inset
19519
19520  instead of 
19521 \begin_inset Formula $\times$
19522 \end_inset
19523
19524  between numbers:
19525 \begin_inset Newline newline
19526 \end_inset
19527
19528 2x2 looks cheap compared to 
19529 \begin_inset Formula $2\times2$
19530 \end_inset
19531
19532 .
19533 \end_layout
19534
19535 \begin_layout Standard
19536 and more \SpecialChar ldots
19537  It is an invaluable tool when you are 
19538 \begin_inset Quotes eld
19539 \end_inset
19540
19541 finishing up
19542 \begin_inset Quotes erd
19543 \end_inset
19544
19545  your document before printing, and you should run it right after the obligatory
19546  spelling check, and before you go fine tuning the typesetting.
19547 \end_layout
19548
19549 \begin_layout Subsection
19550 How to use it
19551 \end_layout
19552
19553 \begin_layout Standard
19554 If you have the program installed, usage is as simple as choosing 
19555 \family sans
19556 Tools\SpecialChar menuseparator
19557 Check
19558 \begin_inset space ~
19559 \end_inset
19560
19561 TeX
19562 \family default
19563 .
19564  This will make \SpecialChar LyX
19565  generate a \SpecialChar LaTeX
19566  file of your document, start 
19567 \family sans
19568 Chk\SpecialChar TeX
19569
19570 \family default
19571  to check it, and then make \SpecialChar LyX
19572  insert 
19573 \begin_inset Quotes eld
19574 \end_inset
19575
19576 error boxes
19577 \begin_inset Quotes erd
19578 \end_inset
19579
19580  with the warnings from 
19581 \family sans
19582 Chk\SpecialChar TeX
19583
19584 \family default
19585 , if there were any.
19586  The warnings will be placed close to the point of the mistake, and you
19587  can quickly find them by using the 
19588 \family sans
19589 Navigate\SpecialChar menuseparator
19590 Error
19591 \family default
19592  menu item, or the shortcut key 
19593 \family sans
19594 C-g
19595 \family default
19596  from the default 
19597 \family typewriter
19598 cua
19599 \family default
19600  bind file.
19601  Open the error boxes by clicking on them with the mouse, or use the shortcut
19602  key 
19603 \family sans
19604 C-i
19605 \family default
19606  from 
19607 \family typewriter
19608 cua
19609 \family default
19610  bindings, or the corresponding 
19611 \family sans
19612 C-o
19613 \family default
19614  for the alternate 
19615 \family typewriter
19616 emacs
19617 \family default
19618  bind file.
19619  Read the warning and correct the mistake, if it is a mistake.
19620  If you have trouble understanding what the warning is about, you can safely
19621  ignore it.
19622  Remember that there is a hidden layer between the document on screen and
19623  the technical details in invoking 
19624 \family sans
19625 Chk\SpecialChar TeX
19626
19627 \family default
19628 , and this gap can make some warnings seem arcane or just plain silly.
19629 \end_layout
19630
19631 \begin_layout Standard
19632 This document is an excellent testing bed for the feature, and it should
19633  provide quite a few warnings for you to fiddle with.
19634  Since computers are only so smart, expect most of the warnings to be false
19635  alarms, though.
19636 \end_layout
19637
19638 \begin_layout Subsection
19639 How to fine tune it
19640 \end_layout
19641
19642 \begin_layout Standard
19643 Sometimes, you'll find that 
19644 \family sans
19645 Chk\SpecialChar TeX
19646
19647 \family default
19648  makes more noise than suits your mood.
19649  Then you can choose not to use it, wait until your mood changes, or try
19650  to customize 
19651 \family sans
19652 Chk\SpecialChar TeX
19653
19654 \family default
19655  to get better along with you.
19656 \end_layout
19657
19658 \begin_layout Standard
19659 Although 
19660 \family sans
19661 Chk\SpecialChar TeX
19662
19663 \family default
19664  
19665 \emph on
19666 is
19667 \emph default
19668  very configurable and extensible, you should not expect to solve all problems
19669  with 
19670 \family sans
19671 Chk\SpecialChar TeX
19672
19673 \family default
19674  in \SpecialChar LyX
19675  this way.
19676  Since \SpecialChar LyX
19677  has to generate a somewhat special \SpecialChar LaTeX
19678  file to be able to match the
19679  line numbers from the 
19680 \family sans
19681 Chk\SpecialChar TeX
19682
19683 \family default
19684  output
19685 \begin_inset Foot
19686 status collapsed
19687
19688 \begin_layout Plain Layout
19689 You can inspect the specific output from 
19690 \family sans
19691 chktex
19692 \family default
19693  by using 
19694 \family sans
19695 Document\SpecialChar menuseparator
19696 \SpecialChar LaTeX
19697
19698 \begin_inset space ~
19699 \end_inset
19700
19701 Log
19702 \family default
19703  right after a 
19704 \family sans
19705 chktex
19706 \family default
19707  run.
19708 \end_layout
19709
19710 \end_inset
19711
19712  to the internal document structure, some of the warnings will not appear
19713  correctly.
19714  There are two things you can do about this:
19715 \end_layout
19716
19717 \begin_layout Itemize
19718 Fine tune the 
19719 \family sans
19720 Chk\SpecialChar TeX
19721
19722 \family default
19723  invocation command line in 
19724 \begin_inset Flex Noun
19725 status collapsed
19726
19727 \begin_layout Plain Layout
19728 Tools\SpecialChar menuseparator
19729 Preferences\SpecialChar menuseparator
19730 Output\SpecialChar menuseparator
19731 LaTeX\SpecialChar menuseparator
19732 CheckTeX command
19733 \end_layout
19734
19735 \end_inset
19736
19737 , or the global 
19738 \family sans
19739 Chk\SpecialChar TeX
19740
19741 \family default
19742  installation configuration file (usually with the file 
19743 \family typewriter
19744 chktexrc
19745 \family default
19746 ).
19747  See below to learn what warnings can be enabled and disabled on the command
19748  line.
19749 \end_layout
19750
19751 \begin_layout Itemize
19752 Export your document as a raw \SpecialChar LaTeX
19753  file using 
19754 \family sans
19755 File\SpecialChar menuseparator
19756 Export\SpecialChar menuseparator
19757 \SpecialChar LaTeX
19758
19759 \family default
19760  and run 
19761 \family typewriter
19762 chktex
19763 \family default
19764  manually on that.
19765  Invoked in this way, it can be a hassle to find the corresponding place
19766  in the document inside \SpecialChar LyX
19767 , but with a little patience, you should be able
19768  to do it.
19769 \end_layout
19770
19771 \begin_layout Standard
19772 Here follows the warning messages that can be enabled and disabled in 
19773 \family sans
19774 Preferences
19775 \family default
19776 .
19777  Use 
19778 \family typewriter
19779 -n#
19780 \family default
19781  to disable a warning, and 
19782 \family typewriter
19783 -w#
19784 \family default
19785  to enable a warning.
19786  The emphasized entries are disabled by default, because the default is
19787  "
19788 \family typewriter
19789 chktex -n1 -n3 -n6 -n9 -n22 -n25 -n30 -n38
19790 \family default
19791 ".
19792 \end_layout
19793
19794 \begin_layout Standard
19795 Notice that you should only use the options that enable and disable warnings,
19796  because \SpecialChar LyX
19797  relies on some of the other command line parameters to be set
19798  in a specific way to have a chance to communicate with 
19799 \family typewriter
19800 chktex
19801 \family default
19802 .
19803 \end_layout
19804
19805 \begin_layout Enumerate
19806
19807 \size small
19808 \emph on
19809 Command terminated with space.
19810 \end_layout
19811
19812 \begin_layout Enumerate
19813
19814 \size small
19815 Non-breaking space (
19816 \begin_inset Quotes eld
19817 \end_inset
19818
19819
19820 \family typewriter
19821 ~
19822 \family default
19823
19824 \begin_inset Quotes erd
19825 \end_inset
19826
19827 ) should have been used.
19828 \end_layout
19829
19830 \begin_layout Enumerate
19831
19832 \size small
19833 \emph on
19834 You should enclose the previous parenthesis with 
19835 \begin_inset Quotes eld
19836 \end_inset
19837
19838
19839 \family typewriter
19840 {}
19841 \family default
19842
19843 \begin_inset Quotes erd
19844 \end_inset
19845
19846 .
19847 \end_layout
19848
19849 \begin_layout Enumerate
19850
19851 \size small
19852 Italic correction (
19853 \begin_inset Quotes eld
19854 \end_inset
19855
19856
19857 \family typewriter
19858
19859 \backslash
19860 /
19861 \family default
19862
19863 \begin_inset Quotes erd
19864 \end_inset
19865
19866 ) found in non-italic buffer.
19867 \end_layout
19868
19869 \begin_layout Enumerate
19870
19871 \size small
19872 Italic correction (
19873 \begin_inset Quotes eld
19874 \end_inset
19875
19876
19877 \family typewriter
19878
19879 \backslash
19880 /
19881 \family default
19882
19883 \begin_inset Quotes erd
19884 \end_inset
19885
19886 ) found more than once.
19887 \end_layout
19888
19889 \begin_layout Enumerate
19890
19891 \size small
19892 \emph on
19893 No italic correction (
19894 \begin_inset Quotes eld
19895 \end_inset
19896
19897
19898 \family typewriter
19899
19900 \backslash
19901 /
19902 \family default
19903
19904 \begin_inset Quotes erd
19905 \end_inset
19906
19907 ) found.
19908 \end_layout
19909
19910 \begin_layout Enumerate
19911
19912 \size small
19913 Accent command 
19914 \begin_inset Quotes eld
19915 \end_inset
19916
19917
19918 \family typewriter
19919 cmd
19920 \family default
19921
19922 \begin_inset Quotes erd
19923 \end_inset
19924
19925  needs use of 
19926 \begin_inset Quotes eld
19927 \end_inset
19928
19929
19930 \family typewriter
19931 cmd
19932 \family default
19933
19934 \begin_inset Quotes erd
19935 \end_inset
19936
19937 .
19938 \end_layout
19939
19940 \begin_layout Enumerate
19941
19942 \size small
19943 Wrong length of dash may have been used.
19944 \end_layout
19945
19946 \begin_layout Enumerate
19947
19948 \size small
19949 \emph on
19950 \begin_inset Quotes eld
19951 \end_inset
19952
19953
19954 \family typewriter
19955 %s
19956 \family default
19957
19958 \begin_inset Quotes erd
19959 \end_inset
19960
19961  expected, found 
19962 \begin_inset Quotes eld
19963 \end_inset
19964
19965
19966 \family typewriter
19967 %s
19968 \family default
19969
19970 \begin_inset Quotes erd
19971 \end_inset
19972
19973 .
19974 \end_layout
19975
19976 \begin_layout Enumerate
19977
19978 \size small
19979 Solo 
19980 \begin_inset Quotes eld
19981 \end_inset
19982
19983
19984 \family typewriter
19985 %s
19986 \family default
19987
19988 \begin_inset Quotes erd
19989 \end_inset
19990
19991  found.
19992 \end_layout
19993
19994 \begin_layout Enumerate
19995
19996 \size small
19997 You should use 
19998 \begin_inset Quotes eld
19999 \end_inset
20000
20001
20002 \family typewriter
20003 %s
20004 \family default
20005
20006 \begin_inset Quotes erd
20007 \end_inset
20008
20009  to achieve an ellipsis.
20010 \end_layout
20011
20012 \begin_layout Enumerate
20013
20014 \size small
20015 Inter-word spacing (
20016 \begin_inset Quotes eld
20017 \end_inset
20018
20019
20020 \family typewriter
20021
20022 \backslash
20023
20024 \family default
20025  
20026 \begin_inset Quotes eld
20027 \end_inset
20028
20029 ) should perhaps be used.
20030 \end_layout
20031
20032 \begin_layout Enumerate
20033
20034 \size small
20035 Inter-sentence spacing (
20036 \begin_inset Quotes eld
20037 \end_inset
20038
20039
20040 \family typewriter
20041
20042 \backslash
20043 @
20044 \family default
20045
20046 \begin_inset Quotes erd
20047 \end_inset
20048
20049 ) should perhaps be used.
20050 \end_layout
20051
20052 \begin_layout Enumerate
20053
20054 \size small
20055 Could not find argument for command.
20056 \end_layout
20057
20058 \begin_layout Enumerate
20059
20060 \size small
20061 No match found for 
20062 \begin_inset Quotes eld
20063 \end_inset
20064
20065
20066 \family typewriter
20067 %s
20068 \family default
20069
20070 \begin_inset Quotes erd
20071 \end_inset
20072
20073 .
20074 \end_layout
20075
20076 \begin_layout Enumerate
20077
20078 \size small
20079 Math mode still on at end of \SpecialChar LaTeX
20080  file.
20081 \end_layout
20082
20083 \begin_layout Enumerate
20084
20085 \size small
20086 Number of 
20087 \begin_inset Quotes eld
20088 \end_inset
20089
20090
20091 \family typewriter
20092 char
20093 \family default
20094
20095 \begin_inset Quotes erd
20096 \end_inset
20097
20098  doesn't match the number of 
20099 \begin_inset Quotes eld
20100 \end_inset
20101
20102
20103 \family typewriter
20104 char
20105 \family default
20106
20107 \begin_inset Quotes erd
20108 \end_inset
20109
20110 .
20111 \end_layout
20112
20113 \begin_layout Enumerate
20114
20115 \size small
20116 You should use either 
20117 \family typewriter
20118
20119 \begin_inset Quotes eld
20120 \end_inset
20121
20122
20123 \family default
20124  or 
20125 \family typewriter
20126
20127 \begin_inset Quotes erd
20128 \end_inset
20129
20130
20131 \family default
20132  as an alternative to 
20133 \begin_inset Quotes eld
20134 \end_inset
20135
20136
20137 \family typewriter
20138 "
20139 \family default
20140
20141 \begin_inset Quotes erd
20142 \end_inset
20143
20144 .
20145 \end_layout
20146
20147 \begin_layout Enumerate
20148
20149 \size small
20150 You should use "
20151 \family typewriter
20152 '
20153 \family default
20154 " (ASCII 39) instead of "
20155 \family typewriter
20156 ´
20157 \family default
20158 " (ASCII 180).
20159 \end_layout
20160
20161 \begin_layout Enumerate
20162
20163 \size small
20164 User-specified pattern found.
20165 \end_layout
20166
20167 \begin_layout Enumerate
20168
20169 \size small
20170 This command might not be intended.
20171 \end_layout
20172
20173 \begin_layout Enumerate
20174
20175 \size small
20176 \emph on
20177 Comment displayed.
20178 \end_layout
20179
20180 \begin_layout Enumerate
20181
20182 \size small
20183 Either 
20184 \family typewriter
20185 ''
20186 \backslash
20187 ,'
20188 \family default
20189  or 
20190 \family typewriter
20191 '
20192 \backslash
20193 ,''
20194 \family default
20195  will look better.
20196 \end_layout
20197
20198 \begin_layout Enumerate
20199
20200 \size small
20201 Delete this space to maintain correct page references.
20202 \end_layout
20203
20204 \begin_layout Enumerate
20205
20206 \size small
20207 \emph on
20208 You might wish to put this between a pair of 
20209 \begin_inset Quotes eld
20210 \end_inset
20211
20212
20213 \family typewriter
20214 {}
20215 \family default
20216
20217 \begin_inset Quotes erd
20218 \end_inset
20219
20220 .
20221 \end_layout
20222
20223 \begin_layout Enumerate
20224
20225 \size small
20226 You ought to remove spaces in front of punctuation.
20227 \end_layout
20228
20229 \begin_layout Enumerate
20230
20231 \size small
20232 Could not execute \SpecialChar LaTeX
20233  command.
20234 \end_layout
20235
20236 \begin_layout Enumerate
20237
20238 \size small
20239 Don't use 
20240 \family typewriter
20241
20242 \backslash
20243 /
20244 \family default
20245  in front of small punctuation.
20246 \end_layout
20247
20248 \begin_layout Enumerate
20249
20250 \family typewriter
20251 \size small
20252 $
20253 \backslash
20254 times$
20255 \family default
20256  may look prettier here.
20257 \end_layout
20258
20259 \begin_layout Enumerate
20260
20261 \size small
20262 \emph on
20263 Multiple spaces detected in output.
20264 \end_layout
20265
20266 \begin_layout Enumerate
20267
20268 \size small
20269 This text may be ignored.
20270 \end_layout
20271
20272 \begin_layout Enumerate
20273
20274 \size small
20275 Use 
20276 \family typewriter
20277
20278 \begin_inset Quotes eld
20279 \end_inset
20280
20281
20282 \family default
20283  to begin quotation, not 
20284 \family typewriter
20285 '
20286 \family default
20287 .
20288 \end_layout
20289
20290 \begin_layout Enumerate
20291
20292 \size small
20293 Use 
20294 \family typewriter
20295 '
20296 \family default
20297  to end quotation, not 
20298 \family typewriter
20299
20300 \begin_inset Quotes eld
20301 \end_inset
20302
20303
20304 \family default
20305 .
20306 \end_layout
20307
20308 \begin_layout Enumerate
20309
20310 \size small
20311 Don't mix quotes.
20312 \end_layout
20313
20314 \begin_layout Enumerate
20315
20316 \size small
20317 You should perhaps use 
20318 \begin_inset Quotes eld
20319 \end_inset
20320
20321
20322 \family typewriter
20323 cmd
20324 \family default
20325
20326 \begin_inset Quotes erd
20327 \end_inset
20328
20329  instead.
20330 \end_layout
20331
20332 \begin_layout Enumerate
20333
20334 \size small
20335 You should put a space in front of/after parenthesis.
20336 \end_layout
20337
20338 \begin_layout Enumerate
20339
20340 \size small
20341 You should avoid spaces in front of/after parenthesis.
20342 \end_layout
20343
20344 \begin_layout Enumerate
20345
20346 \size small
20347 \emph on
20348 You should not use punctuation in front of/after quotes.
20349 \end_layout
20350
20351 \begin_layout Enumerate
20352
20353 \size small
20354 Double space found.
20355 \end_layout
20356
20357 \begin_layout Enumerate
20358
20359 \size small
20360 You should put punctuation outside inner/inside display math mode.
20361 \end_layout
20362
20363 \begin_layout Enumerate
20364
20365 \size small
20366 You ought to not use primitive \SpecialChar TeX
20367  in \SpecialChar LaTeX
20368  code.
20369 \end_layout
20370
20371 \begin_layout Enumerate
20372
20373 \size small
20374 You should remove spaces in front of 
20375 \begin_inset Quotes eld
20376 \end_inset
20377
20378
20379 \family typewriter
20380 %s
20381 \family default
20382
20383 \begin_inset Quotes erd
20384 \end_inset
20385
20386
20387 \end_layout
20388
20389 \begin_layout Enumerate
20390
20391 \size small
20392 \begin_inset Quotes eld
20393 \end_inset
20394
20395
20396 \family typewriter
20397 %s
20398 \family default
20399
20400 \begin_inset Quotes erd
20401 \end_inset
20402
20403  is normally not followed by 
20404 \begin_inset Quotes eld
20405 \end_inset
20406
20407
20408 \family typewriter
20409 %c
20410 \family default
20411
20412 \begin_inset Quotes erd
20413 \end_inset
20414
20415 .
20416 \end_layout
20417
20418 \begin_layout Standard
20419 In later versions of \SpecialChar LyX
20420 , we hope to provide a more complete interface to this
20421  tool (and it's smaller cousin 
20422 \family typewriter
20423 lacheck
20424 \family default
20425 ) to exploit the full power of it.
20426  But it's not exactly useless as it is now: go try it on one of your existing
20427  documents of a certain length and be surprised.
20428 \end_layout
20429
20430 \begin_layout Section
20431 Version Control in \SpecialChar LyX
20432
20433 \end_layout
20434
20435 \begin_layout Standard
20436 by
20437 \noun on
20438  Lars Gullik Bjønnes 
20439 \noun default
20440 and 
20441 \noun on
20442 Pavel Sanda
20443 \end_layout
20444
20445 \begin_layout Subsection
20446 Introduction
20447 \end_layout
20448
20449 \begin_layout Standard
20450 \SpecialChar LyX
20451  supports some of the most basic RCS/CVS/SVN/GIT commands.
20452  If you need something a bit more sophisticated you will have to do that
20453  manually in a terminal.
20454 \end_layout
20455
20456 \begin_layout Standard
20457 Also note that CVS support is not as good as subversion support, so we advise
20458  using SVN instead.
20459  A good place to start learning Subversion is the SVN Book
20460 \begin_inset Foot
20461 status collapsed
20462
20463 \begin_layout Plain Layout
20464 \begin_inset CommandInset href
20465 LatexCommand href
20466 target "http://svnbook.red-bean.com/"
20467 literal "false"
20468
20469 \end_inset
20470
20471
20472 \end_layout
20473
20474 \end_inset
20475
20476 .
20477  In the case of RCS you should read 
20478 \begin_inset Quotes eld
20479 \end_inset
20480
20481 rcsintro
20482 \begin_inset Quotes erd
20483 \end_inset
20484
20485  (a man file, read it with 
20486 \family typewriter
20487 man rcsintro
20488 \family default
20489 ).
20490  This file describes all the basic features of RCS.
20491  You should especially notice the comment about a RCS directory, and the
20492  notion of a master RCS file (the file ending in 
20493 \family typewriter
20494 ,v
20495 \family default
20496 ).
20497 \end_layout
20498
20499 \begin_layout Standard
20500 Before you begin to use the version control features in \SpecialChar LyX
20501 , you should be
20502  familiar with RCS/CVS/SVN/GIT usage.
20503  The implementation in \SpecialChar LyX
20504  assumes a recent version of the GNU RCS or CVS/SVN
20505  package — no guarantees are made for older versions.
20506  Most of the log messages are not currently displayed after operations —
20507  you can check them in the Messages pane if you are unsure.
20508  Regular users of version control will appreciate the VC toolbar, which
20509  can be enabled via 
20510 \family sans
20511 View\SpecialChar menuseparator
20512 Toolbars\SpecialChar menuseparator
20513 Version
20514 \begin_inset space ~
20515 \end_inset
20516
20517 Control
20518 \family default
20519 .
20520 \end_layout
20521
20522 \begin_layout Standard
20523 For introducing your own external commands consult 
20524 \begin_inset Flex Code
20525 status collapsed
20526
20527 \begin_layout Plain Layout
20528 vc-command
20529 \end_layout
20530
20531 \end_inset
20532
20533  in the manual 
20534 \emph on
20535 \SpecialChar LyX
20536  Functions
20537 \emph default
20538 .
20539 \end_layout
20540
20541 \begin_layout Standard
20542 It is strongly recommended to store documents in uncompressed format if
20543  using version control (uncheck 
20544 \family sans
20545 Document\SpecialChar menuseparator
20546 Compressed
20547 \family default
20548  if it is checked): Uncompressed LyX documents are text files and therefore
20549  for merging two different versions by version control systems.
20550  Compressed LyX documents are binary files, which cannot be merged by version
20551  control systems.
20552 \end_layout
20553
20554 \begin_layout Subsection
20555 RCS commands in \SpecialChar LyX
20556
20557 \end_layout
20558
20559 \begin_layout Standard
20560 The following sections describe the RCS commands supported by \SpecialChar LyX
20561 .
20562  You can find them in the 
20563 \family sans
20564 File\SpecialChar menuseparator
20565 Version
20566 \begin_inset space ~
20567 \end_inset
20568
20569 Control
20570 \family default
20571  submenu.
20572  \SpecialChar LyX
20573  was tested against RCS 5.7/5.8.
20574 \end_layout
20575
20576 \begin_layout Subsubsection
20577
20578 \family sans
20579 Register
20580 \end_layout
20581
20582 \begin_layout Standard
20583 If your document is not under revision control, this is the only item shown
20584  in the menu.
20585  And if it is under revision control, the 
20586 \family sans
20587 Register
20588 \family default
20589  item is not visible.
20590  
20591 \end_layout
20592
20593 \begin_layout Standard
20594 This command registers your document with RCS (unless you are under the
20595  directory managed by CVS)\SpecialChar endofsentence
20596  You are asked interactively to supply an initial
20597  description of the document.
20598  The document is now set in Read-Only mode and you have to 
20599 \family sans
20600 Check
20601 \begin_inset space ~
20602 \end_inset
20603
20604 Out
20605 \begin_inset space ~
20606 \end_inset
20607
20608 For
20609 \begin_inset space ~
20610 \end_inset
20611
20612 Edit
20613 \family default
20614 , before making any changes to it.
20615  A document under revision control has a 
20616 \begin_inset Quotes eld
20617 \end_inset
20618
20619 [RCS:<version> <locker>]
20620 \begin_inset Quotes erd
20621 \end_inset
20622
20623  item tagged to the filename in the minibuffer.
20624 \end_layout
20625
20626 \begin_layout Standard
20627 RCS command that is run:
20628 \end_layout
20629
20630 \begin_layout LyX-Code
20631
20632 \family typewriter
20633 ci -q -u -i -t-"<initial description>" <file-name>
20634 \end_layout
20635
20636 \begin_layout Standard
20637 Read 
20638 \family typewriter
20639 man ci
20640 \family default
20641  to understand the switches.
20642  
20643 \end_layout
20644
20645 \begin_layout Subsubsection
20646
20647 \family sans
20648 Check In Changes
20649 \end_layout
20650
20651 \begin_layout Standard
20652 When you are finished editing a file, you check in your changes.
20653  When you do this, you are asked for a description of the changes.
20654  This is stored in the history log.
20655  The version number is bumped, your changes are applied to the master RCS
20656  file, the document is unlocked and set to Read-Only mode.
20657 \end_layout
20658
20659 \begin_layout Itemize
20660 RCS command: 
20661 \family typewriter
20662 ci -q -u -m"<description>" <file-name>
20663 \end_layout
20664
20665 \begin_layout Subsubsection
20666
20667 \family sans
20668 Check Out For Edit
20669 \end_layout
20670
20671 \begin_layout Standard
20672 By doing this you lock the document so that only you can edit it.
20673  This will also make the document Read-Write only for you.
20674  You will usually continue editing for a while and when you are finished
20675  you check in your changes.
20676  The status line is changed to reflect that you have locked the file.
20677 \end_layout
20678
20679 \begin_layout Itemize
20680 RCS command: 
20681 \family typewriter
20682 co -q -l <file-name>
20683 \end_layout
20684
20685 \begin_layout Subsubsection
20686
20687 \family sans
20688 Revert To Repository Version
20689 \end_layout
20690
20691 \begin_layout Standard
20692 This will discard all changes made to the document since the last check
20693  in.
20694  You get a warning before changes are discarded.
20695 \end_layout
20696
20697 \begin_layout Itemize
20698 RCS command: 
20699 \family typewriter
20700 co -f -u<version> <file-name>
20701 \end_layout
20702
20703 \begin_layout Subsubsection
20704
20705 \family sans
20706 Copy
20707 \end_layout
20708
20709 \begin_layout Standard
20710 This will create a copy of the current document.
20711  Since RCS does not support copy operations natively, the version history
20712  is not preserved, and the copy is added as a new file.
20713  It requires a clean document without any changes since the last checkin.
20714  You are asked for a file name and a description of the copy operation.
20715  After that the copy is created, both locally and in the repository.
20716  If the parent directories of the copied and original document differ, all
20717  relative paths of included files of the copy are adjusted (like in 
20718 \family sans
20719 File\SpecialChar menuseparator
20720 Save As
20721 \family default
20722 \SpecialChar ldots
20723 ).
20724  Finally, the copy is loaded instead of the original document.
20725 \end_layout
20726
20727 \begin_layout Labeling
20728 \labelwidthstring 00.00.0000
20729 RCS
20730 \begin_inset space ~
20731 \end_inset
20732
20733 commands: 
20734 \begin_inset space ~
20735 \end_inset
20736
20737
20738 \begin_inset Newline newline
20739 \end_inset
20740
20741 Copy 
20742 \begin_inset Flex Code
20743 status collapsed
20744
20745 \begin_layout Plain Layout
20746
20747 \family typewriter
20748 \begin_inset Quotes qld
20749 \end_inset
20750
20751 <file-name>
20752 \begin_inset Quotes qld
20753 \end_inset
20754
20755
20756 \end_layout
20757
20758 \end_inset
20759
20760  to 
20761 \begin_inset Flex Code
20762 status collapsed
20763
20764 \begin_layout Plain Layout
20765
20766 \family typewriter
20767 \begin_inset Quotes qld
20768 \end_inset
20769
20770 <new-file-name>
20771 \begin_inset Quotes qld
20772 \end_inset
20773
20774
20775 \end_layout
20776
20777 \end_inset
20778
20779
20780 \begin_inset Newline newline
20781 \end_inset
20782
20783
20784 \begin_inset Flex Code
20785 status collapsed
20786
20787 \begin_layout Plain Layout
20788 ci -q -u 
20789 \family typewriter
20790 -i 
20791 \begin_inset Quotes qld
20792 \end_inset
20793
20794 <new-file-name>
20795 \begin_inset Quotes qld
20796 \end_inset
20797
20798
20799 \end_layout
20800
20801 \end_inset
20802
20803
20804 \end_layout
20805
20806 \begin_layout Subsubsection
20807
20808 \family sans
20809 Undo Last Checkin
20810 \end_layout
20811
20812 \begin_layout Standard
20813 This makes as if the last check in never happened.
20814  No changes are made to the document loaded into \SpecialChar LyX
20815 , but the last version
20816  is removed from the master RCS file.
20817 \end_layout
20818
20819 \begin_layout Itemize
20820 RCS command: 
20821 \family typewriter
20822 rcs -o<version> <file-name>
20823 \end_layout
20824
20825 \begin_layout Subsubsection
20826
20827 \family sans
20828 Show History
20829 \end_layout
20830
20831 \begin_layout Standard
20832 This shows the complete history of the RCS document.
20833  The output of 
20834 \family typewriter
20835 rlog <file-name>
20836 \family default
20837  is shown in a browser.
20838  See 
20839 \family typewriter
20840 man rlog
20841 \family default
20842  for more info.
20843 \end_layout
20844
20845 \begin_layout Subsubsection
20846 Revision info
20847 \end_layout
20848
20849 \begin_layout Standard
20850 \SpecialChar LyX
20851  supports RCS version number, author name, date and time of last commit.
20852  All those are extracted from 
20853 \family typewriter
20854 rlog -r <file-name>
20855 \family default
20856 .
20857  See 
20858 \begin_inset CommandInset ref
20859 LatexCommand ref
20860 reference "subsec:VCS-Revision-Information"
20861
20862 \end_inset
20863
20864  for details.
20865 \end_layout
20866
20867 \begin_layout Subsection
20868 CVS commands in \SpecialChar LyX
20869
20870 \end_layout
20871
20872 \begin_layout Standard
20873 A subset of CVS operations is supported by \SpecialChar LyX
20874 .
20875  You can find the commands in the 
20876 \family sans
20877 File\SpecialChar menuseparator
20878 Version
20879 \begin_inset space ~
20880 \end_inset
20881
20882 Control
20883 \family default
20884  submenu.
20885  The version control system SVN is more powerful, so please use it instead
20886  of CVS if possible.
20887 \end_layout
20888
20889 \begin_layout Subsubsection
20890
20891 \family sans
20892 General CVS usage
20893 \end_layout
20894
20895 \begin_layout Standard
20896 If you start from scratch with CVS you have to create your repository and
20897  checkout the working copy with external tools.
20898  If you're using a client-server setup you may need to login before doing
20899  the first repository checkout.
20900 \end_layout
20901
20902 \begin_layout Standard
20903 If your documents are under revision control and others are using the same
20904  repository problems arise when different changes to the same document at
20905  the same location happen.
20906  Standard CVS repositories don't operate with a file locking mechanism.
20907  This may be surprising, but conflicts only occur if people disagree on
20908  the proper content of the same part of a document.
20909  So, if co-workers are used to communicate regularly, these conflicts occur
20910  rarely.
20911  If they don't communicate they have a fundamental problem anyway.
20912  Nevertheless some people like to work with so called 
20913 \begin_inset Quotes eld
20914 \end_inset
20915
20916 reserved checkouts
20917 \begin_inset Quotes erd
20918 \end_inset
20919
20920 .
20921  If they do so the working copy of all files is readonly when checked out
20922  first and the user starts editing after using a special command to make
20923  the working copy writable.
20924  When the changes are checked in the working copy returns to readonly state.
20925  With \SpecialChar LyX
20926  one has to edit the 
20927 \begin_inset Flex Code
20928 status collapsed
20929
20930 \begin_layout Plain Layout
20931 .cvsrc
20932 \end_layout
20933
20934 \end_inset
20935
20936  file and add the line 
20937 \begin_inset Flex Code
20938 status collapsed
20939
20940 \begin_layout Plain Layout
20941 cvs -r
20942 \end_layout
20943
20944 \end_inset
20945
20946  to work with reserved checkouts.
20947  The benefit is the possibility to see who is using a writable copy of some
20948  document.
20949  It's not guaranteed only one user makes a copy writable.
20950 \end_layout
20951
20952 \begin_layout Standard
20953 \SpecialChar LyX
20954  tries to guess if you're using reserved or non-reserved checkouts.
20955  If your working copy is readonly or it is writable and an additional copy
20956  of your document exists in the CVS/Base sub-directory a reserved otherwise
20957  a non-reserved checkout is assumed.
20958  When a reserved checkout is detected you have to use 
20959 \begin_inset Flex Noun
20960 status collapsed
20961
20962 \begin_layout Plain Layout
20963 Check Out
20964 \end_layout
20965
20966 \end_inset
20967
20968  to make your working copy writable if it's readonly.
20969  After doing so the 
20970 \begin_inset Flex Noun
20971 status collapsed
20972
20973 \begin_layout Plain Layout
20974 Check In
20975 \end_layout
20976
20977 \end_inset
20978
20979  operation is possible and that makes your working copy readonly again after
20980  transferring your changes to the repository.
20981 \end_layout
20982
20983 \begin_layout Standard
20984 More information about CVS can be found here 
20985 \begin_inset Flex URL
20986 status collapsed
20987
20988 \begin_layout Plain Layout
20989
20990 http://www.nongnu.org/cvs
20991 \end_layout
20992
20993 \end_inset
20994
20995  and here 
20996 \begin_inset Flex URL
20997 status collapsed
20998
20999 \begin_layout Plain Layout
21000
21001 http://ximbiot.com/cvs
21002 \end_layout
21003
21004 \end_inset
21005
21006 .
21007 \end_layout
21008
21009 \begin_layout Standard
21010 Read 
21011 \family typewriter
21012 man cvs
21013 \family default
21014  to understand the sub-commands and the switches mentioned below.
21015 \end_layout
21016
21017 \begin_layout Subsubsection
21018
21019 \family sans
21020 Register
21021 \end_layout
21022
21023 \begin_layout Standard
21024 If your document is not under revision control, this is the only item shown
21025  in the menu.
21026  And if it is under revision control, the 
21027 \family sans
21028 Register
21029 \family default
21030  item is not visible.
21031  
21032 \end_layout
21033
21034 \begin_layout Standard
21035 This command registers in CVS your document 
21036 \begin_inset Flex Strong
21037 status collapsed
21038
21039 \begin_layout Plain Layout
21040
21041 \emph on
21042 only
21043 \end_layout
21044
21045 \end_inset
21046
21047  in the case you have already the documents directory under CVS control
21048  (in particular 
21049 \family typewriter
21050 CVS/Entries
21051 \family default
21052  file exists).
21053  This means you have to create or checkout the archive by yourself using
21054  external tools.
21055  (In case you forget that step \SpecialChar LyX
21056  registers the document with RCS.)
21057 \end_layout
21058
21059 \begin_layout Standard
21060 Then you are asked interactively to supply an initial description of the
21061  document.
21062  Don't forget that registered file is not yet checked in.
21063 \end_layout
21064
21065 \begin_layout Standard
21066 CVS command that is run: 
21067 \family typewriter
21068 cvs -q add -m"<entered message>" "<file-name>"
21069 \end_layout
21070
21071 \begin_layout Standard
21072 The term 
21073 \family typewriter
21074 "<file-name>"
21075 \family default
21076  above and for all other CVS commands is an abbreviation for 
21077 \begin_inset Quotes eld
21078 \end_inset
21079
21080 change the current working directory to file location and use the file name
21081  without path component as argument
21082 \begin_inset Quotes erd
21083 \end_inset
21084
21085 .
21086 \end_layout
21087
21088 \begin_layout Subsubsection
21089
21090 \family sans
21091 Check In Changes
21092 \end_layout
21093
21094 \begin_layout Standard
21095 When you are finished editing a file, you commit your changes.
21096  When you do this and you had changed the document, you are asked for a
21097  description of the changes.
21098  After that changes are written to the repository.
21099  In case you didn't change the document and a reserved checkout is detected
21100  the reservation made on 
21101 \begin_inset Flex Noun
21102 status collapsed
21103
21104 \begin_layout Plain Layout
21105 Check Out
21106 \end_layout
21107
21108 \end_inset
21109
21110  is undone.
21111 \end_layout
21112
21113 \begin_layout Labeling
21114 \labelwidthstring 00.00.0000
21115 CVS
21116 \begin_inset space ~
21117 \end_inset
21118
21119 command: 
21120 \begin_inset space ~
21121 \end_inset
21122
21123
21124 \begin_inset Newline newline
21125 \end_inset
21126
21127
21128 \begin_inset Flex Code
21129 status collapsed
21130
21131 \begin_layout Plain Layout
21132 cvs 
21133 \family typewriter
21134 -q commit -m"<description>" "<file-name>"
21135 \end_layout
21136
21137 \end_inset
21138
21139  or
21140 \begin_inset Newline newline
21141 \end_inset
21142
21143
21144 \begin_inset Flex Code
21145 status collapsed
21146
21147 \begin_layout Plain Layout
21148 cvs -q unedit 
21149 \family typewriter
21150 "<file-name>"
21151 \end_layout
21152
21153 \end_inset
21154
21155
21156 \end_layout
21157
21158 \begin_layout Subsubsection
21159
21160 \family sans
21161 Check Out Changes
21162 \end_layout
21163
21164 \begin_layout Standard
21165 When you are sharing a repository with others, you may have to incorporate
21166  their changes into your working copy.
21167 \end_layout
21168
21169 \begin_layout Standard
21170 CVS command: 
21171 \family typewriter
21172 cvs -q update "<file-name>"
21173 \end_layout
21174
21175 \begin_layout Standard
21176 If a readonly checkout is detected the working copy is made writable and
21177  reserved.
21178 \end_layout
21179
21180 \begin_layout Standard
21181 CVS command: 
21182 \family typewriter
21183 cvs -q edit "<file-name>"
21184 \end_layout
21185
21186 \begin_layout Subsubsection
21187
21188 \family sans
21189 Revert To Repository Version
21190 \end_layout
21191
21192 \begin_layout Standard
21193 This will discard all changes made to the document since the last check
21194  in.
21195  You get a warning before changes are discarded.
21196  Firstly the file is deleted, secondly CVS update command is run.
21197 \end_layout
21198
21199 \begin_layout Standard
21200 CVS command: 
21201 \family typewriter
21202 cvs -q update "<file-name>"
21203 \end_layout
21204
21205 \begin_layout Standard
21206 If a reserved checkout is detected and the working copy has no changes only
21207  the reservation is undone.
21208 \end_layout
21209
21210 \begin_layout Standard
21211 CVS command: 
21212 \family typewriter
21213 cvs -q unedit "<file-name>"
21214 \end_layout
21215
21216 \begin_layout Subsubsection
21217
21218 \family sans
21219 Copy
21220 \end_layout
21221
21222 \begin_layout Standard
21223 This will create a copy of the current document.
21224  Since CVS does not support copy operations natively, the version history
21225  is not preserved, and the copy is added as a new file.
21226  It requires a clean document without any changes since the last checkin.
21227  You are asked for a file name and a description of the copy operation.
21228  After that the copy is created, both locally and in the repository.
21229  If the parent directories of the copied and original document differ, all
21230  relative paths of included files of the copy are adjusted (like in 
21231 \family sans
21232 File\SpecialChar menuseparator
21233 Save As
21234 \family default
21235 \SpecialChar ldots
21236 ).
21237  Finally, the copy is loaded instead of the original document.
21238 \end_layout
21239
21240 \begin_layout Labeling
21241 \labelwidthstring 00.00.0000
21242 CVS
21243 \begin_inset space ~
21244 \end_inset
21245
21246 commands: 
21247 \begin_inset space ~
21248 \end_inset
21249
21250
21251 \begin_inset Newline newline
21252 \end_inset
21253
21254 Copy 
21255 \begin_inset Flex Code
21256 status collapsed
21257
21258 \begin_layout Plain Layout
21259 "<file-name>"
21260 \end_layout
21261
21262 \end_inset
21263
21264  to 
21265 \begin_inset Flex Code
21266 status collapsed
21267
21268 \begin_layout Plain Layout
21269 "<new-file-name>"
21270 \end_layout
21271
21272 \end_inset
21273
21274
21275 \begin_inset Newline newline
21276 \end_inset
21277
21278
21279 \begin_inset Flex Code
21280 status collapsed
21281
21282 \begin_layout Plain Layout
21283 cvs -q add "<new-file-name>"
21284 \end_layout
21285
21286 \end_inset
21287
21288
21289 \end_layout
21290
21291 \begin_layout Subsubsection
21292
21293 \family sans
21294 Rename
21295 \end_layout
21296
21297 \begin_layout Standard
21298 This will rename the current document.
21299  Since CVS does not support rename operations natively, the version history
21300  is not preserved, the renamed document is added as a new file, and the
21301  original document is deleted.
21302  It requires a clean document without any changes since the last checkin.
21303  You are asked for a file name and a description of the rename operation.
21304  After that the document is renamed, both locally and in the repository.
21305  If the parent directories of the new and old file names differ, all relative
21306  paths of included files are adjusted (like in 
21307 \family sans
21308 File\SpecialChar menuseparator
21309 Save As
21310 \family default
21311 \SpecialChar ldots
21312 ).
21313  Finally, the document is reloaded using the new name.
21314 \end_layout
21315
21316 \begin_layout Labeling
21317 \labelwidthstring 00.00.0000
21318 CVS
21319 \begin_inset space ~
21320 \end_inset
21321
21322 commands: 
21323 \begin_inset space ~
21324 \end_inset
21325
21326
21327 \begin_inset Newline newline
21328 \end_inset
21329
21330 Rename 
21331 \begin_inset Flex Code
21332 status collapsed
21333
21334 \begin_layout Plain Layout
21335 "<file-name>"
21336 \end_layout
21337
21338 \end_inset
21339
21340  to 
21341 \begin_inset Flex Code
21342 status collapsed
21343
21344 \begin_layout Plain Layout
21345 "<new-file-name>"
21346 \end_layout
21347
21348 \end_inset
21349
21350
21351 \begin_inset Newline newline
21352 \end_inset
21353
21354
21355 \begin_inset Flex Code
21356 status collapsed
21357
21358 \begin_layout Plain Layout
21359 cvs -q add "<new-file-name>"
21360 \end_layout
21361
21362 \end_inset
21363
21364
21365 \begin_inset Newline newline
21366 \end_inset
21367
21368
21369 \begin_inset Flex Code
21370 status collapsed
21371
21372 \begin_layout Plain Layout
21373 cvs -q remove "<file-name>"
21374 \end_layout
21375
21376 \end_inset
21377
21378
21379 \end_layout
21380
21381 \begin_layout Subsubsection
21382 Update of the local directory checkout from repository
21383 \end_layout
21384
21385 \begin_layout Standard
21386 Once your documents gets more complex, containing sub-documents and pictures,
21387  including external 
21388 \begin_inset Flex Code
21389 status collapsed
21390
21391 \begin_layout Plain Layout
21392 .tex
21393 \end_layout
21394
21395 \end_inset
21396
21397  files and so on using version control becomes more complicated.
21398  \SpecialChar LyX
21399  supports updating the whole tree in which resides the document.
21400  This become especially useful once you cooperate with people which neither
21401  have detailed knowledge about CVS usage nor they have ambition to commit
21402  additional material to the repository.
21403  You have to organize the files structure so that all external files are
21404  in the same directory or subdirectories of the document.
21405  It's good practice anyway to store multipart documents in an extra directory.
21406 \end_layout
21407
21408 \begin_layout Standard
21409 The 
21410 \begin_inset Flex Code
21411 status collapsed
21412
21413 \begin_layout Plain Layout
21414 Update local directory from repository
21415 \end_layout
21416
21417 \end_inset
21418
21419  command updates the whole directory.
21420  If local changes are detected user is warned before update starts.
21421  In case of merge conflicts both versions of the conflicting document parts
21422  are placed in the final document.
21423  You have to review and correct the result of the merge.
21424  You'll find the conflicts enclosed in pairs of 
21425 \begin_inset Flex Code
21426 status collapsed
21427
21428 \begin_layout Plain Layout
21429 <<<<<<<
21430 \end_layout
21431
21432 \end_inset
21433
21434  and 
21435 \begin_inset Flex Code
21436 status collapsed
21437
21438 \begin_layout Plain Layout
21439 >>>>>>>
21440 \end_layout
21441
21442 \end_inset
21443
21444  separated by 
21445 \begin_inset Flex Code
21446 status collapsed
21447
21448 \begin_layout Plain Layout
21449 =======
21450 \end_layout
21451
21452 \end_inset
21453
21454 .
21455  The first part is your version as before the update operation with the
21456  document name prepended.
21457  The second one is the repository version with the version number after
21458  the sequence of 
21459 \begin_inset Flex Code
21460 status collapsed
21461
21462 \begin_layout Plain Layout
21463 >
21464 \end_layout
21465
21466 \end_inset
21467
21468  signs.
21469 \end_layout
21470
21471 \begin_layout Labeling
21472 \labelwidthstring 00.00.0000
21473 CVS
21474 \begin_inset space ~
21475 \end_inset
21476
21477 commands: 
21478 \begin_inset space ~
21479 \end_inset
21480
21481
21482 \begin_inset Newline newline
21483 \end_inset
21484
21485
21486 \begin_inset Flex Code
21487 status collapsed
21488
21489 \begin_layout Plain Layout
21490 cd $path; cvs diff 
21491 \family typewriter
21492 "."
21493 \end_layout
21494
21495 \end_inset
21496
21497  (Ask if changes are detected.)
21498 \begin_inset Newline newline
21499 \end_inset
21500
21501
21502 \begin_inset Flex Code
21503 status collapsed
21504
21505 \begin_layout Plain Layout
21506 cd $path; cvs -q update 
21507 \family typewriter
21508 "."
21509 \end_layout
21510
21511 \end_inset
21512
21513
21514 \end_layout
21515
21516 \begin_layout Standard
21517 where 
21518 \begin_inset Flex Code
21519 status collapsed
21520
21521 \begin_layout Plain Layout
21522 $path
21523 \end_layout
21524
21525 \end_inset
21526
21527  stands for the path to the document.
21528 \end_layout
21529
21530 \begin_layout Subsubsection
21531
21532 \family sans
21533 Show History
21534 \end_layout
21535
21536 \begin_layout Standard
21537 This shows the complete history of the CVS document.
21538  The output of 
21539 \family typewriter
21540 cvs log "<file-name>"
21541 \family default
21542  is shown in a browser.
21543 \end_layout
21544
21545 \begin_layout Subsubsection
21546 Revision info
21547 \end_layout
21548
21549 \begin_layout Standard
21550 \SpecialChar LyX
21551  supports CVS version number, author name, date and time of last commit.
21552  All those are extracted from 
21553 \family typewriter
21554 cvs log -r <file-name>
21555 \family default
21556 .
21557  See 
21558 \begin_inset CommandInset ref
21559 LatexCommand ref
21560 reference "subsec:VCS-Revision-Information"
21561
21562 \end_inset
21563
21564  for details.
21565 \end_layout
21566
21567 \begin_layout Subsection
21568 SVN commands in \SpecialChar LyX
21569
21570 \end_layout
21571
21572 \begin_layout Standard
21573 SVN is now partially supported by \SpecialChar LyX
21574 .
21575  You can find the commands in the 
21576 \family sans
21577 File\SpecialChar menuseparator
21578 Version
21579 \begin_inset space ~
21580 \end_inset
21581
21582 Control
21583 \family default
21584  submenu.
21585  Please note that if you use password protected access to repository via
21586  ssh, you will be asked in terminal window.
21587  \SpecialChar LyX
21588  was tested against SVN 1.5, 1.6, 1.7 and 1.8
21589 \begin_inset Foot
21590 status collapsed
21591
21592 \begin_layout Plain Layout
21593 Most of the commands will work with 1.4 too, see 
21594 \begin_inset CommandInset ref
21595 LatexCommand ref
21596 reference "subsec:SVN-Repo-Update"
21597
21598 \end_inset
21599
21600 .
21601  There seems to be currently unresolved permissions problem under SVN 1.8
21602  with reverting changes when file is locked.
21603 \end_layout
21604
21605 \end_inset
21606
21607
21608 \end_layout
21609
21610 \begin_layout Subsubsection
21611
21612 \family sans
21613 Register
21614 \end_layout
21615
21616 \begin_layout Standard
21617 If your document is not under revision control, this is the only item shown
21618  in the menu.
21619  And if it is under revision control, the 
21620 \family sans
21621 Register
21622 \family default
21623  item is not visible.
21624 \end_layout
21625
21626 \begin_layout Standard
21627 This command registers in SVN your document ONLY in case you have already
21628  the documents directory under SVN control (in particular 
21629 \family typewriter
21630 .svn/entries
21631 \family default
21632  file exists).
21633  This means you have to checkout the archive by yourself.
21634 \end_layout
21635
21636 \begin_layout Standard
21637 Then you are asked interactively to supply an initial description of the
21638  document.
21639  Don't forget that registered file is not yet commited.
21640 \end_layout
21641
21642 \begin_layout Standard
21643 SVN command that is run: 
21644 \family typewriter
21645 svn add -q 
21646 \begin_inset Quotes qld
21647 \end_inset
21648
21649 <file-name>
21650 \begin_inset Quotes qld
21651 \end_inset
21652
21653
21654 \end_layout
21655
21656 \begin_layout Standard
21657 Read 
21658 \family typewriter
21659 man svn
21660 \family default
21661  to understand the switches.
21662 \end_layout
21663
21664 \begin_layout Subsubsection
21665
21666 \family sans
21667 Check In Changes
21668 \end_layout
21669
21670 \begin_layout Standard
21671 When you are finished editing a file, you commit your changes.
21672  When you do this, you are asked for a description of the changes.
21673  After that changes are commited.
21674 \end_layout
21675
21676 \begin_layout Standard
21677 SVN command:
21678 \begin_inset Foot
21679 status collapsed
21680
21681 \begin_layout Plain Layout
21682 In case locking is not enabled.
21683  See Section 
21684 \begin_inset CommandInset ref
21685 LatexCommand ref
21686 reference "subsec:SVN-File-Locking"
21687
21688 \end_inset
21689
21690 .
21691 \end_layout
21692
21693 \end_inset
21694
21695  
21696 \family typewriter
21697 svn commit -q -m"<description>" <file-name>
21698 \end_layout
21699
21700 \begin_layout Subsubsection
21701
21702 \family sans
21703 Check Out For Edit
21704 \end_layout
21705
21706 \begin_layout Standard
21707 Updates the changes of this file from the repository.
21708  Be sure you understand SVN merging and conflicts resolving before using
21709  this function, because all conflicts has to be resolved manually by you!
21710 \end_layout
21711
21712 \begin_layout Standard
21713 SVN command:
21714 \begin_inset Foot
21715 status collapsed
21716
21717 \begin_layout Plain Layout
21718 Ditto.
21719 \end_layout
21720
21721 \end_inset
21722
21723  
21724 \family typewriter
21725 svn update --non-interactive 
21726 \begin_inset Quotes qld
21727 \end_inset
21728
21729 <file-name>
21730 \begin_inset Quotes qld
21731 \end_inset
21732
21733
21734 \end_layout
21735
21736 \begin_layout Subsubsection
21737
21738 \family sans
21739 Revert To Repository Version
21740 \end_layout
21741
21742 \begin_layout Standard
21743 This will discard all changes made to the document since the last check
21744  in.
21745  You get a warning before changes are discarded.
21746 \end_layout
21747
21748 \begin_layout Standard
21749 SVN command: 
21750 \family typewriter
21751 svn revert -q 
21752 \begin_inset Quotes qld
21753 \end_inset
21754
21755 <file-name>
21756 \begin_inset Quotes qld
21757 \end_inset
21758
21759
21760 \end_layout
21761
21762 \begin_layout Subsubsection
21763
21764 \family sans
21765 Copy
21766 \end_layout
21767
21768 \begin_layout Standard
21769 This will create a copy of the current document including the version history.
21770  It requires a clean document without any changes since the last checkin.
21771  You are asked for a file name and a description of the copy operation.
21772  After that the copy is created, both locally and in the repository.
21773  If the parent directories of the copied and original document differ, all
21774  relative paths of included files of the copy are adjusted (like in 
21775 \family sans
21776 File\SpecialChar menuseparator
21777 Save As
21778 \family default
21779 \SpecialChar ldots
21780 ).
21781  Finally, the copy is loaded instead of the original document.
21782 \end_layout
21783
21784 \begin_layout Labeling
21785 \labelwidthstring 00.00.0000
21786 SVN
21787 \begin_inset space ~
21788 \end_inset
21789
21790 commands: 
21791 \begin_inset space ~
21792 \end_inset
21793
21794
21795 \begin_inset Newline newline
21796 \end_inset
21797
21798
21799 \begin_inset Flex Code
21800 status collapsed
21801
21802 \begin_layout Plain Layout
21803 svn copy -q 
21804 \family typewriter
21805
21806 \begin_inset Quotes qld
21807 \end_inset
21808
21809 <file-name>
21810 \begin_inset Quotes qld
21811 \end_inset
21812
21813  
21814 \begin_inset Quotes qld
21815 \end_inset
21816
21817 <new-file-name>
21818 \begin_inset Quotes qld
21819 \end_inset
21820
21821
21822 \end_layout
21823
21824 \end_inset
21825
21826
21827 \begin_inset Newline newline
21828 \end_inset
21829
21830
21831 \begin_inset Flex Code
21832 status collapsed
21833
21834 \begin_layout Plain Layout
21835 svn commit
21836 \end_layout
21837
21838 \end_inset
21839
21840
21841 \end_layout
21842
21843 \begin_layout Subsubsection
21844
21845 \family sans
21846 Rename
21847 \end_layout
21848
21849 \begin_layout Standard
21850 This will rename the current document including the version history.
21851  It requires a clean document without any changes since the last checkin.
21852  You are asked for a file name and a description of the rename operation.
21853  After that the document is renamed, both locally and in the repository.
21854  If the parent directories of the new and old file names differ, all relative
21855  paths of included files are adjusted (like in 
21856 \family sans
21857 File\SpecialChar menuseparator
21858 Save As
21859 \family default
21860 \SpecialChar ldots
21861 ).
21862  Finally, the document is reloaded using the new name.
21863 \end_layout
21864
21865 \begin_layout Labeling
21866 \labelwidthstring 00.00.0000
21867 SVN
21868 \begin_inset space ~
21869 \end_inset
21870
21871 commands: 
21872 \begin_inset space ~
21873 \end_inset
21874
21875
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 move -q 
21885 \family typewriter
21886
21887 \begin_inset Quotes qld
21888 \end_inset
21889
21890 <file-name>
21891 \begin_inset Quotes qld
21892 \end_inset
21893
21894  
21895 \begin_inset Quotes qld
21896 \end_inset
21897
21898 <new-file-name>
21899 \begin_inset Quotes qld
21900 \end_inset
21901
21902
21903 \end_layout
21904
21905 \end_inset
21906
21907
21908 \begin_inset Newline newline
21909 \end_inset
21910
21911
21912 \begin_inset Flex Code
21913 status collapsed
21914
21915 \begin_layout Plain Layout
21916 svn commit
21917 \end_layout
21918
21919 \end_inset
21920
21921
21922 \end_layout
21923
21924 \begin_layout Subsubsection
21925 \begin_inset CommandInset label
21926 LatexCommand label
21927 name "subsec:SVN-Repo-Update"
21928
21929 \end_inset
21930
21931 Update of the local directory checkout from repository
21932 \begin_inset Foot
21933 status collapsed
21934
21935 \begin_layout Plain Layout
21936 Note that this command will work only with subversion 
21937 \begin_inset Formula $\geqq1.5$
21938 \end_inset
21939
21940
21941 \end_layout
21942
21943 \end_inset
21944
21945
21946 \end_layout
21947
21948 \begin_layout Standard
21949 All the commands above have one shortcoming – they deal with the current
21950  document only.
21951  Once your document contains pictures, includes external 
21952 \begin_inset Flex Code
21953 status collapsed
21954
21955 \begin_layout Plain Layout
21956 .tex
21957 \end_layout
21958
21959 \end_inset
21960
21961  files and so on administration becomes more complicated.
21962  \SpecialChar LyX
21963  now supports updating the whole tree in which resides the document
21964 \begin_inset Foot
21965 status collapsed
21966
21967 \begin_layout Plain Layout
21968 One need to organize the files structure so that all external files are
21969  in the same directory or subdirectories of the document.
21970  
21971 \end_layout
21972
21973 \end_inset
21974
21975 .
21976  This become especially useful once you cooperate with people which neither
21977  know about subversion management nor they have ambition to commit additional
21978  material to the repository.
21979  
21980 \end_layout
21981
21982 \begin_layout Standard
21983 \begin_inset Flex Code
21984 status collapsed
21985
21986 \begin_layout Plain Layout
21987 Update local directory from repository
21988 \end_layout
21989
21990 \end_inset
21991
21992  command updates the whole directory and in case of merge conflicts local
21993  version of the files are left, so no unintended data loss occurs.
21994  If local changes are detected user is warned before update starts.
21995 \end_layout
21996
21997 \begin_layout Labeling
21998 \labelwidthstring 00.00.0000
21999 SVN
22000 \begin_inset space ~
22001 \end_inset
22002
22003 commands: 
22004 \begin_inset space ~
22005 \end_inset
22006
22007
22008 \begin_inset Newline newline
22009 \end_inset
22010
22011
22012 \begin_inset Flex Code
22013 status collapsed
22014
22015 \begin_layout Plain Layout
22016 svn diff $path
22017 \end_layout
22018
22019 \end_inset
22020
22021  (Ask if changes are detected.)
22022 \begin_inset Newline newline
22023 \end_inset
22024
22025
22026 \begin_inset Flex Code
22027 status collapsed
22028
22029 \begin_layout Plain Layout
22030 svn update --accept mine-full $path
22031 \end_layout
22032
22033 \end_inset
22034
22035
22036 \end_layout
22037
22038 \begin_layout Standard
22039 where 
22040 \begin_inset Flex Code
22041 status collapsed
22042
22043 \begin_layout Plain Layout
22044 $path
22045 \end_layout
22046
22047 \end_inset
22048
22049  stands for the path to the document.
22050 \end_layout
22051
22052 \begin_layout Subsubsection
22053
22054 \family sans
22055 Show History
22056 \end_layout
22057
22058 \begin_layout Standard
22059 This shows the complete history of the SVN document.
22060  The output of 
22061 \family typewriter
22062 svn log 
22063 \begin_inset Quotes qld
22064 \end_inset
22065
22066 <file-name>
22067 \begin_inset Quotes qld
22068 \end_inset
22069
22070
22071 \family default
22072  is shown in a browser.
22073 \end_layout
22074
22075 \begin_layout Subsubsection
22076 File Locking
22077 \begin_inset CommandInset label
22078 LatexCommand label
22079 name "subsec:SVN-File-Locking"
22080
22081 \end_inset
22082
22083
22084 \end_layout
22085
22086 \begin_layout Standard
22087 The file exchange through various revision control systems brings the problem
22088  of merge conflicts in case two different users try to edit the same (parts
22089  of) document.
22090  When such a conflict happens it needs manual resolving and one reasonable
22091  alternative is to provide some kind of locking mechanism, which guarantees
22092  that only one user is allowed to edit file at the given time.
22093 \end_layout
22094
22095 \begin_layout Standard
22096 SVN has two such mechanisms to provide mutual exclusivity for file access
22097  – locks and automatic setting of write permissions (see sec.
22098  
22099 \begin_inset CommandInset ref
22100 LatexCommand ref
22101 reference "subsec:Automatical-Locking-Property"
22102
22103 \end_inset
22104
22105 ) based on 
22106 \begin_inset Flex Code
22107 status collapsed
22108
22109 \begin_layout Plain Layout
22110 svn:needs-lock
22111 \end_layout
22112
22113 \end_inset
22114
22115  file svn property
22116 \begin_inset Foot
22117 status collapsed
22118
22119 \begin_layout Plain Layout
22120 \begin_inset Flex URL
22121 status open
22122
22123 \begin_layout Plain Layout
22124
22125 http://svnbook.red-bean.com/en/1.2/svn.advanced.locking.html
22126 \end_layout
22127
22128 \end_inset
22129
22130
22131 \end_layout
22132
22133 \end_inset
22134
22135 .
22136  If this property is detected for a given document \SpecialChar LyX
22137  starts to use SVN locks
22138  for document editing automatically and the whole check-in/out mechanism
22139  switches to the same regimen as for RCS.
22140  This in particular means there are two different modes of file use in \SpecialChar LyX
22141 :
22142 \end_layout
22143
22144 \begin_layout Itemize
22145 Unlocked state.
22146  The loaded file is in the read-only mode.
22147  For editing on needs to check-out.
22148  
22149 \emph on
22150 Check-out
22151 \emph default
22152  consists of updating from the repository and gaining write lock.
22153  If the lock is not possible to obtain, we remain in unlocked state.
22154 \end_layout
22155
22156 \begin_layout Itemize
22157 Locked state.
22158  The loaded file is in the 
22159 \begin_inset Quotes els
22160 \end_inset
22161
22162 normal
22163 \begin_inset Quotes ers
22164 \end_inset
22165
22166  edit mode.
22167  No other user is allowed to edit the file.
22168  
22169 \emph on
22170 Check-in
22171 \emph default
22172  consists of commiting changes and releasing write-lock.
22173  If no changes have been made to the document, no commit will be produced
22174 \begin_inset Foot
22175 status collapsed
22176
22177 \begin_layout Plain Layout
22178 Don't be puzzled by the fact that you will be asked for commit message anyway.
22179 \end_layout
22180
22181 \end_inset
22182
22183  and only the write-lock will be released.
22184 \end_layout
22185
22186 \begin_layout Standard
22187 SVN commands:
22188 \end_layout
22189
22190 \begin_layout Labeling
22191 \labelwidthstring 00.00.0000
22192 Check-in:
22193 \family typewriter
22194  svn commit -q -m"<description>" "<file-name>"
22195 \begin_inset Newline newline
22196 \end_inset
22197
22198 svn unlock "<file-name>"
22199 \end_layout
22200
22201 \begin_layout Labeling
22202 \labelwidthstring 00.00.0000
22203 Check-out: 
22204 \family typewriter
22205 svn update "<file-name>"
22206 \begin_inset Newline newline
22207 \end_inset
22208
22209 svn lock "<file-name>"
22210 \end_layout
22211
22212 \begin_layout Subsubsection
22213
22214 \family typewriter
22215 \begin_inset CommandInset label
22216 LatexCommand label
22217 name "subsec:Automatical-Locking-Property"
22218
22219 \end_inset
22220
22221
22222 \family default
22223 Automatic Locking Property
22224 \end_layout
22225
22226 \begin_layout Standard
22227 The above mentioned automatic setting of write permissions of the .lyx file
22228  can be set through
22229 \family sans
22230  File\SpecialChar menuseparator
22231 Version
22232 \begin_inset space ~
22233 \end_inset
22234
22235 Control\SpecialChar menuseparator
22236 Use Locking Property
22237 \family default
22238 .
22239  This command is active only when the file is not locked on the svn server
22240  (i.e.
22241  you need to check-out before proceeding).
22242 \end_layout
22243
22244 \begin_layout Labeling
22245 \labelwidthstring 00.00.0000
22246 SVN
22247 \begin_inset space ~
22248 \end_inset
22249
22250 commands:
22251 \end_layout
22252
22253 \begin_layout Labeling
22254 \labelwidthstring 00.00.0000
22255 Set:
22256 \family typewriter
22257  svn propset svn:needs-lock ON "<file-name>"
22258 \end_layout
22259
22260 \begin_layout Labeling
22261 \labelwidthstring 00.00.0000
22262 Unset: 
22263 \family typewriter
22264 svn propdel svn:needs-lock "<file-name>"
22265 \end_layout
22266
22267 \begin_layout Subsubsection
22268 \begin_inset CommandInset label
22269 LatexCommand label
22270 name "subsec:VCS-Revision-Information"
22271
22272 \end_inset
22273
22274 Revision Information in Documents
22275 \end_layout
22276
22277 \begin_layout Standard
22278 There are more possibilities how to activate revision information in our
22279  document.
22280 \end_layout
22281
22282 \begin_layout Itemize
22283 \SpecialChar LyX
22284  supports directly:
22285 \end_layout
22286
22287 \begin_deeper
22288 \begin_layout Itemize
22289 tree revision information (
22290 \begin_inset Flex Code
22291 status collapsed
22292
22293 \begin_layout Plain Layout
22294 vcs-tree-revision
22295 \end_layout
22296
22297 \end_inset
22298
22299 ).
22300  The result is the output of the 
22301 \begin_inset Flex Code
22302 status collapsed
22303
22304 \begin_layout Plain Layout
22305 svnversion
22306 \end_layout
22307
22308 \end_inset
22309
22310  command, the following table gives you an idea, how to read the results.
22311 \end_layout
22312
22313 \begin_layout Standard
22314 \align center
22315 \begin_inset Tabular
22316 <lyxtabular version="3" rows="6" columns="2">
22317 <features tabularvalignment="middle">
22318 <column alignment="left" valignment="top">
22319 <column alignment="left" valignment="top">
22320 <row>
22321 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22322 \begin_inset Text
22323
22324 \begin_layout Plain Layout
22325
22326 \series bold
22327 Output
22328 \end_layout
22329
22330 \end_inset
22331 </cell>
22332 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
22333 \begin_inset Text
22334
22335 \begin_layout Plain Layout
22336
22337 \series bold
22338 Meaning
22339 \end_layout
22340
22341 \end_inset
22342 </cell>
22343 </row>
22344 <row>
22345 <cell alignment="left" valignment="top" topline="true" leftline="true" usebox="none">
22346 \begin_inset Text
22347
22348 \begin_layout Plain Layout
22349 4123:4168
22350 \end_layout
22351
22352 \end_inset
22353 </cell>
22354 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
22355 \begin_inset Text
22356
22357 \begin_layout Plain Layout
22358 mixed revision working copy
22359 \end_layout
22360
22361 \end_inset
22362 </cell>
22363 </row>
22364 <row>
22365 <cell alignment="left" valignment="top" topline="true" leftline="true" usebox="none">
22366 \begin_inset Text
22367
22368 \begin_layout Plain Layout
22369 4168M
22370 \end_layout
22371
22372 \end_inset
22373 </cell>
22374 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
22375 \begin_inset Text
22376
22377 \begin_layout Plain Layout
22378 modified working copy
22379 \end_layout
22380
22381 \end_inset
22382 </cell>
22383 </row>
22384 <row>
22385 <cell alignment="left" valignment="top" topline="true" leftline="true" usebox="none">
22386 \begin_inset Text
22387
22388 \begin_layout Plain Layout
22389 4123S
22390 \end_layout
22391
22392 \end_inset
22393 </cell>
22394 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
22395 \begin_inset Text
22396
22397 \begin_layout Plain Layout
22398 switched working copy
22399 \end_layout
22400
22401 \end_inset
22402 </cell>
22403 </row>
22404 <row>
22405 <cell alignment="left" valignment="top" topline="true" leftline="true" usebox="none">
22406 \begin_inset Text
22407
22408 \begin_layout Plain Layout
22409 4123P
22410 \end_layout
22411
22412 \end_inset
22413 </cell>
22414 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
22415 \begin_inset Text
22416
22417 \begin_layout Plain Layout
22418 partial working copy, from a sparse checkout
22419 \end_layout
22420
22421 \end_inset
22422 </cell>
22423 </row>
22424 <row>
22425 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22426 \begin_inset Text
22427
22428 \begin_layout Plain Layout
22429 4123:4168MS
22430 \end_layout
22431
22432 \end_inset
22433 </cell>
22434 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
22435 \begin_inset Text
22436
22437 \begin_layout Plain Layout
22438 mixed revision, modified, switched working copy
22439 \end_layout
22440
22441 \end_inset
22442 </cell>
22443 </row>
22444 </lyxtabular>
22445
22446 \end_inset
22447
22448
22449 \end_layout
22450
22451 \begin_layout Itemize
22452 file revision information.
22453  The result comes from parsing the output of 
22454 \begin_inset Flex Code
22455 status collapsed
22456
22457 \begin_layout Plain Layout
22458 svn
22459 \begin_inset space ~
22460 \end_inset
22461
22462 info
22463 \begin_inset space ~
22464 \end_inset
22465
22466 --xml
22467 \begin_inset space ~
22468 \end_inset
22469
22470 file.lyx
22471 \end_layout
22472
22473 \end_inset
22474
22475 .
22476  Supported flags are:
22477 \end_layout
22478
22479 \begin_deeper
22480 \begin_layout Itemize
22481 version number of the last commit (
22482 \begin_inset Flex Code
22483 status collapsed
22484
22485 \begin_layout Plain Layout
22486 vcs-revision
22487 \end_layout
22488
22489 \end_inset
22490
22491 )
22492 \end_layout
22493
22494 \begin_layout Itemize
22495 author of the last commit (
22496 \begin_inset Flex Code
22497 status collapsed
22498
22499 \begin_layout Plain Layout
22500 vcs-author
22501 \end_layout
22502
22503 \end_inset
22504
22505 )
22506 \end_layout
22507
22508 \begin_layout Itemize
22509 date of the last commit (
22510 \begin_inset Flex Code
22511 status collapsed
22512
22513 \begin_layout Plain Layout
22514 vcs-date
22515 \end_layout
22516
22517 \end_inset
22518
22519 )
22520 \end_layout
22521
22522 \begin_layout Itemize
22523 time of the last commit (
22524 \begin_inset Flex Code
22525 status collapsed
22526
22527 \begin_layout Plain Layout
22528 vcs-time
22529 \end_layout
22530
22531 \end_inset
22532
22533 )
22534 \end_layout
22535
22536 \end_deeper
22537 \begin_layout Standard
22538 You can obtain this info via InsetInfo (
22539 \change_inserted 5863208 1564400022
22540
22541 \lang american
22542 Insert\SpecialChar menuseparator
22543 Field\SpecialChar menuseparator
22544 Version Control Revision
22545 \change_deleted 5863208 1564399852
22546
22547 \lang english
22548 e.g.
22549  
22550 \begin_inset Flex Code
22551 status collapsed
22552
22553 \begin_layout Plain Layout
22554 info-insert buffer vcs-date
22555 \end_layout
22556
22557 \end_inset
22558
22559
22560 \change_unchanged
22561 ).
22562  The information will be available only when you have the file stored under
22563  svn managment (i.e.
22564  the 
22565 \begin_inset Flex Code
22566 status collapsed
22567
22568 \begin_layout Plain Layout
22569 .svn
22570 \end_layout
22571
22572 \end_inset
22573
22574  directory is available with your document).
22575 \end_layout
22576
22577 \end_deeper
22578 \begin_layout Itemize
22579 Another—a hacking one—possibility is to use svn keywords
22580 \begin_inset Foot
22581 status collapsed
22582
22583 \begin_layout Plain Layout
22584 http://svnbook.red-bean.com/en/1.4/svn.advanced.props.special.keywords.html
22585 \end_layout
22586
22587 \end_inset
22588
22589 .
22590  In short – you set file keywords property (e.g.
22591  
22592 \family sans
22593 svn propset svn:keywords 'Rev' file.lyx
22594 \family default
22595 ) and then paste keyword \SpecialChar TeX
22596  code
22597 \begin_inset Foot
22598 status collapsed
22599
22600 \begin_layout Plain Layout
22601 This is an easy way how to ensure that \SpecialChar LyX
22602  won't break the line in the middle
22603  of keyword tag.
22604 \end_layout
22605
22606 \end_inset
22607
22608  tag in your document (e.g.
22609  
22610 \begin_inset Flex Code
22611 status collapsed
22612
22613 \begin_layout Plain Layout
22614 $Rev$
22615 \end_layout
22616
22617 \end_inset
22618
22619 ).
22620  This way svn client will automatically substitute revision number (e.g.
22621  
22622 \begin_inset Flex Code
22623 status collapsed
22624
22625 \begin_layout Plain Layout
22626 $Rev: 59 $
22627 \end_layout
22628
22629 \end_inset
22630
22631 ) after each update and commit.
22632  There are more problems with this approach.
22633  Firstly, the '$' character is used in \SpecialChar TeX
22634  world for math equations, so any
22635  occurence of math formula 
22636 \begin_inset Formula $Rev$
22637 \end_inset
22638
22639  become 
22640 \begin_inset Formula $Rev:59$
22641 \end_inset
22642
22643  in your \SpecialChar LyX
22644  document.
22645  Similarly for other keywords like Id, Date, Author, etc.
22646  Secondly svn output is dependent on your locales, so its very easy that
22647  svn would produce some problematic strings once Date is used.
22648  Thirdly you get the whole 'Rev: 59' string in your document instead of
22649  the plain number.
22650  Until subversion implements user's custom keywords it will be hard to use
22651  this approach reliably or let \SpecialChar LyX
22652  to support it directly.
22653 \end_layout
22654
22655 \begin_layout Subsection
22656 SVN and Windows Environment
22657 \end_layout
22658
22659 \begin_layout Quote
22660 My inclination is to say that if the user cannot figure out the command
22661  line operations on their own fairly quickly, they would be well advised
22662  to use TortoiseSVN.
22663  —P.
22664  A.
22665  Rubin
22666 \end_layout
22667
22668 \begin_layout Subsubsection
22669 Preparation
22670 \end_layout
22671
22672 \begin_layout Standard
22673 In addition to installing \SpecialChar LyX
22674 , and having access to a Subversion repository,
22675  the user will need to install the Subversion client program.
22676  A Windows installer for the client program is available from 
22677 \begin_inset CommandInset href
22678 LatexCommand href
22679 name "CollabNet"
22680 target "http://www.collab.net/nonav/downloads/subversion/"
22681 literal "false"
22682
22683 \end_inset
22684
22685 .
22686  The user may also want to install 
22687 \begin_inset CommandInset href
22688 LatexCommand href
22689 name "TortoiseSVN"
22690 target "http://tortoisesvn.tigris.org/"
22691 literal "false"
22692
22693 \end_inset
22694
22695 , which integrates Subversion operations into the context (rightclick) menu
22696  of Windows Explorer.
22697  Operations done outside \SpecialChar LyX
22698  will typically be more convenient using the Explorer
22699  context menu.
22700  Note that TortoiseSVN is not a replacement for the client program, which
22701  is what \SpecialChar LyX
22702  itself will use.
22703 \end_layout
22704
22705 \begin_layout Subsubsection
22706 Bringing a document under Subversion control
22707 \end_layout
22708
22709 \begin_layout Standard
22710 Before a \SpecialChar LyX
22711  document can be brought under version control in Subversion, its
22712  parent directory needs to be under version control.
22713  If the document is being added to a project already in the repository,
22714  this is accomplished by checking the project out to the directory where
22715  the new document will be placed.
22716  If the project itself is not yet under version control (for instance, if
22717  this document starts a new project), the directory must be imported into
22718  the repository.
22719  This is done outside \SpecialChar LyX
22720 .
22721  Both import and checkout are easily accomplished from the Explorer context
22722  menu using TortoiseSVN, or alternatively can be done using the command
22723  line client at a DOS prompt.
22724  The procedure for importing the project using TortoiseSVN is described
22725  below, assuming an existing repository and a new project being started
22726  in 
22727 \family typewriter
22728 C:
22729 \backslash
22730 new project
22731 \family default
22732 .
22733  For information on using the Subversion client program, run 
22734 \family typewriter
22735 svn --help 
22736 \family default
22737 in a DOS shell.
22738 \end_layout
22739
22740 \begin_layout Enumerate
22741 Locate 
22742 \family typewriter
22743 C:
22744 \backslash
22745 new project 
22746 \family default
22747 in Windows Explorer, right click it, and select 
22748 \family sans
22749 TortoiseSVN\SpecialChar menuseparator
22750 Repo-browser
22751 \family default
22752 .
22753  If necessary, adjust the URL for the repository, then click OK.
22754 \end_layout
22755
22756 \begin_layout Enumerate
22757 Right click the level of the repository under which you want to place the
22758  new project folder (typically the top level) and click 
22759 \family sans
22760 Create folder
22761 \family default
22762  Supply a name for the project folder and click OK.
22763  Add a message for the log file if desired, then click OK again.
22764  The new project folder should appear in the repository.
22765  Finally, click OK again to exit the repository browser.
22766 \end_layout
22767
22768 \begin_layout Enumerate
22769 Once again right click 
22770 \family typewriter
22771 C:
22772 \backslash
22773 new project
22774 \family default
22775 , this time selecting SVN Checkout\SpecialChar ldots
22776  Select the URL of the project folder
22777  you just created in the repository, and set the checkout directory to 
22778 \family typewriter
22779 C:
22780 \backslash
22781 new project.
22782
22783 \family default
22784  Click OK.
22785  You will be warned about a non-empty folder; click OK to proceed.
22786  You should now have a 
22787 \family typewriter
22788 .svn
22789 \family default
22790  directory under 
22791 \family typewriter
22792 C:
22793 \backslash
22794 new project.
22795 \end_layout
22796
22797 \begin_layout Enumerate
22798 Create or open your document in \SpecialChar LyX
22799  and click 
22800 \family sans
22801 File\SpecialChar menuseparator
22802 Version
22803 \begin_inset space ~
22804 \end_inset
22805
22806 Control\SpecialChar menuseparator
22807 Register.
22808  
22809 \family default
22810 Add a log message and click OK to commit the document to version control.
22811 \end_layout
22812
22813 \begin_layout Standard
22814 From this point onward, you should have full functionality in the 
22815 \family sans
22816 File\SpecialChar menuseparator
22817 Version
22818 \begin_inset space ~
22819 \end_inset
22820
22821 Control
22822 \family default
22823  menu.
22824  You also have the option of checking the document in and out, viewing its
22825  history, etc.
22826  using the TortoiseSVN context menu in Windows Explorer or the Subversion
22827  client program from a command prompt.
22828 \end_layout
22829
22830 \begin_layout Subsubsection
22831 SSH tunnel used with SVN under Windows
22832 \end_layout
22833
22834 \begin_layout Standard
22835 Compared with Linux setting up an svn client to communicate over ssh under
22836  Windows is a rather troublesome task.
22837  We will at least offer some hints how to setup the client side but prior
22838  knowledge about ssh and the Windows command line is needed, also be prepared
22839  for a great deal of frustration\SpecialChar ldots
22840
22841 \end_layout
22842
22843 \begin_layout Enumerate
22844 Get an svn client for windows, as described in the previous sections.
22845  When it is a fresh install run some svn command (e.g.
22846  
22847 \begin_inset Flex Code
22848 status collapsed
22849
22850 \begin_layout Plain Layout
22851 svn --version
22852 \end_layout
22853
22854 \end_inset
22855
22856 ) to create config files, which you will need to change later on.
22857 \end_layout
22858
22859 \begin_layout Enumerate
22860 Choose an ssh client for Windows.
22861  There are several possibilities, we will use the one from Putty tools
22862 \begin_inset Foot
22863 status collapsed
22864
22865 \begin_layout Plain Layout
22866 \begin_inset Flex URL
22867 status collapsed
22868
22869 \begin_layout Plain Layout
22870
22871 http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html
22872 \end_layout
22873
22874 \end_inset
22875
22876
22877 \end_layout
22878
22879 \end_inset
22880
22881 .
22882  You will need to set the connection up so that the client doesn't ask for
22883  any password from you.
22884  To keep things easy we will use only keys without any additional password
22885  protection etc.
22886 \end_layout
22887
22888 \begin_deeper
22889 \begin_layout Enumerate
22890 Generate keys by 
22891 \begin_inset Flex Code
22892 status collapsed
22893
22894 \begin_layout Plain Layout
22895 puttygen
22896 \end_layout
22897
22898 \end_inset
22899
22900 .
22901  Save your private .ppk key file and put the public one on the server side.
22902  If the SVN server runs on Linux, note that the format of the public key
22903  is not compatible with Linux openssh and you will need to direcly copy-paste
22904  the key from the 
22905 \begin_inset Quotes eld
22906 \end_inset
22907
22908
22909 \emph on
22910 Public key for pasting into OpenSSH authorized_keys file
22911 \emph default
22912 :
22913 \begin_inset Quotes erd
22914 \end_inset
22915
22916  edit field into the server's 
22917 \begin_inset Flex Code
22918 status collapsed
22919
22920 \begin_layout Plain Layout
22921 ~/.ssh/authorized_keys
22922 \end_layout
22923
22924 \end_inset
22925
22926  / 
22927 \begin_inset Flex Code
22928 status collapsed
22929
22930 \begin_layout Plain Layout
22931 authorized_keys2
22932 \end_layout
22933
22934 \end_inset
22935
22936  file.
22937 \end_layout
22938
22939 \begin_layout Enumerate
22940 Get the Putty's 
22941 \begin_inset Flex Code
22942 status collapsed
22943
22944 \begin_layout Plain Layout
22945 plink
22946 \end_layout
22947
22948 \end_inset
22949
22950 .
22951  In the SVN config file
22952 \begin_inset Foot
22953 status collapsed
22954
22955 \begin_layout Plain Layout
22956 Exact path depends on Windows version, usually somewhere around 
22957 \begin_inset Flex Code
22958 status collapsed
22959
22960 \begin_layout Plain Layout
22961 c:
22962 \backslash
22963 Documents and Settings
22964 \backslash
22965 user
22966 \backslash
22967 Application Data
22968 \backslash
22969 Subversion
22970 \backslash
22971 config
22972 \end_layout
22973
22974 \end_inset
22975
22976  / 
22977 \begin_inset Flex Code
22978 status collapsed
22979
22980 \begin_layout Plain Layout
22981 AppData
22982 \backslash
22983 Roaming
22984 \backslash
22985 Subversion
22986 \end_layout
22987
22988 \end_inset
22989
22990 .
22991 \end_layout
22992
22993 \end_inset
22994
22995 , section [tunnels], setup ssh command, e.g.
22996  
22997 \begin_inset Flex Code
22998 status collapsed
22999
23000 \begin_layout Plain Layout
23001 ssh=c:/path/plink.exe -i c:/path/private_key.ppk
23002 \end_layout
23003
23004 \end_inset
23005
23006 .
23007 \begin_inset Foot
23008 status collapsed
23009
23010 \begin_layout Plain Layout
23011 It will usually take a lot of time to get exact command right and it depends
23012  on many things.
23013  For example do not have some remote server saved as a default session in
23014  Putty etc.
23015  If things fail, try to connect via plink without SVN first.
23016 \end_layout
23017
23018 \end_inset
23019
23020
23021 \end_layout
23022
23023 \end_deeper
23024 \begin_layout Enumerate
23025 Checkout the SVN archive, e.
23026 \begin_inset space \thinspace{}
23027 \end_inset
23028
23029 g.
23030 \begin_inset Newline newline
23031 \end_inset
23032
23033
23034 \begin_inset Flex Code
23035 status collapsed
23036
23037 \begin_layout Plain Layout
23038 svn co svn+ssh://user@server/repository_path
23039 \end_layout
23040
23041 \end_inset
23042
23043 .
23044 \end_layout
23045
23046 \begin_layout Subsubsection
23047 End-of-Line Conversions
23048 \end_layout
23049
23050 \begin_layout Standard
23051 When the collaborators are mixing Linux and Windows environments, \SpecialChar LyX
23052  will
23053  use different line endings inside the .lyx files.
23054  This is not a problem as far as \SpecialChar LyX
23055  functionality is concerned, but the commit
23056  diffs will be huge and merge-conflicts prone.
23057  Fortunately SVN itself knows
23058 \begin_inset Foot
23059 status collapsed
23060
23061 \begin_layout Plain Layout
23062 \begin_inset Flex URL
23063 status collapsed
23064
23065 \begin_layout Plain Layout
23066
23067 http://svnbook.red-bean.com/en/1.4/svn.advanced.props.file-portability.html
23068 \end_layout
23069
23070 \end_inset
23071
23072
23073 \end_layout
23074
23075 \end_inset
23076
23077  how to deal with CR/LF problems when switching .lyx files to the 
23078 \begin_inset Flex Code
23079 status collapsed
23080
23081 \begin_layout Plain Layout
23082 native
23083 \end_layout
23084
23085 \end_inset
23086
23087  mode.
23088 \begin_inset Foot
23089 status collapsed
23090
23091 \begin_layout Plain Layout
23092 For the lazy guys: 
23093 \begin_inset Flex Code
23094 status collapsed
23095
23096 \begin_layout Plain Layout
23097 svn propset svn:eol-style native FILE_NAME
23098 \end_layout
23099
23100 \end_inset
23101
23102
23103 \end_layout
23104
23105 \end_inset
23106
23107
23108 \end_layout
23109
23110 \begin_layout Subsection
23111 GIT commands in \SpecialChar LyX
23112
23113 \end_layout
23114
23115 \begin_layout Standard
23116 A minimal subset of GIT commands is now supported by \SpecialChar LyX
23117 .
23118  You can find the commands in the 
23119 \family sans
23120 File\SpecialChar menuseparator
23121 Version
23122 \begin_inset space ~
23123 \end_inset
23124
23125 Control
23126 \family default
23127  submenu.
23128  Please note that if you use password protected access to repository via
23129  ssh, you will be asked in terminal window.
23130  \SpecialChar LyX
23131  was tested against GIT 1.7.
23132 \begin_inset Foot
23133 status collapsed
23134
23135 \begin_layout Plain Layout
23136 Windows users please note that you need to ensure that git is on the path.
23137  This can be set from within \SpecialChar LyX
23138  at 
23139 \family sans
23140 Tools\SpecialChar menuseparator
23141 Preferences\SpecialChar menuseparator
23142 Paths\SpecialChar menuseparator
23143 PATH prefix
23144 \family default
23145 .
23146 \end_layout
23147
23148 \end_inset
23149
23150
23151 \end_layout
23152
23153 \begin_layout Standard
23154 One big difference of GIT and the other supported version control systems
23155  is the distributed nature of GIT: With traditional version control systems
23156  there is one central server which hosts the repository.
23157  Users commit their changes to the server, and get updates made by other
23158  users from it.
23159  With GIT, users commit to a local repository.
23160  The local repository can be synchronized with one or more remote repositories
23161  using the 
23162 \begin_inset Flex Code
23163 status collapsed
23164
23165 \begin_layout Plain Layout
23166 pull
23167 \end_layout
23168
23169 \end_inset
23170
23171  and 
23172 \begin_inset Flex Code
23173 status collapsed
23174
23175 \begin_layout Plain Layout
23176 push
23177 \end_layout
23178
23179 \end_inset
23180
23181  GIT commands.
23182  \SpecialChar LyX
23183  does not interact in any way with remote GIT repositories.
23184  It works exclusively with the local repository in a very similar way as
23185  with a central CVS or SVN repository.
23186  If you use remote GIT repositories you need to do the 
23187 \begin_inset Flex Code
23188 status collapsed
23189
23190 \begin_layout Plain Layout
23191 pull
23192 \end_layout
23193
23194 \end_inset
23195
23196  and 
23197 \begin_inset Flex Code
23198 status collapsed
23199
23200 \begin_layout Plain Layout
23201 push
23202 \end_layout
23203
23204 \end_inset
23205
23206  operations with your favourite GIT client.
23207 \end_layout
23208
23209 \begin_layout Subsubsection
23210
23211 \family sans
23212 Register
23213 \end_layout
23214
23215 \begin_layout Standard
23216 If your document is not under revision control, this is the only item shown
23217  in the menu.
23218  And if it is under revision control, the 
23219 \family sans
23220 Register
23221 \family default
23222  item is not visible.
23223 \end_layout
23224
23225 \begin_layout Standard
23226 This command registers in GIT your document ONLY in case you have already
23227  the documents directory under GIT control (in particular 
23228 \family typewriter
23229 .git/index
23230 \family default
23231  file exists).
23232  This means you have to checkout the archive by yourself.
23233 \end_layout
23234
23235 \begin_layout Standard
23236 Then you are asked interactively to supply an initial description of the
23237  document.
23238  Don't forget that registered file is not yet committed.
23239 \end_layout
23240
23241 \begin_layout Standard
23242 GIT command that is run: 
23243 \family typewriter
23244 git add 
23245 \begin_inset Quotes qld
23246 \end_inset
23247
23248 <file-name>
23249 \begin_inset Quotes qld
23250 \end_inset
23251
23252
23253 \end_layout
23254
23255 \begin_layout Standard
23256 Read 
23257 \family typewriter
23258 man git
23259 \family default
23260  to understand the switches.
23261 \end_layout
23262
23263 \begin_layout Subsubsection
23264
23265 \family sans
23266 Check In Changes
23267 \end_layout
23268
23269 \begin_layout Standard
23270 When you are finished editing a file, you commit your changes.
23271  When you do this, you are asked for a description of the changes.
23272  After that changes are committed.
23273 \end_layout
23274
23275 \begin_layout Standard
23276 GIT command: 
23277 \family typewriter
23278 git commit -q -m"<description>" <file-name>
23279 \end_layout
23280
23281 \begin_layout Subsubsection
23282
23283 \family sans
23284 Revert To Repository Version
23285 \end_layout
23286
23287 \begin_layout Standard
23288 This will discard all changes made to the document since the last check
23289  in.
23290  You get a warning before changes are discarded.
23291 \end_layout
23292
23293 \begin_layout Standard
23294 GIT command: 
23295 \family typewriter
23296 git checkout -q 
23297 \begin_inset Quotes qld
23298 \end_inset
23299
23300 <file-name>
23301 \begin_inset Quotes qld
23302 \end_inset
23303
23304
23305 \end_layout
23306
23307 \begin_layout Subsubsection
23308
23309 \family sans
23310 Rename
23311 \end_layout
23312
23313 \begin_layout Standard
23314 This will rename the current document including the version history.
23315  It requires a clean document without any changes since the last checkin.
23316  You are asked for a file name and a description of the rename operation.
23317  After that the document is renamed, both locally and in the repository.
23318  If the parent directories of the new and old file names differ, all relative
23319  paths of included files are adjusted (like in 
23320 \family sans
23321 File\SpecialChar menuseparator
23322 Save As
23323 \family default
23324 \SpecialChar ldots
23325 ).
23326  Finally, the document is reloaded using the new name.
23327 \end_layout
23328
23329 \begin_layout Labeling
23330 \labelwidthstring 00.00.0000
23331 GIT
23332 \begin_inset space ~
23333 \end_inset
23334
23335 commands: 
23336 \begin_inset space ~
23337 \end_inset
23338
23339
23340 \begin_inset Newline newline
23341 \end_inset
23342
23343
23344 \begin_inset Flex Code
23345 status collapsed
23346
23347 \begin_layout Plain Layout
23348 git mv 
23349 \family typewriter
23350
23351 \begin_inset Quotes qld
23352 \end_inset
23353
23354 <file-name>
23355 \begin_inset Quotes qld
23356 \end_inset
23357
23358  
23359 \begin_inset Quotes qld
23360 \end_inset
23361
23362 <new-file-name>
23363 \begin_inset Quotes qld
23364 \end_inset
23365
23366
23367 \end_layout
23368
23369 \end_inset
23370
23371
23372 \begin_inset Newline newline
23373 \end_inset
23374
23375
23376 \begin_inset Flex Code
23377 status collapsed
23378
23379 \begin_layout Plain Layout
23380 git commit
23381 \end_layout
23382
23383 \end_inset
23384
23385
23386 \end_layout
23387
23388 \begin_layout Subsubsection
23389
23390 \family sans
23391 Show History
23392 \end_layout
23393
23394 \begin_layout Standard
23395 This shows the complete history of the GIT document.
23396  The output of 
23397 \family typewriter
23398 git log 
23399 \begin_inset Quotes qld
23400 \end_inset
23401
23402 <file-name>
23403 \begin_inset Quotes qld
23404 \end_inset
23405
23406
23407 \family default
23408  is shown in a browser.
23409 \end_layout
23410
23411 \begin_layout Subsubsection
23412 Version Info
23413 \end_layout
23414
23415 \begin_layout Standard
23416 \SpecialChar LyX
23417  supports GIT hash number of the last commit to the file, 
23418 \change_inserted 1119979965 1564297456
23419 its abbreviated form, 
23420 \change_unchanged
23421 author name, date and time of last commit.
23422  All those are extracted from 
23423 \family typewriter
23424 git log -n 1 --pretty=format:%H%n
23425 \change_inserted 1119979965 1564297427
23426 %h%n
23427 \change_unchanged
23428 %an%n%ai
23429 \family default
23430 .
23431  Tree version information is obtained via 
23432 \family typewriter
23433 git describe --abbrev --dirty --long
23434 \family default
23435 .
23436  See 
23437 \begin_inset CommandInset ref
23438 LatexCommand ref
23439 reference "subsec:VCS-Revision-Information"
23440
23441 \end_inset
23442
23443  for other details.
23444 \end_layout
23445
23446 \begin_layout Subsection
23447 Further tuning
23448 \end_layout
23449
23450 \begin_layout Standard
23451 With the recent addition of the 
23452 \begin_inset Flex Code
23453 status collapsed
23454
23455 \begin_layout Plain Layout
23456 vc-command
23457 \end_layout
23458
23459 \end_inset
23460
23461  function \SpecialChar LyX
23462  power users are allowed to create their own commands for revision
23463  control.
23464 \end_layout
23465
23466 \begin_layout Standard
23467 As an example you can see how two TortoiseSVN commands could be integrated
23468  directly:
23469 \end_layout
23470
23471 \begin_layout Description
23472 Commit: 
23473 \begin_inset Flex Code
23474 status collapsed
23475
23476 \begin_layout Plain Layout
23477 vc-command DR "." "TortoiseProc /command:commit /path:$$p"
23478 \end_layout
23479
23480 \end_inset
23481
23482
23483 \end_layout
23484
23485 \begin_layout Description
23486 Revert: 
23487 \begin_inset Flex Code
23488 status collapsed
23489
23490 \begin_layout Plain Layout
23491 vc-command DR "." "TortoiseProc /command:revert /path:$$p"
23492 \end_layout
23493
23494 \end_inset
23495
23496
23497 \end_layout
23498
23499 \begin_layout Subsection
23500 Version control and Document comparison
23501 \end_layout
23502
23503 \begin_layout Standard
23504 One of the typical uses of version control is to inspect the changes between
23505  revisions, usually by creating 
23506 \begin_inset Flex Code
23507 status collapsed
23508
23509 \begin_layout Plain Layout
23510 diff
23511 \end_layout
23512
23513 \end_inset
23514
23515  dumps.
23516  While this is useful for plain text files, it is much less useful in the
23517  case of \SpecialChar LyX
23518  files, which have more a complicated structure.
23519  Hence we provide binding to the Document comparison feature.
23520  There are two ways of calling this feature – either by direct call of 
23521 \begin_inset Flex Code
23522 status collapsed
23523
23524 \begin_layout Plain Layout
23525 vc-compare
23526 \end_layout
23527
23528 \end_inset
23529
23530  \SpecialChar LyX
23531  function (for details see \SpecialChar LyX
23532  functions manual) or by the toolbar icon 
23533 \begin_inset Info
23534 type  "icon"
23535 arg   "vc-compare"
23536 \end_inset
23537
23538  or the menu item 
23539 \begin_inset Info
23540 type  "menu"
23541 arg   "vc-compare"
23542 \end_inset
23543
23544 , respectively.
23545  One can either compare two chosen revisions of the document or he can simply
23546  compare the current version of edited text with older revisions (where
23547  '
23548 \begin_inset Flex Noun
23549 status collapsed
23550
23551 \begin_layout Plain Layout
23552 0
23553 \end_layout
23554
23555 \end_inset
23556
23557 ' revisions back means comparison of the edited file with last commited
23558  revision).
23559  
23560 \end_layout
23561
23562 \begin_layout Standard
23563 This feature is supported for SVN and RCS though due to the more complicated
23564  versioning scheme of RCS there is a constraint – when addressing the revisions
23565  in dialog, numbers always point to the last number in RCS revision number,
23566  i.e.
23567  '35' in '1.2.35'.
23568  We don't currently support GIT addressing of revisions, one can just compare
23569  edited document with its revision X steps backs, where X is addressed as
23570  
23571 \begin_inset Flex Code
23572 status collapsed
23573
23574 \begin_layout Plain Layout
23575 HEAD~X
23576 \end_layout
23577
23578 \end_inset
23579
23580 .
23581 \end_layout
23582
23583 \begin_layout Section
23584 Literate Programming
23585 \end_layout
23586
23587 \begin_layout Standard
23588 Updated by 
23589 \noun on
23590 Kayvan Sylvan 
23591 \noun default
23592 (kayvan@sylvan.com)
23593 \noun on
23594
23595 \noun default
23596 original documentation written by 
23597 \noun on
23598 Edmar Wienskoski Jr.
23599
23600 \noun default
23601  (edmar-w-jr@technologist.com)
23602 \end_layout
23603
23604 \begin_layout Subsection
23605 Introduction
23606 \end_layout
23607
23608 \begin_layout Standard
23609 The main purpose of this documentation is to show you how to use \SpecialChar LyX
23610  for literate
23611  programming, where it is assumed that you are familiar with this programming
23612  technique, and know what 
23613 \begin_inset Quotes eld
23614 \end_inset
23615
23616 tangling
23617 \begin_inset Quotes erd
23618 \end_inset
23619
23620  and 
23621 \begin_inset Quotes eld
23622 \end_inset
23623
23624 weaving
23625 \begin_inset Quotes erd
23626 \end_inset
23627
23628  means.
23629  If that is not the case, please follow the web links provided in the following
23630  sections.
23631  There is a lot of good documentation out there covering old development
23632  history to the latest tools tips.
23633 \end_layout
23634
23635 \begin_layout Standard
23636 It is also assumed that you are familiar with \SpecialChar LyX
23637  itself to a point that you
23638  are comfortable changing your \SpecialChar LyX
23639  preferences, and X resources file.
23640  If that is not the case please refer to other \SpecialChar LyX
23641  documentation to cover your
23642  specific needs.
23643 \end_layout
23644
23645 \begin_layout Subsection
23646 Literate Programming
23647 \end_layout
23648
23649 \begin_layout Standard
23650 From the Literate Programming FAQ: 
23651 \end_layout
23652
23653 \begin_layout Quotation
23654 Literate programming is the combination of documentation and source together
23655  in a fashion suited for reading by human beings.
23656  In fact, literate programs should be enjoyable reading, even inviting!
23657  (Sorry Bob, I couldn't resist!) In general, literate programs combine source
23658  and documentation in a single file.
23659  Literate programming tools then parse the file to produce either readable
23660  documentation or compilable source.
23661  The WEB style of literate programming was created by D.
23662 \begin_inset space \thinspace{}
23663 \end_inset
23664
23665 E.
23666  Knuth during the development of his \SpecialChar TeX
23667  typesetting software.
23668  
23669 \end_layout
23670
23671 \begin_layout Standard
23672 Another excerpt says:
23673 \end_layout
23674
23675 \begin_layout Quotation
23676
23677 \emph on
23678 How is literate programming different from verbose commenting?
23679 \end_layout
23680
23681 \begin_layout Quotation
23682 There are three distinguishing characteristics.
23683  In order of importance, they are: 
23684 \end_layout
23685
23686 \begin_deeper
23687 \begin_layout Itemize
23688 flexible order of elaboration 
23689 \end_layout
23690
23691 \begin_layout Itemize
23692 automatic support for browsing 
23693 \end_layout
23694
23695 \begin_layout Itemize
23696 typeset documentation, especially diagrams and mathematics 
23697 \end_layout
23698
23699 \end_deeper
23700 \begin_layout Standard
23701 Now that I sparked your curiosity, take a look in the references.
23702 \end_layout
23703
23704 \begin_layout Subsubsection
23705 References
23706 \end_layout
23707
23708 \begin_layout Standard
23709 The complete Literate Programming FAQ can be found at:
23710 \end_layout
23711
23712 \begin_layout Quote
23713 Literate Programming FAQ 
23714 \begin_inset Flex URL
23715 status open
23716
23717 \begin_layout Plain Layout
23718
23719 http://www.literateprogramming.com/lpfaq.pdf
23720 \end_layout
23721
23722 \end_inset
23723
23724
23725 \end_layout
23726
23727 \begin_layout Standard
23728 The FAQ lists 23 (twenty three!) different literate programming tools.
23729  Where some are specialized or 
23730 \begin_inset Quotes eld
23731 \end_inset
23732
23733 tailored
23734 \begin_inset Quotes erd
23735 \end_inset
23736
23737  for particular programming languages, while other have general scope.
23738  I selected 
23739 \noun on
23740 Noweb
23741 \noun default
23742  for my own use for several reasons:
23743 \end_layout
23744
23745 \begin_layout Itemize
23746 It can generate the documentation either in \SpecialChar LaTeX
23747  or HTML.
23748 \end_layout
23749
23750 \begin_layout Itemize
23751 It has a open architecture, i.
23752 \begin_inset space \thinspace{}
23753 \end_inset
23754
23755 e.
23756 \begin_inset space \space{}
23757 \end_inset
23758
23759 it is easy to plug in new filters
23760 \begin_inset Foot
23761 status collapsed
23762
23763 \begin_layout Plain Layout
23764
23765 \emph on
23766 Filters 
23767 \emph default
23768 are programs that read a given data stream and output a manipulated data
23769  stream.
23770  That way, a WEB file (consisting of literate code) can be turned into a
23771  file consisting only of C program code or \SpecialChar LaTeX
23772  code.
23773 \end_layout
23774
23775 \end_inset
23776
23777  and to perform special processing that you may need.
23778  
23779 \end_layout
23780
23781 \begin_layout Itemize
23782 There is a good selection of filters available already (the HTML is one
23783  of them).
23784 \end_layout
23785
23786 \begin_layout Itemize
23787 It is free.
23788 \end_layout
23789
23790 \begin_layout Standard
23791 The Noweb web page can be found at: 
23792 \end_layout
23793
23794 \begin_layout Quote
23795 Noweb home page 
23796 \begin_inset Flex URL
23797 status collapsed
23798
23799 \begin_layout Plain Layout
23800
23801 https://www.cs.tufts.edu/~nr/noweb/
23802 \end_layout
23803
23804 \end_inset
23805
23806
23807 \end_layout
23808
23809 \begin_layout Standard
23810 Starting from there you can reach many other interesting links and even
23811  some literate program examples.
23812 \end_layout
23813
23814 \begin_layout Subsection
23815 \SpecialChar LyX
23816  and Literate Programming with Noweb
23817 \end_layout
23818
23819 \begin_layout Standard
23820 The \SpecialChar LyX
23821  support for Literate Programming is provided by using the generic \SpecialChar LyX
23822
23823  converters mechanism.
23824  This support is provided in a 
23825 \begin_inset Quotes eld
23826 \end_inset
23827
23828 Noweb independent
23829 \begin_inset Quotes erd
23830 \end_inset
23831
23832  way, i.
23833 \begin_inset space \thinspace{}
23834 \end_inset
23835
23836 e.
23837 \begin_inset space \space{}
23838 \end_inset
23839
23840 you will be able to use this new \SpecialChar LyX
23841  feature with some other literate programming
23842  tool of your choice by just changing your \SpecialChar LyX
23843  preferences.
23844 \end_layout
23845
23846 \begin_layout Subsubsection
23847 Generating documents and code (weaving and tangling)
23848 \end_layout
23849
23850 \begin_layout Paragraph
23851 Using the noweb module
23852 \end_layout
23853
23854 \begin_layout Standard
23855 If you have installed Noweb and \SpecialChar LyX
23856  successfully, whenever you open a new document,
23857  after you have chosen its document class, use the 
23858 \family sans
23859 Document\SpecialChar menuseparator
23860 Settings
23861 \family default
23862  menu to add the 
23863 \begin_inset Quotes eld
23864 \end_inset
23865
23866 noweb
23867 \begin_inset Quotes erd
23868 \end_inset
23869
23870  module.
23871  If Noweb is correctly installed, when you click on the 
23872 \begin_inset Quotes eld
23873 \end_inset
23874
23875 Modules
23876 \begin_inset Quotes erd
23877 \end_inset
23878
23879  link, you will see the 
23880 \begin_inset Quotes eld
23881 \end_inset
23882
23883 noweb
23884 \begin_inset Quotes erd
23885 \end_inset
23886
23887  module in the available list and you can add it to your document.
23888 \end_layout
23889
23890 \begin_layout Paragraph
23891 Typing code in
23892 \end_layout
23893
23894 \begin_layout Standard
23895 \SpecialChar LyX
23896  enables you to write code with a custom inset named 
23897 \begin_inset Flex Noun
23898 status collapsed
23899
23900 \begin_layout Plain Layout
23901 Chunk
23902 \end_layout
23903
23904 \end_inset
23905
23906 .
23907  Noweb delimits chunks like this:
23908 \end_layout
23909
23910 \begin_layout LyX-Code
23911 <<My code>>=
23912 \end_layout
23913
23914 \begin_layout LyX-Code
23915   code
23916 \end_layout
23917
23918 \begin_layout LyX-Code
23919   more code
23920 \end_layout
23921
23922 \begin_layout LyX-Code
23923   even more code
23924 \end_layout
23925
23926 \begin_layout LyX-Code
23927   @
23928 \end_layout
23929
23930 \begin_layout Standard
23931 The problem is that whatever is written in between the << and the 
23932 \family typewriter
23933 @
23934 \family default
23935  must be taken literally, i.
23936 \begin_inset space \thinspace{}
23937 \end_inset
23938
23939 e.
23940 \begin_inset space \space{}
23941 \end_inset
23942
23943 \SpecialChar LyX
23944  should be prevented from making any special interpretation of what has
23945  been written.
23946  This is also handled by 
23947 \begin_inset Flex Noun
23948 status collapsed
23949
23950 \begin_layout Plain Layout
23951 Chunk
23952 \end_layout
23953
23954 \end_inset
23955
23956 , that works like a normal text inset but has a free spacing capability.
23957 \end_layout
23958
23959 \begin_layout Standard
23960 As a special note, you can also use the 
23961 \begin_inset Quotes eld
23962 \end_inset
23963
23964 %def
23965 \begin_inset Quotes erd
23966 \end_inset
23967
23968  construct of Noweb in your chunks to add items to Noweb's identifier cross-refe
23969 rence:
23970 \end_layout
23971
23972 \begin_layout LyX-Code
23973 <<My chunk>>=
23974 \end_layout
23975
23976 \begin_layout LyX-Code
23977 def some_function(args):
23978 \end_layout
23979
23980 \begin_layout LyX-Code
23981    "This is the doc string for this function."
23982 \end_layout
23983
23984 \begin_layout LyX-Code
23985    print "My args: ", args
23986 \end_layout
23987
23988 \begin_layout LyX-Code
23989 @ %def some_function
23990 \end_layout
23991
23992 \begin_layout Standard
23993 For an example of this usage and the resulting cross-reference output, look
23994  at the Literate python program in 
23995 \emph on
23996 LIBDIR/examples/listerrors.lyx
23997 \emph default
23998  which should make this all clear.
23999 \end_layout
24000
24001 \begin_layout Paragraph
24002 Generating the documentation
24003 \end_layout
24004
24005 \begin_layout Standard
24006 At this point you already have a new document file with a proper document
24007  class, and with some code and text on it.
24008  How do I print it? The answer is simple, you select 
24009 \family sans
24010 View\SpecialChar menuseparator
24011 DVI,
24012 \family default
24013  etc.
24014  Just like you would do for a plain document.
24015  No special procedure is required.
24016 \end_layout
24017
24018 \begin_layout Standard
24019 To help orientate you, I will now explain what happens inside \SpecialChar LyX
24020 :
24021 \end_layout
24022
24023 \begin_layout Enumerate
24024 When the 
24025 \family sans
24026 Update\SpecialChar menuseparator
24027 DVI
24028 \family default
24029  menu option is chosen, a \SpecialChar LaTeX
24030  file is generated.
24031  
24032 \end_layout
24033
24034 \begin_deeper
24035 \begin_layout Standard
24036 If the document is of any literate class the generated file will be named
24037  with an extension name defined by the 
24038 \begin_inset Quotes eld
24039 \end_inset
24040
24041 literate
24042 \begin_inset Quotes erd
24043 \end_inset
24044
24045  format (defined in the Preferences panel), otherwise the file will have
24046  the usual 
24047 \family typewriter
24048 .tex
24049 \family default
24050  extension.
24051 \end_layout
24052
24053 \end_deeper
24054 \begin_layout Enumerate
24055 Note that the only difference so far is in the name of the file, no special
24056  processing is required by \SpecialChar LyX
24057 .
24058  Given that you formatted the code using the 
24059 \begin_inset Flex Noun
24060 status collapsed
24061
24062 \begin_layout Plain Layout
24063 Chunk
24064 \end_layout
24065
24066 \end_inset
24067
24068  inset that, by itself, takes care of the business.
24069 \end_layout
24070
24071 \begin_layout Enumerate
24072 If the document is of any literate class \SpecialChar LyX
24073  will then use the internal \SpecialChar LyX
24074  to
24075  Noweb converter, followed by the Noweb to \SpecialChar LaTeX
24076  converter
24077 \begin_inset Foot
24078 status collapsed
24079
24080 \begin_layout Plain Layout
24081 The converters are defined in the 
24082 \family sans
24083 Tools\SpecialChar menuseparator
24084 Preferences
24085 \family default
24086  panel, under the 
24087 \begin_inset Quotes eld
24088 \end_inset
24089
24090 Conversion
24091 \begin_inset Quotes erd
24092 \end_inset
24093
24094  tab.
24095  See section 
24096 \emph on
24097 Converters
24098 \emph default
24099  of the 
24100 \emph on
24101 Customization
24102 \emph default
24103  manual for general information about converters.
24104 \end_layout
24105
24106 \end_inset
24107
24108  to generate the \SpecialChar LaTeX
24109  file.
24110 \end_layout
24111
24112 \begin_deeper
24113 \begin_layout Standard
24114 Otherwise it will just skip this step.
24115 \end_layout
24116
24117 \end_deeper
24118 \begin_layout Enumerate
24119 Finally, \SpecialChar LaTeX
24120  is invoked and the regular post processing continues as in a plain
24121  document.
24122 \end_layout
24123
24124 \begin_layout Standard
24125 Independence from a particular 
24126 \begin_inset Quotes eld
24127 \end_inset
24128
24129 literate tool
24130 \begin_inset Quotes erd
24131 \end_inset
24132
24133  is easily achieved by changing the commands that are run by the various
24134  converters.
24135 \end_layout
24136
24137 \begin_layout Paragraph
24138 Generating the code
24139 \end_layout
24140
24141 \begin_layout Standard
24142 When the build menu option is chosen or the corresponding button in the
24143  toolbar is pressed, a \SpecialChar LaTeX
24144  file is generated just like step 1 above.
24145  Next, \SpecialChar LyX
24146  invokes the 
24147 \family typewriter
24148 Noweb->Program
24149 \family default
24150  converter.
24151  This converter needs to be defined by the user and is not installed by
24152  default, though the Program format is.
24153  This converter (like any other converter) will have two parts:
24154 \end_layout
24155
24156 \begin_layout Enumerate
24157 The converter program itself.
24158  This program performs the conversion from the one format to the other (in
24159  this case, from the Noweb format to the Program pseudo-format).
24160 \end_layout
24161
24162 \begin_layout Enumerate
24163 The error log parser.
24164  This is a program whose sole purpose is to rewrite error messages in a
24165  format that \SpecialChar LyX
24166  understands.
24167  This makes it possible for \SpecialChar LyX
24168  to place error boxes in the right places in
24169  the file buffer.
24170 \end_layout
24171
24172 \begin_layout Standard
24173 The first part, the 
24174 \begin_inset Quotes eld
24175 \end_inset
24176
24177 Converter
24178 \begin_inset Quotes erd
24179 \end_inset
24180
24181  setting, should be set to
24182 \end_layout
24183
24184 \begin_layout LyX-Code
24185
24186 \family typewriter
24187 build-script $$i
24188 \family default
24189  $$r
24190 \end_layout
24191
24192 \begin_layout Standard
24193 This basically means that \SpecialChar LyX
24194  will call 
24195 \begin_inset Quotes eld
24196 \end_inset
24197
24198 build-script
24199 \begin_inset Quotes erd
24200 \end_inset
24201
24202  (a program or script) with the name of the Noweb file (normally a file
24203  in the \SpecialChar LyX
24204  temp directory) and the directory path of the original \SpecialChar LyX
24205  file.
24206  
24207 \end_layout
24208
24209 \begin_layout Standard
24210 This is an implementation of 
24211 \begin_inset Quotes eld
24212 \end_inset
24213
24214 build-script
24215 \begin_inset Quotes erd
24216 \end_inset
24217
24218  that you can place in a directory on your path:
24219 \end_layout
24220
24221 \begin_layout LyX-Code
24222
24223 \family sans
24224 #!/bin/sh
24225 \end_layout
24226
24227 \begin_layout LyX-Code
24228
24229 \family sans
24230 #
24231 \end_layout
24232
24233 \begin_layout LyX-Code
24234
24235 \family sans
24236 notangle -Rbuild-script $1 | env NOWEB_SOURCE=$1 NOWEB_OUTPUT_DIR=$2 sh
24237 \end_layout
24238
24239 \begin_layout Standard
24240 The next part of the converter setting is the 
24241 \begin_inset Quotes eld
24242 \end_inset
24243
24244 Flags
24245 \begin_inset Quotes erd
24246 \end_inset
24247
24248  which is to be set to
24249 \end_layout
24250
24251 \begin_layout LyX-Code
24252
24253 \family typewriter
24254 parselog=$$s/scripts/listerrors
24255 \end_layout
24256
24257 \begin_layout Standard
24258 This will run any errors that are generated by the 
24259 \begin_inset Quotes eld
24260 \end_inset
24261
24262 build-script
24263 \begin_inset Quotes erd
24264 \end_inset
24265
24266  process through the 
24267 \begin_inset Quotes eld
24268 \end_inset
24269
24270 listerrors
24271 \begin_inset Quotes erd
24272 \end_inset
24273
24274  program.
24275 \end_layout
24276
24277 \begin_layout Standard
24278 The build will normally take place in \SpecialChar LyX
24279 's temporary directory, so the files
24280  produced by the conversion will be in that directory.
24281  \SpecialChar LyX
24282  will copy out what it regards as the `main' file, but the 
24283 \family typewriter
24284 Noweb->Program
24285 \family default
24286  conversion may produce several files, and so most of these would then be
24287  deleted when \SpecialChar LyX
24288  was closed.
24289  This is why we pass in the NOWEB_OUTPUT_DIR environment variable so that
24290  the build-script chunk can place the generated files in that location.
24291 \end_layout
24292
24293 \begin_layout Paragraph
24294 Build instructions in the document
24295 \end_layout
24296
24297 \begin_layout Standard
24298 The last piece of the integration between \SpecialChar LyX
24299  and noweb is the 
24300 \begin_inset Quotes eld
24301 \end_inset
24302
24303 build-script
24304 \begin_inset Quotes erd
24305 \end_inset
24306
24307  chunk.
24308  Generally, the instructions for building your program should be embedded
24309  in a chunk of its own.
24310  The noweb-specific 
24311 \begin_inset Quotes eld
24312 \end_inset
24313
24314 build-script
24315 \begin_inset Quotes erd
24316 \end_inset
24317
24318  above uses the notangle command to look for this chunk (called 
24319 \begin_inset Quotes eld
24320 \end_inset
24321
24322 build-script
24323 \begin_inset Quotes erd
24324 \end_inset
24325
24326 ) and runs its contents through 
24327 \begin_inset Quotes eld
24328 \end_inset
24329
24330 sh
24331 \begin_inset Quotes erd
24332 \end_inset
24333
24334 .
24335 \end_layout
24336
24337 \begin_layout Standard
24338 Typically, such a chunk would look something like this:
24339 \end_layout
24340
24341 \begin_layout LyX-Code
24342 <<build-script>>=
24343 \end_layout
24344
24345 \begin_layout LyX-Code
24346 #!/bin/sh
24347 \begin_inset Newline newline
24348 \end_inset
24349
24350 if [ -z "${NOWEB_SOURCE}" ]
24351 \begin_inset Newline newline
24352 \end_inset
24353
24354 then
24355 \end_layout
24356
24357 \begin_layout LyX-Code
24358 NOWEB_SOURCE=myfile.nw
24359 \begin_inset Newline newline
24360 \end_inset
24361
24362 fi
24363 \begin_inset Newline newline
24364 \end_inset
24365
24366 [...
24367  code to extract files ...
24368  use NOWEB_OUTPUT_DIR here ...]
24369 \begin_inset Newline newline
24370 \end_inset
24371
24372 [...
24373  code to compile files ...]
24374 \begin_inset Newline newline
24375 \end_inset
24376
24377 @
24378 \end_layout
24379
24380 \begin_layout Standard
24381 Look in 
24382 \emph on
24383 LIBDIR/examples/listerrors.lyx
24384 \emph default
24385  or in 
24386 \emph on
24387 LIBDIR/examples/Literate.lyx
24388 \emph default
24389  which implement two versions of the 
24390 \begin_inset Quotes eld
24391 \end_inset
24392
24393 listerrors
24394 \begin_inset Quotes erd
24395 \end_inset
24396
24397  program for some illustrations of how all of these pieces go together or
24398  in 
24399 \emph on
24400 LIBDIR/examples/noweb2lyx.lyx.
24401
24402 \emph default
24403  Interestingly, these three files show off the language-indepence of the
24404  \SpecialChar LyX
24405  literate programming support since they are written in Python, C and Perl
24406  respectively.
24407 \end_layout
24408
24409 \begin_layout Subsubsection
24410 Configuring \SpecialChar LyX
24411
24412 \end_layout
24413
24414 \begin_layout Standard
24415 All the Literate Programming support is configured by the 
24416 \family sans
24417 Tools\SpecialChar menuseparator
24418 Preferences
24419 \family default
24420  panel in the 
24421 \begin_inset Quotes eld
24422 \end_inset
24423
24424 File Handling
24425 \begin_inset Quotes erd
24426 \end_inset
24427
24428  tab.
24429  The important parts are:
24430 \end_layout
24431
24432 \begin_layout Description
24433 the
24434 \begin_inset space ~
24435 \end_inset
24436
24437
24438 \begin_inset Quotes eld
24439 \end_inset
24440
24441 NoWeb
24442 \begin_inset Quotes erd
24443 \end_inset
24444
24445
24446 \begin_inset space ~
24447 \end_inset
24448
24449 format Set up via the File Formats tab, this is where the Noweb-specific
24450  pieces are set up.
24451  The 
24452 \family sans
24453 GUI Name
24454 \family default
24455  is set to 
24456 \family typewriter
24457 NoWeb
24458 \family default
24459 , the file extension is set to 
24460 \family typewriter
24461 .nw
24462 \family default
24463 .
24464  This tells \SpecialChar LyX
24465  to create a file with a 
24466 \family typewriter
24467 .nw
24468 \family default
24469  extension in the first step of the conversion process.
24470 \end_layout
24471
24472 \begin_layout Description
24473 the
24474 \begin_inset space ~
24475 \end_inset
24476
24477
24478 \family sans
24479 Program
24480 \family default
24481
24482 \begin_inset space ~
24483 \end_inset
24484
24485 format This is an empty format whose sole purpose is to be the endpoint
24486  of a conversion (which then allows us to set up a converter for it).
24487 \end_layout
24488
24489 \begin_layout Description
24490
24491 \family sans
24492 NoWeb
24493 \family default
24494 ->
24495 \family sans
24496 \SpecialChar LaTeX
24497
24498 \family default
24499  This converter performs the 
24500 \begin_inset Quotes eld
24501 \end_inset
24502
24503 weaving
24504 \begin_inset Quotes erd
24505 \end_inset
24506
24507  of the literate document.
24508  For Noweb, it is set to 
24509 \begin_inset Quotes eld
24510 \end_inset
24511
24512
24513 \family typewriter
24514 noweave -delay -index $$i > $$o
24515 \family default
24516
24517 \begin_inset Quotes erd
24518 \end_inset
24519
24520
24521 \end_layout
24522
24523 \begin_layout Description
24524
24525 \family sans
24526 NoWeb
24527 \family default
24528 ->
24529 \family sans
24530 Program
24531 \family default
24532  This performs the 
24533 \begin_inset Quotes eld
24534 \end_inset
24535
24536 tangling step
24537 \begin_inset Quotes erd
24538 \end_inset
24539
24540 .
24541  As stated above, the Converter is set to 
24542 \begin_inset Quotes eld
24543 \end_inset
24544
24545
24546 \family typewriter
24547 build-script $$i
24548 \family default
24549  $$r
24550 \begin_inset Quotes erd
24551 \end_inset
24552
24553 , with Flags set to
24554 \begin_inset Newline newline
24555 \end_inset
24556
24557
24558 \begin_inset Quotes eld
24559 \end_inset
24560
24561
24562 \family typewriter
24563 parselog=$$s/scripts/listerrors
24564 \family default
24565
24566 \begin_inset Quotes erd
24567 \end_inset
24568
24569 .
24570 \end_layout
24571
24572 \begin_layout Subsubsection
24573 Debug extensions
24574 \end_layout
24575
24576 \begin_layout Standard
24577 There is also a new function implemented in the \SpecialChar LyX
24578  server, the 
24579 \begin_inset Quotes eld
24580 \end_inset
24581
24582 server-goto-file-row" function, to be used with ddd/gdb or other debugger.
24583  
24584 \end_layout
24585
24586 \begin_layout Standard
24587 When debugging code with ddd/gdb, it is possible to invoke a text editor
24588  at the current execution position with a single key stroke.
24589  The default ddd configuration for that is shift-ctrl-V.
24590  It happens that you can define the editor command line invocation in ddd
24591  by accessing the 
24592 \family sans
24593 Edit\SpecialChar menuseparator
24594 Preferences\SpecialChar menuseparator
24595 Helpers
24596 \family default
24597  dialog and changing the "Edit Sources" entry.
24598 \end_layout
24599
24600 \begin_layout Standard
24601 I take advantage of the newly created \SpecialChar LyX
24602  server function and this ddd feature,
24603  and set 
24604 \begin_inset Quotes eld
24605 \end_inset
24606
24607 Edit Sources
24608 \begin_inset Quotes erd
24609 \end_inset
24610
24611  to:
24612 \end_layout
24613
24614 \begin_layout LyX-Code
24615 echo "LYXCMD:monitor:server-goto-file-row:@FILE@ @LINE@" >~/.lyxpipe.in
24616 \end_layout
24617
24618 \begin_layout Standard
24619 With this, whenever you are using ddd and find a point in the program that
24620  you want to edit, you just press shift-ctrl-V (in the ddd window), and
24621  ddd will forward this information to \SpecialChar LyX
24622  through the \SpecialChar LyX
24623  server and then the
24624  \SpecialChar LyX
24625  window will show the same file with the cursor at the same position ddd
24626  was pointing to.
24627  No more guessing or long scrolling to locate a point in the program back
24628  from debugging !
24629 \end_layout
24630
24631 \begin_layout Standard
24632 Note however that you must enable the \SpecialChar LyX
24633  server to get this feature working
24634  (it is disabled by default).
24635  Sec.
24636 \begin_inset space ~
24637 \end_inset
24638
24639
24640 \begin_inset CommandInset ref
24641 LatexCommand ref
24642 reference "sec:Starting-the-Server"
24643
24644 \end_inset
24645
24646  explains how to do that.
24647 \end_layout
24648
24649 \begin_layout Subsubsection
24650 Toolbar extensions
24651 \end_layout
24652
24653 \begin_layout Standard
24654 There are six new buttons that can be added to your \SpecialChar LyX
24655  toolbar.
24656  Four of these buttons are short cuts to layout styles: 
24657 \family sans
24658 Standard
24659 \family default
24660
24661 \family sans
24662 Section
24663 \family default
24664
24665 \family sans
24666 \SpecialChar LaTeX
24667
24668 \family default
24669 , and 
24670 \family sans
24671 \SpecialChar LyX
24672 -Code
24673 \family default
24674 , one for the custom inset 
24675 \family sans
24676 Chunk
24677 \family default
24678 .
24679  The last one is a short cut to the 
24680 \begin_inset Quotes eld
24681 \end_inset
24682
24683 Build Program
24684 \begin_inset Quotes erd
24685 \end_inset
24686
24687  File menu entry.
24688  
24689 \end_layout
24690
24691 \begin_layout Standard
24692 \SpecialChar LyX
24693  has a range of buttons that are available for tool bar customization.
24694  In my toolbar I like to combine the six short cuts above with two more:
24695  One for 
24696 \family sans
24697 Document
24698 \family default
24699 \SpecialChar menuseparator
24700
24701 \family sans
24702 Update
24703 \family default
24704 \SpecialChar menuseparator
24705
24706 \family sans
24707 DVI
24708 \family default
24709  and the other for 
24710 \family sans
24711 Document\SpecialChar menuseparator
24712 View\SpecialChar menuseparator
24713 DVI
24714 \family default
24715  File menu entries.
24716  Here is how it looks like:
24717 \end_layout
24718
24719 \begin_layout LyX-Code
24720 Toolbar
24721 \end_layout
24722
24723 \begin_layout LyX-Code
24724   Layouts
24725 \end_layout
24726
24727 \begin_layout LyX-Code
24728   Icon "layout Standard"
24729 \end_layout
24730
24731 \begin_layout LyX-Code
24732   Icon "layout Section"
24733 \end_layout
24734
24735 \begin_layout LyX-Code
24736   Icon "layout \SpecialChar LaTeX
24737 "
24738 \end_layout
24739
24740 \begin_layout LyX-Code
24741   Icon "layout \SpecialChar LyX
24742 -Code"
24743 \end_layout
24744
24745 \begin_layout LyX-Code
24746   Icon "flex.insert Chunk"
24747 \end_layout
24748
24749 \begin_layout LyX-Code
24750   Separator
24751 \end_layout
24752
24753 \begin_layout LyX-Code
24754   Icon "buffer-view"
24755 \end_layout
24756
24757 \begin_layout LyX-Code
24758   Icon "buffer-typeset"
24759 \end_layout
24760
24761 \begin_layout LyX-Code
24762   Icon "build-program"
24763 \end_layout
24764
24765 \begin_layout LyX-Code
24766   Separator
24767 \end_layout
24768
24769 \begin_layout LyX-Code
24770 .
24771 \end_layout
24772
24773 \begin_layout LyX-Code
24774 .
24775 \end_layout
24776
24777 \begin_layout LyX-Code
24778 .
24779 \end_layout
24780
24781 \begin_layout LyX-Code
24782 End
24783 \end_layout
24784
24785 \begin_layout Subsubsection
24786 Colors customization
24787 \end_layout
24788
24789 \begin_layout Standard
24790 There are a number of colors in \SpecialChar LyX
24791  that can be customized in 
24792 \family sans
24793 Preferences
24794 \family default
24795 .
24796  One of the things that bothers people is the \SpecialChar LaTeX
24797  font color.
24798  The default color is red, since the chunks uses \SpecialChar LaTeX
24799  font, and there is a lot
24800  of chunks in literate documents, you may get tired of seeing everything
24801  in red.
24802  You can change it by going to the tabs 
24803 \family sans
24804 Look&Feel
24805 \family default
24806
24807 \family sans
24808 Colors.
24809 \end_layout
24810
24811 \begin_layout Standard
24812 The next thing is the visible presence of the newline character in the screen.
24813  You can choose the color of this particular character and make it blend
24814  in the background.
24815  I recommend you choosing a color that is close to the background but not
24816  equal, that way you still can see it is there, but it is not bothering
24817  you anymore.
24818 \end_layout
24819
24820 \begin_layout Subsection
24821 \SpecialChar LyX
24822  and knitr/Sweave
24823 \end_layout
24824
24825 \begin_layout Standard
24826 Support for 
24827 \family sans
24828 knitr
24829 \family default
24830  and 
24831 \family sans
24832 Sweave
24833 \family default
24834  is documented in the 
24835 \emph on
24836 knitr.lyx
24837 \emph default
24838  example file and in the Sweave manual (menu 
24839 \family sans
24840 Help\SpecialChar menuseparator
24841 Specific Manuals
24842 \family default
24843 ).
24844 \end_layout
24845
24846 \begin_layout Chapter
24847 Special features
24848 \end_layout
24849
24850 \begin_layout Standard
24851 You can do everything with \SpecialChar LyX
24852  that you can do with \SpecialChar LaTeX
24853 .
24854  However, \SpecialChar LyX
24855  cannot support every \SpecialChar LaTeX
24856  feature directly.
24857  But you can always use \SpecialChar TeX
24858  Code.
24859  This chapter shows you some more special things you might want to use.
24860  For other special things you can do with figures, tables, floats, boxes
24861  and notes, have a look at the 
24862 \emph on
24863 Embedded
24864 \begin_inset space ~
24865 \end_inset
24866
24867 Objects
24868 \emph default
24869  manual.
24870 \end_layout
24871
24872 \begin_layout Section
24873 Multiple Text Columns
24874 \end_layout
24875
24876 \begin_layout Standard
24877 This feature is independent of the option 
24878 \family sans
24879 Two-column document
24880 \family default
24881  in the document settings under 
24882 \family sans
24883 Text Layout
24884 \family default
24885 .
24886  If you want to have 2
24887 \begin_inset space ~
24888 \end_inset
24889
24890 columns for the whole document, it is recommended to use the 
24891 \family sans
24892 Two-column document
24893 \family default
24894  option.
24895  For all other cases use this feature.
24896 \end_layout
24897
24898 \begin_layout Standard
24899 To use multiple text columns in your document, you have to load the module
24900  
24901 \family sans
24902 Multiple Columns
24903 \family default
24904  (menu 
24905 \family sans
24906 Document\SpecialChar menuseparator
24907 Settings\SpecialChar menuseparator
24908 Modules
24909 \family default
24910 ) and must have the \SpecialChar LaTeX
24911 -package 
24912 \begin_inset Flex Code
24913 status collapsed
24914
24915 \begin_layout Plain Layout
24916 multicol
24917 \end_layout
24918
24919 \end_inset
24920
24921  installed.
24922 \end_layout
24923
24924 \begin_layout Standard
24925 Footnotes within multiple columns will be placed at the bottom of the page
24926  and not under each column.
24927  Within the different columns you can use everything, with the limitation
24928  that for floats you need to use the float option 
24929 \family sans
24930 Span columns
24931 \family default
24932 .
24933 \end_layout
24934
24935 \begin_layout Subsection
24936 Basics
24937 \end_layout
24938
24939 \begin_layout Standard
24940 If you want to have 2
24941 \begin_inset space ~
24942 \end_inset
24943
24944 columns in your text, insert a multicolumn inset via the menu 
24945 \family sans
24946 Insert\SpecialChar menuseparator
24947 Custom
24948 \begin_inset space ~
24949 \end_inset
24950
24951 Insets\SpecialChar menuseparator
24952 Multiple
24953 \begin_inset space ~
24954 \end_inset
24955
24956 Columns
24957 \family default
24958  where the columns should start.
24959  Write all text that should be printed in 2
24960 \begin_inset space ~
24961 \end_inset
24962
24963 columns into this inset.
24964 \end_layout
24965
24966 \begin_layout Standard
24967 Here is an example:
24968 \end_layout
24969
24970 \begin_layout Standard
24971 \noindent
24972 \begin_inset Flex Multiple Columns
24973 status open
24974
24975 \begin_layout Plain Layout
24976 \noindent
24977
24978 \series bold
24979 \size small
24980 The Adventure of the Empty House
24981 \series default
24982
24983 \begin_inset Newline newline
24984 \end_inset
24985
24986 by Sir Arthur Conan Doyle
24987 \end_layout
24988
24989 \begin_layout Plain Layout
24990
24991 \size small
24992 It was in the spring of the year 1894 that all London was interested, and
24993  the fashionable world dismayed, by the murder of the Honourable Ronald
24994  Adair under most unusual and inexplicable circumstances.
24995  The public has already learned those particulars of the crime which came
24996  out in the police investigation, but a good deal was suppressed upon that
24997  occasion, since the case for the prosecution was so overwhelmingly strong
24998  that it was not necessary to bring forward all the facts.
24999  Only now, at the end of nearly ten years, am I allowed to supply those
25000  missing links which make up the whole of that remarkable chain.
25001  The crime was of interest in itself, but that interest was as nothing to
25002  me compared to the inconceivable sequel, which afforded me the greatest
25003  shock and surprise of any event in my adventurous life.
25004  Even now, after this long interval, I find myself thrilling as I think
25005  of it, and feeling once more that sudden flood of joy, amazement, and increduli
25006 ty which utterly submerged my mind.
25007  Let me say to that public, which has shown some interest in those glimpses
25008  which I have occasionally given them of the thoughts and actions of a very
25009  remarkable man, that they are not to blame me if I have not shared my knowledge
25010  with them, for I should have considered it my first duty to do so, had
25011  I not been barred by a positive prohibition from his own lips, which was
25012  only withdrawn upon the third of last month.
25013 \end_layout
25014
25015 \end_inset
25016
25017
25018 \end_layout
25019
25020 \begin_layout Standard
25021 To get 3 or more columns, set the cursor into the multicolumn inset and
25022  use the menu 
25023 \family sans
25024 Insert\SpecialChar menuseparator
25025 Number
25026 \begin_inset space ~
25027 \end_inset
25028
25029 of
25030 \begin_inset space ~
25031 \end_inset
25032
25033 Columns
25034 \family default
25035 .
25036  The number of the desired columns is written into that inset (for 3
25037 \begin_inset space ~
25038 \end_inset
25039
25040 columns write 
25041 \begin_inset Quotes eld
25042 \end_inset
25043
25044 3
25045 \begin_inset Quotes erd
25046 \end_inset
25047
25048 ).
25049 \begin_inset Newline newline
25050 \end_inset
25051
25052 Here is an example with 3
25053 \begin_inset space ~
25054 \end_inset
25055
25056 columns:
25057 \end_layout
25058
25059 \begin_layout Standard
25060 \begin_inset Flex Multiple Columns
25061 status open
25062
25063 \begin_layout Plain Layout
25064
25065 \size footnotesize
25066 \begin_inset Argument 1
25067 status open
25068
25069 \begin_layout Plain Layout
25070
25071 3
25072 \end_layout
25073
25074 \end_inset
25075
25076 It can be imagined that my close intimacy with Sherlock Holmes had interested
25077  me deeply in crime, and that after his disappearance I never failed to
25078  read with care the various problems which came before the public.
25079  And I even attempted, more than once, for my own private satisfaction,
25080  to employ his methods in their solution, though with indifferent success.
25081  There was none, however, which appealed to me like this tragedy of Ronald
25082  Adair.
25083  As I read the evidence at the inquest, which led up to a verdict of willful
25084  murder against some person or persons unknown, I realized more clearly
25085  than I had ever done the loss which the community had sustained by the
25086  death of Sherlock Holmes.
25087  There were points about this strange business which would, I was sure,
25088  have specially appealed to him, and the efforts of the police would have
25089  been supplemented, or more probably anticipated, by the trained observation
25090  and the alert mind of the first criminal agent in Europe.
25091  All day, as I drove upon my round, I turned over the case in my mind and
25092  found no explanation which appeared to me to be adequate.
25093  At the risk of telling a twice-told tale, I will recapitulate the facts
25094  as they were known to the public at the conclusion of the inquest.
25095 \end_layout
25096
25097 \end_inset
25098
25099
25100 \end_layout
25101
25102 \begin_layout Standard
25103 You can have up to 10
25104 \begin_inset space ~
25105 \end_inset
25106
25107 columns if you want to, but that might not be very pleasant for the readers
25108  of your document.
25109 \end_layout
25110
25111 \begin_layout Standard
25112 \begin_inset Newpage newpage
25113 \end_inset
25114
25115
25116 \end_layout
25117
25118 \begin_layout Subsection
25119 Columns inside Columns
25120 \end_layout
25121
25122 \begin_layout Standard
25123 You can also have columns inside columns:
25124 \end_layout
25125
25126 \begin_layout Standard
25127 \begin_inset Flex Multiple Columns
25128 status open
25129
25130 \begin_layout Plain Layout
25131
25132 \size footnotesize
25133 The Honourable Ronald Adair was the second son of the Earl of Maynooth,
25134  at that time governor of one of the Australian colonies.
25135  Adair's mother had returned from Australia to undergo the operation for
25136  cataract, and she, her son Ronald, and her daughter Hilda were living together
25137  at 427 Park Lane.
25138 \end_layout
25139
25140 \begin_layout Plain Layout
25141 \begin_inset Flex Multiple Columns
25142 status open
25143
25144 \begin_layout Plain Layout
25145
25146 \size footnotesize
25147 The youth moved in the best society
25148 \begin_inset space ~
25149 \end_inset
25150
25151 – had, so far as was known, no enemies and no particular vices.
25152  He had been engaged to Miss Edith Woodley, of Carstairs, but the engagement
25153  had been broken off by mutual consent some months before, and there was
25154  no sign that it had left any very profound feeling behind it.
25155  For the rest {sic} the man's life moved in a narrow and conventional circle,
25156  for his habits were quiet and his nature unemotional.
25157  Yet it was upon this easy-going young aristocrat that death came, in most
25158  strange and unexpected form, between the hours of ten and eleven-twenty
25159  on the night of March 30, 1894.
25160 \end_layout
25161
25162 \end_inset
25163
25164
25165 \end_layout
25166
25167 \begin_layout Plain Layout
25168
25169 \size footnotesize
25170 Ronald Adair was fond of cards
25171 \begin_inset space ~
25172 \end_inset
25173
25174 – playing continually, but never for such stakes as would hurt him.
25175  He was a member of the Baldwin, the Cavendish, and the Bagatelle card clubs.
25176  It was shown that, after dinner on the day of his death, he had played
25177  a rubber of whist at the latter club.
25178  He had also played there in the afternoon.
25179
25180 \size default
25181  
25182 \size footnotesize
25183 The evidence of those who had played with him
25184 \begin_inset space ~
25185 \end_inset
25186
25187 – Mr.
25188  Murray, Sir John Hardy, and Colonel Moran
25189 \begin_inset space ~
25190 \end_inset
25191
25192 – showed that the game was whist, and that there was a fairly equal fall
25193  of the cards.
25194  Adair might have lost five pounds, but not more.
25195  His fortune was a considerable one, and such a loss could not in any way
25196  affect him.
25197  He had played nearly every day at one club or other, but he was a cautious
25198  player, and usually rose a winner.
25199  It came out in evidence that, in partnership with Colonel Moran, he had
25200  actually won as much as four hundred and twenty pounds in a sitting, some
25201  weeks before, from Godfrey Milner and Lord Balmoral.
25202  So much for his recent history as it came out at the inquest.
25203 \end_layout
25204
25205 \end_inset
25206
25207
25208 \end_layout
25209
25210 \begin_layout Subsection
25211 Advanced Examples
25212 \end_layout
25213
25214 \begin_layout Standard
25215 The examples in this section show some more special features of multiple
25216  columns.
25217 \end_layout
25218
25219 \begin_layout Standard
25220 For more features of multiple columns, have a look at the 
25221 \begin_inset CommandInset href
25222 LatexCommand href
25223 name "documentation"
25224 target "http://mirror.ctan.org/macros/latex/required/tools/multicol.pdf"
25225 literal "false"
25226
25227 \end_inset
25228
25229  of the \SpecialChar LaTeX
25230 -package 
25231 \begin_inset Flex Code
25232 status collapsed
25233
25234 \begin_layout Plain Layout
25235 multicol
25236 \end_layout
25237
25238 \end_inset
25239
25240 .
25241 \end_layout
25242
25243 \begin_layout Subsubsection
25244 Preface
25245 \end_layout
25246
25247 \begin_layout Standard
25248 To add a preface text for multiple columns, set the cursor into the multicolumn
25249  inset and use the menu 
25250 \family sans
25251 Insert\SpecialChar menuseparator
25252 Preface
25253 \family default
25254 .
25255  Write your preface text into that inset.
25256 \begin_inset Newline newline
25257 \end_inset
25258
25259 This is an example with some preface text:
25260 \end_layout
25261
25262 \begin_layout Standard
25263 \begin_inset VSpace bigskip
25264 \end_inset
25265
25266
25267 \end_layout
25268
25269 \begin_layout Standard
25270 \begin_inset Flex Multiple Columns
25271 status open
25272
25273 \begin_layout Plain Layout
25274 \begin_inset Argument 2
25275 status open
25276
25277 \begin_layout Plain Layout
25278 And the story continues and continues and continues and continues\SpecialChar ldots
25279
25280 \end_layout
25281
25282 \end_inset
25283
25284
25285 \size small
25286 On the evening of the crime, he returned from the club exactly at ten.
25287  His mother and sister were out spending the evening with a relation.
25288  The servant deposed that she heard him enter the front room on the second
25289  floor, generally used as his sitting-room.
25290  She had lit a fire there, and as it smoked she had opened the window.
25291  No sound was heard from the room until eleven-twenty, the hour of the return
25292  of Lady Maynooth and her daughter.
25293  Desiring to say good-night, she attempted to enter her son's room.
25294  The door was locked on the inside, and no answer could be got to their
25295  cries and knocking.
25296  Help was obtained, and the door forced.
25297  The unfortunate young man was found lying near the table.
25298  His head had been horribly mutilated by an expanding revolver bullet, but
25299  no weapon of any sort was to be found in the room.
25300 \end_layout
25301
25302 \end_inset
25303
25304
25305 \end_layout
25306
25307 \begin_layout Standard
25308 You can also use a section heading as the preface if you use a section command
25309  as \SpecialChar TeX
25310  Code.
25311  For example the command
25312 \end_layout
25313
25314 \begin_layout LyX-Code
25315
25316 \backslash
25317 subsection{subsection title}
25318 \end_layout
25319
25320 \begin_layout Standard
25321 creates a subsection.
25322  In this example the preface is a subsubsection:
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 2
25331 status open
25332
25333 \begin_layout Plain Layout
25334 \begin_inset ERT
25335 status collapsed
25336
25337 \begin_layout Plain Layout
25338
25339
25340 \backslash
25341 subsubsection{
25342 \end_layout
25343
25344 \end_inset
25345
25346 This is a subsubsection heading as a preface
25347 \begin_inset ERT
25348 status collapsed
25349
25350 \begin_layout Plain Layout
25351
25352 }
25353 \end_layout
25354
25355 \end_inset
25356
25357
25358 \end_layout
25359
25360 \end_inset
25361
25362
25363 \size small
25364 A minute examination of the circumstances served only to make the case more
25365  complex.
25366  In the first place, no reason could be given why the young man should have
25367  fastened the door upon the inside.
25368  There was the possibility that the murderer had done this, and had afterwards
25369  escaped by the window.
25370  The drop was at least twenty feet, however, and a bed of crocuses in full
25371  bloom lay beneath.
25372  Neither the flowers nor the earth showed any sign of having been disturbed,
25373  nor were there any marks upon the narrow strip of grass which separated
25374  the house from the road.
25375  Apparently, therefore, it was the young man himself who had fastened the
25376  door.
25377  But how did he come by his death? No one could have climbed up to the window
25378  without leaving traces.
25379  Suppose a man had fired through the window, he would indeed be a remarkable
25380  shot who could with a revolver inflict so deadly a wound.
25381  Again, Park Lane is a frequented thoroughfare; there is a cab stand within
25382  a hundred yards of the house.
25383  No one had heard a shot.
25384 \end_layout
25385
25386 \end_inset
25387
25388
25389 \end_layout
25390
25391 \begin_layout Standard
25392 If there is less vertical space than 6
25393 \begin_inset space ~
25394 \end_inset
25395
25396 text lines is left on the page at the beginning of the multiple columns,
25397  a page break will be inserted before the multiple columns.
25398  Depending on the number of lines of the preface text, you might want to
25399  change this space.
25400  This is done by setting the cursor into the mulitcolumn inset behind the
25401  preface (if there is any) and using the menu 
25402 \family sans
25403 Insert\SpecialChar menuseparator
25404 Space
25405 \begin_inset space ~
25406 \end_inset
25407
25408 Before
25409 \begin_inset space ~
25410 \end_inset
25411
25412 Page
25413 \begin_inset space ~
25414 \end_inset
25415
25416 Break
25417 \family default
25418 .
25419  Insert into that inset the amount of space like e.
25420 \begin_inset space \thinspace{}
25421 \end_inset
25422
25423 g.
25424 \begin_inset space \space{}
25425 \end_inset
25426
25427
25428 \begin_inset Quotes eld
25429 \end_inset
25430
25431 5cm
25432 \begin_inset Quotes erd
25433 \end_inset
25434
25435 .
25436 \begin_inset Newline newline
25437 \end_inset
25438
25439 In this example the space is set to 7
25440 \begin_inset space ~
25441 \end_inset
25442
25443 text lines by using 
25444 \begin_inset Flex Code
25445 status collapsed
25446
25447 \begin_layout Plain Layout
25448 7
25449 \backslash
25450 baselineskip
25451 \end_layout
25452
25453 \end_inset
25454
25455  (where the command 
25456 \begin_inset Flex Code
25457 status collapsed
25458
25459 \begin_layout Plain Layout
25460
25461 \backslash
25462 baselineskip
25463 \end_layout
25464
25465 \end_inset
25466
25467  needs to be inserted as \SpecialChar TeX
25468  code):
25469 \end_layout
25470
25471 \begin_layout Standard
25472 \begin_inset Flex Multiple Columns
25473 status open
25474
25475 \begin_layout Plain Layout
25476 \begin_inset Argument 3
25477 status open
25478
25479 \begin_layout Plain Layout
25480 7
25481 \begin_inset ERT
25482 status collapsed
25483
25484 \begin_layout Plain Layout
25485
25486
25487 \backslash
25488 baselineskip
25489 \end_layout
25490
25491 \end_inset
25492
25493
25494 \end_layout
25495
25496 \end_inset
25497
25498
25499 \size small
25500 On the evening of the crime, he returned from the club exactly at ten.
25501  His mother and sister were out spending the evening with a relation.
25502  The servant deposed that she heard him enter the front room on the second
25503  floor, generally used as his sitting-room.
25504  She had lit a fire there, and as it smoked she had opened the window.
25505  No sound was heard from the room until eleven-twenty, the hour of the return
25506  of Lady Maynooth and her daughter.
25507  Desiring to say good-night, she attempted to enter her son's room.
25508  The door was locked on the inside, and no answer could be got to their
25509  cries and knocking.
25510  Help was obtained, and the door forced.
25511  The unfortunate young man was found lying near the table.
25512  His head had been horribly mutilated by an expanding revolver bullet, but
25513  no weapon of any sort was to be found in the room.
25514 \end_layout
25515
25516 \end_inset
25517
25518
25519 \end_layout
25520
25521 \begin_layout Subsubsection
25522 Surrounding Space
25523 \end_layout
25524
25525 \begin_layout Standard
25526 The amount of space before and after multiple columns can be changed by
25527  changing the length 
25528 \begin_inset Flex Code
25529 status collapsed
25530
25531 \begin_layout Plain Layout
25532
25533 \backslash
25534 multicolsep
25535 \end_layout
25536
25537 \end_inset
25538
25539 .
25540  For example the command
25541 \end_layout
25542
25543 \begin_layout LyX-Code
25544
25545 \backslash
25546 setlength{
25547 \backslash
25548 multicolsep}{3cm}
25549 \end_layout
25550
25551 \begin_layout Standard
25552 in \SpecialChar TeX
25553  Code changes its value to 3
25554 \begin_inset space \thinspace{}
25555 \end_inset
25556
25557 cm.
25558  The change must be made before the multiple columns' start.
25559  The predefined value is 13
25560 \begin_inset space \thinspace{}
25561 \end_inset
25562
25563 pt.
25564 \end_layout
25565
25566 \begin_layout Standard
25567 For this example 
25568 \begin_inset Flex Code
25569 status collapsed
25570
25571 \begin_layout Plain Layout
25572
25573 \backslash
25574 multicolsep
25575 \end_layout
25576
25577 \end_inset
25578
25579  was set to 2.5
25580 \begin_inset space \thinspace{}
25581 \end_inset
25582
25583 cm:
25584 \end_layout
25585
25586 \begin_layout Standard
25587 \begin_inset ERT
25588 status open
25589
25590 \begin_layout Plain Layout
25591
25592
25593 \backslash
25594 setlength{
25595 \backslash
25596 multicolsep}{2.5cm}
25597 \end_layout
25598
25599 \end_inset
25600
25601
25602 \end_layout
25603
25604 \begin_layout Standard
25605 \begin_inset Flex Multiple Columns
25606 status open
25607
25608 \begin_layout Plain Layout
25609
25610 \size small
25611 All day I turned these facts over in my mind, endeavouring to hit upon some
25612  theory which could reconcile them all, and to find that line of least resistanc
25613 e which my poor friend had declared to be the starting-point of every investigat
25614 ion.
25615  I confess that I made little progress.
25616  In the evening I strolled across the Park, and found myself about six o'clock
25617  at the Oxford Street end of Park Lane.
25618  A group of loafers upon the pavements, all staring up at a particular window,
25619  directed me to the house which I had come to see.
25620  A tall, thin man with coloured glasses, whom I strongly suspected of being
25621  a plain-clothes detective, was pointing out some theory of his own, while
25622  the others crowded round to listen to what he said.
25623  I got as near him as I could, but his observations seemed to me to be absurd,
25624  so I withdrew again in some disgust.
25625  As I did so I struck against an elderly, deformed man, who had been behind
25626  me, and I knocked down several books which he was carrying.
25627 \end_layout
25628
25629 \end_inset
25630
25631
25632 \end_layout
25633
25634 \begin_layout Standard
25635 \begin_inset Note Greyedout
25636 status open
25637
25638 \begin_layout Plain Layout
25639
25640 \series bold
25641 Note:
25642 \series default
25643  The values you set with 
25644 \begin_inset Flex Code
25645 status collapsed
25646
25647 \begin_layout Plain Layout
25648
25649 \backslash
25650 setlength
25651 \end_layout
25652
25653 \end_inset
25654
25655  will be used for all following multiple columns until you change them again.
25656 \end_layout
25657
25658 \end_inset
25659
25660
25661 \end_layout
25662
25663 \begin_layout Standard
25664 \begin_inset ERT
25665 status collapsed
25666
25667 \begin_layout Plain Layout
25668
25669
25670 \backslash
25671 setlength{
25672 \backslash
25673 multicolsep}{13pt}
25674 \end_layout
25675
25676 \end_inset
25677
25678
25679 \begin_inset Note Note
25680 status collapsed
25681
25682 \begin_layout Plain Layout
25683 go back to the default
25684 \end_layout
25685
25686 \end_inset
25687
25688
25689 \end_layout
25690
25691 \begin_layout Standard
25692 \begin_inset Newpage newpage
25693 \end_inset
25694
25695
25696 \end_layout
25697
25698 \begin_layout Subsubsection
25699 Column Breaks
25700 \end_layout
25701
25702 \begin_layout Standard
25703 A column break can be forced by inserting the command 
25704 \begin_inset Flex Code
25705 status collapsed
25706
25707 \begin_layout Plain Layout
25708
25709 \backslash
25710 columnbreak{}
25711 \end_layout
25712
25713 \end_inset
25714
25715  as \SpecialChar TeX
25716  Code to that position in the text where the column should be broken.
25717  Note that this leads in most cases to whitespace in the text.
25718 \begin_inset Newline newline
25719 \end_inset
25720
25721 Here is an example:
25722 \end_layout
25723
25724 \begin_layout Standard
25725 \begin_inset Flex Multiple Columns
25726 status open
25727
25728 \begin_layout Plain Layout
25729
25730 \size small
25731 \begin_inset Quotes eld
25732 \end_inset
25733
25734 You're surprised to see me, sir,
25735 \begin_inset Quotes erd
25736 \end_inset
25737
25738  said he, in a strange, croaking voice.
25739 \end_layout
25740
25741 \begin_layout Plain Layout
25742
25743 \size small
25744 I acknowledged that I was.
25745 \end_layout
25746
25747 \begin_layout Plain Layout
25748
25749 \size small
25750 \begin_inset Quotes eld
25751 \end_inset
25752
25753 Well, I've a conscience, sir, and when I chanced to see you go into this
25754  house, as I came hobbling after you, I thought to myself, I'll just step
25755  in and see that kind gentleman, and tell him that if I was a bit gruff
25756  in my manner there was not any harm meant, and that I am much obliged to
25757  him for picking up my books.
25758 \begin_inset Quotes erd
25759 \end_inset
25760
25761
25762 \end_layout
25763
25764 \begin_layout Plain Layout
25765
25766 \size small
25767 \begin_inset Quotes eld
25768 \end_inset
25769
25770 You make too much of a trifle,
25771 \begin_inset Quotes erd
25772 \end_inset
25773
25774  said I.
25775  
25776 \begin_inset Quotes eld
25777 \end_inset
25778
25779 May I ask how you knew who I was?
25780 \begin_inset Quotes erd
25781 \end_inset
25782
25783  AFTER THIS SENTENCE THE COLUMN BREAK IS FORCED.
25784 \begin_inset ERT
25785 status collapsed
25786
25787 \begin_layout Plain Layout
25788
25789
25790 \backslash
25791 columnbreak{}
25792 \end_layout
25793
25794 \end_inset
25795
25796
25797 \end_layout
25798
25799 \begin_layout Plain Layout
25800
25801 \size small
25802 \begin_inset Quotes eld
25803 \end_inset
25804
25805 Well, sir, if it isn't too great a liberty, I am a neighbour of yours, for
25806  you'll find my little bookshop at the corner of Church Street, and very
25807  happy to see you, I am sure.
25808  Maybe you collect yourself, sir.
25809  Here's 
25810 \noun on
25811 British
25812 \begin_inset space ~
25813 \end_inset
25814
25815 Birds
25816 \noun default
25817 , and 
25818 \noun on
25819 Catullus
25820 \noun default
25821 , and 
25822 \noun on
25823 The Holy War
25824 \noun default
25825
25826 \begin_inset space ~
25827 \end_inset
25828
25829 – a bargain, every one of them.
25830  With five volumes you could just fill that gap on that second shelf.
25831  It looks untidy, does it not, sir?
25832 \begin_inset Quotes erd
25833 \end_inset
25834
25835
25836 \end_layout
25837
25838 \end_inset
25839
25840
25841 \end_layout
25842
25843 \begin_layout Subsubsection
25844 Column Separation
25845 \end_layout
25846
25847 \begin_layout Standard
25848 The width of the columns is automatically calculated, but you can modify
25849  the space between the columns.
25850  This is done by changing the length 
25851 \begin_inset Flex Code
25852 status collapsed
25853
25854 \begin_layout Plain Layout
25855
25856 \backslash
25857 columnsep
25858 \end_layout
25859
25860 \end_inset
25861
25862 .
25863  Its predefined value is 10
25864 \begin_inset space \thinspace{}
25865 \end_inset
25866
25867 pt.
25868  Here is an example where 
25869 \begin_inset Flex Code
25870 status collapsed
25871
25872 \begin_layout Plain Layout
25873
25874 \backslash
25875 columnsep
25876 \end_layout
25877
25878 \end_inset
25879
25880  is set to 3
25881 \begin_inset space \thinspace{}
25882 \end_inset
25883
25884 cm:
25885 \end_layout
25886
25887 \begin_layout Standard
25888 \begin_inset ERT
25889 status open
25890
25891 \begin_layout Plain Layout
25892
25893
25894 \backslash
25895 setlength{
25896 \backslash
25897 columnsep}{3cm}
25898 \end_layout
25899
25900 \end_inset
25901
25902
25903 \end_layout
25904
25905 \begin_layout Standard
25906 \begin_inset Flex Multiple Columns
25907 status open
25908
25909 \begin_layout Plain Layout
25910
25911 \size small
25912 My observations of No.
25913 \begin_inset space \space{}
25914 \end_inset
25915
25916 427 Park Lane did little to clear up the problem in which I was interested.
25917  The house was separated from the street by a low wall and railing, the
25918  whole not more than five feet high.
25919  It was perfectly easy, therefore, for anyone to get into the garden, but
25920  the window was entirely inaccessible, since there was no water pipe or
25921  anything which could help the most active man to climb it.
25922  More puzzled than ever, I retraced my steps to Kensington.
25923  I had not been in my study five minutes when the maid entered to say that
25924  a person desired to see me.
25925  To my astonishment it was none other than my strange old book collector,
25926  his sharp, wizened face peering out from a frame of white hair, and his
25927  precious volumes, a dozen of them at least, wedged under his right arm.
25928 \end_layout
25929
25930 \end_inset
25931
25932
25933 \end_layout
25934
25935 \begin_layout Standard
25936 \begin_inset ERT
25937 status collapsed
25938
25939 \begin_layout Plain Layout
25940
25941
25942 \backslash
25943 setlength{
25944 \backslash
25945 columnsep}{10pt}
25946 \end_layout
25947
25948 \end_inset
25949
25950
25951 \begin_inset Note Note
25952 status collapsed
25953
25954 \begin_layout Plain Layout
25955 go back to the default
25956 \end_layout
25957
25958 \end_inset
25959
25960
25961 \end_layout
25962
25963 \begin_layout Subsubsection
25964 Vertical Lines
25965 \end_layout
25966
25967 \begin_layout Standard
25968 Between the columns a rule with a width of the length 
25969 \begin_inset Flex Code
25970 status collapsed
25971
25972 \begin_layout Plain Layout
25973
25974 \backslash
25975 columnseprule
25976 \end_layout
25977
25978 \end_inset
25979
25980  is placed.
25981  If this rule width is set to 0
25982 \begin_inset space \thinspace{}
25983 \end_inset
25984
25985 pt (this is the default), the rule is suppressed.
25986  In the following example the rule is 2
25987 \begin_inset space \thinspace{}
25988 \end_inset
25989
25990 pt wide:
25991 \end_layout
25992
25993 \begin_layout Standard
25994 \begin_inset ERT
25995 status open
25996
25997 \begin_layout Plain Layout
25998
25999
26000 \backslash
26001 setlength{
26002 \backslash
26003 columnseprule}{2pt}
26004 \end_layout
26005
26006 \end_inset
26007
26008
26009 \end_layout
26010
26011 \begin_layout Standard
26012 \begin_inset Flex Multiple Columns
26013 status open
26014
26015 \begin_layout Plain Layout
26016
26017 \size small
26018 \begin_inset Quotes eld
26019 \end_inset
26020
26021 You're surprised to see me, sir,
26022 \begin_inset Quotes erd
26023 \end_inset
26024
26025  said he, in a strange, croaking voice.
26026 \end_layout
26027
26028 \begin_layout Plain Layout
26029
26030 \size small
26031 I acknowledged that I was.
26032 \end_layout
26033
26034 \begin_layout Plain Layout
26035
26036 \size small
26037 \begin_inset Quotes eld
26038 \end_inset
26039
26040 Well, I've a conscience, sir, and when I chanced to see you go into this
26041  house, as I came hobbling after you, I thought to myself, I'll just step
26042  in and see that kind gentleman, and tell him that if I was a bit gruff
26043  in my manner there was not any harm meant, and that I am much obliged to
26044  him for picking up my books.
26045 \begin_inset Quotes erd
26046 \end_inset
26047
26048
26049 \end_layout
26050
26051 \begin_layout Plain Layout
26052
26053 \size small
26054 \begin_inset Quotes eld
26055 \end_inset
26056
26057 You make too much of a trifle,
26058 \begin_inset Quotes erd
26059 \end_inset
26060
26061  said I.
26062  
26063 \begin_inset Quotes eld
26064 \end_inset
26065
26066 May I ask how you knew who I was?
26067 \begin_inset Quotes erd
26068 \end_inset
26069
26070
26071 \end_layout
26072
26073 \begin_layout Plain Layout
26074
26075 \size small
26076 \begin_inset Quotes eld
26077 \end_inset
26078
26079 Well, sir, if it isn't too great a liberty, I am a neighbour of yours, for
26080  you'll find my little bookshop at the corner of Church Street, and very
26081  happy to see you, I am sure.
26082  Maybe you collect yourself, sir.
26083  Here's 
26084 \noun on
26085 British
26086 \begin_inset space ~
26087 \end_inset
26088
26089 Birds
26090 \noun default
26091 , and 
26092 \noun on
26093 Catullus
26094 \noun default
26095 , and 
26096 \noun on
26097 The Holy War
26098 \noun default
26099
26100 \begin_inset space ~
26101 \end_inset
26102
26103 – a bargain, every one of them.
26104  With five volumes you could just fill that gap on that second shelf.
26105  It looks untidy, does it not, sir?
26106 \begin_inset Quotes erd
26107 \end_inset
26108
26109
26110 \end_layout
26111
26112 \end_inset
26113
26114
26115 \end_layout
26116
26117 \begin_layout Standard
26118 \begin_inset VSpace defskip
26119 \end_inset
26120
26121
26122 \end_layout
26123
26124 \begin_layout Standard
26125 The rule can be colored by redefining the command 
26126 \begin_inset Flex Code
26127 status collapsed
26128
26129 \begin_layout Plain Layout
26130
26131 \backslash
26132 columnseprulecolor
26133 \end_layout
26134
26135 \end_inset
26136
26137 .
26138  This is done by inserting the command
26139 \end_layout
26140
26141 \begin_layout LyX-Code
26142
26143 \backslash
26144 renewcommand{
26145 \backslash
26146 columnseprulecolor}{
26147 \backslash
26148 color{red}}
26149 \end_layout
26150
26151 \begin_layout Standard
26152 as \SpecialChar TeX
26153  Code before the multicolumn inset.
26154  Replace 
26155 \begin_inset Flex Code
26156 status collapsed
26157
26158 \begin_layout Plain Layout
26159 red
26160 \end_layout
26161
26162 \end_inset
26163
26164  in this command by a color of your choice.
26165  You can use all pre- and self-defined colors.
26166  See the 
26167 \emph on
26168 EmbeddedObjects
26169 \emph default
26170  manual, section 
26171 \emph on
26172 Colored
26173 \begin_inset space ~
26174 \end_inset
26175
26176 Tables
26177 \emph default
26178  for more information about pre- and self-defined colors.
26179  To go back to the default color insert the command
26180 \end_layout
26181
26182 \begin_layout LyX-Code
26183
26184 \backslash
26185 renewcommand{
26186 \backslash
26187 columnseprulecolor}{
26188 \backslash
26189 normalcolor}
26190 \end_layout
26191
26192 \begin_layout Standard
26193 Here is the example with a cyan rule and 1
26194 \begin_inset space \thinspace{}
26195 \end_inset
26196
26197 cm column separation:
26198 \end_layout
26199
26200 \begin_layout Standard
26201 \begin_inset ERT
26202 status open
26203
26204 \begin_layout Plain Layout
26205
26206
26207 \backslash
26208 setlength{
26209 \backslash
26210 columnsep}{1cm}
26211 \end_layout
26212
26213 \begin_layout Plain Layout
26214
26215
26216 \backslash
26217 renewcommand{
26218 \backslash
26219 columnseprulecolor}{
26220 \backslash
26221 color{cyan}}
26222 \end_layout
26223
26224 \end_inset
26225
26226
26227 \end_layout
26228
26229 \begin_layout Standard
26230 \begin_inset Flex Multiple Columns
26231 status open
26232
26233 \begin_layout Plain Layout
26234
26235 \size small
26236 \begin_inset Quotes eld
26237 \end_inset
26238
26239 You're surprised to see me, sir,
26240 \begin_inset Quotes erd
26241 \end_inset
26242
26243  said he, in a strange, croaking voice.
26244 \end_layout
26245
26246 \begin_layout Plain Layout
26247
26248 \size small
26249 I acknowledged that I was.
26250 \end_layout
26251
26252 \begin_layout Plain Layout
26253
26254 \size small
26255 \begin_inset Quotes eld
26256 \end_inset
26257
26258 Well, I've a conscience, sir, and when I chanced to see you go into this
26259  house, as I came hobbling after you, I thought to myself, I'll just step
26260  in and see that kind gentleman, and tell him that if I was a bit gruff
26261  in my manner there was not any harm meant, and that I am much obliged to
26262  him for picking up my books.
26263 \begin_inset Quotes erd
26264 \end_inset
26265
26266
26267 \end_layout
26268
26269 \begin_layout Plain Layout
26270
26271 \size small
26272 \begin_inset Quotes eld
26273 \end_inset
26274
26275 You make too much of a trifle,
26276 \begin_inset Quotes erd
26277 \end_inset
26278
26279  said I.
26280  
26281 \begin_inset Quotes eld
26282 \end_inset
26283
26284 May I ask how you knew who I was?
26285 \begin_inset Quotes erd
26286 \end_inset
26287
26288
26289 \end_layout
26290
26291 \begin_layout Plain Layout
26292
26293 \size small
26294 \begin_inset Quotes eld
26295 \end_inset
26296
26297 Well, sir, if it isn't too great a liberty, I am a neighbour of yours, for
26298  you'll find my little bookshop at the corner of Church Street, and very
26299  happy to see you, I am sure.
26300  Maybe you collect yourself, sir.
26301  Here's 
26302 \noun on
26303 British
26304 \begin_inset space ~
26305 \end_inset
26306
26307 Birds
26308 \noun default
26309 , and 
26310 \noun on
26311 Catullus
26312 \noun default
26313 , and 
26314 \noun on
26315 The Holy War
26316 \noun default
26317
26318 \begin_inset space ~
26319 \end_inset
26320
26321 – a bargain, every one of them.
26322  With five volumes you could just fill that gap on that second shelf.
26323  It looks untidy, does it not, sir?
26324 \begin_inset Quotes erd
26325 \end_inset
26326
26327
26328 \end_layout
26329
26330 \end_inset
26331
26332
26333 \end_layout
26334
26335 \begin_layout Standard
26336 \begin_inset ERT
26337 status collapsed
26338
26339 \begin_layout Plain Layout
26340
26341
26342 \backslash
26343 setlength{
26344 \backslash
26345 columnseprule}{0pt}
26346 \end_layout
26347
26348 \begin_layout Plain Layout
26349
26350
26351 \backslash
26352 renewcommand{
26353 \backslash
26354 columnseprulecolor}{
26355 \backslash
26356 normalcolor}
26357 \end_layout
26358
26359 \end_inset
26360
26361
26362 \begin_inset Note Note
26363 status collapsed
26364
26365 \begin_layout Plain Layout
26366 go back to the default
26367 \end_layout
26368
26369 \end_inset
26370
26371
26372 \end_layout
26373
26374 \begin_layout Section
26375 Non-standard Paragraph Shapes
26376 \end_layout
26377
26378 \begin_layout Standard
26379 \noindent
26380 \SpecialChar LaTeX
26381  as well as any other text processor uses by default rectangular paragraphs.
26382  For special cases like for example posters, invitation cards or poems you
26383  can modify the paragraph shape to one of your choice.
26384  This can be done by using the \SpecialChar LaTeX
26385 -package 
26386 \begin_inset Flex Code
26387 status collapsed
26388
26389 \begin_layout Plain Layout
26390 shapepar
26391 \end_layout
26392
26393 \end_inset
26394
26395  which is loaded by using in the document settings the module 
26396 \family sans
26397 Custom paragraph shapes
26398 \family default
26399 .
26400 \end_layout
26401
26402 \begin_layout Subsection
26403 Predefined shapes
26404 \end_layout
26405
26406 \begin_layout Standard
26407
26408 \series bold
26409 shapepar
26410 \series default
26411  provides the following shapes:
26412 \end_layout
26413
26414 \begin_layout Standard
26415 \begin_inset Tabular
26416 <lyxtabular version="3" rows="13" columns="3">
26417 <features booktabs="true" islongtable="true" longtabularalignment="center">
26418 <column alignment="left" valignment="middle" width="16col%">
26419 <column alignment="left" valignment="middle" width="40col%">
26420 <column alignment="left" valignment="middle" width="35col%">
26421 <row endhead="true">
26422 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26423 \begin_inset Text
26424
26425 \begin_layout Plain Layout
26426
26427 \series bold
26428 \size small
26429 Name
26430 \end_layout
26431
26432 \end_inset
26433 </cell>
26434 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26435 \begin_inset Text
26436
26437 \begin_layout Plain Layout
26438
26439 \series bold
26440 \size small
26441 Description
26442 \end_layout
26443
26444 \end_inset
26445 </cell>
26446 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
26447 \begin_inset Text
26448
26449 \begin_layout Plain Layout
26450
26451 \series bold
26452 \size small
26453 Annotation
26454 \end_layout
26455
26456 \end_inset
26457 </cell>
26458 </row>
26459 <row interlinespace="default">
26460 <cell alignment="left" valignment="top" usebox="none">
26461 \begin_inset Text
26462
26463 \begin_layout Plain Layout
26464
26465 \size small
26466 CDlabel
26467 \end_layout
26468
26469 \end_inset
26470 </cell>
26471 <cell alignment="left" valignment="top" usebox="none">
26472 \begin_inset Text
26473
26474 \begin_layout Plain Layout
26475
26476 \size small
26477 Circle with circular hole (in the size of a CD/DVD)
26478 \end_layout
26479
26480 \end_inset
26481 </cell>
26482 <cell alignment="left" valignment="top" usebox="none">
26483 \begin_inset Text
26484
26485 \begin_layout Plain Layout
26486
26487 \size small
26488 Cannot be scaled, take care there is not too much text
26489 \end_layout
26490
26491 \end_inset
26492 </cell>
26493 </row>
26494 <row interlinespace="default">
26495 <cell alignment="left" valignment="top" usebox="none">
26496 \begin_inset Text
26497
26498 \begin_layout Plain Layout
26499
26500 \size small
26501 Circle
26502 \end_layout
26503
26504 \end_inset
26505 </cell>
26506 <cell alignment="left" valignment="top" usebox="none">
26507 \begin_inset Text
26508
26509 \begin_layout Plain Layout
26510
26511 \size small
26512 Circle
26513 \end_layout
26514
26515 \end_inset
26516 </cell>
26517 <cell alignment="left" valignment="top" usebox="none">
26518 \begin_inset Text
26519
26520 \begin_layout Plain Layout
26521
26522 \size small
26523 Fragile, calculation might fail
26524 \end_layout
26525
26526 \end_inset
26527 </cell>
26528 </row>
26529 <row interlinespace="default">
26530 <cell alignment="left" valignment="top" usebox="none">
26531 \begin_inset Text
26532
26533 \begin_layout Plain Layout
26534
26535 \size small
26536 Diamond
26537 \end_layout
26538
26539 \end_inset
26540 </cell>
26541 <cell alignment="left" valignment="top" usebox="none">
26542 \begin_inset Text
26543
26544 \begin_layout Plain Layout
26545
26546 \size small
26547 Rhomboid (symbolizing a 
26548 \begin_inset Quotes eld
26549 \end_inset
26550
26551 diamond
26552 \begin_inset Quotes erd
26553 \end_inset
26554
26555 )
26556 \end_layout
26557
26558 \end_inset
26559 </cell>
26560 <cell alignment="left" valignment="top" usebox="none">
26561 \begin_inset Text
26562
26563 \begin_layout Plain Layout
26564
26565 \size small
26566 -
26567 \end_layout
26568
26569 \end_inset
26570 </cell>
26571 </row>
26572 <row interlinespace="default">
26573 <cell alignment="left" valignment="top" usebox="none">
26574 \begin_inset Text
26575
26576 \begin_layout Plain Layout
26577
26578 \size small
26579 Heart
26580 \end_layout
26581
26582 \end_inset
26583 </cell>
26584 <cell alignment="left" valignment="top" usebox="none">
26585 \begin_inset Text
26586
26587 \begin_layout Plain Layout
26588
26589 \size small
26590 Heart-like shape
26591 \end_layout
26592
26593 \end_inset
26594 </cell>
26595 <cell alignment="left" valignment="top" usebox="none">
26596 \begin_inset Text
26597
26598 \begin_layout Plain Layout
26599
26600 \size small
26601 -
26602 \end_layout
26603
26604 \end_inset
26605 </cell>
26606 </row>
26607 <row interlinespace="default">
26608 <cell alignment="left" valignment="top" usebox="none">
26609 \begin_inset Text
26610
26611 \begin_layout Plain Layout
26612
26613 \size small
26614 Hexagon
26615 \end_layout
26616
26617 \end_inset
26618 </cell>
26619 <cell alignment="left" valignment="top" usebox="none">
26620 \begin_inset Text
26621
26622 \begin_layout Plain Layout
26623
26624 \size small
26625 Hexagon
26626 \end_layout
26627
26628 \end_inset
26629 </cell>
26630 <cell alignment="left" valignment="top" usebox="none">
26631 \begin_inset Text
26632
26633 \begin_layout Plain Layout
26634
26635 \size small
26636 -
26637 \end_layout
26638
26639 \end_inset
26640 </cell>
26641 </row>
26642 <row interlinespace="default">
26643 <cell alignment="left" valignment="top" usebox="none">
26644 \begin_inset Text
26645
26646 \begin_layout Plain Layout
26647
26648 \size small
26649 Nut
26650 \end_layout
26651
26652 \end_inset
26653 </cell>
26654 <cell alignment="left" valignment="top" usebox="none">
26655 \begin_inset Text
26656
26657 \begin_layout Plain Layout
26658
26659 \size small
26660 Nut for bolt (hexagon with circular hole)
26661 \end_layout
26662
26663 \end_inset
26664 </cell>
26665 <cell alignment="left" valignment="top" usebox="none">
26666 \begin_inset Text
26667
26668 \begin_layout Plain Layout
26669
26670 \size small
26671 -
26672 \end_layout
26673
26674 \end_inset
26675 </cell>
26676 </row>
26677 <row interlinespace="default">
26678 <cell alignment="left" valignment="top" usebox="none">
26679 \begin_inset Text
26680
26681 \begin_layout Plain Layout
26682
26683 \size small
26684 Square
26685 \end_layout
26686
26687 \end_inset
26688 </cell>
26689 <cell alignment="left" valignment="top" usebox="none">
26690 \begin_inset Text
26691
26692 \begin_layout Plain Layout
26693
26694 \size small
26695 Square
26696 \end_layout
26697
26698 \end_inset
26699 </cell>
26700 <cell alignment="left" valignment="top" usebox="none">
26701 \begin_inset Text
26702
26703 \begin_layout Plain Layout
26704
26705 \size small
26706 -
26707 \end_layout
26708
26709 \end_inset
26710 </cell>
26711 </row>
26712 <row interlinespace="default">
26713 <cell alignment="left" valignment="top" usebox="none">
26714 \begin_inset Text
26715
26716 \begin_layout Plain Layout
26717
26718 \size small
26719 Star
26720 \end_layout
26721
26722 \end_inset
26723 </cell>
26724 <cell alignment="left" valignment="top" usebox="none">
26725 \begin_inset Text
26726
26727 \begin_layout Plain Layout
26728
26729 \size small
26730 Five-point star
26731 \end_layout
26732
26733 \end_inset
26734 </cell>
26735 <cell alignment="left" valignment="top" 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 <row interlinespace="default">
26748 <cell alignment="left" valignment="top" usebox="none">
26749 \begin_inset Text
26750
26751 \begin_layout Plain Layout
26752
26753 \size small
26754 Candle
26755 \end_layout
26756
26757 \end_inset
26758 </cell>
26759 <cell alignment="left" valignment="top" usebox="none">
26760 \begin_inset Text
26761
26762 \begin_layout Plain Layout
26763
26764 \size small
26765 Burning candle
26766 \end_layout
26767
26768 \end_inset
26769 </cell>
26770 <cell alignment="left" valignment="top" usebox="none">
26771 \begin_inset Text
26772
26773 \begin_layout Plain Layout
26774
26775 \size small
26776 -
26777 \end_layout
26778
26779 \end_inset
26780 </cell>
26781 </row>
26782 <row interlinespace="default">
26783 <cell alignment="left" valignment="top" usebox="none">
26784 \begin_inset Text
26785
26786 \begin_layout Plain Layout
26787
26788 \size small
26789 Drop down/up
26790 \end_layout
26791
26792 \end_inset
26793 </cell>
26794 <cell alignment="left" valignment="top" usebox="none">
26795 \begin_inset Text
26796
26797 \begin_layout Plain Layout
26798
26799 \size small
26800 Normal/reversed rain drop
26801 \end_layout
26802
26803 \end_inset
26804 </cell>
26805 <cell alignment="left" valignment="top" usebox="none">
26806 \begin_inset Text
26807
26808 \begin_layout Plain Layout
26809
26810 \size small
26811 Fragile, calculation might fail
26812 \end_layout
26813
26814 \end_inset
26815 </cell>
26816 </row>
26817 <row interlinespace="default">
26818 <cell alignment="left" valignment="top" usebox="none">
26819 \begin_inset Text
26820
26821 \begin_layout Plain Layout
26822
26823 \size small
26824 \SpecialChar TeX
26825
26826 \end_layout
26827
26828 \end_inset
26829 </cell>
26830 <cell alignment="left" valignment="top" usebox="none">
26831 \begin_inset Text
26832
26833 \begin_layout Plain Layout
26834
26835 \size small
26836 The \SpecialChar TeX
26837  logo
26838 \end_layout
26839
26840 \end_inset
26841 </cell>
26842 <cell alignment="left" valignment="top" usebox="none">
26843 \begin_inset Text
26844
26845 \begin_layout Plain Layout
26846
26847 \size small
26848 -
26849 \end_layout
26850
26851 \end_inset
26852 </cell>
26853 </row>
26854 <row interlinespace="default">
26855 <cell alignment="left" valignment="top" bottomline="true" usebox="none">
26856 \begin_inset Text
26857
26858 \begin_layout Plain Layout
26859
26860 \size small
26861 Triangle up/down/
26862 \begin_inset Newline newline
26863 \end_inset
26864
26865 left/right
26866 \end_layout
26867
26868 \end_inset
26869 </cell>
26870 <cell alignment="left" valignment="top" bottomline="true" usebox="none">
26871 \begin_inset Text
26872
26873 \begin_layout Plain Layout
26874
26875 \size small
26876 Triangles in different orientations
26877 \end_layout
26878
26879 \end_inset
26880 </cell>
26881 <cell alignment="left" valignment="top" bottomline="true" usebox="none">
26882 \begin_inset Text
26883
26884 \begin_layout Plain Layout
26885
26886 \size small
26887 -
26888 \end_layout
26889
26890 \end_inset
26891 </cell>
26892 </row>
26893 </lyxtabular>
26894
26895 \end_inset
26896
26897
26898 \end_layout
26899
26900 \begin_layout Standard
26901 To use a shape for your paragraph, simply select it in \SpecialChar LyX
26902 's pull-down box
26903  for environments in the toolbar.
26904 \end_layout
26905
26906 \begin_layout Standard
26907 \begin_inset Newpage newpage
26908 \end_inset
26909
26910
26911 \end_layout
26912
26913 \begin_layout Standard
26914 Here is an example paragraph in the shape of a nut:
26915 \end_layout
26916
26917 \begin_layout Standard
26918 \begin_inset VSpace bigskip
26919 \end_inset
26920
26921
26922 \end_layout
26923
26924 \begin_layout Nut
26925
26926 \lang latin
26927 Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
26928  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
26929  voluptua.
26930  At vero eos et accusam et justo duo dolores et ea rebum.
26931  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
26932  sit amet.
26933  Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
26934  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
26935  voluptua.
26936 \end_layout
26937
26938 \begin_layout Standard
26939 \begin_inset VSpace bigskip
26940 \end_inset
26941
26942
26943 \end_layout
26944
26945 \begin_layout Standard
26946 \begin_inset Note Greyedout
26947 status open
26948
26949 \begin_layout Plain Layout
26950
26951 \series bold
26952 Note
26953 \series default
26954
26955 \family sans
26956 shapepar
26957 \family default
26958  paragraphs cannot run over a page break.
26959 \end_layout
26960
26961 \end_inset
26962
26963
26964 \end_layout
26965
26966 \begin_layout Standard
26967 \begin_inset VSpace bigskip
26968 \end_inset
26969
26970
26971 \end_layout
26972
26973 \begin_layout Standard
26974 The package 
26975 \begin_inset Flex Code
26976 status collapsed
26977
26978 \begin_layout Plain Layout
26979 shapepar
26980 \end_layout
26981
26982 \end_inset
26983
26984  takes care that the shape will always be preserved, no matter how much
26985  text is in the paragraph.
26986  Therefore the paragraph size changes with the amount of contained text.
26987  This can lead to paragraph sizes exceeding the page margins.
26988  To demonstrate the size scaling, here is the same example paragraph but
26989  with twice as much text:
26990 \end_layout
26991
26992 \begin_layout Standard
26993 \begin_inset Newpage newpage
26994 \end_inset
26995
26996
26997 \end_layout
26998
26999 \begin_layout Nut
27000
27001 \lang latin
27002 Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
27003  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
27004  voluptua.
27005  At vero eos et accusam et justo duo dolores et ea rebum.
27006  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
27007  sit amet.
27008  Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
27009  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
27010  voluptua.
27011  Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
27012  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
27013  voluptua.
27014  At vero eos et accusam et justo duo dolores et ea rebum.
27015  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
27016  sit amet.
27017  Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
27018  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
27019  voluptua.
27020 \end_layout
27021
27022 \begin_layout Standard
27023 \begin_inset VSpace bigskip
27024 \end_inset
27025
27026
27027 \end_layout
27028
27029 \begin_layout Standard
27030 An exception is the shape 
27031 \family sans
27032 CDlabel
27033 \family default
27034 .
27035  It cannot be scaled because it must fit the size of a CD/DVD.
27036  Therefore the amount of text that fits into the shape is limited.
27037 \begin_inset Newline newline
27038 \end_inset
27039
27040 The 
27041 \family sans
27042 drop
27043 \family default
27044  shapes and the 
27045 \family sans
27046 circle
27047 \family default
27048  shape are fragile, meaning that the calculation of their size can fail,
27049  depending on the amount of text.
27050  You will then get the \SpecialChar LaTeX
27051  error 
27052 \begin_inset Quotes eld
27053 \end_inset
27054
27055 Arithmetic overflow
27056 \begin_inset Quotes erd
27057 \end_inset
27058
27059 .
27060  In this case one can try to remove or add some text; if nothing works one
27061  has to use another shape.
27062 \end_layout
27063
27064 \begin_layout Standard
27065 \begin_inset VSpace bigskip
27066 \end_inset
27067
27068
27069 \end_layout
27070
27071 \begin_layout Standard
27072 For shapes with tips you will maybe see that \SpecialChar LaTeX
27073 's hyphenation routine fails
27074  for text in the tips.
27075  Therefore it is often necessary to add hyphenation points 
27076 \family sans
27077 (
27078 \begin_inset Info
27079 type  "shortcut"
27080 arg   "specialchar-insert hyphenation"
27081 \end_inset
27082
27083
27084 \family default
27085 ) to the corresponding text parts.
27086 \end_layout
27087
27088 \begin_layout Standard
27089 \begin_inset VSpace bigskip
27090 \end_inset
27091
27092
27093 \end_layout
27094
27095 \begin_layout Standard
27096 Shapepar paragraphs are either always centered or placed on the page so
27097  that their left border touches the left page margin.
27098  You can therefore not use the paragraph dialog to align such paragraphs.
27099  A solution is to put the paragraph into a minipage or parbox and align
27100  the box.
27101  The problem is hereby to find the right width for the box.
27102  Because if it is too wide and you center the box, the paragraph is not
27103  centered too because it sticks at the left side of the box.
27104  So you might have to play a bit with the width until it fits.
27105  Here are two heart-shaped paragraphs, the first one is not aligned, the
27106  second one is right-aligned:
27107 \end_layout
27108
27109 \begin_layout Standard
27110 \begin_inset Newpage newpage
27111 \end_inset
27112
27113
27114 \end_layout
27115
27116 \begin_layout Heart
27117 \noindent
27118
27119 \lang latin
27120 Lo\SpecialChar softhyphen
27121 rem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
27122  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
27123  voluptua.
27124  At vero eos et accusam et justo duo dolores et ea rebum.
27125  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
27126  sit amet.
27127 \end_layout
27128
27129 \begin_layout Standard
27130 \begin_inset VSpace bigskip
27131 \end_inset
27132
27133
27134 \end_layout
27135
27136 \begin_layout Standard
27137 \noindent
27138 \align right
27139 \begin_inset Box Frameless
27140 position "t"
27141 hor_pos "c"
27142 has_inner_box 1
27143 inner_pos "t"
27144 use_parbox 1
27145 use_makebox 0
27146 width "42col%"
27147 special "none"
27148 height "1in"
27149 height_special "totalheight"
27150 thickness "0.4pt"
27151 separation "3pt"
27152 shadowsize "4pt"
27153 framecolor "black"
27154 backgroundcolor "none"
27155 status open
27156
27157 \begin_layout Heart
27158 \noindent
27159
27160 \lang latin
27161 Lo\SpecialChar softhyphen
27162 rem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
27163  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
27164  voluptua.
27165  At vero eos et accusam et justo duo dolores et ea rebum.
27166  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
27167  sit amet.
27168 \end_layout
27169
27170 \end_inset
27171
27172
27173 \end_layout
27174
27175 \begin_layout Subsection
27176 Custom shapes
27177 \end_layout
27178
27179 \begin_layout Standard
27180 You can define any shape you want.
27181  Doing this manually is a lot of work because every coordinate must be specified.
27182  But there is a way to let the computer calculate the coordinates:
27183 \end_layout
27184
27185 \begin_layout Enumerate
27186 Install the program 
27187 \begin_inset CommandInset href
27188 LatexCommand href
27189 name "Jpgfdraw"
27190 target "https://www.ctan.org/tex-archive/graphics/jpgfdraw"
27191 literal "false"
27192
27193 \end_inset
27194
27195 .
27196 \end_layout
27197
27198 \begin_layout Enumerate
27199 In 
27200 \family sans
27201 Jpgfdraw
27202 \family default
27203  go to the menu 
27204 \family sans
27205 TeX/LaTeX\SpecialChar menuseparator
27206 Settings\SpecialChar menuseparator
27207 Set Normal Size
27208 \family default
27209  and select the font size you are using in your document.
27210  For example this document uses the size 12
27211 \begin_inset space \thinspace{}
27212 \end_inset
27213
27214 pt.
27215 \end_layout
27216
27217 \begin_layout Enumerate
27218 Draw a shape.
27219 \end_layout
27220
27221 \begin_layout Enumerate
27222 Use the menu 
27223 \family sans
27224 TeX/LaTeX\SpecialChar menuseparator
27225 Shapepar
27226 \family default
27227  to export the shape to coordinates.
27228  In the appearing dialog use either the outline of your shape for the coordinate
27229 s or the path itself.
27230 \begin_inset Foot
27231 status collapsed
27232
27233 \begin_layout Plain Layout
27234 For more information see 
27235 \begin_inset CommandInset href
27236 LatexCommand href
27237 target "http://www.dickimaw-books.com/apps/jpgfdraw/manual/shapepar.html"
27238 literal "false"
27239
27240 \end_inset
27241
27242
27243 \end_layout
27244
27245 \end_inset
27246
27247
27248 \end_layout
27249
27250 \begin_layout Standard
27251 The coordinates are written into a \SpecialChar TeX
27252  file.
27253  To use it for your \SpecialChar LyX
27254  document
27255 \end_layout
27256
27257 \begin_layout Enumerate
27258 Place the cursor before the first character of your paragraph (or into a
27259  new empty one).
27260 \end_layout
27261
27262 \begin_layout Enumerate
27263 Open in \SpecialChar LyX
27264  the menu 
27265 \family sans
27266 Insert\SpecialChar menuseparator
27267 File\SpecialChar menuseparator
27268 Child
27269 \begin_inset space ~
27270 \end_inset
27271
27272 Document
27273 \family default
27274 , select the file and use 
27275 \family sans
27276 Input
27277 \family default
27278  as 
27279 \family sans
27280 Include Type.
27281 \end_layout
27282
27283 \begin_layout Standard
27284 \begin_inset VSpace defskip
27285 \end_inset
27286
27287
27288 \end_layout
27289
27290 \begin_layout Standard
27291 \begin_inset Note Greyedout
27292 status open
27293
27294 \begin_layout Plain Layout
27295
27296 \series bold
27297 Note
27298 \series default
27299 : The changed shape only applies to the current paragraph; everything is
27300  reset to normal for the next paragraph.
27301  Therefore the shape definition file must be input into every paragraph
27302  with the desired shape.
27303 \end_layout
27304
27305 \end_inset
27306
27307
27308 \end_layout
27309
27310 \begin_layout Standard
27311 \begin_inset VSpace bigskip
27312 \end_inset
27313
27314
27315 \end_layout
27316
27317 \begin_layout Standard
27318 Here is an example:
27319 \end_layout
27320
27321 \begin_layout Standard
27322 \begin_inset VSpace bigskip
27323 \end_inset
27324
27325
27326 \end_layout
27327
27328 \begin_layout Standard
27329 \begin_inset CommandInset include
27330 LatexCommand input
27331 filename "SpecialParagraphShape.tex"
27332 literal "true"
27333
27334 \end_inset
27335
27336
27337 \lang latin
27338 Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
27339  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
27340  voluptua.
27341  At vero eos et accusam et justo duo dolores et ea rebum.
27342  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
27343  sit amet.
27344  Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
27345  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
27346  voluptua.
27347 \end_layout
27348
27349 \begin_layout Standard
27350 \begin_inset VSpace bigskip
27351 \end_inset
27352
27353
27354 \end_layout
27355
27356 \begin_layout Standard
27357
27358 \series bold
27359 A tip:
27360 \series default
27361  to draw complexer shapes in 
27362 \family sans
27363 Jpgfdraw
27364 \family default
27365  you can draw the shape in a program of your choice and import the resulting
27366  image to 
27367 \family sans
27368 Jpgfdraw
27369 \family default
27370 .
27371  Then you only need to draw a line or spline along the outline of the image.
27372 \end_layout
27373
27374 \begin_layout Standard
27375 \begin_inset VSpace bigskip
27376 \end_inset
27377
27378
27379 \end_layout
27380
27381 \begin_layout Standard
27382 The module 
27383 \family sans
27384 Custom paragraph shapes
27385 \family default
27386  also provides the two commands 
27387 \family sans
27388 shapepar
27389 \family default
27390  and 
27391 \family sans
27392 Shapepar
27393 \family default
27394  which can be used to define custom shapes coordinate by coordinate.
27395 \begin_inset Foot
27396 status collapsed
27397
27398 \begin_layout Plain Layout
27399 These commands are internally used for all shapes described here.
27400 \end_layout
27401
27402 \end_inset
27403
27404  For information how these styles are used and about further customization
27405  possibilities, have a look at the 
27406 \begin_inset CommandInset href
27407 LatexCommand href
27408 name "documentation"
27409 target "https://www.ctan.org/tex-archive/macros/latex/contrib/shapepar/shapepar.pdf"
27410 literal "false"
27411
27412 \end_inset
27413
27414  of the package 
27415 \begin_inset Flex Code
27416 status collapsed
27417
27418 \begin_layout Plain Layout
27419 shapepar
27420 \end_layout
27421
27422 \end_inset
27423
27424 .
27425 \end_layout
27426
27427 \end_body
27428 \end_document