]> git.lyx.org Git - lyx.git/blob - lib/doc/Additional.lyx
Minor doc updates
[lyx.git] / lib / doc / Additional.lyx
1 #LyX 2.4 created this file. For more info see https://www.lyx.org/
2 \lyxformat 614
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 graphicboxes
40 \end_modules
41 \maintain_unincluded_children no
42 \language english
43 \language_package default
44 \inputencoding utf8
45 \fontencoding auto
46 \font_roman "lmodern" "default"
47 \font_sans "lmss" "default"
48 \font_typewriter "lmtt" "default"
49 \font_math "auto" "auto"
50 \font_default_family default
51 \use_non_tex_fonts false
52 \font_sc false
53 \font_roman_osf false
54 \font_sans_osf false
55 \font_typewriter_osf false
56 \font_sf_scale 100 100
57 \font_tt_scale 100 100
58 \use_microtype false
59 \use_dash_ligatures true
60 \graphics default
61 \default_output_format pdf2
62 \output_sync 0
63 \bibtex_command default
64 \index_command default
65 \float_placement class
66 \float_alignment class
67 \paperfontsize 12
68 \spacing single
69 \use_hyperref true
70 \pdf_title "LyX's Additional Features manual"
71 \pdf_author "LyX Team"
72 \pdf_subject "LyX's additional features documentation"
73 \pdf_keywords "LyX, Documentation, Additional"
74 \pdf_bookmarks true
75 \pdf_bookmarksnumbered true
76 \pdf_bookmarksopen false
77 \pdf_bookmarksopenlevel 1
78 \pdf_breaklinks false
79 \pdf_pdfborder false
80 \pdf_colorlinks true
81 \pdf_backref false
82 \pdf_pdfusetitle false
83 \pdf_quoted_options "linkcolor=black, citecolor=black, urlcolor=blue, filecolor=blue, pdfpagelayout=OneColumn, pdfnewwindow=true, pdfstartview=XYZ, plainpages=false"
84 \papersize a4
85 \use_geometry false
86 \use_package amsmath 1
87 \use_package amssymb 1
88 \use_package cancel 1
89 \use_package esint 1
90 \use_package mathdots 1
91 \use_package mathtools 1
92 \use_package mhchem 1
93 \use_package stackrel 1
94 \use_package stmaryrd 1
95 \use_package undertilde 1
96 \cite_engine basic
97 \cite_engine_type default
98 \biblio_style plain
99 \use_bibtopic false
100 \use_indices false
101 \paperorientation portrait
102 \suppress_date false
103 \justification true
104 \use_refstyle 0
105 \use_minted 0
106 \use_lineno 0
107 \notefontcolor #0000ff
108 \index Index
109 \shortcut idx
110 \color #008000
111 \end_index
112 \secnumdepth 3
113 \tocdepth 3
114 \paragraph_separation indent
115 \paragraph_indentation default
116 \is_math_indent 1
117 \math_indentation default
118 \math_numbering_side default
119 \quotes_style english
120 \dynamic_quotes 0
121 \papercolumns 1
122 \papersides 2
123 \paperpagestyle headings
124 \tablestyle default
125 \tracking_changes true
126 \output_changes false
127 \change_bars false
128 \postpone_fragile_content false
129 \html_math_output 0
130 \html_css_as_file 0
131 \html_be_strict true
132 \docbook_table_output 0
133 \docbook_mathml_prefix 1
134 \author -712698321 "Jürgen Spitzmüller"
135 \author 177693 "x"
136 \author 5863208 "ab"
137 \author 244031559 "Yuriy"
138 \author 564990737 "John Lyx"
139 \author 630872221 "Jean-Pierre Chrétien" jeanpierre.chretien@free.fr
140 \author 1075283030 "Thibaut"
141 \author 1119979965 "Joel A. Kulesza"
142 \end_header
143
144 \begin_body
145
146 \begin_layout Title
147 Additional \SpecialChar LyX
148  Features
149 \end_layout
150
151 \begin_layout Subtitle
152 Version 2.
153 \change_deleted 630872221 1622909155
154 3
155 \change_inserted 630872221 1622909155
156 4
157 \change_unchanged
158 .x
159 \end_layout
160
161 \begin_layout Author
162 by the \SpecialChar LyX
163  Team
164 \begin_inset Foot
165 status collapsed
166
167 \begin_layout Plain Layout
168 \noindent
169 Principal maintainer of this file is
170 \noun on
171  Richard Kimberly Heck
172 \noun default
173 .
174  If you have comments or error corrections, please send them to the \SpecialChar LyX
175  Documentati
176 on mailing list, 
177 \begin_inset Flex Code
178 status collapsed
179
180 \begin_layout Plain Layout
181 <lyx-docs@lists.lyx.org>
182 \end_layout
183
184 \end_inset
185
186 .
187 \end_layout
188
189 \end_inset
190
191
192 \end_layout
193
194 \begin_layout Standard
195 \begin_inset CommandInset toc
196 LatexCommand tableofcontents
197
198 \end_inset
199
200
201 \end_layout
202
203 \begin_layout Chapter
204 Introduction
205 \end_layout
206
207 \begin_layout Standard
208 This manual is essentially Part II of the 
209 \emph on
210 User's Guide\SpecialChar endofsentence
211
212 \emph default
213  The reason for separating the two documents is simple: the 
214 \emph on
215 User's Guide
216 \emph default
217  is already quite lengthy, and it contains information on all of the basic
218  features one needs to know in order to prepare most documents.
219  However, the \SpecialChar LyX
220  Team has worked to make \SpecialChar LyX
221  extensible through various configuration
222  files and external packages.
223  That means that if you want to support the Fizzwizzle \SpecialChar LaTeX
224  package, you can
225  create a layout file (or module) for it without having to alter \SpecialChar LyX
226  itself.
227  We've already had contributions of several new features this way, and some
228  of them are documented here.
229  There are also some more `advanced' features, such as how to control the
230  presentation of bibliographies and how to work with multi-part documents,
231  that are not covered in the 
232 \emph on
233 User's Guide
234 \emph default
235  and are discussed here.
236 \end_layout
237
238 \begin_layout Standard
239 This manual also documents some special features, like fax support
240 \change_deleted 244031559 1603802929
241 ,
242 \change_inserted 244031559 1603802931
243  and
244 \change_unchanged
245  version control
246 \change_deleted 244031559 1603802954
247 , and SGML support
248 \change_unchanged
249 , which require additional software to work properly.
250  There is also a chapter on \SpecialChar LyX
251 's support for HTML.
252  And lastly, there's a chapter of \SpecialChar LaTeX
253  tools and tips, things you can use to
254  spruce up your documents by directly using the powerful features of \SpecialChar LaTeX
255 .
256  After all, \SpecialChar LyX
257  
258 \emph on
259 is
260 \emph default
261  only WYSIWYM and will only ever interface to some, not all, \SpecialChar LaTeX
262  features.
263 \end_layout
264
265 \begin_layout Standard
266 If you haven't read the 
267 \emph on
268 Introduction
269 \emph default
270  yet, you are definitely in the wrong manual.
271  The 
272 \emph on
273 Introduction
274 \emph default
275  is the first place to go, since it describes the notation and format of
276  all of the manuals.
277  You should also be thoroughly familiar with the 
278 \emph on
279 User's Guide
280 \emph default
281  and all of the basic features of \SpecialChar LyX
282  before attempting to read this one.
283 \end_layout
284
285 \begin_layout Standard
286 Since many of the topics in this manual depend heavily on \SpecialChar LyX
287 's interaction
288  with \SpecialChar LaTeX
289 , this first chapter covers the inner workings of \SpecialChar LyX
290  and how to direct
291  \SpecialChar LyX
292  to generate exactly the \SpecialChar LaTeX
293  code you want.
294  It is obviously for more seasoned \SpecialChar LyX
295  users.
296 \end_layout
297
298 \begin_layout Chapter
299 \SpecialChar LyX
300  and \SpecialChar LaTeX
301
302 \end_layout
303
304 \begin_layout Section
305 How \SpecialChar LyX
306  Uses \SpecialChar LaTeX
307
308 \end_layout
309
310 \begin_layout Standard
311 This chapter is for both \SpecialChar TeX
312 -nicians and the \SpecialChar LaTeX
313 -curious.
314  In it, we'll explain how \SpecialChar LyX
315  and \SpecialChar LaTeX
316  work together to produce printable output.
317  This is the only place in any of the manuals where we assume you know something
318  about \SpecialChar LaTeX
319 .
320 \end_layout
321
322 \begin_layout Standard
323 At one time, \SpecialChar LyX
324  was called a 
325 \begin_inset Quotes eld
326 \end_inset
327
328 WYSIWYM frontend to \SpecialChar LaTeX
329 ,
330 \begin_inset Quotes erd
331 \end_inset
332
333  but that's no longer true.
334  There are frontends to \SpecialChar LaTeX
335  out there.
336 \begin_inset Foot
337 status collapsed
338
339 \begin_layout Plain Layout
340 Some familar ones are \SpecialChar TeX
341 maker and kile, on Linux, and \SpecialChar TeX
342 shop, OSX.
343  There are also the \SpecialChar LaTeX
344  modes for vi and emacs, of course.
345 \end_layout
346
347 \end_inset
348
349  These are basically text editors with the ability to run \SpecialChar LaTeX
350  and mark any
351  errors in the file you're editing.
352  Although \SpecialChar LyX
353  
354 \emph on
355 is
356 \emph default
357  an editor, and it 
358 \emph on
359 does
360 \emph default
361  run \SpecialChar LaTeX
362 , and it also indicates errors in the file, it also does much, much
363  more.
364  For one thing, you don't need to know \SpecialChar LaTeX
365  to use \SpecialChar LyX
366  effectively.
367  And \SpecialChar LyX
368  has added its own extensions to \SpecialChar LaTeX
369 .
370  Try the following sometime: select 
371 \begin_inset Flex Noun
372 status collapsed
373
374 \begin_layout Plain Layout
375 Export\SpecialChar menuseparator
376 LaTeX
377 \end_layout
378
379 \end_inset
380
381  from the 
382 \begin_inset Flex Noun
383 status collapsed
384
385 \begin_layout Plain Layout
386 File
387 \end_layout
388
389 \end_inset
390
391  menu (or 
392 \begin_inset Flex Noun
393 status collapsed
394
395 \begin_layout Plain Layout
396 View\SpecialChar menuseparator
397 Source
398 \begin_inset space ~
399 \end_inset
400
401 Pane
402 \end_layout
403
404 \end_inset
405
406 ), then look at the preamble of the resulting 
407 \begin_inset Flex Code
408 status collapsed
409
410 \begin_layout Plain Layout
411 .tex
412 \end_layout
413
414 \end_inset
415
416  file.
417  You'll notice a variety of new macros defined specifically by \SpecialChar LyX
418 .
419  These macros are defined automatically, according to the features you use
420  in the document.
421 \end_layout
422
423 \begin_layout Standard
424 There are several commands that automatically invoke \SpecialChar LaTeX
425 .
426  They are:
427 \end_layout
428
429 \begin_layout Itemize
430 \begin_inset Flex Noun
431 status collapsed
432
433 \begin_layout Plain Layout
434 Document\SpecialChar menuseparator
435 View
436 \end_layout
437
438 \end_inset
439
440
441 \end_layout
442
443 \begin_layout Itemize
444 \begin_inset Flex Noun
445 status collapsed
446
447 \begin_layout Plain Layout
448 Document\SpecialChar menuseparator
449 Update
450 \end_layout
451
452 \end_inset
453
454
455 \end_layout
456
457 \begin_layout Standard
458 They will only invoke \SpecialChar LaTeX
459  if the file has changed since the last time \SpecialChar LaTeX
460  was
461  run.
462  
463 \end_layout
464
465 \begin_layout Standard
466 When \SpecialChar LyX
467  runs \SpecialChar LaTeX
468  on the file you're editing, it performs these steps:
469 \end_layout
470
471 \begin_layout Enumerate
472 Convert the document to \SpecialChar LaTeX
473  and save to a file with the extension 
474 \begin_inset Flex Code
475 status collapsed
476
477 \begin_layout Plain Layout
478 .tex
479 \end_layout
480
481 \end_inset
482
483  in place of 
484 \begin_inset Flex Code
485 status collapsed
486
487 \begin_layout Plain Layout
488 .lyx
489 \end_layout
490
491 \end_inset
492
493 .
494 \end_layout
495
496 \begin_layout Enumerate
497 Run \SpecialChar LaTeX
498  on the 
499 \begin_inset Flex Code
500 status collapsed
501
502 \begin_layout Plain Layout
503 .tex
504 \end_layout
505
506 \end_inset
507
508  file (maybe several times), and run any other commands (such as 
509 \begin_inset Flex Code
510 status collapsed
511
512 \begin_layout Plain Layout
513 bibtex
514 \end_layout
515
516 \end_inset
517
518  or 
519 \begin_inset Flex Code
520 status collapsed
521
522 \begin_layout Plain Layout
523 makeindex
524 \end_layout
525
526 \end_inset
527
528 ) needed to compile the \SpecialChar LaTeX
529  file.
530 \end_layout
531
532 \begin_layout Enumerate
533 If there are any errors, show the error log.
534 \end_layout
535
536 \begin_layout Standard
537 If you have run \SpecialChar LaTeX
538  using 
539 \begin_inset Flex Noun
540 status collapsed
541
542 \begin_layout Plain Layout
543 View\SpecialChar menuseparator
544 DVI
545 \end_layout
546
547 \end_inset
548
549 , \SpecialChar LyX
550  then runs a DVI viewer to display the DVI-file.
551  If you have used 
552 \begin_inset Flex Noun
553 status collapsed
554
555 \begin_layout Plain Layout
556 View\SpecialChar menuseparator
557 PostScript
558 \end_layout
559
560 \end_inset
561
562 , \SpecialChar LyX
563  performs further steps:
564 \end_layout
565
566 \begin_layout Enumerate
567 Run 
568 \begin_inset Flex Code
569 status collapsed
570
571 \begin_layout Plain Layout
572 dvips
573 \end_layout
574
575 \end_inset
576
577  to convert the DVI file to PostScript.
578 \end_layout
579
580 \begin_layout Enumerate
581 Run a PostScript viewer, such as 
582 \begin_inset Flex Code
583 status collapsed
584
585 \begin_layout Plain Layout
586 ghostview
587 \end_layout
588
589 \end_inset
590
591 , to display the PostScript file.
592 \end_layout
593
594 \begin_layout Standard
595 \SpecialChar LyX
596  does similar things when viewing, or exporting, other formats.
597 \end_layout
598
599 \begin_layout Section
600 Translating \SpecialChar LaTeX
601  files into \SpecialChar LyX
602
603 \end_layout
604
605 \begin_layout Standard
606 You can import a \SpecialChar LaTeX
607  file into \SpecialChar LyX
608  by using the 
609 \begin_inset Flex Noun
610 status collapsed
611
612 \begin_layout Plain Layout
613 File\SpecialChar menuseparator
614 Import\SpecialChar menuseparator
615 LaTeX
616 \end_layout
617
618 \end_inset
619
620  command in \SpecialChar LyX
621 .
622  This will call a program named 
623 \begin_inset Flex Code
624 status collapsed
625
626 \begin_layout Plain Layout
627 tex2lyx
628 \end_layout
629
630 \end_inset
631
632  which will create a file 
633 \begin_inset Flex Code
634 status collapsed
635
636 \begin_layout Plain Layout
637 foo.lyx
638 \end_layout
639
640 \end_inset
641
642  from the file 
643 \begin_inset Flex Code
644 status collapsed
645
646 \begin_layout Plain Layout
647 foo.tex
648 \end_layout
649
650 \end_inset
651
652 .
653  \SpecialChar LyX
654  will then open that file.
655 \begin_inset Foot
656 status collapsed
657
658 \begin_layout Plain Layout
659 \begin_inset Flex Code
660 status collapsed
661
662 \begin_layout Plain Layout
663 tex2lyx
664 \end_layout
665
666 \end_inset
667
668  can also be run from the command line, of course.
669 \end_layout
670
671 \end_inset
672
673
674 \end_layout
675
676 \begin_layout Standard
677 \begin_inset Flex Code
678 status collapsed
679
680 \begin_layout Plain Layout
681 tex2lyx
682 \end_layout
683
684 \end_inset
685
686  will translate most legal \SpecialChar LaTeX
687 , but not everything.
688  It will put things it doesn't understand into \SpecialChar TeX
689  code, so after translating
690  a file with 
691 \begin_inset Flex Code
692 status collapsed
693
694 \begin_layout Plain Layout
695 tex2lyx
696 \end_layout
697
698 \end_inset
699
700 , you can look for \SpecialChar TeX
701  code and hand-edit it until it looks right.
702 \end_layout
703
704 \begin_layout Standard
705 If you don't know what \SpecialChar TeX
706  code is, read the next section.
707 \end_layout
708
709 \begin_layout Section
710 \begin_inset CommandInset label
711 LatexCommand label
712 name "sec:Inserting-TeX-Code"
713
714 \end_inset
715
716 Inserting \SpecialChar TeX
717  Code into \SpecialChar LyX
718  Documents 
719 \end_layout
720
721 \begin_layout Standard
722 Anything you can do in \SpecialChar LaTeX
723  you can do in \SpecialChar LyX
724 , for a very simple reason: You can
725  always insert \SpecialChar TeX
726  code into any \SpecialChar LyX
727  document.
728  \SpecialChar LyX
729  cannot, and will never be able to, display every possible \SpecialChar LaTeX
730  construct.
731  If ever you need to insert \SpecialChar LaTeX
732  commands into your \SpecialChar LyX
733  document, you can use the
734  
735 \begin_inset Flex Code
736 status collapsed
737
738 \begin_layout Plain Layout
739 \SpecialChar TeX
740  Code
741 \end_layout
742
743 \end_inset
744
745  box, which you can insert into your document with 
746 \begin_inset Flex Noun
747 status collapsed
748
749 \begin_layout Plain Layout
750 Insert\SpecialChar menuseparator
751
752 \family sans
753 TeX
754 \family default
755  Code
756 \end_layout
757
758 \end_inset
759
760  or the keyboard shortcut 
761 \begin_inset Info
762 type  "shortcut"
763 arg   "ert-insert"
764 \end_inset
765
766 .
767 \end_layout
768
769 \begin_layout Standard
770 Here's an example of inserting \SpecialChar LaTeX
771  commands in a \SpecialChar LyX
772  document.
773  The code looks like this:
774 \end_layout
775
776 \begin_layout LyX-Code
777
778 \backslash
779 begin{tabular}{ll}
780 \begin_inset Newline newline
781 \end_inset
782
783
784 \backslash
785 begin{minipage}{5cm}
786 \begin_inset Newline newline
787 \end_inset
788
789 This is an example of a minipage environment.
790  You 
791 \begin_inset Newline newline
792 \end_inset
793
794 can put nearly everything in it, even (non-floating) 
795 \begin_inset Newline newline
796 \end_inset
797
798 figures and tables.
799  
800 \begin_inset Newline newline
801 \end_inset
802
803
804 \backslash
805 end{minipage}
806 \begin_inset Newline newline
807 \end_inset
808
809 &
810 \begin_inset Newline newline
811 \end_inset
812
813
814 \backslash
815 begin{minipage}{5cm}
816 \begin_inset Newline newline
817 \end_inset
818
819
820 \backslash
821 begin{verbatim}
822 \begin_inset Newline newline
823 \end_inset
824
825
826 \backslash
827 begin{minipage}{5cm}
828 \begin_inset Newline newline
829 \end_inset
830
831 This ...
832  
833 \begin_inset Newline newline
834 \end_inset
835
836
837 \backslash
838 end{minipage}
839 \begin_inset Newline newline
840 \end_inset
841
842
843 \backslash
844 end{verbatim}
845 \begin_inset Newline newline
846 \end_inset
847
848
849 \backslash
850 end{minipage}
851 \begin_inset Newline newline
852 \end_inset
853
854
855 \backslash
856 end{tabular}
857 \end_layout
858
859 \begin_layout LyX-Code
860
861 \end_layout
862
863 \begin_layout Standard
864 The 
865 \begin_inset Flex Code
866 status collapsed
867
868 \begin_layout Plain Layout
869 \SpecialChar TeX
870  Code
871 \end_layout
872
873 \end_inset
874
875  box containing this text is directly after this paragraph.
876  Those of you reading the manual in \SpecialChar LyX
877  will only see the \SpecialChar TeX
878  code inset.
879  Those reading a printed version of the manuals will see the actual results:
880 \begin_inset VSpace bigskip
881 \end_inset
882
883
884 \end_layout
885
886 \begin_layout Standard
887 \begin_inset ERT
888 status open
889
890 \begin_layout Plain Layout
891
892
893 \backslash
894 begin{tabular}{ll}
895 \end_layout
896
897 \begin_layout Plain Layout
898
899
900 \backslash
901 begin{minipage}{5cm}
902 \end_layout
903
904 \begin_layout Plain Layout
905
906 This is an example of a minipage environment.
907  You can put nearly everything in it, even (non-floating) figures and tables.
908  
909 \end_layout
910
911 \begin_layout Plain Layout
912
913
914 \backslash
915 end{minipage}
916 \end_layout
917
918 \begin_layout Plain Layout
919
920 &
921 \end_layout
922
923 \begin_layout Plain Layout
924
925
926 \backslash
927 begin{minipage}{5cm}
928 \end_layout
929
930 \begin_layout Plain Layout
931
932
933 \backslash
934 begin{verbatim}
935 \end_layout
936
937 \begin_layout Plain Layout
938
939
940 \backslash
941 begin{minipage}{5cm}
942 \end_layout
943
944 \begin_layout Plain Layout
945
946 This ...
947  
948 \end_layout
949
950 \begin_layout Plain Layout
951
952
953 \backslash
954 end{minipage}
955 \end_layout
956
957 \begin_layout Plain Layout
958
959
960 \backslash
961 end{verbatim}
962 \end_layout
963
964 \begin_layout Plain Layout
965
966
967 \backslash
968 end{minipage}
969 \end_layout
970
971 \begin_layout Plain Layout
972
973
974 \backslash
975 end{tabular}
976 \end_layout
977
978 \end_inset
979
980
981 \begin_inset VSpace bigskip
982 \end_inset
983
984
985 \end_layout
986
987 \begin_layout Standard
988 In addition to using \SpecialChar TeX
989  code, you can also create a separate file containing
990  some complex \SpecialChar LaTeX
991  structure and then use 
992 \begin_inset Flex Noun
993 status collapsed
994
995 \begin_layout Plain Layout
996 Insert\SpecialChar menuseparator
997 Child
998 \begin_inset space ~
999 \end_inset
1000
1001 Document
1002 \end_layout
1003
1004 \end_inset
1005
1006  to include your file (you should select the type 
1007 \begin_inset Flex Code
1008 status collapsed
1009
1010 \begin_layout Plain Layout
1011 Input
1012 \end_layout
1013
1014 \end_inset
1015
1016 ).
1017  We recommend that you only do this if you have a 
1018 \begin_inset Flex Code
1019 status collapsed
1020
1021 \begin_layout Plain Layout
1022 .tex
1023 \end_layout
1024
1025 \end_inset
1026
1027  file which you 
1028 \emph on
1029 know
1030 \emph default
1031  works already.
1032  Otherwise, you'll have a big job tracking down \SpecialChar LaTeX
1033  errors.
1034 \end_layout
1035
1036 \begin_layout Standard
1037 There are a few last points to emphasize:
1038 \end_layout
1039
1040 \begin_layout Itemize
1041 \SpecialChar LyX
1042  
1043 \emph on
1044 does not
1045 \emph default
1046  check if your \SpecialChar LaTeX
1047  code is correct.
1048 \end_layout
1049
1050 \begin_layout Itemize
1051 Beware of reinventing the wheel.
1052 \end_layout
1053
1054 \begin_layout Standard
1055 On that last point, \SpecialChar LyX
1056  does have quite a few features tucked into it, and
1057  more are coming.
1058  Be sure to check the manuals to make sure that \SpecialChar LyX
1059  doesn't have such-and-such
1060  feature before you decide you have to do it by hand.
1061  Moreover, there are numerous \SpecialChar LaTeX
1062  packages out there to do all sorts of things,
1063  from labels to envelopes to fancy multipage tables.
1064  Check out 
1065 \change_inserted 244031559 1603815732
1066
1067 \begin_inset CommandInset href
1068 LatexCommand href
1069 name "CTAN"
1070 target "https://www.ctan.org/"
1071 literal "false"
1072
1073 \end_inset
1074
1075
1076 \change_deleted 244031559 1603815732
1077
1078 \begin_inset CommandInset href
1079 LatexCommand href
1080 name "CTAN"
1081 target "http://www.ctan.org/"
1082 literal "false"
1083
1084 \end_inset
1085
1086
1087 \change_unchanged
1088  for details.
1089 \end_layout
1090
1091 \begin_layout Standard
1092 If you do need to do some wild and fancy things within your document, be
1093  sure to check out a good \SpecialChar LaTeX
1094  book for assistance.
1095  There are a number of them listed in the bibliography of the 
1096 \emph on
1097 User's Guide
1098 \emph default
1099 .
1100 \end_layout
1101
1102 \begin_layout Section
1103 \SpecialChar LyX
1104  and the \SpecialChar LaTeX
1105  Preamble
1106 \end_layout
1107
1108 \begin_layout Subsection
1109 About the \SpecialChar LaTeX
1110  Preamble
1111 \end_layout
1112
1113 \begin_layout Standard
1114 If you already know \SpecialChar LaTeX
1115 , there is no need to explain here what the preamble
1116  is good for.
1117  If you don't, the following will give you some ideas—we recommend again
1118  that you consult a \SpecialChar LaTeX
1119  book for further information.
1120  In any case, you should read the points below, because they explain what
1121  you can do and what you don't need to do in the \SpecialChar LaTeX
1122  preamble of a \SpecialChar LyX
1123  document.
1124 \end_layout
1125
1126 \begin_layout Standard
1127 The \SpecialChar LaTeX
1128  preamble comes at the very beginning of a document, 
1129 \emph on
1130 before
1131 \emph default
1132  the text.
1133  It serves to:
1134 \end_layout
1135
1136 \begin_layout Itemize
1137 Declare the document class.
1138  
1139 \begin_inset Newline newline
1140 \end_inset
1141
1142 \SpecialChar LyX
1143  already does this for you.
1144  If you're a seasoned \SpecialChar LaTeX
1145 -nician, and you have a custom document class you
1146  want to use, check out the 
1147 \emph on
1148 Customization Manual
1149 \emph default
1150  for information on how to make \SpecialChar LyX
1151  interface to it.
1152 \end_layout
1153
1154 \begin_layout Itemize
1155 Declare the usage of packages.
1156  
1157 \begin_inset Newline newline
1158 \end_inset
1159
1160 \SpecialChar LaTeX
1161  packages provide special commands, which are only available within a document
1162  when the package has been declared in the preamble.
1163  In addition to providing special commands, the inclusion of a package can
1164  change the document.
1165  For example, the package 
1166 \begin_inset Flex Code
1167 status collapsed
1168
1169 \begin_layout Plain Layout
1170 indentfirst
1171 \end_layout
1172
1173 \end_inset
1174
1175  forces all paragraphs to be indented.
1176  There are other packages for labels, envelopes, margins, etc.
1177  
1178 \end_layout
1179
1180 \begin_layout Itemize
1181 Set counters, variables, lengths and widths.
1182  
1183 \begin_inset Newline newline
1184 \end_inset
1185
1186 There are several \SpecialChar LaTeX
1187  counters and variables that 
1188 \emph on
1189 must
1190 \emph default
1191  be set globally from within the preamble in order to have the desired effect.
1192  (There are variables that you can set and reset inside the document, too.)
1193  Margins are a good example of something that must be set in the preamble.
1194  Another example is the label format for lists.
1195  You can actually set these just about anywhere, but it's best to do it
1196  just once, inside the preamble.
1197 \end_layout
1198
1199 \begin_layout Itemize
1200 Declare user defined commands (with 
1201 \begin_inset Flex Code
1202 status collapsed
1203
1204 \begin_layout Plain Layout
1205
1206 \backslash
1207 newcommand
1208 \end_layout
1209
1210 \end_inset
1211
1212  or 
1213 \begin_inset Flex Code
1214 status collapsed
1215
1216 \begin_layout Plain Layout
1217
1218 \backslash
1219 renewcommand
1220 \end_layout
1221
1222 \end_inset
1223
1224 ).
1225 \begin_inset Newline newline
1226 \end_inset
1227
1228 These are abbreviations for \SpecialChar LaTeX
1229  commands which appear very often inside a document.
1230  Although the preamble is a good place to declare such commands, they 
1231 \emph on
1232 can
1233 \emph default
1234  be declared anywhere (before they are used for the first time, of course).
1235  This can be useful if there is a lot of raw \SpecialChar LaTeX
1236  code in your document, which
1237  normally should not be the case.
1238 \end_layout
1239
1240 \begin_layout Standard
1241 \SpecialChar LyX
1242  adds its own set of definitions to the preamble of the 
1243 \begin_inset Flex Code
1244 status collapsed
1245
1246 \begin_layout Plain Layout
1247 .tex
1248 \end_layout
1249
1250 \end_inset
1251
1252  file it produces.
1253  This makes \SpecialChar LaTeX
1254  files generated by \SpecialChar LyX
1255  portable.
1256 \end_layout
1257
1258 \begin_layout Subsection
1259 Changing the Preamble
1260 \end_layout
1261
1262 \begin_layout Standard
1263 The commands which \SpecialChar LyX
1264  adds to the preamble of a \SpecialChar LaTeX
1265  file are fixed; you can't
1266  change them without patching \SpecialChar LyX
1267  itself.
1268  You can, however, add your own stuff to the preamble by selecting 
1269 \begin_inset Flex Noun
1270 status collapsed
1271
1272 \begin_layout Plain Layout
1273 \SpecialChar LaTeX
1274
1275 \begin_inset space ~
1276 \end_inset
1277
1278 Preamble
1279 \end_layout
1280
1281 \end_inset
1282
1283  in the 
1284 \begin_inset Flex Noun
1285 status collapsed
1286
1287 \begin_layout Plain Layout
1288 Document\SpecialChar menuseparator
1289 Settings
1290 \end_layout
1291
1292 \end_inset
1293
1294  dialog.
1295  \SpecialChar LyX
1296  adds anything in the 
1297 \begin_inset Flex Noun
1298 status collapsed
1299
1300 \begin_layout Plain Layout
1301 Preamble
1302 \end_layout
1303
1304 \end_inset
1305
1306  dialog to its own built-in preamble.
1307  Before adding your own declarations in the preamble, you should make sure
1308  that \SpecialChar LyX
1309  doesn't already support what you want to do.
1310  (Remember what we said about reinventing the wheel?) Also, 
1311 \emph on
1312 make sure your preamble code is correct
1313 \emph default
1314 .
1315  \SpecialChar LyX
1316  doesn't check it for you.
1317  If there is an error, you're likely to get an error like 
1318 \begin_inset Quotes eld
1319 \end_inset
1320
1321
1322 \begin_inset Flex Code
1323 status collapsed
1324
1325 \begin_layout Plain Layout
1326 Missing 
1327 \backslash
1328 begin{document}
1329 \end_layout
1330
1331 \end_inset
1332
1333
1334 \begin_inset Quotes erd
1335 \end_inset
1336
1337 .
1338  If you see this error, check your preamble.
1339 \end_layout
1340
1341 \begin_layout Subsection
1342 Examples
1343 \end_layout
1344
1345 \begin_layout Standard
1346 Here are some examples of what you can add to a preamble, and what they
1347  do.
1348 \end_layout
1349
1350 \begin_layout Subsubsection
1351 Example #1: Offsets
1352 \end_layout
1353
1354 \begin_layout Standard
1355 There are two variables under \SpecialChar LaTeX
1356  that control page position: 
1357 \begin_inset Flex Code
1358 status collapsed
1359
1360 \begin_layout Plain Layout
1361
1362 \backslash
1363 hoffset
1364 \end_layout
1365
1366 \end_inset
1367
1368  and 
1369 \begin_inset Flex Code
1370 status collapsed
1371
1372 \begin_layout Plain Layout
1373
1374 \backslash
1375 voffset
1376 \end_layout
1377
1378 \end_inset
1379
1380 .
1381  Their names should be self-explanatory.
1382  These variables are useful if you think for a moment about computer labels.
1383  Sometimes, the size of a print medium and the area of the medium that you
1384  can actually print on aren't the same.
1385  This is where 
1386 \begin_inset Flex Code
1387 status collapsed
1388
1389 \begin_layout Plain Layout
1390
1391 \backslash
1392 hoffset
1393 \end_layout
1394
1395 \end_inset
1396
1397  and 
1398 \begin_inset Flex Code
1399 status collapsed
1400
1401 \begin_layout Plain Layout
1402
1403 \backslash
1404 voffset
1405 \end_layout
1406
1407 \end_inset
1408
1409  come in.
1410 \end_layout
1411
1412 \begin_layout Standard
1413 The default values for 
1414 \begin_inset Flex Code
1415 status collapsed
1416
1417 \begin_layout Plain Layout
1418
1419 \backslash
1420 hoffset
1421 \end_layout
1422
1423 \end_inset
1424
1425  and 
1426 \begin_inset Flex Code
1427 status collapsed
1428
1429 \begin_layout Plain Layout
1430
1431 \backslash
1432 voffset
1433 \end_layout
1434
1435 \end_inset
1436
1437  are both 0
1438 \begin_inset space \thinspace{}
1439 \end_inset
1440
1441 points, i.
1442 \begin_inset space \thinspace{}
1443 \end_inset
1444
1445 e.
1446 \begin_inset space \space{}
1447 \end_inset
1448
1449 the page isn't shifted.
1450  Unfortunately, some DVI drivers always seem to shift the page.
1451  We have no idea why, or why the sysadmin hasn't fixed such behavior.
1452  If you're using \SpecialChar LyX
1453  on a system that you don't personally maintain, and your
1454  sysadmin is a doofus, 
1455 \begin_inset Flex Code
1456 status collapsed
1457
1458 \begin_layout Plain Layout
1459
1460 \backslash
1461 hoffset
1462 \end_layout
1463
1464 \end_inset
1465
1466  and 
1467 \begin_inset Flex Code
1468 status collapsed
1469
1470 \begin_layout Plain Layout
1471
1472 \backslash
1473 voffset
1474 \end_layout
1475
1476 \end_inset
1477
1478  can save the day.
1479  Suppose your left and top margins are always 0.5
1480 \begin_inset space \thinspace{}
1481 \end_inset
1482
1483 inches too big.
1484  You can add this to the preamble:
1485 \end_layout
1486
1487 \begin_layout LyX-Code
1488
1489 \backslash
1490 setlength{
1491 \backslash
1492 hoffset}{-0.5 in}
1493 \end_layout
1494
1495 \begin_layout LyX-Code
1496
1497 \backslash
1498 setlength{
1499 \backslash
1500 voffset}{-0.5 in}
1501 \end_layout
1502
1503 \begin_layout Standard
1504 and your margins should now be correct.
1505 \end_layout
1506
1507 \begin_layout Subsubsection
1508 Example #2: Labels
1509 \end_layout
1510
1511 \begin_layout Standard
1512 Speaking of labels, suppose you wanted to print out a bunch of address labels.
1513  There's a rather nice package, available at your nearest CTAN archive,
1514  for printing sheets of labels: 
1515 \begin_inset Flex Code
1516 status collapsed
1517
1518 \begin_layout Plain Layout
1519 labels.sty
1520 \end_layout
1521
1522 \end_inset
1523
1524 .
1525  Now, your system may not have this package installed by default.
1526  We leave that up to you to check.
1527  You'll also want to read the documentation for it; we're not going to do
1528  that for you.
1529  Since this is an example, however, we'll give you an example of how you
1530  use this package.
1531 \end_layout
1532
1533 \begin_layout Standard
1534 First, make sure you're using the 
1535 \begin_inset Flex Code
1536 status collapsed
1537
1538 \begin_layout Plain Layout
1539 article
1540 \end_layout
1541
1542 \end_inset
1543
1544  document class.
1545  Next, you need to put the following in your preamble:
1546 \end_layout
1547
1548 \begin_layout LyX-Code
1549
1550 \backslash
1551 usepackage{labels}
1552 \end_layout
1553
1554 \begin_layout LyX-Code
1555
1556 \backslash
1557 LabelCols=3
1558 \end_layout
1559
1560 \begin_layout LyX-Code
1561
1562 \backslash
1563 LabelRows=7
1564 \end_layout
1565
1566 \begin_layout LyX-Code
1567
1568 \backslash
1569 LeftBorder=8mm
1570 \end_layout
1571
1572 \begin_layout LyX-Code
1573
1574 \backslash
1575 RightBorder=8mm
1576 \end_layout
1577
1578 \begin_layout LyX-Code
1579
1580 \backslash
1581 TopBorder=9mm
1582 \end_layout
1583
1584 \begin_layout LyX-Code
1585
1586 \backslash
1587 BottomBorder=2mm
1588 \end_layout
1589
1590 \begin_layout Standard
1591 This sets things up for Avery label sheets, stock #5360.
1592  You're now ready to print labels, but you'll need to insert \SpecialChar LaTeX
1593  code, placing
1594  the commands 
1595 \begin_inset Flex Code
1596 status collapsed
1597
1598 \begin_layout Plain Layout
1599
1600 \backslash
1601 begin{labels}
1602 \end_layout
1603
1604 \end_inset
1605
1606  and 
1607 \begin_inset Flex Code
1608 status collapsed
1609
1610 \begin_layout Plain Layout
1611
1612 \backslash
1613 end{labels}
1614 \end_layout
1615
1616 \end_inset
1617
1618  around each label text.
1619  This and other special features of 
1620 \begin_inset Flex Code
1621 status collapsed
1622
1623 \begin_layout Plain Layout
1624 labels.sty
1625 \end_layout
1626
1627 \end_inset
1628
1629  are explained in its documentation.
1630 \end_layout
1631
1632 \begin_layout Standard
1633 Someday, someone may write a \SpecialChar LyX
1634  layout file to support this package directly.
1635  Maybe that someone is you.
1636 \end_layout
1637
1638 \begin_layout Subsubsection
1639 Example #3: Paragraph Indentation
1640 \end_layout
1641
1642 \begin_layout Standard
1643 Americans are trained to indent the first line of 
1644 \emph on
1645 every
1646 \emph default
1647  paragraph.
1648  As with all of their other weird quirks, most Americans will whine and
1649  moan until they can have their way and indent the first line of all paragraphs.
1650  (Yes, we're joking.
1651  (We are?) 
1652 \emph on
1653 Yeah
1654 \emph default
1655 , we are.)
1656 \end_layout
1657
1658 \begin_layout Standard
1659 Of course, this behavior isn't standard typography.
1660  In books, you typically only indent the first line of a paragraph 
1661 \emph on
1662 if
1663 \emph default
1664  it follows another one.
1665  The idea behind indenting the first line of a paragraph is to distinguish
1666  neighboring paragraphs from one another.
1667  If there is no previous paragraph—for example, if it follows a figure or
1668  is the first paragraph in a section—then there is no need for indentation.
1669  
1670 \end_layout
1671
1672 \begin_layout Standard
1673 If you're a typical American (we're still joking!), though, you don't care
1674  about such esoteric things; you want your indentation! Add this to the
1675  preamble:
1676 \end_layout
1677
1678 \begin_layout LyX-Code
1679
1680 \backslash
1681 usepackage{indentfirst}
1682 \end_layout
1683
1684 \begin_layout Standard
1685 If your \SpecialChar TeX
1686  distribution isn't braindead, you'll have this package, and all
1687  of your paragraphs will get the indentation the Founding Fathers intended
1688  they should have.
1689 \end_layout
1690
1691 \begin_layout Subsubsection
1692 Example #4: This Document
1693 \end_layout
1694
1695 \begin_layout Standard
1696 You can also check out the preamble of this document to get an idea of some
1697  of the advanced things you can do.
1698 \end_layout
1699
1700 \begin_layout Section
1701 \SpecialChar LyX
1702  and \SpecialChar LaTeX
1703  Errors
1704 \end_layout
1705
1706 \begin_layout Standard
1707 When \SpecialChar LyX
1708  calls \SpecialChar LaTeX
1709 , it tells \SpecialChar LaTeX
1710  to blithely ignore any errors and keep going.
1711  It then uses the logfile from the \SpecialChar LaTeX
1712  run to do a post-mortem.
1713  After analyzing the logfile, \SpecialChar LyX
1714  displays a dialog listing the errors.
1715  Clicking on any one of them will take you to the position in your \SpecialChar LyX
1716  file
1717  where the error occurred.
1718 \begin_inset Foot
1719 status collapsed
1720
1721 \begin_layout Plain Layout
1722 Well, usually.
1723  Analyzing the logfile is a tough job, and \SpecialChar LyX
1724  doesn't always go to the right
1725  line.
1726  There are also cases where \SpecialChar LaTeX
1727  reports the error on one line, but the actual
1728  error is earlier.
1729  This is not unlike forgetting a closing brace in a program: You'll get
1730  an error, but only later.
1731 \end_layout
1732
1733 \end_inset
1734
1735
1736 \end_layout
1737
1738 \begin_layout Standard
1739 Some folks also like to look at the log file directly: It is available from
1740  
1741 \begin_inset Flex Noun
1742 status collapsed
1743
1744 \begin_layout Plain Layout
1745 Document\SpecialChar menuseparator
1746 LaTeX
1747 \begin_inset space ~
1748 \end_inset
1749
1750 Log
1751 \end_layout
1752
1753 \end_inset
1754
1755 .
1756  There are some fairly common error messages and warnings.
1757  We'll cover those here.
1758  You should look at a good \SpecialChar LaTeX
1759  book for a complete listing.
1760 \end_layout
1761
1762 \begin_layout Itemize
1763 \begin_inset Flex Code
1764 status collapsed
1765
1766 \begin_layout Plain Layout
1767 LaTeX Warning
1768 \end_layout
1769
1770 \end_inset
1771
1772
1773 \begin_inset Newline newline
1774 \end_inset
1775
1776 Anything beginning with these words is a warning message for the purpose
1777  of 
1778 \begin_inset Quotes eld
1779 \end_inset
1780
1781 debugging
1782 \begin_inset Quotes erd
1783 \end_inset
1784
1785  the \SpecialChar LaTeX
1786  code itself.
1787  You'll get messages like this if you added or changed cross-references
1788  or bibliography entries, in which case, \SpecialChar LaTeX
1789  is trying to tell you that you
1790  need to make another run.
1791  You can by-and-large ignore these.
1792 \end_layout
1793
1794 \begin_layout Itemize
1795 \begin_inset Flex Code
1796 status collapsed
1797
1798 \begin_layout Plain Layout
1799 LaTeX Font Warning
1800 \end_layout
1801
1802 \end_inset
1803
1804
1805 \begin_inset Newline newline
1806 \end_inset
1807
1808 Another warning message, this time about fonts which \SpecialChar LaTeX
1809  couldn't find.
1810  The rest of the message will often say something about a replacement font
1811  that \SpecialChar LaTeX
1812  used.
1813  You can safely ignore these, too.
1814 \end_layout
1815
1816 \begin_layout Itemize
1817 \begin_inset Flex Code
1818 status collapsed
1819
1820 \begin_layout Plain Layout
1821 Overfull 
1822 \backslash
1823 hbox
1824 \end_layout
1825
1826 \end_inset
1827
1828
1829 \begin_inset Newline newline
1830 \end_inset
1831
1832 \SpecialChar LaTeX
1833  absolutely 
1834 \emph on
1835 loves
1836 \emph default
1837  to spew these out.
1838  It seems to generate at least one of these messages for just about any
1839  document you write.
1840  They are warnings about lines that were too long and run past the right
1841  margin.
1842  This happens if \SpecialChar LaTeX
1843  does not find a reasonable way to break the lines (notoriously
1844  often with typewriter font, since this does not allow for automatic break
1845  points).
1846  In many cases, this is unnoticeable in the final output.
1847  (It can be just a point or two.) Sometimes, however, the lines run rather
1848  visibly into the margin; something you will not want to have in your final
1849  print.
1850  
1851 \begin_inset Newline newline
1852 \end_inset
1853
1854 There are several global ways to try to minimize the overfull lines.
1855  Clicking 
1856 \family sans
1857 Enable micro-typographic extensions
1858 \family default
1859  in 
1860 \family sans
1861 Document\SpecialChar menuseparator
1862 Settings\SpecialChar menuseparator
1863 Fonts
1864 \family default
1865  might already improve things a lot.
1866  Furthermore, \SpecialChar LaTeX
1867  code such as the following in 
1868 \family sans
1869 Document\SpecialChar menuseparator
1870 Settings\SpecialChar menuseparator
1871 Preamble
1872 \family default
1873  usually reduces the overfull lines drastically (we use this in the preamble
1874  of this document):
1875 \end_layout
1876
1877 \begin_deeper
1878 \begin_layout LyX-Code
1879
1880 \backslash
1881 tolerance 1414
1882 \begin_inset Newline newline
1883 \end_inset
1884
1885
1886 \backslash
1887 hbadness 1414
1888 \begin_inset Newline newline
1889 \end_inset
1890
1891
1892 \backslash
1893 emergencystretch 1.5em
1894 \begin_inset Newline newline
1895 \end_inset
1896
1897
1898 \backslash
1899 hfuzz 0.3pt
1900 \end_layout
1901
1902 \begin_layout Standard
1903 In some cases, however, you eventually have to rewrite the text to get the
1904  line breaking right.
1905 \begin_inset Foot
1906 status collapsed
1907
1908 \begin_layout Plain Layout
1909 For more information, see 
1910 \begin_inset Flex URL
1911 status open
1912
1913 \begin_layout Plain Layout
1914
1915 http://www.tex.ac.uk/FAQ-overfull.html
1916 \end_layout
1917
1918 \end_inset
1919
1920
1921 \end_layout
1922
1923 \end_inset
1924
1925
1926 \end_layout
1927
1928 \begin_layout Standard
1929 In any case, you should check the respective lines, at least for the final
1930  version of your document.
1931  Your eyes will tell you if there's a problem with something that's too
1932  wide.
1933 \begin_inset Foot
1934 status collapsed
1935
1936 \begin_layout Plain Layout
1937 You can also enable the `draft' option in 
1938 \begin_inset Flex Noun
1939 status collapsed
1940
1941 \begin_layout Plain Layout
1942 Document\SpecialChar menuseparator
1943 Settings
1944 \end_layout
1945
1946 \end_inset
1947
1948 , and then \SpecialChar LaTeX
1949  will draw a black box in the margin of lines that are overfull.
1950 \end_layout
1951
1952 \end_inset
1953
1954  
1955 \end_layout
1956
1957 \end_deeper
1958 \begin_layout Itemize
1959 \begin_inset Flex Code
1960 status collapsed
1961
1962 \begin_layout Plain Layout
1963 Underfull 
1964 \backslash
1965 hbox
1966 \end_layout
1967
1968 \end_inset
1969
1970
1971 \begin_inset Newline newline
1972 \end_inset
1973
1974 Not quite as common as its cousin.
1975  This happens again if \SpecialChar LaTeX
1976  does not find a reasonable break point and consequently
1977  generates too loose lines.
1978  As with the overfull lines, you should check if this is a visible problem.
1979 \end_layout
1980
1981 \begin_layout Itemize
1982 \begin_inset Flex Code
1983 status collapsed
1984
1985 \begin_layout Plain Layout
1986 Overfull 
1987 \backslash
1988 vbox
1989 \end_layout
1990
1991 \end_inset
1992
1993  and 
1994 \begin_inset Flex Code
1995 status collapsed
1996
1997 \begin_layout Plain Layout
1998 Underfull 
1999 \backslash
2000 vbox
2001 \end_layout
2002
2003 \end_inset
2004
2005
2006 \begin_inset Newline newline
2007 \end_inset
2008
2009 Warnings about troubles breaking the page.
2010  Once again, just look at the output.
2011  Your eyes will tell you where something has gone wrong.
2012 \end_layout
2013
2014 \begin_layout Itemize
2015 \begin_inset Flex Code
2016 status collapsed
2017
2018 \begin_layout Plain Layout
2019 LaTeX Error: File 
2020 \begin_inset Quotes els
2021 \end_inset
2022
2023 Xxxx
2024 \begin_inset Quotes ers
2025 \end_inset
2026
2027  not found
2028 \end_layout
2029
2030 \end_inset
2031
2032
2033 \begin_inset Newline newline
2034 \end_inset
2035
2036 The file 
2037 \begin_inset Quotes eld
2038 \end_inset
2039
2040 Xxxx
2041 \begin_inset Quotes erd
2042 \end_inset
2043
2044  isn't installed on this system.
2045  This usually appears because some package your document needs isn't installed.
2046  If you didn't touch the preamble or didn't use the 
2047 \begin_inset Flex Code
2048 status collapsed
2049
2050 \begin_layout Plain Layout
2051
2052 \backslash
2053 usepackage{}
2054 \end_layout
2055
2056 \end_inset
2057
2058  command, then one of the packages \SpecialChar LyX
2059  tried to load is missing.
2060  Use 
2061 \begin_inset Flex Noun
2062 status collapsed
2063
2064 \begin_layout Plain Layout
2065 Help\SpecialChar menuseparator
2066 \SpecialChar LaTeX
2067  Configuration
2068 \end_layout
2069
2070 \end_inset
2071
2072  to get a list of packages that \SpecialChar LyX
2073  knows about.
2074  This file is updated whenever you reconfigure \SpecialChar LyX
2075  (using 
2076 \begin_inset Flex Noun
2077 status collapsed
2078
2079 \begin_layout Plain Layout
2080 Tools\SpecialChar menuseparator
2081 Reconfigure
2082 \end_layout
2083
2084 \end_inset
2085
2086 ) and tells you which packages have been detected and what they do.
2087 \begin_inset Newline newline
2088 \end_inset
2089
2090 If you did use the 
2091 \begin_inset Flex Code
2092 status collapsed
2093
2094 \begin_layout Plain Layout
2095
2096 \backslash
2097 usepackage{}
2098 \end_layout
2099
2100 \end_inset
2101
2102  command and the package in question isn't installed, then you'll need to
2103  install it yourself.
2104 \end_layout
2105
2106 \begin_layout Itemize
2107 \begin_inset Flex Code
2108 status collapsed
2109
2110 \begin_layout Plain Layout
2111 LaTeX Error: Unknown option
2112 \end_layout
2113
2114 \end_inset
2115
2116
2117 \begin_inset Newline newline
2118 \end_inset
2119
2120 Error messages beginning with this are trying to tell you that you specified
2121  a bad or undefined option to a package.
2122  Check the package's documentation.
2123 \end_layout
2124
2125 \begin_layout Itemize
2126 \begin_inset Flex Code
2127 status collapsed
2128
2129 \begin_layout Plain Layout
2130 Undefined control sequence
2131 \end_layout
2132
2133 \end_inset
2134
2135
2136 \begin_inset Newline newline
2137 \end_inset
2138
2139 If you've inserted \SpecialChar LaTeX
2140  code into your document, but made a typo, you'll get
2141  one of these.
2142  You may have forgotten to load a package.
2143  In any case, this error message usually means that you used an undefined
2144  command.
2145  
2146 \end_layout
2147
2148 \begin_layout Standard
2149 There are other error and warning messages.
2150  Some are self-explanatory.
2151  These are usually \SpecialChar LaTeX
2152  messages.
2153  Others are downright cryptic.
2154  These are usually \SpecialChar TeX
2155  error messages, and we really have 
2156 \emph on
2157 no clue
2158 \emph default
2159  what they mean or how to decipher them.
2160  No-one does.
2161 \end_layout
2162
2163 \begin_layout Standard
2164 There's a general sequence you should follow if you get error messages:
2165 \end_layout
2166
2167 \begin_layout Enumerate
2168 Look at the \SpecialChar LaTeX
2169  code you inserted for typos.
2170 \end_layout
2171
2172 \begin_layout Enumerate
2173 If there are no typos, check that you used the command(s) correctly.
2174 \end_layout
2175
2176 \begin_layout Enumerate
2177 If you get a bunch of error boxes piled up at the very top of the document—and
2178  especially if you see a 
2179 \begin_inset Quotes eld
2180 \end_inset
2181
2182
2183 \begin_inset Flex Code
2184 status collapsed
2185
2186 \begin_layout Plain Layout
2187 Missing 
2188 \backslash
2189 begin{document}
2190 \end_layout
2191
2192 \end_inset
2193
2194
2195 \begin_inset Quotes erd
2196 \end_inset
2197
2198  error—it means that there are errors in the preamble.
2199  Start debugging your preamble.
2200 \end_layout
2201
2202 \begin_layout Enumerate
2203 If you didn't add anything to the preamble and didn't add any \SpecialChar LaTeX
2204  code to the
2205  document, the first suspect is your \SpecialChar LaTeX
2206  distribution itself.
2207  Check for missing packages and install them.
2208 \end_layout
2209
2210 \begin_layout Enumerate
2211 Okay, so there are no missing packages.
2212  Did you use any of the fine-tuning options in \SpecialChar LyX
2213 ? Specifically, did you 
2214 \emph on
2215 misuse
2216 \emph default
2217  any of them, like trying to manually insert lots of 
2218 \begin_inset Flex Code
2219 status collapsed
2220
2221 \begin_layout Plain Layout
2222
2223 \change_deleted 177693 1654669036
2224 Protected
2225 \change_inserted 177693 1654669038
2226 Non-Breaking
2227 \change_unchanged
2228
2229 \begin_inset space ~
2230 \end_inset
2231
2232
2233 \change_deleted 177693 1654669040
2234 Blanks
2235 \change_inserted 177693 1654669041
2236 Spaces
2237 \change_unchanged
2238
2239 \end_layout
2240
2241 \end_inset
2242
2243
2244 \begin_inset Flex Code
2245 status collapsed
2246
2247 \begin_layout Plain Layout
2248 Linebreaks
2249 \end_layout
2250
2251 \end_inset
2252
2253 , or 
2254 \begin_inset Flex Code
2255 status collapsed
2256
2257 \begin_layout Plain Layout
2258 Pagebreaks
2259 \end_layout
2260
2261 \end_inset
2262
2263 ? Did you try to kludge something together with these instead of using the
2264  appropriate paragraph environment?
2265 \end_layout
2266
2267 \begin_layout Enumerate
2268 All right, you didn't use any of the fine-tuning options, you played by
2269  the rules.
2270  Did you try to pull a fancy maneuver? Did you do something funky inside
2271  a table or an equation, like inserting a graphic into a table cell?
2272 \end_layout
2273
2274 \begin_layout Enumerate
2275 Do you have long sections of text where \SpecialChar LaTeX
2276  cannot find a place to break a
2277  line? By default, \SpecialChar LaTeX
2278  is rather strict about how much extra inter-word spacing
2279  it will add in order to break a line.
2280  Preferably, you should rework the paragraph to avoid the problem.
2281 \end_layout
2282
2283 \begin_layout Enumerate
2284 Did you go overboard with the nesting? \SpecialChar LyX
2285  (currently) doesn't check to make
2286  sure you're in the limits for nesting environments.
2287  If you nested a bunch of environments to the 
2288 \begin_inset Formula $17^{\mathrm{th}}$
2289 \end_inset
2290
2291  level, that's the problem.
2292  (The limit in \SpecialChar LaTeX
2293  is five.)
2294 \end_layout
2295
2296 \begin_layout Enumerate
2297 Okay, you didn't get any error messages, but your output looks awful.
2298  If you have a table or figure that's too wide or long for the page, you
2299  need to:
2300 \end_layout
2301
2302 \begin_deeper
2303 \begin_layout Enumerate
2304 rescale the figure so it fits.
2305 \end_layout
2306
2307 \begin_layout Enumerate
2308 trim down the table so it fits.
2309 \end_layout
2310
2311 \end_deeper
2312 \begin_layout Enumerate
2313 If something else is wrong with the output, and you didn't try to pull anything
2314  fancy or kludge the fine-tuning options, we're not sure what's wrong.
2315 \end_layout
2316
2317 \begin_layout Standard
2318 If all this doesn't help—well, then 
2319 \emph on
2320 perhaps
2321 \emph default
2322  you might have found a bug in \SpecialChar LyX
2323 \SpecialChar ldots
2324 .
2325 \end_layout
2326
2327 \begin_layout Chapter
2328
2329 \change_inserted 564990737 1670439508
2330 Document classes
2331 \end_layout
2332
2333 \begin_layout Section
2334
2335 \change_inserted 564990737 1670439533
2336 \begin_inset CommandInset label
2337 LatexCommand label
2338 name "sec:Collections"
2339
2340 \end_inset
2341
2342 Collections
2343 \end_layout
2344
2345 \begin_layout Subsection
2346 AMS \SpecialChar LaTeX
2347
2348 \end_layout
2349
2350 \begin_layout Standard
2351 by 
2352 \noun on
2353 David Johnson
2354 \noun default
2355 ; updated by 
2356 \noun on
2357 Richard Kimberly Heck
2358 \end_layout
2359
2360 \begin_layout Standard
2361 \begin_inset VSpace bigskip
2362 \end_inset
2363
2364
2365 \end_layout
2366
2367 \begin_layout Standard
2368 \noindent
2369 The AMS \SpecialChar LaTeX
2370  layouts are set up to conform to suggested styles for mathematical
2371  papers to be submitted to American Mathematical Society publications.
2372  The layouts are not tailored to a specific journal, but easily can be.
2373  You should refer to the AMS documentation for specific instructions for
2374  each journal (usually it will entail only changing a single line in the
2375  \SpecialChar TeX
2376  output).
2377  That documentation is available on the Web at 
2378 \begin_inset Flex URL
2379 status open
2380
2381 \begin_layout Plain Layout
2382
2383 http://www.ams.org
2384 \end_layout
2385
2386 \end_inset
2387
2388  or by ftp at 
2389 \begin_inset Flex URL
2390 status open
2391
2392 \begin_layout Plain Layout
2393
2394 ftp://ftp.ams.org/pub/tex/amslatex/
2395 \end_layout
2396
2397 \end_inset
2398
2399 .
2400  These layouts are appropriate, and useful, for any mathematical writing.
2401  
2402 \end_layout
2403
2404 \begin_layout Standard
2405 There are two basic AMS \SpecialChar LaTeX
2406  layouts: 
2407 \end_layout
2408
2409 \begin_layout Itemize
2410 amsart: The standard AMS article format.
2411 \end_layout
2412
2413 \begin_layout Itemize
2414 amsbook: the standard AMS book (really, monograph) format.
2415  
2416 \end_layout
2417
2418 \begin_layout Standard
2419 The layouts themselves contain only the minimum necessary to use the AMS
2420  classes.
2421  They do not, in particular, contain any of the `theorem' environments used
2422  for setting theorems, lemmas, and the like.
2423  These are contained, instead, in the 
2424 \begin_inset Flex Code
2425 status collapsed
2426
2427 \begin_layout Plain Layout
2428 Theorems (AMS)
2429 \end_layout
2430
2431 \end_inset
2432
2433  module, which is loaded by default when you select one of the AMS classes.
2434  (It can also be used with other classes and can be removed, if you would
2435  rather use something else.) Less commonly used environments are in the 
2436 \begin_inset Flex Code
2437 status collapsed
2438
2439 \begin_layout Plain Layout
2440 Theorems (AMS-Extended)
2441 \end_layout
2442
2443 \end_inset
2444
2445  module, which must be loaded manually.
2446 \end_layout
2447
2448 \begin_layout Standard
2449 By default, theorems and the like are numbered consecutively throughout
2450  the document, but this may be modified by loading the module 
2451 \begin_inset Flex Code
2452 status collapsed
2453
2454 \begin_layout Plain Layout
2455 Theorems (Order by Section)
2456 \end_layout
2457
2458 \end_inset
2459
2460  or, if you are using 
2461 \begin_inset Flex Code
2462 status collapsed
2463
2464 \begin_layout Plain Layout
2465 book (AMS)
2466 \end_layout
2467
2468 \end_inset
2469
2470 , the module 
2471 \begin_inset Flex Code
2472 status collapsed
2473
2474 \begin_layout Plain Layout
2475 Theorems (Order by Chapter)
2476 \end_layout
2477
2478 \end_inset
2479
2480 .
2481  These will number the results as 
2482 \begin_inset Formula $n.m$
2483 \end_inset
2484
2485 , where the first number refers to the section (or chapter) and the second
2486  refers to the total number of results so far in that section (or chapter).
2487  Many environments are also available unnumbered.
2488  These are indicated by an asterisk at the end.
2489  If you happen to want 
2490 \emph on
2491 only
2492 \emph default
2493  unnumbered results, the module 
2494 \begin_inset Flex Code
2495 status collapsed
2496
2497 \begin_layout Plain Layout
2498 Theorems (Starred)
2499 \end_layout
2500
2501 \end_inset
2502
2503  provides that option.
2504 \end_layout
2505
2506 \begin_layout Standard
2507 Note that these modules do not 
2508 \emph on
2509 have
2510 \emph default
2511  to be used with the AMS classes.
2512  It is perfectly possible to use the 
2513 \begin_inset Flex Code
2514 status collapsed
2515
2516 \begin_layout Plain Layout
2517 Theorems (AMS)
2518 \end_layout
2519
2520 \end_inset
2521
2522  module, and the others mentioned, with other classes, such as 
2523 \begin_inset Flex Code
2524 status collapsed
2525
2526 \begin_layout Plain Layout
2527 article
2528 \end_layout
2529
2530 \end_inset
2531
2532
2533 \begin_inset Flex Code
2534 status collapsed
2535
2536 \begin_layout Plain Layout
2537 report
2538 \end_layout
2539
2540 \end_inset
2541
2542
2543 \begin_inset Flex Code
2544 status collapsed
2545
2546 \begin_layout Plain Layout
2547 book (KOMA-script)
2548 \end_layout
2549
2550 \end_inset
2551
2552 , and so forth.
2553 \end_layout
2554
2555 \begin_layout Subsubsection
2556 What these layouts provide
2557 \end_layout
2558
2559 \begin_layout Standard
2560 There is a long list of included environments provided by these layouts.
2561  In AMS-\SpecialChar LaTeX
2562 , there is, in fact, an opportunity to define an unlimited variety
2563  of `theorem' environments.
2564  However, the AMS recommends the environments that are available in \SpecialChar LyX
2565 .
2566  
2567 \end_layout
2568
2569 \begin_layout Standard
2570 The following environments—as well as the standard environments, such as
2571  
2572 \begin_inset Flex Noun
2573 status collapsed
2574
2575 \begin_layout Plain Layout
2576 section
2577 \end_layout
2578
2579 \end_inset
2580
2581
2582 \begin_inset Flex Noun
2583 status collapsed
2584
2585 \begin_layout Plain Layout
2586 bibliography
2587 \end_layout
2588
2589 \end_inset
2590
2591
2592 \begin_inset Flex Noun
2593 status collapsed
2594
2595 \begin_layout Plain Layout
2596 title
2597 \end_layout
2598
2599 \end_inset
2600
2601
2602 \begin_inset Flex Noun
2603 status collapsed
2604
2605 \begin_layout Plain Layout
2606 author
2607 \end_layout
2608
2609 \end_inset
2610
2611 , and 
2612 \begin_inset Flex Noun
2613 status collapsed
2614
2615 \begin_layout Plain Layout
2616 date
2617 \end_layout
2618
2619 \end_inset
2620
2621 —are provided by 
2622 \begin_inset Flex Code
2623 status collapsed
2624
2625 \begin_layout Plain Layout
2626 article (AMS)
2627 \end_layout
2628
2629 \end_inset
2630
2631  and 
2632 \begin_inset Flex Code
2633 status collapsed
2634
2635 \begin_layout Plain Layout
2636 book (AMS)
2637 \end_layout
2638
2639 \end_inset
2640
2641 :
2642 \end_layout
2643
2644 \begin_layout Description
2645 Address This should be the author's permanent address.
2646 \end_layout
2647
2648 \begin_layout Description
2649 Current
2650 \begin_inset space ~
2651 \end_inset
2652
2653 Address This should be the author's temporary address at the time of submission,
2654  if different from the Address.
2655 \end_layout
2656
2657 \begin_layout Description
2658 Email Author's e-mail address
2659 \end_layout
2660
2661 \begin_layout Description
2662 URL Author's Web address, if desired.
2663 \end_layout
2664
2665 \begin_layout Description
2666 Keywords Key words or phrases used to identify specific topics discussed
2667  in the paper.
2668 \end_layout
2669
2670 \begin_layout Description
2671 Subjectclass These refer to the AMS Subject Classifications, published and
2672  described in 
2673 \emph on
2674 Mathematical Reviews
2675 \emph default
2676 .
2677  These are also available online at the AMS cites listed above.
2678 \end_layout
2679
2680 \begin_layout Description
2681 Thanks
2682 \end_layout
2683
2684 \begin_layout Description
2685 Dedicatory
2686 \end_layout
2687
2688 \begin_layout Description
2689 Translator
2690 \end_layout
2691
2692 \begin_layout Standard
2693 The following environments are provided by both the 
2694 \begin_inset Flex Code
2695 status collapsed
2696
2697 \begin_layout Plain Layout
2698 Theorems
2699 \end_layout
2700
2701 \end_inset
2702
2703  and 
2704 \begin_inset Flex Code
2705 status collapsed
2706
2707 \begin_layout Plain Layout
2708 Theorems (AMS)
2709 \end_layout
2710
2711 \end_inset
2712
2713  modules, in the latter case in both starred (unnumbered) and unstarred
2714  (numbered) versions.
2715  These same environments are provided only in the starred versions by the
2716  
2717 \begin_inset Flex Code
2718 status collapsed
2719
2720 \begin_layout Plain Layout
2721 Theorems (Starred)
2722 \end_layout
2723
2724 \end_inset
2725
2726  module:
2727 \end_layout
2728
2729 \begin_layout Theorem
2730 This is typically used for the statements of major results.
2731  
2732 \end_layout
2733
2734 \begin_layout Corollary*
2735 This is used for statements which follow fairly directly from previous statement
2736 s.
2737  Again, these can be major results.
2738  
2739 \end_layout
2740
2741 \begin_layout Lemma
2742 These are smaller results needed to prove other statements.
2743 \end_layout
2744
2745 \begin_layout Proposition
2746 These are less major results which (hopefully) add to the general theory
2747  being discussed.
2748 \end_layout
2749
2750 \begin_layout Conjecture
2751 These are statements provided without justification, which the author does
2752  not know how to prove, but which seem to be true (to the author, at least).
2753 \end_layout
2754
2755 \begin_layout Definition*
2756 Guess what this is for.
2757  The font is different for this environment than for the previous ones.
2758  
2759 \end_layout
2760
2761 \begin_layout Example*
2762 Used for examples illustrating proven results.
2763 \end_layout
2764
2765 \begin_layout Problem
2766 It's not really known what this is for.
2767  You should figure it out.
2768 \end_layout
2769
2770 \begin_layout Exercise*
2771 Write a description for this one.
2772 \end_layout
2773
2774 \begin_layout Remark
2775 This environment is also a type of theorem, usually a lesser sort of observation.
2776 \end_layout
2777
2778 \begin_layout Claim*
2779 Often used in the course of giving a proof of a larger result.
2780 \end_layout
2781
2782 \begin_layout Case
2783 Generally, these are used to break up long arguments, using specific instances
2784  of some condition.
2785  
2786 \end_layout
2787
2788 \begin_layout Case
2789 The numbering scheme for cases is on its own, not together with other numbered
2790  statements.
2791  
2792 \end_layout
2793
2794 \begin_layout Proof
2795 At the end of this environment, a QED symbol (usually a square, but it can
2796  vary with different styles) is placed.
2797  If you want to have other environments within this one—for example, Case
2798  environments—and have the QED symbol appear only after them, then the other
2799  environments need to be nested within the proof environment.
2800  See the section 
2801 \emph on
2802 Nesting Environments
2803 \emph default
2804  of the 
2805 \emph on
2806 User's Guide
2807 \emph default
2808  for information on nesting.
2809 \end_layout
2810
2811 \begin_layout Standard
2812 And these environments are provided by 
2813 \begin_inset Flex Code
2814 status collapsed
2815
2816 \begin_layout Plain Layout
2817 Theorems (AMS-Extended)
2818 \end_layout
2819
2820 \end_inset
2821
2822 :
2823 \end_layout
2824
2825 \begin_layout Criterion*
2826 A required condition.
2827 \end_layout
2828
2829 \begin_layout Algorithm*
2830 A general procedure to be used.
2831 \end_layout
2832
2833 \begin_layout Axiom*
2834 This is a property or statement taken as true within the system being discussed.
2835 \end_layout
2836
2837 \begin_layout Condition*
2838 Sometimes used to state a condition assumed within the present context of
2839  discussion.
2840 \end_layout
2841
2842 \begin_layout Note*
2843 Similar to a Remark.
2844 \end_layout
2845
2846 \begin_layout Notation*
2847 Used for the explanation of, yes, notation.
2848 \end_layout
2849
2850 \begin_layout Summary
2851 Do we really need to tell you? 
2852 \end_layout
2853
2854 \begin_layout Acknowledgement*
2855 Acknowledgement.
2856 \end_layout
2857
2858 \begin_layout Conclusion*
2859 Sometimes used at the end of a long train of argument.
2860 \end_layout
2861
2862 \begin_layout Fact
2863 Used in a way similar to Proposition, though perhaps lower on the scale.
2864 \end_layout
2865
2866 \begin_layout Standard
2867 In addition, the AMS classes automatically provide the AMS \SpecialChar LaTeX
2868  and AMS fonts
2869  packages.
2870  They need to be available on your system in order to use these environments.
2871 \end_layout
2872
2873 \begin_layout Subsection
2874
2875 \change_inserted 564990737 1671383236
2876
2877 \lang american
2878 \begin_inset CommandInset label
2879 LatexCommand label
2880 name "subsec:Extra-font-sizes"
2881
2882 \end_inset
2883
2884 Extra font sizes
2885 \end_layout
2886
2887 \begin_layout Standard
2888
2889 \change_inserted 564990737 1671383236
2890
2891 \lang american
2892 The “Extra font sizes” collection provides the document classes 
2893 \family sans
2894 article
2895 \begin_inset space \thinspace{}
2896 \end_inset
2897
2898 (with extra font sizes)
2899 \family default
2900
2901 \family sans
2902 book
2903 \begin_inset space \thinspace{}
2904 \end_inset
2905
2906 (with extra font sizes)
2907 \family default
2908
2909 \family sans
2910 letter
2911 \begin_inset space \thinspace{}
2912 \end_inset
2913
2914 (with extra font sizes)
2915 \family default
2916  and 
2917 \family sans
2918 report
2919 \begin_inset space \thinspace{}
2920 \end_inset
2921
2922 (with extra font sizes)
2923 \family default
2924  which use the 
2925 \family typewriter
2926 article.cls
2927 \family default
2928
2929 \family typewriter
2930 book.cls
2931 \family default
2932
2933 \family typewriter
2934 letter.cls
2935 \family default
2936  and 
2937 \family typewriter
2938 report.cls
2939 \family default
2940  document classes respectively but offer the additional 
2941 \family sans
2942 \bar under
2943 B
2944 \bar default
2945 ase
2946 \begin_inset space ~
2947 \end_inset
2948
2949 Size
2950 \family default
2951  options 8, 9, 14, 17 and 20 in the 
2952 \family sans
2953 \bar under
2954 D
2955 \bar default
2956 ocument\SpecialChar menuseparator
2957
2958 \bar under
2959 S
2960 \bar default
2961 ettings\SpecialChar menuseparator
2962 Fonts
2963 \family default
2964  dialog.
2965 \end_layout
2966
2967 \begin_layout Subsection
2968
2969 \change_inserted 564990737 1671383236
2970
2971 \lang american
2972 Hebrew
2973 \end_layout
2974
2975 \begin_layout Standard
2976
2977 \change_inserted 564990737 1671383236
2978
2979 \lang american
2980 The document classes 
2981 \family sans
2982 article
2983 \begin_inset space \thinspace{}
2984 \end_inset
2985
2986 (Hebrew)
2987 \family default
2988  and 
2989 \family sans
2990 letter
2991 \begin_inset space \thinspace{}
2992 \end_inset
2993
2994 (Hebrew)
2995 \family default
2996  use the 
2997 \family typewriter
2998 article.cl
2999 \family sans
3000 s
3001 \family default
3002  and 
3003 \family typewriter
3004 letter.cls
3005 \family default
3006  document classes to facilitate the use of Hebrew in \SpecialChar LyX
3007 .
3008 \end_layout
3009
3010 \begin_layout Subsection
3011
3012 \change_inserted 564990737 1671383236
3013
3014 \lang american
3015 \begin_inset CommandInset label
3016 LatexCommand label
3017 name "subsec:Japanese"
3018
3019 \end_inset
3020
3021 Japanese
3022 \end_layout
3023
3024 \begin_layout Standard
3025
3026 \change_inserted 564990737 1671383236
3027
3028 \lang american
3029 The document classes 
3030 \family sans
3031 article
3032 \begin_inset space \thinspace{}
3033 \end_inset
3034
3035 (Japanese JS Class)
3036 \family default
3037 ,
3038 \family sans
3039  article
3040 \begin_inset space \thinspace{}
3041 \end_inset
3042
3043 (Japanese Standard Class Vertical Writing)
3044 \family default
3045
3046 \family sans
3047 article
3048 \begin_inset space \thinspace{}
3049 \end_inset
3050
3051 (Japanese Standard Class)
3052 \family default
3053
3054 \family sans
3055 book
3056 \begin_inset space \thinspace{}
3057 \end_inset
3058
3059 (Japanese JS Class)
3060 \family default
3061 ,
3062 \family sans
3063  book
3064 \begin_inset space \thinspace{}
3065 \end_inset
3066
3067 (Japanese Standard Class Vertical Writing)
3068 \family default
3069
3070 \family sans
3071 book
3072 \begin_inset space \thinspace{}
3073 \end_inset
3074
3075 (Japanese Standard Class)
3076 \family default
3077
3078 \family sans
3079 report
3080 \begin_inset space \thinspace{}
3081 \end_inset
3082
3083 (Japanese Vertical Writing)
3084 \family default
3085  and 
3086 \family sans
3087 report
3088 \begin_inset space \thinspace{}
3089 \end_inset
3090
3091 (Japanese Standard Class)
3092 \family default
3093  provide document classes for the Japanese language.
3094 \end_layout
3095
3096 \begin_layout Subsection
3097 Koma-Script
3098 \end_layout
3099
3100 \begin_layout Standard
3101 by 
3102 \noun on
3103 Bernd Rellermeyer
3104 \end_layout
3105
3106 \begin_layout Subsubsection
3107 Overview
3108 \end_layout
3109
3110 \begin_layout Standard
3111 The \SpecialChar LyX
3112  document classes 
3113 \emph on
3114 article (koma-script)
3115 \emph default
3116
3117 \emph on
3118 report (koma-script)
3119 \emph default
3120
3121 \emph on
3122 book
3123 \emph default
3124  
3125 \emph on
3126 (koma-script)
3127 \emph default
3128 , and 
3129 \emph on
3130 letter
3131 \emph default
3132  
3133 \emph on
3134 (koma-script)
3135 \emph default
3136  correspond to the \SpecialChar LaTeX
3137  document classes 
3138 \family typewriter
3139 scrartcl.cls
3140 \family default
3141
3142 \family typewriter
3143 scrreprt.cls
3144 \family default
3145
3146 \family typewriter
3147 scrbook.cls
3148 \family default
3149 , and 
3150 \family typewriter
3151 scrlettr.cls
3152 \family default
3153 , resp.
3154 \begin_inset space ~
3155 \end_inset
3156
3157 of the Koma-Script family.
3158  They are replacements for the standard document classes 
3159 \family typewriter
3160 article.cls
3161 \family default
3162
3163 \family typewriter
3164 report.cls
3165 \family default
3166
3167 \family typewriter
3168 book.cls
3169 \family default
3170  and 
3171 \family typewriter
3172 letter.cls
3173 \family default
3174 , resp., and fit better to European typography conventions in a number of
3175  points.
3176 \end_layout
3177
3178 \begin_layout Itemize
3179 Standard character size is 11pt in 
3180 \emph on
3181 article (koma-script)
3182 \emph default
3183
3184 \emph on
3185 report (koma-script)
3186 \emph default
3187 , and 
3188 \emph on
3189 book (koma-script)
3190 \emph default
3191 , and 12pt in 
3192 \emph on
3193 letter (koma-script)
3194 \emph default
3195 .
3196 \end_layout
3197
3198 \begin_layout Itemize
3199 Headings, labels of the description environment, and a number of elements
3200  of the 
3201 \emph on
3202 letter (koma-script)
3203 \emph default
3204  document class are set in a bold sans serif font.
3205 \begin_inset Foot
3206 status collapsed
3207
3208 \begin_layout Plain Layout
3209 There is a big difference between the bold sans serif old cm fonts and new
3210  ec fonts, especially in the appearance of headings.
3211  In comparison, the ec bold sans serif fonts look a bit thin.
3212  Here the \SpecialChar LaTeX
3213  package 
3214 \family typewriter
3215 cmsd.sty by
3216 \family default
3217  
3218 \shape smallcaps
3219 Walter Schmidt
3220 \shape default
3221  helps to produce the 
3222 \begin_inset Quotes eld
3223 \end_inset
3224
3225 usual
3226 \begin_inset Quotes erd
3227 \end_inset
3228
3229  appearance when using the ec fonts.
3230 \end_layout
3231
3232 \end_inset
3233
3234  The numbering of chapter headings is made in the same way as the numbering
3235  of section headings, that is without the extra line 
3236 \begin_inset Quotes eld
3237 \end_inset
3238
3239 Chapter\SpecialChar ldots
3240
3241 \begin_inset Quotes erd
3242 \end_inset
3243
3244 .
3245  In addition, the appearance of the headings can be modified by using a
3246  number of options (in \SpecialChar LyX
3247  to be entered in the field 
3248 \family sans
3249 Extra
3250 \begin_inset space ~
3251 \end_inset
3252
3253 Options
3254 \family default
3255  of the dialog 
3256 \family sans
3257 Layout\SpecialChar menuseparator
3258 Document
3259 \family default
3260 ).
3261  
3262 \end_layout
3263
3264 \begin_layout Itemize
3265 The main means in the Koma-Script document classes to design the type area
3266  are the options 
3267 \family sans
3268 BCOR
3269 \family default
3270  and 
3271 \family sans
3272 DIV
3273 \family default
3274  (in \SpecialChar LyX
3275  to be entered in the extra class options field in the dialog 
3276 \family sans
3277 Document\SpecialChar menuseparator
3278 Settings
3279 \family default
3280 ).
3281  They make a clearer modification of page margins possible as do the options
3282  of the dialog 
3283 \family sans
3284 Document\SpecialChar menuseparator
3285 Settings
3286 \family default
3287 .
3288  
3289 \end_layout
3290
3291 \begin_layout Itemize
3292 The \SpecialChar LaTeX
3293  document classes of the Koma-Script family define a number of additional
3294  commands.
3295  Those part of it which makes sense in \SpecialChar LyX
3296  is implemented in corresponding
3297  paragraph types.
3298 \end_layout
3299
3300 \begin_layout Standard
3301 Detailed descriptions of the \SpecialChar LaTeX
3302  document classes of the Koma-Script family
3303  can be found in the Koma-Script documentation 
3304 \emph on
3305 scrguide
3306 \emph default
3307  (German) and 
3308 \emph on
3309 scrguien
3310 \emph default
3311  (English).
3312 \end_layout
3313
3314 \begin_layout Subsubsection
3315 article (koma-script), report (koma-script), and book (koma-script)
3316 \end_layout
3317
3318 \begin_layout Standard
3319 The document classes 
3320 \emph on
3321 article (koma-script)
3322 \emph default
3323
3324 \emph on
3325 report (koma-script)
3326 \emph default
3327 , and 
3328 \emph on
3329 book
3330 \emph default
3331  
3332 \emph on
3333 (koma-script)
3334 \emph default
3335  are implemented in the layout files 
3336 \family typewriter
3337 scrartcl.layout
3338 \family default
3339
3340 \family typewriter
3341 scrreprt.layout
3342 \family default
3343 , and 
3344 \family typewriter
3345 scrbook.layout
3346 \family default
3347 , resp.
3348  They contain all the paragraph types of the corresponding standard document
3349  classes 
3350 \emph on
3351 article
3352 \emph default
3353
3354 \emph on
3355 report
3356 \emph default
3357 , and 
3358 \emph on
3359 book
3360 \emph default
3361 , resp., partly modified, with the exception of the \SpecialChar LyX
3362  specific 
3363 \family sans
3364 List
3365 \family default
3366 -type, which is replaced by the new 
3367 \family sans
3368 Labeling
3369 \family default
3370 -type having the same functionality.
3371  Beside the 
3372 \family sans
3373 Labeling
3374 \family default
3375 -Type there is a number of new paragraph types added.
3376  They are 
3377 \emph on
3378 not
3379 \emph default
3380  part of 
3381 \emph on
3382 letter (koma-script)
3383 \emph default
3384 .
3385 \end_layout
3386
3387 \begin_layout Itemize
3388
3389 \family sans
3390 Addpart, Addchap
3391 \family default
3392
3393 \family sans
3394 Addsec
3395 \family default
3396 : are equivalents to 
3397 \family sans
3398 Part*, Chapter*
3399 \family default
3400  and 
3401 \family sans
3402 Section*
3403 \family default
3404 , resp., additionally inserting an entry in the table of contents.
3405  
3406 \family sans
3407 Addpart
3408 \family default
3409  and 
3410 \family sans
3411 Addchap
3412 \family default
3413  are not contained in 
3414 \emph on
3415 article (koma-script)
3416 \emph default
3417 .
3418 \end_layout
3419
3420 \begin_layout Itemize
3421
3422 \family sans
3423 Addchap*
3424 \family default
3425
3426 \family sans
3427 Addsec*
3428 \family default
3429 : behave exactly as 
3430 \family sans
3431 Addchap
3432 \family default
3433  and 
3434 \family sans
3435 Addsec
3436 \family default
3437 , resp., additionally clearing running heads.
3438  
3439 \family sans
3440 Addchap*
3441 \family default
3442  is not contained in 
3443 \emph on
3444 article (koma-script)
3445 \emph default
3446 .
3447 \begin_inset Foot
3448 status collapsed
3449
3450 \begin_layout Plain Layout
3451 There is also an 
3452 \family typewriter
3453
3454 \backslash
3455 addpart*
3456 \family default
3457  command in 
3458 \emph on
3459 book (koma-script)
3460 \emph default
3461  and in 
3462 \emph on
3463 report (koma-script)
3464 \emph default
3465 , but since this is identical to 
3466 \family sans
3467 Part*
3468 \family default
3469 , is has not been implemented in \SpecialChar LyX
3470 .
3471 \end_layout
3472
3473 \end_inset
3474
3475
3476 \end_layout
3477
3478 \begin_layout Itemize
3479
3480 \family sans
3481 Minisec
3482 \family default
3483 : generates a heading directly above the following paragraph in the standard
3484  character size without affecting the structure of the document.
3485 \end_layout
3486
3487 \begin_layout Itemize
3488
3489 \family sans
3490 Captionabove
3491 \family default
3492  and 
3493 \family sans
3494 Captionbelow
3495 \family default
3496  are special captions which respect the different space settings needed
3497  for captions placed above or below an element (if you follow strict typographic
3498  rules, you might want to place table captions always above the table).
3499  You can also use the class option 
3500 \family typewriter
3501 tablecaptionsabove
3502 \family default
3503 , which will switch 
3504 \family sans
3505 caption
3506 \family default
3507  to 
3508 \family sans
3509 captionabove
3510 \family default
3511  for tables and 
3512 \family sans
3513 captionbelow
3514 \family default
3515  for figures.
3516  You need at least Koma-Script version 2.8q to use this.
3517 \end_layout
3518
3519 \begin_layout Itemize
3520
3521 \family sans
3522 Dictum
3523 \family default
3524 : can be used to set a bonmot, e.
3525 \begin_inset space \thinspace{}
3526 \end_inset
3527
3528 g.
3529 \begin_inset space \space{}
3530 \end_inset
3531
3532 at the beginning of a chapter.
3533  If you use the optional argument (
3534 \family sans
3535 Insert\SpecialChar menuseparator
3536 Dictum
3537 \begin_inset space ~
3538 \end_inset
3539
3540 Author
3541 \family default
3542 ), you can insert the dictum's author there.
3543  Dictum and author are separated by a line.
3544  You need at least Koma-Script version 2.8q to use this.
3545  
3546 \family sans
3547 Dictum
3548 \family default
3549  is not contained in 
3550 \emph on
3551 article (koma-script)
3552 \emph default
3553 .
3554 \end_layout
3555
3556 \begin_layout Standard
3557 The following types, together with the standard types 
3558 \family sans
3559 Title
3560 \family default
3561
3562 \family sans
3563 Author
3564 \family default
3565 , and 
3566 \family sans
3567 Date
3568 \family default
3569 , form the title area of the document.
3570  They must be entered ahead of the first 
3571 \begin_inset Quotes eld
3572 \end_inset
3573
3574 ordinary
3575 \begin_inset Quotes erd
3576 \end_inset
3577
3578  paragraph.
3579 \begin_inset Foot
3580 status collapsed
3581
3582 \begin_layout Plain Layout
3583 The corresponding \SpecialChar LaTeX
3584  commands must appear before the 
3585 \family typewriter
3586
3587 \backslash
3588 maketitle
3589 \family default
3590  command.
3591 \end_layout
3592
3593 \end_inset
3594
3595  When such a type is used more than once, the latter usage overwrites the
3596  former one, that means, for every type only the latest usage is valid.
3597  The order of the different types however has, like 
3598 \family sans
3599 Title
3600 \family default
3601
3602 \family sans
3603 Author
3604 \family default
3605 , and 
3606 \family sans
3607 Date
3608 \family default
3609 , no effect on the appearance of the produced document.
3610 \end_layout
3611
3612 \begin_layout Itemize
3613
3614 \family sans
3615 Subject
3616 \family default
3617 : produces a centered paragraph above the ordinary title (
3618 \family sans
3619 Title
3620 \family default
3621
3622 \family sans
3623 Author
3624 \family default
3625
3626 \family sans
3627 Date
3628 \family default
3629 ) for the subject of the document.
3630 \end_layout
3631
3632 \begin_layout Itemize
3633
3634 \family sans
3635 Publishers
3636 \family default
3637 : produces a centered paragraph below the ordinary title (
3638 \family sans
3639 Title
3640 \family default
3641
3642 \family sans
3643 Author
3644 \family default
3645
3646 \family sans
3647 Date
3648 \family default
3649 ) for the publishers' name.
3650 \end_layout
3651
3652 \begin_layout Itemize
3653
3654 \family sans
3655 Dedication
3656 \family default
3657 : in 
3658 \emph on
3659 report (koma-script)
3660 \emph default
3661  and 
3662 \emph on
3663 book (koma-script)
3664 \emph default
3665  produces a centered paragraph on its own page behind the title page, or
3666  in 
3667 \emph on
3668 article (koma-script)
3669 \emph default
3670  produces a centered paragraph below the ordinary title (
3671 \family sans
3672 Title
3673 \family default
3674
3675 \family sans
3676 Author
3677 \family default
3678
3679 \family sans
3680 Date
3681 \family default
3682
3683 \family sans
3684 Publishers
3685 \family default
3686 ) for a dedication.
3687 \end_layout
3688
3689 \begin_layout Itemize
3690
3691 \family sans
3692 Titlehead
3693 \family default
3694 : produces a left aligned paragraph above the ordinary title (
3695 \family sans
3696 Title
3697 \family default
3698
3699 \family sans
3700 Author
3701 \family default
3702
3703 \family sans
3704 Date
3705 \family default
3706
3707 \family sans
3708 Subject
3709 \family default
3710 ) for a document`s head.
3711 \end_layout
3712
3713 \begin_layout Itemize
3714
3715 \family sans
3716 Uppertitleback
3717 \family default
3718 : produces in a double-sided print in 
3719 \emph on
3720 report (koma-script)
3721 \emph default
3722  and 
3723 \emph on
3724 book (koma-script)
3725 \emph default
3726  a left-aligned paragraph at the top of the title page`s back or has no
3727  effect in a single-sided print or in 
3728 \emph on
3729 article (koma-script)
3730 \emph default
3731 .
3732 \end_layout
3733
3734 \begin_layout Itemize
3735
3736 \family sans
3737 Lowertitleback
3738 \family default
3739 : produces in a double-sided print in 
3740 \emph on
3741 report (koma-script)
3742 \emph default
3743  and 
3744 \emph on
3745 book (koma-script)
3746 \emph default
3747  a left-aligned paragraph at the bottom of the title page`s back or has
3748  no effect in a single-sided print or in 
3749 \emph on
3750 article (koma-script)
3751 \emph default
3752 .
3753 \end_layout
3754
3755 \begin_layout Itemize
3756
3757 \family sans
3758 Extratitle
3759 \family default
3760 : produces a special 
3761 \begin_inset Quotes eld
3762 \end_inset
3763
3764 dirty
3765 \begin_inset Quotes erd
3766 \end_inset
3767
3768  page ahead of the actual document containing a paragraph without special
3769  formatting.
3770 \end_layout
3771
3772 \begin_layout Standard
3773 The layout files for the document classes 
3774 \emph on
3775 article (koma-script)
3776 \emph default
3777
3778 \emph on
3779 report (koma-script)
3780 \emph default
3781 , and 
3782 \emph on
3783 book (koma-script)
3784 \emph default
3785  do include the file 
3786 \family typewriter
3787 scrmacros.inc
3788 \family default
3789 .
3790  This is thought of as a place to define your own types.
3791  Copy scrmacros
3792 \family typewriter
3793 .inc
3794 \family default
3795  in your personal layout directory and edit the file!
3796 \end_layout
3797
3798 \begin_layout Subsubsection
3799 letter (koma-script)
3800 \end_layout
3801
3802 \begin_layout Description
3803 Note: This section discusses the obsolete 
3804 \family sans
3805 KOMA-Script-Letter (v.
3806 \begin_inset space ~
3807 \end_inset
3808
3809 1)
3810 \family default
3811 , which is not even included anymore in recent KOMA releases.
3812  Please refer to the next section for the current KOMA-Script-Letter class
3813  (v.
3814 \begin_inset space ~
3815 \end_inset
3816
3817 2)!
3818 \end_layout
3819
3820 \begin_layout Standard
3821 \noindent
3822 The document class 
3823 \emph on
3824 letter (koma-script)
3825 \emph default
3826  is implemented in the layout file 
3827 \family typewriter
3828 scrlettr.layout
3829 \family default
3830 .
3831  It contains all the paragraph types of the corresponding standard document
3832  class 
3833 \emph on
3834 letter
3835 \emph default
3836 , partly modified, with the exception of the \SpecialChar LyX
3837  specific types 
3838 \family sans
3839 \SpecialChar LyX
3840 -Code
3841 \family default
3842  and 
3843 \family sans
3844 Comment
3845 \family default
3846  and the 
3847 \family sans
3848 List
3849 \family default
3850  type, which is replaced by the new 
3851 \family sans
3852 Labeling
3853 \family default
3854  type.
3855  In addition, it contains, in contrast to the standard document class, the
3856  standard types 
3857 \family sans
3858 \SpecialChar LaTeX
3859
3860 \family default
3861
3862 \family sans
3863 Quotation
3864 \family default
3865
3866 \family sans
3867 Quote
3868 \family default
3869 , and 
3870 \family sans
3871 Verse
3872 \family default
3873 .
3874  Furthermore, there are a number of new letter specific types.
3875 \end_layout
3876
3877 \begin_layout Standard
3878 The appearance of the letter produced by this document class can be controlled
3879  by a number of \SpecialChar LaTeX
3880  commands, which you can put in the \SpecialChar LaTeX
3881  preamble.
3882 \begin_inset Foot
3883 status collapsed
3884
3885 \begin_layout Plain Layout
3886 For example, the standard appearance of the letter`s heading, consisting
3887  of name and address, is quite self-willed.
3888  An 
3889 \begin_inset Quotes eld
3890 \end_inset
3891
3892 ordinary
3893 \begin_inset Quotes erd
3894 \end_inset
3895
3896  heading is produced by the following \SpecialChar LaTeX
3897  commands in the preamble:
3898 \end_layout
3899
3900 \begin_layout LyX-Code
3901
3902 \backslash
3903 firsthead{
3904 \backslash
3905 parbox[b]{
3906 \backslash
3907 textwidth}
3908 \end_layout
3909
3910 \begin_layout LyX-Code
3911   {
3912 \backslash
3913 ignorespaces 
3914 \backslash
3915 fromname
3916 \backslash
3917
3918 \backslash
3919  
3920 \backslash
3921 ignorespaces 
3922 \backslash
3923 fromaddress}} 
3924 \end_layout
3925
3926 \begin_layout LyX-Code
3927
3928 \backslash
3929 nexthead{
3930 \backslash
3931 parbox[b]{
3932 \backslash
3933 textwidth}
3934 \end_layout
3935
3936 \begin_layout LyX-Code
3937   {
3938 \backslash
3939 ignorespaces 
3940 \backslash
3941 fromname 
3942 \backslash
3943 hfill 
3944 \backslash
3945 ignorespaces 
3946 \backslash
3947 pagename
3948 \backslash
3949  
3950 \backslash
3951 thepage}}
3952 \end_layout
3953
3954 \end_inset
3955
3956  A detailed German description of such \SpecialChar LaTeX
3957  commands can be found in the Koma-Script
3958  documentation 
3959 \emph on
3960 scrguide
3961 \emph default
3962 .
3963  With it, the letter's author can produce his personal letter layout.
3964 \end_layout
3965
3966 \begin_layout Standard
3967 The types 
3968 \family sans
3969 Letter
3970 \family default
3971  and 
3972 \family sans
3973 Opening
3974 \family default
3975  define the beginning of the letter and must be used in every letter.
3976  To emphasize them in the \SpecialChar LyX
3977  document class, they are marked with the letter
3978  
3979 \shape italic
3980 L
3981 \shape default
3982  or 
3983 \shape italic
3984 O
3985 \shape default
3986 , resp.
3987 \begin_inset space ~
3988 \end_inset
3989
3990 in the left margin.
3991  It is possible to write any number of letters in one file.
3992  An 
3993 \family sans
3994 Opening
3995 \family default
3996  type produces a new letter using the same addressee and a 
3997 \family sans
3998 Letter
3999 \family default
4000  type produces a new addressee.
4001  The types 
4002 \family sans
4003 Closing
4004 \family default
4005
4006 \family sans
4007 PS
4008 \family default
4009
4010 \family sans
4011 CC
4012 \family default
4013 , and 
4014 \family sans
4015 Encl
4016 \family default
4017  are ordinary paragraph types and can also be used several times in one
4018  and the same letter.
4019 \end_layout
4020
4021 \begin_layout Itemize
4022
4023 \family sans
4024 Letter
4025 \family default
4026 : produces a paragraph for the addressee and implicitly defines the beginning
4027  of the letter.
4028 \end_layout
4029
4030 \begin_layout Itemize
4031
4032 \family sans
4033 Opening
4034 \family default
4035 : produces a paragraph for the form of address and implicitly produces a
4036  new letter.
4037 \end_layout
4038
4039 \begin_layout Itemize
4040
4041 \family sans
4042 Closing
4043 \family default
4044 : produces a paragraph for a close.
4045 \end_layout
4046
4047 \begin_layout Itemize
4048
4049 \family sans
4050 PS
4051 \family default
4052 : produces a paragraph for a postscript.
4053 \end_layout
4054
4055 \begin_layout Itemize
4056
4057 \family sans
4058 CC
4059 \family default
4060 : produces a paragraph for a distribution list.
4061 \end_layout
4062
4063 \begin_layout Itemize
4064
4065 \family sans
4066 Encl
4067 \family default
4068 : produces a paragraph for enclosures.
4069 \end_layout
4070
4071 \begin_layout Standard
4072 The types 
4073 \family sans
4074 Name
4075 \family default
4076
4077 \family sans
4078 Signature
4079 \family default
4080
4081 \family sans
4082 Address
4083 \family default
4084
4085 \family sans
4086 Telephone
4087 \family default
4088
4089 \family sans
4090 Place
4091 \family default
4092
4093 \family sans
4094 Backaddress
4095 \family default
4096
4097 \family sans
4098 Specialmail
4099 \family default
4100
4101 \family sans
4102 Location
4103 \family default
4104
4105 \family sans
4106 Title
4107 \family default
4108 , and 
4109 \family sans
4110 Subject
4111 \family default
4112  are input types provided with a label to enter information, which will
4113  be processed by the document class.
4114 \begin_inset Foot
4115 status collapsed
4116
4117 \begin_layout Plain Layout
4118 It could be seen as a matter of inconsequence, that the types 
4119 \family sans
4120 Letter
4121 \family default
4122  and 
4123 \family sans
4124 Opening
4125 \family default
4126  described above are not such input types as well.
4127  Because of the special meaning of those types, however, I have implemented
4128  them as ordinary paragraph types with a one letter mark in the left margin.
4129  Moreover, it would affect my feeling of symmetry, if the 
4130 \family sans
4131 Opening
4132 \family default
4133  type and the 
4134 \family sans
4135 Closing
4136 \family default
4137  type had such a serious different appearance.
4138 \end_layout
4139
4140 \end_inset
4141
4142  The types must be used ahead of the corresponding 
4143 \family sans
4144 Opening
4145 \family default
4146  type.
4147 \end_layout
4148
4149 \begin_layout Standard
4150 An implementation of these types in a WYSIWYG fashion does not seem to make
4151  sense, because the real appearance of the produced letter does not only
4152  depend on the usage of the particular type, but also on other factors.
4153  For example, a signature entered in the 
4154 \family sans
4155 Signature
4156 \family default
4157  type will in the standard behavior appear in the produced letter only,
4158  when in the same letter also a 
4159 \family sans
4160 Closing
4161 \family default
4162  type is used.
4163  The entered value of the 
4164 \family sans
4165 Telephone
4166 \family default
4167  type will in the standard behavior not appear in the produced letter at
4168  all.
4169  The possibility to design the letter`s heading freely is already indicated
4170  in a footnote above.
4171 \end_layout
4172
4173 \begin_layout Standard
4174 The input types can also be used as empty paragraphs.
4175  This makes sense e.
4176 \begin_inset space \thinspace{}
4177 \end_inset
4178
4179 g.
4180 \begin_inset space \space{}
4181 \end_inset
4182
4183 for the 
4184 \family sans
4185 Signature
4186 \family default
4187  type.
4188  If the 
4189 \family sans
4190 Signature
4191 \family default
4192  type is not used at all, in the standard behavior the value of the 
4193 \family sans
4194 Name
4195 \family default
4196  type is used as signature, whereas if an empty 
4197 \family sans
4198 Signature
4199 \family default
4200  type is used, no signature value is defined.
4201 \end_layout
4202
4203 \begin_layout Standard
4204 By using the input types it is possible to write a letter template, containing
4205  filled input types with your personal dates (name, address, etc.) and empty
4206  input types for other dates you want to enter.
4207 \end_layout
4208
4209 \begin_layout Itemize
4210
4211 \family sans
4212 Name
4213 \family default
4214 : sender's name, in the standard behavior appears as a centered paragraph
4215  in small caps in the letter`s heading.
4216 \end_layout
4217
4218 \begin_layout Itemize
4219
4220 \family sans
4221 Signature
4222 \family default
4223 : sender's signature, in the standard behavior appears below the 
4224 \family sans
4225 Closing
4226 \family default
4227  type.
4228  If no 
4229 \family sans
4230 Signature
4231 \family default
4232  type is used, the value of the 
4233 \family sans
4234 Name
4235 \family default
4236  type appears instead.
4237 \end_layout
4238
4239 \begin_layout Itemize
4240
4241 \family sans
4242 Address
4243 \family default
4244 : sender's address, in the standard behavior appears in a centered paragraph
4245  in the letter`s heading below the sender's name.
4246 \end_layout
4247
4248 \begin_layout Itemize
4249
4250 \family sans
4251 Telephone
4252 \family default
4253 : sender's telephone number, in the standard behavior only sets the \SpecialChar LaTeX
4254  variable
4255  
4256 \family typewriter
4257
4258 \backslash
4259 telephonenum
4260 \family default
4261 .
4262 \end_layout
4263
4264 \begin_layout Itemize
4265
4266 \family sans
4267 Place
4268 \family default
4269 : place of the letter`s making.
4270 \end_layout
4271
4272 \begin_layout Itemize
4273
4274 \family sans
4275 Date
4276 \family default
4277 : date of the letter`s making.
4278  
4279 \family sans
4280 Place
4281 \family default
4282  and 
4283 \family sans
4284 Date
4285 \family default
4286 , in the standard behavior, produce the place and the date in a right-aligned
4287  line below the addressee's field.
4288  If an empty 
4289 \family sans
4290 Date
4291 \family default
4292  type is used, neither place nor date appear, independent of the value of
4293  the 
4294 \family sans
4295 Place
4296 \family default
4297  type.
4298  If no 
4299 \family sans
4300 Date
4301 \family default
4302  type is used, the date of the letter `s production is used.
4303 \end_layout
4304
4305 \begin_layout Itemize
4306
4307 \family sans
4308 Backaddress
4309 \family default
4310 : sender`s back address, in the standard behavior appears above the addressee's
4311  field in a small sans serif font.
4312 \end_layout
4313
4314 \begin_layout Itemize
4315
4316 \family sans
4317 Specialmail
4318 \family default
4319 : special mail information, in the standard behavior appears underlined
4320  above the addressee's field below the back address.
4321 \end_layout
4322
4323 \begin_layout Itemize
4324
4325 \family sans
4326 Location
4327 \family default
4328 : additional information, in the standard behavior appears on right side
4329  below the addressee`s field.
4330 \end_layout
4331
4332 \begin_layout Itemize
4333
4334 \family sans
4335 Title
4336 \family default
4337 : the letter's title, in the standard behavior appears in a big, bold, sans
4338  serif font above the subject.
4339 \end_layout
4340
4341 \begin_layout Itemize
4342
4343 \family sans
4344 Subject
4345 \family default
4346 : the letter's subject, in the standard behavior appears in a bold font
4347  above the 
4348 \family sans
4349 Opening
4350 \family default
4351  paragraph.
4352 \end_layout
4353
4354 \begin_layout Standard
4355 The types 
4356 \family sans
4357 Yourref
4358 \family default
4359
4360 \family sans
4361 Yourmail
4362 \family default
4363
4364 \family sans
4365 Myref
4366 \family default
4367
4368 \family sans
4369 Customer
4370 \family default
4371 , and 
4372 \family sans
4373 Invoice
4374 \family default
4375  produce a business letter like line above the 
4376 \family sans
4377 Title
4378 \family default
4379  line containing the fields 
4380 \begin_inset Quotes eld
4381 \end_inset
4382
4383 Your ref.
4384 \begin_inset Quotes erd
4385 \end_inset
4386
4387
4388 \begin_inset Quotes eld
4389 \end_inset
4390
4391 Your letter of
4392 \begin_inset Quotes erd
4393 \end_inset
4394
4395
4396 \begin_inset Quotes eld
4397 \end_inset
4398
4399 Our ref.
4400 \begin_inset Quotes erd
4401 \end_inset
4402
4403
4404 \begin_inset Quotes eld
4405 \end_inset
4406
4407 Customer no.
4408 \begin_inset Quotes erd
4409 \end_inset
4410
4411
4412 \begin_inset Quotes eld
4413 \end_inset
4414
4415 Invoice no.
4416 \begin_inset Quotes erd
4417 \end_inset
4418
4419 , and 
4420 \begin_inset Quotes eld
4421 \end_inset
4422
4423 Date
4424 \begin_inset Quotes erd
4425 \end_inset
4426
4427 .
4428  For the date field, the value of the 
4429 \family sans
4430 Date
4431 \family default
4432  type is used.
4433  If one of these 
4434 \begin_inset Quotes eld
4435 \end_inset
4436
4437 business letter types
4438 \begin_inset Quotes erd
4439 \end_inset
4440
4441  is used, the value of the 
4442 \family sans
4443 Place
4444 \family default
4445  type however does not appear, but only the \SpecialChar LaTeX
4446  variable 
4447 \family typewriter
4448
4449 \backslash
4450 fromplace
4451 \family default
4452  is set.
4453  The ordinary output of place and date in a right-aligned line below the
4454  addressee`s field is suppressed.
4455  The types are implemented as input types provided with a label and must
4456  be used ahead of the corresponding 
4457 \family sans
4458 Opening
4459 \family default
4460  type.
4461 \end_layout
4462
4463 \begin_layout Itemize
4464
4465 \family sans
4466 Yourref
4467 \family default
4468 : Your ref.
4469 \end_layout
4470
4471 \begin_layout Itemize
4472
4473 \family sans
4474 Yourmail
4475 \family default
4476 : Your letter of.
4477 \end_layout
4478
4479 \begin_layout Itemize
4480
4481 \family sans
4482 Myref
4483 \family default
4484 : Our ref.
4485 \end_layout
4486
4487 \begin_layout Itemize
4488
4489 \family sans
4490 Customer
4491 \family default
4492 : Customer no.
4493 \end_layout
4494
4495 \begin_layout Itemize
4496
4497 \family sans
4498 Invoice
4499 \family default
4500 : Invoice no.
4501 \end_layout
4502
4503 \begin_layout Subsubsection
4504 The new letter class: letter (koma-script v.2)
4505 \end_layout
4506
4507 \begin_layout Standard
4508 by 
4509 \noun on
4510 Jürgen Spitzmüller
4511 \end_layout
4512
4513 \begin_layout Standard
4514 \begin_inset VSpace medskip
4515 \end_inset
4516
4517
4518 \end_layout
4519
4520 \begin_layout Standard
4521 \noindent
4522 Koma-Script version 2.8 has introduced a new letter class 
4523 \family typewriter
4524 scrlttr2
4525 \family default
4526  which supersedes the now unsupported 
4527 \family typewriter
4528 scrlettr
4529 \family default
4530 .
4531  It has — on the \SpecialChar LaTeX
4532  side — a completely new interface and is not compatible
4533  with the old class.
4534  Therefore, \SpecialChar LyX
4535  supports both, though it is recommended you use the new class.
4536 \end_layout
4537
4538 \begin_layout Standard
4539 This class covers the same functionality as 
4540 \emph on
4541 letter (koma-script),
4542 \emph default
4543  and a few more.
4544  The basic items are 
4545 \family sans
4546 Address
4547 \family default
4548  (receiver's address, same as 
4549 \family sans
4550 Letter
4551 \family default
4552  in the old layout), 
4553 \family sans
4554 Opening
4555 \family default
4556 , and 
4557 \family sans
4558 Closing
4559 \family default
4560 .
4561  
4562 \family sans
4563 NextAddress
4564 \family default
4565  will start a new letter (i.
4566 \begin_inset space \thinspace{}
4567 \end_inset
4568
4569 e.
4570 \begin_inset space \space{}
4571 \end_inset
4572
4573 you can write several letters per document).
4574  New elements are sender's 
4575 \family sans
4576 E-Mail
4577 \family default
4578
4579 \family sans
4580 URL
4581 \family default
4582
4583 \family sans
4584 Fax
4585 \family default
4586
4587 \family sans
4588 Bank
4589 \family default
4590  and the possibility to use a 
4591 \family sans
4592 Logo
4593 \family default
4594  (via 
4595 \family sans
4596 Insert\SpecialChar menuseparator
4597 Graphics
4598 \family default
4599 ) in the header.
4600 \end_layout
4601
4602 \begin_layout Standard
4603 The biggest improvement is, though, that the letter's layout is configurable
4604  to meet almost any needs.
4605  This can be done via the preamble or with a special style file (Letter
4606  Class Option, extension 
4607 \family typewriter
4608 *.lco
4609 \family default
4610 ), that will be read in as a class option.
4611 \begin_inset Foot
4612 status collapsed
4613
4614 \begin_layout Plain Layout
4615 The KOMA package comes with some default 
4616 \family typewriter
4617 *.lco
4618 \family default
4619  files.
4620  There is, for instance, a 
4621 \family typewriter
4622 DIN.lco
4623 \family default
4624  file that follows german typesetting rules, or a 
4625 \family typewriter
4626 KOMAold.lco
4627 \family default
4628  that provides the default layout of the old 
4629 \family typewriter
4630 scrlettr
4631 \family default
4632  class.
4633  The latter can be loaded with the class option 
4634 \family typewriter
4635 KOMAold
4636 \family default
4637 , inserted via the 
4638 \family sans
4639 Layout\SpecialChar menuseparator
4640 Document\SpecialChar menuseparator
4641 Extra Options
4642 \family default
4643  field.
4644 \end_layout
4645
4646 \end_inset
4647
4648  Have a look at the
4649 \change_deleted 564990737 1671617922
4650  
4651 \emph on
4652 koma-letter2
4653 \change_unchanged
4654
4655 \emph default
4656  template 
4657 \change_deleted 564990737 1671617938
4658 that is included in \SpecialChar LyX
4659  for examples
4660 \change_inserted 564990737 1671617997
4661  in 
4662 \family sans
4663 \bar under
4664 \lang american
4665 F
4666 \bar default
4667 ile\SpecialChar menuseparator
4668 New
4669 \begin_inset space ~
4670 \end_inset
4671
4672 fro
4673 \bar under
4674 m
4675 \bar default
4676
4677 \begin_inset space ~
4678 \end_inset
4679
4680 Template\SpecialChar menuseparator
4681 Letters
4682 \lang english
4683 \SpecialChar menuseparator
4684 KOMA-Script Letter (V.2)
4685 \change_unchanged
4686
4687 \family default
4688 .
4689  A detailed description is to be found in the Koma-Script documentation
4690  (
4691 \emph on
4692 scrguide
4693 \emph default
4694 ).
4695 \end_layout
4696
4697 \begin_layout Subsubsection
4698 Problems
4699 \end_layout
4700
4701 \begin_layout Standard
4702 Visualizing the Koma-Script document classes in \SpecialChar LyX
4703 , the \SpecialChar LyX
4704  internals cause some
4705  problems.
4706 \end_layout
4707
4708 \begin_layout Itemize
4709 The chapter number of a 
4710 \family sans
4711 Chapter
4712 \family default
4713  type appears on a line of its own above the chapter heading instead of
4714  appearing in the same line ahead of it.
4715  The cause for that is the \SpecialChar LyX
4716  internal behavior for the labeltype 
4717 \family sans
4718 Counter_Chapter
4719 \family default
4720  in the layout file.
4721 \end_layout
4722
4723 \begin_layout Itemize
4724 The headings of the types 
4725 \family sans
4726 Addchap
4727 \family default
4728  and 
4729 \family sans
4730 Addsec
4731 \family default
4732  are only put in the 
4733 \begin_inset Quotes eld
4734 \end_inset
4735
4736 true
4737 \begin_inset Quotes erd
4738 \end_inset
4739
4740  \SpecialChar LaTeX
4741  table of contents, but not in the \SpecialChar LyX
4742  table of contents (
4743 \family sans
4744 Document\SpecialChar menuseparator
4745 Table
4746 \begin_inset space ~
4747 \end_inset
4748
4749 of
4750 \begin_inset space ~
4751 \end_inset
4752
4753 Contents
4754 \family default
4755 ).
4756 \end_layout
4757
4758 \begin_layout Itemize
4759 The paragraphs in a 
4760 \emph on
4761 letter
4762 \emph default
4763  document class appear in a skip separation mode, not indented.
4764  This is the standard behavior, no special \SpecialChar LaTeX
4765  commands are needed for that.
4766  But in the 
4767 \family sans
4768 Document\SpecialChar menuseparator
4769 Settings
4770 \family default
4771  dialog the corresponding radio button indicates 
4772 \family sans
4773 Indent
4774 \family default
4775 .
4776  A 
4777 \family sans
4778 Skip
4779 \family default
4780  value always has the effect that extra \SpecialChar LaTeX
4781  commands are inserted in the document
4782  to produce the gap, which is not what is wanted in this case.
4783 \end_layout
4784
4785 \begin_layout Subsection
4786
4787 \change_inserted 564990737 1670924924
4788 Polish M.
4789 \begin_inset space \thinspace{}
4790 \end_inset
4791
4792 W.
4793 \begin_inset space \space{}
4794 \end_inset
4795
4796 collection
4797 \change_deleted 564990737 1670924933
4798 Article (mwart), book (mwbk) and report (mwrep)
4799 \begin_inset Argument status
4800 status collapsed
4801
4802 \begin_layout Plain Layout
4803 The 
4804 \family typewriter
4805 mw
4806 \family default
4807  Classes
4808 \end_layout
4809
4810 \end_inset
4811
4812
4813 \change_unchanged
4814
4815 \end_layout
4816
4817 \begin_layout Standard
4818 by 
4819 \noun on
4820 Tomasz Luczak
4821 \end_layout
4822
4823 \begin_layout Standard
4824 The \SpecialChar LyX
4825  document classes 
4826 \emph on
4827 article (mwart)
4828 \emph default
4829
4830 \emph on
4831 report (mwrep)
4832 \emph default
4833  and 
4834 \emph on
4835 book
4836 \emph default
4837  
4838 \emph on
4839 (mwbk)
4840 \emph default
4841  correspond to the \SpecialChar LaTeX
4842  document classes 
4843 \family typewriter
4844 mwart.cls
4845 \family default
4846
4847 \family typewriter
4848 mwrep.cls
4849 \family default
4850  and 
4851 \family typewriter
4852 mwbk.cls
4853 \family default
4854 , resp.
4855  They are replacements for the standard document classes 
4856 \family typewriter
4857 article.cls
4858 \family default
4859
4860 \family typewriter
4861 report.cls
4862 \family default
4863  and 
4864 \family typewriter
4865 book.cls
4866 \family default
4867 , resp., and fit better to Polish typography conventions in a number of points.
4868  
4869 \end_layout
4870
4871 \begin_layout Standard
4872 Basic differences:
4873 \end_layout
4874
4875 \begin_layout Itemize
4876 Unnumbered titles (with star, e.
4877 \begin_inset space \thinspace{}
4878 \end_inset
4879
4880 g.
4881 \begin_inset space \space{}
4882 \end_inset
4883
4884
4885 \family sans
4886 Section*
4887 \family default
4888 ) are added into table of contents,
4889 \end_layout
4890
4891 \begin_layout Itemize
4892 Additional page styles:
4893 \end_layout
4894
4895 \begin_deeper
4896 \begin_layout Description
4897 uheadings header with separated lines,
4898 \end_layout
4899
4900 \begin_layout Description
4901 myheadings custom header, contents headers via commands: 
4902 \family typewriter
4903
4904 \backslash
4905 markright
4906 \family default
4907  and 
4908 \family typewriter
4909
4910 \backslash
4911 markboth
4912 \family default
4913 ,
4914 \end_layout
4915
4916 \begin_layout Description
4917 myuheadings custom header with separated lines,
4918 \end_layout
4919
4920 \begin_layout Description
4921 outer page number is placed on outer side of page
4922 \end_layout
4923
4924 \end_deeper
4925 \begin_layout Itemize
4926 Options 
4927 \end_layout
4928
4929 \begin_deeper
4930 \begin_layout Description
4931 rmheadings serif titles — default,
4932 \end_layout
4933
4934 \begin_layout Description
4935 sfheadings sansserif titles,
4936 \end_layout
4937
4938 \begin_layout Description
4939 authortitle on title page first placed is author next title — default,
4940 \end_layout
4941
4942 \begin_layout Description
4943 titleauthor on title page first placed is title next author,
4944 \end_layout
4945
4946 \begin_layout Description
4947 withmarginpar reserve place on page for margins.
4948 \end_layout
4949
4950 \end_deeper
4951 \begin_layout Section
4952
4953 \change_inserted 564990737 1670439534
4954 Articles
4955 \end_layout
4956
4957 \begin_layout Standard
4958
4959 \change_inserted 564990737 1670794710
4960 See also the document classes in the Collections (section
4961 \begin_inset space ~
4962 \end_inset
4963
4964
4965 \begin_inset CommandInset ref
4966 LatexCommand ref
4967 nolink "false"
4968 reference "sec:Collections"
4969
4970 \end_inset
4971
4972 ).
4973 \end_layout
4974
4975 \begin_layout Subsection
4976
4977 \change_inserted 564990737 1670794716
4978
4979 \lang american
4980 A&A Paper
4981 \end_layout
4982
4983 \begin_layout Standard
4984
4985 \change_inserted 564990737 1670794716
4986
4987 \lang american
4988 Original by 
4989 \noun on
4990 Peter Sütterlin
4991 \noun default
4992 ; updated by the \SpecialChar LyX
4993  Team
4994 \end_layout
4995
4996 \begin_layout Subsubsection
4997
4998 \change_inserted 564990737 1670794716
4999
5000 \lang american
5001 Introduction
5002 \end_layout
5003
5004 \begin_layout Standard
5005
5006 \change_inserted 564990737 1670794716
5007
5008 \lang american
5009 This section describes how \SpecialChar LyX
5010  can be used to write articles for submission
5011  to the scientific journal 
5012 \emph on
5013 Astronomy and Astrophysics
5014 \emph default
5015  (
5016 \begin_inset CommandInset href
5017 LatexCommand href
5018 name "aa-package"
5019 target "http://ftp.edpsciences.org/pub/aa/aa-package.zip"
5020 literal "false"
5021
5022 \end_inset
5023
5024 ) using Version 9.1 of the document class 
5025 \family typewriter
5026 aa.cls
5027 \family default
5028 ; information about it is available at 
5029 \begin_inset Flex URL
5030 status collapsed
5031
5032 \begin_layout Plain Layout
5033
5034 \change_inserted 564990737 1670794716
5035
5036 https://www.aanda.org/for-authors/latex-issues/texnical-background-information
5037 \change_unchanged
5038
5039 \end_layout
5040
5041 \end_inset
5042
5043 .
5044 \end_layout
5045
5046 \begin_layout Standard
5047
5048 \change_inserted 564990737 1670794716
5049
5050 \lang american
5051 A manual comes together with the package and should be consulted before
5052  installing this document class as described in the 
5053 \emph on
5054 Installing New Document Classe
5055 \emph default
5056 s section of the 
5057 \emph on
5058 Customization
5059 \emph default
5060  manual.
5061  
5062 \end_layout
5063
5064 \begin_layout Standard
5065
5066 \change_inserted 564990737 1670794716
5067
5068 \lang american
5069 \begin_inset Note Greyedout
5070 status open
5071
5072 \begin_layout Plain Layout
5073
5074 \change_inserted 564990737 1670794716
5075
5076 \lang american
5077 Please note that the publisher of the journal was changed from Springer
5078  to EDP Sciences starting January 1, 2001.
5079  That change also involved some slight changes to the style files, namely
5080  the removal of the thesaurus command.
5081  If you have an older version installed, please upgrade.
5082  For information about compatibility with the old (version 4) layout, please
5083  refer to the comments in 
5084 \family typewriter
5085 \SpecialChar LyX
5086 Dir/layouts/aapaper.layout
5087 \family default
5088 .
5089 \end_layout
5090
5091 \end_inset
5092
5093
5094 \end_layout
5095
5096 \begin_layout Subsubsection
5097
5098 \change_inserted 564990737 1670794716
5099
5100 \lang american
5101 Getting started
5102 \end_layout
5103
5104 \begin_layout Standard
5105
5106 \change_inserted 564990737 1671617129
5107
5108 \lang american
5109 It is recommended you start from the template in the menu 
5110 \family sans
5111 \bar under
5112 F
5113 \bar default
5114 ile\SpecialChar menuseparator
5115 New
5116 \begin_inset space ~
5117 \end_inset
5118
5119 fro
5120 \bar under
5121 m
5122 \bar default
5123
5124 \begin_inset space ~
5125 \end_inset
5126
5127 Template
5128 \lang english
5129 \SpecialChar menuseparator
5130 Articles\SpecialChar menuseparator
5131 Astronomy & Astrophysics
5132 \family default
5133 \lang american
5134 .
5135  If you are not using the template, note the following settings:
5136 \end_layout
5137
5138 \begin_layout Itemize
5139
5140 \change_inserted 564990737 1670794716
5141
5142 \lang american
5143 Select 
5144 \family sans
5145 article (A&A)
5146 \family default
5147  in the 
5148 \family sans
5149 \bar under
5150 D
5151 \bar default
5152 ocument\SpecialChar menuseparator
5153
5154 \bar under
5155 S
5156 \bar default
5157 ettings\SpecialChar menuseparator
5158 Document
5159 \begin_inset space ~
5160 \end_inset
5161
5162 Class
5163 \family default
5164  dialog (OK, that one was obvious).
5165 \end_layout
5166
5167 \begin_layout Itemize
5168
5169 \change_inserted 564990737 1670794716
5170
5171 \lang american
5172 Don't change the 
5173 \family sans
5174 Headings
5175 \begin_inset space ~
5176 \end_inset
5177
5178
5179 \bar under
5180 s
5181 \bar default
5182 tyle
5183 \family default
5184  in the 
5185 \family sans
5186 Page
5187 \begin_inset space ~
5188 \end_inset
5189
5190 Layout
5191 \family default
5192  dialog: leave it set to 
5193 \family sans
5194 Default
5195 \family default
5196 .
5197  The whole layout is done by the macros, you shouldn't change anything.
5198 \end_layout
5199
5200 \begin_layout Subsubsection
5201
5202 \change_inserted 564990737 1670794716
5203
5204 \lang american
5205 The header block
5206 \end_layout
5207
5208 \begin_layout Standard
5209
5210 \change_inserted 564990737 1670794716
5211
5212 \lang american
5213 First thing to enter is the header information.
5214  It consists of five entries, of which one is optional.
5215  They are
5216 \end_layout
5217
5218 \begin_layout Itemize
5219
5220 \change_inserted 564990737 1670794716
5221
5222 \family sans
5223 \lang american
5224 Title
5225 \family default
5226 : [required] 
5227 \end_layout
5228
5229 \begin_layout Itemize
5230
5231 \change_inserted 564990737 1670794716
5232
5233 \family sans
5234 \lang american
5235 Subtitle
5236 \family default
5237 : [optional] 
5238 \end_layout
5239
5240 \begin_layout Itemize
5241
5242 \change_inserted 564990737 1670794716
5243
5244 \family sans
5245 \lang american
5246 Author
5247 \family default
5248 : [required]
5249 \end_layout
5250
5251 \begin_layout Itemize
5252
5253 \change_inserted 564990737 1670794716
5254
5255 \family typewriter
5256 \lang american
5257 Institute
5258 \family default
5259 : [required]
5260 \end_layout
5261
5262 \begin_layout Itemize
5263
5264 \change_inserted 564990737 1670794716
5265
5266 \family sans
5267 \lang american
5268 Date
5269 \family default
5270 : [required].
5271  Suggested format is 
5272 \family typewriter
5273 Received: <date>; Accepted <date> 
5274 \end_layout
5275
5276 \begin_layout Standard
5277
5278 \change_inserted 564990737 1670794716
5279
5280 \lang american
5281 Although the order of the single header entries doesn't matter it is advised
5282  to keep the above sequence, just to get the best optics and meets the layout
5283  of the real document.
5284 \end_layout
5285
5286 \begin_layout Standard
5287
5288 \change_inserted 564990737 1670794716
5289
5290 \lang american
5291 If you want to place footnotes in the header block, e.
5292 \begin_inset space \thinspace{}
5293 \end_inset
5294
5295 g.
5296 \begin_inset space \space{}
5297 \end_inset
5298
5299 to state your present address, just use the standard footnote via the menu
5300  
5301 \family sans
5302 \bar under
5303 I
5304 \bar default
5305 nsert\SpecialChar menuseparator
5306
5307 \bar under
5308 F
5309 \bar default
5310 ootnote.
5311
5312 \family default
5313  \SpecialChar LyX
5314  will automagically use the term 
5315 \family typewriter
5316
5317 \backslash
5318 thanks{}
5319 \family default
5320  in that case.
5321 \end_layout
5322
5323 \begin_layout Standard
5324
5325 \change_inserted 564990737 1670794716
5326
5327 \lang american
5328 In addition to these topics, the macros use three additional \SpecialChar LaTeX
5329  commands that
5330  have no counterpart in \SpecialChar LyX
5331 :
5332 \end_layout
5333
5334 \begin_layout Itemize
5335
5336 \change_inserted 564990737 1670794716
5337
5338 \family typewriter
5339 \lang american
5340
5341 \backslash
5342 and
5343 \family default
5344  to separate different names for more than one author and institute, respectivel
5345 y.
5346 \end_layout
5347
5348 \begin_layout Itemize
5349
5350 \change_inserted 564990737 1670794716
5351
5352 \family typewriter
5353 \lang american
5354
5355 \backslash
5356 inst{<nr>}
5357 \family default
5358  to mark corresponding author/institute pairs.
5359  The institutes are numbered sequentially as they appear in the 
5360 \family sans
5361 Institute
5362 \family default
5363  field, so you have to put a marker to each author.
5364 \end_layout
5365
5366 \begin_layout Itemize
5367
5368 \change_inserted 564990737 1670794716
5369
5370 \family typewriter
5371 \lang american
5372
5373 \backslash
5374 email{address}
5375 \family default
5376  to supply an email address for fast contact.
5377 \end_layout
5378
5379 \begin_layout Standard
5380
5381 \change_inserted 564990737 1671642374
5382
5383 \lang american
5384 In all cases, the appropriate command has to be entered as \SpecialChar TeX
5385  code in \SpecialChar LyX
5386 .
5387  See the examples in the template and in 
5388 \family sans
5389 \lang british
5390 File\SpecialChar menuseparator
5391 Open Example\SpecialChar menuseparator
5392 Articles\SpecialChar menuseparator
5393 Astronomy & Astrophysics
5394 \family default
5395 \lang american
5396 .
5397 \change_unchanged
5398
5399 \end_layout
5400
5401 \begin_layout Subsubsection
5402
5403 \change_inserted 564990737 1670794716
5404
5405 \lang american
5406 The abstract
5407 \end_layout
5408
5409 \begin_layout Standard
5410
5411 \change_inserted 564990737 1670794716
5412
5413 \lang american
5414 The abstract should immediately follow the header block and must contain
5415  five tokens: 
5416 \family typewriter
5417
5418 \backslash
5419 abstract{}{}{}{}{}
5420 \family default
5421  
5422 \end_layout
5423
5424 \begin_layout Enumerate
5425
5426 \change_inserted 564990737 1670794716
5427
5428 \family typewriter
5429 \lang american
5430 context heading
5431 \family default
5432  (optional) {} leave it empty if necessary 
5433 \end_layout
5434
5435 \begin_layout Enumerate
5436
5437 \change_inserted 564990737 1670794716
5438
5439 \family typewriter
5440 \lang american
5441 aims heading
5442 \family default
5443  (mandatory) {} 
5444 \end_layout
5445
5446 \begin_layout Enumerate
5447
5448 \change_inserted 564990737 1670794716
5449
5450 \family typewriter
5451 \lang american
5452 methods heading
5453 \family default
5454  (mandatory) {} 
5455 \end_layout
5456
5457 \begin_layout Enumerate
5458
5459 \change_inserted 564990737 1670794716
5460
5461 \family typewriter
5462 \lang american
5463 results heading
5464 \family default
5465  (mandatory) {} 
5466 \end_layout
5467
5468 \begin_layout Enumerate
5469
5470 \change_inserted 564990737 1670794716
5471
5472 \family typewriter
5473 \lang american
5474 conclusions heading
5475 \family default
5476  (optional) {} leave it empty if necessary 
5477 \end_layout
5478
5479 \begin_layout Standard
5480
5481 \change_inserted 564990737 1670794716
5482
5483 \lang american
5484 (NB.
5485  This structure not shown in 
5486 \emph on
5487 aa_sample.lyx.
5488 \emph default
5489 )
5490 \end_layout
5491
5492 \begin_layout Subsubsection
5493
5494 \change_inserted 564990737 1670794716
5495
5496 \lang american
5497 Supported environments
5498 \end_layout
5499
5500 \begin_layout Standard
5501
5502 \change_inserted 564990737 1670794716
5503
5504 \lang american
5505 The A&A paper layout supports the following environments for structuring
5506  your text:
5507 \end_layout
5508
5509 \begin_layout Itemize
5510
5511 \change_inserted 564990737 1670794716
5512
5513 \family sans
5514 \lang american
5515 Standard
5516 \end_layout
5517
5518 \begin_layout Itemize
5519
5520 \change_inserted 564990737 1670794716
5521
5522 \family sans
5523 \lang american
5524 Section
5525 \end_layout
5526
5527 \begin_layout Itemize
5528
5529 \change_inserted 564990737 1670794716
5530
5531 \family sans
5532 \lang american
5533 Subsection
5534 \end_layout
5535
5536 \begin_layout Itemize
5537
5538 \change_inserted 564990737 1670794716
5539
5540 \family sans
5541 \lang american
5542 Subsubsection
5543 \end_layout
5544
5545 \begin_layout Itemize
5546
5547 \change_inserted 564990737 1670794716
5548
5549 \family sans
5550 \lang american
5551 Itemize
5552 \end_layout
5553
5554 \begin_layout Itemize
5555
5556 \change_inserted 564990737 1670794716
5557
5558 \family sans
5559 \lang american
5560 Enumerate
5561 \end_layout
5562
5563 \begin_layout Itemize
5564
5565 \change_inserted 564990737 1670794716
5566
5567 \family sans
5568 \lang american
5569 Description
5570 \end_layout
5571
5572 \begin_layout Itemize
5573
5574 \change_inserted 564990737 1670794716
5575
5576 \family sans
5577 \lang american
5578 Caption
5579 \end_layout
5580
5581 \begin_layout Itemize
5582
5583 \change_inserted 564990737 1670794716
5584
5585 \family sans
5586 \lang american
5587 Abstract
5588 \end_layout
5589
5590 \begin_layout Itemize
5591
5592 \change_inserted 564990737 1670794716
5593
5594 \family sans
5595 \lang american
5596 Acknowledgment
5597 \end_layout
5598
5599 \begin_layout Itemize
5600
5601 \change_inserted 564990737 1670794716
5602
5603 \family sans
5604 \lang american
5605 Bibliography
5606 \end_layout
5607
5608 \begin_layout Itemize
5609
5610 \change_inserted 564990737 1670794716
5611
5612 \family sans
5613 \lang american
5614 \SpecialChar LaTeX
5615
5616 \end_layout
5617
5618 \begin_layout Subsubsection
5619
5620 \change_inserted 564990737 1670794716
5621
5622 \lang american
5623 Commands not supported by \SpecialChar LyX
5624
5625 \end_layout
5626
5627 \begin_layout Standard
5628
5629 \change_inserted 564990737 1670794716
5630
5631 \lang american
5632 Some commands are not yet supported by the 
5633 \family sans
5634 paper (A&A)
5635 \family default
5636  layout for \SpecialChar LyX
5637 .
5638  Some have already been mentioned.
5639  For the sake of completeness, they are listed all together here:
5640 \end_layout
5641
5642 \begin_layout Itemize
5643
5644 \change_inserted 564990737 1670794716
5645
5646 \family typewriter
5647 \lang american
5648
5649 \backslash
5650 and
5651 \end_layout
5652
5653 \begin_layout Itemize
5654
5655 \change_inserted 564990737 1670794716
5656
5657 \family typewriter
5658 \lang american
5659
5660 \backslash
5661 email
5662 \end_layout
5663
5664 \begin_layout Itemize
5665
5666 \change_inserted 564990737 1670794716
5667
5668 \family typewriter
5669 \lang american
5670
5671 \backslash
5672 inst{}
5673 \end_layout
5674
5675 \begin_layout Itemize
5676
5677 \change_inserted 564990737 1670794716
5678
5679 \family typewriter
5680 \lang american
5681
5682 \backslash
5683 keywords{}
5684 \end_layout
5685
5686 \begin_layout Itemize
5687
5688 \change_inserted 564990737 1670794716
5689
5690 \family typewriter
5691 \lang american
5692
5693 \backslash
5694 object{}
5695 \end_layout
5696
5697 \begin_layout Standard
5698
5699 \change_inserted 564990737 1670794716
5700
5701 \lang american
5702 If you want to use any of these commands, you have to enter them yourself.
5703  
5704 \family typewriter
5705 Do not forget to use
5706 \family sans
5707  
5708 \bar under
5709 I
5710 \bar default
5711 nsert\SpecialChar menuseparator
5712 \SpecialChar TeX
5713
5714 \begin_inset space ~
5715 \end_inset
5716
5717 Code
5718 \family default
5719 \series bold
5720 !
5721 \end_layout
5722
5723 \begin_layout Subsubsection
5724
5725 \change_inserted 564990737 1670794716
5726
5727 \lang american
5728 Figure and Table Floats
5729 \end_layout
5730
5731 \begin_layout Standard
5732
5733 \change_inserted 564990737 1670794716
5734
5735 \lang american
5736 \SpecialChar LyX
5737  provides support for the necessary float environments 
5738 \family sans
5739 figure, figure*, table
5740 \family default
5741  and 
5742 \family sans
5743 table*
5744 \family default
5745 , therefore we won't tell much about it here.
5746  Refer to the 
5747 \emph on
5748 User's
5749 \begin_inset space ~
5750 \end_inset
5751
5752 Guide
5753 \emph default
5754 .
5755  Just remember that tables should be left-aligned.
5756  For that, select the table and change the alignment in 
5757 \family sans
5758 \bar under
5759 E
5760 \bar default
5761 dit\SpecialChar menuseparator
5762
5763 \bar under
5764 P
5765 \bar default
5766 aragraph
5767 \begin_inset space ~
5768 \end_inset
5769
5770 Settings.
5771 \end_layout
5772
5773 \begin_layout Standard
5774
5775 \change_inserted 564990737 1670794716
5776
5777 \lang american
5778 There is only one special thing: the figures with a caption beside the figure.
5779  To create such a figure, you have to do the following:
5780 \end_layout
5781
5782 \begin_layout Enumerate
5783
5784 \change_inserted 564990737 1670794716
5785
5786 \lang american
5787 Create a wide figure float: 
5788 \family sans
5789 \bar under
5790 I
5791 \bar default
5792 nsert\SpecialChar menuseparator
5793 Flo
5794 \bar under
5795 a
5796 \bar default
5797 t\SpecialChar menuseparator
5798 Figure
5799 \family default
5800 , then, from within the float, use the menu 
5801 \family sans
5802 \bar under
5803 E
5804 \bar default
5805 dit\SpecialChar menuseparator
5806 Flo
5807 \bar under
5808 a
5809 \bar default
5810 t
5811 \begin_inset space ~
5812 \end_inset
5813
5814 Settings
5815 \family default
5816  and check 
5817 \family sans
5818 \bar under
5819 S
5820 \bar default
5821 pan
5822 \begin_inset space ~
5823 \end_inset
5824
5825 columns
5826 \family default
5827  in the 
5828 \family sans
5829 float
5830 \family default
5831  dialog.
5832 \end_layout
5833
5834 \begin_layout Enumerate
5835
5836 \change_inserted 564990737 1670794716
5837
5838 \lang american
5839 Enter your caption text.
5840 \end_layout
5841
5842 \begin_layout Enumerate
5843
5844 \change_inserted 564990737 1670794716
5845
5846 \lang american
5847 Press 
5848 \family sans
5849 Return
5850 \family default
5851  to move the cursor above the caption.
5852 \end_layout
5853
5854 \begin_layout Enumerate
5855
5856 \change_inserted 564990737 1670794716
5857
5858 \lang american
5859 Insert your figure
5860 \end_layout
5861
5862 \begin_layout Enumerate
5863
5864 \change_inserted 564990737 1670794716
5865
5866 \lang american
5867 Position the cursor after the figure and insert a horizontal fill by using
5868  the menu: 
5869 \family sans
5870 \bar under
5871 I
5872 \bar default
5873 nsert\SpecialChar menuseparator
5874 F
5875 \bar under
5876 o
5877 \bar default
5878 rmatting\SpecialChar menuseparator
5879 H
5880 \bar under
5881 o
5882 \bar default
5883 rizontal
5884 \begin_inset space ~
5885 \end_inset
5886
5887 Space
5888 \family default
5889  to open the 
5890 \family sans
5891 space
5892 \family default
5893  dialog and select the 
5894 \family sans
5895 Horizontal fill
5896 \family default
5897  option from the 
5898 \family sans
5899 \bar under
5900 S
5901 \bar default
5902 pacing
5903 \family default
5904  pull-down menu.
5905 \end_layout
5906
5907 \begin_layout Enumerate
5908
5909 \change_inserted 564990737 1670794716
5910
5911 \lang american
5912 Switch to \SpecialChar LaTeX
5913  mode: 
5914 \family sans
5915 M-c
5916 \begin_inset space ~
5917 \end_inset
5918
5919 t
5920 \family default
5921 .
5922 \end_layout
5923
5924 \begin_layout Enumerate
5925
5926 \change_inserted 564990737 1670794716
5927
5928 \lang american
5929 Enter 
5930 \family typewriter
5931
5932 \backslash
5933 parbox[b]{55mm}{
5934 \family default
5935  
5936 \emph on
5937 Do not close the brace!
5938 \end_layout
5939
5940 \begin_layout Enumerate
5941
5942 \change_inserted 564990737 1670794716
5943
5944 \lang american
5945 Position the cursor behind the caption text, switch to \SpecialChar LaTeX
5946  mode and insert
5947  the closing brace: 
5948 \family sans
5949 M-c
5950 \begin_inset space ~
5951 \end_inset
5952
5953 t
5954 \family default
5955  
5956 \family typewriter
5957 }
5958 \family default
5959 .
5960 \end_layout
5961
5962 \begin_layout Standard
5963
5964 \change_inserted 564990737 1671642458
5965
5966 \lang american
5967 Also, refer to the figures in the file in 
5968 \family sans
5969 \lang british
5970 File\SpecialChar menuseparator
5971 Open Example\SpecialChar menuseparator
5972 Articles\SpecialChar menuseparator
5973 Astronomy & Astrophysics
5974 \family default
5975 \lang american
5976 .
5977 \end_layout
5978
5979 \begin_layout Subsubsection
5980
5981 \change_inserted 564990737 1670794716
5982
5983 \lang american
5984 Referee layout
5985 \end_layout
5986
5987 \begin_layout Standard
5988
5989 \change_inserted 564990737 1670794716
5990
5991 \lang american
5992 For submission, the paper has to be formatted in a special double-spacing
5993  layout.
5994  For this purpose, you have to add the option 
5995 \family typewriter
5996 referee
5997 \family default
5998  to the 
5999 \family sans
6000 Cus
6001 \bar under
6002 t
6003 \bar default
6004 om Class
6005 \begin_inset space ~
6006 \end_inset
6007
6008 options
6009 \family default
6010  in the 
6011 \family sans
6012 \bar under
6013 D
6014 \bar default
6015 ocument\SpecialChar menuseparator
6016
6017 \bar under
6018 S
6019 \bar default
6020 ettings\SpecialChar menuseparator
6021 Document
6022 \begin_inset space ~
6023 \end_inset
6024
6025 Class
6026 \family default
6027  dialog.
6028  
6029 \end_layout
6030
6031 \begin_layout Subsubsection
6032
6033 \change_inserted 564990737 1670794716
6034
6035 \lang american
6036 The example paper
6037 \end_layout
6038
6039 \begin_layout Standard
6040
6041 \change_inserted 564990737 1671642520
6042
6043 \lang american
6044 The example in 
6045 \family sans
6046 \lang british
6047 File\SpecialChar menuseparator
6048 Open Example\SpecialChar menuseparator
6049 Articles\SpecialChar menuseparator
6050 Astronomy & Astrophysics
6051 \family default
6052 \lang american
6053  was written with \SpecialChar LyX
6054 .
6055  It is the example paper from the original macro package, 
6056 \family typewriter
6057 aa.dem
6058 \family default
6059  in the 
6060 \begin_inset CommandInset href
6061 LatexCommand href
6062 name "aa-package"
6063 target "http://ftp.edpsciences.org/pub/aa/aa-package.zip"
6064 literal "false"
6065
6066 \end_inset
6067
6068 , but translated to \SpecialChar LyX
6069  using the older unstructured abstract type.
6070  Use it for inspiration, and compare the \SpecialChar LaTeX
6071  code in 
6072 \family typewriter
6073 aa.dem
6074 \family default
6075  with the \SpecialChar LyX
6076  way of writing.
6077 \end_layout
6078
6079 \begin_layout Subsection
6080 AAS\SpecialChar TeX
6081
6082 \end_layout
6083
6084 \begin_layout Standard
6085 by 
6086 \noun on
6087 Mike Ressler
6088 \end_layout
6089
6090 \begin_layout Subsubsection
6091 Introduction
6092 \end_layout
6093
6094 \begin_layout Standard
6095 AAS\SpecialChar TeX
6096  is a set of macros produced by the American Astronomical Society to
6097  facilitate electronic manuscript submission to the three journals they
6098  publish: the Astrophysical Journal (including the Letters and Supplement),
6099  the Astronomical Journal, and the Publications of the Astronomical Society
6100  of the Pacific.
6101  \SpecialChar LyX
6102  has proven to be an excellent tool for generating these documents, especially
6103  given its equation, citation, and figure handling capabilities.
6104  \SpecialChar LyX
6105  requires version 5.0 (or higher) of these macros; preferably 6.0, which
6106  is the version described here, or higher.
6107  Versions prior to 5.0 are intended for use with \SpecialChar LaTeX
6108 2.09 and are fundamentally
6109  incompatible with \SpecialChar LyX
6110 .
6111  The AAS\SpecialChar TeX
6112  package may be downloaded from the AAS\SpecialChar TeX
6113  Web site
6114 \end_layout
6115
6116 \begin_layout Standard
6117 \begin_inset VSpace medskip
6118 \end_inset
6119
6120
6121 \end_layout
6122
6123 \begin_layout Standard
6124 \align center
6125 \begin_inset Flex URL
6126 status collapsed
6127
6128 \begin_layout Plain Layout
6129
6130 https://aas.org/aastex/aastex-downloads
6131 \end_layout
6132
6133 \end_inset
6134
6135
6136 \end_layout
6137
6138 \begin_layout Standard
6139 \begin_inset VSpace medskip
6140 \end_inset
6141
6142
6143 \end_layout
6144
6145 \begin_layout Standard
6146 A complete user guide is contained in that package and you should familiarize
6147  yourself with it thoroughly before embarking on writing a paper in \SpecialChar LyX
6148 .
6149  \SpecialChar LyX
6150  will not reduce the need to figure out all the AAS\SpecialChar TeX
6151  commands, it will only
6152  reduce the drudgery of typing everything in.
6153  It is your responsibility to ensure that the final exported \SpecialChar LaTeX
6154  document conforms
6155  completely to the requirements of the journal to which you are submitting
6156  your paper.
6157 \end_layout
6158
6159 \begin_layout Subsubsection
6160 Starting a New Paper
6161 \end_layout
6162
6163 \begin_layout Standard
6164 I strongly suggest that you start with the AAS\SpecialChar TeX
6165  template file.
6166  Click on 
6167 \family sans
6168 File\SpecialChar menuseparator
6169 New from
6170 \family default
6171  
6172 \family sans
6173 Template
6174 \change_inserted 564990737 1671617265
6175 \SpecialChar menuseparator
6176 Articles\SpecialChar menuseparator
6177 American Astronomical Society
6178 \change_deleted 564990737 1671617310
6179
6180 \family default
6181 , enter the new file name, then choose the 
6182 \family typewriter
6183 aastex6.lyx
6184 \family default
6185  template
6186 \change_unchanged
6187 .
6188  This will show the most common fields found in a manuscript.
6189  Simply overwrite the existing text (including the brackets, 
6190 \family typewriter
6191 <>
6192 \family default
6193 ) with the correct information.
6194  Many of the AAS\SpecialChar TeX
6195  commands and environments can be implemented directly in
6196  \SpecialChar LyX
6197 , but some cannot.
6198  For commands such as these, the \SpecialChar LaTeX
6199  code must be entered directly and marked
6200  as such.
6201  Such commands are referred to as \SpecialChar TeX
6202  code, or Evil Red Text.
6203  I tried to minimize the amount of \SpecialChar TeX
6204  code needed in an AAS\SpecialChar TeX
6205  document.
6206 \end_layout
6207
6208 \begin_layout Subsubsection
6209 Finishing Your Paper
6210 \end_layout
6211
6212 \begin_layout Standard
6213 When the paper is finished to your satisfaction and previews/prints correctly,
6214  there are a few 
6215 \begin_inset Quotes eld
6216 \end_inset
6217
6218 postprocessing
6219 \begin_inset Quotes erd
6220 \end_inset
6221
6222  actions which need to be done before you submit it to the journals.
6223  
6224 \end_layout
6225
6226 \begin_layout Enumerate
6227 Export your paper as a \SpecialChar LaTeX
6228  file (
6229 \family sans
6230 File\SpecialChar menuseparator
6231 Export\SpecialChar menuseparator
6232 \SpecialChar LaTeX
6233
6234 \family default
6235 ).
6236  
6237 \end_layout
6238
6239 \begin_layout Enumerate
6240 Edit the resulting 
6241 \family typewriter
6242 .tex
6243 \family default
6244  file with your favorite text editor
6245 \end_layout
6246
6247 \begin_deeper
6248 \begin_layout Enumerate
6249 remove the comment lines before the 
6250 \family typewriter
6251
6252 \backslash
6253 documentclass
6254 \family default
6255  command
6256 \end_layout
6257
6258 \begin_layout Enumerate
6259 remove the 
6260 \family typewriter
6261
6262 \backslash
6263 usepackage...{fontenc}
6264 \family default
6265  line if it appears (usually just after 
6266 \family typewriter
6267
6268 \backslash
6269 documentclass
6270 \family default
6271 }; also remove the 
6272 \family typewriter
6273
6274 \backslash
6275 secnumdepth
6276 \family default
6277  line if it appears.
6278 \end_layout
6279
6280 \begin_layout Enumerate
6281 remove everything between (and including) the 
6282 \family typewriter
6283
6284 \backslash
6285 makeatletter
6286 \family default
6287  and 
6288 \family typewriter
6289
6290 \backslash
6291 makeatother
6292 \family default
6293  commands, except for any commands you specifically put into the \SpecialChar LaTeX
6294  preamble
6295  (which should appear immediately after the 
6296 \begin_inset Quotes eld
6297 \end_inset
6298
6299 User specified \SpecialChar LaTeX
6300  commands
6301 \begin_inset Quotes erd
6302 \end_inset
6303
6304  comment in the 
6305 \family typewriter
6306 .tex
6307 \family default
6308  file).
6309 \end_layout
6310
6311 \end_deeper
6312 \begin_layout Enumerate
6313 Run the resulting file through \SpecialChar LaTeX
6314  to make sure it still processes correctly.
6315 \end_layout
6316
6317 \begin_layout Enumerate
6318 Reread the journal requirements to make sure your filenames and formats
6319  are correct.
6320 \end_layout
6321
6322 \begin_layout Enumerate
6323 Submit it.
6324 \end_layout
6325
6326 \begin_layout Subsubsection
6327 Comments On Specific Commands
6328 \end_layout
6329
6330 \begin_layout Standard
6331 I will not describe the detailed usage of the individual AAS\SpecialChar TeX
6332  commands: the
6333  AAS\SpecialChar TeX
6334  User Guide (
6335 \family typewriter
6336 aasguide.tex
6337 \family default
6338 ) gives a good description of each.
6339  Thus it's probably easiest for me to go down the list as found in the guide
6340  and offer comments where necessary.
6341  So let's begin \SpecialChar ldots
6342
6343 \end_layout
6344
6345 \begin_layout Paragraph
6346 Things that work as expected
6347 \end_layout
6348
6349 \begin_layout Standard
6350 Because they work as you might expect, I simply list them and the section
6351  they are found in: 
6352 \family typewriter
6353
6354 \backslash
6355 documentclass
6356 \family default
6357  (2.1.1), 
6358 \family typewriter
6359
6360 \backslash
6361 begin{document}
6362 \family default
6363  (2.2), 
6364 \family typewriter
6365
6366 \backslash
6367 title
6368 \family default
6369  (2.3), 
6370 \family typewriter
6371
6372 \backslash
6373 author
6374 \family default
6375  (2.3), 
6376 \family typewriter
6377
6378 \backslash
6379 affil
6380 \family default
6381  (2.3), 
6382 \family typewriter
6383
6384 \backslash
6385 abstract
6386 \family default
6387  (2.4), 
6388 \family typewriter
6389
6390 \backslash
6391 keywords
6392 \family default
6393  (2.5), 
6394 \family typewriter
6395
6396 \backslash
6397 section
6398 \family default
6399  (2.7), 
6400 \family typewriter
6401
6402 \backslash
6403 subsection
6404 \family default
6405  (2.7), 
6406 \family typewriter
6407
6408 \backslash
6409 subsubsection
6410 \family default
6411  (2.7), 
6412 \family typewriter
6413
6414 \backslash
6415 paragraph
6416 \family default
6417  (2.7), 
6418 \family typewriter
6419
6420 \backslash
6421 facility
6422 \family default
6423  (2.10), 
6424 \family typewriter
6425
6426 \backslash
6427 begin{displaymath}
6428 \family default
6429  (2.12), 
6430 \family typewriter
6431
6432 \backslash
6433 begin{equation}
6434 \family default
6435  (2.12), 
6436 \family typewriter
6437
6438 \backslash
6439 begin{eqnarray}
6440 \family default
6441  (2.12), 
6442 \family typewriter
6443
6444 \backslash
6445 begin{mathletters}
6446 \family default
6447  (2.12), 
6448 \family typewriter
6449
6450 \backslash
6451 begin{thebibliography}
6452 \family default
6453  (2.13.1), 
6454 \family typewriter
6455
6456 \backslash
6457 bibitem
6458 \family default
6459  (2.13.2), all the cite commands and their variations (2.13.2), the generic
6460  graphicx figure commands (2.14.1), 
6461 \family typewriter
6462
6463 \backslash
6464 begin{table}
6465 \family default
6466  (2.15.4), 
6467 \family typewriter
6468
6469 \backslash
6470 begin{tabular}
6471 \family default
6472  (2.15.4), 
6473 \family typewriter
6474
6475 \backslash
6476 caption
6477 \family default
6478  (2.15.4), 
6479 \family typewriter
6480
6481 \backslash
6482 label
6483 \family default
6484  (2.15.4, amongst other places), 
6485 \family typewriter
6486
6487 \backslash
6488 tablerefs
6489 \family default
6490  (2.15.5), 
6491 \family typewriter
6492
6493 \backslash
6494 tablecomments
6495 \family default
6496  (2.15.5), 
6497 \family typewriter
6498
6499 \backslash
6500 url
6501 \family default
6502  (2.17.4), 
6503 \family typewriter
6504
6505 \backslash
6506 end{document}
6507 \family default
6508  (2.18).
6509 \end_layout
6510
6511 \begin_layout Standard
6512 The following style options also work correctly: 
6513 \family typewriter
6514 longabstract
6515 \family default
6516  (2.4), 
6517 \family typewriter
6518 preprint
6519 \family default
6520  (3.2.1), 
6521 \family typewriter
6522 preprint2
6523 \family default
6524  (3.2.2), 
6525 \family typewriter
6526 eqsecnum
6527 \family default
6528  (3.3), 
6529 \family typewriter
6530 flushrt
6531 \family default
6532  (3.4).
6533  Simply put them in the 
6534 \family sans
6535 Options
6536 \family default
6537  box in 
6538 \family sans
6539 Layout\SpecialChar menuseparator
6540 Document
6541 \family default
6542 .
6543 \end_layout
6544
6545 \begin_layout Paragraph
6546 Things that work, but require more comment
6547 \end_layout
6548
6549 \begin_layout Standard
6550 The following items work, but require a little more discussion:
6551 \end_layout
6552
6553 \begin_layout Itemize
6554 These items are reserved for use by the journal editors, but you can put
6555  them into the \SpecialChar LaTeX
6556  preamble if you feel compelled to do so: 
6557 \family typewriter
6558
6559 \backslash
6560 received
6561 \family default
6562
6563 \family typewriter
6564
6565 \backslash
6566 revised
6567 \family default
6568
6569 \family typewriter
6570
6571 \backslash
6572 accepted
6573 \family default
6574
6575 \family typewriter
6576
6577 \backslash
6578 ccc
6579 \family default
6580
6581 \family typewriter
6582
6583 \backslash
6584 cpright
6585 \family default
6586  (all from 2.1.3)
6587 \end_layout
6588
6589 \begin_layout Itemize
6590 These items may be placed in the \SpecialChar LaTeX
6591  preamble, and are included as blanks in
6592  the template file: 
6593 \family typewriter
6594
6595 \backslash
6596 slugcomment
6597 \family default
6598  (2.1.4), 
6599 \family typewriter
6600
6601 \backslash
6602 shorttitle
6603 \family default
6604  (2.1.5), 
6605 \family typewriter
6606
6607 \backslash
6608 shortauthors
6609 \family default
6610  (2.1.5)
6611 \end_layout
6612
6613 \begin_layout Itemize
6614
6615 \family typewriter
6616
6617 \backslash
6618 email
6619 \family default
6620  (2.3) – can only be used 
6621 \begin_inset Quotes eld
6622 \end_inset
6623
6624 standalone
6625 \begin_inset Quotes erd
6626 \end_inset
6627
6628 , not in the middle of a paragraph.
6629  Use \SpecialChar TeX
6630  code if you need to embed it.
6631 \end_layout
6632
6633 \begin_layout Itemize
6634
6635 \family typewriter
6636
6637 \backslash
6638 and
6639 \family default
6640  (2.3) – will have extra {} after it.
6641  This should not cause an error.
6642 \end_layout
6643
6644 \begin_layout Itemize
6645
6646 \family typewriter
6647
6648 \backslash
6649 notetoeditor
6650 \family default
6651  (2.6) – can only be used 
6652 \begin_inset Quotes eld
6653 \end_inset
6654
6655 standalone
6656 \begin_inset Quotes erd
6657 \end_inset
6658
6659 , not in the middle of a paragraph.
6660  Use \SpecialChar TeX
6661  code if you need to embed it.
6662 \end_layout
6663
6664 \begin_layout Itemize
6665
6666 \family typewriter
6667
6668 \backslash
6669 placetable
6670 \family default
6671  (2.8) – can't insert a cross-reference tag, you must type the tag name by
6672  hand
6673 \end_layout
6674
6675 \begin_layout Itemize
6676
6677 \family typewriter
6678
6679 \backslash
6680 placefigure
6681 \family default
6682  (2.8) – same as for 
6683 \family typewriter
6684
6685 \backslash
6686 placetable
6687 \end_layout
6688
6689 \begin_layout Itemize
6690
6691 \family typewriter
6692
6693 \backslash
6694 acknowledgements
6695 \family default
6696  (2.9) – will have extra {} after it.
6697  This should not cause an error.
6698 \end_layout
6699
6700 \begin_layout Itemize
6701
6702 \family typewriter
6703
6704 \backslash
6705 appendix
6706 \family default
6707  (2.11) – will have extra {} after it.
6708  This should not cause an error.
6709 \end_layout
6710
6711 \begin_layout Itemize
6712
6713 \family typewriter
6714
6715 \backslash
6716 figcaption
6717 \family default
6718  (2.14.2) – you can insert an optional filename argument by placing the cursor
6719  at the beginning of the text and selecting 
6720 \family sans
6721 Insert\SpecialChar menuseparator
6722 Short Title
6723 \family default
6724 .
6725  
6726 \begin_inset Quotes eld
6727 \end_inset
6728
6729 Short Title
6730 \begin_inset Quotes erd
6731 \end_inset
6732
6733  inserts an optional argument of the type needed by 
6734 \family typewriter
6735
6736 \backslash
6737 figcaption
6738 \family default
6739 .
6740  Hopefully it will be renamed someday.
6741 \end_layout
6742
6743 \begin_layout Itemize
6744
6745 \family typewriter
6746
6747 \backslash
6748 objectname
6749 \family default
6750  (2.17.1) – same as 
6751 \family typewriter
6752
6753 \backslash
6754 figcaption
6755 \family default
6756  for the catalog ID optional parameter
6757 \end_layout
6758
6759 \begin_layout Itemize
6760
6761 \family typewriter
6762
6763 \backslash
6764 dataset
6765 \family default
6766  (2.17.1) – same as 
6767 \family typewriter
6768
6769 \backslash
6770 figcaption
6771 \family default
6772  for the catalog ID optional parameter
6773 \end_layout
6774
6775 \begin_layout Paragraph
6776 Things not implemented, use \SpecialChar TeX
6777  code
6778 \end_layout
6779
6780 \begin_layout Standard
6781
6782 \family typewriter
6783
6784 \backslash
6785 eqnum
6786 \family default
6787  (2.12), 
6788 \family typewriter
6789
6790 \backslash
6791 setcounter{equation}
6792 \family default
6793  (2.12), Journal name abbreviations (2.13.4), 
6794 \family typewriter
6795
6796 \backslash
6797 figurenum
6798 \family default
6799  (2.14.1), 
6800 \family typewriter
6801
6802 \backslash
6803 epsscale
6804 \family default
6805  (2.14.1), 
6806 \family typewriter
6807
6808 \backslash
6809 plotone
6810 \family default
6811  (2.14.1), 
6812 \family typewriter
6813
6814 \backslash
6815 plottwo
6816 \family default
6817  (2.14.1), 
6818 \family typewriter
6819
6820 \backslash
6821 tablenum
6822 \family default
6823  (2.15.4), 
6824 \family typewriter
6825
6826 \backslash
6827 tableline
6828 \family default
6829  (2.15.4, insert it as the first element in the lefthand cell after where
6830  you want it.
6831  Don't use any of \SpecialChar LyX
6832 's rules in the table), 
6833 \family typewriter
6834
6835 \backslash
6836 tablenotemark
6837 \family default
6838  (2.15.5), 
6839 \family typewriter
6840
6841 \backslash
6842 tablenotetext
6843 \family default
6844  (2.15.5), much of Misc (2.17, except 
6845 \family typewriter
6846
6847 \backslash
6848 objectname
6849 \family default
6850
6851 \family typewriter
6852
6853 \backslash
6854 dataset
6855 \family default
6856
6857 \family typewriter
6858
6859 \backslash
6860 url
6861 \family default
6862 , and 
6863 \family typewriter
6864
6865 \backslash
6866 email
6867 \family default
6868 ; see above), 
6869 \family typewriter
6870
6871 \backslash
6872 singlespace
6873 \family default
6874  (3.1), 
6875 \family typewriter
6876
6877 \backslash
6878 doublespace
6879 \family default
6880  (3.1), 
6881 \family typewriter
6882
6883 \backslash
6884 onecolumn
6885 \family default
6886  (3.2), 
6887 \family typewriter
6888
6889 \backslash
6890 twocolumn
6891 \family default
6892  (3.2)
6893 \end_layout
6894
6895 \begin_layout Paragraph
6896 Things that cannot be implemented
6897 \end_layout
6898
6899 \begin_layout Standard
6900 \SpecialChar ldots
6901  at least in any meaningful sort of way, so I suggest ignoring them.
6902  They are the references environment (2.13.3), and the deluxetable environment
6903  (2.15).
6904  If you really, really need to use deluxetable, I suggest editing it in
6905  a separate file with a text editor, then using 
6906 \family sans
6907 Insert\SpecialChar menuseparator
6908 Child
6909 \begin_inset space ~
6910 \end_inset
6911
6912 Document
6913 \family default
6914  to include it in your \SpecialChar LyX
6915  document.
6916  See 
6917 \change_deleted 564990737 1671642564
6918 the 
6919 \family typewriter
6920 aas_sample.lyx
6921 \family default
6922  file to see
6923 \change_inserted 564990737 1671642618
6924
6925 \family sans
6926 \lang british
6927 File\SpecialChar menuseparator
6928 Open Example\SpecialChar menuseparator
6929 Articles\SpecialChar menuseparator
6930 American Astronomical Society
6931 \change_unchanged
6932
6933 \family default
6934 \lang english
6935  
6936 \change_inserted 564990737 1671642621
6937 for 
6938 \change_unchanged
6939 an example of this.
6940 \end_layout
6941
6942 \begin_layout Subsubsection
6943 FAQs, Tips, Tricks, and Other Ruminations
6944 \end_layout
6945
6946 \begin_layout Paragraph
6947 Getting \SpecialChar LyX
6948  and AAS\SpecialChar TeX
6949  to cooperate
6950 \end_layout
6951
6952 \begin_layout Standard
6953 It can be a bit tricky to get \SpecialChar LyX
6954  to recognize a new layout and document class.
6955  When all else fails, do this:
6956 \end_layout
6957
6958 \begin_layout Enumerate
6959 Make certain that \SpecialChar LaTeX
6960  can find AAS\SpecialChar TeX
6961 .
6962  Copy sample.tex (and perhaps table.tex) from the AAS\SpecialChar TeX
6963  distribution into a
6964  directory completely unrelated to \SpecialChar LaTeX
6965  or AAS\SpecialChar TeX
6966  and run \SpecialChar LaTeX
6967  on 
6968 \family typewriter
6969 sample.tex
6970 \family default
6971 .
6972 \end_layout
6973
6974 \begin_layout Enumerate
6975 Make certain that 
6976 \family typewriter
6977 aastex.layout
6978 \family default
6979  appears in \SpecialChar LyX
6980 's 
6981 \family typewriter
6982 layouts
6983 \family default
6984  folder
6985 \end_layout
6986
6987 \begin_layout Enumerate
6988 Rerun 
6989 \family sans
6990 Tools\SpecialChar menuseparator
6991 Reconfigure
6992 \family default
6993  in \SpecialChar LyX
6994 , then restart \SpecialChar LyX
6995 .
6996 \end_layout
6997
6998 \begin_layout Enumerate
6999 Open a regular new file, not from a template.
7000  Does AAS\SpecialChar TeX
7001  appear in the class list in 
7002 \family sans
7003 Document\SpecialChar menuseparator
7004 Settings
7005 \family default
7006 ?
7007 \end_layout
7008
7009 \begin_layout Standard
7010 If you get a warning from an existing AAS\SpecialChar TeX
7011  document about not being able
7012  to find the AAS\SpecialChar TeX
7013  layout or a message about 
7014 \begin_inset Quotes eld
7015 \end_inset
7016
7017 You should not mix title layouts with normal ones
7018 \begin_inset Quotes erd
7019 \end_inset
7020
7021 , things haven't been installed correctly.
7022 \end_layout
7023
7024 \begin_layout Paragraph
7025 \SpecialChar LaTeX
7026  error processing a table 
7027 \end_layout
7028
7029 \begin_layout Standard
7030 \SpecialChar LyX
7031 , by default, attempts to center the table caption/title.
7032  This seems to produce a bad interaction in AAS\SpecialChar TeX
7033  so you should click somewhere
7034  in the caption/title, then select 
7035 \family sans
7036 Edit\SpecialChar menuseparator
7037 Paragraph
7038 \begin_inset space ~
7039 \end_inset
7040
7041 Settings
7042 \family default
7043 , then set the 
7044 \family sans
7045 Alignment
7046 \family default
7047  to 
7048 \family sans
7049 Block
7050 \family default
7051 .
7052  This took care of it for me.
7053 \end_layout
7054
7055 \begin_layout Paragraph
7056 References
7057 \end_layout
7058
7059 \begin_layout Standard
7060 A couple of things: 1) I have noticed some funny spacing in the reference
7061  entries in the text.
7062  When you enter the bibliography item data, make sure their is 
7063 \emph on
7064 no
7065 \emph default
7066  space between the last author and the parenthesis setting off the year;
7067  
7068 \emph on
7069 e.
7070 \begin_inset space \thinspace{}
7071 \end_inset
7072
7073 g.
7074 \begin_inset space \space{}
7075 \end_inset
7076
7077
7078 \emph default
7079 type 
7080 \family typewriter
7081 Ressler(1992)
7082 \family default
7083 , not 
7084 \family typewriter
7085 Ressler (1992)
7086 \family default
7087 .
7088  2) Entering the references at all is not obvious.
7089  The easiest thing is to start typing your first reference at the end of
7090  the document, then mark it as type 
7091 \family sans
7092 References
7093 \family default
7094 .
7095  That will put a small gray box in front of what you just typed.
7096  Click on the box to fill in the rest of the information.
7097  For new references, go to the end of an existing reference and press return.
7098  That will create a new line with its own box, etc.
7099 \end_layout
7100
7101 \begin_layout Paragraph
7102 Including EPS files
7103 \end_layout
7104
7105 \begin_layout Standard
7106 Even though AAS\SpecialChar TeX
7107  provides its own figure commands (
7108 \family typewriter
7109
7110 \backslash
7111 plotone
7112 \family default
7113 , for example), I much prefer \SpecialChar LaTeX
7114 's standard figure commands (with the default
7115  graphicx).
7116  You can insert the 
7117 \family typewriter
7118
7119 \backslash
7120 plotone
7121 \family default
7122 , etc.
7123 \begin_inset space ~
7124 \end_inset
7125
7126 commands as \SpecialChar TeX
7127  code into a Figure Float box if you desire, but I never have
7128  much luck getting the layout right.
7129  With the standard graphics, \SpecialChar LyX
7130  will insert a 
7131 \family typewriter
7132
7133 \backslash
7134 usepackage{graphicx}
7135 \family default
7136  command into the \SpecialChar LaTeX
7137  preamble and handle the figures in the standard \SpecialChar LaTeX2e
7138  way,
7139  interspersing the figures in the text.
7140  I believe ApJ accepts figures exactly this way now; AJ might still use
7141  the 
7142 \begin_inset Quotes eld
7143 \end_inset
7144
7145 stack everything at the end
7146 \begin_inset Quotes erd
7147 \end_inset
7148
7149  technique.
7150 \end_layout
7151
7152 \begin_layout Paragraph
7153 Things I could have done, but didn't
7154 \end_layout
7155
7156 \begin_layout Standard
7157 There are a few 
7158 \begin_inset Quotes eld
7159 \end_inset
7160
7161 pretty
7162 \begin_inset Quotes erd
7163 \end_inset
7164
7165  things I could have implemented, but chose not to.
7166  For instance, I saw no point in double-spacing the text in the \SpecialChar LyX
7167  window,
7168  even though it is double-spaced in the paper manuscript.
7169  Also, I chose not to make separate layouts for the preprint and preprint2
7170  styles.
7171  Since I assume you will spend most of your time in the plain manuscript
7172  mode anyway, I decided not to chew up more disk space with this.
7173  
7174 \end_layout
7175
7176 \begin_layout Subsubsection
7177 Final Caveat
7178 \end_layout
7179
7180 \begin_layout Standard
7181 Your mileage may vary.
7182  I've now had papers published by both ApJ and AJ that have had 98% of the
7183  effort done in \SpecialChar LyX
7184 ; the last 2% was the \SpecialChar LaTeX
7185  post-processing and a few cleanups.
7186  I have had no trouble with the submission process, and I'm sure the journals
7187  were never aware that there might be a difference.
7188  So, go forth and publish!
7189 \end_layout
7190
7191 \begin_layout Subsection
7192
7193 \change_inserted 564990737 1671442131
7194
7195 \lang american
7196 Chess
7197 \end_layout
7198
7199 \begin_layout Standard
7200
7201 \change_inserted 564990737 1671642768
7202
7203 \lang american
7204 The document class 
7205 \family sans
7206 article
7207 \begin_inset space \thinspace{}
7208 \end_inset
7209
7210 (Chess)
7211 \family default
7212  uses the 
7213 \family typewriter
7214 article.cls
7215 \family default
7216  document class together with the style 
7217 \family sans
7218 lyxskak.sty
7219 \family default
7220  to facilitate the description of chess games.
7221  See 
7222 \family sans
7223 \lang british
7224 File\SpecialChar menuseparator
7225 Open Example
7226 \lang english
7227 \SpecialChar menuseparator
7228 Articles\SpecialChar menuseparator
7229 Chess
7230 \family default
7231 \lang american
7232  where you will find 
7233 \family sans
7234 \lang english
7235 Game 1
7236 \family default
7237 \lang american
7238  and 
7239 \family sans
7240 \lang english
7241 Game 2
7242 \family default
7243 \lang american
7244 .
7245 \end_layout
7246
7247 \begin_layout Subsection
7248
7249 \change_inserted 564990737 1671042028
7250
7251 \lang american
7252 Elsevier
7253 \end_layout
7254
7255 \begin_layout Standard
7256
7257 \change_inserted 564990737 1671617396
7258
7259 \lang american
7260 The document class 
7261 \family sans
7262 article
7263 \begin_inset space \thinspace{}
7264 \end_inset
7265
7266 (Elsevier)
7267 \family default
7268  provides the 
7269 \family typewriter
7270 elsarticle.cls
7271 \family default
7272  document class.
7273  This provides the following additional environments: 
7274 \family sans
7275 Title
7276 \begin_inset space ~
7277 \end_inset
7278
7279 footnote
7280 \family default
7281
7282 \family sans
7283 Author
7284 \begin_inset space ~
7285 \end_inset
7286
7287 footnote
7288 \family default
7289
7290 \family sans
7291 Corresponding
7292 \begin_inset space ~
7293 \end_inset
7294
7295 author
7296 \family default
7297
7298 \family sans
7299 Address
7300 \family default
7301
7302 \family sans
7303 Email
7304 \family default
7305  and 
7306 \family sans
7307 Keywords
7308 \family default
7309 .
7310  A template is available in the menu 
7311 \family sans
7312 \bar under
7313 F
7314 \bar default
7315 ile\SpecialChar menuseparator
7316 New
7317 \begin_inset space ~
7318 \end_inset
7319
7320 fro
7321 \bar under
7322 m
7323 \bar default
7324
7325 \begin_inset space ~
7326 \end_inset
7327
7328 Template
7329 \lang english
7330 \SpecialChar menuseparator
7331 Articles\SpecialChar menuseparator
7332 Elsevier
7333 \family default
7334 \lang american
7335 .
7336  It has been customized with further environments and contains all the informati
7337 on you may need.
7338  However, the documentation is also available from 
7339 \begin_inset CommandInset href
7340 LatexCommand href
7341 name "CTAN"
7342 target "http://mirrors.ctan.org/macros/latex/contrib/elsarticle/doc/elsdoc.pdf"
7343 literal "false"
7344
7345 \end_inset
7346
7347 .
7348 \end_layout
7349
7350 \begin_layout Subsection
7351
7352 \change_inserted 564990737 1671042046
7353
7354 \lang american
7355 Paper
7356 \end_layout
7357
7358 \begin_layout Standard
7359
7360 \change_inserted 564990737 1671042046
7361
7362 \lang american
7363 The document class 
7364 \family sans
7365 article
7366 \begin_inset space \thinspace{}
7367 \end_inset
7368
7369 (paper)
7370 \family default
7371  provides an alternative to the 
7372 \family typewriter
7373 article.cls
7374 \family default
7375  document class.
7376  It provides similar functionality, but you might prefer this layout with
7377  sans serif sections, headings, and more.
7378 \end_layout
7379
7380 \begin_layout Subsection
7381 Rev\SpecialChar TeX
7382 4
7383 \end_layout
7384
7385 \begin_layout Standard
7386 by 
7387 \noun on
7388 Amir Karger
7389 \end_layout
7390
7391 \begin_layout Standard
7392 \begin_inset VSpace bigskip
7393 \end_inset
7394
7395
7396 \end_layout
7397
7398 \begin_layout Standard
7399 \noindent
7400 The 
7401 \family sans
7402 Revtex
7403 \begin_inset space ~
7404 \end_inset
7405
7406 4
7407 \family default
7408  textclass works with the American Physical Sociey's Rev\SpecialChar TeX
7409  4.0 (the 
7410 \begin_inset Formula $\beta$
7411 \end_inset
7412
7413  release of May, 1999) class.
7414 \end_layout
7415
7416 \begin_layout Standard
7417 \SpecialChar LyX
7418  has a 
7419 \family sans
7420 Revtex
7421 \family default
7422  textclass, which works with Rev\SpecialChar TeX
7423  3.1.
7424  However, v3.1 is basically obsolete, as it works with \SpecialChar LaTeX
7425  2.09.
7426  That means that it doesn't interact very well with \SpecialChar LyX
7427 , which requires \SpecialChar LaTeX2e
7428 , although
7429  it has been kludged to work.
7430  Since Rev\SpecialChar TeX
7431  4.0 has been designed to work much more cleanly with \SpecialChar LaTeX2e
7432 , \SpecialChar LyX
7433  with the
7434  
7435 \family sans
7436 Rev\SpecialChar TeX
7437
7438 \begin_inset space ~
7439 \end_inset
7440
7441 4
7442 \family default
7443  textclass should also be pretty easy to use.
7444 \end_layout
7445
7446 \begin_layout Standard
7447 These documents are supposed to be used in 
7448 \emph on
7449 addition
7450 \emph default
7451  to the Rev\SpecialChar TeX
7452  4.0 documents, so we don't describe any of the special Rev\SpecialChar TeX
7453  macros,
7454  and assume you'll know what to put in the preamble if necessary.
7455 \end_layout
7456
7457 \begin_layout Subsubsection
7458 Installation
7459 \end_layout
7460
7461 \begin_layout Standard
7462 All you need to do is install Rev\SpecialChar TeX
7463  4, as described in the package's README
7464  file.
7465  The package can be found at The Rev\SpecialChar TeX
7466  4 Web Site 
7467 \begin_inset Flex URL
7468 status collapsed
7469
7470 \begin_layout Plain Layout
7471
7472 http://publish.aps.org/revtex4/
7473 \end_layout
7474
7475 \end_inset
7476
7477 .
7478  Install it somewhere that \SpecialChar LaTeX
7479  can see it.
7480  Test it by trying to \SpecialChar LaTeX
7481  a short Rev\SpecialChar TeX
7482  4 document in some random directory (i.
7483 \begin_inset space \thinspace{}
7484 \end_inset
7485
7486 e.
7487 \begin_inset space \space{}
7488 \end_inset
7489
7490 not the directory where you installed the class file.) Then, if you reconfigure
7491  \SpecialChar LyX
7492 , it will find the class file and let you use the Rev\SpecialChar TeX
7493 4 textclass.
7494 \end_layout
7495
7496 \begin_layout Standard
7497 Probably the easiest way to get started is either to import a Rev\SpecialChar TeX
7498  4 document
7499  using 
7500 \family typewriter
7501 tex2lyx
7502 \family default
7503 , or to use the 
7504 \family sans
7505 Revtex
7506 \begin_inset space ~
7507 \end_inset
7508
7509 4
7510 \family default
7511  template, found in the templates directory.
7512 \end_layout
7513
7514 \begin_layout Subsubsection
7515 Preamble Matter
7516 \end_layout
7517
7518 \begin_layout Standard
7519 Optional arguments to 
7520 \family typewriter
7521
7522 \backslash
7523 documentclass
7524 \family default
7525 , like 
7526 \begin_inset Quotes eld
7527 \end_inset
7528
7529 preprint
7530 \begin_inset Quotes erd
7531 \end_inset
7532
7533  and 
7534 \begin_inset Quotes eld
7535 \end_inset
7536
7537 aps
7538 \begin_inset Quotes erd
7539 \end_inset
7540
7541 , go in the 
7542 \family sans
7543 Extra
7544 \begin_inset space ~
7545 \end_inset
7546
7547 Options
7548 \family default
7549  field in the 
7550 \family sans
7551 Document
7552 \begin_inset space ~
7553 \end_inset
7554
7555 Layout
7556 \family default
7557  dialog, as usual.
7558  Remember that in Rev\SpecialChar TeX
7559 , at least one optional argument is required! 
7560 \end_layout
7561
7562 \begin_layout Standard
7563 Other preamble matter, like 
7564 \family typewriter
7565
7566 \backslash
7567 draft
7568 \family default
7569  etc.
7570 \begin_inset space ~
7571 \end_inset
7572
7573 goes in the 
7574 \family sans
7575 \SpecialChar LaTeX
7576
7577 \begin_inset space ~
7578 \end_inset
7579
7580 Preamble
7581 \family default
7582  dialog, also as usual.
7583 \end_layout
7584
7585 \begin_layout Subsubsection
7586 Layouts
7587 \end_layout
7588
7589 \begin_layout Standard
7590 The layouts basically correspond to the commands in Rev\SpecialChar TeX
7591 4.0.
7592  For example, the Email layout corresponds to 
7593 \family typewriter
7594
7595 \backslash
7596 email{}
7597 \family default
7598 .
7599  Note that (at least as of Rev\SpecialChar TeX
7600  4.0 Beta), the 
7601 \family sans
7602 Address
7603 \family default
7604  and 
7605 \family sans
7606 Affiliation
7607 \family default
7608  layouts are exactly equivalent, so you shouldn't need to use both.
7609 \begin_inset Foot
7610 status collapsed
7611
7612 \begin_layout Plain Layout
7613 In case you're curious, both were included so that 
7614 \family typewriter
7615 tex2lyx
7616 \family default
7617  would be able to translate both 
7618 \family typewriter
7619
7620 \backslash
7621 address
7622 \family default
7623  and 
7624 \family typewriter
7625
7626 \backslash
7627 affiliation
7628 \family default
7629 .
7630 \end_layout
7631
7632 \end_inset
7633
7634
7635 \end_layout
7636
7637 \begin_layout Subsubsection
7638 Important Notes
7639 \end_layout
7640
7641 \begin_layout Standard
7642 There are a couple of important unique aspects of Rev\SpecialChar TeX
7643  4 which might cause
7644  bugs that will be even more confusing in \SpecialChar LyX
7645 .
7646 \end_layout
7647
7648 \begin_layout Standard
7649 In Rev\SpecialChar TeX
7650 , the 
7651 \family typewriter
7652
7653 \backslash
7654 thanks
7655 \family default
7656  command goes 
7657 \emph on
7658 outside
7659 \emph default
7660  the 
7661 \family typewriter
7662
7663 \backslash
7664 author
7665 \family default
7666  command.
7667  The \SpecialChar LyX
7668  equivalent is that there is a separate Thanks layout.
7669  Do 
7670 \emph on
7671 not
7672 \emph default
7673  write footnotes in the 
7674 \family sans
7675 Author
7676 \family default
7677  layout, or weird things may happen.
7678  See the Rev\SpecialChar TeX
7679  4 documentation for more details.
7680 \end_layout
7681
7682 \begin_layout Standard
7683 Also, the 
7684 \family sans
7685 Author
7686 \begin_inset space ~
7687 \end_inset
7688
7689 Email
7690 \family default
7691
7692 \family sans
7693 Author
7694 \begin_inset space ~
7695 \end_inset
7696
7697 URL
7698 \family default
7699 , and 
7700 \family sans
7701 Thanks
7702 \family default
7703  layouts must be placed 
7704 \emph on
7705 in between
7706 \emph default
7707  the 
7708 \family sans
7709 Author
7710 \family default
7711  layout and the corresponding 
7712 \family sans
7713 Address
7714 \family default
7715  (or equivalent 
7716 \family sans
7717 Affiliation
7718 \family default
7719 ) layout.
7720  If you put the 
7721 \family sans
7722 Thanks
7723 \family default
7724  after the 
7725 \family sans
7726 Address
7727 \family default
7728 , the \SpecialChar LaTeX
7729  won't compile.
7730 \end_layout
7731
7732 \begin_layout Subsection
7733
7734 \change_inserted 564990737 1671042072
7735
7736 \lang american
7737 Springer Journals
7738 \end_layout
7739
7740 \begin_layout Standard
7741
7742 \change_inserted 564990737 1671042072
7743
7744 \lang american
7745 All the 
7746 \family sans
7747 svj*
7748 \family default
7749  classes were replaced in 2013 with a completely new 
7750 \family sans
7751 sr-vorl.cls
7752 \family default
7753 .
7754  This package provides a \SpecialChar LaTeX
7755  class and templates for books to be published
7756  at Springer Gabler Research, Springer Vieweg Research, Springer Spektrum
7757  Research, Springer VS Research, or Springer VS Forschung.
7758  The documentation is available in German from 
7759 \begin_inset CommandInset href
7760 LatexCommand href
7761 name "CTAN"
7762 target "http://mirrors.ctan.org/macros/latex/contrib/springer/sr-vorl/sr-vorl.pdf"
7763 literal "false"
7764
7765 \end_inset
7766
7767 .
7768 \end_layout
7769
7770 \begin_layout Section
7771
7772 \change_inserted 564990737 1670439560
7773 Books
7774 \end_layout
7775
7776 \begin_layout Standard
7777
7778 \change_inserted 564990737 1670439581
7779 See also the document classes in the Collections (section
7780 \begin_inset space ~
7781 \end_inset
7782
7783
7784 \begin_inset CommandInset ref
7785 LatexCommand ref
7786 nolink "false"
7787 reference "sec:Collections"
7788
7789 \end_inset
7790
7791 ).
7792 \end_layout
7793
7794 \begin_layout Subsection
7795 Memoir
7796 \end_layout
7797
7798 \begin_layout Standard
7799 By 
7800 \noun on
7801 Jürgen Spitzmüller
7802 \end_layout
7803
7804 \begin_layout Subsubsection
7805 Overview
7806 \end_layout
7807
7808 \begin_layout Standard
7809 Memoir is a very powerful and constantly evolving class.
7810  It has been designed with regard to fictional and non-fictional literature.
7811  Its aim is to let the user have maximum control over the typesetting of
7812  his document.
7813  Memoir is based on the standard book class, but it can also emulate the
7814  article class (see below).
7815 \end_layout
7816
7817 \begin_layout Standard
7818 Peter Wilson, the developer of Memoir, is known as the author of lots of
7819  useful packages in the \SpecialChar LaTeX
7820  world.
7821  Most of them have been merged with Memoir.
7822  Therefore, it is much easier to layout the table of contents, appendices,
7823  chapter designs and such.
7824  \SpecialChar LyX
7825 , though, does not support all of these goodies natively.
7826  Some of them might be added to forthcoming releases
7827 \begin_inset Foot
7828 status collapsed
7829
7830 \begin_layout Plain Layout
7831 You are invited to send suggestions to 
7832 \begin_inset Flex URL
7833 status collapsed
7834
7835 \begin_layout Plain Layout
7836
7837 lyx-devel@lists.lyx.org
7838 \end_layout
7839
7840 \end_inset
7841
7842 .
7843 \end_layout
7844
7845 \end_inset
7846
7847 , lots will probably never be supported, due to the limitations of \SpecialChar LyX
7848 's framework.
7849  Of course you can still use all features with the help of some native \SpecialChar LaTeX
7850
7851  commands (\SpecialChar TeX
7852  code
7853 \begin_inset Foot
7854 status collapsed
7855
7856 \begin_layout Plain Layout
7857 Cf.
7858 \begin_inset ERT
7859 status collapsed
7860
7861 \begin_layout Plain Layout
7862
7863
7864 \backslash
7865  
7866 \end_layout
7867
7868 \end_inset
7869
7870 section
7871 \begin_inset space ~
7872 \end_inset
7873
7874
7875 \begin_inset CommandInset ref
7876 LatexCommand ref
7877 nolink "false"
7878 reference "sec:Inserting-TeX-Code"
7879
7880 \end_inset
7881
7882  for details.
7883 \end_layout
7884
7885 \end_inset
7886
7887 ).
7888  In this section, we can only list those features that are natively supported
7889  by \SpecialChar LyX
7890 .
7891  For detailed descriptions (and for the rest of features) we recommend you
7892  have a look at the detailed manual of the Memoir class
7893 \begin_inset Foot
7894 status collapsed
7895
7896 \begin_layout Plain Layout
7897 Cf.
7898 \begin_inset ERT
7899 status collapsed
7900
7901 \begin_layout Plain Layout
7902
7903
7904 \backslash
7905  
7906 \end_layout
7907
7908 \end_inset
7909
7910
7911 \begin_inset Flex URL
7912 status collapsed
7913
7914 \begin_layout Plain Layout
7915
7916 CTAN:/macros/latex/memoir/memman.pdf
7917 \end_layout
7918
7919 \end_inset
7920
7921 .
7922 \end_layout
7923
7924 \end_inset
7925
7926 , which is not only a user guide for the class, but also both a comprehensive
7927  description on good typesetting and a superb example for good typesetting
7928  itself.
7929 \end_layout
7930
7931 \begin_layout Subsubsection
7932 Basic features and restrictions
7933 \end_layout
7934
7935 \begin_layout Standard
7936 Memoir supports basically all features of the standard book classes.
7937  There are, however, some differences, as follows:
7938 \end_layout
7939
7940 \begin_layout Description
7941 Font
7942 \begin_inset space ~
7943 \end_inset
7944
7945 sizes: Memoir has a broader range of font sizes: 9, 10, 11, 12, 14, 17
7946 \end_layout
7947
7948 \begin_layout Description
7949 Page
7950 \begin_inset space ~
7951 \end_inset
7952
7953 style: The fancy page style is not supported, due to a command clash between
7954  Memoir and the fancyhdr package (they both define a command with the same
7955  name, which confuses \SpecialChar LaTeX
7956 ).
7957  Instead, Memoir comes with a number of its own page styles (see 
7958 \family sans
7959 Document\SpecialChar menuseparator
7960 Settings\SpecialChar menuseparator
7961 Page
7962 \begin_inset space ~
7963 \end_inset
7964
7965 Style
7966 \family default
7967 ).
7968  If you want to use these for the chapter pages, you have to use the command
7969  
7970 \family typewriter
7971
7972 \backslash
7973 chapterstyle
7974 \family default
7975  in the main text or in preamble (e.
7976 \begin_inset space \thinspace{}
7977 \end_inset
7978
7979 g.
7980 \begin_inset space \space{}
7981 \end_inset
7982
7983
7984 \family typewriter
7985
7986 \backslash
7987 chapterstyle{companion}
7988 \family default
7989 ).
7990 \end_layout
7991
7992 \begin_layout Description
7993 Sectioning: Sectionings (chapter, section, subsection etc.) come with an
7994  optional argument in the standard classes.
7995  With this, you can specify an alternative version of the title for the
7996  table of contents and the headers (for instance, if the title is too long).
7997  In \SpecialChar LyX
7998 , you can do this via 
7999 \family sans
8000 Insert\SpecialChar menuseparator
8001 Short
8002 \begin_inset space ~
8003 \end_inset
8004
8005 Title
8006 \family default
8007  at the beginning of a chapter/section.
8008  Memoir features a second optional argument and thus separates the table
8009  of contents from the header.
8010  You can define three variants of a title with this: one for the main text,
8011  one for the table of contents, and one for the headers.
8012  \SpecialChar LyX
8013  makes these available in form of specific 
8014 \family sans
8015 Short Title
8016 \family default
8017  variants in the 
8018 \family sans
8019 Insert
8020 \family default
8021  menu.
8022 \end_layout
8023
8024 \begin_layout Description
8025 TOC/LOT/LOF: In the standard classes (and in many other classes), the table
8026  of contents, the list of figures and the list of table start a new page
8027  automatically.
8028  Memoir does not follow this route.
8029  You have to insert a page break yourself, if you want to have one.
8030 \end_layout
8031
8032 \begin_layout Description
8033 Titlepage: For some unknown reason, Memoir uses pagination on the title
8034  page (in the standard classes, title pages are 
8035 \begin_inset Quotes eld
8036 \end_inset
8037
8038 empty
8039 \begin_inset Quotes erd
8040 \end_inset
8041
8042 ).
8043  If you want an empty title page, type 
8044 \family typewriter
8045
8046 \backslash
8047 aliaspagestyle{title}{empty}
8048 \family default
8049  in the preamble.
8050 \end_layout
8051
8052 \begin_layout Description
8053 Article: With the class option 
8054 \emph on
8055 article
8056 \emph default
8057  (to be inserted in 
8058 \family sans
8059 Document\SpecialChar menuseparator
8060 Settings\SpecialChar menuseparator
8061 Class Settings\SpecialChar menuseparator
8062 Custom
8063 \begin_inset space ~
8064 \end_inset
8065
8066 Options
8067 \family default
8068 ), you can emulate article style.
8069  That is, counters (footnotes, figures, tables etc.) will not be reset on
8070  new chapters, chapters don't start a new page (but are—in contrary to 
8071 \begin_inset Quotes eld
8072 \end_inset
8073
8074 real
8075 \begin_inset Quotes erd
8076 \end_inset
8077
8078  article classes—still allowed), parts, though, use their own page, as in
8079  book.
8080 \end_layout
8081
8082 \begin_layout Description
8083 Oldfontcommands: By default, Memoir does not allow the use of the deprecated
8084  font commands, which have been used in the old \SpecialChar LaTeX
8085  version 2.09 (e.
8086 \begin_inset space \thinspace{}
8087 \end_inset
8088
8089 g.
8090 \begin_inset space \space{}
8091 \end_inset
8092
8093
8094 \family typewriter
8095
8096 \backslash
8097 rm
8098 \family default
8099
8100 \family typewriter
8101
8102 \backslash
8103 it
8104 \family default
8105 ).
8106  It produces an error and stops \SpecialChar LaTeX
8107  whenever such a command appears.
8108  The class option 
8109 \emph on
8110 oldfontcommands
8111 \emph default
8112  reallows the commands and spits out warnings instead (which does at least
8113  not stop \SpecialChar LaTeX
8114 ).
8115  Since a lot of packages and particularly Bib\SpecialChar TeX
8116  style files are still using
8117  those commands, we have decided to use this option by default.
8118 \end_layout
8119
8120 \begin_layout Subsubsection
8121 Extra features
8122 \end_layout
8123
8124 \begin_layout Standard
8125 We will only describe the features supported by \SpecialChar LyX
8126  (which is not much currently).
8127  Please consult the Memoir manual
8128 \begin_inset Foot
8129 status collapsed
8130
8131 \begin_layout Plain Layout
8132 Cf.
8133 \begin_inset ERT
8134 status collapsed
8135
8136 \begin_layout Plain Layout
8137
8138
8139 \backslash
8140  
8141 \end_layout
8142
8143 \end_inset
8144
8145
8146 \begin_inset Flex URL
8147 status collapsed
8148
8149 \begin_layout Plain Layout
8150
8151 CTAN:/macros/latex/memoir/memman.pdf
8152 \end_layout
8153
8154 \end_inset
8155
8156 .
8157 \end_layout
8158
8159 \end_inset
8160
8161  for details.
8162 \end_layout
8163
8164 \begin_layout Description
8165 Abstract: You may wonder why an abstract is an extra feature.
8166  Well, it is in book class.
8167  Usually books don't have abstracts.
8168  Memoir, however, has.
8169  You can use it wherever and how often you like.
8170 \end_layout
8171
8172 \begin_layout Description
8173 Chapterprecis: You may know this older typesetting style: The contents of
8174  a chapter are summarized below the title and also in the table of contents
8175  (e.
8176 \begin_inset space \thinspace{}
8177 \end_inset
8178
8179 g.
8180 \begin_inset space \space{}
8181 \end_inset
8182
8183
8184 \emph on
8185 Our hero arrives in Troia; he loses some friends; he finds others
8186 \emph default
8187 ).
8188  Chapterprecis does exactly this.
8189  It is therefore only sensible below a chapter.
8190 \end_layout
8191
8192 \begin_layout Description
8193 Epigraph: An epigraph is a smart slogan or motto at the beginning of a chapter.
8194  The epigraph environment provides an elegant way of typesetting such a
8195  motto.
8196  The motto itself (text) and its (optional) author (source) are divided
8197  by a short line.
8198  The author (source) can be inserted via 
8199 \family sans
8200 Insert\SpecialChar menuseparator
8201 Epigraph Source
8202 \family default
8203 \emph on
8204 .
8205 \end_layout
8206
8207 \begin_layout Description
8208 Poemtitle: Memoir has lots of possibilities to typeset poetry (up to very
8209  complex figurative poems).
8210  \SpecialChar LyX
8211  can only support a few of them.
8212  One is poemtitle, which is a centered title for poems, which will also
8213  be added to the table of contents (verse is the standard environment for
8214  poems.
8215  Memoir has some enhanced versions of verse, but you need to use \SpecialChar TeX
8216  code,
8217  because they have to be nested inside regular verse environments, which
8218  is not possible with \SpecialChar LyX
8219 ).
8220 \end_layout
8221
8222 \begin_layout Description
8223 Poemtitle*: Same as poemtitle, but it adds no entry to the table of contents.
8224 \end_layout
8225
8226 \begin_layout Subsection
8227
8228 \change_inserted 564990737 1671442175
8229
8230 \lang american
8231 Recipe Book
8232 \end_layout
8233
8234 \begin_layout Standard
8235
8236 \change_inserted 564990737 1671442175
8237
8238 \lang american
8239 The document class 
8240 \family typewriter
8241 RecipeBook.cls
8242 \family default
8243  uses the 
8244 \family sans
8245 book
8246 \begin_inset space \thinspace{}
8247 \end_inset
8248
8249 (KOMA-Script)
8250 \family default
8251  document class but adds two environments:
8252 \end_layout
8253
8254 \begin_layout Description
8255
8256 \change_inserted 564990737 1671442175
8257
8258 \lang american
8259 Recipe a numbered section environment at the 
8260 \family typewriter
8261 Subsubsection
8262 \family default
8263  level which generates a bold centered heading above a double horizontal
8264  rule
8265 \end_layout
8266
8267 \begin_layout Description
8268
8269 \change_inserted 564990737 1671442175
8270
8271 \lang american
8272 Ingredients a 
8273 \family typewriter
8274 Description
8275 \family default
8276  environment where 
8277 \series bold
8278 \emph on
8279 Ingredients
8280 \series default
8281 \emph default
8282  are what are being described and the environment ends with a horizontal
8283  rule.
8284 \end_layout
8285
8286 \begin_layout Standard
8287
8288 \change_inserted 564990737 1671642866
8289
8290 \family sans
8291 \lang british
8292 File\SpecialChar menuseparator
8293 Open Example\SpecialChar menuseparator
8294 Books\SpecialChar menuseparator
8295 Recipe Book
8296 \family default
8297 \lang american
8298  illustrates its use.
8299 \end_layout
8300
8301 \begin_layout Standard
8302
8303 \change_inserted 564990737 1671442175
8304
8305 \lang american
8306 It is designed for typesetting one or two recipes per page, with dimensions
8307  of 5.5
8308 \begin_inset Quotes qrd
8309 \end_inset
8310
8311  x 8.5
8312 \begin_inset Quotes qrd
8313 \end_inset
8314
8315 .
8316  The hyperlinked table of contents (ToC) and page numbers make browsing
8317  recipes convenient, and the pages can be joined together or printed 2 per
8318  page to normal letterpaper easily.
8319  The size was chosen to work in half-page 3-ring binder cover sheets, because
8320  un-laminated paper just doesn't last in the kitchen.
8321 \end_layout
8322
8323 \begin_layout Standard
8324
8325 \change_inserted 564990737 1671442175
8326
8327 \lang american
8328 The half-letter pages can be printed two per page using your printer driver,
8329  or bound together using 
8330 \family typewriter
8331 pdfjam --nup 2x1 --papersize '{11in,8.5in}'
8332 \family default
8333  
8334 \family typewriter
8335 Recipes.pdf
8336 \family default
8337  where 
8338 \family typewriter
8339 Recipes.pdf
8340 \family default
8341  is the compiled version of your recipes.
8342 \end_layout
8343
8344 \begin_layout Section
8345
8346 \change_inserted 564990737 1671442207
8347 Curricula vitarum
8348 \end_layout
8349
8350 \begin_layout Subsection
8351
8352 \change_inserted 564990737 1671442208
8353
8354 \lang american
8355 Europass
8356 \end_layout
8357
8358 \begin_layout Standard
8359
8360 \change_inserted 564990737 1671642942
8361
8362 \lang american
8363 The document class 
8364 \family sans
8365 curriculum
8366 \begin_inset space \space{}
8367 \end_inset
8368
8369 vitae
8370 \begin_inset space \thinspace{}
8371 \end_inset
8372
8373 (Europass)
8374 \family default
8375  provides the 
8376 \family typewriter
8377 europasscv.cls
8378 \family default
8379  document class, an unofficial implementation of the ‘Europass CV’ recommended
8380  by the European Commission in 2013.
8381  
8382 \family sans
8383 \lang british
8384 File\SpecialChar menuseparator
8385 Open Example\SpecialChar menuseparator
8386 Curricula Vitae\SpecialChar menuseparator
8387 Europass CV (2013)
8388 \family default
8389 \lang american
8390  offers guidance on its use.
8391  Its documentation is available from 
8392 \begin_inset CommandInset href
8393 LatexCommand href
8394 name "CTAN"
8395 target "http://mirrors.ctan.org/macros/latex/contrib/europasscv/europasscv.pdf"
8396 literal "false"
8397
8398 \end_inset
8399
8400 .
8401 \end_layout
8402
8403 \begin_layout Subsection
8404
8405 \change_inserted 564990737 1671442208
8406
8407 \lang american
8408 European
8409 \end_layout
8410
8411 \begin_layout Standard
8412
8413 \change_inserted 564990737 1671642984
8414
8415 \lang american
8416 The document class 
8417 \family sans
8418 curriculum
8419 \begin_inset space \space{}
8420 \end_inset
8421
8422 vitae
8423 \begin_inset space \thinspace{}
8424 \end_inset
8425
8426 (Europe)
8427 \family default
8428  provides the 
8429 \family typewriter
8430 europecv.cls
8431 \family default
8432  document class, an unofficial implementation of the “Europass CV” recommended
8433  by the European Commission in 2002.
8434  
8435 \family sans
8436 \lang british
8437 File\SpecialChar menuseparator
8438 Open Example\SpecialChar menuseparator
8439 Curricula Vitae\SpecialChar menuseparator
8440 Europe CV
8441 \family default
8442 \lang american
8443  offers guidance on its use.
8444  Its documentation is available from 
8445 \begin_inset CommandInset href
8446 LatexCommand href
8447 name "CTAN"
8448 target "http://mirrors.ctan.org/macros/latex/contrib/europecv/europecv.pdf"
8449 literal "false"
8450
8451 \end_inset
8452
8453 .
8454 \end_layout
8455
8456 \begin_layout Subsection
8457
8458 \change_inserted 564990737 1671442208
8459
8460 \lang american
8461 Modern
8462 \end_layout
8463
8464 \begin_layout Standard
8465
8466 \change_inserted 564990737 1671643003
8467
8468 \lang american
8469 The document class 
8470 \family sans
8471 curriculum
8472 \begin_inset space \space{}
8473 \end_inset
8474
8475 vitae
8476 \begin_inset space \thinspace{}
8477 \end_inset
8478
8479 (modern)
8480 \family default
8481  provides the 
8482 \family typewriter
8483 moderncv.cls
8484 \family default
8485  document class.
8486  This allows the creation of customizable CVs.
8487  
8488 \family sans
8489 \lang british
8490 File\SpecialChar menuseparator
8491 Open Example\SpecialChar menuseparator
8492 Curricula Vitae\SpecialChar menuseparator
8493 Modern CV
8494 \family default
8495 \lang american
8496  offers guidance on its use.
8497  Its documentation is available from 
8498 \begin_inset CommandInset href
8499 LatexCommand href
8500 name "CTAN"
8501 target "http://mirrors.ctan.org/macros/latex/contrib/moderncv/manual/moderncv_userguide.pdf"
8502 literal "false"
8503
8504 \end_inset
8505
8506 .
8507 \end_layout
8508
8509 \begin_layout Subsection
8510
8511 \change_inserted 564990737 1671442208
8512
8513 \lang american
8514 Simple
8515 \end_layout
8516
8517 \begin_layout Standard
8518
8519 \change_inserted 564990737 1671643024
8520
8521 \lang american
8522 The document class 
8523 \family sans
8524 curriculum
8525 \begin_inset space \space{}
8526 \end_inset
8527
8528 vitae
8529 \begin_inset space \thinspace{}
8530 \end_inset
8531
8532 (simple)
8533 \family default
8534  provides the 
8535 \family typewriter
8536 simplecv.cls
8537 \family default
8538  document class, originally developed for use with \SpecialChar LyX
8539 .
8540  
8541 \family sans
8542 \lang british
8543 File\SpecialChar menuseparator
8544 Open Example\SpecialChar menuseparator
8545 Curricula Vitae\SpecialChar menuseparator
8546 Simple CV
8547 \family default
8548 \lang american
8549  offers guidance on its use.
8550  Its documentation is available from 
8551 \begin_inset CommandInset href
8552 LatexCommand href
8553 name "CTAN"
8554 target "http://mirrors.ctan.org/macros/latex/contrib/simplecv/simplecv.pdf"
8555 literal "false"
8556
8557 \end_inset
8558
8559
8560 \end_layout
8561
8562 \begin_layout Section
8563
8564 \change_inserted 564990737 1671041968
8565 Letters
8566 \end_layout
8567
8568 \begin_layout Subsection
8569
8570 \change_inserted 564990737 1671041970
8571
8572 \lang american
8573 Din-Brief
8574 \end_layout
8575
8576 \begin_layout Standard
8577
8578 \change_inserted 564990737 1671617528
8579
8580 \lang american
8581 The document class 
8582 \family sans
8583 Din-Brief
8584 \family default
8585  provides the 
8586 \family typewriter
8587 dinbrief.cls
8588 \family default
8589  document class for writing letters according to the 
8590 \emph on
8591 Deutsches Institut für Normung
8592 \emph default
8593  conventions.
8594  The file in the menu 
8595 \family sans
8596 \bar under
8597 F
8598 \bar default
8599 ile\SpecialChar menuseparator
8600 New
8601 \begin_inset space ~
8602 \end_inset
8603
8604 fro
8605 \bar under
8606 m
8607 \bar default
8608
8609 \begin_inset space ~
8610 \end_inset
8611
8612 Template\SpecialChar menuseparator
8613 Letters\SpecialChar menuseparator
8614 DIN-Brief
8615 \family default
8616  offers guidance on its use.
8617  The documentation is available from 
8618 \begin_inset CommandInset href
8619 LatexCommand href
8620 name "CTAN"
8621 target "http://mirrors.ctan.org/macros/latex/contrib/dinbrief/liesmich"
8622 literal "false"
8623
8624 \end_inset
8625
8626 .
8627 \end_layout
8628
8629 \begin_layout Subsection
8630
8631 \change_inserted 564990737 1671458835
8632
8633 \lang american
8634 letter
8635 \end_layout
8636
8637 \begin_layout Standard
8638
8639 \change_inserted 564990737 1671617591
8640
8641 \lang american
8642 The document class 
8643 \family sans
8644 letter
8645 \family default
8646  provides the 
8647 \family sans
8648 letter.cls
8649 \family default
8650  document class for English letters and to create mailing labels.
8651  The file in the menu 
8652 \family sans
8653 \bar under
8654 F
8655 \bar default
8656 ile\SpecialChar menuseparator
8657 New
8658 \begin_inset space ~
8659 \end_inset
8660
8661 fro
8662 \bar under
8663 m
8664 \bar default
8665
8666 \begin_inset space ~
8667 \end_inset
8668
8669 Template\SpecialChar menuseparator
8670 Letters\SpecialChar menuseparator
8671 Letter (Standard Class)
8672 \family default
8673  offers guidance on its use.
8674 \end_layout
8675
8676 \begin_layout Section
8677
8678 \change_inserted 564990737 1670439660
8679 Presentations
8680 \end_layout
8681
8682 \begin_layout Subsection
8683
8684 \change_inserted 564990737 1671458922
8685
8686 \lang american
8687 Beamer
8688 \end_layout
8689
8690 \begin_layout Standard
8691
8692 \change_inserted 564990737 1671617655
8693
8694 \lang american
8695 The document class 
8696 \family sans
8697 presentation
8698 \begin_inset space \thinspace{}
8699 \end_inset
8700
8701 (beamer)
8702 \family default
8703  uses the 
8704 \family typewriter
8705 beamer.cls
8706 \family default
8707  document class for creating presentations.
8708  The file in the menu 
8709 \family sans
8710 \bar under
8711 F
8712 \bar default
8713 ile\SpecialChar menuseparator
8714 New
8715 \begin_inset space ~
8716 \end_inset
8717
8718 fro
8719 \bar under
8720 m
8721 \bar default
8722
8723 \begin_inset space ~
8724 \end_inset
8725
8726 Template\SpecialChar menuseparator
8727 Presentations\SpecialChar menuseparator
8728 Beamer
8729 \family default
8730  offers guidance on its use.
8731  The documentation is available from 
8732 \begin_inset CommandInset href
8733 LatexCommand href
8734 name "CTAN"
8735 target "http://mirrors.ctan.org/macros/latex/contrib/beamer/doc/beameruserguide.pdf"
8736 literal "false"
8737
8738 \end_inset
8739
8740 .
8741 \end_layout
8742
8743 \begin_layout Subsection
8744 Foils [aka 
8745 \family sans
8746 Foil\SpecialChar TeX
8747
8748 \family default
8749 ]
8750 \begin_inset CommandInset label
8751 LatexCommand label
8752 name "sec:foiltex"
8753
8754 \end_inset
8755
8756
8757 \end_layout
8758
8759 \begin_layout Standard
8760 by 
8761 \noun on
8762 Allan Rae
8763 \end_layout
8764
8765 \begin_layout Subsubsection
8766 Introduction
8767 \end_layout
8768
8769 \begin_layout Standard
8770 This section describes how to use \SpecialChar LyX
8771  to make slides for overhead projectors.
8772  There are two document classes that can do this: the default slides class
8773  and the 
8774 \family sans
8775 Foil\SpecialChar TeX
8776
8777 \family default
8778  slides class.
8779  This section documents the latter.
8780 \end_layout
8781
8782 \begin_layout Standard
8783 I'm going to say this again, nice and clear, so that there's no misunderstanding
8784 :
8785 \end_layout
8786
8787 \begin_layout Standard
8788 \begin_inset VSpace bigskip
8789 \end_inset
8790
8791
8792 \end_layout
8793
8794 \begin_layout Standard
8795 \align center
8796
8797 \size large
8798 This section documents the class 
8799 \begin_inset Quotes eld
8800 \end_inset
8801
8802
8803 \family sans
8804 FoilTeX
8805 \family default
8806
8807 \begin_inset Quotes erd
8808 \end_inset
8809
8810  
8811 \emph on
8812 only.
8813 \end_layout
8814
8815 \begin_layout Standard
8816 \begin_inset VSpace bigskip
8817 \end_inset
8818
8819
8820 \end_layout
8821
8822 \begin_layout Standard
8823 If you're looking for the documentation for 
8824 \begin_inset Quotes eld
8825 \end_inset
8826
8827
8828 \family sans
8829 slides (default)
8830 \family default
8831
8832 \begin_inset Quotes erd
8833 \end_inset
8834
8835 , check out section
8836 \begin_inset space ~
8837 \end_inset
8838
8839
8840 \begin_inset CommandInset ref
8841 LatexCommand ref
8842 nolink "false"
8843 reference "sec:slitex"
8844
8845 \end_inset
8846
8847 .
8848  If your machine doesn't have the 
8849 \family sans
8850 foils
8851 \family default
8852  class 
8853 \family sans
8854 FoilTeX
8855 \family default
8856  installed, you'll probably have to use the default 
8857 \family sans
8858 slides
8859 \family default
8860  class, which isn't quite as good as 
8861 \family sans
8862 foils.
8863 \end_layout
8864
8865 \begin_layout Standard
8866 The 
8867 \family sans
8868 foils
8869 \family default
8870  class is designed for use with version
8871 \begin_inset space ~
8872 \end_inset
8873
8874 2.1 of the 
8875 \family sans
8876 foils.cls
8877 \family default
8878  \SpecialChar LaTeX
8879  class file which is now an integral part of \SpecialChar LaTeX2e
8880 .
8881 \end_layout
8882
8883 \begin_layout Subsubsection
8884 Getting Started
8885 \end_layout
8886
8887 \begin_layout Standard
8888 Obviously, to use this document class, you need to select 
8889 \family sans
8890 FoilTeX
8891 \family default
8892  from the 
8893 \family sans
8894 Class
8895 \family default
8896  entry in the 
8897 \family sans
8898 Document
8899 \begin_inset space ~
8900 \end_inset
8901
8902 Layout
8903 \family default
8904  dialog.
8905  There are some settings in the 
8906 \family sans
8907 Document
8908 \begin_inset space ~
8909 \end_inset
8910
8911 Layout
8912 \family default
8913  dialog that you should know about that are specific to this class:
8914 \end_layout
8915
8916 \begin_layout Itemize
8917 Don't change the options 
8918 \family sans
8919 Sides
8920 \family default
8921  and 
8922 \family sans
8923 Columns
8924 \family default
8925  on the 
8926 \family sans
8927 Document
8928 \begin_inset space ~
8929 \end_inset
8930
8931 Layout
8932 \family default
8933  dialog.
8934  They're ignored by the 
8935 \family sans
8936 foils
8937 \family default
8938  class.
8939 \end_layout
8940
8941 \begin_layout Itemize
8942 The default font size is 20
8943 \begin_inset space \thinspace{}
8944 \end_inset
8945
8946 pt with the other options being 17
8947 \begin_inset space \thinspace{}
8948 \end_inset
8949
8950 pt, 25
8951 \begin_inset space \thinspace{}
8952 \end_inset
8953
8954 pt and 30
8955 \begin_inset space \thinspace{}
8956 \end_inset
8957
8958 pt.
8959 \end_layout
8960
8961 \begin_layout Itemize
8962 The default font is 
8963 \family sans
8964 sans
8965 \family default
8966  
8967 \family sans
8968 serif
8969 \family default
8970  but all math equations are still typeset in the usual roman font.
8971 \end_layout
8972
8973 \begin_layout Itemize
8974
8975 \family sans
8976 Foil\SpecialChar TeX
8977
8978 \family default
8979  supports A4 and Letter paper sizes as well as a special size for working
8980  with 35
8981 \begin_inset space \thinspace{}
8982 \end_inset
8983
8984 mm slides.
8985  It doesn't support A5, B5, legal or executive paper sizes.
8986 \end_layout
8987
8988 \begin_layout Itemize
8989 Don't bother changing the 
8990 \family sans
8991 Float Placement
8992 \family default
8993  settings because they are ignored anyway.
8994  All floats appear where they are defined in the text.
8995 \end_layout
8996
8997 \begin_layout Itemize
8998 The 
8999 \family sans
9000 Pagestyle
9001 \family default
9002  setting behaves a bit differently for this class.
9003  
9004 \family sans
9005 Foil\SpecialChar TeX
9006
9007 \family default
9008  provides extensive footer and header capabilities including a user-defined
9009  logo.
9010  See section
9011 \begin_inset space ~
9012 \end_inset
9013
9014
9015 \begin_inset CommandInset ref
9016 LatexCommand ref
9017 nolink "false"
9018 reference "sec:foilfoot"
9019
9020 \end_inset
9021
9022  for more details.
9023  The title page is treated differently to all other pages in the document
9024  and is 
9025 \emph on
9026 always
9027 \emph default
9028  unnumbered and 
9029 \emph on
9030 always
9031 \emph default
9032  has the logo centered at the bottom of the page (if one is defined).
9033  The possible page style choices and what they do are as follows:
9034 \end_layout
9035
9036 \begin_deeper
9037 \begin_layout Labeling
9038 \labelwidthstring MMMMMMM
9039
9040 \family sans
9041 \series bold
9042 empty
9043 \family default
9044 \series default
9045  The final output contains no page numbers, or other headers or footers
9046  (except footnotes of course).
9047  
9048 \end_layout
9049
9050 \begin_layout Labeling
9051 \labelwidthstring MMMMMMM
9052
9053 \family sans
9054 \series bold
9055 plain
9056 \family default
9057 \series default
9058  The final output contains page numbers centered at the bottom of the page.
9059  No other headings or footers (other than footnotes).
9060 \end_layout
9061
9062 \begin_layout Labeling
9063 \labelwidthstring MMMMMMM
9064
9065 \series bold
9066 foilheadings
9067 \series default
9068  Page numbers in lower right corner.
9069  Additional headers and footers are also shown.
9070  This is also the default.
9071 \end_layout
9072
9073 \begin_layout Labeling
9074 \labelwidthstring MMMMMMM
9075
9076 \series bold
9077 fancy
9078 \series default
9079  Gives you access to the 
9080 \family sans
9081 fancyheadings
9082 \family default
9083  package although its use with 
9084 \family sans
9085 Foil\SpecialChar TeX
9086
9087 \family default
9088  is discouraged by the writer of the 
9089 \family sans
9090 Foil\SpecialChar TeX
9091
9092 \family default
9093  package because of some potential page layout clashes.
9094 \end_layout
9095
9096 \end_deeper
9097 \begin_layout Paragraph
9098 Extra Options
9099 \end_layout
9100
9101 \begin_layout Standard
9102 The following options may be used in the extra class options in the 
9103 \family sans
9104 Document\SpecialChar menuseparator
9105 Settings
9106 \family default
9107  dialog.
9108 \end_layout
9109
9110 \begin_layout Labeling
9111 \labelwidthstring MMMMMMx
9112
9113 \series bold
9114 35mmSlide
9115 \series default
9116  This sets up the page layout for 7.33
9117 \begin_inset space \thinspace{}
9118 \end_inset
9119
9120 in by 11
9121 \begin_inset space \thinspace{}
9122 \end_inset
9123
9124 in paper, which is about the same aspect ratio as a 35
9125 \begin_inset space \thinspace{}
9126 \end_inset
9127
9128 mm slide, making it a bit easier to work with this medium.
9129 \end_layout
9130
9131 \begin_layout Labeling
9132 \labelwidthstring MMMMMMx
9133
9134 \series bold
9135 headrule
9136 \series default
9137  Places a rule across the page below the header on every page except the
9138  title page.
9139 \end_layout
9140
9141 \begin_layout Labeling
9142 \labelwidthstring MMMMMMx
9143
9144 \series bold
9145 footrule
9146 \series default
9147  Places a rule across the page above the footer on every page except the
9148  title page.
9149 \end_layout
9150
9151 \begin_layout Labeling
9152 \labelwidthstring MMMMMMx
9153
9154 \series bold
9155 dvips
9156 \series default
9157  This is automatically set each time you create a new 
9158 \family sans
9159 foils
9160 \family default
9161  document.
9162  This option tells 
9163 \family sans
9164 Foil\SpecialChar TeX
9165
9166 \family default
9167  to use the dvips driver to rotate those pages that are set as landscape
9168  foils.
9169 \end_layout
9170
9171 \begin_layout Labeling
9172 \labelwidthstring MMMMMMx
9173
9174 \series bold
9175 landscape
9176 \series default
9177  Simply changes the page dimensions to those of a landscape page but doesn't
9178  do any rotation.
9179  Thus if you use this option you need to use an external program to rotate
9180  each page or feed your paper through your printer as landscape.
9181  Note that this option effectively reverses the roles of the 
9182 \family sans
9183 Foilhead
9184 \family default
9185  and 
9186 \family sans
9187 Rotatefoilhead
9188 \family default
9189  environments (don't worry these are described in the next section).
9190 \end_layout
9191
9192 \begin_layout Labeling
9193 \labelwidthstring MMMMMMx
9194
9195 \series bold
9196 leqno
9197 \series default
9198  Equation numbers on the left.
9199 \end_layout
9200
9201 \begin_layout Labeling
9202 \labelwidthstring MMMMMMx
9203
9204 \series bold
9205 fleqn
9206 \series default
9207  Flush-left equations.
9208 \end_layout
9209
9210 \begin_layout Subsubsection
9211 Supported Environments
9212 \end_layout
9213
9214 \begin_layout Standard
9215 Most of the environments commonly supported in other classes are also supported
9216  by the 
9217 \family sans
9218 foils
9219 \family default
9220  class.
9221  There are several additional environments provided by 
9222 \family sans
9223 Foil\SpecialChar TeX
9224
9225 \family default
9226  as well as a couple added by \SpecialChar LyX
9227 .
9228  The following environments are shared with other classes:
9229 \end_layout
9230
9231 \begin_layout Standard
9232 \begin_inset Flex Multiple Columns
9233 status open
9234
9235 \begin_layout Itemize
9236
9237 \family sans
9238 Standard
9239 \end_layout
9240
9241 \begin_layout Itemize
9242
9243 \family sans
9244 Itemize
9245 \end_layout
9246
9247 \begin_layout Itemize
9248
9249 \family sans
9250 Enumerate
9251 \end_layout
9252
9253 \begin_layout Itemize
9254
9255 \family sans
9256 Description
9257 \end_layout
9258
9259 \begin_layout Itemize
9260
9261 \family sans
9262 List
9263 \end_layout
9264
9265 \begin_layout Itemize
9266
9267 \family sans
9268 \SpecialChar LyX
9269 -Code
9270 \end_layout
9271
9272 \begin_layout Itemize
9273
9274 \family sans
9275 Verse
9276 \end_layout
9277
9278 \begin_layout Itemize
9279
9280 \family sans
9281 Quote
9282 \end_layout
9283
9284 \begin_layout Itemize
9285
9286 \family sans
9287 Quotation
9288 \end_layout
9289
9290 \begin_layout Itemize
9291
9292 \family sans
9293 TitleAuthor
9294 \end_layout
9295
9296 \begin_layout Itemize
9297
9298 \family sans
9299 Date
9300 \end_layout
9301
9302 \begin_layout Itemize
9303
9304 \family sans
9305 Abstract
9306 \end_layout
9307
9308 \begin_layout Itemize
9309
9310 \family sans
9311 Bibliography
9312 \end_layout
9313
9314 \begin_layout Itemize
9315
9316 \family sans
9317 Address
9318 \end_layout
9319
9320 \begin_layout Itemize
9321
9322 \family sans
9323 RightAddress
9324 \end_layout
9325
9326 \end_inset
9327
9328
9329 \end_layout
9330
9331 \begin_layout Standard
9332 That is, all the major environments apart from the sectioning environments.
9333  Since foils are essentially self-contained sections, with a title and body,
9334  
9335 \family sans
9336 Foil\SpecialChar TeX
9337
9338 \family default
9339  provides specific commands for starting new foils and these are:
9340 \end_layout
9341
9342 \begin_layout Itemize
9343
9344 \family sans
9345 Foilhead
9346 \end_layout
9347
9348 \begin_layout Itemize
9349
9350 \family sans
9351 Rotatefoilhead
9352 \end_layout
9353
9354 \begin_layout Standard
9355 \SpecialChar LyX
9356  also provides slightly modified versions of these two environments called:
9357 \end_layout
9358
9359 \begin_layout Itemize
9360
9361 \family sans
9362 ShortFoilhead
9363 \end_layout
9364
9365 \begin_layout Itemize
9366
9367 \family sans
9368 ShortRotatefoilhead
9369 \end_layout
9370
9371 \begin_layout Standard
9372 and the differences will be explained in the next section.
9373 \end_layout
9374
9375 \begin_layout Standard
9376 Since foils are often used in presenting ideas or new theorems and such
9377  
9378 \family sans
9379 Foil\SpecialChar TeX
9380
9381 \family default
9382  also provides a comprehensive box of goodies for presenting them:
9383 \end_layout
9384
9385 \begin_layout Standard
9386 \begin_inset Flex Multiple Columns
9387 status open
9388
9389 \begin_layout Itemize
9390
9391 \family sans
9392 Theorem
9393 \end_layout
9394
9395 \begin_layout Itemize
9396
9397 \family sans
9398 Lemma
9399 \end_layout
9400
9401 \begin_layout Itemize
9402
9403 \family sans
9404 Corollary
9405 \end_layout
9406
9407 \begin_layout Itemize
9408
9409 \family sans
9410 Proposition
9411 \end_layout
9412
9413 \begin_layout Itemize
9414
9415 \family sans
9416 Definition
9417 \end_layout
9418
9419 \begin_layout Itemize
9420
9421 \family sans
9422 Proof
9423 \end_layout
9424
9425 \begin_layout Itemize
9426
9427 \family sans
9428 Theorem*
9429 \end_layout
9430
9431 \begin_layout Itemize
9432
9433 \family sans
9434 Lemma*
9435 \end_layout
9436
9437 \begin_layout Itemize
9438
9439 \family sans
9440 Corollary*
9441 \end_layout
9442
9443 \begin_layout Itemize
9444
9445 \family sans
9446 Proposition*
9447 \end_layout
9448
9449 \begin_layout Itemize
9450
9451 \family sans
9452 Definition*
9453 \end_layout
9454
9455 \end_inset
9456
9457
9458 \end_layout
9459
9460 \begin_layout Standard
9461 The starred versions are unnumbered while the unstarred versions are numbered.
9462  There are also two list environments added by \SpecialChar LyX
9463  and these are:
9464 \end_layout
9465
9466 \begin_layout Itemize
9467
9468 \family sans
9469 TickList
9470 \end_layout
9471
9472 \begin_layout Itemize
9473
9474 \family sans
9475 CrossList
9476 \end_layout
9477
9478 \begin_layout Standard
9479
9480 \family sans
9481 Foil\SpecialChar TeX
9482
9483 \family default
9484  provides some powerful header and footer capabilities that are best set
9485  in the preamble although they may be set at any point in a document.
9486  If you want to change these settings in your document the best place to
9487  do so is at the very top of a foil, i.
9488 \begin_inset space \thinspace{}
9489 \end_inset
9490
9491 e.
9492 \emph on
9493
9494 \begin_inset space \space{}
9495 \end_inset
9496
9497
9498 \emph default
9499 straight after the foilhead.
9500 \end_layout
9501
9502 \begin_layout Standard
9503 For this purpose, the following command styles are provided [
9504 \shape smallcaps
9505 Martin Vermeer
9506 \shape default
9507 ]:
9508 \end_layout
9509
9510 \begin_layout Standard
9511 \begin_inset Flex Multiple Columns
9512 status open
9513
9514 \begin_layout Itemize
9515
9516 \family sans
9517 My
9518 \begin_inset space ~
9519 \end_inset
9520
9521 Logo
9522 \end_layout
9523
9524 \begin_layout Itemize
9525
9526 \family sans
9527 Restriction
9528 \end_layout
9529
9530 \begin_layout Itemize
9531
9532 \family sans
9533 Right
9534 \begin_inset space ~
9535 \end_inset
9536
9537 Footer
9538 \end_layout
9539
9540 \begin_layout Itemize
9541
9542 \family sans
9543 Right
9544 \begin_inset space ~
9545 \end_inset
9546
9547 Header
9548 \end_layout
9549
9550 \begin_layout Itemize
9551
9552 \family sans
9553 Left
9554 \begin_inset space ~
9555 \end_inset
9556
9557 Header
9558 \end_layout
9559
9560 \begin_deeper
9561 \begin_layout Plain Layout
9562 \begin_inset space ~
9563 \end_inset
9564
9565
9566 \end_layout
9567
9568 \end_deeper
9569 \end_inset
9570
9571
9572 \end_layout
9573
9574 \begin_layout Standard
9575 There are also a few commands provided by 
9576 \family sans
9577 Foil\SpecialChar TeX
9578
9579 \family default
9580  that aren't directly supported by \SpecialChar LyX
9581  but I'll tell you what they do and how
9582  to use them in section
9583 \begin_inset space ~
9584 \end_inset
9585
9586
9587 \begin_inset CommandInset ref
9588 LatexCommand ref
9589 nolink "false"
9590 reference "sec:unsuppfoils"
9591
9592 \end_inset
9593
9594 .
9595 \end_layout
9596
9597 \begin_layout Subsubsection
9598 Building a Set of Foils
9599 \end_layout
9600
9601 \begin_layout Standard
9602 This section will give a simple introduction to using the different environments
9603  to build a set of foils.
9604  If you want to see an example set of foils, take a look at 
9605 \change_deleted 564990737 1671643085
9606 the 
9607 \family typewriter
9608 Foils.lyx
9609 \family default
9610  file you find in \SpecialChar LyX
9611 's 
9612 \family typewriter
9613 examples
9614 \family default
9615  folder
9616 \change_inserted 564990737 1671643099
9617
9618 \family sans
9619 \lang british
9620 File\SpecialChar menuseparator
9621 Open Example
9622 \lang english
9623 \SpecialChar menuseparator
9624 Presentations\SpecialChar menuseparator
9625 Foils
9626 \change_unchanged
9627
9628 \family default
9629 .
9630 \end_layout
9631
9632 \begin_layout Paragraph
9633 Give It a Title Page
9634 \end_layout
9635
9636 \begin_layout Standard
9637 Unlike other classes that provide 
9638 \family sans
9639 Title
9640 \family default
9641
9642 \family sans
9643 Author
9644 \family default
9645
9646 \family sans
9647 Date
9648 \family default
9649  and 
9650 \family sans
9651 Abstract
9652 \family default
9653  environments, 
9654 \family sans
9655 foils
9656 \family default
9657  creates the title on a page of its own.
9658  If you leave out the 
9659 \family sans
9660 Date
9661 \family default
9662  environment \SpecialChar LaTeX
9663  will substitute the current date (every time you regenerate
9664  the output).
9665 \end_layout
9666
9667 \begin_layout Paragraph
9668 Start a New Foil
9669 \end_layout
9670
9671 \begin_layout Standard
9672 As I mentioned earlier, there are four ways of starting a new foil.
9673  For portrait foils you should use 
9674 \family sans
9675 Foilhead
9676 \family default
9677  or 
9678 \family sans
9679 ShortFoilhead.
9680
9681 \family default
9682  The difference between these two environments is the amount of space between
9683  the title of the foil (the foilhead) and the body of the foil.
9684 \end_layout
9685
9686 \begin_layout Standard
9687 Landscape foils are generated using the 
9688 \family sans
9689 Rotatefoilhead
9690 \family default
9691  and 
9692 \family sans
9693 ShortRotatefoilhead
9694 \family default
9695  environments.
9696  Again the only difference is the spacing between foilhead and body.
9697  Both of the short versions have 0.5
9698 \begin_inset space ~
9699 \end_inset
9700
9701 inches less separation between the foilhead and the body.
9702  
9703 \end_layout
9704
9705 \begin_layout Standard
9706 One problem with the support for landscape foils is the requirement that
9707  you have to use the 
9708 \family typewriter
9709 dvips
9710 \family default
9711  driver to generate the PostScript output otherwise the foils won't be rotated.
9712  It is possible to get landscape foils even if you haven't got the 
9713 \family typewriter
9714 dvips
9715 \family default
9716  driver provided you can feed your foils sideways through your printer ;-)
9717 \end_layout
9718
9719 \begin_layout Paragraph
9720 Theorems, Lemmas, Proofs and more
9721 \end_layout
9722
9723 \begin_layout Standard
9724 You can't have two of the same type of these environments directly following
9725  each other.
9726  If you use a normal paragraph break, , you will just be extending the previous
9727  environment as if you had merged the two environments together.
9728  Rather than that, you need to insert a so-called separator.
9729  Please refer to the section entitled 
9730 \emph on
9731 Separate Nestings
9732 \emph default
9733  in the 
9734 \emph on
9735 User's Guide
9736 \emph default
9737 .
9738 \end_layout
9739
9740 \begin_layout Paragraph
9741 Lists
9742 \end_layout
9743
9744 \begin_layout Standard
9745 You get all the commonly supported list styles found in other classes as
9746  well as two new ones.
9747  I'll only describe the new ones here.
9748  If you want to find out more about the other list environments check out
9749  the 
9750 \emph on
9751 User's Guide.
9752
9753 \emph default
9754  If you intend to use itemized lists you might also want to read about the
9755  
9756 \family sans
9757 Itemize
9758 \begin_inset space ~
9759 \end_inset
9760
9761 Bullet
9762 \begin_inset space ~
9763 \end_inset
9764
9765 Selection
9766 \family default
9767  dialog described above in section
9768 \begin_inset space ~
9769 \end_inset
9770
9771
9772 \change_inserted 564990737 1671355684
9773
9774 \begin_inset CommandInset ref
9775 LatexCommand ref
9776 nolink "false"
9777 reference "chap:bullets"
9778
9779 \end_inset
9780
9781
9782 \change_deleted 564990737 1671355684
9783
9784 \begin_inset CommandInset ref
9785 LatexCommand ref
9786 nolink "false"
9787 reference "sec:bullet"
9788
9789 \end_inset
9790
9791
9792 \change_unchanged
9793 .
9794 \end_layout
9795
9796 \begin_layout Standard
9797 The two new list styles, 
9798 \family sans
9799 TickList
9800 \family default
9801  and 
9802 \family sans
9803 CrossList
9804 \family default
9805 , are designed to make it easier for you to create lists of do's and don'ts
9806  or right and wrong by providing dedicated environments that use a tick
9807  or a cross as the label of the list.
9808  These lists are in fact dedicated variants of the 
9809 \family sans
9810 Itemize
9811 \family default
9812  environment.
9813  They do however require that you have the 
9814 \family typewriter
9815 psnfss
9816 \family default
9817  packages installed.
9818 \end_layout
9819
9820 \begin_layout Paragraph
9821 Figures and Tables
9822 \end_layout
9823
9824 \begin_layout Standard
9825
9826 \family sans
9827 Foil\SpecialChar TeX
9828
9829 \family default
9830  redefines the floating tables and figures so that they appear exactly where
9831  they are in the text rather than pushing them to the top of the page or
9832  to some user specified location.
9833  In fact if you change the float placement settings they are simply ignored.
9834 \end_layout
9835
9836 \begin_layout Paragraph
9837 Page Headers and Footers
9838 \begin_inset CommandInset label
9839 LatexCommand label
9840 name "sec:foilfoot"
9841
9842 \end_inset
9843
9844
9845 \end_layout
9846
9847 \begin_layout Standard
9848
9849 \family sans
9850 My
9851 \begin_inset space ~
9852 \end_inset
9853
9854 Logo
9855 \family default
9856  and 
9857 \family sans
9858 Restriction
9859 \family default
9860  are two commands used to control the left-footer text string.
9861  The first is meant to allow you to include a graphic logo on your foils
9862  and defaults to 
9863 \begin_inset Quotes eld
9864 \end_inset
9865
9866 -Typeset by 
9867 \family sans
9868 Foil\SpecialChar TeX
9869
9870 \family default
9871 -
9872 \begin_inset Quotes erd
9873 \end_inset
9874
9875 .
9876  While the second is meant to provide a classification for the audience,
9877  
9878 \emph on
9879 e.
9880 \begin_inset space \thinspace{}
9881 \end_inset
9882
9883 g.
9884 \emph default
9885
9886 \begin_inset space \space{}
9887 \end_inset
9888
9889 Confidential.
9890  It is empty by default.
9891 \end_layout
9892
9893 \begin_layout Standard
9894 The remaining page corners can be filled by 
9895 \family sans
9896 Right
9897 \begin_inset space ~
9898 \end_inset
9899
9900 Footer
9901 \family default
9902  (which defaults to page numbers), 
9903 \family sans
9904 Right
9905 \begin_inset space ~
9906 \end_inset
9907
9908 Header
9909 \family default
9910  (top right) and 
9911 \family sans
9912 Left
9913 \begin_inset space ~
9914 \end_inset
9915
9916 Header
9917 \family default
9918  (top left).
9919 \end_layout
9920
9921 \begin_layout Subsubsection
9922 Unsupported 
9923 \family sans
9924 Foil\SpecialChar TeX
9925
9926 \family default
9927  Goodies
9928 \begin_inset CommandInset label
9929 LatexCommand label
9930 name "sec:unsuppfoils"
9931
9932 \end_inset
9933
9934
9935 \end_layout
9936
9937 \begin_layout Standard
9938 All the commands mentioned below need to be set in a 
9939 \family sans
9940 \SpecialChar LaTeX
9941
9942 \family default
9943  environment or as 
9944 \family sans
9945 \SpecialChar TeX
9946
9947 \family default
9948  within another environment.
9949 \end_layout
9950
9951 \begin_layout Paragraph
9952 Lengths
9953 \end_layout
9954
9955 \begin_layout Standard
9956 All lengths are adjusted using the 
9957 \family typewriter
9958
9959 \backslash
9960 setlength{
9961 \family default
9962 \emph on
9963 lengthname
9964 \family typewriter
9965 \emph default
9966 }{
9967 \family default
9968 \emph on
9969 newlength
9970 \family typewriter
9971 \emph default
9972 }
9973 \family default
9974  command.
9975  Where 
9976 \emph on
9977 lengthname
9978 \emph default
9979  should be replaced by the name given to the length you want to change and
9980  
9981 \emph on
9982 newlength
9983 \emph default
9984  is the length value.
9985  All lengths should be specified in units of length such as inches (
9986 \family typewriter
9987 in
9988 \family default
9989 ), millimeters (
9990 \family typewriter
9991 mm
9992 \family default
9993 ) or points (
9994 \family typewriter
9995 pt
9996 \family default
9997 ) or relative to some document or font-based length such as 
9998 \family typewriter
9999
10000 \backslash
10001 textwidth
10002 \family default
10003 .
10004  
10005 \end_layout
10006
10007 \begin_layout Standard
10008 It's possible to change the spacing between a foilhead and the body of the
10009  foil by adjusting the length specified by 
10010 \family typewriter
10011
10012 \backslash
10013 foilheadskip
10014 \family default
10015 .
10016  For example, to make 
10017 \emph on
10018 all
10019 \emph default
10020  foilheads 0.5
10021 \begin_inset space \space{}
10022 \end_inset
10023
10024 in closer to their bodies put the following in the preamble: 
10025 \family typewriter
10026
10027 \backslash
10028 setlength{
10029 \backslash
10030 foilheadskip}{-0.5in}
10031 \end_layout
10032
10033 \begin_layout Standard
10034 The spacings around floats can be adjusted by setting these lengths:
10035 \end_layout
10036
10037 \begin_layout Labeling
10038 \labelwidthstring MMMMMMMMMMM
10039
10040 \family typewriter
10041
10042 \backslash
10043 abovefloatskip
10044 \family default
10045  Separation between the text and the top of the float
10046 \end_layout
10047
10048 \begin_layout Labeling
10049 \labelwidthstring MMMMMMMMMMM
10050
10051 \family typewriter
10052
10053 \backslash
10054 abovecaptionskip
10055 \family default
10056  Separation between the float and the caption
10057 \end_layout
10058
10059 \begin_layout Labeling
10060 \labelwidthstring MMMMMMMMMMM
10061
10062 \family typewriter
10063
10064 \backslash
10065 belowcaptionskip
10066 \family default
10067  Separation between the caption and the following text
10068 \end_layout
10069
10070 \begin_layout Labeling
10071 \labelwidthstring MMMMMMMMMMM
10072
10073 \family typewriter
10074
10075 \backslash
10076 captionwidth
10077 \family default
10078  You can make the captions narrower than the surrounding text by adjusting
10079  this length.
10080  Best done relative to 
10081 \family typewriter
10082
10083 \backslash
10084 textwidth
10085 \family default
10086 .
10087 \end_layout
10088
10089 \begin_layout Standard
10090 There are also several title page related lengths that you may find useful
10091  if you have a long title or several authors:
10092 \end_layout
10093
10094 \begin_layout Labeling
10095 \labelwidthstring MMMMMMMMMMM
10096
10097 \family typewriter
10098
10099 \backslash
10100 abovetitleskip
10101 \family default
10102  Separation from headers to 
10103 \family sans
10104 Title
10105 \end_layout
10106
10107 \begin_layout Labeling
10108 \labelwidthstring MMMMMMMMMMM
10109
10110 \family typewriter
10111
10112 \backslash
10113 titleauthorskip
10114 \family default
10115  between 
10116 \family sans
10117 Title
10118 \family default
10119  and 
10120 \family sans
10121 Author
10122 \family default
10123  environments
10124 \end_layout
10125
10126 \begin_layout Labeling
10127 \labelwidthstring MMMMMMMMMMM
10128
10129 \family typewriter
10130
10131 \backslash
10132 authorauthorskip
10133 \family default
10134  between multiple 
10135 \family sans
10136 Author
10137 \family default
10138  lines
10139 \end_layout
10140
10141 \begin_layout Labeling
10142 \labelwidthstring MMMMMMMMMMM
10143
10144 \family typewriter
10145
10146 \backslash
10147 authordateskip
10148 \family default
10149  between the 
10150 \family sans
10151 Author
10152 \family default
10153  and the 
10154 \family sans
10155 Date
10156 \end_layout
10157
10158 \begin_layout Labeling
10159 \labelwidthstring MMMMMMMMMMM
10160
10161 \family typewriter
10162
10163 \backslash
10164 dateabstractskip
10165 \family default
10166  between the 
10167 \family sans
10168 Date
10169 \family default
10170  and the 
10171 \family sans
10172 Abstract
10173 \end_layout
10174
10175 \begin_layout Standard
10176 The last length related command affects all the list environments.
10177  If you place 
10178 \family typewriter
10179
10180 \backslash
10181 zerolistvertdimens
10182 \family default
10183  
10184 \emph on
10185 inside
10186 \emph default
10187  a list environment then all the vertical spacing between the list items
10188  is removed.
10189  Note that this is a command not a length so it doesn't require 
10190 \family typewriter
10191
10192 \backslash
10193 setlength
10194 \family default
10195  like the stuff mentioned above.
10196 \end_layout
10197
10198 \begin_layout Paragraph
10199 Headers and Footers
10200 \end_layout
10201
10202 \begin_layout Standard
10203 The 
10204 \family typewriter
10205
10206 \backslash
10207 LogoOn
10208 \family default
10209  and 
10210 \family typewriter
10211
10212 \backslash
10213 LogoOff
10214 \family default
10215  commands control whether the logo in the 
10216 \family sans
10217 MyLogo
10218 \family default
10219  definition appear on a given page.
10220  If you put 
10221 \family typewriter
10222
10223 \backslash
10224 LogoOff
10225 \family default
10226  in the preamble then none of the foils will have the logo on them.
10227  If you don't want the logo on a particular page place the 
10228 \family typewriter
10229
10230 \backslash
10231 LogoOff
10232 \family default
10233  directly after the foilhead of that page and the 
10234 \family typewriter
10235
10236 \backslash
10237 LogoOn
10238 \family default
10239  directly after the next foilhead.
10240 \end_layout
10241
10242 \begin_layout Standard
10243 If you decide to use the 
10244 \family sans
10245 fancy
10246 \family default
10247  page style setting in the 
10248 \family sans
10249 Document
10250 \begin_inset space ~
10251 \end_inset
10252
10253 Layout
10254 \family default
10255  dialog you should probably add 
10256 \family typewriter
10257
10258 \backslash
10259 let
10260 \backslash
10261 headwidth
10262 \backslash
10263 textwidth
10264 \family default
10265  to your preamble so headers and footers on landscape pages are correctly
10266  placed when rotated.
10267  This is due to some clashes between the page layouts provided by the 
10268 \family sans
10269 fancyheadings
10270 \family default
10271  package and the 
10272 \family sans
10273 foils
10274 \family default
10275  class.
10276 \end_layout
10277
10278 \begin_layout Subsection
10279
10280 \change_inserted 564990737 1671459032
10281
10282 \lang american
10283 Powerdot
10284 \end_layout
10285
10286 \begin_layout Standard
10287
10288 \change_inserted 564990737 1671643165
10289
10290 \lang american
10291 The document class 
10292 \family sans
10293 presentation
10294 \begin_inset space \thinspace{}
10295 \end_inset
10296
10297 (powerdot)
10298 \family default
10299  uses the 
10300 \family typewriter
10301 powerdot.cls
10302 \family default
10303  document class for creating presentations.
10304  
10305 \family sans
10306 \lang british
10307 File\SpecialChar menuseparator
10308 Open Example\SpecialChar menuseparator
10309 Presentations\SpecialChar menuseparator
10310 Powerdot
10311 \family default
10312 \lang american
10313  offers guidance on its use.
10314  The documentation is available from 
10315 \begin_inset CommandInset href
10316 LatexCommand href
10317 name "CTAN"
10318 target "http://mirrors.ctan.org/macros/latex/contrib/powerdot/doc/powerdot.pdf"
10319 literal "false"
10320
10321 \end_inset
10322
10323 .
10324 \end_layout
10325
10326 \begin_layout Subsection
10327
10328 \change_inserted 564990737 1671459032
10329
10330 \lang american
10331 \begin_inset CommandInset label
10332 LatexCommand label
10333 name "subsec:Seminar"
10334
10335 \end_inset
10336
10337
10338 \family sans
10339 Seminar
10340 \end_layout
10341
10342 \begin_layout Standard
10343
10344 \change_inserted 564990737 1671643194
10345
10346 \lang american
10347 The document class 
10348 \family sans
10349 presentations
10350 \begin_inset space \thinspace{}
10351 \end_inset
10352
10353 (seminar)
10354 \family default
10355  uses the 
10356 \family typewriter
10357 seminar.cls
10358 \family default
10359  document class for creating presentations.
10360  
10361 \family sans
10362 \lang british
10363 File\SpecialChar menuseparator
10364 Open Example\SpecialChar menuseparator
10365 Presentations\SpecialChar menuseparator
10366 Seminar
10367 \family default
10368 \lang american
10369  offers guidance on its use.
10370  The documentation is available from 
10371 \begin_inset CommandInset href
10372 LatexCommand href
10373 name "CTAN"
10374 target "http://mirrors.ctan.org/macros/latex/contrib/seminar/doc/seminar-doc.pdf"
10375 literal "false"
10376
10377 \end_inset
10378
10379 .
10380 \end_layout
10381
10382 \begin_layout Subsection
10383 Slides [aka 
10384 \noun on
10385 Sli\SpecialChar TeX
10386
10387 \noun default
10388 ]
10389 \begin_inset CommandInset label
10390 LatexCommand label
10391 name "sec:slitex"
10392
10393 \end_inset
10394
10395
10396 \end_layout
10397
10398 \begin_layout Standard
10399 by 
10400 \noun on
10401 John Weiss
10402 \noun default
10403  
10404 \end_layout
10405
10406 \begin_layout Subsubsection
10407 Introduction
10408 \end_layout
10409
10410 \begin_layout Standard
10411 This section describes how to use \SpecialChar LyX
10412  to make slides for overhead projectors.
10413  There are two document classes that can do this: the default slides class
10414  and the 
10415 \family sans
10416 Foil\SpecialChar TeX
10417
10418 \family default
10419  slides class.
10420  This section documents the former.
10421 \end_layout
10422
10423 \begin_layout Standard
10424 I'm going to say this again, nice and clear, so that there's no misunderstanding
10425 :
10426 \end_layout
10427
10428 \begin_layout Standard
10429 \begin_inset VSpace bigskip
10430 \end_inset
10431
10432
10433 \end_layout
10434
10435 \begin_layout Standard
10436 \align center
10437
10438 \size large
10439 This section documents the class 
10440 \begin_inset Quotes eld
10441 \end_inset
10442
10443
10444 \family sans
10445 slides (default)
10446 \family default
10447
10448 \begin_inset Quotes erd
10449 \end_inset
10450
10451  
10452 \emph on
10453 only.
10454 \end_layout
10455
10456 \begin_layout Standard
10457 \begin_inset VSpace bigskip
10458 \end_inset
10459
10460
10461 \end_layout
10462
10463 \begin_layout Standard
10464 If you're looking for the documentation for 
10465 \begin_inset Quotes eld
10466 \end_inset
10467
10468
10469 \family sans
10470 slides (Foil\SpecialChar TeX
10471 )
10472 \family default
10473
10474 \begin_inset Quotes erd
10475 \end_inset
10476
10477 , check out section
10478 \begin_inset space ~
10479 \end_inset
10480
10481
10482 \begin_inset CommandInset ref
10483 LatexCommand ref
10484 nolink "false"
10485 reference "sec:foiltex"
10486
10487 \end_inset
10488
10489 .
10490  The 
10491 \family sans
10492 foils
10493 \family default
10494  class [
10495 \begin_inset Quotes eld
10496 \end_inset
10497
10498
10499 \family sans
10500 slides (Foil\SpecialChar TeX
10501 )
10502 \family default
10503
10504 \begin_inset Quotes erd
10505 \end_inset
10506
10507 ] is actually somewhat better than the default 
10508 \family sans
10509 slides
10510 \family default
10511  class,
10512 \begin_inset Foot
10513 status collapsed
10514
10515 \begin_layout Plain Layout
10516 \SpecialChar ldots
10517 or so I've been told repeatedly by its advocates.
10518  Having never used it, I have no idea if this claim is true or not.
10519 \end_layout
10520
10521 \end_inset
10522
10523  which this section documents.
10524 \end_layout
10525
10526 \begin_layout Standard
10527 This class is the \SpecialChar LaTeX2e
10528  improvement of the old 
10529 \noun on
10530 Sli\SpecialChar TeX
10531
10532 \noun default
10533  package.
10534  Every \SpecialChar LaTeX2e
10535  distribution includes this class [which I'll just refer to as 
10536 \begin_inset Quotes eld
10537 \end_inset
10538
10539
10540 \family sans
10541 slides
10542 \family default
10543
10544 \begin_inset Quotes erd
10545 \end_inset
10546
10547  from now on], so you're bound to have it.
10548  As I noted earlier, there are other classes, such as 
10549 \family sans
10550 foils
10551 \family default
10552 , which also produce slides for overhead projectors and do a better job
10553  at it.
10554  However, there are some things which 
10555 \family sans
10556 slides
10557 \family default
10558  can do which the others can't, such as generate overlays.
10559  Read on to learn more!
10560 \end_layout
10561
10562 \begin_layout Subsubsection
10563 Getting Started
10564 \begin_inset CommandInset label
10565 LatexCommand label
10566 name "sec:slidesetup"
10567
10568 \end_inset
10569
10570
10571 \end_layout
10572
10573 \begin_layout Standard
10574 Obviously, to use this document class, you need to select 
10575 \begin_inset Quotes eld
10576 \end_inset
10577
10578
10579 \family sans
10580 slides (default)
10581 \family default
10582
10583 \begin_inset Quotes erd
10584 \end_inset
10585
10586  from the class list in the 
10587 \family sans
10588 Document\SpecialChar menuseparator
10589 Settings
10590 \family default
10591  dialog.
10592  There are some other special things you should know about this class:
10593 \end_layout
10594
10595 \begin_layout Itemize
10596 Don't bother changing the options 
10597 \family sans
10598 Sides and Columns
10599 \family default
10600 .
10601  They're not supported by the 
10602 \family sans
10603 slides
10604 \family default
10605  class, anyways.
10606 \end_layout
10607
10608 \begin_layout Itemize
10609 The option 
10610 \family sans
10611 Page
10612 \begin_inset space ~
10613 \end_inset
10614
10615 style
10616 \family default
10617  behaves a bit differently for this class.
10618  The possible choices and what they do are as follows:
10619 \end_layout
10620
10621 \begin_deeper
10622 \begin_layout Description
10623
10624 \family sans
10625 plain
10626 \family default
10627  The final output contains page numbers in the lower right corner.
10628 \end_layout
10629
10630 \begin_layout Description
10631
10632 \family sans
10633 headings
10634 \family default
10635  Like 
10636 \family sans
10637 plain
10638 \family default
10639 , but also prints out any time markers you've put in.
10640  This is the default.
10641 \end_layout
10642
10643 \begin_layout Description
10644
10645 \family sans
10646 empty
10647 \family default
10648  The final output contains no page numbers, time markers, or alignment markers.
10649 \end_layout
10650
10651 \end_deeper
10652 \begin_layout Itemize
10653 The 
10654 \family sans
10655 slides
10656 \family default
10657  class has an extra option: 
10658 \family typewriter
10659 clock
10660 \family default
10661 .
10662  To use it, put 
10663 \begin_inset Quotes eld
10664 \end_inset
10665
10666
10667 \family typewriter
10668 clock
10669 \family default
10670
10671 \begin_inset Quotes erd
10672 \end_inset
10673
10674  in the extra class options.
10675 \end_layout
10676
10677 \begin_deeper
10678 \begin_layout Standard
10679 Using this options allows you to add time markers to 
10680 \family sans
10681 Note
10682 \family default
10683 s.
10684  See section
10685 \begin_inset space ~
10686 \end_inset
10687
10688
10689 \begin_inset CommandInset ref
10690 LatexCommand ref
10691 nolink "false"
10692 reference "sec:slideNote"
10693
10694 \end_inset
10695
10696  for more details.
10697 \end_layout
10698
10699 \end_deeper
10700 \begin_layout Standard
10701 You can also use the template file
10702 \change_deleted 564990737 1671617694
10703  
10704 \begin_inset Quotes eld
10705 \end_inset
10706
10707
10708 \family typewriter
10709 slides.lyx
10710 \family default
10711
10712 \begin_inset Quotes erd
10713 \end_inset
10714
10715
10716 \change_unchanged
10717  to automatically set up a document to use the 
10718 \family sans
10719 slides
10720 \family default
10721  class 
10722 \change_deleted 564990737 1671617699
10723 [
10724 \change_unchanged
10725 using 
10726 \family sans
10727 File\SpecialChar menuseparator
10728 New
10729 \begin_inset space ~
10730 \end_inset
10731
10732 from
10733 \begin_inset space ~
10734 \end_inset
10735
10736 Template
10737 \change_inserted 564990737 1671617723
10738 \SpecialChar menuseparator
10739 Presentations\SpecialChar menuseparator
10740 Slides
10741 \change_unchanged
10742
10743 \family default
10744  to open your new document
10745 \change_deleted 564990737 1671617728
10746 ]
10747 \change_unchanged
10748 .
10749  The template file also contains some examples of the special paragraph
10750  environments used by this class.
10751  I'll describe those next.
10752 \end_layout
10753
10754 \begin_layout Subsubsection
10755 Paragraph Environments
10756 \end_layout
10757
10758 \begin_layout Paragraph
10759 Supported Environments
10760 \end_layout
10761
10762 \begin_layout Standard
10763 The first thing you'll notice when you start up a new 
10764 \family sans
10765 slides
10766 \family default
10767  document is the font size and type: it's the equivalent of the size 
10768 \begin_inset Quotes eld
10769 \end_inset
10770
10771
10772 \family sans
10773 Largest
10774 \family default
10775
10776 \begin_inset Quotes erd
10777 \end_inset
10778
10779  in the 
10780 \family sans
10781 Sans
10782 \begin_inset space ~
10783 \end_inset
10784
10785 Serif
10786 \family default
10787  font.
10788  This is also what's used in the output.
10789  Think of this as a 
10790 \begin_inset Quotes eld
10791 \end_inset
10792
10793 visual cue
10794 \begin_inset Quotes erd
10795 \end_inset
10796
10797  to remind you that this is a slide.
10798  Your final slides will use a larger font; ergo, you'll have less space.
10799  Of course, the larger default screen font isn't WYSIWYG, only a reminder.
10800 \end_layout
10801
10802 \begin_layout Standard
10803 The next thing that becomes obvious is the changes to the paragraph environment
10804  pull-down box [at the far-left end of the toolbar].
10805  Most of the paragraph environments you're used to seeing are missing.
10806  There are also five new ones.
10807  That's because the 
10808 \family sans
10809 slides
10810 \family default
10811  class itself only supports certain paragraph environments:
10812 \end_layout
10813
10814 \begin_layout Itemize
10815
10816 \family sans
10817 Standard
10818 \end_layout
10819
10820 \begin_layout Itemize
10821
10822 \family sans
10823 Itemize
10824 \end_layout
10825
10826 \begin_layout Itemize
10827
10828 \family sans
10829 Enumerate
10830 \end_layout
10831
10832 \begin_layout Itemize
10833
10834 \family sans
10835 Description
10836 \end_layout
10837
10838 \begin_layout Itemize
10839
10840 \family sans
10841 List
10842 \end_layout
10843
10844 \begin_layout Itemize
10845
10846 \family sans
10847 Quotation
10848 \end_layout
10849
10850 \begin_layout Itemize
10851
10852 \family sans
10853 Quote
10854 \end_layout
10855
10856 \begin_layout Itemize
10857
10858 \family sans
10859 Verse
10860 \end_layout
10861
10862 \begin_layout Itemize
10863
10864 \family sans
10865 Caption
10866 \end_layout
10867
10868 \begin_layout Itemize
10869
10870 \family sans
10871 \SpecialChar LyX
10872 -Code
10873 \end_layout
10874
10875 \begin_layout Standard
10876 All of the other standard environments, including the section-heading environmen
10877 ts, aren't used in the 
10878 \family sans
10879 slides
10880 \family default
10881  class.
10882 \end_layout
10883
10884 \begin_layout Standard
10885 On the other hand, you'll notice the following new environments:
10886 \end_layout
10887
10888 \begin_layout Itemize
10889
10890 \family sans
10891 Slide
10892 \end_layout
10893
10894 \begin_layout Itemize
10895
10896 \family sans
10897 Overlay
10898 \end_layout
10899
10900 \begin_layout Itemize
10901
10902 \family sans
10903 Note
10904 \end_layout
10905
10906 \begin_layout Itemize
10907
10908 \family sans
10909 InvisibleText
10910 \end_layout
10911
10912 \begin_layout Itemize
10913
10914 \family sans
10915 VisibleText
10916 \end_layout
10917
10918 \begin_layout Standard
10919 These five are kind of quirky, due to a 
10920 \begin_inset Quotes eld
10921 \end_inset
10922
10923 feature
10924 \begin_inset Quotes erd
10925 \end_inset
10926
10927  in \SpecialChar LyX
10928 .
10929  You see, \SpecialChar LyX
10930  doesn't permit you to nest any other paragraph environment into
10931  an empty environment.
10932  Now, that's fine and dandy, but it means that you wouldn't be able to start
10933  a slide with anything except plain text.
10934  To deal with this, I've performed a little 
10935 \begin_inset Quotes eld
10936 \end_inset
10937
10938 \SpecialChar LaTeX
10939  magic.
10940 \begin_inset Quotes erd
10941 \end_inset
10942
10943  
10944 \end_layout
10945
10946 \begin_layout Paragraph
10947 Quirks of the New Environments
10948 \begin_inset CommandInset label
10949 LatexCommand label
10950 name "sec:slideQuirk"
10951
10952 \end_inset
10953
10954
10955 \end_layout
10956
10957 \begin_layout Standard
10958 All five of the new paragraph environments are somewhat quirky due to inherent
10959  limitiations in the current version of \SpecialChar LyX
10960 .
10961  As I just mentioned, \SpecialChar LyX
10962  forbids environments that begin with another environment.
10963  To get around this, the 
10964 \family sans
10965 Slide
10966 \family default
10967  environment isn't a paragraph environment as described in the 
10968 \emph on
10969 User's Guide
10970 \emph default
10971 .
10972  
10973 \end_layout
10974
10975 \begin_layout Standard
10976 You should consider 
10977 \family sans
10978 Slide
10979 \family default
10980
10981 \family sans
10982 Overlay
10983 \family default
10984 , and 
10985 \family sans
10986 Note
10987 \family default
10988  to be 
10989 \begin_inset Quotes eld
10990 \end_inset
10991
10992 pseudo-environments.
10993 \begin_inset Quotes erd
10994 \end_inset
10995
10996  They look like a section heading or a 
10997 \begin_inset Quotes eld
10998 \end_inset
10999
11000
11001 \family sans
11002 Caption
11003 \family default
11004 ,
11005 \begin_inset Quotes erd
11006 \end_inset
11007
11008  but really begin a [and, if necessary, end the previous] paragraph environment.
11009  Likewise, treat 
11010 \family sans
11011 InvisibleText
11012 \family default
11013  and 
11014 \family sans
11015 VisibleText
11016 \family default
11017  as 
11018 \begin_inset Quotes eld
11019 \end_inset
11020
11021 pseudo-commands.
11022 \begin_inset Quotes erd
11023 \end_inset
11024
11025  These two perform some action.
11026 \end_layout
11027
11028 \begin_layout Standard
11029 A common feature of all five environments, 
11030 \family sans
11031 Slide
11032 \family default
11033
11034 \family sans
11035 Overlay
11036 \family default
11037
11038 \family sans
11039 Note
11040 \family default
11041
11042 \family sans
11043 InvisibleText
11044 \family default
11045  and 
11046 \family sans
11047 VisibleText
11048 \family default
11049 , is a rather long-ish label.
11050  The text following this label — ordinarily the contents of the paragraph
11051  environment — is utterly irrelevant for 
11052 \family sans
11053 Slide
11054 \family default
11055
11056 \family sans
11057 Overlay
11058 \family default
11059
11060 \family sans
11061 Note
11062 \family default
11063
11064 \family sans
11065 InvisibleText
11066 \family default
11067  and 
11068 \family sans
11069 VisibleText
11070 \family default
11071 .
11072  \SpecialChar LyX
11073  completely ignores it.
11074  In fact, you can leave these five environments completely empty.
11075  
11076 \end_layout
11077
11078 \begin_layout Standard
11079 While you don't 
11080 \emph on
11081 have
11082 \emph default
11083  to put any text after the rather long-ish label, you might want to.
11084  This could be a short description of the contents of the 
11085 \family sans
11086 Slide
11087 \family default
11088 , for example.
11089  In that case, enter your descriptive comment and hit 
11090 \family sans
11091 Return
11092 \family default
11093  as you normally would.
11094 \end_layout
11095
11096 \begin_layout Standard
11097 If, on the other hand, you don't want to enter any descriptive text, you'll
11098  hit another \SpecialChar LyX
11099  quirk.
11100  \SpecialChar LyX
11101 , like nature, abhors a vacuum, and will not let you start a new paragraph
11102  environment until you put something in the old one.
11103  So, do this:
11104 \end_layout
11105
11106 \begin_layout Itemize
11107 Start entering the text that will 
11108 \emph on
11109 follow
11110 \emph default
11111  the new 
11112 \family sans
11113 Slide
11114 \family default
11115
11116 \family sans
11117 Overlay
11118 \family default
11119
11120 \family sans
11121 Note
11122 \family default
11123
11124 \family sans
11125 InvisibleText
11126 \family default
11127  or 
11128 \family sans
11129 VisibleText
11130 \family default
11131 .
11132  
11133 \end_layout
11134
11135 \begin_layout Itemize
11136 Now move to the beginning of that paragraph.
11137  
11138 \end_layout
11139
11140 \begin_layout Itemize
11141 Next, hit 
11142 \family sans
11143 Return
11144 \family default
11145 .
11146  
11147 \end_layout
11148
11149 \begin_layout Itemize
11150 Finally, change this new, empty paragraph to a 
11151 \family sans
11152 Slide
11153 \family default
11154
11155 \family sans
11156 Overlay
11157 \family default
11158
11159 \family sans
11160 Note
11161 \family default
11162
11163 \family sans
11164 InvisibleText
11165 \family default
11166  or 
11167 \family sans
11168 VisibleText
11169 \family default
11170 .
11171  
11172 \end_layout
11173
11174 \begin_layout Standard
11175 Some future version of \SpecialChar LyX
11176  will, hopefully, resolve this quirkiness\SpecialChar ldots
11177
11178 \end_layout
11179
11180 \begin_layout Subsubsection
11181 Making a Presentation with 
11182 \family sans
11183 Slide
11184 \family default
11185
11186 \family sans
11187 Overlay
11188 \family default
11189  and 
11190 \family sans
11191 Note
11192 \end_layout
11193
11194 \begin_layout Paragraph
11195 Using the 
11196 \family sans
11197 Slide
11198 \family default
11199  Environment
11200 \end_layout
11201
11202 \begin_layout Standard
11203 If you're expecting this section to teach you how to actually make a presentatio
11204 n, you'll be sorely disappointed.
11205  Naturally, I'll describe all of the ways the 
11206 \family sans
11207 slides
11208 \family default
11209  class can assist you in preparing the materials for a presentation.
11210  Filling in the contents, however, is up to you.
11211  [Then again, that 
11212 \emph on
11213 is
11214 \emph default
11215  the \SpecialChar LyX
11216  philosophy.]
11217 \end_layout
11218
11219 \begin_layout Standard
11220 Choosing the 
11221 \family sans
11222 Slide
11223 \family default
11224  environment [in the manner described in section
11225 \begin_inset space ~
11226 \end_inset
11227
11228
11229 \begin_inset CommandInset ref
11230 LatexCommand ref
11231 nolink "false"
11232 reference "sec:slideQuirk"
11233
11234 \end_inset
11235
11236 ] tells \SpecialChar LyX
11237  to begin a new slide [duh].
11238  The label for this environment/
11239 \begin_inset Quotes erd
11240 \end_inset
11241
11242 pseudo-command
11243 \begin_inset Quotes erd
11244 \end_inset
11245
11246  is an 
11247 \begin_inset Quotes eld
11248 \end_inset
11249
11250 ASCII line,
11251 \begin_inset Quotes erd
11252 \end_inset
11253
11254  in cool blue, followed by the label, 
11255 \begin_inset Quotes eld
11256 \end_inset
11257
11258 NewSlide:
11259 \begin_inset Quotes erd
11260 \end_inset
11261
11262 .
11263  Any text or paragraph environments that follow this one go on the new slide.
11264  It's that simple.
11265 \end_layout
11266
11267 \begin_layout Standard
11268 Slides are probably the only time you'll need to forcibly end pages in \SpecialChar LyX
11269
11270  (this can be specified in the 
11271 \family sans
11272 Paragraph Layout
11273 \family default
11274  dialog).
11275  In fact, you'll want to, once you finish entering the contents of one slide.
11276  If you've entered more text than can physically fit on a slide, the extra
11277  overflows onto a new slide.
11278  I don't recommend doing this, however, since the overflow slide won't have
11279  any page number on it.
11280  Furthermore, it may interfere with any 
11281 \family sans
11282 Overlay
11283 \family default
11284  you've made to accompany the oversized 
11285 \family sans
11286 Slide
11287 \family default
11288 .
11289 \end_layout
11290
11291 \begin_layout Standard
11292 The 
11293 \family sans
11294 Overlay
11295 \family default
11296  and 
11297 \family sans
11298 Note
11299 \family default
11300  environments work the same way as the 
11301 \family sans
11302 Slide
11303 \family default
11304  environment.
11305  They both create an 
11306 \begin_inset Quotes eld
11307 \end_inset
11308
11309 ASCII line
11310 \begin_inset Quotes erd
11311 \end_inset
11312
11313  followed by a label [
11314 \begin_inset Quotes eld
11315 \end_inset
11316
11317 NewOverlay:
11318 \begin_inset Quotes erd
11319 \end_inset
11320
11321  and 
11322 \begin_inset Quotes eld
11323 \end_inset
11324
11325 NewNote:
11326 \begin_inset Quotes erd
11327 \end_inset
11328
11329 , respectively].
11330  The color is a stunning magenta instead of blue, and the 
11331 \begin_inset Quotes eld
11332 \end_inset
11333
11334 ASCII line
11335 \begin_inset Quotes erd
11336 \end_inset
11337
11338  will look different, in style and in length.
11339  The label fonts of all three also differ from one another.
11340 \end_layout
11341
11342 \begin_layout Standard
11343 As with a 
11344 \family sans
11345 Slide
11346 \family default
11347 , if the contents of a 
11348 \family sans
11349 Note
11350 \family default
11351  or 
11352 \family sans
11353 Overlay
11354 \family default
11355  exceed the physical size of a slide or sheet of paper, the extra will overflow
11356  onto a new sheet.
11357  Again, you should avoid this.
11358  It defeats the whole purpose of 
11359 \family sans
11360 Note
11361 \family default
11362 s and 
11363 \family sans
11364 Overlay
11365 \family default
11366 s.
11367 \end_layout
11368
11369 \begin_layout Paragraph
11370 Using 
11371 \family sans
11372 Overlay
11373 \family default
11374  with 
11375 \family sans
11376 Slide
11377 \end_layout
11378
11379 \begin_layout Standard
11380 The idea behind an 
11381 \family sans
11382 Overlay
11383 \family default
11384  is a slide that sits atop another slide.
11385  Perhaps you wish to discuss a figure on the main 
11386 \family sans
11387 Slide
11388 \family default
11389  before displaying the text associated with it.
11390  One way to accomplish this is tape a flap of dark paper over the part of
11391  the 
11392 \family sans
11393 Slide
11394 \family default
11395  you want to display later.
11396  This method fails, however, if you wish to overlap one graph with another,
11397  for example.
11398  You would then have to fumble while speaking to align the two separate,
11399  overlapping 
11400 \family sans
11401 Slide
11402 \family default
11403 s to align the two graphs.
11404  The use of an 
11405 \family sans
11406 Overlay
11407 \family default
11408  environment in both cases makes life much easier.
11409 \end_layout
11410
11411 \begin_layout Standard
11412 Each 
11413 \family sans
11414 Overlay
11415 \family default
11416  receives the page number of its 
11417 \begin_inset Quotes eld
11418 \end_inset
11419
11420 parent
11421 \begin_inset Quotes erd
11422 \end_inset
11423
11424  
11425 \family sans
11426 Slide
11427 \family default
11428 , appended by 
11429 \begin_inset Quotes eld
11430 \end_inset
11431
11432
11433 \family typewriter
11434 -a
11435 \family default
11436
11437 \begin_inset Quotes erd
11438 \end_inset
11439
11440 .
11441 \begin_inset Foot
11442 status collapsed
11443
11444 \begin_layout Plain Layout
11445 Presumably, mutliple 
11446 \family sans
11447 Overlay
11448 \family default
11449 s would have 
11450 \begin_inset Quotes eld
11451 \end_inset
11452
11453
11454 \family typewriter
11455 -a
11456 \family default
11457
11458 \begin_inset Quotes erd
11459 \end_inset
11460
11461
11462 \begin_inset Quotes eld
11463 \end_inset
11464
11465
11466 \family typewriter
11467 -b
11468 \family default
11469
11470 \begin_inset Quotes erd
11471 \end_inset
11472
11473
11474 \begin_inset Quotes eld
11475 \end_inset
11476
11477
11478 \family typewriter
11479 -c
11480 \family default
11481
11482 \begin_inset Quotes erd
11483 \end_inset
11484
11485 , etc.
11486 \begin_inset space ~
11487 \end_inset
11488
11489 appended to the page number of the parent 
11490 \family sans
11491 Slide
11492 \family default
11493 .
11494  
11495 \end_layout
11496
11497 \end_inset
11498
11499  Clearly, you want the contents of both the 
11500 \family sans
11501 Slide
11502 \family default
11503  and the 
11504 \family sans
11505 Overlay
11506 \family default
11507  to each fit on a single physical slide! You should probably consider an
11508  
11509 \family sans
11510 Overlay
11511 \family default
11512  as 
11513 \begin_inset Quotes eld
11514 \end_inset
11515
11516 part of
11517 \begin_inset Quotes erd
11518 \end_inset
11519
11520  a 
11521 \family sans
11522 Slide
11523 \family default
11524 .
11525  Indeed, the \SpecialChar LyX
11526  
11527 \family sans
11528 slides
11529 \family default
11530  class provides a visual cue for this: the label at the start of an 
11531 \family sans
11532 Overlay
11533 \family default
11534  is shorter than that at the start of a 
11535 \family sans
11536 Slide
11537 \family default
11538 .
11539  Lastly, when you generate printable output, you'll find alignment markers
11540  in all four corners of both the 
11541 \family sans
11542 Overlay
11543 \family default
11544  page and its parent 
11545 \family sans
11546 Slide
11547 \family default
11548 .
11549  These will assist you in lining up the two physical slides.
11550 \end_layout
11551
11552 \begin_layout Standard
11553 The major problem in overlaying two slides is aligning the contents of the
11554  two transparencies.
11555  How much space should you leave for that graph on the second slide? Worse
11556  still, what if you want a graph and a sentence on second slide, but there
11557  is text on the main transparency that goes in between them? You could try
11558  and insert vertical space of the right size.
11559  The better way is to use 
11560 \family sans
11561 InvisibleText
11562 \family default
11563  and 
11564 \family sans
11565 VisibleText
11566 \family default
11567 .
11568 \end_layout
11569
11570 \begin_layout Standard
11571 As their names imply, 
11572 \family sans
11573 InvisibleText
11574 \family default
11575  and 
11576 \family sans
11577 VisibleText
11578 \family default
11579  are two command-like paragraph environments that make all subsequent text
11580  invisible and visible, respectively.
11581  Note from section
11582 \begin_inset space ~
11583 \end_inset
11584
11585
11586 \begin_inset CommandInset ref
11587 LatexCommand ref
11588 nolink "false"
11589 reference "sec:slideQuirk"
11590
11591 \end_inset
11592
11593  that you don't place anything 
11594 \emph on
11595 into
11596 \emph default
11597  these two environments, however.
11598  When you create an 
11599 \family sans
11600 InvisibleText
11601 \family default
11602 , it inserts a centered, sky-blue label into the page reading 
11603 \begin_inset Quotes eld
11604 \end_inset
11605
11606 <Invisible Text Follows>
11607 \begin_inset Quotes erd
11608 \end_inset
11609
11610 .
11611  For paragraphs following this label, the parts of the 
11612 \family sans
11613 Slide
11614 \family default
11615  [or 
11616 \family sans
11617 Overlay
11618 \family default
11619 ; it doesn't matter which] where they would be contain instead blank space.
11620  
11621 \end_layout
11622
11623 \begin_layout Standard
11624 For 
11625 \family sans
11626 VisibleText
11627 \family default
11628 , the corresponding centered label is 
11629 \begin_inset Quotes eld
11630 \end_inset
11631
11632 <Visible Text Follows>
11633 \begin_inset Quotes erd
11634 \end_inset
11635
11636  in blazing green.
11637  Paragraphs following this label behave normally.
11638  Note that the beginning of a new 
11639 \family sans
11640 Slide
11641 \family default
11642
11643 \family sans
11644 Overlay
11645 \family default
11646 , or 
11647 \family sans
11648 Note
11649 \family default
11650  automatically shuts off an 
11651 \family sans
11652 InvisibleText
11653 \family default
11654 .
11655  It's therefore not necessary to use 
11656 \family sans
11657 VisibleText
11658 \family default
11659  at the end of a 
11660 \family sans
11661 Slide
11662 \family default
11663 .
11664 \end_layout
11665
11666 \begin_layout Standard
11667 By now, it should be obvious how to create overlay transparencies using
11668  the proper combination of 
11669 \family sans
11670 InvisibleText
11671 \family default
11672  and 
11673 \family sans
11674 VisibleText
11675 \family default
11676  on a 
11677 \family sans
11678 Slide
11679 \family default
11680  and 
11681 \family sans
11682 Overlay
11683 \family default
11684 :
11685 \end_layout
11686
11687 \begin_layout Enumerate
11688 Create a 
11689 \family sans
11690 Slide
11691 \family default
11692 , including everything that will appear on it, whether on the main slide
11693  or on the 
11694 \family sans
11695 Overlay
11696 \family default
11697 .
11698 \end_layout
11699
11700 \begin_layout Enumerate
11701 Before each figure or paragraph that will appear only on the 
11702 \family sans
11703 Overlay
11704 \family default
11705 , insert an 
11706 \family sans
11707 InvisibleText
11708 \family default
11709  environment.
11710  If necessary, insert a 
11711 \family sans
11712 VisibleText
11713 \family default
11714  environment after the 
11715 \family sans
11716 Overlay
11717 \family default
11718 -only text.
11719 \end_layout
11720
11721 \begin_layout Enumerate
11722 Start an 
11723 \family sans
11724 Overlay
11725 \family default
11726  immediately following the 
11727 \family sans
11728 Slide
11729 \family default
11730 .
11731 \end_layout
11732
11733 \begin_layout Enumerate
11734 Copy the contents of this 
11735 \family sans
11736 Slide
11737 \family default
11738  into the 
11739 \family sans
11740 Overlay
11741 \family default
11742 .
11743 \end_layout
11744
11745 \begin_layout Enumerate
11746 Within the 
11747 \family sans
11748 Overlay
11749 \family default
11750 , change all of the 
11751 \family sans
11752 InvisibleText
11753 \family default
11754  lines to 
11755 \family sans
11756 VisibleText
11757 \family default
11758  and vice-versa.
11759 \end_layout
11760
11761 \begin_layout Standard
11762 That's it.
11763  You've just made an 
11764 \family sans
11765 Overlay
11766 \family default
11767 .
11768 \end_layout
11769
11770 \begin_layout Standard
11771 There's one problem with the way I've designed the \SpecialChar LyX
11772  
11773 \family sans
11774 slides
11775 \family default
11776  class: you can't make text in the middle of a paragraph invisible, nor
11777  make text in the middle of an invisible paragraph visible again.
11778  To accomplish this feat, you'll need to use some inlined \SpecialChar LaTeX
11779  codes.
11780 \begin_inset Foot
11781 status collapsed
11782
11783 \begin_layout Plain Layout
11784 The commands of interest are: 
11785 \end_layout
11786
11787 \begin_layout Itemize
11788
11789 \family typewriter
11790 {
11791 \backslash
11792 invisible \SpecialChar ldots
11793  }
11794 \end_layout
11795
11796 \begin_layout Itemize
11797
11798 \family typewriter
11799 {
11800 \backslash
11801 visible \SpecialChar ldots
11802  }
11803 \end_layout
11804
11805 \begin_layout Plain Layout
11806 \SpecialChar ldots
11807 and need to be marked as \SpecialChar TeX
11808 .
11809  The text whose 
11810 \begin_inset Quotes eld
11811 \end_inset
11812
11813 visibility
11814 \begin_inset Quotes erd
11815 \end_inset
11816
11817  you wish to change goes in between the brackets [and after the 
11818 \family typewriter
11819
11820 \backslash
11821 invisible
11822 \family default
11823  or 
11824 \family typewriter
11825
11826 \backslash
11827 visible
11828 \family default
11829  command].
11830  If you don't know how to mark text as \SpecialChar TeX
11831 , see the appropriate section of
11832  the 
11833 \emph on
11834 User's Guide
11835 \emph default
11836 .
11837 \end_layout
11838
11839 \end_inset
11840
11841
11842 \end_layout
11843
11844 \begin_layout Paragraph
11845 Using 
11846 \family sans
11847 Note
11848 \family default
11849  with 
11850 \family sans
11851 Slide
11852 \family default
11853
11854 \begin_inset CommandInset label
11855 LatexCommand label
11856 name "sec:slideNote"
11857
11858 \end_inset
11859
11860
11861 \end_layout
11862
11863 \begin_layout Standard
11864 Like an 
11865 \family sans
11866 Overlay
11867 \family default
11868 , a 
11869 \family sans
11870 Note
11871 \family default
11872  is associated with a 
11873 \begin_inset Quotes eld
11874 \end_inset
11875
11876 parent
11877 \begin_inset Quotes erd
11878 \end_inset
11879
11880  
11881 \family sans
11882 Slide
11883 \family default
11884 .
11885  Here, too, the \SpecialChar LyX
11886  
11887 \family sans
11888 slides
11889 \family default
11890  class provides visual cues.
11891  The label for a 
11892 \family sans
11893 Note
11894 \family default
11895  is shorter than that of a 
11896 \family sans
11897 Slide
11898 \family default
11899  [yet longer than that of an 
11900 \family sans
11901 Overlay
11902 \family default
11903 ] and, like the label of an 
11904 \family sans
11905 Overlay
11906 \family default
11907  is shockingly magenta.
11908  Additionally, the printed 
11909 \family sans
11910 Note
11911 \family default
11912  has the page number of its 
11913 \begin_inset Quotes eld
11914 \end_inset
11915
11916 parent
11917 \begin_inset Quotes erd
11918 \end_inset
11919
11920  
11921 \family sans
11922 Slide
11923 \family default
11924 , appended by 
11925 \begin_inset Quotes eld
11926 \end_inset
11927
11928
11929 \family typewriter
11930 -
11931 \family default
11932 1
11933 \begin_inset Quotes erd
11934 \end_inset
11935
11936
11937 \begin_inset Quotes eld
11938 \end_inset
11939
11940
11941 \family typewriter
11942 -
11943 \family default
11944 2
11945 \begin_inset Quotes erd
11946 \end_inset
11947
11948
11949 \begin_inset Quotes eld
11950 \end_inset
11951
11952
11953 \family typewriter
11954 -
11955 \family default
11956 3
11957 \begin_inset Quotes erd
11958 \end_inset
11959
11960 , etc.
11961  You can have multiple 
11962 \family sans
11963 Note
11964 \family default
11965 s associated with a single 
11966 \family sans
11967 Slide
11968 \family default
11969 , and, as with 
11970 \family sans
11971 Slide
11972 \family default
11973  and 
11974 \family sans
11975 Overlay
11976 \family default
11977 , you'll probably want to break up long 
11978 \family sans
11979 Note
11980 \family default
11981 s so that they fit on a single sheet of paper.
11982 \end_layout
11983
11984 \begin_layout Standard
11985 The purpose of a 
11986 \family sans
11987 Note
11988 \family default
11989  is obvious: it contains anything additional you might want to say about
11990  a 
11991 \family sans
11992 Slide
11993 \family default
11994 .
11995  It could also be used as a sheet of reminders for a particular 
11996 \family sans
11997 Slide
11998 \family default
11999 .
12000  In the case of the latter, you might want to make use of time markers.
12001  Currently, the \SpecialChar LyX
12002  
12003 \family sans
12004 slides
12005 \family default
12006  class has no 
12007 \begin_inset Quotes eld
12008 \end_inset
12009
12010 native
12011 \begin_inset Quotes erd
12012 \end_inset
12013
12014  support for time markers, a 
12015 \noun on
12016 Sli\SpecialChar TeX
12017
12018 \noun default
12019  feature.
12020  So, you'll have to resort to using the \SpecialChar LaTeX
12021  codes.
12022 \end_layout
12023
12024 \begin_layout Standard
12025 To use time markers, you'll need to specify the extra class option 
12026 \begin_inset Quotes eld
12027 \end_inset
12028
12029
12030 \family typewriter
12031 clock
12032 \family default
12033
12034 \begin_inset Quotes erd
12035 \end_inset
12036
12037  [see section
12038 \begin_inset space ~
12039 \end_inset
12040
12041
12042 \begin_inset CommandInset ref
12043 LatexCommand ref
12044 nolink "false"
12045 reference "sec:slidesetup"
12046
12047 \end_inset
12048
12049 ].
12050  This option turns on timing marks, which will appear in the lower-left-hand
12051  corner of every 
12052 \family sans
12053 Note
12054 \family default
12055  you generate.
12056  To set what appears in the time marker, you use the \SpecialChar LaTeX
12057  commands 
12058 \begin_inset Quotes eld
12059 \end_inset
12060
12061
12062 \family typewriter
12063
12064 \backslash
12065 settime{}
12066 \family default
12067
12068 \begin_inset Quotes erd
12069 \end_inset
12070
12071  and 
12072 \begin_inset Quotes eld
12073 \end_inset
12074
12075
12076 \family typewriter
12077
12078 \backslash
12079 addtime{}
12080 \family default
12081
12082 \begin_inset Quotes erd
12083 \end_inset
12084
12085 .
12086  The arguments of both commands are time measured in seconds.
12087  
12088 \begin_inset Quotes eld
12089 \end_inset
12090
12091
12092 \family typewriter
12093
12094 \backslash
12095 settime{}
12096 \family default
12097
12098 \begin_inset Quotes erd
12099 \end_inset
12100
12101  sets the time marker to a given time.
12102  
12103 \begin_inset Quotes eld
12104 \end_inset
12105
12106
12107 \family typewriter
12108
12109 \backslash
12110 addtime{}
12111 \family default
12112
12113 \begin_inset Quotes erd
12114 \end_inset
12115
12116  increments the time marker by the specified amount.
12117  Using time markers and 
12118 \family sans
12119 Note
12120 \family default
12121 s in this fashion, you can remind yourself how much time to spend on a particula
12122
12123 \family sans
12124 Slide
12125 \family default
12126 .
12127 \end_layout
12128
12129 \begin_layout Standard
12130 There's one last feature to describe.
12131  Clearly, you'd like to print out all of your 
12132 \family sans
12133 Slide
12134 \family default
12135 s and 
12136 \family sans
12137 Overlay
12138 \family default
12139 s on transparencies while printing all of your 
12140 \family sans
12141 Note
12142 \family default
12143 s on plain paper.
12144  However, a 
12145 \family sans
12146 Note
12147 \family default
12148  
12149 \emph on
12150 must
12151 \emph default
12152  follow the 
12153 \family sans
12154 Slide
12155 \family default
12156  with which it is associated.
12157  What's a person to do?
12158 \end_layout
12159
12160 \begin_layout Standard
12161 Luckily, there are two \SpecialChar LaTeX
12162  commands that allow you to select what to print
12163  out.
12164  Both must be placed into the preamble of your document.
12165  The command 
12166 \begin_inset Quotes eld
12167 \end_inset
12168
12169
12170 \family typewriter
12171
12172 \backslash
12173 onlyslides{
12174 \backslash
12175 slides}
12176 \family default
12177
12178 \begin_inset Quotes erd
12179 \end_inset
12180
12181  will cause the output to contain only the 
12182 \family sans
12183 Slide
12184 \family default
12185 s and 
12186 \family sans
12187 Overlay
12188 \family default
12189 s.
12190  Correspondingly, the command 
12191 \begin_inset Quotes eld
12192 \end_inset
12193
12194
12195 \family typewriter
12196
12197 \backslash
12198 onlynotes{
12199 \backslash
12200 notes}
12201 \family default
12202
12203 \begin_inset Quotes erd
12204 \end_inset
12205
12206  prevents the output of anything but 
12207 \family sans
12208 Note
12209 \family default
12210 s.
12211  I'd advise placing both commands in the preamble and initially comment
12212  both out.
12213  You can then preview your entire presentation as you write.
12214  When you're done writing, you can then uncomment one of the two to select
12215  what you want to print.
12216  I like to uncomment 
12217 \begin_inset Quotes eld
12218 \end_inset
12219
12220
12221 \family typewriter
12222
12223 \backslash
12224 onlyslides{
12225 \backslash
12226 slides}
12227 \family default
12228
12229 \begin_inset Quotes erd
12230 \end_inset
12231
12232  , print to a file with 
12233 \begin_inset Quotes eld
12234 \end_inset
12235
12236
12237 \family typewriter
12238 -slides
12239 \family default
12240
12241 \begin_inset Quotes erd
12242 \end_inset
12243
12244  in its name, comment it back out, then uncomment 
12245 \begin_inset Quotes eld
12246 \end_inset
12247
12248
12249 \family typewriter
12250
12251 \backslash
12252 onlynotes{
12253 \backslash
12254 notes}
12255 \family default
12256
12257 \begin_inset Quotes erd
12258 \end_inset
12259
12260  and print to a 
12261 \begin_inset Quotes eld
12262 \end_inset
12263
12264
12265 \family typewriter
12266 *-notes.ps
12267 \family default
12268
12269 \begin_inset Quotes erd
12270 \end_inset
12271
12272  file.
12273  I can then send either file to a printer, loading transparencies or plain
12274  paper as appropriate.
12275 \end_layout
12276
12277 \begin_layout Standard
12278 You can also provide other arguments to the 
12279 \begin_inset Quotes eld
12280 \end_inset
12281
12282
12283 \family typewriter
12284
12285 \backslash
12286 onlyslides{}
12287 \family default
12288
12289 \begin_inset Quotes erd
12290 \end_inset
12291
12292  and 
12293 \begin_inset Quotes eld
12294 \end_inset
12295
12296
12297 \family typewriter
12298
12299 \backslash
12300 onlynotes{}
12301 \family default
12302
12303 \begin_inset Quotes erd
12304 \end_inset
12305
12306  commands.
12307  See a good \SpecialChar LaTeX
12308  book for details.
12309 \end_layout
12310
12311 \begin_layout Subsubsection
12312 The 
12313 \family sans
12314 slides
12315 \family default
12316  Class Template File
12317 \end_layout
12318
12319 \begin_layout Standard
12320 I have also provided a template file
12321 \change_deleted 564990737 1671617750
12322
12323 \begin_inset Quotes eld
12324 \end_inset
12325
12326
12327 \family typewriter
12328 slides.lyx
12329 \family default
12330
12331 \begin_inset Quotes erd
12332 \end_inset
12333
12334 ,
12335 \change_unchanged
12336  with the 
12337 \family sans
12338 slides
12339 \family default
12340  class.
12341  To use it, begin your new presentation with 
12342 \family sans
12343 File\SpecialChar menuseparator
12344 New
12345 \begin_inset space ~
12346 \end_inset
12347
12348 from
12349 \begin_inset space ~
12350 \end_inset
12351
12352 Template
12353 \change_inserted 564990737 1671616988
12354 \SpecialChar menuseparator
12355 Presentations\SpecialChar menuseparator
12356 Slides
12357 \change_unchanged
12358
12359 \family default
12360 .
12361  Your new \SpecialChar LyX
12362  presentation file will contain an example 
12363 \family sans
12364 Slide
12365 \family default
12366  – 
12367 \family sans
12368 Overlay
12369 \family default
12370  – 
12371 \family sans
12372 Note
12373 \family default
12374  triplet.
12375  The 
12376 \family sans
12377 Slide
12378 \family default
12379  and 
12380 \family sans
12381 Overlay
12382 \family default
12383  additionally contain an example of the use of 
12384 \family sans
12385 InvisibleText
12386 \family default
12387  and 
12388 \family sans
12389 VisibleText
12390 \family default
12391 .
12392  Lastly, the preamble will contain:
12393 \end_layout
12394
12395 \begin_layout LyX-Code
12396 % Uncomment to print out only slides and overlays
12397 \end_layout
12398
12399 \begin_layout LyX-Code
12400 %
12401 \end_layout
12402
12403 \begin_layout LyX-Code
12404 %
12405 \backslash
12406 onlyslides{
12407 \backslash
12408 slides}
12409 \begin_inset Newline newline
12410 \end_inset
12411
12412  
12413 \end_layout
12414
12415 \begin_layout LyX-Code
12416 % Uncomment to print out only notes
12417 \end_layout
12418
12419 \begin_layout LyX-Code
12420 %
12421 \end_layout
12422
12423 \begin_layout LyX-Code
12424 %
12425 \backslash
12426 onlynotes{
12427 \backslash
12428 notes}
12429 \end_layout
12430
12431 \begin_layout Standard
12432 One final thing: I created this class to support the \SpecialChar LaTeX2e
12433  
12434 \begin_inset Quotes eld
12435 \end_inset
12436
12437
12438 \noun on
12439 Sli\SpecialChar TeX
12440
12441 \noun default
12442  emulation
12443 \begin_inset Quotes erd
12444 \end_inset
12445
12446  class, one of the built-in \SpecialChar LaTeX2e
12447  classes.
12448  Neither I nor the rest of the \SpecialChar LyX
12449  Team endorse or oppose the use of this built-in
12450  slide class.
12451  It's here if you want it or need it.
12452  There exist other \SpecialChar LaTeX2e
12453  classes for creating presentations, such as the 
12454 \family sans
12455 Foils
12456 \family default
12457  class [see section
12458 \begin_inset space ~
12459 \end_inset
12460
12461
12462 \begin_inset CommandInset ref
12463 LatexCommand ref
12464 nolink "false"
12465 reference "sec:foiltex"
12466
12467 \end_inset
12468
12469 ] or the 
12470 \begin_inset Quotes eld
12471 \end_inset
12472
12473
12474 \family typewriter
12475 seminar
12476 \family default
12477
12478 \begin_inset Quotes erd
12479 \end_inset
12480
12481  package [present on some \SpecialChar TeX
12482  distributions].
12483  The latter is not yet supported under \SpecialChar LyX
12484 .
12485 \begin_inset Foot
12486 status collapsed
12487
12488 \begin_layout Plain Layout
12489 Perhaps you can take on the task\SpecialChar ldots
12490
12491 \end_layout
12492
12493 \end_inset
12494
12495  I know nothing about these other classes.
12496  Try them out to see what sort of alternative they provide.
12497 \end_layout
12498
12499 \begin_layout Section
12500
12501 \change_inserted 564990737 1670439661
12502 Reports
12503 \end_layout
12504
12505 \begin_layout Subsection
12506
12507 \change_inserted 564990737 1670439661
12508 report
12509 \end_layout
12510
12511 \begin_layout Standard
12512
12513 \change_inserted 564990737 1670439661
12514 The document class 
12515 \family sans
12516 report
12517 \family default
12518  provides the 
12519 \family sans
12520 report.cls
12521 \family default
12522  document class for preparing reports.
12523  Like the 
12524 \family sans
12525 book
12526 \family default
12527  document class, this provides parts, chapters and sections but does not
12528  provide the paragraph styles needed for a book; like the 
12529 \family sans
12530 article
12531 \family default
12532  document class, it provides the abstract paragraph style.
12533  In two-sided mode, it does not start a new chapter on the right hand page.
12534 \end_layout
12535
12536 \begin_layout Standard
12537
12538 \change_inserted 564990737 1670439674
12539 The remaining 
12540 \family sans
12541 report
12542 \family default
12543  document classes are described in the Collections (section
12544 \begin_inset space ~
12545 \end_inset
12546
12547
12548 \begin_inset CommandInset ref
12549 LatexCommand ref
12550 nolink "false"
12551 reference "sec:Collections"
12552
12553 \end_inset
12554
12555 ).
12556 \end_layout
12557
12558 \begin_layout Section
12559
12560 \change_inserted 564990737 1670439674
12561 Scripts (drama)
12562 \end_layout
12563
12564 \begin_layout Subsection
12565 Broadway
12566 \end_layout
12567
12568 \begin_layout Standard
12569 by 
12570 \shape smallcaps
12571 Garst Reese
12572 \end_layout
12573
12574 \begin_layout Subsubsection
12575 Introduction
12576 \end_layout
12577
12578 \begin_layout Standard
12579 Broadway is for writing plays.
12580  The format is more decorative than Hollywood, and much less standardized.
12581  This format should be suitable for workshops.
12582 \end_layout
12583
12584 \begin_layout Subsubsection
12585 Special problems
12586 \end_layout
12587
12588 \begin_layout Standard
12589 The same as in Hollywood.
12590 \end_layout
12591
12592 \begin_layout Subsubsection
12593 Special features
12594 \end_layout
12595
12596 \begin_layout Standard
12597 Insert the 
12598 \family sans
12599 Speaker
12600 \family default
12601  names as labels then cross-reference the label to insert the name.
12602  The cross-reference dialog will show the current cast of characters.
12603 \end_layout
12604
12605 \begin_layout Subsubsection
12606 Paper size and Margins
12607 \end_layout
12608
12609 \begin_layout Standard
12610 USLetter, left 1.6in, right 0.75in, top 0.5in, bottom 0.75in
12611 \end_layout
12612
12613 \begin_layout Subsubsection
12614 Environments
12615 \end_layout
12616
12617 \begin_layout Standard
12618 The following environments are available.
12619  You can use broadway.bind to get the bind keys shown at the right.
12620 \end_layout
12621
12622 \begin_layout Itemize
12623
12624 \family sans
12625 Standard
12626 \begin_inset Newline newline
12627 \end_inset
12628
12629
12630 \family default
12631 You should not have to use this, but it is here for anything that does not
12632  fit otherwise.
12633 \end_layout
12634
12635 \begin_layout Itemize
12636
12637 \family sans
12638 Narrative
12639 \begin_inset space \hfill{}
12640 \end_inset
12641
12642 M-z n
12643 \begin_inset Newline newline
12644 \end_inset
12645
12646
12647 \family default
12648 Used to describe stage setting and the action.
12649  First use of speaker names in all CAPs.
12650 \end_layout
12651
12652 \begin_layout Itemize
12653
12654 \family sans
12655 ACT
12656 \begin_inset space \hfill{}
12657 \end_inset
12658
12659 M-z a
12660 \begin_inset Newline newline
12661 \end_inset
12662
12663
12664 \family default
12665 Automatically numbered.
12666  On screen it will be arabic, but will print as Roman.
12667 \end_layout
12668
12669 \begin_layout Itemize
12670
12671 \family sans
12672 ACT*
12673 \begin_inset space \hfill{}
12674 \end_inset
12675
12676 M-z S at
12677 \begin_inset Newline newline
12678 \end_inset
12679
12680
12681 \family default
12682 Subtitle for 
12683 \family sans
12684 ACT.
12685
12686 \family default
12687  It is just centered text.
12688 \end_layout
12689
12690 \begin_layout Itemize
12691
12692 \family sans
12693 SCENE
12694 \begin_inset space \hfill{}
12695 \end_inset
12696
12697 M-z S-S
12698 \begin_inset Newline newline
12699 \end_inset
12700
12701
12702 \family default
12703 Not automatically numbered.
12704  You supply the number.
12705  This is because I couldn't figure out how.
12706 \end_layout
12707
12708 \begin_layout Itemize
12709
12710 \family sans
12711 AT_RISE:
12712 \begin_inset space \hfill{}
12713 \end_inset
12714
12715 M-z S-R
12716 \begin_inset Newline newline
12717 \end_inset
12718
12719
12720 \family default
12721 A special case of Narrative to describe the setting and action as the curtain
12722  rises.
12723 \end_layout
12724
12725 \begin_layout Itemize
12726
12727 \family sans
12728 Speaker
12729 \begin_inset space \hfill{}
12730 \end_inset
12731
12732 M-z s
12733 \begin_inset Newline newline
12734 \end_inset
12735
12736
12737 \family default
12738 The speaker's (actor's) title, centered in all CAPS.
12739 \end_layout
12740
12741 \begin_layout Itemize
12742
12743 \family sans
12744 Parenthetical
12745 \begin_inset space \hfill{}
12746 \end_inset
12747
12748 M-z p
12749 \begin_inset Newline newline
12750 \end_inset
12751
12752
12753 \family default
12754 Instructions to the speaker.
12755  The parentheses are automatically inserted.
12756  The ( will appear on screen, but both will be in the printed play.
12757  This environment is only used within 
12758 \family sans
12759 Dialogue
12760 \family default
12761 .
12762 \end_layout
12763
12764 \begin_layout Itemize
12765
12766 \family sans
12767 Dialogue
12768 \begin_inset space \hfill{}
12769 \end_inset
12770
12771 M-z d
12772 \begin_inset Newline newline
12773 \end_inset
12774
12775
12776 \family default
12777 What the Speaker says.
12778 \end_layout
12779
12780 \begin_layout Itemize
12781
12782 \family sans
12783 CURTAIN
12784 \begin_inset space \hfill{}
12785 \end_inset
12786
12787 M-z S-C
12788 \begin_inset Newline newline
12789 \end_inset
12790
12791
12792 \family default
12793 The curtain comes down.
12794 \end_layout
12795
12796 \begin_layout Itemize
12797
12798 \family sans
12799 Title
12800 \begin_inset space \hfill{}
12801 \end_inset
12802
12803 M-z S-T
12804 \end_layout
12805
12806 \begin_layout Itemize
12807
12808 \family sans
12809 Author
12810 \begin_inset space \hfill{}
12811 \end_inset
12812
12813 M-z S-A
12814 \end_layout
12815
12816 \begin_layout Itemize
12817
12818 \family sans
12819 Right_Address
12820 \begin_inset space \hfill{}
12821 \end_inset
12822
12823 M-z r
12824 \end_layout
12825
12826 \begin_layout Standard
12827 Hello there.
12828 \end_layout
12829
12830 \begin_layout Subsection
12831 Hollywood (Hollywood spec scripts)
12832 \end_layout
12833
12834 \begin_layout Standard
12835 by 
12836 \shape smallcaps
12837 Garst Reese
12838 \end_layout
12839
12840 \begin_layout Subsubsection
12841 Introduction
12842 \end_layout
12843
12844 \begin_layout Standard
12845 Getting the format of a Hollywood script right is a 
12846 \begin_inset Quotes eld
12847 \end_inset
12848
12849 rite of passage.
12850 \begin_inset Quotes erd
12851 \end_inset
12852
12853  It is designed to make the readers focus on content and to be easy and
12854  familiar for the actors to read.
12855  Each page of a script should be one minute of film.
12856  Nothing goes in a script that you cannot see or hear on screen.
12857  The courier 12 pt font should be used throughout.
12858  No italics.
12859 \end_layout
12860
12861 \begin_layout Subsubsection
12862 Special problems
12863 \end_layout
12864
12865 \begin_layout Standard
12866 Speakers' lines should NEVER break in mid-sentence.
12867  If a speaker's lines continue over a page break, repeat the 
12868 \family sans
12869 Speaker
12870 \family default
12871  title followed by (Cont'd).
12872 \end_layout
12873
12874 \begin_layout Subsubsection
12875 Special features
12876 \end_layout
12877
12878 \begin_layout Standard
12879 Insert the 
12880 \family sans
12881 Speaker
12882 \family default
12883  names as labels then cross-reference the label to insert the name.
12884  The cross-reference dialog will show the current cast of characters.
12885  You can use this to insert the speaker name in narratives also.
12886 \end_layout
12887
12888 \begin_layout Subsubsection
12889 Paper size and Margins
12890 \end_layout
12891
12892 \begin_layout Standard
12893 USLetter, left 1.6in, right 0.75in, top 0.5in, bottom 0.75in
12894 \end_layout
12895
12896 \begin_layout Subsubsection
12897 Environments
12898 \end_layout
12899
12900 \begin_layout Standard
12901 The following environments are available.
12902  You can use hollywood.bind to get the bind keys shown at the right.
12903 \end_layout
12904
12905 \begin_layout Itemize
12906
12907 \family sans
12908 Standard
12909 \begin_inset Newline newline
12910 \end_inset
12911
12912
12913 \family default
12914 Used where nothing else works.
12915  Try to avoid it.
12916 \end_layout
12917
12918 \begin_layout Itemize
12919
12920 \family sans
12921 FADE_IN
12922 \family default
12923 :
12924 \begin_inset space \hfill{}
12925 \end_inset
12926
12927
12928 \family sans
12929 M-z S-I
12930 \family default
12931
12932 \begin_inset Newline newline
12933 \end_inset
12934
12935 Usually followed by something like 
12936 \begin_inset Quotes eld
12937 \end_inset
12938
12939 on Sally waking up.
12940 \begin_inset Quotes erd
12941 \end_inset
12942
12943
12944 \end_layout
12945
12946 \begin_layout Itemize
12947
12948 \family sans
12949 INT:
12950 \begin_inset space \hfill{}
12951 \end_inset
12952
12953 M-z i
12954 \begin_inset Newline newline
12955 \end_inset
12956
12957
12958 \family default
12959 Introduces a new INTERIOR camera set-up.
12960  Always followed by DAY or NIGHT, or something similar to define the lighting
12961  required.
12962  Everthing on this line in CAPS.
12963 \end_layout
12964
12965 \begin_layout Itemize
12966
12967 \family sans
12968 EXT:
12969 \begin_inset space \hfill{}
12970 \end_inset
12971
12972 M-z e
12973 \begin_inset Newline newline
12974 \end_inset
12975
12976
12977 \family default
12978 Introduces a new EXTERIOR camera set-up.
12979  Everthing on this line in CAPS.
12980 \end_layout
12981
12982 \begin_layout Itemize
12983
12984 \family sans
12985 Speaker
12986 \begin_inset space \hfill{}
12987 \end_inset
12988
12989 M-z s
12990 \begin_inset Newline newline
12991 \end_inset
12992
12993
12994 \family default
12995 The character speaking.
12996 \end_layout
12997
12998 \begin_layout Itemize
12999
13000 \family sans
13001 Parenthetical
13002 \begin_inset space \hfill{}
13003 \end_inset
13004
13005 M-z p
13006 \begin_inset Newline newline
13007 \end_inset
13008
13009
13010 \family default
13011 Instructions to the speaker.
13012  The () are automatically inserted.
13013 \end_layout
13014
13015 \begin_layout Itemize
13016
13017 \family sans
13018 Dialogue
13019 \begin_inset space \hfill{}
13020 \end_inset
13021
13022 M-z d
13023 \begin_inset Newline newline
13024 \end_inset
13025
13026
13027 \family default
13028 What the 
13029 \family sans
13030 Speaker
13031 \family default
13032  says.
13033 \end_layout
13034
13035 \begin_layout Itemize
13036
13037 \family sans
13038 Transition
13039 \begin_inset space \hfill{}
13040 \end_inset
13041
13042 M-z t
13043 \begin_inset Newline newline
13044 \end_inset
13045
13046
13047 \family default
13048 Camera movement instruction.
13049  e.
13050 \begin_inset space \thinspace{}
13051 \end_inset
13052
13053 g.
13054 \begin_inset space \space{}
13055 \end_inset
13056
13057 CUT TO:
13058 \end_layout
13059
13060 \begin_layout Itemize
13061
13062 \family sans
13063 FADE OUT:
13064 \begin_inset space \hfill{}
13065 \end_inset
13066
13067 M-z S-I
13068 \end_layout
13069
13070 \begin_layout Itemize
13071
13072 \family sans
13073 Author
13074 \begin_inset space \hfill{}
13075 \end_inset
13076
13077 M-z S-A
13078 \end_layout
13079
13080 \begin_layout Itemize
13081
13082 \family sans
13083 Title
13084 \begin_inset space \hfill{}
13085 \end_inset
13086
13087 M-z S-T
13088 \end_layout
13089
13090 \begin_layout Itemize
13091
13092 \family sans
13093 Right_Address
13094 \begin_inset space \hfill{}
13095 \end_inset
13096
13097 M-z r
13098 \end_layout
13099
13100 \begin_layout Subsubsection
13101 Script jargon
13102 \end_layout
13103
13104 \begin_layout Itemize
13105 (O.S) — off screen
13106 \end_layout
13107
13108 \begin_layout Itemize
13109 (V.0) — voice over
13110 \end_layout
13111
13112 \begin_layout Itemize
13113 b.
13114 \begin_inset space \thinspace{}
13115 \end_inset
13116
13117 g.
13118  — background
13119 \end_layout
13120
13121 \begin_layout Itemize
13122 C.U.
13123  — close-up
13124 \end_layout
13125
13126 \begin_layout Itemize
13127 PAN — camera movement
13128 \end_layout
13129
13130 \begin_layout Itemize
13131 INSERT — cut to close-up of
13132 \end_layout
13133
13134 \begin_layout Chapter
13135
13136 \change_inserted 564990737 1671185876
13137 Modules
13138 \end_layout
13139
13140 \begin_layout Section
13141
13142 \change_inserted 564990737 1671716212
13143
13144 \lang american
13145 Academic Field Specifics
13146 \end_layout
13147
13148 \begin_layout Subsection
13149
13150 \change_inserted 564990737 1671716212
13151
13152 \lang american
13153 Chemistry: Hazard and Precautionary Statements 
13154 \end_layout
13155
13156 \begin_layout Standard
13157
13158 \change_inserted 564990737 1671716212
13159
13160 \lang american
13161 This module provides two insets to typeset numbers and phrases of chemical
13162  hazard and precautionary statements.
13163  For a description see 
13164 \family sans
13165 \lang british
13166 File\SpecialChar menuseparator
13167 Open Example\SpecialChar menuseparator
13168 Modules\SpecialChar menuseparator
13169 Hazard and Precautionary Statements
13170 \family default
13171  and 
13172 \family sans
13173 Help\SpecialChar menuseparator
13174 Specific Manuals\SpecialChar menuseparator
13175 Hazard and Precautionary Statements
13176 \family default
13177 \lang american
13178 .
13179 \end_layout
13180
13181 \begin_layout Subsection
13182
13183 \change_inserted 564990737 1671716212
13184
13185 \series bold
13186 \lang american
13187 Chemistry: Risk and Safety Statements
13188 \end_layout
13189
13190 \begin_layout Standard
13191
13192 \change_inserted 564990737 1671716212
13193
13194 \lang american
13195 This module provides two insets, 
13196 \family sans
13197 R-S number
13198 \family default
13199  and 
13200 \family sans
13201 R-S phrase
13202 \family default
13203 , accessible via the menu 
13204 \family sans
13205 \bar under
13206 I
13207 \bar default
13208 nsert\SpecialChar menuseparator
13209 Custom
13210 \begin_inset space ~
13211 \end_inset
13212
13213 Insets
13214 \family default
13215  and an environment to typeset numbers and phrases of chemical risk and
13216  safety statements.
13217 \end_layout
13218
13219 \begin_layout Subsection
13220
13221 \change_inserted 564990737 1671716212
13222
13223 \lang american
13224 Linguistics
13225 \end_layout
13226
13227 \begin_layout Standard
13228
13229 \change_inserted 564990737 1671716212
13230
13231 \lang american
13232 This module uses the 
13233 \family sans
13234 covington.sty
13235 \family default
13236  package to add environments useful for linguistics (numbered examples,
13237  glosses, semantic markup, tableau floats).
13238  You can obtain information about this module in 
13239 \family sans
13240 \bar under
13241 H
13242 \bar default
13243 elp\SpecialChar menuseparator
13244 S
13245 \bar under
13246 p
13247 \bar default
13248 ecific
13249 \begin_inset space ~
13250 \end_inset
13251
13252 Manuals\SpecialChar menuseparator
13253
13254 \bar under
13255 L
13256 \bar default
13257 inguistics
13258 \family default
13259  and 
13260 \family sans
13261 \lang british
13262 File\SpecialChar menuseparator
13263 Open Example\SpecialChar menuseparator
13264
13265 \lang american
13266 Modules\SpecialChar menuseparator
13267 Linguistics
13268 \family default
13269 .
13270 \end_layout
13271
13272 \begin_layout Section
13273
13274 \change_inserted 564990737 1671788778
13275
13276 \lang american
13277 Accessibility
13278 \end_layout
13279
13280 \begin_layout Subsection
13281
13282 \change_inserted 564990737 1671788778
13283
13284 \lang american
13285 Braille
13286 \end_layout
13287
13288 \begin_layout Standard
13289
13290 \change_inserted 564990737 1671788778
13291
13292 \lang american
13293 This module supports the Braille writing system.
13294  It requires the \SpecialChar LaTeX
13295  package 
13296 \family typewriter
13297 braille.sty
13298 \family default
13299 .
13300  This and its documentation can be obtained from 
13301 \begin_inset CommandInset href
13302 LatexCommand href
13303 name "CTAN"
13304 target "https://www.ctan.org/pkg/braille"
13305 literal "false"
13306
13307 \end_inset
13308
13309 .
13310  You do not have to reconfigure your system after installing it.
13311  See 
13312 \family sans
13313 \bar under
13314 H
13315 \bar default
13316 elp\SpecialChar menuseparator
13317 S
13318 \bar under
13319 p
13320 \bar default
13321 ecific
13322 \begin_inset space ~
13323 \end_inset
13324
13325 Manuals\SpecialChar menuseparator
13326
13327 \bar under
13328 B
13329 \bar default
13330 raille
13331 \family default
13332  and 
13333 \family sans
13334 File\SpecialChar menuseparator
13335 Open Example\SpecialChar menuseparator
13336 Modules\SpecialChar menuseparator
13337 Braille
13338 \family default
13339 .
13340 \end_layout
13341
13342 \begin_layout Section
13343
13344 \change_inserted 564990737 1671788778
13345
13346 \lang american
13347 Annotation & Revision
13348 \end_layout
13349
13350 \begin_layout Subsection
13351
13352 \change_inserted 564990737 1671788778
13353
13354 \lang american
13355 FiXme Notes
13356 \end_layout
13357
13358 \begin_layout Standard
13359
13360 \change_inserted 564990737 1671788778
13361
13362 \lang american
13363 This module provides “FiXme” (marginal) annotations for document revision
13364  purposes.
13365  A list of annotations can be produced by using the “List of FIXMEs” paragraph
13366  style.
13367  The annotations are customizable via the LaTeX preamble.
13368  See the FiXme documentation which can be obtained from 
13369 \begin_inset CommandInset href
13370 LatexCommand href
13371 name "CTAN"
13372 target "http://mirrors.ctan.org/macros/latex/contrib/fixme/fixme.pdf"
13373 literal "false"
13374
13375 \end_inset
13376
13377 .
13378  
13379 \end_layout
13380
13381 \begin_layout Paragraph
13382
13383 \change_inserted 564990737 1671788778
13384
13385 \lang american
13386 Note:
13387 \end_layout
13388
13389 \begin_layout Standard
13390
13391 \change_inserted 564990737 1671788778
13392
13393 \lang american
13394 by default, the notes are only displayed in “draft” mode (if the option
13395  “draft” has been inserted in 
13396 \family sans
13397 Document\SpecialChar menuseparator
13398 Settings\SpecialChar menuseparator
13399 Document Class\SpecialChar menuseparator
13400 Class Options\SpecialChar menuseparator
13401 Custom
13402 \family default
13403 ).
13404  To display them always, insert 
13405 \family typewriter
13406
13407 \backslash
13408 fxsetup{draft}
13409 \family default
13410  in 
13411 \family sans
13412 Document\SpecialChar menuseparator
13413 Settings\SpecialChar menuseparator
13414 \SpecialChar LaTeX
13415  Preamble
13416 \family default
13417 .
13418  
13419 \end_layout
13420
13421 \begin_layout Subsection
13422
13423 \change_inserted 564990737 1671788778
13424
13425 \lang american
13426 PDF Comments
13427 \end_layout
13428
13429 \begin_layout Standard
13430
13431 \change_inserted 564990737 1671788778
13432
13433 \lang american
13434 This module provides various kinds of annotations for PDF output.
13435  See 
13436 \family sans
13437 Help\SpecialChar menuseparator
13438 Specific Manuals\SpecialChar menuseparator
13439 PDF comments and File\SpecialChar menuseparator
13440 Open Example\SpecialChar menuseparator
13441 Modules\SpecialChar menuseparator
13442 PDF Comments
13443 \family default
13444 .
13445 \end_layout
13446
13447 \begin_layout Subsection
13448
13449 \change_inserted 564990737 1671788778
13450
13451 \series bold
13452 \lang american
13453 PDF Form
13454 \end_layout
13455
13456 \begin_layout Standard
13457
13458 \change_inserted 564990737 1671788778
13459
13460 \lang american
13461 This module provides fields and buttons for PDF forms.
13462  See the 
13463 \begin_inset CommandInset href
13464 LatexCommand href
13465 name "hyperref documentation"
13466 target "http://mirrors.ctan.org/macros/latex/contrib/hyperref/doc/hyperref-doc.pdf"
13467 literal "false"
13468
13469 \end_inset
13470
13471
13472 \family sans
13473 Help\SpecialChar menuseparator
13474 Specific Manuals\SpecialChar menuseparator
13475 PDF forms and File\SpecialChar menuseparator
13476 Open Example\SpecialChar menuseparator
13477 Modules\SpecialChar menuseparator
13478 PDF Form
13479 \family default
13480 .
13481 \end_layout
13482
13483 \begin_layout Subsection
13484
13485 \change_inserted 564990737 1671788778
13486
13487 \series bold
13488 \lang american
13489 Ruby (Furigana)
13490 \end_layout
13491
13492 \begin_layout Standard
13493
13494 \change_inserted 564990737 1671788778
13495
13496 \lang american
13497 This module defines an inset to typeset reading aids (ruby, furigana) to
13498  Chinese characters.
13499  It uses the “okumakro,” “luatexja-ruby” or “ruby” package (depending on
13500  the TeX engine) or a fallback definition.
13501  
13502 \end_layout
13503
13504 \begin_layout Subsection
13505
13506 \change_inserted 564990737 1671788778
13507
13508 \series bold
13509 \lang american
13510 TODO notes
13511 \end_layout
13512
13513 \begin_layout Standard
13514
13515 \change_inserted 564990737 1671788778
13516
13517 \lang american
13518 This module provides custom insets to insert TODO items in your document.
13519  In order to generate a “List of TODOs,” the module provides a paragraph
13520  style.
13521  Inserting “final” in 
13522 \family sans
13523 Document\SpecialChar menuseparator
13524 Settings\SpecialChar menuseparator
13525 Document Class\SpecialChar menuseparator
13526 Class Options\SpecialChar menuseparator
13527 Custom
13528 \family default
13529 ) suppresses the output of TODO notes.
13530  See the 
13531 \begin_inset CommandInset href
13532 LatexCommand href
13533 name "todonotes documentation"
13534 target "http://mirrors.ctan.org/macros/latex/contrib/todonotes/todonotes.pdf"
13535 literal "false"
13536
13537 \end_inset
13538
13539 .
13540 \end_layout
13541
13542 \begin_layout Section
13543
13544 \change_inserted 564990737 1671829045
13545
13546 \lang american
13547 Bibliography 
13548 \end_layout
13549
13550 \begin_layout Subsection
13551
13552 \change_inserted 564990737 1671829045
13553
13554 \lang american
13555 APA Style with NatBib
13556 \end_layout
13557
13558 \begin_layout Standard
13559
13560 \change_inserted 564990737 1671829045
13561
13562 \lang american
13563 This module adds support for using natbib together with apacite (the bibliograph
13564 y style need not be apacite — it could be apacite, apacitex, or any bibliography
13565  that works with both the natbib and apacite packages.) 
13566 \end_layout
13567
13568 \begin_layout Section
13569
13570 \change_inserted 564990737 1671829045
13571
13572 \lang american
13573 Boxes
13574 \end_layout
13575
13576 \begin_layout Subsection
13577
13578 \change_inserted 564990737 1671829045
13579
13580 \lang american
13581 Fancy Colored Boxes
13582 \end_layout
13583
13584 \begin_layout Standard
13585
13586 \change_inserted 564990737 1671829045
13587
13588 \lang american
13589 This module adds ten custom insets that support colored boxes via the tcolorbox
13590  package.
13591  See 
13592 \family sans
13593 Help\SpecialChar menuseparator
13594 Specific Manuals\SpecialChar menuseparator
13595 Colored boxes
13596 \family default
13597
13598 \family sans
13599 File\SpecialChar menuseparator
13600 Open Example\SpecialChar menuseparator
13601 Modules\SpecialChar menuseparator
13602 Fancy Color Boxes
13603 \family default
13604  the 
13605 \begin_inset CommandInset href
13606 LatexCommand href
13607 name "tcolorbox documentation"
13608 target "http://mirrors.ctan.org/macros/latex/contrib/tcolorbox/tcolorbox.pdf"
13609 literal "false"
13610
13611 \end_inset
13612
13613  for details.
13614  
13615 \end_layout
13616
13617 \begin_layout Subsection
13618
13619 \change_inserted 564990737 1671829045
13620
13621 \lang american
13622 Graphic boxes
13623 \end_layout
13624
13625 \begin_layout Standard
13626
13627 \change_inserted 564990737 1671829045
13628
13629 \lang american
13630 This provides the custom insets 
13631 \family sans
13632 Reflectbox
13633 \family default
13634
13635 \family sans
13636 Resizebox
13637 \family default
13638
13639 \family sans
13640 Rotatebox
13641 \family default
13642  and 
13643 \family sans
13644 Scalebox
13645 \family default
13646  to scale and rotate its content.
13647 \end_layout
13648
13649 \begin_layout Standard
13650
13651 \change_inserted 564990737 1671829045
13652
13653 \family sans
13654 \lang american
13655 Reflectbox
13656 \family default
13657  is a simple way of reversing text without any other enhancement:
13658 \end_layout
13659
13660 \begin_layout Standard
13661
13662 \change_inserted 564990737 1671829045
13663
13664 \lang american
13665 \begin_inset Flex Reflectbox
13666 status open
13667
13668 \begin_layout Plain Layout
13669
13670 \change_inserted 564990737 1671829045
13671
13672 \lang american
13673 Great Western Railway
13674 \change_unchanged
13675
13676 \end_layout
13677
13678 \end_inset
13679
13680
13681 \end_layout
13682
13683 \begin_layout Standard
13684
13685 \change_inserted 564990737 1671829045
13686
13687 \lang american
13688 (You will need to use Ctrl-R to see any of these examples.)
13689 \end_layout
13690
13691 \begin_layout Standard
13692
13693 \change_inserted 564990737 1671829045
13694
13695 \family sans
13696 \lang american
13697 Resizebox
13698 \family default
13699  allows you to specify the dimensions of the text or image; permissible
13700  units are em, ex, in, pt, pc, cm, mm, dd, cc, nd, nc, bp, or sp; if you
13701  enter 
13702 \family typewriter
13703 !
13704 \family default
13705  for 
13706 \family typewriter
13707 Height
13708 \family default
13709  it scales by the width factor:
13710 \end_layout
13711
13712 \begin_layout Standard
13713
13714 \change_inserted 564990737 1671829045
13715
13716 \lang american
13717 \begin_inset Flex Resizebox
13718 status open
13719
13720 \begin_layout Plain Layout
13721
13722 \change_inserted 564990737 1671829045
13723
13724 \lang american
13725 \begin_inset Argument 1
13726 status open
13727
13728 \begin_layout Plain Layout
13729
13730 \change_inserted 564990737 1671829045
13731
13732 \lang american
13733 48mm
13734 \change_unchanged
13735
13736 \end_layout
13737
13738 \end_inset
13739
13740
13741 \begin_inset Argument 2
13742 status open
13743
13744 \begin_layout Plain Layout
13745
13746 \change_inserted 564990737 1671829045
13747
13748 \lang american
13749 !
13750 \change_unchanged
13751
13752 \end_layout
13753
13754 \end_inset
13755
13756 Great Western Railway
13757 \change_unchanged
13758
13759 \end_layout
13760
13761 \end_inset
13762
13763
13764 \end_layout
13765
13766 \begin_layout Standard
13767
13768 \change_inserted 564990737 1671829045
13769
13770 \family sans
13771 \lang american
13772 Rotatebox
13773 \family default
13774  allows you to rotate text around the reference point of the box.
13775  If you wish to rotate the box around a different origin, place the cursor
13776  inside the box and select Insert\SpecialChar menuseparator
13777 Origin; o
13778 \family typewriter
13779 rigin
13780 \family default
13781  is specified as 
13782 \family typewriter
13783 c
13784 \family default
13785 ,
13786 \family typewriter
13787  l
13788 \family default
13789 ,
13790 \family typewriter
13791  r
13792 \family default
13793 ,
13794 \family typewriter
13795  b
13796 \family default
13797 ,
13798 \family typewriter
13799  t
13800 \family default
13801  or meaningful combinations of these and the counterclockwise rotation angle
13802  is expressed in degrees.
13803  For example:
13804 \end_layout
13805
13806 \begin_layout Standard
13807
13808 \change_inserted 564990737 1671829045
13809
13810 \lang american
13811 \begin_inset Flex Rotatebox
13812 status open
13813
13814 \begin_layout Plain Layout
13815
13816 \change_inserted 564990737 1671829045
13817
13818 \lang american
13819 \begin_inset Argument 1
13820 status open
13821
13822 \begin_layout Plain Layout
13823
13824 \change_inserted 564990737 1671829045
13825
13826 \lang british
13827 =c
13828 \change_unchanged
13829
13830 \end_layout
13831
13832 \end_inset
13833
13834
13835 \begin_inset Argument 2
13836 status open
13837
13838 \begin_layout Plain Layout
13839
13840 \change_inserted 564990737 1671829045
13841
13842 \lang british
13843 30
13844 \change_unchanged
13845
13846 \end_layout
13847
13848 \end_inset
13849
13850 Great Western Railway
13851 \change_unchanged
13852
13853 \end_layout
13854
13855 \end_inset
13856
13857
13858 \end_layout
13859
13860 \begin_layout Standard
13861
13862 \change_inserted 564990737 1671829045
13863
13864 \lang american
13865 You can combine boxes as in:
13866 \end_layout
13867
13868 \begin_layout Standard
13869
13870 \change_inserted 564990737 1671829045
13871
13872 \lang british
13873 \begin_inset Flex Rotatebox
13874 status open
13875
13876 \begin_layout Plain Layout
13877
13878 \change_inserted 564990737 1671829045
13879
13880 \lang british
13881 \begin_inset Argument 1
13882 status open
13883
13884 \begin_layout Plain Layout
13885
13886 \change_inserted 564990737 1671829045
13887
13888 \lang british
13889 =c
13890 \change_unchanged
13891
13892 \end_layout
13893
13894 \end_inset
13895
13896
13897 \begin_inset Argument 2
13898 status open
13899
13900 \begin_layout Plain Layout
13901
13902 \change_inserted 564990737 1671829045
13903
13904 \lang british
13905 -15
13906 \change_unchanged
13907
13908 \end_layout
13909
13910 \end_inset
13911
13912
13913 \begin_inset Flex Resizebox
13914 status open
13915
13916 \begin_layout Plain Layout
13917
13918 \change_inserted 564990737 1671829045
13919
13920 \lang british
13921 \begin_inset Argument 1
13922 status open
13923
13924 \begin_layout Plain Layout
13925
13926 \change_inserted 564990737 1671829045
13927
13928 \lang british
13929 48mm
13930 \change_unchanged
13931
13932 \end_layout
13933
13934 \end_inset
13935
13936
13937 \begin_inset Argument 2
13938 status open
13939
13940 \begin_layout Plain Layout
13941
13942 \change_inserted 564990737 1671829045
13943
13944 \lang british
13945 !
13946 \change_unchanged
13947
13948 \end_layout
13949
13950 \end_inset
13951
13952
13953 \begin_inset Flex Reflectbox
13954 status open
13955
13956 \begin_layout Plain Layout
13957
13958 \change_inserted 564990737 1671829045
13959
13960 \lang british
13961 Great Western Railway
13962 \change_unchanged
13963
13964 \end_layout
13965
13966 \end_inset
13967
13968
13969 \change_unchanged
13970
13971 \end_layout
13972
13973 \end_inset
13974
13975
13976 \change_unchanged
13977
13978 \end_layout
13979
13980 \end_inset
13981
13982
13983 \end_layout
13984
13985 \begin_layout Standard
13986
13987 \change_inserted 564990737 1671829045
13988
13989 \family sans
13990 \lang american
13991 Scalebox
13992 \family default
13993  scales text; select Insert\SpecialChar menuseparator
13994 V-Factor to add a vertical factor.
13995  If the vertical factor is omitted, the horizontal is used.
13996  Adding different horizontal and vertical values creates distortion as in
13997  
13998 \end_layout
13999
14000 \begin_layout Standard
14001
14002 \change_inserted 564990737 1671829045
14003
14004 \family typewriter
14005 \lang american
14006 \begin_inset Flex Scalebox
14007 status open
14008
14009 \begin_layout Plain Layout
14010
14011 \change_inserted 564990737 1671829045
14012
14013 \lang american
14014 \begin_inset Argument 1
14015 status open
14016
14017 \begin_layout Plain Layout
14018
14019 \change_inserted 564990737 1671829045
14020
14021 \lang american
14022 2
14023 \change_unchanged
14024
14025 \end_layout
14026
14027 \end_inset
14028
14029
14030 \begin_inset Argument 2
14031 status open
14032
14033 \begin_layout Plain Layout
14034
14035 \change_inserted 564990737 1671829045
14036
14037 \lang american
14038 1.5
14039 \change_unchanged
14040
14041 \end_layout
14042
14043 \end_inset
14044
14045
14046 \family roman
14047 Great Western Railway
14048 \change_unchanged
14049
14050 \end_layout
14051
14052 \end_inset
14053
14054 .
14055 \end_layout
14056
14057 \begin_layout Standard
14058
14059 \change_inserted 564990737 1671829045
14060
14061 \lang american
14062 A negative horizontal value reverses the text and a negative vertical value
14063  inverts it so that you get 
14064 \end_layout
14065
14066 \begin_layout Standard
14067
14068 \change_inserted 564990737 1671829045
14069
14070 \lang american
14071 \begin_inset Flex Scalebox
14072 status open
14073
14074 \begin_layout Plain Layout
14075
14076 \change_inserted 564990737 1671829045
14077
14078 \lang american
14079 \begin_inset Argument 1
14080 status open
14081
14082 \begin_layout Plain Layout
14083
14084 \change_inserted 564990737 1671829045
14085
14086 \lang british
14087 -1
14088 \change_unchanged
14089
14090 \end_layout
14091
14092 \end_inset
14093
14094
14095 \begin_inset Argument 2
14096 status open
14097
14098 \begin_layout Plain Layout
14099
14100 \change_inserted 564990737 1671829045
14101
14102 \lang british
14103 1
14104 \change_unchanged
14105
14106 \end_layout
14107
14108 \end_inset
14109
14110 Great Western Railway
14111 \change_unchanged
14112
14113 \end_layout
14114
14115 \end_inset
14116
14117  and 
14118 \begin_inset Flex Scalebox
14119 status open
14120
14121 \begin_layout Plain Layout
14122
14123 \change_inserted 564990737 1671829045
14124
14125 \lang american
14126 \begin_inset Argument 1
14127 status open
14128
14129 \begin_layout Plain Layout
14130
14131 \change_inserted 564990737 1671829045
14132
14133 \lang british
14134 1
14135 \change_unchanged
14136
14137 \end_layout
14138
14139 \end_inset
14140
14141
14142 \begin_inset Argument 2
14143 status open
14144
14145 \begin_layout Plain Layout
14146
14147 \change_inserted 564990737 1671829045
14148
14149 \lang british
14150 -1
14151 \change_unchanged
14152
14153 \end_layout
14154
14155 \end_inset
14156
14157 Great Western Railway
14158 \change_unchanged
14159
14160 \end_layout
14161
14162 \end_inset
14163
14164 .
14165 \end_layout
14166
14167 \begin_layout Subsection
14168
14169 \change_inserted 564990737 1671884699
14170
14171 \lang american
14172 Section Boxes
14173 \end_layout
14174
14175 \begin_layout Standard
14176
14177 \change_inserted 564990737 1671884699
14178
14179 \lang american
14180 This module defines Boxes with section header.
14181  It is mainly intended for the SciPoster Document class.
14182  
14183 \end_layout
14184
14185 \begin_layout Subsection
14186
14187 \change_inserted 564990737 1671884699
14188
14189 \lang american
14190 Variable-width Minipages
14191 \end_layout
14192
14193 \begin_layout Standard
14194
14195 \change_inserted 564990737 1671884699
14196
14197 \lang american
14198 This module adds a 
14199 \family sans
14200 Minipage (Var.
14201 \begin_inset space \thinspace{}
14202 \end_inset
14203
14204 Width)
14205 \family default
14206  inset to 
14207 \family sans
14208 Insert\SpecialChar menuseparator
14209 Custom Inset
14210 \family default
14211  using the 
14212 \family sans
14213 varwidth
14214 \family default
14215  LaTeX package.
14216  The 
14217 \family sans
14218 varwidth
14219 \family default
14220  package provides a variable-width minipage, whose resulting width is the
14221  width of its contents (if this does not exceed the specified maximum width).
14222  The inset has two optional arguments which can be added by placing the
14223  cursor inside the minipage and entering 
14224 \family sans
14225 Insert\SpecialChar menuseparator
14226 Vert.
14227 \begin_inset space \thinspace{}
14228 \end_inset
14229
14230 Adjustment
14231 \family default
14232  (
14233 \family typewriter
14234 c|t|b
14235 \family default
14236 ) or 
14237 \family sans
14238 Insert\SpecialChar menuseparator
14239 Max.
14240 \begin_inset space \thinspace{}
14241 \end_inset
14242
14243 Width
14244 \family default
14245  (defaults to 
14246 \family typewriter
14247
14248 \backslash
14249 linewidth
14250 \family default
14251 ).
14252  See 
14253 \family sans
14254 File\SpecialChar menuseparator
14255 Open Example\SpecialChar menuseparator
14256 Variable-width Minipages
14257 \family default
14258 .
14259  
14260 \end_layout
14261
14262 \begin_layout Section
14263
14264 \change_inserted 564990737 1671884699
14265
14266 \lang american
14267 Fixes & Hacks
14268 \end_layout
14269
14270 \begin_layout Subsection
14271
14272 \change_inserted 564990737 1671884699
14273
14274 \lang american
14275 Fix Computer Modern Fonts
14276 \end_layout
14277
14278 \begin_layout Standard
14279
14280 \change_inserted 564990737 1671884699
14281
14282 \lang american
14283 This module uses the 
14284 \family sans
14285 fix-cm
14286 \family default
14287  package to improve the appearance of Computer Modern fonts and make them
14288  available with arbitrary sizes.
14289  See the 
14290 \begin_inset CommandInset href
14291 LatexCommand href
14292 name "fix-cm documentation"
14293 target "http://mirrors.ctan.org/macros/latex/base/fix-cm.pdf"
14294 literal "false"
14295
14296 \end_inset
14297
14298 .
14299  
14300 \end_layout
14301
14302 \begin_layout Subsection
14303
14304 \change_inserted 564990737 1671884699
14305
14306 \lang american
14307 \SpecialChar LaTeX
14308  Kernel Fixes (Obsolete)
14309 \end_layout
14310
14311 \begin_layout Standard
14312
14313 \change_inserted 564990737 1671884699
14314
14315 \lang american
14316 This module loads the \SpecialChar LaTeX
14317  package 
14318 \family sans
14319 fixltx2e
14320 \family default
14321  which contains some bug fixes for \SpecialChar LaTeX
14322 .
14323  If you use this module your typeset document may look different when you
14324  process it, depending on the respective version of 
14325 \family sans
14326 fixltx2e
14327 \family default
14328 .
14329  
14330 \end_layout
14331
14332 \begin_layout Paragraph
14333
14334 \change_inserted 564990737 1671884699
14335
14336 \lang american
14337 Note:
14338 \end_layout
14339
14340 \begin_layout Standard
14341
14342 \change_inserted 564990737 1671884699
14343
14344 \lang american
14345 recent \SpecialChar LaTeX
14346  kernels (as of 2015/01/01) include the functionality of 
14347 \family sans
14348 fixltx2e
14349 \family default
14350 , so the 
14351 \family sans
14352 fixltx2e
14353 \family default
14354  module is obsolete with newer \SpecialChar LaTeX
14355  distributions.
14356  
14357 \end_layout
14358
14359 \begin_layout Subsection
14360
14361 \change_inserted 564990737 1671884699
14362
14363 \lang american
14364 Minimalistic Insets
14365 \end_layout
14366
14367 \begin_layout Standard
14368
14369 \change_inserted 564990737 1671884699
14370
14371 \lang american
14372 This module redefines several insets (Index, Branch, URL) as being Minimalistic.
14373 \end_layout
14374
14375 \begin_layout Subsection
14376
14377 \change_inserted 564990737 1671884699
14378
14379 \lang american
14380 Title and Preamble Hacks
14381 \end_layout
14382
14383 \begin_layout Standard
14384
14385 \change_inserted 564990737 1671884699
14386
14387 \lang american
14388 This module provides two new paragraph styles: 
14389 \end_layout
14390
14391 \begin_layout Enumerate
14392
14393 \change_inserted 564990737 1671884699
14394
14395 \family sans
14396 \lang american
14397 In Preamble
14398 \family default
14399  which puts whatever is entered into it into the preamble.
14400  This can be used, if one wishes, to include preamble code in the body of
14401  a LyX document.
14402  
14403 \end_layout
14404
14405 \begin_layout Enumerate
14406
14407 \change_inserted 564990737 1671884699
14408
14409 \family sans
14410 \lang american
14411 In Title
14412 \family default
14413  which that will put its contents into the body of the LaTeX document, but
14414  before 
14415 \family typewriter
14416
14417 \backslash
14418 maketitle
14419 \family default
14420  is issued.
14421  This is useful for making branches and notes in title-related material.
14422  (However, if you put these in a Standard layout, this signals to LyX to
14423  output 
14424 \family typewriter
14425
14426 \backslash
14427 maketitle
14428 \family default
14429 , which may then come too early.)
14430 \end_layout
14431
14432 \begin_layout Section
14433 Multiple Text Columns
14434 \end_layout
14435
14436 \begin_layout Standard
14437 This feature is independent of the option 
14438 \family sans
14439 Two-column document
14440 \family default
14441  in the document settings under 
14442 \family sans
14443 Text Layout
14444 \family default
14445 .
14446  If you want to have 2
14447 \begin_inset space ~
14448 \end_inset
14449
14450 columns for the whole document, it is recommended to use the 
14451 \family sans
14452 Two-column document
14453 \family default
14454  option.
14455  For all other cases use this feature.
14456 \end_layout
14457
14458 \begin_layout Standard
14459 To use multiple text columns in your document, you have to load the module
14460  
14461 \family sans
14462 Multiple Columns
14463 \family default
14464  (menu 
14465 \family sans
14466 Document\SpecialChar menuseparator
14467 Settings\SpecialChar menuseparator
14468 Modules
14469 \family default
14470 ) and must have the \SpecialChar LaTeX
14471 -package 
14472 \begin_inset Flex Code
14473 status collapsed
14474
14475 \begin_layout Plain Layout
14476 multicol
14477 \end_layout
14478
14479 \end_inset
14480
14481  installed.
14482 \end_layout
14483
14484 \begin_layout Standard
14485 Footnotes within multiple columns will be placed at the bottom of the page
14486  and not under each column.
14487  Within the different columns you can use everything, with the limitation
14488  that for floats you need to use the float option 
14489 \family sans
14490 Span columns
14491 \family default
14492 .
14493 \end_layout
14494
14495 \begin_layout Subsection
14496 Basics
14497 \end_layout
14498
14499 \begin_layout Standard
14500 If you want to have 2
14501 \begin_inset space ~
14502 \end_inset
14503
14504 columns in your text, insert a multicolumn inset via the menu 
14505 \family sans
14506 Insert\SpecialChar menuseparator
14507 Custom
14508 \begin_inset space ~
14509 \end_inset
14510
14511 Insets\SpecialChar menuseparator
14512 Multiple
14513 \begin_inset space ~
14514 \end_inset
14515
14516 Columns
14517 \family default
14518  where the columns should start.
14519  Write all text that should be printed in 2
14520 \begin_inset space ~
14521 \end_inset
14522
14523 columns into this inset.
14524 \end_layout
14525
14526 \begin_layout Standard
14527 Here is an example:
14528 \end_layout
14529
14530 \begin_layout Standard
14531 \noindent
14532 \begin_inset Flex Multiple Columns
14533 status open
14534
14535 \begin_layout Plain Layout
14536 \noindent
14537
14538 \series bold
14539 \size small
14540 The Adventure of the Empty House
14541 \series default
14542
14543 \begin_inset Newline newline
14544 \end_inset
14545
14546 by Sir Arthur Conan Doyle
14547 \end_layout
14548
14549 \begin_layout Plain Layout
14550
14551 \size small
14552 It was in the spring of the year 1894 that all London was interested, and
14553  the fashionable world dismayed, by the murder of the Honourable Ronald
14554  Adair under most unusual and inexplicable circumstances.
14555  The public has already learned those particulars of the crime which came
14556  out in the police investigation, but a good deal was suppressed upon that
14557  occasion, since the case for the prosecution was so overwhelmingly strong
14558  that it was not necessary to bring forward all the facts.
14559  Only now, at the end of nearly ten years, am I allowed to supply those
14560  missing links which make up the whole of that remarkable chain.
14561  The crime was of interest in itself, but that interest was as nothing to
14562  me compared to the inconceivable sequel, which afforded me the greatest
14563  shock and surprise of any event in my adventurous life.
14564  Even now, after this long interval, I find myself thrilling as I think
14565  of it, and feeling once more that sudden flood of joy, amazement, and increduli
14566 ty which utterly submerged my mind.
14567  Let me say to that public, which has shown some interest in those glimpses
14568  which I have occasionally given them of the thoughts and actions of a very
14569  remarkable man, that they are not to blame me if I have not shared my knowledge
14570  with them, for I should have considered it my first duty to do so, had
14571  I not been barred by a positive prohibition from his own lips, which was
14572  only withdrawn upon the third of last month.
14573 \end_layout
14574
14575 \end_inset
14576
14577
14578 \end_layout
14579
14580 \begin_layout Standard
14581 To get 3 or more columns, set the cursor into the multicolumn inset and
14582  use the menu 
14583 \family sans
14584 Insert\SpecialChar menuseparator
14585 Number
14586 \begin_inset space ~
14587 \end_inset
14588
14589 of
14590 \begin_inset space ~
14591 \end_inset
14592
14593 Columns
14594 \family default
14595 .
14596  The number of the desired columns is written into that inset (for 3
14597 \begin_inset space ~
14598 \end_inset
14599
14600 columns write 
14601 \begin_inset Quotes eld
14602 \end_inset
14603
14604 3
14605 \begin_inset Quotes erd
14606 \end_inset
14607
14608 ).
14609 \begin_inset Newline newline
14610 \end_inset
14611
14612 Here is an example with 3
14613 \begin_inset space ~
14614 \end_inset
14615
14616 columns:
14617 \end_layout
14618
14619 \begin_layout Standard
14620 \begin_inset Flex Multiple Columns
14621 status open
14622
14623 \begin_layout Plain Layout
14624
14625 \size footnotesize
14626 \begin_inset Argument 1
14627 status open
14628
14629 \begin_layout Plain Layout
14630
14631 3
14632 \end_layout
14633
14634 \end_inset
14635
14636 It can be imagined that my close intimacy with Sherlock Holmes had interested
14637  me deeply in crime, and that after his disappearance I never failed to
14638  read with care the various problems which came before the public.
14639  And I even attempted, more than once, for my own private satisfaction,
14640  to employ his methods in their solution, though with indifferent success.
14641  There was none, however, which appealed to me like this tragedy of Ronald
14642  Adair.
14643  As I read the evidence at the inquest, which led up to a verdict of willful
14644  murder against some person or persons unknown, I realized more clearly
14645  than I had ever done the loss which the community had sustained by the
14646  death of Sherlock Holmes.
14647  There were points about this strange business which would, I was sure,
14648  have specially appealed to him, and the efforts of the police would have
14649  been supplemented, or more probably anticipated, by the trained observation
14650  and the alert mind of the first criminal agent in Europe.
14651  All day, as I drove upon my round, I turned over the case in my mind and
14652  found no explanation which appeared to me to be adequate.
14653  At the risk of telling a twice-told tale, I will recapitulate the facts
14654  as they were known to the public at the conclusion of the inquest.
14655 \end_layout
14656
14657 \end_inset
14658
14659
14660 \end_layout
14661
14662 \begin_layout Standard
14663 You can have up to 10
14664 \begin_inset space ~
14665 \end_inset
14666
14667 columns if you want to, but that might not be very pleasant for the readers
14668  of your document.
14669 \end_layout
14670
14671 \begin_layout Standard
14672 \begin_inset Newpage newpage
14673 \end_inset
14674
14675
14676 \end_layout
14677
14678 \begin_layout Subsection
14679 Columns inside Columns
14680 \end_layout
14681
14682 \begin_layout Standard
14683 You can also have columns inside columns:
14684 \end_layout
14685
14686 \begin_layout Standard
14687 \begin_inset Flex Multiple Columns
14688 status open
14689
14690 \begin_layout Plain Layout
14691
14692 \size footnotesize
14693 The Honourable Ronald Adair was the second son of the Earl of Maynooth,
14694  at that time governor of one of the Australian colonies.
14695  Adair's mother had returned from Australia to undergo the operation for
14696  cataract, and she, her son Ronald, and her daughter Hilda were living together
14697  at 427 Park Lane.
14698 \end_layout
14699
14700 \begin_layout Plain Layout
14701 \begin_inset Flex Multiple Columns
14702 status open
14703
14704 \begin_layout Plain Layout
14705
14706 \size footnotesize
14707 The youth moved in the best society
14708 \begin_inset space ~
14709 \end_inset
14710
14711 – had, so far as was known, no enemies and no particular vices.
14712  He had been engaged to Miss Edith Woodley, of Carstairs, but the engagement
14713  had been broken off by mutual consent some months before, and there was
14714  no sign that it had left any very profound feeling behind it.
14715  For the rest {sic} the man's life moved in a narrow and conventional circle,
14716  for his habits were quiet and his nature unemotional.
14717  Yet it was upon this easy-going young aristocrat that death came, in most
14718  strange and unexpected form, between the hours of ten and eleven-twenty
14719  on the night of March 30, 1894.
14720 \end_layout
14721
14722 \end_inset
14723
14724
14725 \end_layout
14726
14727 \begin_layout Plain Layout
14728
14729 \size footnotesize
14730 Ronald Adair was fond of cards
14731 \begin_inset space ~
14732 \end_inset
14733
14734 – playing continually, but never for such stakes as would hurt him.
14735  He was a member of the Baldwin, the Cavendish, and the Bagatelle card clubs.
14736  It was shown that, after dinner on the day of his death, he had played
14737  a rubber of whist at the latter club.
14738  He had also played there in the afternoon.
14739
14740 \size default
14741  
14742 \size footnotesize
14743 The evidence of those who had played with him
14744 \begin_inset space ~
14745 \end_inset
14746
14747 – Mr.
14748  Murray, Sir John Hardy, and Colonel Moran
14749 \begin_inset space ~
14750 \end_inset
14751
14752 – showed that the game was whist, and that there was a fairly equal fall
14753  of the cards.
14754  Adair might have lost five pounds, but not more.
14755  His fortune was a considerable one, and such a loss could not in any way
14756  affect him.
14757  He had played nearly every day at one club or other, but he was a cautious
14758  player, and usually rose a winner.
14759  It came out in evidence that, in partnership with Colonel Moran, he had
14760  actually won as much as four hundred and twenty pounds in a sitting, some
14761  weeks before, from Godfrey Milner and Lord Balmoral.
14762  So much for his recent history as it came out at the inquest.
14763 \end_layout
14764
14765 \end_inset
14766
14767
14768 \end_layout
14769
14770 \begin_layout Subsection
14771 Advanced Examples
14772 \end_layout
14773
14774 \begin_layout Standard
14775 The examples in this section show some more special features of multiple
14776  columns.
14777 \end_layout
14778
14779 \begin_layout Standard
14780 For more features of multiple columns, have a look at the 
14781 \begin_inset CommandInset href
14782 LatexCommand href
14783 name "documentation"
14784 target "http://mirror.ctan.org/macros/latex/required/tools/multicol.pdf"
14785 literal "false"
14786
14787 \end_inset
14788
14789  of the \SpecialChar LaTeX
14790 -package 
14791 \begin_inset Flex Code
14792 status collapsed
14793
14794 \begin_layout Plain Layout
14795 multicol
14796 \end_layout
14797
14798 \end_inset
14799
14800 .
14801 \end_layout
14802
14803 \begin_layout Subsubsection
14804 Preface
14805 \end_layout
14806
14807 \begin_layout Standard
14808 To add a preface text for multiple columns, set the cursor into the multicolumn
14809  inset and use the menu 
14810 \family sans
14811 Insert\SpecialChar menuseparator
14812 Preface
14813 \family default
14814 .
14815  Write your preface text into that inset.
14816 \begin_inset Newline newline
14817 \end_inset
14818
14819 This is an example with some preface text:
14820 \end_layout
14821
14822 \begin_layout Standard
14823 \begin_inset VSpace bigskip
14824 \end_inset
14825
14826
14827 \end_layout
14828
14829 \begin_layout Standard
14830 \begin_inset Flex Multiple Columns
14831 status open
14832
14833 \begin_layout Plain Layout
14834 \begin_inset Argument 2
14835 status open
14836
14837 \begin_layout Plain Layout
14838 And the story continues and continues and continues and continues\SpecialChar ldots
14839
14840 \end_layout
14841
14842 \end_inset
14843
14844
14845 \size small
14846 On the evening of the crime, he returned from the club exactly at ten.
14847  His mother and sister were out spending the evening with a relation.
14848  The servant deposed that she heard him enter the front room on the second
14849  floor, generally used as his sitting-room.
14850  She had lit a fire there, and as it smoked she had opened the window.
14851  No sound was heard from the room until eleven-twenty, the hour of the return
14852  of Lady Maynooth and her daughter.
14853  Desiring to say good-night, she attempted to enter her son's room.
14854  The door was locked on the inside, and no answer could be got to their
14855  cries and knocking.
14856  Help was obtained, and the door forced.
14857  The unfortunate young man was found lying near the table.
14858  His head had been horribly mutilated by an expanding revolver bullet, but
14859  no weapon of any sort was to be found in the room.
14860 \end_layout
14861
14862 \end_inset
14863
14864
14865 \end_layout
14866
14867 \begin_layout Standard
14868 You can also use a section heading as the preface if you use a section command
14869  as \SpecialChar TeX
14870  Code.
14871  For example the command
14872 \end_layout
14873
14874 \begin_layout LyX-Code
14875
14876 \backslash
14877 subsection{subsection title}
14878 \end_layout
14879
14880 \begin_layout Standard
14881 creates a subsection.
14882  In this example the preface is a subsubsection:
14883 \end_layout
14884
14885 \begin_layout Standard
14886 \begin_inset Flex Multiple Columns
14887 status open
14888
14889 \begin_layout Plain Layout
14890 \begin_inset Argument 2
14891 status open
14892
14893 \begin_layout Plain Layout
14894 \begin_inset ERT
14895 status collapsed
14896
14897 \begin_layout Plain Layout
14898
14899
14900 \backslash
14901 subsubsection{
14902 \end_layout
14903
14904 \end_inset
14905
14906 This is a subsubsection heading as a preface
14907 \begin_inset ERT
14908 status collapsed
14909
14910 \begin_layout Plain Layout
14911
14912 }
14913 \end_layout
14914
14915 \end_inset
14916
14917
14918 \end_layout
14919
14920 \end_inset
14921
14922
14923 \size small
14924 A minute examination of the circumstances served only to make the case more
14925  complex.
14926  In the first place, no reason could be given why the young man should have
14927  fastened the door upon the inside.
14928  There was the possibility that the murderer had done this, and had afterwards
14929  escaped by the window.
14930  The drop was at least twenty feet, however, and a bed of crocuses in full
14931  bloom lay beneath.
14932  Neither the flowers nor the earth showed any sign of having been disturbed,
14933  nor were there any marks upon the narrow strip of grass which separated
14934  the house from the road.
14935  Apparently, therefore, it was the young man himself who had fastened the
14936  door.
14937  But how did he come by his death? No one could have climbed up to the window
14938  without leaving traces.
14939  Suppose a man had fired through the window, he would indeed be a remarkable
14940  shot who could with a revolver inflict so deadly a wound.
14941  Again, Park Lane is a frequented thoroughfare; there is a cab stand within
14942  a hundred yards of the house.
14943  No one had heard a shot.
14944 \end_layout
14945
14946 \end_inset
14947
14948
14949 \end_layout
14950
14951 \begin_layout Standard
14952 If there is less vertical space than 6
14953 \begin_inset space ~
14954 \end_inset
14955
14956 text lines is left on the page at the beginning of the multiple columns,
14957  a page break will be inserted before the multiple columns.
14958  Depending on the number of lines of the preface text, you might want to
14959  change this space.
14960  This is done by setting the cursor into the mulitcolumn inset behind the
14961  preface (if there is any) and using the menu 
14962 \family sans
14963 Insert\SpecialChar menuseparator
14964 Space
14965 \begin_inset space ~
14966 \end_inset
14967
14968 Before
14969 \begin_inset space ~
14970 \end_inset
14971
14972 Page
14973 \begin_inset space ~
14974 \end_inset
14975
14976 Break
14977 \family default
14978 .
14979  Insert into that inset the amount of space like e.
14980 \begin_inset space \thinspace{}
14981 \end_inset
14982
14983 g.
14984 \begin_inset space \space{}
14985 \end_inset
14986
14987
14988 \begin_inset Quotes eld
14989 \end_inset
14990
14991 5cm
14992 \begin_inset Quotes erd
14993 \end_inset
14994
14995 .
14996 \begin_inset Newline newline
14997 \end_inset
14998
14999 In this example the space is set to 7
15000 \begin_inset space ~
15001 \end_inset
15002
15003 text lines by using 
15004 \begin_inset Flex Code
15005 status collapsed
15006
15007 \begin_layout Plain Layout
15008 7
15009 \backslash
15010 baselineskip
15011 \end_layout
15012
15013 \end_inset
15014
15015  (where the command 
15016 \begin_inset Flex Code
15017 status collapsed
15018
15019 \begin_layout Plain Layout
15020
15021 \backslash
15022 baselineskip
15023 \end_layout
15024
15025 \end_inset
15026
15027  needs to be inserted as \SpecialChar TeX
15028  code):
15029 \end_layout
15030
15031 \begin_layout Standard
15032 \begin_inset Flex Multiple Columns
15033 status open
15034
15035 \begin_layout Plain Layout
15036 \begin_inset Argument 3
15037 status open
15038
15039 \begin_layout Plain Layout
15040 7
15041 \begin_inset ERT
15042 status collapsed
15043
15044 \begin_layout Plain Layout
15045
15046
15047 \backslash
15048 baselineskip
15049 \end_layout
15050
15051 \end_inset
15052
15053
15054 \end_layout
15055
15056 \end_inset
15057
15058
15059 \size small
15060 On the evening of the crime, he returned from the club exactly at ten.
15061  His mother and sister were out spending the evening with a relation.
15062  The servant deposed that she heard him enter the front room on the second
15063  floor, generally used as his sitting-room.
15064  She had lit a fire there, and as it smoked she had opened the window.
15065  No sound was heard from the room until eleven-twenty, the hour of the return
15066  of Lady Maynooth and her daughter.
15067  Desiring to say good-night, she attempted to enter her son's room.
15068  The door was locked on the inside, and no answer could be got to their
15069  cries and knocking.
15070  Help was obtained, and the door forced.
15071  The unfortunate young man was found lying near the table.
15072  His head had been horribly mutilated by an expanding revolver bullet, but
15073  no weapon of any sort was to be found in the room.
15074 \end_layout
15075
15076 \end_inset
15077
15078
15079 \end_layout
15080
15081 \begin_layout Subsubsection
15082 Surrounding Space
15083 \end_layout
15084
15085 \begin_layout Standard
15086 The amount of space before and after multiple columns can be changed by
15087  changing the length 
15088 \begin_inset Flex Code
15089 status collapsed
15090
15091 \begin_layout Plain Layout
15092
15093 \backslash
15094 multicolsep
15095 \end_layout
15096
15097 \end_inset
15098
15099 .
15100  For example the command
15101 \end_layout
15102
15103 \begin_layout LyX-Code
15104
15105 \backslash
15106 setlength{
15107 \backslash
15108 multicolsep}{3cm}
15109 \end_layout
15110
15111 \begin_layout Standard
15112 in \SpecialChar TeX
15113  Code changes its value to 3
15114 \begin_inset space \thinspace{}
15115 \end_inset
15116
15117 cm.
15118  The change must be made before the multiple columns' start.
15119  The predefined value is 13
15120 \begin_inset space \thinspace{}
15121 \end_inset
15122
15123 pt.
15124 \end_layout
15125
15126 \begin_layout Standard
15127 For this example 
15128 \begin_inset Flex Code
15129 status collapsed
15130
15131 \begin_layout Plain Layout
15132
15133 \backslash
15134 multicolsep
15135 \end_layout
15136
15137 \end_inset
15138
15139  was set to 2.5
15140 \begin_inset space \thinspace{}
15141 \end_inset
15142
15143 cm:
15144 \end_layout
15145
15146 \begin_layout Standard
15147 \begin_inset ERT
15148 status open
15149
15150 \begin_layout Plain Layout
15151
15152
15153 \backslash
15154 setlength{
15155 \backslash
15156 multicolsep}{2.5cm}
15157 \end_layout
15158
15159 \end_inset
15160
15161
15162 \end_layout
15163
15164 \begin_layout Standard
15165 \begin_inset Flex Multiple Columns
15166 status open
15167
15168 \begin_layout Plain Layout
15169
15170 \size small
15171 All day I turned these facts over in my mind, endeavouring to hit upon some
15172  theory which could reconcile them all, and to find that line of least resistanc
15173 e which my poor friend had declared to be the starting-point of every investigat
15174 ion.
15175  I confess that I made little progress.
15176  In the evening I strolled across the Park, and found myself about six o'clock
15177  at the Oxford Street end of Park Lane.
15178  A group of loafers upon the pavements, all staring up at a particular window,
15179  directed me to the house which I had come to see.
15180  A tall, thin man with coloured glasses, whom I strongly suspected of being
15181  a plain-clothes detective, was pointing out some theory of his own, while
15182  the others crowded round to listen to what he said.
15183  I got as near him as I could, but his observations seemed to me to be absurd,
15184  so I withdrew again in some disgust.
15185  As I did so I struck against an elderly, deformed man, who had been behind
15186  me, and I knocked down several books which he was carrying.
15187 \end_layout
15188
15189 \end_inset
15190
15191
15192 \end_layout
15193
15194 \begin_layout Standard
15195 \begin_inset Note Greyedout
15196 status open
15197
15198 \begin_layout Plain Layout
15199
15200 \series bold
15201 Note:
15202 \series default
15203  The values you set with 
15204 \begin_inset Flex Code
15205 status collapsed
15206
15207 \begin_layout Plain Layout
15208
15209 \backslash
15210 setlength
15211 \end_layout
15212
15213 \end_inset
15214
15215  will be used for all following multiple columns until you change them again.
15216 \end_layout
15217
15218 \end_inset
15219
15220
15221 \end_layout
15222
15223 \begin_layout Standard
15224 \begin_inset ERT
15225 status collapsed
15226
15227 \begin_layout Plain Layout
15228
15229
15230 \backslash
15231 setlength{
15232 \backslash
15233 multicolsep}{13pt}
15234 \end_layout
15235
15236 \end_inset
15237
15238
15239 \begin_inset Note Note
15240 status collapsed
15241
15242 \begin_layout Plain Layout
15243 go back to the default
15244 \end_layout
15245
15246 \end_inset
15247
15248
15249 \end_layout
15250
15251 \begin_layout Standard
15252 \begin_inset Newpage newpage
15253 \end_inset
15254
15255
15256 \end_layout
15257
15258 \begin_layout Subsubsection
15259 Column Breaks
15260 \end_layout
15261
15262 \begin_layout Standard
15263 A column break can be forced by inserting the command 
15264 \begin_inset Flex Code
15265 status collapsed
15266
15267 \begin_layout Plain Layout
15268
15269 \backslash
15270 columnbreak{}
15271 \end_layout
15272
15273 \end_inset
15274
15275  as \SpecialChar TeX
15276  Code to that position in the text where the column should be broken.
15277  Note that this leads in most cases to whitespace in the text.
15278 \begin_inset Newline newline
15279 \end_inset
15280
15281 Here is an example:
15282 \end_layout
15283
15284 \begin_layout Standard
15285 \begin_inset Flex Multiple Columns
15286 status open
15287
15288 \begin_layout Plain Layout
15289
15290 \size small
15291 \begin_inset Quotes eld
15292 \end_inset
15293
15294 You're surprised to see me, sir,
15295 \begin_inset Quotes erd
15296 \end_inset
15297
15298  said he, in a strange, croaking voice.
15299 \end_layout
15300
15301 \begin_layout Plain Layout
15302
15303 \size small
15304 I acknowledged that I was.
15305 \end_layout
15306
15307 \begin_layout Plain Layout
15308
15309 \size small
15310 \begin_inset Quotes eld
15311 \end_inset
15312
15313 Well, I've a conscience, sir, and when I chanced to see you go into this
15314  house, as I came hobbling after you, I thought to myself, I'll just step
15315  in and see that kind gentleman, and tell him that if I was a bit gruff
15316  in my manner there was not any harm meant, and that I am much obliged to
15317  him for picking up my books.
15318 \begin_inset Quotes erd
15319 \end_inset
15320
15321
15322 \end_layout
15323
15324 \begin_layout Plain Layout
15325
15326 \size small
15327 \begin_inset Quotes eld
15328 \end_inset
15329
15330 You make too much of a trifle,
15331 \begin_inset Quotes erd
15332 \end_inset
15333
15334  said I.
15335  
15336 \begin_inset Quotes eld
15337 \end_inset
15338
15339 May I ask how you knew who I was?
15340 \begin_inset Quotes erd
15341 \end_inset
15342
15343  AFTER THIS SENTENCE THE COLUMN BREAK IS FORCED.
15344 \begin_inset ERT
15345 status collapsed
15346
15347 \begin_layout Plain Layout
15348
15349
15350 \backslash
15351 columnbreak{}
15352 \end_layout
15353
15354 \end_inset
15355
15356
15357 \end_layout
15358
15359 \begin_layout Plain Layout
15360
15361 \size small
15362 \begin_inset Quotes eld
15363 \end_inset
15364
15365 Well, sir, if it isn't too great a liberty, I am a neighbour of yours, for
15366  you'll find my little bookshop at the corner of Church Street, and very
15367  happy to see you, I am sure.
15368  Maybe you collect yourself, sir.
15369  Here's 
15370 \noun on
15371 British
15372 \begin_inset space ~
15373 \end_inset
15374
15375 Birds
15376 \noun default
15377 , and 
15378 \noun on
15379 Catullus
15380 \noun default
15381 , and 
15382 \noun on
15383 The Holy War
15384 \noun default
15385
15386 \begin_inset space ~
15387 \end_inset
15388
15389 – a bargain, every one of them.
15390  With five volumes you could just fill that gap on that second shelf.
15391  It looks untidy, does it not, sir?
15392 \begin_inset Quotes erd
15393 \end_inset
15394
15395
15396 \end_layout
15397
15398 \end_inset
15399
15400
15401 \end_layout
15402
15403 \begin_layout Subsubsection
15404 Column Separation
15405 \end_layout
15406
15407 \begin_layout Standard
15408 The width of the columns is automatically calculated, but you can modify
15409  the space between the columns.
15410  This is done by changing the length 
15411 \begin_inset Flex Code
15412 status collapsed
15413
15414 \begin_layout Plain Layout
15415
15416 \backslash
15417 columnsep
15418 \end_layout
15419
15420 \end_inset
15421
15422 .
15423  Its predefined value is 10
15424 \begin_inset space \thinspace{}
15425 \end_inset
15426
15427 pt.
15428  Here is an example where 
15429 \begin_inset Flex Code
15430 status collapsed
15431
15432 \begin_layout Plain Layout
15433
15434 \backslash
15435 columnsep
15436 \end_layout
15437
15438 \end_inset
15439
15440  is set to 3
15441 \begin_inset space \thinspace{}
15442 \end_inset
15443
15444 cm:
15445 \end_layout
15446
15447 \begin_layout Standard
15448 \begin_inset ERT
15449 status open
15450
15451 \begin_layout Plain Layout
15452
15453
15454 \backslash
15455 setlength{
15456 \backslash
15457 columnsep}{3cm}
15458 \end_layout
15459
15460 \end_inset
15461
15462
15463 \end_layout
15464
15465 \begin_layout Standard
15466 \begin_inset Flex Multiple Columns
15467 status open
15468
15469 \begin_layout Plain Layout
15470
15471 \size small
15472 My observations of No.
15473 \begin_inset space \space{}
15474 \end_inset
15475
15476 427 Park Lane did little to clear up the problem in which I was interested.
15477  The house was separated from the street by a low wall and railing, the
15478  whole not more than five feet high.
15479  It was perfectly easy, therefore, for anyone to get into the garden, but
15480  the window was entirely inaccessible, since there was no water pipe or
15481  anything which could help the most active man to climb it.
15482  More puzzled than ever, I retraced my steps to Kensington.
15483  I had not been in my study five minutes when the maid entered to say that
15484  a person desired to see me.
15485  To my astonishment it was none other than my strange old book collector,
15486  his sharp, wizened face peering out from a frame of white hair, and his
15487  precious volumes, a dozen of them at least, wedged under his right arm.
15488 \end_layout
15489
15490 \end_inset
15491
15492
15493 \end_layout
15494
15495 \begin_layout Standard
15496 \begin_inset ERT
15497 status collapsed
15498
15499 \begin_layout Plain Layout
15500
15501
15502 \backslash
15503 setlength{
15504 \backslash
15505 columnsep}{10pt}
15506 \end_layout
15507
15508 \end_inset
15509
15510
15511 \begin_inset Note Note
15512 status collapsed
15513
15514 \begin_layout Plain Layout
15515 go back to the default
15516 \end_layout
15517
15518 \end_inset
15519
15520
15521 \end_layout
15522
15523 \begin_layout Subsubsection
15524 Vertical Lines
15525 \end_layout
15526
15527 \begin_layout Standard
15528 Between the columns a rule with a width of the length 
15529 \begin_inset Flex Code
15530 status collapsed
15531
15532 \begin_layout Plain Layout
15533
15534 \backslash
15535 columnseprule
15536 \end_layout
15537
15538 \end_inset
15539
15540  is placed.
15541  If this rule width is set to 0
15542 \begin_inset space \thinspace{}
15543 \end_inset
15544
15545 pt (this is the default), the rule is suppressed.
15546  In the following example the rule is 2
15547 \begin_inset space \thinspace{}
15548 \end_inset
15549
15550 pt wide:
15551 \end_layout
15552
15553 \begin_layout Standard
15554 \begin_inset ERT
15555 status open
15556
15557 \begin_layout Plain Layout
15558
15559
15560 \backslash
15561 setlength{
15562 \backslash
15563 columnseprule}{2pt}
15564 \end_layout
15565
15566 \end_inset
15567
15568
15569 \end_layout
15570
15571 \begin_layout Standard
15572 \begin_inset Flex Multiple Columns
15573 status open
15574
15575 \begin_layout Plain Layout
15576
15577 \size small
15578 \begin_inset Quotes eld
15579 \end_inset
15580
15581 You're surprised to see me, sir,
15582 \begin_inset Quotes erd
15583 \end_inset
15584
15585  said he, in a strange, croaking voice.
15586 \end_layout
15587
15588 \begin_layout Plain Layout
15589
15590 \size small
15591 I acknowledged that I was.
15592 \end_layout
15593
15594 \begin_layout Plain Layout
15595
15596 \size small
15597 \begin_inset Quotes eld
15598 \end_inset
15599
15600 Well, I've a conscience, sir, and when I chanced to see you go into this
15601  house, as I came hobbling after you, I thought to myself, I'll just step
15602  in and see that kind gentleman, and tell him that if I was a bit gruff
15603  in my manner there was not any harm meant, and that I am much obliged to
15604  him for picking up my books.
15605 \begin_inset Quotes erd
15606 \end_inset
15607
15608
15609 \end_layout
15610
15611 \begin_layout Plain Layout
15612
15613 \size small
15614 \begin_inset Quotes eld
15615 \end_inset
15616
15617 You make too much of a trifle,
15618 \begin_inset Quotes erd
15619 \end_inset
15620
15621  said I.
15622  
15623 \begin_inset Quotes eld
15624 \end_inset
15625
15626 May I ask how you knew who I was?
15627 \begin_inset Quotes erd
15628 \end_inset
15629
15630
15631 \end_layout
15632
15633 \begin_layout Plain Layout
15634
15635 \size small
15636 \begin_inset Quotes eld
15637 \end_inset
15638
15639 Well, sir, if it isn't too great a liberty, I am a neighbour of yours, for
15640  you'll find my little bookshop at the corner of Church Street, and very
15641  happy to see you, I am sure.
15642  Maybe you collect yourself, sir.
15643  Here's 
15644 \noun on
15645 British
15646 \begin_inset space ~
15647 \end_inset
15648
15649 Birds
15650 \noun default
15651 , and 
15652 \noun on
15653 Catullus
15654 \noun default
15655 , and 
15656 \noun on
15657 The Holy War
15658 \noun default
15659
15660 \begin_inset space ~
15661 \end_inset
15662
15663 – a bargain, every one of them.
15664  With five volumes you could just fill that gap on that second shelf.
15665  It looks untidy, does it not, sir?
15666 \begin_inset Quotes erd
15667 \end_inset
15668
15669
15670 \end_layout
15671
15672 \end_inset
15673
15674
15675 \end_layout
15676
15677 \begin_layout Standard
15678 \begin_inset VSpace defskip
15679 \end_inset
15680
15681
15682 \end_layout
15683
15684 \begin_layout Standard
15685 The rule can be colored by redefining the command 
15686 \begin_inset Flex Code
15687 status collapsed
15688
15689 \begin_layout Plain Layout
15690
15691 \backslash
15692 columnseprulecolor
15693 \end_layout
15694
15695 \end_inset
15696
15697 .
15698  This is done by inserting the command
15699 \end_layout
15700
15701 \begin_layout LyX-Code
15702
15703 \backslash
15704 renewcommand{
15705 \backslash
15706 columnseprulecolor}{
15707 \backslash
15708 color{red}}
15709 \end_layout
15710
15711 \begin_layout Standard
15712 as \SpecialChar TeX
15713  Code before the multicolumn inset.
15714  Replace 
15715 \begin_inset Flex Code
15716 status collapsed
15717
15718 \begin_layout Plain Layout
15719 red
15720 \end_layout
15721
15722 \end_inset
15723
15724  in this command by a color of your choice.
15725  You can use all pre- and self-defined colors.
15726  See the 
15727 \emph on
15728 EmbeddedObjects
15729 \emph default
15730  manual, section 
15731 \emph on
15732 Colored
15733 \begin_inset space ~
15734 \end_inset
15735
15736 Tables
15737 \emph default
15738  for more information about pre- and self-defined colors.
15739  To go back to the default color insert the command
15740 \end_layout
15741
15742 \begin_layout LyX-Code
15743
15744 \backslash
15745 renewcommand{
15746 \backslash
15747 columnseprulecolor}{
15748 \backslash
15749 normalcolor}
15750 \end_layout
15751
15752 \begin_layout Standard
15753 Here is the example with a cyan rule and 1
15754 \begin_inset space \thinspace{}
15755 \end_inset
15756
15757 cm column separation:
15758 \end_layout
15759
15760 \begin_layout Standard
15761 \begin_inset ERT
15762 status open
15763
15764 \begin_layout Plain Layout
15765
15766
15767 \backslash
15768 setlength{
15769 \backslash
15770 columnsep}{1cm}
15771 \end_layout
15772
15773 \begin_layout Plain Layout
15774
15775
15776 \backslash
15777 renewcommand{
15778 \backslash
15779 columnseprulecolor}{
15780 \backslash
15781 color{cyan}}
15782 \end_layout
15783
15784 \end_inset
15785
15786
15787 \end_layout
15788
15789 \begin_layout Standard
15790 \begin_inset Flex Multiple Columns
15791 status open
15792
15793 \begin_layout Plain Layout
15794
15795 \size small
15796 \begin_inset Quotes eld
15797 \end_inset
15798
15799 You're surprised to see me, sir,
15800 \begin_inset Quotes erd
15801 \end_inset
15802
15803  said he, in a strange, croaking voice.
15804 \end_layout
15805
15806 \begin_layout Plain Layout
15807
15808 \size small
15809 I acknowledged that I was.
15810 \end_layout
15811
15812 \begin_layout Plain Layout
15813
15814 \size small
15815 \begin_inset Quotes eld
15816 \end_inset
15817
15818 Well, I've a conscience, sir, and when I chanced to see you go into this
15819  house, as I came hobbling after you, I thought to myself, I'll just step
15820  in and see that kind gentleman, and tell him that if I was a bit gruff
15821  in my manner there was not any harm meant, and that I am much obliged to
15822  him for picking up my books.
15823 \begin_inset Quotes erd
15824 \end_inset
15825
15826
15827 \end_layout
15828
15829 \begin_layout Plain Layout
15830
15831 \size small
15832 \begin_inset Quotes eld
15833 \end_inset
15834
15835 You make too much of a trifle,
15836 \begin_inset Quotes erd
15837 \end_inset
15838
15839  said I.
15840  
15841 \begin_inset Quotes eld
15842 \end_inset
15843
15844 May I ask how you knew who I was?
15845 \begin_inset Quotes erd
15846 \end_inset
15847
15848
15849 \end_layout
15850
15851 \begin_layout Plain Layout
15852
15853 \size small
15854 \begin_inset Quotes eld
15855 \end_inset
15856
15857 Well, sir, if it isn't too great a liberty, I am a neighbour of yours, for
15858  you'll find my little bookshop at the corner of Church Street, and very
15859  happy to see you, I am sure.
15860  Maybe you collect yourself, sir.
15861  Here's 
15862 \noun on
15863 British
15864 \begin_inset space ~
15865 \end_inset
15866
15867 Birds
15868 \noun default
15869 , and 
15870 \noun on
15871 Catullus
15872 \noun default
15873 , and 
15874 \noun on
15875 The Holy War
15876 \noun default
15877
15878 \begin_inset space ~
15879 \end_inset
15880
15881 – a bargain, every one of them.
15882  With five volumes you could just fill that gap on that second shelf.
15883  It looks untidy, does it not, sir?
15884 \begin_inset Quotes erd
15885 \end_inset
15886
15887
15888 \end_layout
15889
15890 \end_inset
15891
15892
15893 \end_layout
15894
15895 \begin_layout Standard
15896 \begin_inset ERT
15897 status collapsed
15898
15899 \begin_layout Plain Layout
15900
15901
15902 \backslash
15903 setlength{
15904 \backslash
15905 columnseprule}{0pt}
15906 \end_layout
15907
15908 \begin_layout Plain Layout
15909
15910
15911 \backslash
15912 renewcommand{
15913 \backslash
15914 columnseprulecolor}{
15915 \backslash
15916 normalcolor}
15917 \end_layout
15918
15919 \end_inset
15920
15921
15922 \begin_inset Note Note
15923 status collapsed
15924
15925 \begin_layout Plain Layout
15926 go back to the default
15927 \end_layout
15928
15929 \end_inset
15930
15931
15932 \end_layout
15933
15934 \begin_layout Section
15935
15936 \change_inserted 564990737 1671270380
15937 Paragraph Styles
15938 \end_layout
15939
15940 \begin_layout Subsection
15941
15942 \change_inserted 564990737 1671270398
15943 Custom
15944 \change_deleted 564990737 1671270396
15945 Non-standard
15946 \change_unchanged
15947  Paragraph Shapes
15948 \end_layout
15949
15950 \begin_layout Standard
15951 \noindent
15952 \SpecialChar LaTeX
15953  as well as any other text processor uses by default rectangular paragraphs.
15954  For special cases like for example posters, invitation cards or poems you
15955  can modify the paragraph shape to one of your choice.
15956  This can be done by using the \SpecialChar LaTeX
15957 -package 
15958 \begin_inset Flex Code
15959 status collapsed
15960
15961 \begin_layout Plain Layout
15962 shapepar
15963 \end_layout
15964
15965 \end_inset
15966
15967  which is loaded by using in the document settings the module 
15968 \family sans
15969 Custom paragraph shapes
15970 \family default
15971 .
15972 \end_layout
15973
15974 \begin_layout Subsubsection
15975 Predefined shapes
15976 \end_layout
15977
15978 \begin_layout Standard
15979
15980 \series bold
15981 shapepar
15982 \series default
15983  provides the following shapes:
15984 \end_layout
15985
15986 \begin_layout Standard
15987 \begin_inset Tabular
15988 <lyxtabular version="3" rows="13" columns="3">
15989 <features booktabs="true" islongtable="true" longtabularalignment="center">
15990 <column alignment="left" valignment="middle" width="16col%">
15991 <column alignment="left" valignment="middle" width="40col%">
15992 <column alignment="left" valignment="middle" width="35col%">
15993 <row endhead="true">
15994 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
15995 \begin_inset Text
15996
15997 \begin_layout Plain Layout
15998
15999 \series bold
16000 \size small
16001 Name
16002 \end_layout
16003
16004 \end_inset
16005 </cell>
16006 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
16007 \begin_inset Text
16008
16009 \begin_layout Plain Layout
16010
16011 \series bold
16012 \size small
16013 Description
16014 \end_layout
16015
16016 \end_inset
16017 </cell>
16018 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
16019 \begin_inset Text
16020
16021 \begin_layout Plain Layout
16022
16023 \series bold
16024 \size small
16025 Annotation
16026 \end_layout
16027
16028 \end_inset
16029 </cell>
16030 </row>
16031 <row interlinespace="default">
16032 <cell alignment="left" valignment="top" usebox="none">
16033 \begin_inset Text
16034
16035 \begin_layout Plain Layout
16036
16037 \size small
16038 CDlabel
16039 \end_layout
16040
16041 \end_inset
16042 </cell>
16043 <cell alignment="left" valignment="top" usebox="none">
16044 \begin_inset Text
16045
16046 \begin_layout Plain Layout
16047
16048 \size small
16049 Circle with circular hole (in the size of a CD/DVD)
16050 \end_layout
16051
16052 \end_inset
16053 </cell>
16054 <cell alignment="left" valignment="top" usebox="none">
16055 \begin_inset Text
16056
16057 \begin_layout Plain Layout
16058
16059 \size small
16060 Cannot be scaled, take care there is not too much text
16061 \end_layout
16062
16063 \end_inset
16064 </cell>
16065 </row>
16066 <row interlinespace="default">
16067 <cell alignment="left" valignment="top" usebox="none">
16068 \begin_inset Text
16069
16070 \begin_layout Plain Layout
16071
16072 \size small
16073 Circle
16074 \end_layout
16075
16076 \end_inset
16077 </cell>
16078 <cell alignment="left" valignment="top" usebox="none">
16079 \begin_inset Text
16080
16081 \begin_layout Plain Layout
16082
16083 \size small
16084 Circle
16085 \end_layout
16086
16087 \end_inset
16088 </cell>
16089 <cell alignment="left" valignment="top" usebox="none">
16090 \begin_inset Text
16091
16092 \begin_layout Plain Layout
16093
16094 \size small
16095 Fragile, calculation might fail
16096 \end_layout
16097
16098 \end_inset
16099 </cell>
16100 </row>
16101 <row interlinespace="default">
16102 <cell alignment="left" valignment="top" usebox="none">
16103 \begin_inset Text
16104
16105 \begin_layout Plain Layout
16106
16107 \size small
16108 Diamond
16109 \end_layout
16110
16111 \end_inset
16112 </cell>
16113 <cell alignment="left" valignment="top" usebox="none">
16114 \begin_inset Text
16115
16116 \begin_layout Plain Layout
16117
16118 \size small
16119 Rhomboid (symbolizing a 
16120 \begin_inset Quotes eld
16121 \end_inset
16122
16123 diamond
16124 \begin_inset Quotes erd
16125 \end_inset
16126
16127 )
16128 \end_layout
16129
16130 \end_inset
16131 </cell>
16132 <cell alignment="left" valignment="top" usebox="none">
16133 \begin_inset Text
16134
16135 \begin_layout Plain Layout
16136
16137 \size small
16138 -
16139 \end_layout
16140
16141 \end_inset
16142 </cell>
16143 </row>
16144 <row interlinespace="default">
16145 <cell alignment="left" valignment="top" usebox="none">
16146 \begin_inset Text
16147
16148 \begin_layout Plain Layout
16149
16150 \size small
16151 Heart
16152 \end_layout
16153
16154 \end_inset
16155 </cell>
16156 <cell alignment="left" valignment="top" usebox="none">
16157 \begin_inset Text
16158
16159 \begin_layout Plain Layout
16160
16161 \size small
16162 Heart-like shape
16163 \end_layout
16164
16165 \end_inset
16166 </cell>
16167 <cell alignment="left" valignment="top" usebox="none">
16168 \begin_inset Text
16169
16170 \begin_layout Plain Layout
16171
16172 \size small
16173 -
16174 \end_layout
16175
16176 \end_inset
16177 </cell>
16178 </row>
16179 <row interlinespace="default">
16180 <cell alignment="left" valignment="top" usebox="none">
16181 \begin_inset Text
16182
16183 \begin_layout Plain Layout
16184
16185 \size small
16186 Hexagon
16187 \end_layout
16188
16189 \end_inset
16190 </cell>
16191 <cell alignment="left" valignment="top" usebox="none">
16192 \begin_inset Text
16193
16194 \begin_layout Plain Layout
16195
16196 \size small
16197 Hexagon
16198 \end_layout
16199
16200 \end_inset
16201 </cell>
16202 <cell alignment="left" valignment="top" usebox="none">
16203 \begin_inset Text
16204
16205 \begin_layout Plain Layout
16206
16207 \size small
16208 -
16209 \end_layout
16210
16211 \end_inset
16212 </cell>
16213 </row>
16214 <row interlinespace="default">
16215 <cell alignment="left" valignment="top" usebox="none">
16216 \begin_inset Text
16217
16218 \begin_layout Plain Layout
16219
16220 \size small
16221 Nut
16222 \end_layout
16223
16224 \end_inset
16225 </cell>
16226 <cell alignment="left" valignment="top" usebox="none">
16227 \begin_inset Text
16228
16229 \begin_layout Plain Layout
16230
16231 \size small
16232 Nut for bolt (hexagon with circular hole)
16233 \end_layout
16234
16235 \end_inset
16236 </cell>
16237 <cell alignment="left" valignment="top" usebox="none">
16238 \begin_inset Text
16239
16240 \begin_layout Plain Layout
16241
16242 \size small
16243 -
16244 \end_layout
16245
16246 \end_inset
16247 </cell>
16248 </row>
16249 <row interlinespace="default">
16250 <cell alignment="left" valignment="top" usebox="none">
16251 \begin_inset Text
16252
16253 \begin_layout Plain Layout
16254
16255 \size small
16256 Square
16257 \end_layout
16258
16259 \end_inset
16260 </cell>
16261 <cell alignment="left" valignment="top" usebox="none">
16262 \begin_inset Text
16263
16264 \begin_layout Plain Layout
16265
16266 \size small
16267 Square
16268 \end_layout
16269
16270 \end_inset
16271 </cell>
16272 <cell alignment="left" valignment="top" usebox="none">
16273 \begin_inset Text
16274
16275 \begin_layout Plain Layout
16276
16277 \size small
16278 -
16279 \end_layout
16280
16281 \end_inset
16282 </cell>
16283 </row>
16284 <row interlinespace="default">
16285 <cell alignment="left" valignment="top" usebox="none">
16286 \begin_inset Text
16287
16288 \begin_layout Plain Layout
16289
16290 \size small
16291 Star
16292 \end_layout
16293
16294 \end_inset
16295 </cell>
16296 <cell alignment="left" valignment="top" usebox="none">
16297 \begin_inset Text
16298
16299 \begin_layout Plain Layout
16300
16301 \size small
16302 Five-point star
16303 \end_layout
16304
16305 \end_inset
16306 </cell>
16307 <cell alignment="left" valignment="top" usebox="none">
16308 \begin_inset Text
16309
16310 \begin_layout Plain Layout
16311
16312 \size small
16313 -
16314 \end_layout
16315
16316 \end_inset
16317 </cell>
16318 </row>
16319 <row interlinespace="default">
16320 <cell alignment="left" valignment="top" usebox="none">
16321 \begin_inset Text
16322
16323 \begin_layout Plain Layout
16324
16325 \size small
16326 Candle
16327 \end_layout
16328
16329 \end_inset
16330 </cell>
16331 <cell alignment="left" valignment="top" usebox="none">
16332 \begin_inset Text
16333
16334 \begin_layout Plain Layout
16335
16336 \size small
16337 Burning candle
16338 \end_layout
16339
16340 \end_inset
16341 </cell>
16342 <cell alignment="left" valignment="top" usebox="none">
16343 \begin_inset Text
16344
16345 \begin_layout Plain Layout
16346
16347 \size small
16348 -
16349 \end_layout
16350
16351 \end_inset
16352 </cell>
16353 </row>
16354 <row interlinespace="default">
16355 <cell alignment="left" valignment="top" usebox="none">
16356 \begin_inset Text
16357
16358 \begin_layout Plain Layout
16359
16360 \size small
16361 Drop down/up
16362 \end_layout
16363
16364 \end_inset
16365 </cell>
16366 <cell alignment="left" valignment="top" usebox="none">
16367 \begin_inset Text
16368
16369 \begin_layout Plain Layout
16370
16371 \size small
16372 Normal/reversed rain drop
16373 \end_layout
16374
16375 \end_inset
16376 </cell>
16377 <cell alignment="left" valignment="top" usebox="none">
16378 \begin_inset Text
16379
16380 \begin_layout Plain Layout
16381
16382 \size small
16383 Fragile, calculation might fail
16384 \end_layout
16385
16386 \end_inset
16387 </cell>
16388 </row>
16389 <row interlinespace="default">
16390 <cell alignment="left" valignment="top" usebox="none">
16391 \begin_inset Text
16392
16393 \begin_layout Plain Layout
16394
16395 \size small
16396 \SpecialChar TeX
16397
16398 \end_layout
16399
16400 \end_inset
16401 </cell>
16402 <cell alignment="left" valignment="top" usebox="none">
16403 \begin_inset Text
16404
16405 \begin_layout Plain Layout
16406
16407 \size small
16408 The \SpecialChar TeX
16409  logo
16410 \end_layout
16411
16412 \end_inset
16413 </cell>
16414 <cell alignment="left" valignment="top" usebox="none">
16415 \begin_inset Text
16416
16417 \begin_layout Plain Layout
16418
16419 \size small
16420 -
16421 \end_layout
16422
16423 \end_inset
16424 </cell>
16425 </row>
16426 <row interlinespace="default">
16427 <cell alignment="left" valignment="top" bottomline="true" usebox="none">
16428 \begin_inset Text
16429
16430 \begin_layout Plain Layout
16431
16432 \size small
16433 Triangle up/down/
16434 \begin_inset Newline newline
16435 \end_inset
16436
16437 left/right
16438 \end_layout
16439
16440 \end_inset
16441 </cell>
16442 <cell alignment="left" valignment="top" bottomline="true" usebox="none">
16443 \begin_inset Text
16444
16445 \begin_layout Plain Layout
16446
16447 \size small
16448 Triangles in different orientations
16449 \end_layout
16450
16451 \end_inset
16452 </cell>
16453 <cell alignment="left" valignment="top" bottomline="true" usebox="none">
16454 \begin_inset Text
16455
16456 \begin_layout Plain Layout
16457
16458 \size small
16459 -
16460 \end_layout
16461
16462 \end_inset
16463 </cell>
16464 </row>
16465 </lyxtabular>
16466
16467 \end_inset
16468
16469
16470 \end_layout
16471
16472 \begin_layout Standard
16473 To use a shape for your paragraph, simply select it in \SpecialChar LyX
16474 's pull-down box
16475  for environments in the toolbar.
16476 \end_layout
16477
16478 \begin_layout Standard
16479 \begin_inset Newpage newpage
16480 \end_inset
16481
16482
16483 \end_layout
16484
16485 \begin_layout Standard
16486 Here is an example paragraph in the shape of a nut:
16487 \end_layout
16488
16489 \begin_layout Standard
16490 \begin_inset VSpace bigskip
16491 \end_inset
16492
16493
16494 \end_layout
16495
16496 \begin_layout Nut
16497
16498 \lang latin
16499 Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
16500  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
16501  voluptua.
16502  At vero eos et accusam et justo duo dolores et ea rebum.
16503  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
16504  sit amet.
16505  Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
16506  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
16507  voluptua.
16508 \end_layout
16509
16510 \begin_layout Standard
16511 \begin_inset VSpace bigskip
16512 \end_inset
16513
16514
16515 \end_layout
16516
16517 \begin_layout Standard
16518 \begin_inset Note Greyedout
16519 status open
16520
16521 \begin_layout Plain Layout
16522
16523 \series bold
16524 Note
16525 \series default
16526
16527 \family sans
16528 shapepar
16529 \family default
16530  paragraphs cannot run over a page break.
16531 \end_layout
16532
16533 \end_inset
16534
16535
16536 \end_layout
16537
16538 \begin_layout Standard
16539 \begin_inset VSpace bigskip
16540 \end_inset
16541
16542
16543 \end_layout
16544
16545 \begin_layout Standard
16546 The package 
16547 \begin_inset Flex Code
16548 status collapsed
16549
16550 \begin_layout Plain Layout
16551 shapepar
16552 \end_layout
16553
16554 \end_inset
16555
16556  takes care that the shape will always be preserved, no matter how much
16557  text is in the paragraph.
16558  Therefore the paragraph size changes with the amount of contained text.
16559  This can lead to paragraph sizes exceeding the page margins.
16560  To demonstrate the size scaling, here is the same example paragraph but
16561  with twice as much text:
16562 \end_layout
16563
16564 \begin_layout Standard
16565 \begin_inset Newpage newpage
16566 \end_inset
16567
16568
16569 \end_layout
16570
16571 \begin_layout Nut
16572
16573 \lang latin
16574 Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
16575  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
16576  voluptua.
16577  At vero eos et accusam et justo duo dolores et ea rebum.
16578  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
16579  sit amet.
16580  Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
16581  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
16582  voluptua.
16583  Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
16584  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
16585  voluptua.
16586  At vero eos et accusam et justo duo dolores et ea rebum.
16587  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
16588  sit amet.
16589  Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
16590  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
16591  voluptua.
16592 \end_layout
16593
16594 \begin_layout Standard
16595 \begin_inset VSpace bigskip
16596 \end_inset
16597
16598
16599 \end_layout
16600
16601 \begin_layout Standard
16602 An exception is the shape 
16603 \family sans
16604 CDlabel
16605 \family default
16606 .
16607  It cannot be scaled because it must fit the size of a CD/DVD.
16608  Therefore the amount of text that fits into the shape is limited.
16609 \begin_inset Newline newline
16610 \end_inset
16611
16612 The 
16613 \family sans
16614 drop
16615 \family default
16616  shapes and the 
16617 \family sans
16618 circle
16619 \family default
16620  shape are fragile, meaning that the calculation of their size can fail,
16621  depending on the amount of text.
16622  You will then get the \SpecialChar LaTeX
16623  error 
16624 \begin_inset Quotes eld
16625 \end_inset
16626
16627 Arithmetic overflow
16628 \begin_inset Quotes erd
16629 \end_inset
16630
16631 .
16632  In this case one can try to remove or add some text; if nothing works one
16633  has to use another shape.
16634 \end_layout
16635
16636 \begin_layout Standard
16637 \begin_inset VSpace bigskip
16638 \end_inset
16639
16640
16641 \end_layout
16642
16643 \begin_layout Standard
16644 For shapes with tips you will maybe see that \SpecialChar LaTeX
16645 's hyphenation routine fails
16646  for text in the tips.
16647  Therefore it is often necessary to add hyphenation points 
16648 \family sans
16649 (
16650 \begin_inset Info
16651 type  "shortcut"
16652 arg   "specialchar-insert hyphenation"
16653 \end_inset
16654
16655
16656 \family default
16657 ) to the corresponding text parts.
16658 \end_layout
16659
16660 \begin_layout Standard
16661 \begin_inset VSpace bigskip
16662 \end_inset
16663
16664
16665 \end_layout
16666
16667 \begin_layout Standard
16668 Shapepar paragraphs are either always centered or placed on the page so
16669  that their left border touches the left page margin.
16670  You can therefore not use the paragraph dialog to align such paragraphs.
16671  A solution is to put the paragraph into a minipage or parbox and align
16672  the box.
16673  The problem is hereby to find the right width for the box.
16674  Because if it is too wide and you center the box, the paragraph is not
16675  centered too because it sticks at the left side of the box.
16676  So you might have to play a bit with the width until it fits.
16677  Here are two heart-shaped paragraphs, the first one is not aligned, the
16678  second one is right-aligned:
16679 \end_layout
16680
16681 \begin_layout Standard
16682 \begin_inset Newpage newpage
16683 \end_inset
16684
16685
16686 \end_layout
16687
16688 \begin_layout Heart
16689 \noindent
16690
16691 \lang latin
16692 Lo\SpecialChar softhyphen
16693 rem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
16694  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
16695  voluptua.
16696  At vero eos et accusam et justo duo dolores et ea rebum.
16697  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
16698  sit amet.
16699 \end_layout
16700
16701 \begin_layout Standard
16702 \begin_inset VSpace bigskip
16703 \end_inset
16704
16705
16706 \end_layout
16707
16708 \begin_layout Standard
16709 \noindent
16710 \align right
16711 \begin_inset Box Frameless
16712 position "t"
16713 hor_pos "c"
16714 has_inner_box 1
16715 inner_pos "t"
16716 use_parbox 1
16717 use_makebox 0
16718 width "42col%"
16719 special "none"
16720 height "1in"
16721 height_special "totalheight"
16722 thickness "0.4pt"
16723 separation "3pt"
16724 shadowsize "4pt"
16725 framecolor "black"
16726 backgroundcolor "none"
16727 status open
16728
16729 \begin_layout Heart
16730 \noindent
16731
16732 \lang latin
16733 Lo\SpecialChar softhyphen
16734 rem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
16735  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
16736  voluptua.
16737  At vero eos et accusam et justo duo dolores et ea rebum.
16738  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
16739  sit amet.
16740 \end_layout
16741
16742 \end_inset
16743
16744
16745 \end_layout
16746
16747 \begin_layout Subsubsection
16748 Custom shapes
16749 \end_layout
16750
16751 \begin_layout Standard
16752 You can define any shape you want.
16753  Doing this manually is a lot of work because every coordinate must be specified.
16754  But there is a way to let the computer calculate the coordinates:
16755 \end_layout
16756
16757 \begin_layout Enumerate
16758 Install the program 
16759 \begin_inset CommandInset href
16760 LatexCommand href
16761 name "Jpgfdraw"
16762 target "https://www.ctan.org/tex-archive/graphics/jpgfdraw"
16763 literal "false"
16764
16765 \end_inset
16766
16767 .
16768 \end_layout
16769
16770 \begin_layout Enumerate
16771 In 
16772 \family sans
16773 Jpgfdraw
16774 \family default
16775  go to the menu 
16776 \family sans
16777 TeX/LaTeX\SpecialChar menuseparator
16778 Settings\SpecialChar menuseparator
16779 Set Normal Size
16780 \family default
16781  and select the font size you are using in your document.
16782  For example this document uses the size 12
16783 \begin_inset space \thinspace{}
16784 \end_inset
16785
16786 pt.
16787 \end_layout
16788
16789 \begin_layout Enumerate
16790 Draw a shape.
16791 \end_layout
16792
16793 \begin_layout Enumerate
16794 Use the menu 
16795 \family sans
16796 TeX/LaTeX\SpecialChar menuseparator
16797 Shapepar
16798 \family default
16799  to export the shape to coordinates.
16800  In the appearing dialog use either the outline of your shape for the coordinate
16801 s or the path itself.
16802 \begin_inset Foot
16803 status collapsed
16804
16805 \begin_layout Plain Layout
16806 For more information see 
16807 \begin_inset CommandInset href
16808 LatexCommand href
16809 target "http://www.dickimaw-books.com/apps/jpgfdraw/manual/shapepar.html"
16810 literal "false"
16811
16812 \end_inset
16813
16814
16815 \end_layout
16816
16817 \end_inset
16818
16819
16820 \end_layout
16821
16822 \begin_layout Standard
16823 The coordinates are written into a \SpecialChar TeX
16824  file.
16825  To use it for your \SpecialChar LyX
16826  document
16827 \end_layout
16828
16829 \begin_layout Enumerate
16830 Place the cursor before the first character of your paragraph (or into a
16831  new empty one).
16832 \end_layout
16833
16834 \begin_layout Enumerate
16835 Open in \SpecialChar LyX
16836  the menu 
16837 \family sans
16838 Insert\SpecialChar menuseparator
16839 File\SpecialChar menuseparator
16840 Child
16841 \begin_inset space ~
16842 \end_inset
16843
16844 Document
16845 \family default
16846 , select the file and use 
16847 \family sans
16848 Input
16849 \family default
16850  as 
16851 \family sans
16852 Include Type.
16853 \end_layout
16854
16855 \begin_layout Standard
16856 \begin_inset VSpace defskip
16857 \end_inset
16858
16859
16860 \end_layout
16861
16862 \begin_layout Standard
16863 \begin_inset Note Greyedout
16864 status open
16865
16866 \begin_layout Plain Layout
16867
16868 \series bold
16869 Note
16870 \series default
16871 : The changed shape only applies to the current paragraph; everything is
16872  reset to normal for the next paragraph.
16873  Therefore the shape definition file must be input into every paragraph
16874  with the desired shape.
16875 \end_layout
16876
16877 \end_inset
16878
16879
16880 \end_layout
16881
16882 \begin_layout Standard
16883 \begin_inset VSpace bigskip
16884 \end_inset
16885
16886
16887 \end_layout
16888
16889 \begin_layout Standard
16890 Here is an example:
16891 \end_layout
16892
16893 \begin_layout Standard
16894 \begin_inset VSpace bigskip
16895 \end_inset
16896
16897
16898 \end_layout
16899
16900 \begin_layout Standard
16901 \begin_inset CommandInset include
16902 LatexCommand input
16903 filename "SpecialParagraphShape.tex"
16904 literal "true"
16905
16906 \end_inset
16907
16908
16909 \lang latin
16910 Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
16911  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
16912  voluptua.
16913  At vero eos et accusam et justo duo dolores et ea rebum.
16914  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
16915  sit amet.
16916  Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
16917  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
16918  voluptua.
16919 \end_layout
16920
16921 \begin_layout Standard
16922 \begin_inset VSpace bigskip
16923 \end_inset
16924
16925
16926 \end_layout
16927
16928 \begin_layout Standard
16929
16930 \series bold
16931 A tip:
16932 \series default
16933  to draw complexer shapes in 
16934 \family sans
16935 Jpgfdraw
16936 \family default
16937  you can draw the shape in a program of your choice and import the resulting
16938  image to 
16939 \family sans
16940 Jpgfdraw
16941 \family default
16942 .
16943  Then you only need to draw a line or spline along the outline of the image.
16944 \end_layout
16945
16946 \begin_layout Standard
16947 \begin_inset VSpace bigskip
16948 \end_inset
16949
16950
16951 \end_layout
16952
16953 \begin_layout Standard
16954 The module 
16955 \family sans
16956 Custom paragraph shapes
16957 \family default
16958  also provides the two commands 
16959 \family sans
16960 shapepar
16961 \family default
16962  and 
16963 \family sans
16964 Shapepar
16965 \family default
16966  which can be used to define custom shapes coordinate by coordinate.
16967 \begin_inset Foot
16968 status collapsed
16969
16970 \begin_layout Plain Layout
16971 These commands are internally used for all shapes described here.
16972 \end_layout
16973
16974 \end_inset
16975
16976  For information how these styles are used and about further customization
16977  possibilities, have a look at the 
16978 \begin_inset CommandInset href
16979 LatexCommand href
16980 name "documentation"
16981 target "https://www.ctan.org/tex-archive/macros/latex/contrib/shapepar/shapepar.pdf"
16982 literal "false"
16983
16984 \end_inset
16985
16986  of the package 
16987 \begin_inset Flex Code
16988 status collapsed
16989
16990 \begin_layout Plain Layout
16991 shapepar
16992 \end_layout
16993
16994 \end_inset
16995
16996 .
16997 \end_layout
16998
16999 \begin_layout Chapter
17000
17001 \change_deleted 564990737 1671304317
17002 Customizing 
17003 \change_unchanged
17004 Bibliograph
17005 \change_inserted 564990737 1671304322
17006 y
17007 \change_deleted 564990737 1671304331
17008 ies with Bib\SpecialChar TeX
17009  or Biblatex
17010 \change_unchanged
17011
17012 \end_layout
17013
17014 \begin_layout Standard
17015 The most basic information about how to use Bib\SpecialChar TeX
17016  or 
17017 \family sans
17018 Biblatex
17019 \family default
17020  with \SpecialChar LyX
17021  is contained in the section 
17022 \emph on
17023 Bibliography databases
17024 \emph default
17025  of the 
17026 \emph on
17027 User's Guide
17028 \emph default
17029 .
17030  The following subsections explain special bibliography features supported
17031  by \SpecialChar LyX
17032 .
17033 \end_layout
17034
17035 \begin_layout Section
17036 Alternative Citation Styles
17037 \end_layout
17038
17039 \begin_layout Standard
17040 Standard Bib\SpecialChar TeX
17041  uses numbers (e.
17042 \begin_inset space \thinspace{}
17043 \end_inset
17044
17045 g.
17046 \begin_inset space \space{}
17047 \end_inset
17048
17049
17050 \begin_inset Quotes eld
17051 \end_inset
17052
17053 [12]
17054 \begin_inset Quotes erd
17055 \end_inset
17056
17057 ) to refer to a cited work.
17058  However, in many scientific disciplines, other citation styles are in use.
17059  The most common one is the author-year style (e.
17060 \begin_inset space \thinspace{}
17061 \end_inset
17062
17063 g.
17064 \begin_inset space \space{}
17065 \end_inset
17066
17067
17068 \begin_inset Quotes eld
17069 \end_inset
17070
17071 Knuth 1984a
17072 \begin_inset Quotes erd
17073 \end_inset
17074
17075 ).
17076  \SpecialChar LyX
17077  supports three packages that provide this style, 
17078 \begin_inset Flex Code
17079 status collapsed
17080
17081 \begin_layout Plain Layout
17082 biblatex
17083 \end_layout
17084
17085 \end_inset
17086
17087
17088 \begin_inset Flex Code
17089 status collapsed
17090
17091 \begin_layout Plain Layout
17092 natbib
17093 \end_layout
17094
17095 \end_inset
17096
17097 , and 
17098 \begin_inset Flex Code
17099 status collapsed
17100
17101 \begin_layout Plain Layout
17102 jurabib
17103 \end_layout
17104
17105 \end_inset
17106
17107 .
17108  Each of these packages has their pros and cons, which cannot be listed
17109  in detail.
17110  If you only want to have simple author-year (or author-numerical) style,
17111  or if you want to use one of the countless style files for 
17112 \begin_inset Flex Code
17113 status collapsed
17114
17115 \begin_layout Plain Layout
17116 natbib
17117 \end_layout
17118
17119 \end_inset
17120
17121 , then the established 
17122 \begin_inset Flex Code
17123 status collapsed
17124
17125 \begin_layout Plain Layout
17126 natbib
17127 \end_layout
17128
17129 \end_inset
17130
17131  package is probably your choice.
17132  If you look for specific citation styles common in law studies, you might
17133  consider the 
17134 \begin_inset Flex Code
17135 status collapsed
17136
17137 \begin_layout Plain Layout
17138 jurabib
17139 \end_layout
17140
17141 \end_inset
17142
17143  package.
17144  If you want to have full control over the formatting or look for advanced
17145  features such as ibidem, footnote citations, full title citations, advanced
17146  date formats (such as 400 BC) or full localization to other languages than
17147  English, you should definitely consider 
17148 \begin_inset Flex Code
17149 status collapsed
17150
17151 \begin_layout Plain Layout
17152 biblatex
17153 \end_layout
17154
17155 \end_inset
17156
17157 , which exceeds all other packages in terms of features, but is also quite
17158  heavy and more resource-hungry.
17159 \end_layout
17160
17161 \begin_layout Standard
17162 The handling of these packages in \SpecialChar LyX
17163  is basically the same.
17164  Go to 
17165 \begin_inset Flex Noun
17166 status collapsed
17167
17168 \begin_layout Plain Layout
17169 Document\SpecialChar menuseparator
17170 Settings
17171 \end_layout
17172
17173 \end_inset
17174
17175  and select under 
17176 \begin_inset Flex Noun
17177 status collapsed
17178
17179 \begin_layout Plain Layout
17180 Bibliography
17181 \end_layout
17182
17183 \end_inset
17184
17185  the 
17186 \begin_inset Flex Noun
17187 status collapsed
17188
17189 \begin_layout Plain Layout
17190 Style Format
17191 \end_layout
17192
17193 \end_inset
17194
17195  
17196 \begin_inset Flex Noun
17197 status collapsed
17198
17199 \begin_layout Plain Layout
17200 Basic (BibTeX)
17201 \end_layout
17202
17203 \end_inset
17204
17205
17206 \begin_inset Flex Noun
17207 status collapsed
17208
17209 \begin_layout Plain Layout
17210 Biblatex
17211 \end_layout
17212
17213 \end_inset
17214
17215
17216 \begin_inset Flex Noun
17217 status collapsed
17218
17219 \begin_layout Plain Layout
17220 Biblatex (Natbib mode)
17221 \end_layout
17222
17223 \end_inset
17224
17225
17226 \begin_inset Flex Noun
17227 status collapsed
17228
17229 \begin_layout Plain Layout
17230 Natbib (BibTeX)
17231 \end_layout
17232
17233 \end_inset
17234
17235  or 
17236 \begin_inset Flex Noun
17237 status collapsed
17238
17239 \begin_layout Plain Layout
17240 Jurabib (BibTeX)
17241 \end_layout
17242
17243 \end_inset
17244
17245  (see sec.
17246 \begin_inset space ~
17247 \end_inset
17248
17249 6.5.3 in the User's Guide for more information on these choices).
17250  With all these packages, you will get some extra features in the citation
17251  dialog and you can select the style of the reference (
17252 \begin_inset Quotes eld
17253 \end_inset
17254
17255 Knuth 1984
17256 \begin_inset Quotes erd
17257 \end_inset
17258
17259
17260 \begin_inset Quotes eld
17261 \end_inset
17262
17263 Knuth (1984)
17264 \begin_inset Quotes erd
17265 \end_inset
17266
17267
17268 \begin_inset Quotes eld
17269 \end_inset
17270
17271 Knuth, 1984
17272 \begin_inset Quotes erd
17273 \end_inset
17274
17275
17276 \begin_inset Quotes eld
17277 \end_inset
17278
17279 1984
17280 \begin_inset Quotes erd
17281 \end_inset
17282
17283  etc.).
17284  Note that either package needs specifically designed style files.
17285  They all ship their own, but there are lots of additional style files,
17286  and there is even an interactive style file builder
17287 \begin_inset Foot
17288 status collapsed
17289
17290 \begin_layout Plain Layout
17291 See 
17292 \begin_inset Flex URL
17293 status open
17294
17295 \begin_layout Plain Layout
17296
17297 ftp://ctan.tug.org/tex-archive/macros/latex/contrib/custom-bib/
17298 \end_layout
17299
17300 \end_inset
17301
17302
17303 \end_layout
17304
17305 \end_inset
17306
17307  for 
17308 \begin_inset Flex Code
17309 status collapsed
17310
17311 \begin_layout Plain Layout
17312 natbib
17313 \end_layout
17314
17315 \end_inset
17316
17317 .
17318 \end_layout
17319
17320 \begin_layout Section
17321 Subdivided Bibliographies
17322 \end_layout
17323
17324 \begin_layout Standard
17325 Sometimes you might need to divide your bibliography into several sections.
17326  If you are for instance a historian, the possibility to separate sources
17327  and scientific works is most likely a 
17328 \begin_inset Quotes eld
17329 \end_inset
17330
17331 must have
17332 \begin_inset Quotes erd
17333 \end_inset
17334
17335 .
17336  Unfortunately, Bib\SpecialChar TeX
17337  itself does not allow you to do this.
17338  But with the help of some \SpecialChar LaTeX
17339  packages, Bib\SpecialChar TeX
17340  can be extended to fit your needs.
17341 \end_layout
17342
17343 \begin_layout Standard
17344 \SpecialChar LyX
17345  provides native support for one of these packages, 
17346 \family typewriter
17347 bibtopic
17348 \family default
17349 .
17350 \begin_inset Foot
17351 status collapsed
17352
17353 \begin_layout Plain Layout
17354 Available from 
17355 \begin_inset Flex URL
17356 status open
17357
17358 \begin_layout Plain Layout
17359
17360 ftp://ctan.tug.org/tex-archive/macros/latex/contrib/bibtopic/
17361 \end_layout
17362
17363 \end_inset
17364
17365
17366 \end_layout
17367
17368 \end_inset
17369
17370  The advantage of this package (compared to other packages such as 
17371 \family typewriter
17372 multibib
17373 \family default
17374 ) is that you don't need to define new citation commands.
17375  Instead, you need to prepare different bibliographic databases which include
17376  the entries for the different sections of the bibliography.
17377  For example: If you want to divide your bibliography into the sections
17378  
17379 \begin_inset Quotes eld
17380 \end_inset
17381
17382 Sources
17383 \begin_inset Quotes erd
17384 \end_inset
17385
17386  and 
17387 \begin_inset Quotes eld
17388 \end_inset
17389
17390 Scientific works
17391 \begin_inset Quotes erd
17392 \end_inset
17393
17394 , you first need to create two bibliographic databases, e.
17395 \begin_inset space \thinspace{}
17396 \end_inset
17397
17398 g.
17399 \begin_inset space \space{}
17400 \end_inset
17401
17402
17403 \begin_inset Flex Code
17404 status collapsed
17405
17406 \begin_layout Plain Layout
17407 sources.bib
17408 \end_layout
17409
17410 \end_inset
17411
17412  and 
17413 \begin_inset Flex Code
17414 status collapsed
17415
17416 \begin_layout Plain Layout
17417 scientific.bib
17418 \end_layout
17419
17420 \end_inset
17421
17422 .
17423  
17424 \end_layout
17425
17426 \begin_layout Standard
17427 Go to 
17428 \begin_inset Flex Noun
17429 status collapsed
17430
17431 \begin_layout Plain Layout
17432 Document\SpecialChar menuseparator
17433 Settings
17434 \end_layout
17435
17436 \end_inset
17437
17438  and check under 
17439 \begin_inset Flex Noun
17440 status collapsed
17441
17442 \begin_layout Plain Layout
17443 Bibliography
17444 \end_layout
17445
17446 \end_inset
17447
17448  the option 
17449 \begin_inset Flex Noun
17450 status collapsed
17451
17452 \begin_layout Plain Layout
17453 Subdivided bibliography
17454 \end_layout
17455
17456 \end_inset
17457
17458 .
17459  Now you can insert multiple Bib\SpecialChar TeX
17460  bibliographies, one for each section of
17461  your bibliography.
17462  Returning to our example: Insert the Bib\SpecialChar TeX
17463  bibliography 
17464 \begin_inset Flex Code
17465 status collapsed
17466
17467 \begin_layout Plain Layout
17468 sources.bib
17469 \end_layout
17470
17471 \end_inset
17472
17473  and a second one for the database 
17474 \begin_inset Flex Code
17475 status collapsed
17476
17477 \begin_layout Plain Layout
17478 scientific.bib
17479 \end_layout
17480
17481 \end_inset
17482
17483 .
17484  You are free to use the same or different styles for each section.
17485  Additionally, you can choose if the bibliography section should contain
17486  
17487 \begin_inset Quotes eld
17488 \end_inset
17489
17490 all cited references
17491 \begin_inset Quotes erd
17492 \end_inset
17493
17494  of the specified database(s) (which is the default), 
17495 \begin_inset Quotes eld
17496 \end_inset
17497
17498 all uncited references
17499 \begin_inset Quotes erd
17500 \end_inset
17501
17502  or even 
17503 \begin_inset Quotes eld
17504 \end_inset
17505
17506 all references
17507 \begin_inset Quotes erd
17508 \end_inset
17509
17510 .
17511  This might be useful if you would like to separate your bibliography into
17512  three sections: 
17513 \begin_inset Quotes eld
17514 \end_inset
17515
17516 Cited sources
17517 \begin_inset Quotes erd
17518 \end_inset
17519
17520
17521 \begin_inset Quotes eld
17522 \end_inset
17523
17524 Uncited sources
17525 \begin_inset Quotes erd
17526 \end_inset
17527
17528 , and 
17529 \begin_inset Quotes eld
17530 \end_inset
17531
17532 Scientific works
17533 \begin_inset Quotes erd
17534 \end_inset
17535
17536 .
17537  The titles for the sections can be added as ordinary sections or subsections.
17538  Since 
17539 \begin_inset Flex Code
17540 status collapsed
17541
17542 \begin_layout Plain Layout
17543 bibtopic
17544 \end_layout
17545
17546 \end_inset
17547
17548  removes the bibliography title, you have to manually re-add that, too (as
17549  a chapter* or section*, for instance).
17550 \end_layout
17551
17552 \begin_layout Standard
17553 With 
17554 \family sans
17555 Biblatex
17556 \family default
17557 , the procedure is a bit different.
17558  Since 
17559 \family typewriter
17560 bibtopic
17561 \family default
17562  does not work with 
17563 \family sans
17564 Biblatex
17565 \family default
17566 , the aforementioned 
17567 \begin_inset Flex Noun
17568 status collapsed
17569
17570 \begin_layout Plain Layout
17571 Subdivided bibliography
17572 \end_layout
17573
17574 \end_inset
17575
17576  option is disabled if you use 
17577 \family sans
17578 Biblatex
17579 \family default
17580 .
17581  However, 
17582 \family sans
17583 Biblatex
17584 \family default
17585  provides its own means to generate subdivided bibliographies.
17586  You can either add keywords to bibliography entries via the 
17587 \begin_inset Flex Code
17588 status collapsed
17589
17590 \begin_layout Plain Layout
17591 keywords
17592 \end_layout
17593
17594 \end_inset
17595
17596  entry option and then filter bibliography sections by keyword (by adding
17597  
17598 \begin_inset Flex Code
17599 status collapsed
17600
17601 \begin_layout Plain Layout
17602 keyword=mykeyword
17603 \end_layout
17604
17605 \end_inset
17606
17607  to the 
17608 \begin_inset Flex Noun
17609 status collapsed
17610
17611 \begin_layout Plain Layout
17612 Options
17613 \end_layout
17614
17615 \end_inset
17616
17617  field of the dialog that opens if you left-click on the 
17618 \begin_inset Flex Noun
17619 status collapsed
17620
17621 \begin_layout Plain Layout
17622 Biblatex Generated Bibliography
17623 \end_layout
17624
17625 \end_inset
17626
17627  button), or you can filter by entry types (such as 
17628 \emph on
17629 book
17630 \emph default
17631  or 
17632 \emph on
17633 article
17634 \emph default
17635 ) by entering e.
17636 \begin_inset space \thinspace{}
17637 \end_inset
17638
17639 g.
17640  
17641 \begin_inset Flex Code
17642 status collapsed
17643
17644 \begin_layout Plain Layout
17645 type=book
17646 \end_layout
17647
17648 \end_inset
17649
17650  or 
17651 \begin_inset Flex Code
17652 status collapsed
17653
17654 \begin_layout Plain Layout
17655 nottype=collection
17656 \end_layout
17657
17658 \end_inset
17659
17660  to the mentioned 
17661 \begin_inset Flex Noun
17662 status collapsed
17663
17664 \begin_layout Plain Layout
17665 Options
17666 \end_layout
17667
17668 \end_inset
17669
17670  field, or you can create so-called 
17671 \begin_inset Quotes eld
17672 \end_inset
17673
17674 Bibliography Categories
17675 \begin_inset Quotes erd
17676 \end_inset
17677
17678  to which you can assign individual entries.
17679  Please refer to the Biblatex manual, section 
17680 \emph on
17681 Subdivided Bibliographies
17682 \emph default
17683 , for details.
17684 \end_layout
17685
17686 \begin_layout Section
17687 Multiple Bibliographies
17688 \begin_inset CommandInset label
17689 LatexCommand label
17690 name "subsec:Multiple-Bibliographies"
17691
17692 \end_inset
17693
17694
17695 \end_layout
17696
17697 \begin_layout Standard
17698 Multiple bibliographies, e.
17699 \begin_inset space \thinspace{}
17700 \end_inset
17701
17702 g.
17703 \begin_inset space \space{}
17704 \end_inset
17705
17706 a bibliography for each part, chapter, section, subsection or child (sub-documen
17707 t) of the document, are also supported by \SpecialChar LyX
17708 .
17709  In order to enable it, go to 
17710 \begin_inset Flex Noun
17711 status collapsed
17712
17713 \begin_layout Plain Layout
17714 Document\SpecialChar menuseparator
17715 Settings\SpecialChar menuseparator
17716 Bibliography
17717 \end_layout
17718
17719 \end_inset
17720
17721  and select the relevant unit (e.
17722 \begin_inset space \thinspace{}
17723 \end_inset
17724
17725 g., 
17726 \begin_inset Quotes eld
17727 \end_inset
17728
17729 per section
17730 \begin_inset Quotes erd
17731 \end_inset
17732
17733 ) in the 
17734 \begin_inset Flex Noun
17735 status collapsed
17736
17737 \begin_layout Plain Layout
17738 Multiple Bibliographies
17739 \end_layout
17740
17741 \end_inset
17742
17743  combo box.
17744  Then add a Bib(la)\SpecialChar TeX
17745  bibliography to each unit (e.
17746 \begin_inset space \thinspace{}
17747 \end_inset
17748
17749 g., section) of your document.
17750  In the output, a separate bibliography, containing only the references
17751  done in the current unit is generated.
17752 \end_layout
17753
17754 \begin_layout Standard
17755 If you use Bib\SpecialChar TeX
17756 , either the 
17757 \begin_inset Flex Code
17758 status collapsed
17759
17760 \begin_layout Plain Layout
17761 chapterbib
17762 \end_layout
17763
17764 \end_inset
17765
17766  or the 
17767 \begin_inset Flex Code
17768 status collapsed
17769
17770 \begin_layout Plain Layout
17771 bibtopic
17772 \end_layout
17773
17774 \end_inset
17775
17776  package is used to create multiple bibliographies.
17777  The former package is used if you select 
17778 \begin_inset Quotes eld
17779 \end_inset
17780
17781 per child document
17782 \begin_inset Quotes erd
17783 \end_inset
17784
17785  and do 
17786 \emph on
17787 not
17788 \emph default
17789  check 
17790 \begin_inset Flex Noun
17791 status collapsed
17792
17793 \begin_layout Plain Layout
17794 Sectioned Bibliography
17795 \end_layout
17796
17797 \end_inset
17798
17799 .
17800  In all other cases, 
17801 \begin_inset Flex Code
17802 status collapsed
17803
17804 \begin_layout Plain Layout
17805 bibtopic
17806 \end_layout
17807
17808 \end_inset
17809
17810  is used.
17811 \begin_inset Foot
17812 status collapsed
17813
17814 \begin_layout Plain Layout
17815 An alternative approach, if you are willing to use some 
17816 \begin_inset Flex Noun
17817 status collapsed
17818
17819 \begin_layout Plain Layout
17820 \SpecialChar TeX
17821  Code
17822 \end_layout
17823
17824 \end_inset
17825
17826  (see section
17827 \begin_inset space ~
17828 \end_inset
17829
17830
17831 \begin_inset CommandInset ref
17832 LatexCommand ref
17833 nolink "false"
17834 reference "sec:Inserting-TeX-Code"
17835
17836 \end_inset
17837
17838 ), is to use the 
17839 \begin_inset Flex Code
17840 status collapsed
17841
17842 \begin_layout Plain Layout
17843 bibunits
17844 \end_layout
17845
17846 \end_inset
17847
17848  package.
17849 \end_layout
17850
17851 \end_inset
17852
17853  If 
17854 \begin_inset Flex Code
17855 status collapsed
17856
17857 \begin_layout Plain Layout
17858 bibtopic
17859 \end_layout
17860
17861 \end_inset
17862
17863  is used, \SpecialChar LyX
17864  encloses the specified units in 
17865 \begin_inset Flex Code
17866 status collapsed
17867
17868 \begin_layout Plain Layout
17869 bibtopic
17870 \end_layout
17871
17872 \end_inset
17873
17874 's 
17875 \begin_inset Flex Code
17876 status collapsed
17877
17878 \begin_layout Plain Layout
17879
17880 \backslash
17881 begin{btUnit}
17882 \end_layout
17883
17884 \end_inset
17885
17886  and 
17887 \begin_inset Flex Code
17888 status collapsed
17889
17890 \begin_layout Plain Layout
17891
17892 \backslash
17893 end{btUnit}
17894 \end_layout
17895
17896 \end_inset
17897
17898  in order to create the units.
17899  Note that this approach has some limitations.
17900  First, every citation reference has to be inside some 
17901 \begin_inset Flex Code
17902 status collapsed
17903
17904 \begin_layout Plain Layout
17905 btUnit
17906 \end_layout
17907
17908 \end_inset
17909
17910 .
17911  So citations outside a defined unit (e.
17912 \begin_inset space \thinspace{}
17913 \end_inset
17914
17915 g., before the first section if you use 
17916 \begin_inset Quotes eld
17917 \end_inset
17918
17919 by section
17920 \begin_inset Quotes erd
17921 \end_inset
17922
17923 ) will appear as 
17924 \begin_inset Quotes eld
17925 \end_inset
17926
17927 ???
17928 \begin_inset Quotes erd
17929 \end_inset
17930
17931 .
17932  You can also create your own units by entering 
17933 \begin_inset Flex Code
17934 status collapsed
17935
17936 \begin_layout Plain Layout
17937
17938 \backslash
17939 begin{btUnit}
17940 \end_layout
17941
17942 \end_inset
17943
17944  and 
17945 \begin_inset Flex Code
17946 status collapsed
17947
17948 \begin_layout Plain Layout
17949
17950 \backslash
17951 end{btUnit}
17952 \end_layout
17953
17954 \end_inset
17955
17956  as \SpecialChar TeX
17957  code (for instance to work around the mentioned limitation).
17958  Note, though, that 
17959 \begin_inset Flex Code
17960 status collapsed
17961
17962 \begin_layout Plain Layout
17963 btUnit
17964 \end_layout
17965
17966 \end_inset
17967
17968 s cannot be nested.
17969  A second limitation is that 
17970 \begin_inset Flex Code
17971 status collapsed
17972
17973 \begin_layout Plain Layout
17974 bibtopic
17975 \end_layout
17976
17977 \end_inset
17978
17979  always processes all references of a bibliography database, even if they
17980  are not cited.
17981  This can result in odd labels (e.
17982 \begin_inset space \thinspace{}
17983 \end_inset
17984
17985 g.
17986  
17987 \begin_inset Quotes eld
17988 \end_inset
17989
17990 Miller 2014b
17991 \begin_inset Quotes erd
17992 \end_inset
17993
17994  if two works of this author from 2014 are in the database, even if only
17995  one is cited).
17996 \end_layout
17997
17998 \begin_layout Standard
17999 If you use 
18000 \family sans
18001 Biblatex
18002 \family default
18003 , the 
18004 \begin_inset Flex Code
18005 status collapsed
18006
18007 \begin_layout Plain Layout
18008 refsection
18009 \end_layout
18010
18011 \end_inset
18012
18013  option is used instead.
18014  If you need specific units, you can start them with the \SpecialChar TeX
18015  code 
18016 \begin_inset Flex Code
18017 status collapsed
18018
18019 \begin_layout Plain Layout
18020
18021 \backslash
18022 newrefsection
18023 \end_layout
18024
18025 \end_inset
18026
18027  or 
18028 \begin_inset Flex Code
18029 status collapsed
18030
18031 \begin_layout Plain Layout
18032
18033 \backslash
18034 newrefsegment
18035 \end_layout
18036
18037 \end_inset
18038
18039 , respectively.
18040  If you also want to control the end of the unit, use the environment 
18041 \begin_inset Flex Code
18042 status collapsed
18043
18044 \begin_layout Plain Layout
18045
18046 \backslash
18047 begin{refsection}
18048 \end_layout
18049
18050 \end_inset
18051
18052  \SpecialChar ldots
18053  
18054 \begin_inset Flex Code
18055 status collapsed
18056
18057 \begin_layout Plain Layout
18058
18059 \backslash
18060 end{refsection}
18061 \end_layout
18062
18063 \end_inset
18064
18065  instead.
18066  Note, though, that 
18067 \begin_inset Flex Code
18068 status collapsed
18069
18070 \begin_layout Plain Layout
18071 refsection
18072 \end_layout
18073
18074 \end_inset
18075
18076 s cannot be nested.
18077  In addition to the individual bibliography of the current unit, 
18078 \family sans
18079 Biblatex
18080 \family default
18081  also provides an easy way to output all bibliographies, subsequently, at
18082  one place (e.
18083 \begin_inset space \thinspace{}
18084 \end_inset
18085
18086 g., at the end of the document).
18087  Select 
18088 \begin_inset Quotes eld
18089 \end_inset
18090
18091 all reference units
18092 \begin_inset Quotes erd
18093 \end_inset
18094
18095  from the Content combo box of the Bib(la)TeX inset dialog in order to achieve
18096  this.
18097  Please refer to the 
18098 \family sans
18099 Biblatex
18100 \family default
18101  manual for more information on this topic.
18102 \end_layout
18103
18104 \begin_layout Chapter
18105
18106 \change_deleted 564990737 1671355654
18107 Itemize 
18108 \change_unchanged
18109 Bullet
18110 \change_inserted 564990737 1671355667
18111 s
18112 \change_deleted 564990737 1671355661
18113  Selection
18114 \change_inserted 564990737 1671355684
18115
18116 \begin_inset CommandInset label
18117 LatexCommand label
18118 name "chap:bullets"
18119
18120 \end_inset
18121
18122
18123 \change_deleted 564990737 1671355684
18124
18125 \begin_inset CommandInset label
18126 LatexCommand label
18127 name "sec:bullet"
18128
18129 \end_inset
18130
18131
18132 \change_unchanged
18133
18134 \end_layout
18135
18136 \begin_layout Standard
18137 by
18138 \noun on
18139  Allan Rae
18140 \end_layout
18141
18142 \begin_layout Section
18143 Introduction
18144 \end_layout
18145
18146 \begin_layout Standard
18147 \SpecialChar LyX
18148  provides 216 bullet shapes that can be accessed from a simple dialog.
18149  Using this dialog you can easily specify what bullet shape to use at each
18150  level of an itemized list.
18151  These settings are document-wide so you won't be able to specify different
18152  sets of bullets for different paragraphs.
18153 \begin_inset Foot
18154 status collapsed
18155
18156 \begin_layout Plain Layout
18157 Well, actually you can but you'll have to do it by hand.
18158 \end_layout
18159
18160 \end_inset
18161
18162
18163 \end_layout
18164
18165 \begin_layout Section
18166 How it looks
18167 \end_layout
18168
18169 \begin_layout Standard
18170 Open the dialog by selecting the 
18171 \begin_inset Flex Noun
18172 status collapsed
18173
18174 \begin_layout Plain Layout
18175 Document\SpecialChar menuseparator
18176 Settings
18177 \end_layout
18178
18179 \end_inset
18180
18181  menu item and then select the 
18182 \begin_inset Flex Noun
18183 status collapsed
18184
18185 \begin_layout Plain Layout
18186 Bullets
18187 \end_layout
18188
18189 \end_inset
18190
18191  tab.
18192 \end_layout
18193
18194 \begin_layout Standard
18195 The dialog provides you with a table of bullet shapes.
18196  A column of buttons on the left of the table provides access to the six
18197  different panels of bullet shapes.
18198  The row of buttons across the top is used to select which bullet depth
18199  you are changing.
18200
18201 \change_deleted 244031559 1603875981
18202  A text entry under the table shows the currently selected bullet shape's
18203  \SpecialChar LaTeX
18204  equivalent and this can be edited if desired.
18205  If you do modify the text you will also need to specify any needed packages
18206  in the \SpecialChar LaTeX
18207  preamble.
18208 \change_unchanged
18209
18210 \end_layout
18211
18212 \begin_layout Standard
18213 The six panels are divided up by the packages they require.
18214  The following table shows the mappings from button name to \SpecialChar LaTeX
18215  package.
18216 \end_layout
18217
18218 \begin_layout Standard
18219 \align center
18220 \begin_inset Tabular
18221 <lyxtabular version="3" rows="7" columns="2">
18222 <features tabularvalignment="middle">
18223 <column alignment="center" valignment="top" width="0pt">
18224 <column alignment="center" valignment="top" width="0pt">
18225 <row>
18226 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
18227 \begin_inset Text
18228
18229 \begin_layout Plain Layout
18230
18231 \family roman
18232 \series medium
18233 \shape up
18234 \size normal
18235 \emph off
18236 \bar no
18237 \noun off
18238 \color none
18239 Button
18240 \end_layout
18241
18242 \end_inset
18243 </cell>
18244 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
18245 \begin_inset Text
18246
18247 \begin_layout Plain Layout
18248
18249 \family roman
18250 \series medium
18251 \shape up
18252 \size normal
18253 \emph off
18254 \bar no
18255 \noun off
18256 \color none
18257 Packages Required
18258 \end_layout
18259
18260 \end_inset
18261 </cell>
18262 </row>
18263 <row>
18264 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18265 \begin_inset Text
18266
18267 \begin_layout Plain Layout
18268
18269 \family sans
18270 \series medium
18271 \shape up
18272 \size normal
18273 \emph off
18274 \bar no
18275 \noun off
18276 \color none
18277 Standard
18278 \end_layout
18279
18280 \end_inset
18281 </cell>
18282 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
18283 \begin_inset Text
18284
18285 \begin_layout Plain Layout
18286
18287 \series medium
18288 \shape up
18289 \size normal
18290 \emph off
18291 \bar no
18292 \noun off
18293 \color none
18294 base \SpecialChar LaTeX
18295
18296 \end_layout
18297
18298 \end_inset
18299 </cell>
18300 </row>
18301 <row>
18302 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18303 \begin_inset Text
18304
18305 \begin_layout Plain Layout
18306
18307 \family sans
18308 \series medium
18309 \shape up
18310 \size normal
18311 \emph off
18312 \bar no
18313 \noun off
18314 \color none
18315 Maths
18316 \end_layout
18317
18318 \end_inset
18319 </cell>
18320 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
18321 \begin_inset Text
18322
18323 \begin_layout Plain Layout
18324
18325 \family typewriter
18326 \series medium
18327 \shape up
18328 \size normal
18329 \emph off
18330 \bar no
18331 \noun off
18332 \color none
18333 amssymb.sty
18334 \end_layout
18335
18336 \end_inset
18337 </cell>
18338 </row>
18339 <row>
18340 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18341 \begin_inset Text
18342
18343 \begin_layout Plain Layout
18344
18345 \family sans
18346 \series medium
18347 \shape up
18348 \size normal
18349 \emph off
18350 \bar no
18351 \noun off
18352 \color none
18353 Ding1
18354 \end_layout
18355
18356 \end_inset
18357 </cell>
18358 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
18359 \begin_inset Text
18360
18361 \begin_layout Plain Layout
18362
18363 \family typewriter
18364 \series medium
18365 \shape up
18366 \size normal
18367 \emph off
18368 \bar no
18369 \noun off
18370 \color none
18371 pifont.sty
18372 \end_layout
18373
18374 \end_inset
18375 </cell>
18376 </row>
18377 <row>
18378 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18379 \begin_inset Text
18380
18381 \begin_layout Plain Layout
18382
18383 \family sans
18384 \series medium
18385 \shape up
18386 \size normal
18387 \emph off
18388 \bar no
18389 \noun off
18390 \color none
18391 Ding2
18392 \end_layout
18393
18394 \end_inset
18395 </cell>
18396 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
18397 \begin_inset Text
18398
18399 \begin_layout Plain Layout
18400
18401 \family typewriter
18402 \series medium
18403 \shape up
18404 \size normal
18405 \emph off
18406 \bar no
18407 \noun off
18408 \color none
18409 pifont.sty
18410 \end_layout
18411
18412 \end_inset
18413 </cell>
18414 </row>
18415 <row>
18416 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18417 \begin_inset Text
18418
18419 \begin_layout Plain Layout
18420
18421 \family sans
18422 \series medium
18423 \shape up
18424 \size normal
18425 \emph off
18426 \bar no
18427 \noun off
18428 \color none
18429 Ding3
18430 \end_layout
18431
18432 \end_inset
18433 </cell>
18434 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
18435 \begin_inset Text
18436
18437 \begin_layout Plain Layout
18438
18439 \family typewriter
18440 \series medium
18441 \shape up
18442 \size normal
18443 \emph off
18444 \bar no
18445 \noun off
18446 \color none
18447 pifont.sty
18448 \end_layout
18449
18450 \end_inset
18451 </cell>
18452 </row>
18453 <row>
18454 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
18455 \begin_inset Text
18456
18457 \begin_layout Plain Layout
18458
18459 \family sans
18460 \series medium
18461 \shape up
18462 \size normal
18463 \emph off
18464 \bar no
18465 \noun off
18466 \color none
18467 Ding4
18468 \end_layout
18469
18470 \end_inset
18471 </cell>
18472 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
18473 \begin_inset Text
18474
18475 \begin_layout Plain Layout
18476
18477 \family typewriter
18478 \series medium
18479 \shape up
18480 \size normal
18481 \emph off
18482 \bar no
18483 \noun off
18484 \color none
18485 pifont.sty
18486 \end_layout
18487
18488 \end_inset
18489 </cell>
18490 </row>
18491 </lyxtabular>
18492
18493 \end_inset
18494
18495
18496 \end_layout
18497
18498 \begin_layout Standard
18499 \SpecialChar LyX
18500  doesn't stop you using bullets from packages you don't have.
18501  If you get errors from \SpecialChar LaTeX
18502  when you try to view or print the file, then it
18503  is likely you are missing a package.
18504 \begin_inset Foot
18505 status collapsed
18506
18507 \begin_layout Plain Layout
18508 \SpecialChar LyX
18509  doesn't restrict your use since you may be editing locally and exporting
18510  elsewhere.
18511 \end_layout
18512
18513 \end_inset
18514
18515
18516 \end_layout
18517
18518 \begin_layout Section
18519 How to use it
18520 \end_layout
18521
18522 \begin_layout Standard
18523 Select which bullet depth you want to change then select the bullet shape
18524  and size.
18525  Any changes will not be visible in \SpecialChar LyX
18526 , but are visible when viewing the document.
18527 \end_layout
18528
18529 \begin_layout Standard
18530 You can reset a bullet shape to the default simply by clicking your right
18531  mouse button on the appropriate bullet depth button.
18532 \begin_inset Foot
18533 status open
18534
18535 \begin_layout Plain Layout
18536 If you 
18537 \emph on
18538 really
18539 \emph default
18540  want to have multiple sets of paragraphs with different sets of bullets
18541  in each, then you're going to have to get your hands dirty with \SpecialChar TeX
18542  code.
18543  The bullet selection dialog can help though because it provides you with
18544  the \SpecialChar LaTeX
18545  code for a wide range of bullet shapes.
18546  To make your own custom paragraphs you have the following options:
18547 \end_layout
18548
18549 \begin_layout Plain Layout
18550 \begin_inset ERT
18551 status open
18552
18553 \begin_layout Plain Layout
18554
18555
18556 \backslash
18557 let
18558 \backslash
18559 savelabelitemi=
18560 \backslash
18561 labelitemi
18562 \end_layout
18563
18564 \end_inset
18565
18566
18567 \end_layout
18568
18569 \begin_layout Plain Layout
18570 \begin_inset ERT
18571 status open
18572
18573 \begin_layout Plain Layout
18574
18575
18576 \backslash
18577 renewcommand
18578 \backslash
18579 labelitemi[0]{
18580 \backslash
18581 small
18582 \backslash
18583 (
18584 \backslash
18585 sharp
18586 \backslash
18587 )}
18588 \end_layout
18589
18590 \end_inset
18591
18592
18593 \end_layout
18594
18595 \begin_layout Itemize
18596 Use the \SpecialChar LaTeX
18597  command 
18598 \begin_inset Flex Code
18599 status collapsed
18600
18601 \begin_layout Plain Layout
18602
18603 \backslash
18604 renewcommand{}{}
18605 \end_layout
18606
18607 \end_inset
18608
18609  to specify a new bullet shape for a given depth.
18610  You'll also need to save the current bullet shape so you can restore it
18611  again afterwards.
18612  In this itemized list the following \SpecialChar LaTeX
18613  code was used to change the bullet
18614  used for the first depth.
18615 \end_layout
18616
18617 \begin_deeper
18618 \begin_layout LyX-Code
18619
18620 \backslash
18621 let
18622 \backslash
18623 savelabelitemi=
18624 \backslash
18625 labelitemi 
18626 \end_layout
18627
18628 \begin_layout LyX-Code
18629
18630 \backslash
18631 renewcommand
18632 \backslash
18633 labelitemi[0]{
18634 \backslash
18635 small
18636 \backslash
18637 (
18638 \backslash
18639 sharp
18640 \backslash
18641 )}
18642 \end_layout
18643
18644 \end_deeper
18645 \begin_layout Itemize
18646 Note that the itemize depth is specified in Roman numerals as part of the
18647  
18648 \family typewriter
18649
18650 \backslash
18651 labelitem
18652 \family default
18653  command.
18654 \end_layout
18655
18656 \begin_layout Itemize
18657 \begin_inset Argument item:1
18658 status open
18659
18660 \begin_layout Plain Layout
18661 \begin_inset ERT
18662 status open
18663
18664 \begin_layout Plain Layout
18665
18666
18667 \backslash
18668 (
18669 \backslash
18670 star
18671 \backslash
18672 )
18673 \end_layout
18674
18675 \end_inset
18676
18677
18678 \end_layout
18679
18680 \end_inset
18681
18682  Specify each individual entry by starting each item with the bullet shape
18683  enclosed in a 
18684 \begin_inset Quotes eld
18685 \end_inset
18686
18687 Custom Item
18688 \begin_inset Quotes erd
18689 \end_inset
18690
18691  inset (available at 
18692 \family sans
18693 Insert\SpecialChar menuseparator
18694 Custom Item
18695 \family default
18696 ) and set as 
18697 \begin_inset Flex Noun
18698 status collapsed
18699
18700 \begin_layout Plain Layout
18701 \SpecialChar TeX
18702  Code
18703 \end_layout
18704
18705 \end_inset
18706
18707 .
18708  For example, this item was started with 
18709 \begin_inset Flex Code
18710 status collapsed
18711
18712 \begin_layout Plain Layout
18713
18714 \backslash
18715 (
18716 \backslash
18717 star
18718 \backslash
18719 )
18720 \end_layout
18721
18722 \end_inset
18723
18724 .
18725 \end_layout
18726
18727 \begin_layout Plain Layout
18728 \begin_inset ERT
18729 status open
18730
18731 \begin_layout Plain Layout
18732
18733
18734 \backslash
18735 renewcommand
18736 \backslash
18737 labelitemi[0]{
18738 \backslash
18739 savelabelitemi}
18740 \end_layout
18741
18742 \end_inset
18743
18744
18745 \end_layout
18746
18747 \begin_layout Plain Layout
18748 You'll also need to revert the labelitem back to its previous setting for
18749  the global bullet shape settings to remain in effect.
18750  The way used here was:
18751 \end_layout
18752
18753 \begin_layout LyX-Code
18754
18755 \backslash
18756 renewcommand
18757 \backslash
18758 labelitemi[0]{
18759 \backslash
18760 savelabelitemi}
18761 \end_layout
18762
18763 \end_inset
18764
18765
18766 \end_layout
18767
18768 \begin_layout Chapter
18769 Supplemental Tools
18770 \end_layout
18771
18772 \begin_layout Section
18773 Multipart Documents
18774 \end_layout
18775
18776 \begin_layout Subsection
18777 General Operation
18778 \end_layout
18779
18780 \begin_layout Standard
18781 When you are working on a large file with many sections, it is often convenient
18782  to break up the document into several files, or perhaps you have something
18783  where a table may change from time to time, but the preceding text does
18784  not.
18785  In these cases, you should seriously consider using multipart documents.
18786  For example, scientific papers often have five major sections: the introduction
18787 , observations, results, discussion, and conclusion.
18788  Each of these could be its own separate \SpecialChar LyX
18789  file, with one 
18790 \begin_inset Quotes eld
18791 \end_inset
18792
18793 master
18794 \begin_inset Quotes erd
18795 \end_inset
18796
18797  file which contains the title, authors, abstract, references, etc., plus
18798  the five included files.
18799  It is important to note that each of these files is a full \SpecialChar LyX
18800  file which
18801  can be formatted and printed on its own, as well as included in a master
18802  file.
18803  Each of these files must have the same document class, however—don't attempt
18804  to mix book classes with article classes.
18805  You may also include \SpecialChar LaTeX
18806  files; however, these files must not have their own
18807  preamble (i.
18808 \begin_inset space \thinspace{}
18809 \end_inset
18810
18811 e.
18812 \begin_inset space \space{}
18813 \end_inset
18814
18815 everything up to and including the 
18816 \begin_inset Flex Code
18817 status collapsed
18818
18819 \begin_layout Plain Layout
18820
18821 \backslash
18822 begin{document}
18823 \end_layout
18824
18825 \end_inset
18826
18827  line as well as the 
18828 \begin_inset Flex Code
18829 status collapsed
18830
18831 \begin_layout Plain Layout
18832
18833 \backslash
18834 end{document}
18835 \end_layout
18836
18837 \end_inset
18838
18839  line must be deleted) or else errors will be generated when you try to
18840  make a DVI file.
18841 \end_layout
18842
18843 \begin_layout Standard
18844 \SpecialChar LyX
18845  allows you to include files quite easily with 
18846 \begin_inset Flex Noun
18847 status collapsed
18848
18849 \begin_layout Plain Layout
18850 Insert\SpecialChar menuseparator
18851 Child
18852 \begin_inset space ~
18853 \end_inset
18854
18855 Document
18856 \end_layout
18857
18858 \end_inset
18859
18860 .
18861  When you click on this selection a small box is inserted into the file
18862  at the current cursor location.
18863  Clicking on the box raises a dialog which allows you to select the file
18864  to be included, and the method of its inclusion.
18865  
18866 \end_layout
18867
18868 \begin_layout Standard
18869 The file selection box should by now be obvious.
18870  The three inclusion methods are 
18871 \begin_inset Quotes eld
18872 \end_inset
18873
18874 include
18875 \begin_inset Quotes erd
18876 \end_inset
18877
18878
18879 \begin_inset Quotes eld
18880 \end_inset
18881
18882 input
18883 \begin_inset Quotes erd
18884 \end_inset
18885
18886 , and 
18887 \begin_inset Quotes eld
18888 \end_inset
18889
18890 verbatim
18891 \begin_inset Quotes erd
18892 \end_inset
18893
18894 .
18895  The methods 
18896 \begin_inset Quotes eld
18897 \end_inset
18898
18899 include
18900 \begin_inset Quotes erd
18901 \end_inset
18902
18903  and 
18904 \begin_inset Quotes eld
18905 \end_inset
18906
18907 input
18908 \begin_inset Quotes erd
18909 \end_inset
18910
18911  are similar in many ways, but there are also some notable differences:
18912 \end_layout
18913
18914 \begin_layout Enumerate
18915 Files that are 
18916 \begin_inset Quotes eld
18917 \end_inset
18918
18919 included
18920 \begin_inset Quotes erd
18921 \end_inset
18922
18923  are typeset beginning on a new page, while files that are 
18924 \begin_inset Quotes eld
18925 \end_inset
18926
18927 inputted
18928 \begin_inset Quotes erd
18929 \end_inset
18930
18931  are typeset starting on the current page.
18932 \end_layout
18933
18934 \begin_layout Enumerate
18935 \begin_inset Quotes eld
18936 \end_inset
18937
18938 Included
18939 \begin_inset Quotes erd
18940 \end_inset
18941
18942  files cannot themselves 
18943 \begin_inset Quotes eld
18944 \end_inset
18945
18946 include
18947 \begin_inset Quotes erd
18948 \end_inset
18949
18950  further files (
18951 \begin_inset Quotes eld
18952 \end_inset
18953
18954 grandchilds
18955 \begin_inset Quotes erd
18956 \end_inset
18957
18958 ).
18959  With 
18960 \begin_inset Quotes eld
18961 \end_inset
18962
18963 input
18964 \begin_inset Quotes erd
18965 \end_inset
18966
18967 , on the other hand, infinite sub-inputting is possible.
18968 \end_layout
18969
18970 \begin_layout Enumerate
18971 \begin_inset Quotes eld
18972 \end_inset
18973
18974 Include
18975 \begin_inset Quotes erd
18976 \end_inset
18977
18978  allow for the output of only selected 
18979 \begin_inset Quotes eld
18980 \end_inset
18981
18982 included
18983 \begin_inset Quotes erd
18984 \end_inset
18985
18986  files, while maintaining the actual counters (pagination etc.) and references
18987  (please refer to the section 
18988 \emph on
18989 Child
18990 \begin_inset space ~
18991 \end_inset
18992
18993 Documents
18994 \emph default
18995  of the 
18996 \emph on
18997 Embedded
18998 \begin_inset space ~
18999 \end_inset
19000
19001 Objects
19002 \emph default
19003  manual for details).
19004 \end_layout
19005
19006 \begin_layout Standard
19007 Hence, 
19008 \begin_inset Quotes eld
19009 \end_inset
19010
19011 include
19012 \begin_inset Quotes erd
19013 \end_inset
19014
19015  is the preferred method for chapters that are outsourced to child documents,
19016  while 
19017 \begin_inset Quotes eld
19018 \end_inset
19019
19020 input
19021 \begin_inset Quotes erd
19022 \end_inset
19023
19024  is more suitable for arbitrary file inheritance.
19025 \end_layout
19026
19027 \begin_layout Standard
19028
19029 \begin_inset Quotes eld
19030 \end_inset
19031
19032 verbatim
19033 \begin_inset Quotes erd
19034 \end_inset
19035
19036  included file allows you to include a file typeset exactly as it appears
19037  in the file, i.
19038 \begin_inset space \thinspace{}
19039 \end_inset
19040
19041 e.
19042 \begin_inset space \space{}
19043 \end_inset
19044
19045 in 
19046 \begin_inset Flex Code
19047 status collapsed
19048
19049 \begin_layout Plain Layout
19050 verbatim
19051 \end_layout
19052
19053 \end_inset
19054
19055  mode, with the characters set in a fixed-width typewriter font.
19056  Normally, spaces in this file are invisible, though two consecutive spaces
19057  are conserved, unlike \SpecialChar LyX
19058 's normal treatment of spaces.
19059  However, setting the 
19060 \begin_inset Flex Noun
19061 status collapsed
19062
19063 \begin_layout Plain Layout
19064 Mark
19065 \begin_inset space ~
19066 \end_inset
19067
19068 spaces
19069 \begin_inset space ~
19070 \end_inset
19071
19072 in
19073 \begin_inset space ~
19074 \end_inset
19075
19076 output
19077 \end_layout
19078
19079 \end_inset
19080
19081  checkbox typesets a mark to unambiguously define the presence of a space.
19082  
19083 \end_layout
19084
19085 \begin_layout Standard
19086 Generally, the master file is converted into a full \SpecialChar LaTeX
19087  file before typesetting,
19088  while the included files are converted to \SpecialChar LaTeX
19089  files that do not have all the
19090  preamble information.
19091 \end_layout
19092
19093 \begin_layout Subsection
19094 Cross-References Between Files
19095 \end_layout
19096
19097 \begin_layout Standard
19098 \begin_inset Box Shadowbox
19099 position "t"
19100 hor_pos "c"
19101 has_inner_box 1
19102 inner_pos "t"
19103 use_parbox 0
19104 use_makebox 0
19105 width "100col%"
19106 special "none"
19107 height "1in"
19108 height_special "totalheight"
19109 thickness "0.4pt"
19110 separation "3pt"
19111 shadowsize "4pt"
19112 framecolor "black"
19113 backgroundcolor "none"
19114 status open
19115
19116 \begin_layout Plain Layout
19117 This section is somewhat out of date.
19118  Need to describe default master documents and how children are opened when
19119  the master is.
19120  [[FIXME]]
19121 \end_layout
19122
19123 \end_inset
19124
19125
19126 \end_layout
19127
19128 \begin_layout Standard
19129 It is possible to set up cross-references between the different files.
19130  First, open all the files in question: let's call them A and B in a two
19131  file example, where B is included in A.
19132  Let's say you insert a label in A, then want to reference it in B.
19133  Open the cross-reference dialog whilst in document B, and you can select
19134  the 
19135 \begin_inset Quotes eld
19136 \end_inset
19137
19138 buffer
19139 \begin_inset Quotes erd
19140 \end_inset
19141
19142  to use.
19143 \end_layout
19144
19145 \begin_layout Subsection
19146 Bibliography Lists in all Subdocuments
19147 \end_layout
19148
19149 \begin_layout Standard
19150 If you work with child documents, you might want to have only one main bibliogra
19151 phy at the end, but still be able to have a selected bibliography for the
19152  child if you output it on its own.
19153  Here is how to achieve this.
19154 \end_layout
19155
19156 \begin_layout Standard
19157 For the main document, you just insert a bibliography inset at the place
19158  where the main bibliography has to appear (within the master file or within
19159  a child).
19160  If the bibliography inset is in the master file, the references will be
19161  inherited by all children, so they are available in the citation dialog
19162  within each child.
19163 \end_layout
19164
19165 \begin_layout Standard
19166 For child-specific bibliographies, insert bibliography insets within the
19167  child documents, at the place where the bibliography should appear when
19168  the child is compiled separately.
19169  However, the trick is to insert them into a branch (
19170 \family sans
19171 Insert\SpecialChar menuseparator
19172 Branch\SpecialChar menuseparator
19173 Insert New Branch...
19174 \family default
19175 ), e.
19176 \begin_inset space \thinspace{}
19177 \end_inset
19178
19179 g.
19180  called 
19181 \begin_inset Quotes eld
19182 \end_inset
19183
19184 Childonly
19185 \begin_inset Quotes erd
19186 \end_inset
19187
19188 .
19189  Within the children, activate the branch (
19190 \family sans
19191 Document\SpecialChar menuseparator
19192 Settings...\SpecialChar menuseparator
19193 Branches
19194 \family default
19195 ).
19196  Within the master, deactivate the branch (
19197 \family sans
19198 Document\SpecialChar menuseparator
19199 Settings...\SpecialChar menuseparator
19200 Branches
19201 \family default
19202 ).
19203  Now the child's bibliography will be ignored by the master, but considered
19204  by the child.
19205 \end_layout
19206
19207 \begin_layout Standard
19208 If you need multiple bibliographies (e.
19209 \begin_inset space \thinspace{}
19210 \end_inset
19211
19212 g., one per child in the 
19213 \emph on
19214 main document
19215 \emph default
19216 ), please refer to sec.
19217 \begin_inset space ~
19218 \end_inset
19219
19220
19221 \begin_inset CommandInset ref
19222 LatexCommand ref
19223 nolink "false"
19224 reference "subsec:Multiple-Bibliographies"
19225
19226 \end_inset
19227
19228 .
19229 \end_layout
19230
19231 \begin_layout Section
19232 \SpecialChar LyX
19233  Archives
19234 \end_layout
19235
19236 \begin_layout Standard
19237 Users sometimes need to be able to 
19238 \begin_inset Quotes eld
19239 \end_inset
19240
19241 bundle
19242 \begin_inset Quotes erd
19243 \end_inset
19244
19245  a \SpecialChar LyX
19246  file together with all the images (and other files) on which it depends,
19247  either for sending to a publisher or for sharing with a co-author.
19248  \SpecialChar LyX
19249  includes a Python script (
19250 \begin_inset Flex Code
19251 status collapsed
19252
19253 \begin_layout Plain Layout
19254 lyxpak.py
19255 \end_layout
19256
19257 \end_inset
19258
19259 ) that automates this process.
19260  To use it, you must have either the 
19261 \begin_inset Flex Code
19262 status collapsed
19263
19264 \begin_layout Plain Layout
19265 zipfile
19266 \end_layout
19267
19268 \end_inset
19269
19270  or 
19271 \begin_inset Flex Code
19272 status collapsed
19273
19274 \begin_layout Plain Layout
19275 tarfile
19276 \end_layout
19277
19278 \end_inset
19279
19280  python modules installed on your system.
19281  By default, the script prefers the 
19282 \begin_inset Flex Code
19283 status collapsed
19284
19285 \begin_layout Plain Layout
19286 gzip
19287 \end_layout
19288
19289 \end_inset
19290
19291 -compressed 
19292 \begin_inset Flex Code
19293 status collapsed
19294
19295 \begin_layout Plain Layout
19296 tar
19297 \end_layout
19298
19299 \end_inset
19300
19301  format on Unix-like systems and the 
19302 \begin_inset Flex Code
19303 status collapsed
19304
19305 \begin_layout Plain Layout
19306 zip
19307 \end_layout
19308
19309 \end_inset
19310
19311  format on Windows.
19312 \end_layout
19313
19314 \begin_layout Standard
19315 \SpecialChar LyX
19316 's configuration process will set the script up to export a `\SpecialChar LyX
19317  Archive',
19318  and this format will then be available under 
19319 \begin_inset Flex Code
19320 status collapsed
19321
19322 \begin_layout Plain Layout
19323 File\SpecialChar menuseparator
19324 Export
19325 \end_layout
19326
19327 \end_inset
19328
19329 .
19330 \end_layout
19331
19332 \begin_layout Standard
19333 Independently of the platform, the generation of a particular archive format
19334  can be forced by adding either the 
19335 \begin_inset Flex Code
19336 status collapsed
19337
19338 \begin_layout Plain Layout
19339 -t
19340 \end_layout
19341
19342 \end_inset
19343
19344  (for the 
19345 \begin_inset Flex Code
19346 status collapsed
19347
19348 \begin_layout Plain Layout
19349 tar
19350 \end_layout
19351
19352 \end_inset
19353
19354  format) or 
19355 \begin_inset Flex Code
19356 status collapsed
19357
19358 \begin_layout Plain Layout
19359 -z
19360 \end_layout
19361
19362 \end_inset
19363
19364  (for the 
19365 \begin_inset Flex Code
19366 status collapsed
19367
19368 \begin_layout Plain Layout
19369 zip
19370 \end_layout
19371
19372 \end_inset
19373
19374  format) switch to the 
19375 \begin_inset Flex Code
19376 status collapsed
19377
19378 \begin_layout Plain Layout
19379 \SpecialChar LyX
19380 \SpecialChar menuseparator
19381 \SpecialChar LyX
19382  Archive
19383 \end_layout
19384
19385 \end_inset
19386
19387  converter in 
19388 \begin_inset Flex Code
19389 status collapsed
19390
19391 \begin_layout Plain Layout
19392 Tools\SpecialChar menuseparator
19393 Preferences\SpecialChar menuseparator
19394 File Handling\SpecialChar menuseparator
19395 Converters
19396 \end_layout
19397
19398 \end_inset
19399
19400 .
19401  (Make sure you add the switch after the script name, not before it.)
19402 \end_layout
19403
19404 \begin_layout Section
19405 Fancy Headers and Footers
19406 \end_layout
19407
19408 \begin_layout Standard
19409 The default page layout is rather plain; for an 
19410 \begin_inset Flex Code
19411 status collapsed
19412
19413 \begin_layout Plain Layout
19414 article
19415 \end_layout
19416
19417 \end_inset
19418
19419  document class, all you get is a centered page number at the bottom of
19420  the page.
19421  This document uses KOMA-script's book class, so it appears to be a bit
19422  fancier.
19423  But to really put on a show, you need to set the document page style to
19424  
19425 \begin_inset Quotes eld
19426 \end_inset
19427
19428 fancy
19429 \begin_inset Quotes erd
19430 \end_inset
19431
19432 , as mentioned in the 
19433 \emph on
19434 User Guide
19435 \emph default
19436 .
19437  This section describes the \SpecialChar LaTeX
19438  code you need to insert in your \SpecialChar LaTeX
19439  preamble in
19440  order to get the desired effects.
19441 \end_layout
19442
19443 \begin_layout Standard
19444 For more information on fancy headers, see the 
19445 \begin_inset Flex Code
19446 status collapsed
19447
19448 \begin_layout Plain Layout
19449 fancyhdr
19450 \end_layout
19451
19452 \end_inset
19453
19454  package documentation.
19455  (
19456 \begin_inset Flex URL
19457 status collapsed
19458
19459 \begin_layout Plain Layout
19460
19461 https://www.ctan.org/tex-archive/help/Catalogue/entries/fancyhdr.html
19462 \end_layout
19463
19464 \end_inset
19465
19466 )
19467 \end_layout
19468
19469 \begin_layout Standard
19470 The page header is divided into three fields, not surprisingly labeled 
19471 \begin_inset Quotes eld
19472 \end_inset
19473
19474 left
19475 \begin_inset Quotes erd
19476 \end_inset
19477
19478
19479 \begin_inset Quotes eld
19480 \end_inset
19481
19482 center
19483 \begin_inset Quotes erd
19484 \end_inset
19485
19486 , and 
19487 \begin_inset Quotes eld
19488 \end_inset
19489
19490 right
19491 \begin_inset Quotes erd
19492 \end_inset
19493
19494 .
19495  The footer is also divided into these three fields.
19496  The \SpecialChar LaTeX
19497  commands to set these fields in the simplest manner are 
19498 \begin_inset Flex Code
19499 status collapsed
19500
19501 \begin_layout Plain Layout
19502
19503 \backslash
19504 lhead
19505 \end_layout
19506
19507 \end_inset
19508
19509
19510 \begin_inset Flex Code
19511 status collapsed
19512
19513 \begin_layout Plain Layout
19514
19515 \backslash
19516 chead
19517 \end_layout
19518
19519 \end_inset
19520
19521
19522 \begin_inset Flex Code
19523 status collapsed
19524
19525 \begin_layout Plain Layout
19526
19527 \backslash
19528 rhead
19529 \end_layout
19530
19531 \end_inset
19532
19533
19534 \begin_inset Flex Code
19535 status collapsed
19536
19537 \begin_layout Plain Layout
19538
19539 \backslash
19540 lfoot
19541 \end_layout
19542
19543 \end_inset
19544
19545 , etc.
19546  Suppose you wish to put your name in the upper left hand corner of each
19547  page.
19548  Simply insert the following command in the preamble: 
19549 \end_layout
19550
19551 \begin_layout Standard
19552
19553 \family typewriter
19554
19555 \backslash
19556 lhead{John Q.
19557  DocWriter}
19558 \end_layout
19559
19560 \begin_layout Standard
19561 You will now see your name in the upper left.
19562  If a field has a default entry that you would like to get rid of (often
19563  the page number appears in the central footer) simply include a command
19564  with a blank argument, e.
19565 \begin_inset space \thinspace{}
19566 \end_inset
19567
19568 g.:
19569 \end_layout
19570
19571 \begin_layout Standard
19572
19573 \family typewriter
19574
19575 \backslash
19576 cfoot{}
19577 \end_layout
19578
19579 \begin_layout Standard
19580 Let's get really fancy: lets put the section number with the word 
19581 \begin_inset Quotes eld
19582 \end_inset
19583
19584 Section
19585 \begin_inset Quotes erd
19586 \end_inset
19587
19588  (e.
19589 \begin_inset space \thinspace{}
19590 \end_inset
19591
19592 g.
19593 \begin_inset space \space{}
19594 \end_inset
19595
19596 Section 3) in the upper left, the page number (e.
19597 \begin_inset space \thinspace{}
19598 \end_inset
19599
19600 g.
19601 \begin_inset space \space{}
19602 \end_inset
19603
19604 Page 4) in the upper right, your name in the lower left, and the date in
19605  the lower right.
19606  The following commands should now appear in the preamble:
19607 \end_layout
19608
19609 \begin_layout Standard
19610
19611 \family typewriter
19612
19613 \backslash
19614 lhead{Section 
19615 \backslash
19616 thesection}
19617 \end_layout
19618
19619 \begin_layout Standard
19620
19621 \family typewriter
19622
19623 \backslash
19624 chead{}
19625 \end_layout
19626
19627 \begin_layout Standard
19628
19629 \family typewriter
19630
19631 \backslash
19632 rhead{Page 
19633 \backslash
19634 thepage}
19635 \end_layout
19636
19637 \begin_layout Standard
19638
19639 \family typewriter
19640
19641 \backslash
19642 lfoot{John Q.
19643  DocWriter}
19644 \end_layout
19645
19646 \begin_layout Standard
19647
19648 \family typewriter
19649
19650 \backslash
19651 cfoot{}
19652 \end_layout
19653
19654 \begin_layout Standard
19655
19656 \family typewriter
19657
19658 \backslash
19659 rfoot{
19660 \backslash
19661 today}
19662 \end_layout
19663
19664 \begin_layout Standard
19665 The commands 
19666 \begin_inset Flex Code
19667 status collapsed
19668
19669 \begin_layout Plain Layout
19670
19671 \backslash
19672 thesection
19673 \end_layout
19674
19675 \end_inset
19676
19677  and 
19678 \begin_inset Flex Code
19679 status collapsed
19680
19681 \begin_layout Plain Layout
19682
19683 \backslash
19684 thepage
19685 \end_layout
19686
19687 \end_inset
19688
19689  access \SpecialChar LaTeX
19690 's section and page counters, and so print out the current section
19691  and page number.
19692  
19693 \begin_inset Flex Code
19694 status collapsed
19695
19696 \begin_layout Plain Layout
19697
19698 \backslash
19699 today
19700 \end_layout
19701
19702 \end_inset
19703
19704  simply prints out today's date.
19705 \end_layout
19706
19707 \begin_layout Standard
19708 The thicknesses of the horizontal rules drawn beneath the header and above
19709  the footer can also be modified.
19710  If you don't want one of the rules, set its thickness to 0.
19711  The header rule has a default thickness of 0.4pt, the footer rule is 0pt.
19712  Use commands
19713 \family typewriter
19714  
19715 \family default
19716 like 
19717 \begin_inset Flex Code
19718 status collapsed
19719
19720 \begin_layout Plain Layout
19721
19722 \backslash
19723 renewcommand{
19724 \backslash
19725 headrulewidth}{0.4pt}
19726 \end_layout
19727
19728 \end_inset
19729
19730  and 
19731 \begin_inset Flex Code
19732 status collapsed
19733
19734 \begin_layout Plain Layout
19735
19736 \backslash
19737 renewcommand{
19738 \backslash
19739 footrulewidth}{0.4pt}
19740 \end_layout
19741
19742 \end_inset
19743
19744  to set the thicknesses.
19745 \end_layout
19746
19747 \begin_layout Standard
19748 You can switch the header/footer settings on and off for individual pages
19749  using commands like 
19750 \begin_inset Flex Code
19751 status collapsed
19752
19753 \begin_layout Plain Layout
19754
19755 \backslash
19756 thispagestyle{empty}
19757 \end_layout
19758
19759 \end_inset
19760
19761
19762 \begin_inset Flex Code
19763 status collapsed
19764
19765 \begin_layout Plain Layout
19766
19767 \backslash
19768 thispagestyle{plain}
19769 \end_layout
19770
19771 \end_inset
19772
19773 , and 
19774 \begin_inset Flex Code
19775 status collapsed
19776
19777 \begin_layout Plain Layout
19778
19779 \backslash
19780 thispagestyle{fancy}
19781 \end_layout
19782
19783 \end_inset
19784
19785 .
19786  Simply insert them in the text on the page you want changed and mark them
19787  as \SpecialChar TeX
19788  code.
19789  In fact, title pages are marked as plain by default, while following pages
19790  are marked fancy when using the global fancy setting.
19791 \end_layout
19792
19793 \begin_layout Standard
19794 As a final example, it is possible to include an image in the header or
19795  footer.
19796  Suppose you want to put a company logo in the upper lefthand corner.
19797  You might try something like
19798 \end_layout
19799
19800 \begin_layout Standard
19801
19802 \family typewriter
19803
19804 \backslash
19805 lhead{
19806 \backslash
19807 resizebox{1in}{!}{
19808 \backslash
19809 includegraphics{logo.eps}}}
19810 \end_layout
19811
19812 \begin_layout Standard
19813 \noindent
19814 (you may need to preface this with 
19815 \begin_inset Flex Code
19816 status collapsed
19817
19818 \begin_layout Plain Layout
19819
19820 \backslash
19821 usepackage{graphics}
19822 \end_layout
19823
19824 \end_inset
19825
19826  if you don't include graphics elsewhere in your document).
19827 \end_layout
19828
19829 \begin_layout Chapter
19830 \SpecialChar LyX
19831  and the World Wide Web
19832 \end_layout
19833
19834 \begin_layout Standard
19835 \SpecialChar LyX
19836  has long supported the export of documents to various web-friendly formats,
19837  such as HTML.
19838  Before version 2.0, however, HTML export was always accomplished by the
19839  use of external converters.
19840 \begin_inset Foot
19841 status collapsed
19842
19843 \begin_layout Plain Layout
19844 For details on the use of external converters with \SpecialChar LyX
19845 , see the 
19846 \emph on
19847 Converters
19848 \emph default
19849  section of the Customization manual.
19850 \end_layout
19851
19852 \end_inset
19853
19854  These fall into two large groups: there are converters that use \SpecialChar LaTeX
19855  as an
19856  intermediate format, such as 
19857 \begin_inset Flex Code
19858 status collapsed
19859
19860 \begin_layout Plain Layout
19861 htlatex
19862 \end_layout
19863
19864 \end_inset
19865
19866
19867 \begin_inset Flex Code
19868 status collapsed
19869
19870 \begin_layout Plain Layout
19871 html2latex
19872 \end_layout
19873
19874 \end_inset
19875
19876 , and 
19877 \begin_inset Flex Code
19878 status collapsed
19879
19880 \begin_layout Plain Layout
19881 plastex
19882 \end_layout
19883
19884 \end_inset
19885
19886 , relying upon \SpecialChar LyX
19887  to produce the \SpecialChar LaTeX
19888 ; and there is a converter that works directly
19889  on \SpecialChar LyX
19890  files, 
19891 \begin_inset Flex Code
19892 status collapsed
19893
19894 \begin_layout Plain Layout
19895 e\SpecialChar LyX
19896 er
19897 \end_layout
19898
19899 \end_inset
19900
19901 .
19902  All of these have different advantages and disadvantages.
19903  
19904 \end_layout
19905
19906 \begin_layout Standard
19907 The \SpecialChar LaTeX
19908 -based converters have the advantage that, in principle, they know everythin
19909 g about the exported document that \SpecialChar LaTeX
19910  does.
19911  Such converters do not care, for example, if a certain block of code was
19912  produced by \SpecialChar LyX
19913  or was Evil Red Text.
19914  These converters know about 
19915 \begin_inset Flex Code
19916 status collapsed
19917
19918 \begin_layout Plain Layout
19919 aux
19920 \end_layout
19921
19922 \end_inset
19923
19924  files, counters, and references, and can often make use of the 
19925 \begin_inset Flex Code
19926 status collapsed
19927
19928 \begin_layout Plain Layout
19929 bbl
19930 \end_layout
19931
19932 \end_inset
19933
19934  files generated by Bib\SpecialChar TeX
19935 .
19936  On the other hand, \SpecialChar LaTeX
19937  is a very hard language to parse—it is sometimes said
19938  that only \SpecialChar TeX
19939  itself understands \SpecialChar TeX
19940 —and \SpecialChar LaTeX
19941 -based converters will often choke on
19942  what seem to be quite simple constructs; complex ones can throw them completely
19943 , and as of this writing, for example, the 
19944 \emph on
19945 Embedded Objects
19946 \emph default
19947  manual will not export with 
19948 \begin_inset Flex Code
19949 status collapsed
19950
19951 \begin_layout Plain Layout
19952 htlatex
19953 \end_layout
19954
19955 \end_inset
19956
19957 , though the others will.
19958  The other issue concerns how math is handled.
19959  These converters typically convert the formulae into little pictures that
19960  are then linked from the HTML document.
19961  Since these are actually generated by \SpecialChar LaTeX
19962 , they are accurate.
19963  But they do not scale well, and just getting them to look as if they are
19964  actually meant to be in your document—so that the font sizes seem to be
19965  roughly the same—can be a challenge.
19966 \end_layout
19967
19968 \begin_layout Standard
19969 Alex Fernandez's 
19970 \begin_inset Flex Code
19971 status collapsed
19972
19973 \begin_layout Plain Layout
19974 e\SpecialChar LyX
19975 er
19976 \end_layout
19977
19978 \end_inset
19979
19980  (
19981 \begin_inset CommandInset href
19982 LatexCommand href
19983 name "http://pinchito.es/elyxer/"
19984 target "http://pinchito.es/elyxer/"
19985 literal "false"
19986
19987 \end_inset
19988
19989 ) solves some of these problems.
19990  In particular, the formulae it produces scale perfectly, since it renders
19991  math using a combination of HTML and CSS rather than converting the formulae
19992  to images.
19993  But even moderately complex formula are rendered less well than with 
19994 \begin_inset Flex Code
19995 status collapsed
19996
19997 \begin_layout Plain Layout
19998 htlatex
19999 \end_layout
20000
20001 \end_inset
20002
20003 ; this reflects the limitations of HTML.
20004 \begin_inset Foot
20005 status collapsed
20006
20007 \begin_layout Plain Layout
20008 That said, 
20009 \begin_inset Flex Code
20010 status collapsed
20011
20012 \begin_layout Plain Layout
20013 e\SpecialChar LyX
20014 er
20015 \end_layout
20016
20017 \end_inset
20018
20019  can also use jsMath and MathJax for equations, but this setting is only
20020  available globally and requires one to have access to a server that runs
20021  the backend.
20022 \end_layout
20023
20024 \end_inset
20025
20026  More importantly (as of version 1.1.1, at least), 
20027 \begin_inset Flex Code
20028 status collapsed
20029
20030 \begin_layout Plain Layout
20031 e\SpecialChar LyX
20032 er
20033 \end_layout
20034
20035 \end_inset
20036
20037  has limited support for math macros and no support for user-defined paragraph
20038  or character styles.
20039  These limitations make 
20040 \begin_inset Flex Code
20041 status collapsed
20042
20043 \begin_layout Plain Layout
20044 e\SpecialChar LyX
20045 er
20046 \end_layout
20047
20048 \end_inset
20049
20050  unsuitable for many of the documents \SpecialChar LyX
20051  users produce.
20052  In principle, of course, these problems could be solved, but the \SpecialChar LyX
20053  developers
20054  have decided to follow a different path and have made \SpecialChar LyX
20055  itself capable of
20056  writing XHTML, just as it is capable of writing \SpecialChar LaTeX
20057 , DocBook, and plaintext.
20058 \end_layout
20059
20060 \begin_layout Standard
20061 As of this writing, XHTML output remains under development and should probably
20062  be regarded as 
20063 \begin_inset Quotes eld
20064 \end_inset
20065
20066 experimental
20067 \begin_inset Quotes erd
20068 \end_inset
20069
20070 .
20071 \begin_inset Foot
20072 status collapsed
20073
20074 \begin_layout Plain Layout
20075 The file 
20076 \begin_inset Flex Code
20077 status collapsed
20078
20079 \begin_layout Plain Layout
20080 development/HTML/HTML.notes
20081 \end_layout
20082
20083 \end_inset
20084
20085 , which can be found in the \SpecialChar LyX
20086  source tree or 
20087 \begin_inset CommandInset href
20088 LatexCommand href
20089 name "accessed online"
20090 target "https://www.lyx.org/trac/browser/lyxgit/development/HTML/HTML.notes?rev=master"
20091 literal "false"
20092
20093 \end_inset
20094
20095 , usually contains up-to-date information about the state of XHTML output.
20096  See also the list of XHTML bugs on 
20097 \begin_inset CommandInset href
20098 LatexCommand href
20099 name "the bug tracker"
20100 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"
20101 literal "false"
20102
20103 \end_inset
20104
20105 .
20106 \end_layout
20107
20108 \end_inset
20109
20110  Still, the developers have chosen this approach because it has several
20111  potential advantages over the other two.
20112 \end_layout
20113
20114 \begin_layout Standard
20115 These advantages are primarily due to the fact that the XHTML output routines,
20116  since they are part of \SpecialChar LyX
20117 , know everything \SpecialChar LyX
20118  knows about the document being
20119  exported.
20120 \begin_inset Foot
20121 status collapsed
20122
20123 \begin_layout Plain Layout
20124 Another advantage is that, since these routines are internal to \SpecialChar LyX
20125 , they are
20126  immune to changes in \SpecialChar LyX
20127 's file format, or to changes in the semantics of
20128  existing insets.
20129 \end_layout
20130
20131 \end_inset
20132
20133  So they know about the table of contents (as displayed in the outline),
20134  about the counters associated with different paragraph styles, and about
20135  user-defined styles.
20136  The XHTML output routines know what \SpecialChar LyX
20137  knows about internationalization,
20138  too, so they will output 
20139 \begin_inset Quotes eld
20140 \end_inset
20141
20142 Chapter 1
20143 \begin_inset Quotes erd
20144 \end_inset
20145
20146  or 
20147 \begin_inset Quotes eld
20148 \end_inset
20149
20150
20151 \lang ngerman
20152 Kapitel
20153 \lang english
20154  1
20155 \begin_inset Quotes erd
20156 \end_inset
20157
20158 , depending upon the language in effect at the time.
20159  
20160 \end_layout
20161
20162 \begin_layout Standard
20163 Quite generally, the output routines know what \SpecialChar LyX
20164  knows about document layout,
20165  that is, about how the document is to be rendered on screen.
20166  We use this information when we output the document as XHTML.
20167  In particular, \SpecialChar LyX
20168  
20169 \emph on
20170 automatically
20171 \emph default
20172  generates CSS style information corresponding to the layout information
20173  it uses to render the document on screen: if section headings are supposed
20174  to be sans-serif and bold as seen in \SpecialChar LyX
20175 , then (by default) they will be sans-seri
20176 f and bold when viewed in a web browser, too.
20177  And this is true not just for pre-defined styles, like Section, but for
20178  any style, including user-defined styles.
20179  Indeed, the XHTML output routines make no distinction between user-defined
20180  paragraph and 
20181 \change_deleted 244031559 1603876931
20182 character
20183 \change_inserted 244031559 1603876940
20184 text
20185 \change_unchanged
20186  styles and \SpecialChar LyX
20187 's own pre-defined styles: in each case, everything \SpecialChar LyX
20188  knows about
20189  the styles is contained in the layout files.
20190  And much the same is true as regards pre-defined textual insets, such as
20191  footnotes, and various custom insets.
20192  
20193 \end_layout
20194
20195 \begin_layout Standard
20196 The result is that XHTML output can be customized and extended in exactly
20197  the same way \SpecialChar LaTeX
20198  output can be customized and extended: through layout files
20199  and modules.
20200  See chapter five of the 
20201 \emph on
20202 Customization 
20203 \emph default
20204 manual for the details.
20205 \end_layout
20206
20207 \begin_layout Standard
20208 The remainder of this chapter contains more detailed information on XHTML
20209  output, its limitations, and ways to work around those limitations.
20210 \end_layout
20211
20212 \begin_layout Section
20213 Math Output in XHTML
20214 \end_layout
20215
20216 \begin_layout Standard
20217 \SpecialChar LyX
20218  offers four choices for how math is rendered.
20219  These have various advantages and disadvantages:
20220 \end_layout
20221
20222 \begin_layout Itemize
20223 MathML
20224 \begin_inset Newline newline
20225 \end_inset
20226
20227 MathML is a dialect of XML designed specifically for mathematics on the
20228  web, and it typically renders very well in browsers that support it.
20229  The disadvantage is that not all browsers support MathML, and support is
20230  not complete even in the Gecko-based browsers, such as Firefox.
20231 \begin_inset Newline newline
20232 \end_inset
20233
20234 If \SpecialChar LyX
20235  is unable to render a formula as MathML—for example, if the formula
20236  uses the 
20237 \begin_inset Flex Code
20238 status collapsed
20239
20240 \begin_layout Plain Layout
20241 xymatrix
20242 \end_layout
20243
20244 \end_inset
20245
20246  package or ERT—then it will instead output the formula as an image.
20247  
20248 \end_layout
20249
20250 \begin_layout Itemize
20251 HTML
20252 \begin_inset Newline newline
20253 \end_inset
20254
20255 As mentioned above, 
20256 \begin_inset Flex Code
20257 status collapsed
20258
20259 \begin_layout Plain Layout
20260 elyxer
20261 \end_layout
20262
20263 \end_inset
20264
20265  outputs math as HTML, styled by CSS.
20266 \begin_inset Foot
20267 status collapsed
20268
20269 \begin_layout Plain Layout
20270 \SpecialChar LyX
20271  has borrowed some of the CSS for its HTML output from 
20272 \begin_inset Flex Code
20273 status collapsed
20274
20275 \begin_layout Plain Layout
20276 elyxer
20277 \end_layout
20278
20279 \end_inset
20280
20281 .
20282 \end_layout
20283
20284 \end_inset
20285
20286  For simple formulae, this can work quite well, though with more complicated
20287  formulae it tends to break down.
20288  Still, this method has the advantage that it is very widely supported and
20289  so it may be appropriate for documents that contain only a little, fairly
20290  simple math.
20291 \begin_inset Newline newline
20292 \end_inset
20293
20294 If Lyx is unable to render a formula as HTML—for example, if the formula
20295  uses the 
20296 \begin_inset Flex Code
20297 status collapsed
20298
20299 \begin_layout Plain Layout
20300 xymatrix
20301 \end_layout
20302
20303 \end_inset
20304
20305  package or ERT—then it will instead output the formula as an image.
20306  
20307 \end_layout
20308
20309 \begin_layout Itemize
20310 Images
20311 \begin_inset Newline newline
20312 \end_inset
20313
20314 Like 
20315 \begin_inset Flex Code
20316 status collapsed
20317
20318 \begin_layout Plain Layout
20319 htlatex
20320 \end_layout
20321
20322 \end_inset
20323
20324 , \SpecialChar LyX
20325  will output formulae as images, the very same images, in fact, that are
20326  used for instant preview.
20327 \begin_inset Foot
20328 status collapsed
20329
20330 \begin_layout Plain Layout
20331 Instant preview does 
20332 \emph on
20333 not 
20334 \emph default
20335 have to be on for images to be output, however.
20336 \end_layout
20337
20338 \end_inset
20339
20340  The advantage to this method is that the images are simply generated by
20341  \SpecialChar LaTeX
20342 , so they are very accurate.
20343  The disadvantage, as mentioned earlier, is that these are bitmapped images,
20344  so they do not scale terribly well, and one cannot copy them, etc.
20345 \begin_inset Newline newline
20346 \end_inset
20347
20348 The size of the images can be controlled by setting the 
20349 \begin_inset Quotes eld
20350 \end_inset
20351
20352 Math Images Scaling
20353 \begin_inset Quotes erd
20354 \end_inset
20355
20356  parameter under 
20357 \begin_inset Flex Noun
20358 status collapsed
20359
20360 \begin_layout Plain Layout
20361 Document\SpecialChar menuseparator
20362 Settings\SpecialChar menuseparator
20363 Formats
20364 \end_layout
20365
20366 \end_inset
20367
20368 .
20369 \begin_inset Foot
20370 status collapsed
20371
20372 \begin_layout Plain Layout
20373 For those who want to know, this controls the resolution of the image in
20374  dots per inch and is based upon a default of 75 dpi.
20375 \end_layout
20376
20377 \end_inset
20378
20379
20380 \begin_inset Newline newline
20381 \end_inset
20382
20383 If \SpecialChar LyX
20384  for some reason fails to create an image for a formula (e.g., if a required
20385  \SpecialChar LaTeX
20386  package is not installed), then it will fall back to outputing the raw
20387  \SpecialChar LaTeX
20388 .
20389 \end_layout
20390
20391 \begin_layout Itemize
20392 \SpecialChar LaTeX
20393
20394 \begin_inset Newline newline
20395 \end_inset
20396
20397 Finally, \SpecialChar LyX
20398  will happily output math as \SpecialChar LaTeX
20399 .
20400  As well as being the output of last resort, this method can be used with
20401  such tools as 
20402 \begin_inset CommandInset href
20403 LatexCommand href
20404 name "jsMath"
20405 target "http://www.math.union.edu/~dpvc/jsMath/"
20406 literal "false"
20407
20408 \end_inset
20409
20410 , which uses JavaScript to render \SpecialChar LaTeX
20411  embedded in HTML documents.
20412  \SpecialChar LyX
20413  wraps the \SpecialChar LaTeX
20414  in either a 
20415 \begin_inset Flex Code
20416 status collapsed
20417
20418 \begin_layout Plain Layout
20419 span
20420 \end_layout
20421
20422 \end_inset
20423
20424  (for inline formulas) or 
20425 \begin_inset Flex Code
20426 status collapsed
20427
20428 \begin_layout Plain Layout
20429 div
20430 \end_layout
20431
20432 \end_inset
20433
20434  (for displayed formulas) with 
20435 \begin_inset Flex Code
20436 status collapsed
20437
20438 \begin_layout Plain Layout
20439 class='math'
20440 \end_layout
20441
20442 \end_inset
20443
20444 , as is required for jsMath.
20445 \end_layout
20446
20447 \begin_layout Standard
20448 One of these output methods must be selected under 
20449 \begin_inset Flex Noun
20450 status collapsed
20451
20452 \begin_layout Plain Layout
20453 Document\SpecialChar menuseparator
20454 Settings\SpecialChar menuseparator
20455 Formats
20456 \end_layout
20457
20458 \end_inset
20459
20460 .
20461  By default, \SpecialChar LyX
20462  outputs MathML.
20463  This is a document-wide setting, therefore.
20464 \end_layout
20465
20466 \begin_layout Standard
20467 Eventually, \SpecialChar LyX
20468  will offer the user the option to select an alternate output
20469  method for a particular inset, say, one that isn't being rendered very
20470  well by MathML.
20471 \begin_inset Foot
20472 status collapsed
20473
20474 \begin_layout Plain Layout
20475 That said, since \SpecialChar LyX
20476  falls back to images if the inset contains ERT, then one
20477  can force output as an image by putting some harmless ERT into the math,
20478  for example: 
20479 \begin_inset Formula $a=b\relax$
20480 \end_inset
20481
20482 .
20483 \end_layout
20484
20485 \end_inset
20486
20487
20488 \end_layout
20489
20490 \begin_layout Section
20491 Bibliography and Citations
20492 \end_layout
20493
20494 \begin_layout Standard
20495 XHTML output fully supports bibliographies and citations.
20496  
20497 \end_layout
20498
20499 \begin_layout Standard
20500 Citation labels are generated by the same machinery that generates \SpecialChar LyX
20501 's on-screen
20502  labels, so the labels will look in the output much as they do in \SpecialChar LyX
20503 , though
20504  better.
20505  If you are using numerical citations, then \SpecialChar LyX
20506  will output numerical labels,
20507  such as [1] or [17], rather than simply showing the citation key in square
20508  brackets, as it does on-screen.
20509  If you are using author-year citations, then \SpecialChar LyX
20510  will add lowercase letters
20511  to the years, just as Bib\SpecialChar TeX
20512  does, if it finds more than one citation for
20513  a given author-year combination.
20514  The labels will be printed with the bibliography entries.
20515  Note that there is, at present, no way to customize the appearance of the
20516  labels, for example, to choose between square brackets and parentheses.
20517 \end_layout
20518
20519 \begin_layout Standard
20520 Bibliography output is handled by the same machinery that handles the presentati
20521 on of reference information in the citation dialog, so you will see in the
20522  XHTML output pretty much what you would see if you were to look at a given
20523  entry in the citation dialog.
20524  The formatting can be customized in your layout file or, preferably, in
20525  a module.
20526  See the 
20527 \emph on
20528 Customization
20529 \emph default
20530  manual for the details.
20531 \end_layout
20532
20533 \begin_layout Standard
20534 The main defect at present is that cross-referenced information is printed
20535  with every entry with which it is associated.
20536  So you can see things like this:
20537 \end_layout
20538
20539 \begin_layout Quote
20540 Jason Stanley, 
20541 \begin_inset Quotes eld
20542 \end_inset
20543
20544 Context and Logical Form
20545 \begin_inset Quotes erd
20546 \end_inset
20547
20548 , in 
20549 \emph on
20550 Language in Context: Selected Essays
20551 \emph default
20552  (Oxford: Oxford University Press, 2007), pp.
20553  30–68.
20554 \end_layout
20555
20556 \begin_layout Quote
20557 Jason Stanley, 
20558 \begin_inset Quotes eld
20559 \end_inset
20560
20561 Semantics in Context
20562 \begin_inset Quotes erd
20563 \end_inset
20564
20565 , in 
20566 \emph on
20567 Language in Context: Selected Essays
20568 \emph default
20569  (Oxford: Oxford University Press, 2007), pp.
20570  201–30.
20571 \end_layout
20572
20573 \begin_layout Standard
20574 This should be fixed before long.
20575 \end_layout
20576
20577 \begin_layout Standard
20578 There is no support at present for sectioned bibliographies.
20579  If you have multiple bibliographies, then \SpecialChar LyX
20580  will print the same bibliography
20581  over and over.
20582 \end_layout
20583
20584 \begin_layout Section
20585 Indexes
20586 \end_layout
20587
20588 \begin_layout Standard
20589 \SpecialChar LyX
20590  will happily export indexes as XHTML, but with certain limitations at the
20591  moment.
20592 \end_layout
20593
20594 \begin_layout Standard
20595 Index export will be most reliable when you do not attempt to use the fancy
20596  constructs that are described in the section on indexes in the 
20597 \emph on
20598 User's Guide
20599 \emph default
20600 .
20601 \begin_inset Foot
20602 status collapsed
20603
20604 \begin_layout Plain Layout
20605 The main issue here is that \SpecialChar LyX
20606  itself does not really handle these.
20607  It just lets you enter what you would have to enter in raw \SpecialChar LaTeX
20608 .
20609 \end_layout
20610
20611 \end_inset
20612
20613  We'll describe how they are handled using the subsection headings from
20614  that section.
20615 \end_layout
20616
20617 \begin_layout Itemize
20618 Grouping Index Entries (aka, sub-entries): \SpecialChar LyX
20619  makes an effort to support these,
20620  but the entries must be separated by 
20621 \begin_inset Quotes eld
20622 \end_inset
20623
20624  ! 
20625 \begin_inset Quotes erd
20626 \end_inset
20627
20628 , that is, there must be spaces around the exclamation point.
20629  This is because it is otherwise too difficult to check for escaped exclamation
20630  points, ones in math, and so forth.
20631 \end_layout
20632
20633 \begin_layout Itemize
20634 Page Ranges: There is no support at all for page ranges, since these make
20635  no sense with XHMTL.
20636  Instead, you will just get two index entries, one at either end.
20637 \end_layout
20638
20639 \begin_layout Itemize
20640 Cross-referencing: There is no support for cross-referencing.
20641  If \SpecialChar LyX
20642  finds an entry containing the 
20643 \begin_inset Quotes eld
20644 \end_inset
20645
20646 |see\SpecialChar ldots
20647
20648 \begin_inset Quotes erd
20649 \end_inset
20650
20651  construct, it is just dropped, and the rest is treated as an ordinary index
20652  entry.
20653 \end_layout
20654
20655 \begin_layout Itemize
20656 Index Entry Order: \SpecialChar LyX
20657  does support attempts to fix the sorting order.
20658  It will take what is before the first `@' it finds and use that for sorting,
20659  taking what follows the first `@' to be the actual entry.
20660  At present, \SpecialChar LyX
20661  does not check for escaped `@', so do not try to index email
20662  addresses.
20663 \end_layout
20664
20665 \begin_layout Itemize
20666 Index Entry Layout: You can format entries by using the text style dialog,
20667  or by using any other method available within \SpecialChar LyX
20668  itself.
20669  There is no support for constructs like: 
20670 \begin_inset Quotes eld
20671 \end_inset
20672
20673 entry|textbf
20674 \begin_inset Quotes erd
20675 \end_inset
20676
20677 .
20678  Indeed, if \SpecialChar LyX
20679  finds a pipe symbol, `|', in an entry, it will delete it and
20680  everything that follows it.
20681 \end_layout
20682
20683 \begin_layout Itemize
20684 Multiple Indexes: There is no support for multiple indexes.
20685  Rather, all index entries will be printed as one large index.
20686  To avoid our printing several versions of the index, we print only the
20687  main index, so make sure you have one.
20688 \end_layout
20689
20690 \begin_layout Section
20691 Nomenclature and Glossary
20692 \end_layout
20693
20694 \begin_layout Standard
20695 There is at present no support for glossaries.
20696  Adding it would be fairly trivial, and welcome.
20697 \end_layout
20698
20699 \begin_layout Chapter
20700
20701 \change_inserted 1075283030 1616534180
20702 DocBook Output
20703 \end_layout
20704
20705 \begin_layout Standard
20706
20707 \change_inserted 1075283030 1616534386
20708 Apart from HTML, \SpecialChar LyX
20709  can generate documents in the DocBook XML vocabulary.
20710  With versions 2.3 and before, only select templates could be used to generate
20711  DocBook documents (only version 4).
20712  Starting with \SpecialChar LyX
20713  2.4, most \SpecialChar LyX
20714  layouts can generate valid DocBook documents (only
20715  version 5).
20716  This feature is built into \SpecialChar LyX
20717  and does not require the use of external tools.
20718 \end_layout
20719
20720 \begin_layout Standard
20721
20722 \change_inserted 1075283030 1616534437
20723 The result is that the DocBook output can be customized and extended in
20724  exactly the same way \SpecialChar LaTeX
20725  output can be customized and extended: through layout
20726  files and modules.
20727  See chapter five of the 
20728 \emph on
20729 Customization 
20730 \emph default
20731 manual for the details.
20732 \end_layout
20733
20734 \begin_layout Standard
20735
20736 \change_inserted 1075283030 1616534475
20737 Most \SpecialChar LyX
20738  features are supported with DocBook, like math output.
20739 \end_layout
20740
20741 \begin_layout Itemize
20742
20743 \change_inserted 1075283030 1616534741
20744 Math output is performed mostly in MathML (the major exception being constructio
20745 ns not supported by \SpecialChar LyX
20746 , i.e.
20747  ERTs).
20748  All formulae are also available in raw \SpecialChar TeX
20749  in the DocBook output for further
20750  processing.
20751 \end_layout
20752
20753 \begin_layout Itemize
20754
20755 \change_inserted 1075283030 1616534852
20756 Bibliographies and citations are implemented, including with an external
20757  BibTeX file.
20758  Bibliography entries are not prerendered when the detailed information
20759  are available, but rather output with the standard DocBook constructs.
20760  The external DocBook processor is expected to handle the rendering of entries.
20761 \end_layout
20762
20763 \begin_layout Itemize
20764
20765 \change_inserted 1075283030 1616534863
20766 Indexes are supported, including multiple indices.
20767  Grouping (with 
20768 \family typewriter
20769 !
20770 \family default
20771 ), page ranges, and cross-references (
20772 \family typewriter
20773 |see
20774 \family default
20775 ) are supported, with the exception of the same symbols escaped.
20776  Entry order (
20777 \family typewriter
20778 @
20779 \family default
20780 ) and layout (
20781 \family typewriter
20782 |mathbf
20783 \family default
20784 ) are not supported.
20785  There is no support for escaping of index entries.
20786 \end_layout
20787
20788 \begin_layout Itemize
20789
20790 \change_inserted 1075283030 1616534884
20791 Glossaries are implemented.
20792 \end_layout
20793
20794 \begin_layout Standard
20795
20796 \change_inserted 1075283030 1616534894
20797 Two major parameters can be set at the document level.
20798 \end_layout
20799
20800 \begin_layout Itemize
20801
20802 \change_inserted 1075283030 1616534948
20803 Format for tables: \SpecialChar LyX
20804  can generate tables either as HTML (default value) or
20805  CALS, depending on the user's requirements.
20806  Most DocBook processors accept both formats.
20807 \end_layout
20808
20809 \begin_layout Itemize
20810
20811 \change_inserted 1075283030 1616535006
20812 MathML prefix: in DocBook, MathML is included within its own name space,
20813  unlike HTML.
20814  The implication is that there must be an indication of the tags belonging
20815  to the MathML standard.
20816  Three choices are offered: 
20817 \end_layout
20818
20819 \begin_deeper
20820 \begin_layout Itemize
20821
20822 \change_inserted 1075283030 1616535044
20823 Inline: the MathML name space is defined for each formula (using the 
20824 \family typewriter
20825 xmlns
20826 \family default
20827  attribute on each formula)
20828 \end_layout
20829
20830 \begin_layout Itemize
20831
20832 \change_inserted 1075283030 1616535090
20833 With the 
20834 \family typewriter
20835 m
20836 \family default
20837  prefix (default): the MathML name space is defined at the document level
20838  (using the 
20839 \family typewriter
20840 xmlns:m
20841 \family default
20842  attribute on the root element).
20843  Each MathML is prefixed with 
20844 \family typewriter
20845 m
20846 \family default
20847 : for instance, 
20848 \family typewriter
20849 m:math
20850 \end_layout
20851
20852 \begin_layout Itemize
20853
20854 \change_inserted 1075283030 1616620405
20855 With the 
20856 \family typewriter
20857 mml
20858 \family default
20859  prefix: similar to the 
20860 \family typewriter
20861 m
20862 \family default
20863  option, but with 
20864 \family typewriter
20865 mml
20866 \end_layout
20867
20868 \begin_layout Standard
20869
20870 \change_inserted 1075283030 1616620470
20871 This option is especially useful if you want \SpecialChar LyX
20872  to match your personal style
20873  or to work with buggy software that only accepts one prefix for MathML.
20874 \change_unchanged
20875
20876 \end_layout
20877
20878 \end_deeper
20879 \begin_layout Chapter
20880 The \SpecialChar LyX
20881  Server
20882 \end_layout
20883
20884 \begin_layout Section
20885 Introduction
20886 \end_layout
20887
20888 \begin_layout Standard
20889 The `\SpecialChar LyX
20890  server' allows other programs to talk to \SpecialChar LyX
20891 , invoke \SpecialChar LyX
20892  commands, and retrieve
20893  information about the \SpecialChar LyX
20894  internal state.
20895  This is only intended for advanced users, but they should find it useful.
20896  It is by writing to the \SpecialChar LyX
20897  server, for example, that bibliography managers,
20898  such as JabRef, are able to 
20899 \begin_inset Quotes eld
20900 \end_inset
20901
20902 push
20903 \begin_inset Quotes erd
20904 \end_inset
20905
20906  citations to \SpecialChar LyX
20907 .
20908 \end_layout
20909
20910 \begin_layout Section
20911 Starting the \SpecialChar LyX
20912  Server
20913 \begin_inset CommandInset label
20914 LatexCommand label
20915 name "sec:Starting-the-Server"
20916
20917 \end_inset
20918
20919
20920 \end_layout
20921
20922 \begin_layout Standard
20923 The \SpecialChar LyX
20924  server works through the use of a pair of named pipes.
20925  These are usually located in 
20926 \begin_inset Flex Code
20927 status collapsed
20928
20929 \begin_layout Plain Layout
20930 UserDir
20931 \end_layout
20932
20933 \end_inset
20934
20935 , (except on Windows, where 
20936 \emph on
20937 local
20938 \emph default
20939  named pipes are special objects located in 
20940 \begin_inset Flex Code
20941 status collapsed
20942
20943 \begin_layout Plain Layout
20944
20945 \backslash
20946
20947 \backslash
20948 .
20949 \backslash
20950 pipe
20951 \end_layout
20952
20953 \end_inset
20954
20955 ) and have the names 
20956 \begin_inset Quotes eld
20957 \end_inset
20958
20959
20960 \begin_inset Flex Code
20961 status collapsed
20962
20963 \begin_layout Plain Layout
20964 lyxpipe.in
20965 \end_layout
20966
20967 \end_inset
20968
20969
20970 \begin_inset Quotes erd
20971 \end_inset
20972
20973  and 
20974 \begin_inset Quotes eld
20975 \end_inset
20976
20977
20978 \begin_inset Flex Code
20979 status collapsed
20980
20981 \begin_layout Plain Layout
20982 lyxpipe.out
20983 \end_layout
20984
20985 \end_inset
20986
20987
20988 \begin_inset Quotes erd
20989 \end_inset
20990
20991 .
20992  External programs write into 
20993 \begin_inset Flex Code
20994 status collapsed
20995
20996 \begin_layout Plain Layout
20997 lyxpipe.in
20998 \end_layout
20999
21000 \end_inset
21001
21002  and read back data from 
21003 \begin_inset Flex Code
21004 status collapsed
21005
21006 \begin_layout Plain Layout
21007 lyxpipe.out
21008 \end_layout
21009
21010 \end_inset
21011
21012 .
21013  The stem of the pipe names can be defined in the 
21014 \begin_inset Flex Noun
21015 status collapsed
21016
21017 \begin_layout Plain Layout
21018 Tools\SpecialChar menuseparator
21019 Preferences
21020 \end_layout
21021
21022 \end_inset
21023
21024  dialog, for example 
21025 \begin_inset Flex Code
21026 status collapsed
21027
21028 \begin_layout Plain Layout
21029 "/home/myhome/lyxpipe"
21030 \end_layout
21031
21032 \end_inset
21033
21034 , or 
21035 \begin_inset Flex Code
21036 status collapsed
21037
21038 \begin_layout Plain Layout
21039 "
21040 \backslash
21041
21042 \backslash
21043 .
21044 \backslash
21045 pipe
21046 \backslash
21047 lyxpipe"
21048 \end_layout
21049
21050 \end_inset
21051
21052  on Windows (where any working path instead of lyxpipe can be used, for
21053  example 
21054 \begin_inset Flex Code
21055 status collapsed
21056
21057 \begin_layout Plain Layout
21058 "
21059 \backslash
21060
21061 \backslash
21062 .
21063 \backslash
21064 pipe
21065 \backslash
21066 my
21067 \backslash
21068 lyx
21069 \backslash
21070 pipe"
21071 \end_layout
21072
21073 \end_inset
21074
21075  would also work).
21076  You 
21077 \emph on
21078 must
21079 \emph default
21080  configure this manually in order for the server to start.
21081 \end_layout
21082
21083 \begin_layout Standard
21084 \SpecialChar LyX
21085  will add the '
21086 \begin_inset Flex Code
21087 status collapsed
21088
21089 \begin_layout Plain Layout
21090 .in
21091 \end_layout
21092
21093 \end_inset
21094
21095 ' and '
21096 \begin_inset Flex Code
21097 status collapsed
21098
21099 \begin_layout Plain Layout
21100 .out
21101 \end_layout
21102
21103 \end_inset
21104
21105 ' to create the pipes.
21106  If one of the pipes already exists, \SpecialChar LyX
21107  will assume that another \SpecialChar LyX
21108  process
21109  is already running and will not start the server.
21110  On POSIX (Unix like) systems, if for some other reason, an unused 
21111 \begin_inset Quotes eld
21112 \end_inset
21113
21114 stale
21115 \begin_inset Quotes erd
21116 \end_inset
21117
21118  pipe is left in existence when \SpecialChar LyX
21119  closes, then \SpecialChar LyX
21120  will try to delete it.
21121  If this fails for some reason, you will need to delete the pipes manually
21122  and then restart \SpecialChar LyX
21123 .
21124  On Windows, pipes are deleted by the OS on program termination or crash,
21125  so 
21126 \begin_inset Quotes eld
21127 \end_inset
21128
21129 stale
21130 \begin_inset Quotes erd
21131 \end_inset
21132
21133  pipes should not be possible.
21134 \end_layout
21135
21136 \begin_layout Standard
21137 To have several \SpecialChar LyX
21138  processes with servers at the same time, you have to use
21139  different configurations, perhaps by using separate user directories, each
21140  with its own 
21141 \begin_inset Flex Code
21142 status collapsed
21143
21144 \begin_layout Plain Layout
21145 preferences
21146 \end_layout
21147
21148 \end_inset
21149
21150  file, for each process.
21151 \end_layout
21152
21153 \begin_layout Standard
21154 If you are developing a client program, you might find it useful to enable
21155  debugging information from the \SpecialChar LyX
21156  server.
21157  Do this by starting \SpecialChar LyX
21158  as 
21159 \begin_inset Flex Code
21160 status collapsed
21161
21162 \begin_layout Plain Layout
21163 lyx -dbg lyxserver
21164 \end_layout
21165
21166 \end_inset
21167
21168 .
21169 \end_layout
21170
21171 \begin_layout Standard
21172 You can find a complete example client written in C++ in the source distribution
21173  as 
21174 \begin_inset Flex Code
21175 status collapsed
21176
21177 \begin_layout Plain Layout
21178 development/lyxserver/server_monitor.cpp
21179 \end_layout
21180
21181 \end_inset
21182
21183 .
21184 \end_layout
21185
21186 \begin_layout Standard
21187 Another useful tool is the command-line based client found in 
21188 \begin_inset Flex Code
21189 status collapsed
21190
21191 \begin_layout Plain Layout
21192 src/client/lyxclient
21193 \end_layout
21194
21195 \end_inset
21196
21197 .
21198 \end_layout
21199
21200 \begin_layout Section
21201 Normal communication
21202 \end_layout
21203
21204 \begin_layout Standard
21205 To issue a \SpecialChar LyX
21206  call, the client writes a line of ASCII text into the input
21207  pipe.
21208  This line has the following format:
21209 \end_layout
21210
21211 \begin_layout Quote
21212 LYXCMD:
21213 \emph on
21214 clientname
21215 \emph default
21216 :
21217 \emph on
21218 function
21219 \emph default
21220 :
21221 \emph on
21222 argument
21223 \end_layout
21224
21225 \begin_layout Description
21226 clientname is a name that the client can choose arbitrarily.
21227  Its only use is that \SpecialChar LyX
21228  will echo it if it sends an answer—so a client can
21229  dispatch results from different requesters.
21230 \end_layout
21231
21232 \begin_layout Description
21233 function is the function you want \SpecialChar LyX
21234  to perform.
21235  It is the same as the commands you'd use in the minibuffer.
21236 \end_layout
21237
21238 \begin_layout Description
21239 argument is an optional argument which is meaningful only to some functions
21240  (for instance, the 
21241 \begin_inset Quotes eld
21242 \end_inset
21243
21244 self-insert
21245 \begin_inset Quotes erd
21246 \end_inset
21247
21248  LFUN will insert the argument as text at the cursor position).
21249 \end_layout
21250
21251 \begin_layout Standard
21252 The answer from \SpecialChar LyX
21253  will arrive in the output pipe and be of the form
21254 \end_layout
21255
21256 \begin_layout Quote
21257 INFO:
21258 \emph on
21259 clientname
21260 \emph default
21261 :
21262 \emph on
21263 function
21264 \emph default
21265 :
21266 \emph on
21267 data
21268 \end_layout
21269
21270 \begin_layout Standard
21271 where 
21272 \emph on
21273 clientname
21274 \emph default
21275  and 
21276 \emph on
21277 function
21278 \emph default
21279  are just echoed from the command request, while 
21280 \emph on
21281 data
21282 \emph default
21283  is more or less useful information filled according to how the command
21284  execution worked out.
21285  Some commands, such as 
21286 \begin_inset Quotes eld
21287 \end_inset
21288
21289 font-state
21290 \begin_inset Quotes erd
21291 \end_inset
21292
21293 , will return information about the internal state of \SpecialChar LyX
21294 , while other will
21295  return an empty data-response.
21296  This means that the command execution went fine.
21297 \end_layout
21298
21299 \begin_layout Standard
21300 In case of errors, the response from \SpecialChar LyX
21301  will have this form
21302 \end_layout
21303
21304 \begin_layout Quote
21305 ERROR:
21306 \emph on
21307 clientname
21308 \emph default
21309 :
21310 \emph on
21311 function
21312 \emph default
21313 :
21314 \emph on
21315 error message
21316 \end_layout
21317
21318 \begin_layout Standard
21319 where the 
21320 \emph on
21321 error message
21322 \emph default
21323  should contain an explanation of why the command failed.
21324 \end_layout
21325
21326 \begin_layout Standard
21327 Examples:
21328 \end_layout
21329
21330 \begin_layout LyX-Code
21331 echo "LYXCMD:test:beginning-of-buffer:" >~/.lyxpipe.in
21332 \begin_inset Newline newline
21333 \end_inset
21334
21335 echo "LYXCMD:test:get-xy:" >~/.lyxpipe.in
21336 \begin_inset Newline newline
21337 \end_inset
21338
21339 read a <~/.lyxpipe.out
21340 \begin_inset Newline newline
21341 \end_inset
21342
21343 echo $a
21344 \end_layout
21345
21346 \begin_layout Subsection
21347 AppleScript (Mac OS X)
21348 \end_layout
21349
21350 \begin_layout Standard
21351 Since \SpecialChar LyX
21352  2.1, \SpecialChar LyX
21353  supports basic interactions with AppleScript for normal communicatio
21354 n through the command run.
21355  This command takes a direct argument (the 
21356 \series bold
21357 function
21358 \series default
21359  to perform) and an optional argument.
21360  It either returns the output of the function or triggers an error with
21361  the error message and code.
21362 \end_layout
21363
21364 \begin_layout Standard
21365 Example:
21366 \end_layout
21367
21368 \begin_layout LyX-Code
21369 tell application "\SpecialChar LyX
21370 "
21371 \end_layout
21372
21373 \begin_layout LyX-Code
21374   try
21375 \end_layout
21376
21377 \begin_layout LyX-Code
21378     -- Stores the current file name into f
21379 \end_layout
21380
21381 \begin_layout LyX-Code
21382     set f to (run "server-get-filename" with argument "")
21383 \end_layout
21384
21385 \begin_layout LyX-Code
21386     on error the error_message number the error_number
21387 \end_layout
21388
21389 \begin_layout LyX-Code
21390       display dialog "Error: " & the error_number & ".
21391  " ¬
21392 \end_layout
21393
21394 \begin_layout LyX-Code
21395               & the error_message buttons {"OK"} default button 1
21396 \end_layout
21397
21398 \begin_layout LyX-Code
21399   end try
21400 \end_layout
21401
21402 \begin_layout LyX-Code
21403 end tell
21404 \end_layout
21405
21406 \begin_layout Section
21407 Notification
21408 \end_layout
21409
21410 \begin_layout Standard
21411 \SpecialChar LyX
21412  can notify clients of events going on asynchronously.
21413  Currently it will only do this if the user binds a key sequence with the
21414  function 
21415 \begin_inset Quotes eld
21416 \end_inset
21417
21418 notify
21419 \begin_inset Quotes erd
21420 \end_inset
21421
21422 .
21423  The format of the string \SpecialChar LyX
21424  sends is as follows:
21425 \end_layout
21426
21427 \begin_layout Quote
21428 \begin_inset Flex Code
21429 status collapsed
21430
21431 \begin_layout Plain Layout
21432 NOTIFY:
21433 \end_layout
21434
21435 \end_inset
21436
21437
21438 \emph on
21439 key-sequence
21440 \end_layout
21441
21442 \begin_layout Standard
21443 where 
21444 \emph on
21445 key-sequence
21446 \emph default
21447  is the printed representation of the key sequence that was actually typed
21448  by the user.
21449 \end_layout
21450
21451 \begin_layout Standard
21452 This mechanism can be used to extend \SpecialChar LyX
21453 's command set and implement macros.
21454  Bind some key sequence to 
21455 \begin_inset Quotes eld
21456 \end_inset
21457
21458 notify
21459 \begin_inset Quotes erd
21460 \end_inset
21461
21462 .
21463  Then start a client that listens on the output pipe, dispatches the command
21464  according to the sequence, and starts a function that may use \SpecialChar LyX
21465  calls and
21466  \SpecialChar LyX
21467  requests to issue a command or a series of commands to \SpecialChar LyX
21468 .
21469 \end_layout
21470
21471 \begin_layout Section
21472 The simple \SpecialChar LyX
21473  Server Protocol
21474 \end_layout
21475
21476 \begin_layout Standard
21477 \SpecialChar LyX
21478  implements a simple protocol that can be used for session management.
21479  All messages are of the form
21480 \end_layout
21481
21482 \begin_layout Quote
21483 LYXSRV:
21484 \emph on
21485 clientname
21486 \emph default
21487 :
21488 \emph on
21489 protocol message
21490 \end_layout
21491
21492 \begin_layout Standard
21493 where 
21494 \emph on
21495 protocol message
21496 \emph default
21497  can be 
21498 \begin_inset Quotes eld
21499 \end_inset
21500
21501 hello
21502 \begin_inset Quotes erd
21503 \end_inset
21504
21505  or 
21506 \begin_inset Quotes eld
21507 \end_inset
21508
21509 bye
21510 \begin_inset Quotes erd
21511 \end_inset
21512
21513 .
21514  If 
21515 \begin_inset Quotes eld
21516 \end_inset
21517
21518 hello
21519 \begin_inset Quotes erd
21520 \end_inset
21521
21522  is received from a client, \SpecialChar LyX
21523  will report back to inform the client that
21524  it's listening to it's messages, while 
21525 \begin_inset Quotes eld
21526 \end_inset
21527
21528 bye
21529 \begin_inset Quotes erd
21530 \end_inset
21531
21532  sent from \SpecialChar LyX
21533  will inform clients that \SpecialChar LyX
21534  is closing.
21535 \end_layout
21536
21537 \begin_layout Section
21538 Reverse DVI/PDF search
21539 \end_layout
21540
21541 \begin_layout Standard
21542 Some DVI/PDF viewers
21543 \begin_inset Foot
21544 status collapsed
21545
21546 \begin_layout Plain Layout
21547 The following viewers offer the reverse PDF search feature: Okular on KDE/Linux,
21548  Qpdfview on Unix, Skim on Mac OSX and SumatraPDF on Windows.
21549 \end_layout
21550
21551 \end_inset
21552
21553  provide 
21554 \emph on
21555 reverse search
21556 \emph default
21557  facility (also called 
21558 \emph on
21559 inverse search
21560 \emph default
21561 ).
21562  This means that you can tell \SpecialChar LyX
21563  to put the cursor to a specific line in the
21564  document by clicking at the respective position in the DVI/PDF output.
21565  To achieve this, the viewer must be able to communicate with \SpecialChar LyX
21566 .
21567  This is done via the \SpecialChar LyX
21568  server either by using the named pipe (
21569 \emph on
21570 lyxpipe
21571 \emph default
21572 ), or the UNIX domain socket (
21573 \emph on
21574 lyxsocket
21575 \emph default
21576 ) that \SpecialChar LyX
21577  creates in its temporary directory (this is the way the 
21578 \begin_inset Flex Code
21579 status collapsed
21580
21581 \begin_layout Plain Layout
21582 lyxclient
21583 \end_layout
21584
21585 \end_inset
21586
21587  program communicates with \SpecialChar LyX
21588 ).
21589  In some cases, you need a helper script that mediates between the viewer
21590  and \SpecialChar LyX
21591 , in others, the viewer can communicate with \SpecialChar LyX
21592  directly.
21593  This depends on the selected viewer and on your operating system.
21594  The same applies to the way viewers need to be configured and the way the
21595  reverse search is actually performed.
21596  In what follows, we will thus describe how to setup reverse search for
21597  specific viewers.
21598  Before we turn to this, though, we will explain what needs to be done generally
21599  to enable reverse search in the DVI/PDF output.
21600 \end_layout
21601
21602 \begin_layout Subsection
21603 Automatic setup
21604 \begin_inset CommandInset label
21605 LatexCommand label
21606 name "subsec:rev-search"
21607
21608 \end_inset
21609
21610
21611 \end_layout
21612
21613 \begin_layout Standard
21614 In most cases \SpecialChar LyX
21615  will do the work for you by pressing the following button
21616  in the toolbar: 
21617 \begin_inset Info
21618 type  "icon"
21619 arg   "buffer-toggle-output-sync"
21620 \end_inset
21621
21622 .
21623  Alternatively, you can also enable the feature by checking 
21624 \family sans
21625 Synchronize with Output
21626 \family default
21627  in 
21628 \begin_inset Flex Noun
21629 status collapsed
21630
21631 \begin_layout Plain Layout
21632 Document\SpecialChar menuseparator
21633 Settings\SpecialChar menuseparator
21634 Formats
21635 \end_layout
21636
21637 \end_inset
21638
21639 .
21640  In such a case \SpecialChar LyX
21641  will automatically insert the necessary Sync\SpecialChar TeX
21642  macro (for
21643  PDF) or load the srcltx package (for DVI) respectively.
21644  This option can be easily reached also on 
21645 \begin_inset Flex Code
21646 status collapsed
21647
21648 \begin_layout Plain Layout
21649 View/Update
21650 \end_layout
21651
21652 \end_inset
21653
21654  Toolbar.
21655 \end_layout
21656
21657 \begin_layout Standard
21658 If you need a different setting, you can select or input a custom macro
21659  from the drop down box just below 
21660 \begin_inset Flex Noun
21661 status collapsed
21662
21663 \begin_layout Plain Layout
21664 Document\SpecialChar menuseparator
21665 Settings\SpecialChar menuseparator
21666 Output\SpecialChar menuseparator
21667 Synchronize with Output
21668 \end_layout
21669
21670 \end_inset
21671
21672 .
21673 \end_layout
21674
21675 \begin_layout Standard
21676 Note that the method 
21677 \begin_inset Flex Code
21678 status collapsed
21679
21680 \begin_layout Plain Layout
21681
21682 \backslash
21683 synctex=1
21684 \end_layout
21685
21686 \end_inset
21687
21688  enables gzip compression.
21689  If your viewer does not support it, you should instead use 
21690 \begin_inset Flex Code
21691 status collapsed
21692
21693 \begin_layout Plain Layout
21694
21695 \backslash
21696 synctex=-1
21697 \end_layout
21698
21699 \end_inset
21700
21701 .
21702 \end_layout
21703
21704 \begin_layout Standard
21705 Please also note that including the 
21706 \begin_inset Flex Code
21707 status collapsed
21708
21709 \begin_layout Plain Layout
21710 srcltx
21711 \end_layout
21712
21713 \end_inset
21714
21715  package or 
21716 \begin_inset Flex Code
21717 status collapsed
21718
21719 \begin_layout Plain Layout
21720 src-specials
21721 \end_layout
21722
21723 \end_inset
21724
21725  sometimes has an undesired impact on the typesetting.
21726  Thus, you should switch output synchronization off for the final typesetting
21727  if you use the 
21728 \begin_inset Flex Code
21729 status collapsed
21730
21731 \begin_layout Plain Layout
21732 srcltx
21733 \end_layout
21734
21735 \end_inset
21736
21737  package or 
21738 \begin_inset Flex Code
21739 status collapsed
21740
21741 \begin_layout Plain Layout
21742 src-specials
21743 \end_layout
21744
21745 \end_inset
21746
21747 .
21748  
21749 \end_layout
21750
21751 \begin_layout Standard
21752 In case you need some more special settings that are not covered by the
21753  automatic settings, read the next section about how to set up output synchroniz
21754 ation manually.
21755  If the automatic setup suits your needs, you can readily jump to section
21756 \begin_inset space ~
21757 \end_inset
21758
21759
21760 \begin_inset CommandInset ref
21761 LatexCommand ref
21762 nolink "false"
21763 reference "subsec:configuring-viewers"
21764
21765 \end_inset
21766
21767 , where the necessary configuration steps in your viewer – needed both with
21768  the automatic and the manual setup – are described.
21769 \end_layout
21770
21771 \begin_layout Subsection
21772 Manual setup
21773 \end_layout
21774
21775 \begin_layout Standard
21776 \SpecialChar LaTeX
21777  provides several different methods for reverse search.
21778  Some are built-in in the 
21779 \begin_inset Flex Code
21780 status collapsed
21781
21782 \begin_layout Plain Layout
21783 latex/pdflatex
21784 \end_layout
21785
21786 \end_inset
21787
21788  program, some are provided by external packages.
21789  Your choice depends on whether your \SpecialChar LaTeX
21790  distribution already provides a given
21791  method (the built-in methods are rather new) and whether your viewer can
21792  cope with it.
21793  The available methods are described in the following.
21794 \end_layout
21795
21796 \begin_layout Subsubsection*
21797 Built-in DVI-search via src-specials (DVI only) 
21798 \end_layout
21799
21800 \begin_layout Standard
21801 This method provides the DVI file with the necessary information for reverse
21802  search.
21803  It is available in \SpecialChar LaTeX
21804  since quite some time (any somewhat recent \SpecialChar LaTeX
21805  distribution
21806  should include it), and it works reliably.
21807  To enable it, change the 
21808 \begin_inset Flex Noun
21809 status collapsed
21810
21811 \begin_layout Plain Layout
21812 La
21813 \family sans
21814 TeX
21815 \family default
21816  (plain)->DVI
21817 \end_layout
21818
21819 \end_inset
21820
21821  or 
21822 \begin_inset Flex Noun
21823 status collapsed
21824
21825 \begin_layout Plain Layout
21826 La
21827 \family sans
21828 TeX
21829 \family default
21830  (plain)->DraftDVI
21831 \end_layout
21832
21833 \end_inset
21834
21835  converter in 
21836 \begin_inset Flex Noun
21837 status collapsed
21838
21839 \begin_layout Plain Layout
21840 Preferences\SpecialChar menuseparator
21841 File Handling\SpecialChar menuseparator
21842 Converters
21843 \end_layout
21844
21845 \end_inset
21846
21847  to 
21848 \begin_inset Flex Code
21849 status collapsed
21850
21851 \begin_layout Plain Layout
21852 latex -src-specials $$i
21853 \end_layout
21854
21855 \end_inset
21856
21857 .
21858  If this doesn't work, check if your \SpecialChar TeX
21859  engine needs different options (the
21860  syntax might differ in some distributions).
21861 \end_layout
21862
21863 \begin_layout Subsubsection*
21864 External Packages (PDFSync and scrltx) 
21865 \end_layout
21866
21867 \begin_layout Standard
21868 The packages 
21869 \emph on
21870 pdfsync
21871 \emph default
21872  and 
21873 \emph on
21874 scrltx
21875 \emph default
21876  provide reverse search facility for PDF output (via pdflatex) and DVI output,
21877  respectively.
21878  In order to enable it, load the packages in the \SpecialChar LyX
21879  preamble: 
21880 \end_layout
21881
21882 \begin_layout Itemize
21883 \begin_inset Flex Code
21884 status collapsed
21885
21886 \begin_layout Plain Layout
21887
21888 \backslash
21889 usepackage{pdfsync}
21890 \end_layout
21891
21892 \end_inset
21893
21894  for reverse PDF search,
21895 \end_layout
21896
21897 \begin_layout Itemize
21898 \begin_inset Flex Code
21899 status collapsed
21900
21901 \begin_layout Plain Layout
21902
21903 \backslash
21904 usepackage[active]{srcltx}
21905 \end_layout
21906
21907 \end_inset
21908
21909  for reverse DVI search.
21910 \end_layout
21911
21912 \begin_layout Standard
21913 If you want to be able to perform both DVI and PDF reverse searches, you
21914  can also insert in the preamble the following lines
21915 \end_layout
21916
21917 \begin_layout LyX-Code
21918
21919 \backslash
21920 usepackage{ifpdf}
21921 \begin_inset Newline newline
21922 \end_inset
21923
21924
21925 \backslash
21926 ifpdf
21927 \begin_inset Newline newline
21928 \end_inset
21929
21930   
21931 \backslash
21932 usepackage{pdfsync}
21933 \begin_inset Newline newline
21934 \end_inset
21935
21936
21937 \backslash
21938 else
21939 \begin_inset Newline newline
21940 \end_inset
21941
21942   
21943 \backslash
21944 usepackage[active]{srcltx}
21945 \begin_inset Newline newline
21946 \end_inset
21947
21948
21949 \backslash
21950 fi
21951 \end_layout
21952
21953 \begin_layout Standard
21954 This way, you can preview the file as either DVI or PDF (pdflatex) and the
21955  right package will be used.
21956 \end_layout
21957
21958 \begin_layout Standard
21959 Note that PDFSync might affect the output layout of your document.
21960  It is therefore advised to disable PDFsync for final documents.
21961 \end_layout
21962
21963 \begin_layout Subsubsection*
21964 Built-in reverse search via Sync\SpecialChar TeX
21965  (DVI and PDF) 
21966 \end_layout
21967
21968 \begin_layout Standard
21969 Recent versions of 
21970 \begin_inset Flex Code
21971 status collapsed
21972
21973 \begin_layout Plain Layout
21974 (pdf)latex
21975 \end_layout
21976
21977 \end_inset
21978
21979  have built-in support for both PDF and DVI reverse search.
21980  This so-called 
21981 \emph on
21982 Sync\SpecialChar TeX
21983
21984 \emph default
21985  facility is basically the result of the integration of the PDFSync package
21986  to the pdftex program and its merge with the 
21987 \emph on
21988 scr-specials
21989 \emph default
21990  approach.
21991  You need at least \SpecialChar TeX
21992 Live 2008 or a recent Mik\SpecialChar TeX
21993  distribution in order to use
21994  it.
21995 \begin_inset Foot
21996 status collapsed
21997
21998 \begin_layout Plain Layout
21999 For some reason, Mik\SpecialChar TeX
22000  does not understand/obey the command \SpecialChar LyX
22001  inserts into
22002  the preamble when you check the "Enable Forward/Reverse Search" button
22003  in the toolbar and does not generate the necessary info.
22004 \end_layout
22005
22006 \begin_layout Plain Layout
22007 The generation of the required info can be forced by changing the converter
22008  "\SpecialChar LaTeX
22009  (pdflatex) -> PDF (pdflatex)" in Preferences->File handling->Converters
22010  from the default "pdflatex $$i" to "pdflatex -synctex=1 $$i" (i.e., by adding
22011  the -synctex=1 switch).
22012 \end_layout
22013
22014 \end_inset
22015
22016  Also note that only a few PDF viewers (such as Okular and Qpdfview on Unix,
22017  Skim on the Mac, SumatraPDF on Windows; see the next section for details)
22018  already provide Sync\SpecialChar TeX
22019  support.
22020 \end_layout
22021
22022 \begin_layout Standard
22023 To enable Sync\SpecialChar TeX
22024  for DVI output, change the 
22025 \begin_inset Flex Noun
22026 status collapsed
22027
22028 \begin_layout Plain Layout
22029 La
22030 \family sans
22031 TeX
22032 \family default
22033  (plain) -> DVI
22034 \end_layout
22035
22036 \end_inset
22037
22038  or 
22039 \begin_inset Flex Noun
22040 status collapsed
22041
22042 \begin_layout Plain Layout
22043 La
22044 \family sans
22045 TeX
22046 \family default
22047  (plain) -> DraftDVI
22048 \end_layout
22049
22050 \end_inset
22051
22052  converter in 
22053 \begin_inset Flex Noun
22054 status collapsed
22055
22056 \begin_layout Plain Layout
22057 Preferences\SpecialChar menuseparator
22058 File Handling\SpecialChar menuseparator
22059 Converters
22060 \end_layout
22061
22062 \end_inset
22063
22064  to 
22065 \begin_inset Flex Code
22066 status collapsed
22067
22068 \begin_layout Plain Layout
22069 latex -synctex=1 $$i
22070 \end_layout
22071
22072 \end_inset
22073
22074 , and for PDF output, change the 
22075 \begin_inset Flex Noun
22076 status collapsed
22077
22078 \begin_layout Plain Layout
22079 La
22080 \family sans
22081 TeX
22082 \family default
22083  (pdflatex) -> PDF (pdflatex)
22084 \end_layout
22085
22086 \end_inset
22087
22088  converter to 
22089 \begin_inset Flex Code
22090 status collapsed
22091
22092 \begin_layout Plain Layout
22093 pdflatex -synctex=1 $$i
22094 \end_layout
22095
22096 \end_inset
22097
22098 .
22099  Should your viewer not be considered in the following description, or in
22100  case of missing success, please check the documentation of your viewer
22101  whether the viewer needs to be configured for the use with Sync\SpecialChar TeX
22102 .
22103 \begin_inset Foot
22104 status collapsed
22105
22106 \begin_layout Plain Layout
22107 Note that the option 
22108 \begin_inset Flex Code
22109 status collapsed
22110
22111 \begin_layout Plain Layout
22112 -synctex=1
22113 \end_layout
22114
22115 \end_inset
22116
22117  option enables gzip compression.
22118  If your viewer does not support it, you should instead use 
22119 \begin_inset Flex Code
22120 status collapsed
22121
22122 \begin_layout Plain Layout
22123 -synctex=-1
22124 \end_layout
22125
22126 \end_inset
22127
22128 .
22129 \end_layout
22130
22131 \end_inset
22132
22133
22134 \end_layout
22135
22136 \begin_layout Subsection
22137 Configuring and using specific viewers
22138 \begin_inset CommandInset label
22139 LatexCommand label
22140 name "subsec:configuring-viewers"
22141
22142 \end_inset
22143
22144
22145 \end_layout
22146
22147 \begin_layout Subsubsection*
22148 Xdvi (all platforms)
22149 \end_layout
22150
22151 \begin_layout Standard
22152 If you use 
22153 \begin_inset Flex Code
22154 status collapsed
22155
22156 \begin_layout Plain Layout
22157 xdvi
22158 \end_layout
22159
22160 \end_inset
22161
22162 , you don't need to do anything else for performing a reverse DVI search,
22163  as \SpecialChar LyX
22164  already provides the necessary hooks for automatically using the 
22165 \begin_inset Flex Code
22166 status collapsed
22167
22168 \begin_layout Plain Layout
22169 lyxclient
22170 \end_layout
22171
22172 \end_inset
22173
22174  program.
22175  Just setup your document as described above (reverse search is triggered
22176  by Ctrl-click or Alt-click on Mac OSX, respectively).
22177 \end_layout
22178
22179 \begin_layout Standard
22180 However, if for whatever reason you want to use the named pipe instead of
22181  the socket for communicating with \SpecialChar LyX
22182 , simply change the DVI viewer in 
22183 \begin_inset Flex Noun
22184 status collapsed
22185
22186 \begin_layout Plain Layout
22187 Preferences\SpecialChar menuseparator
22188 File Handling\SpecialChar menuseparator
22189 File formats
22190 \end_layout
22191
22192 \end_inset
22193
22194  to
22195 \begin_inset Foot
22196 status collapsed
22197
22198 \begin_layout Plain Layout
22199 On Mac OSX you have to use 
22200 \begin_inset Flex Code
22201 status collapsed
22202
22203 \begin_layout Plain Layout
22204 DISPLAY=:0.0 xdvi -editor "lyxeditor.sh %f %l"
22205 \end_layout
22206
22207 \end_inset
22208
22209
22210 \end_layout
22211
22212 \end_inset
22213
22214  
22215 \begin_inset Flex Code
22216 status collapsed
22217
22218 \begin_layout Plain Layout
22219 xdvi -editor "lyxeditor.sh %f %l"
22220 \end_layout
22221
22222 \end_inset
22223
22224 , where 
22225 \begin_inset Flex Code
22226 status collapsed
22227
22228 \begin_layout Plain Layout
22229 lyxeditor.sh
22230 \end_layout
22231
22232 \end_inset
22233
22234  is a suitable script.
22235  For example, a minimal shell script is the following one:
22236 \end_layout
22237
22238 \begin_layout LyX-Code
22239 #!/bin/sh
22240 \begin_inset Newline newline
22241 \end_inset
22242
22243 LYXPIPE="/path/to/lyxpipe"
22244 \begin_inset Newline newline
22245 \end_inset
22246
22247 COMMAND="LYXCMD:revdvi:server-goto-file-row:$1 $2"
22248 \begin_inset Newline newline
22249 \end_inset
22250
22251 echo "$COMMAND" > "${LYXPIPE}".in || exit
22252 \begin_inset Newline newline
22253 \end_inset
22254
22255 read TMP < "${LYXPIPE}".out || exit
22256 \end_layout
22257
22258 \begin_layout Standard
22259 where 
22260 \begin_inset Flex Code
22261 status collapsed
22262
22263 \begin_layout Plain Layout
22264 /path/to/lyxpipe
22265 \end_layout
22266
22267 \end_inset
22268
22269  is the LyXServer pipe path specified in 
22270 \begin_inset Flex Noun
22271 status collapsed
22272
22273 \begin_layout Plain Layout
22274 Preferences\SpecialChar menuseparator
22275 Paths
22276 \end_layout
22277
22278 \end_inset
22279
22280 .
22281 \begin_inset Foot
22282 status collapsed
22283
22284 \begin_layout Plain Layout
22285 In the 
22286 \begin_inset Flex Code
22287 status collapsed
22288
22289 \begin_layout Plain Layout
22290 development/tools
22291 \end_layout
22292
22293 \end_inset
22294
22295  folder of a source distribution you can find a 
22296 \begin_inset Flex Code
22297 status collapsed
22298
22299 \begin_layout Plain Layout
22300 lyxeditor
22301 \end_layout
22302
22303 \end_inset
22304
22305  script which is able to locate the 
22306 \emph on
22307 lyxpipe
22308 \emph default
22309  based on your preferences.
22310 \end_layout
22311
22312 \end_inset
22313
22314
22315 \end_layout
22316
22317 \begin_layout Subsubsection*
22318 MacDviX (Mac OSX)
22319 \end_layout
22320
22321 \begin_layout Standard
22322 At the end of 
22323 \begin_inset Flex Code
22324 status collapsed
22325
22326 \begin_layout Plain Layout
22327 /Applications/MacDviX_Folder/calleditor.script
22328 \end_layout
22329
22330 \end_inset
22331
22332 , add the following lines:
22333 \end_layout
22334
22335 \begin_layout LyX-Code
22336 /Applications/LyX.app/Contents/MacOS/lyxeditor "$2" $1
22337 \begin_inset Newline newline
22338 \end_inset
22339
22340 exit 1
22341 \end_layout
22342
22343 \begin_layout Standard
22344 Modify the lines accordingly if you install \SpecialChar LyX
22345  somewhere else than in the
22346  Applications folder.
22347 \end_layout
22348
22349 \begin_layout Standard
22350 Reverse search is triggered by Alt-click (OPTION-click).
22351 \end_layout
22352
22353 \begin_layout Subsubsection*
22354 Skim (Mac OSX)
22355 \end_layout
22356
22357 \begin_layout Standard
22358 Enter 
22359 \begin_inset Flex Code
22360 status collapsed
22361
22362 \begin_layout Plain Layout
22363 open -a Skim.app $$i
22364 \end_layout
22365
22366 \end_inset
22367
22368  to the viewer setting in 
22369 \begin_inset Flex Noun
22370 status collapsed
22371
22372 \begin_layout Plain Layout
22373 Preferences\SpecialChar menuseparator
22374 File Handling\SpecialChar menuseparator
22375 File formats\SpecialChar menuseparator
22376 PDF (pdflatex)
22377 \end_layout
22378
22379 \end_inset
22380
22381 , and then in 
22382 \begin_inset Flex Noun
22383 status collapsed
22384
22385 \begin_layout Plain Layout
22386 Skim\SpecialChar menuseparator
22387 Preferences\SpecialChar menuseparator
22388 Sync
22389 \end_layout
22390
22391 \end_inset
22392
22393  choose 
22394 \begin_inset Flex Noun
22395 status collapsed
22396
22397 \begin_layout Plain Layout
22398 custom
22399 \end_layout
22400
22401 \end_inset
22402
22403  preset and enter command 
22404 \begin_inset Flex Noun
22405 status collapsed
22406
22407 \begin_layout Plain Layout
22408 /Applications/\SpecialChar LyX
22409 .app/Contents/MacOS/lyxeditor
22410 \end_layout
22411
22412 \end_inset
22413
22414 .
22415 \end_layout
22416
22417 \begin_layout Standard
22418 Reverse search is triggered by COMMAND-SHIFT-click
22419 \end_layout
22420
22421 \begin_layout Subsubsection*
22422 Evince (GNOME)
22423 \end_layout
22424
22425 \begin_layout Standard
22426 Reverse search with evince does not work out of the box, but it can be achieved
22427  by means of some third party helper scripts.
22428  Please refer to 
22429 \begin_inset CommandInset href
22430 LatexCommand href
22431 target "https://wiki.lyx.org/LyX/SyncTeX"
22432 literal "false"
22433
22434 \end_inset
22435
22436  for details.
22437 \end_layout
22438
22439 \begin_layout Subsubsection*
22440 Okular (KDE)
22441 \end_layout
22442
22443 \begin_layout Standard
22444 Go to 
22445 \begin_inset Flex Noun
22446 status collapsed
22447
22448 \begin_layout Plain Layout
22449 Settings\SpecialChar menuseparator
22450 Configure Okular\SpecialChar menuseparator
22451 Editor
22452 \end_layout
22453
22454 \end_inset
22455
22456  and select LyX
22457 \begin_inset Quotes erd
22458 \end_inset
22459
22460  as editor.
22461  This inserts the appropriate command (
22462 \begin_inset Flex Code
22463 status collapsed
22464
22465 \begin_layout Plain Layout
22466 lyxclient -g %f %l
22467 \end_layout
22468
22469 \end_inset
22470
22471 ).
22472 \end_layout
22473
22474 \begin_layout Standard
22475 Reverse search is triggered by SHIFT-click.
22476
22477 \change_inserted -712698321 1578211026
22478  Note that this only works if Okular is in 
22479 \begin_inset Quotes eld
22480 \end_inset
22481
22482 Browse
22483 \begin_inset Quotes erd
22484 \end_inset
22485
22486  mode (i.
22487 \begin_inset space \thinspace{}
22488 \end_inset
22489
22490 e., the hand symbol is clicked).
22491 \change_unchanged
22492
22493 \end_layout
22494
22495 \begin_layout Subsubsection*
22496 Qpdfview (Unix)
22497 \end_layout
22498
22499 \begin_layout Standard
22500 Qpdfview supports Sync\SpecialChar TeX
22501  since version 0.3.5.
22502  Go to 
22503 \begin_inset Flex Noun
22504 status collapsed
22505
22506 \begin_layout Plain Layout
22507 Edit\SpecialChar menuseparator
22508 Settings\SpecialChar menuseparator
22509 Behavior
22510 \end_layout
22511
22512 \end_inset
22513
22514 , click on the input field of the 
22515 \begin_inset Quotes eld
22516 \end_inset
22517
22518 Source editor
22519 \begin_inset Quotes erd
22520 \end_inset
22521
22522  item and add the command 
22523 \begin_inset Flex Code
22524 status collapsed
22525
22526 \begin_layout Plain Layout
22527 lyxclient -g %1 %2
22528 \end_layout
22529
22530 \end_inset
22531
22532 .
22533 \end_layout
22534
22535 \begin_layout Standard
22536 Reverse search is triggered by double-click or, in more recent versions,
22537  by context menu.
22538 \end_layout
22539
22540 \begin_layout Subsubsection*
22541 YAP (Windows)
22542 \end_layout
22543
22544 \begin_layout Standard
22545 Launch yap, choose its 
22546 \begin_inset Flex Noun
22547 status collapsed
22548
22549 \begin_layout Plain Layout
22550 View\SpecialChar menuseparator
22551 Options
22552 \end_layout
22553
22554 \end_inset
22555
22556  menu and select the 
22557 \begin_inset Quotes eld
22558 \end_inset
22559
22560 Inverse DVI Search
22561 \begin_inset Quotes erd
22562 \end_inset
22563
22564  tab.
22565  Click on the 
22566 \begin_inset Quotes eld
22567 \end_inset
22568
22569 New\SpecialChar ldots
22570
22571 \begin_inset Quotes erd
22572 \end_inset
22573
22574  button and, in the window that opens, enter 
22575 \begin_inset Quotes eld
22576 \end_inset
22577
22578 \SpecialChar LyX
22579  Editor
22580 \begin_inset Quotes erd
22581 \end_inset
22582
22583  (or any other name you like) in the 
22584 \begin_inset Quotes eld
22585 \end_inset
22586
22587 Name:
22588 \begin_inset Quotes erd
22589 \end_inset
22590
22591  field.
22592  Now click on the button labeled 
22593 \begin_inset Quotes eld
22594 \end_inset
22595
22596 \SpecialChar ldots
22597
22598 \begin_inset Quotes erd
22599 \end_inset
22600
22601  to open a file dialog and navigate to the directory containing the batch
22602  file 
22603 \begin_inset Flex Code
22604 status collapsed
22605
22606 \begin_layout Plain Layout
22607 lyxeditor.bat
22608 \end_layout
22609
22610 \end_inset
22611
22612  (see below).
22613  Select 
22614 \begin_inset Flex Code
22615 status collapsed
22616
22617 \begin_layout Plain Layout
22618 lyxeditor.bat
22619 \end_layout
22620
22621 \end_inset
22622
22623  and then specify the program arguments as 
22624 \begin_inset Flex Code
22625 status collapsed
22626
22627 \begin_layout Plain Layout
22628 %f %l
22629 \end_layout
22630
22631 \end_inset
22632
22633 .
22634  The 
22635 \begin_inset Flex Code
22636 status collapsed
22637
22638 \begin_layout Plain Layout
22639 lyxeditor.bat
22640 \end_layout
22641
22642 \end_inset
22643
22644  wrapper is used for communicating with \SpecialChar LyX
22645  through the 
22646 \emph on
22647 lyxpipe
22648 \emph default
22649  and is as follows:
22650 \end_layout
22651
22652 \begin_layout LyX-Code
22653 @echo off
22654 \begin_inset Newline newline
22655 \end_inset
22656
22657 echo LYXCMD:revdvi:server-goto-file-row:%~1 %2> 
22658 \backslash
22659
22660 \backslash
22661 .
22662 \backslash
22663 pipe
22664 \backslash
22665 lyxpipe.in
22666 \begin_inset Newline newline
22667 \end_inset
22668
22669 type 
22670 \backslash
22671
22672 \backslash
22673 .
22674 \backslash
22675 pipe
22676 \backslash
22677 lyxpipe.out
22678 \end_layout
22679
22680 \begin_layout Standard
22681 Make sure that the \SpecialChar LyX
22682 Server pipe path you specified in \SpecialChar LyX
22683  is 
22684 \begin_inset Flex Code
22685 status collapsed
22686
22687 \begin_layout Plain Layout
22688
22689 \backslash
22690
22691 \backslash
22692 .
22693 \backslash
22694 pipe
22695 \backslash
22696 lyxpipe
22697 \end_layout
22698
22699 \end_inset
22700
22701 , otherwise change the 
22702 \begin_inset Flex Code
22703 status collapsed
22704
22705 \begin_layout Plain Layout
22706 lyxeditor.bat
22707 \end_layout
22708
22709 \end_inset
22710
22711  wrapper accordingly.
22712 \end_layout
22713
22714 \begin_layout Standard
22715 In yap, reverse search is triggered by double-click.
22716 \end_layout
22717
22718 \begin_layout Subsubsection*
22719 SumatraPDF (Windows)
22720 \end_layout
22721
22722 \begin_layout Standard
22723 In order to use SumatraPDF for inverse search, enter 
22724 \begin_inset Flex Code
22725 status collapsed
22726
22727 \begin_layout Plain Layout
22728 SumatraPDF -inverse-search "lyxeditor.bat "%f" %l"
22729 \end_layout
22730
22731 \end_inset
22732
22733  in the viewer setting in 
22734 \begin_inset Flex Noun
22735 status collapsed
22736
22737 \begin_layout Plain Layout
22738 Preferences\SpecialChar menuseparator
22739 File Handling\SpecialChar menuseparator
22740 File formats\SpecialChar menuseparator
22741 PDF (pdflatex)
22742 \end_layout
22743
22744 \end_inset
22745
22746 , where 
22747 \begin_inset Flex Code
22748 status collapsed
22749
22750 \begin_layout Plain Layout
22751 lyxeditor.bat
22752 \end_layout
22753
22754 \end_inset
22755
22756  is the previous wrapper.
22757  If SumatraPDF.exe is not in your command PATH, use its full file name.
22758 \end_layout
22759
22760 \begin_layout Standard
22761 Reverse search is triggered by double-click.
22762 \end_layout
22763
22764 \begin_layout Subsubsection*
22765 YAP (Cygwin)
22766 \end_layout
22767
22768 \begin_layout Standard
22769 First of all, make sure that yap is your default DVI viewer in the Windows
22770  environment, then launch it, choose its 
22771 \begin_inset Flex Noun
22772 status collapsed
22773
22774 \begin_layout Plain Layout
22775 View\SpecialChar menuseparator
22776 Options
22777 \end_layout
22778
22779 \end_inset
22780
22781  menu and select the 
22782 \begin_inset Quotes eld
22783 \end_inset
22784
22785 Inverse DVI Search
22786 \begin_inset Quotes erd
22787 \end_inset
22788
22789  tab.
22790  Click on the 
22791 \begin_inset Quotes eld
22792 \end_inset
22793
22794 New\SpecialChar ldots
22795
22796 \begin_inset Quotes erd
22797 \end_inset
22798
22799  button and, in the window that opens, enter 
22800 \begin_inset Quotes eld
22801 \end_inset
22802
22803 \SpecialChar LyX
22804  Editor
22805 \begin_inset Quotes erd
22806 \end_inset
22807
22808  (or any other name you like) in the 
22809 \begin_inset Quotes eld
22810 \end_inset
22811
22812 Name:
22813 \begin_inset Quotes erd
22814 \end_inset
22815
22816  field.
22817  Now click on the button labeled 
22818 \begin_inset Quotes eld
22819 \end_inset
22820
22821 \SpecialChar ldots
22822
22823 \begin_inset Quotes erd
22824 \end_inset
22825
22826  to open a file dialog and navigate to the directory containing the 
22827 \begin_inset Flex Code
22828 status collapsed
22829
22830 \begin_layout Plain Layout
22831 lyxeditor.exe
22832 \end_layout
22833
22834 \end_inset
22835
22836  program (which is installed by default on Cygwin along with the \SpecialChar LyX
22837  executable).
22838  Select 
22839 \begin_inset Flex Code
22840 status collapsed
22841
22842 \begin_layout Plain Layout
22843 lyxeditor.exe
22844 \end_layout
22845
22846 \end_inset
22847
22848  and then specify the program arguments as 
22849 \begin_inset Flex Code
22850 status collapsed
22851
22852 \begin_layout Plain Layout
22853 -g %f %l
22854 \end_layout
22855
22856 \end_inset
22857
22858 .
22859  In this way, you will be using the 
22860 \emph on
22861 lyxsocket
22862 \emph default
22863  for communicating with \SpecialChar LyX
22864 .
22865  If, for whatever reason, you want to use the 
22866 \emph on
22867 lyxpipe
22868 \emph default
22869 , omit the 
22870 \begin_inset Flex Code
22871 status collapsed
22872
22873 \begin_layout Plain Layout
22874 -g
22875 \end_layout
22876
22877 \end_inset
22878
22879  option and be sure to specify the \SpecialChar LyX
22880 Server pipe path in the \SpecialChar LyX
22881  preferences.
22882 \end_layout
22883
22884 \begin_layout Standard
22885 In yap, reverse search is triggered by double-click.
22886 \end_layout
22887
22888 \begin_layout Subsubsection*
22889 SumatraPDF (Cygwin)
22890 \end_layout
22891
22892 \begin_layout Standard
22893 In order to use SumatraPDF for inverse search, enter 
22894 \begin_inset Flex Code
22895 status collapsed
22896
22897 \begin_layout Plain Layout
22898 SumatraPDF -inverse-search "lyxeditor -g %f %l"
22899 \end_layout
22900
22901 \end_inset
22902
22903  in the viewer setting in 
22904 \begin_inset Flex Noun
22905 status collapsed
22906
22907 \begin_layout Plain Layout
22908 Preferences\SpecialChar menuseparator
22909 File Handling\SpecialChar menuseparator
22910 File formats\SpecialChar menuseparator
22911 PDF (pdflatex)
22912 \end_layout
22913
22914 \end_inset
22915
22916 .
22917  If SumatraPDF.exe is not in your command PATH, use its full posix path.
22918  The 
22919 \begin_inset Flex Code
22920 status collapsed
22921
22922 \begin_layout Plain Layout
22923 -g
22924 \end_layout
22925
22926 \end_inset
22927
22928  enables communication via the 
22929 \emph on
22930 lyxsocket
22931 \emph default
22932 .
22933  Again, omit the 
22934 \begin_inset Flex Code
22935 status collapsed
22936
22937 \begin_layout Plain Layout
22938 -g
22939 \end_layout
22940
22941 \end_inset
22942
22943  option if you want to use the 
22944 \emph on
22945 lyxpipe
22946 \emph default
22947 , and be sure to specify the \SpecialChar LyX
22948 Server pipe path in the \SpecialChar LyX
22949  preferences.
22950 \end_layout
22951
22952 \begin_layout Standard
22953 Reverse search is triggered by double-click.
22954 \end_layout
22955
22956 \begin_layout Section
22957 Forward search
22958 \end_layout
22959
22960 \begin_layout Standard
22961 Forward search is, as the name implies, in a sense the 
22962 \begin_inset Quotes eld
22963 \end_inset
22964
22965 opposite
22966 \begin_inset Quotes erd
22967 \end_inset
22968
22969  of reverse search.
22970  It allows you to let the viewer jump to a given position from within \SpecialChar LyX
22971 .
22972  If forward search is set up (as described in what follows), you can put
22973  the cursor anywhere in your \SpecialChar LyX
22974  document, and hit 
22975 \begin_inset Flex Noun
22976 status collapsed
22977
22978 \begin_layout Plain Layout
22979 Navigate\SpecialChar menuseparator
22980 Forward search
22981 \end_layout
22982
22983 \end_inset
22984
22985  (or select 
22986 \begin_inset Flex Noun
22987 status collapsed
22988
22989 \begin_layout Plain Layout
22990 Forward search
22991 \end_layout
22992
22993 \end_inset
22994
22995  in the context menu via right mouse click), and then the viewer will jump
22996  to that position as well.
22997  This implies, of course, that your viewer supports this function.
22998 \end_layout
22999
23000 \begin_layout Standard
23001 To make forward search possible, you first need to provide the generated
23002  output PDF/DVI file with additional information about the \SpecialChar TeX
23003  sources.
23004  This can be done via the methods described in the section 
23005 \begin_inset CommandInset ref
23006 LatexCommand ref
23007 nolink "false"
23008 reference "subsec:rev-search"
23009
23010 \end_inset
23011
23012 .
23013 \end_layout
23014
23015 \begin_layout Standard
23016 Additionally, you need to configure \SpecialChar LyX
23017  for using your viewers in 
23018 \begin_inset Flex Noun
23019 status collapsed
23020
23021 \begin_layout Plain Layout
23022 Tools\SpecialChar menuseparator
23023 Preferences\SpecialChar menuseparator
23024 Output\SpecialChar menuseparator
23025 General
23026 \end_layout
23027
23028 \end_inset
23029
23030 .
23031  We provide a range of tested configurations for some viewers, which you
23032  can select from the drop down list.
23033  If none of these configurations suits you, you have to find out and enter
23034  a suitable configuration yourself.
23035  The definition syntax uses the following placeholders:
23036 \end_layout
23037
23038 \begin_layout Itemize
23039 \noindent
23040 \begin_inset Flex Code
23041 status collapsed
23042
23043 \begin_layout Plain Layout
23044 $$n
23045 \end_layout
23046
23047 \end_inset
23048
23049 : row number
23050 \end_layout
23051
23052 \begin_layout Itemize
23053 \noindent
23054 \begin_inset Flex Code
23055 status collapsed
23056
23057 \begin_layout Plain Layout
23058 $$t
23059 \end_layout
23060
23061 \end_inset
23062
23063 : name of the (temporary) exported .tex file (without path)
23064 \end_layout
23065
23066 \begin_layout Itemize
23067 \noindent
23068 \begin_inset Flex Code
23069 status collapsed
23070
23071 \begin_layout Plain Layout
23072 $$f
23073 \end_layout
23074
23075 \end_inset
23076
23077 : name of the (temporary) exported .tex file (including path)
23078 \end_layout
23079
23080 \begin_layout Itemize
23081 \noindent
23082 \begin_inset Flex Code
23083 status collapsed
23084
23085 \begin_layout Plain Layout
23086 $$o
23087 \end_layout
23088
23089 \end_inset
23090
23091 : name of the exported output file (either dvi or pdf, depending on which
23092  one exists in the temporary directory)
23093 \end_layout
23094
23095 \begin_layout Standard
23096 Note that only some of the viewers provide full and usable forward search
23097  functionality out of the box, among them yap, xdvi, okular
23098 \begin_inset Foot
23099 status collapsed
23100
23101 \begin_layout Plain Layout
23102 You might want to set 
23103 \begin_inset Flex Code
23104 status collapsed
23105
23106 \begin_layout Plain Layout
23107 okular --unique
23108 \end_layout
23109
23110 \end_inset
23111
23112  in 
23113 \begin_inset Flex Noun
23114 status collapsed
23115
23116 \begin_layout Plain Layout
23117 Tools\SpecialChar menuseparator
23118 Preferences\SpecialChar menuseparator
23119 File Handling\SpecialChar menuseparator
23120 File
23121 \begin_inset space ~
23122 \end_inset
23123
23124 Formats
23125 \end_layout
23126
23127 \end_inset
23128
23129
23130 \end_layout
23131
23132 \end_inset
23133
23134 , qpdfview, and SumatraPDF
23135 \begin_inset Foot
23136 status collapsed
23137
23138 \begin_layout Plain Layout
23139 SumatraPDF can also use DDE commands through the external program CMCDDE
23140  — downloadable from 
23141 \begin_inset CommandInset href
23142 LatexCommand href
23143 target "http://www.istri.fr/spip/zip/CMCDDE.zip"
23144 literal "false"
23145
23146 \end_inset
23147
23148
23149 \end_layout
23150
23151 \end_inset
23152
23153 .
23154  Others, such as evince
23155 \begin_inset Foot
23156 status collapsed
23157
23158 \begin_layout Plain Layout
23159 Forward search with evince can be achieved by means of third party helper
23160  scripts.
23161  Please refer to 
23162 \begin_inset CommandInset href
23163 LatexCommand href
23164 target "https://wiki.lyx.org/LyX/SyncTeX"
23165 literal "false"
23166
23167 \end_inset
23168
23169  for details.
23170 \end_layout
23171
23172 \end_inset
23173
23174 , require some extra tools in order to use forward search.
23175  While many of the widespread PDF viewers (most notably Adobe Reader) do
23176  not support forward search at all, some other viewers – e.
23177 \begin_inset space \thinspace{}
23178 \end_inset
23179
23180 g.
23181  xpdf – allow at least to reload the document and jump to a specific page
23182  of the file, so you can at least navigate 
23183 \begin_inset Quotes eld
23184 \end_inset
23185
23186 near
23187 \begin_inset Quotes erd
23188 \end_inset
23189
23190 .
23191  This latter functionality is provided by an external call of synctex (see
23192  the predefined example configurations).
23193  
23194 \end_layout
23195
23196 \begin_layout Standard
23197 Forward search works both with DVI and PDF output.
23198  \SpecialChar LyX
23199  simply checks which preview format you have used before (i.
23200 \begin_inset space \thinspace{}
23201 \end_inset
23202
23203 e., which format is already there in the temporary directory) and chooses
23204  the appropriate configuration for the respective format.
23205 \end_layout
23206
23207 \begin_layout Chapter
23208
23209 \change_deleted 564990737 1671097409
23210 Special Document Classes
23211 \change_unchanged
23212
23213 \end_layout
23214
23215 \begin_layout Section
23216
23217 \change_deleted 564990737 1669742044
23218 A&A Paper
23219 \end_layout
23220
23221 \begin_layout Standard
23222
23223 \change_deleted 564990737 1669742044
23224 by 
23225 \noun on
23226 Peter Sütterlin
23227 \end_layout
23228
23229 \begin_layout Subsection
23230
23231 \change_deleted 564990737 1669742044
23232 Introduction
23233 \end_layout
23234
23235 \begin_layout Standard
23236
23237 \change_deleted 564990737 1669742044
23238 This section describes how \SpecialChar LyX
23239  can be used to write articles for submission
23240  to the scientific journal 
23241 \emph on
23242 Astronomy and Astrophysics
23243 \emph default
23244  (
23245 \begin_inset Flex URL
23246 status collapsed
23247
23248 \begin_layout Plain Layout
23249
23250 https://www.aanda.org/
23251 \end_layout
23252
23253 \end_inset
23254
23255 ) using Version 5.01 of the document class 
23256 \family typewriter
23257 aa.cls
23258 \family default
23259 .
23260  This package can be downloaded from the ftp site
23261 \end_layout
23262
23263 \begin_layout Standard
23264
23265 \change_deleted 564990737 1669742044
23266 \begin_inset VSpace medskip
23267 \end_inset
23268
23269
23270 \end_layout
23271
23272 \begin_layout Standard
23273 \align center
23274
23275 \change_deleted 564990737 1669742044
23276 \begin_inset Flex URL
23277 status collapsed
23278
23279 \begin_layout Plain Layout
23280
23281 ftp://ftp.edpsciences.org/pub/aa/readme.html
23282 \end_layout
23283
23284 \end_inset
23285
23286
23287 \end_layout
23288
23289 \begin_layout Standard
23290
23291 \change_deleted 564990737 1669742044
23292 \begin_inset VSpace medskip
23293 \end_inset
23294
23295
23296 \end_layout
23297
23298 \begin_layout Standard
23299
23300 \change_deleted 564990737 1669742044
23301 A manual comes together with that package, and this text is not meant to
23302  replace the original manual but is merely a short guide in how to realize
23303  the correct form of your paper.
23304  
23305 \end_layout
23306
23307 \begin_layout Standard
23308
23309 \change_deleted 564990737 1669742044
23310 Please note that the publisher of the journal was changed from Springer
23311  to EDP Sciences starting January 1, 2001.
23312  That change involved also some slight changes to the style files, namely
23313  the removal of the thesaurus command.
23314  The \SpecialChar LyX
23315  class aa supports the newest version of these style files, V 5.01.
23316  If you have an older version installed, please upgrade.
23317  For compatibility, the old (version 4) layout has been kept as 
23318 \family sans
23319 article (A&A V4)
23320 \family default
23321 .
23322  Please refer to the comments in 
23323 \family typewriter
23324 \SpecialChar LyX
23325 Dir/layouts/aapaper.layout
23326 \family default
23327 .
23328 \end_layout
23329
23330 \begin_layout Subsection
23331
23332 \change_deleted 564990737 1669742044
23333 Getting started
23334 \end_layout
23335
23336 \begin_layout Standard
23337
23338 \change_deleted 564990737 1669742044
23339 It is recommended you start from the example template distributed with \SpecialChar LyX
23340 .
23341  If you are not using a template, note the following settings:
23342 \end_layout
23343
23344 \begin_layout Itemize
23345
23346 \change_deleted 564990737 1669742044
23347 Select 
23348 \family sans
23349 article (A&A)
23350 \family default
23351  in the 
23352 \family sans
23353 Document\SpecialChar menuseparator
23354 Settings
23355 \family default
23356  dialog (OK, that one was obvious).
23357 \end_layout
23358
23359 \begin_layout Itemize
23360
23361 \change_deleted 564990737 1669742044
23362 Don't change the option 
23363 \family sans
23364 Page
23365 \begin_inset space ~
23366 \end_inset
23367
23368 style
23369 \family default
23370 : Leave it set to 
23371 \family sans
23372 default
23373 \family default
23374 .
23375  The whole layout is done by the macros, you shouldn't change anything.
23376 \end_layout
23377
23378 \begin_layout Subsection
23379
23380 \change_deleted 564990737 1669742044
23381 The header block
23382 \end_layout
23383
23384 \begin_layout Standard
23385
23386 \change_deleted 564990737 1669742044
23387 First thing to enter is the header information.
23388  It consists of seven entries, of which some are optional.
23389  They are
23390 \end_layout
23391
23392 \begin_layout Itemize
23393
23394 \change_deleted 564990737 1669742044
23395
23396 \family sans
23397 Title
23398 \family default
23399 : [required] 
23400 \end_layout
23401
23402 \begin_layout Itemize
23403
23404 \change_deleted 564990737 1669742044
23405
23406 \family sans
23407 Subtitle
23408 \family default
23409 : [optional] 
23410 \end_layout
23411
23412 \begin_layout Itemize
23413
23414 \change_deleted 564990737 1669742044
23415
23416 \family sans
23417 Author
23418 \family default
23419 : [required]
23420 \end_layout
23421
23422 \begin_layout Itemize
23423
23424 \change_deleted 564990737 1669742044
23425
23426 \family sans
23427 Address
23428 \family default
23429 : [required]
23430 \end_layout
23431
23432 \begin_layout Itemize
23433
23434 \change_deleted 564990737 1669742044
23435
23436 \family sans
23437 Offprints
23438 \family default
23439 : [optional] if more than one author: whom to contact for offprint requests.
23440 \end_layout
23441
23442 \begin_layout Itemize
23443
23444 \change_deleted 564990737 1669742044
23445
23446 \family sans
23447 Mail
23448 \family default
23449 : [optional] mail address for contacts.
23450 \end_layout
23451
23452 \begin_layout Itemize
23453
23454 \change_deleted 564990737 1669742044
23455
23456 \family sans
23457 Date
23458 \family default
23459 : [required].
23460  Suggested format is 
23461 \family typewriter
23462 Received: <date>; Accepted <date> 
23463 \end_layout
23464
23465 \begin_layout Standard
23466
23467 \change_deleted 564990737 1669742044
23468 There is no need to issue the 
23469 \family typewriter
23470
23471 \backslash
23472 maketitle
23473 \family default
23474  command, this is done automatically by \SpecialChar LyX
23475  when the header is finished.
23476  Although the order of the single header entries doesn't matter it is advised
23477  to keep the above sequence, just to get the best optics and meets the layout
23478  of the real document.
23479 \end_layout
23480
23481 \begin_layout Standard
23482
23483 \change_deleted 564990737 1669742044
23484 If you want to place footnotes in the header block, e.
23485 \begin_inset space \thinspace{}
23486 \end_inset
23487
23488 g.
23489 \begin_inset space \space{}
23490 \end_inset
23491
23492 to state your present address, just use the standard footnote via the menu
23493  
23494 \family sans
23495 Insert\SpecialChar menuseparator
23496 Footnote.
23497
23498 \family default
23499  \SpecialChar LyX
23500  will automagically use the term 
23501 \family typewriter
23502
23503 \backslash
23504 thanks{}
23505 \family default
23506  in that case.
23507 \end_layout
23508
23509 \begin_layout Standard
23510
23511 \change_deleted 564990737 1669742044
23512 Under 
23513 \family sans
23514 Edit\SpecialChar menuseparator
23515 Text Style
23516 \family default
23517 , you'll find two insets which are relevant for the titling:
23518 \end_layout
23519
23520 \begin_layout Itemize
23521
23522 \change_deleted 564990737 1669742044
23523
23524 \family sans
23525 Institute
23526 \family typewriter
23527  
23528 \family default
23529 to mark corresponding author\SpecialChar breakableslash
23530 institute pairs.
23531  The institutes are numbered sequentially as they appear in the 
23532 \family sans
23533 Address
23534 \family default
23535  field, so you have to put a marker to each author.
23536 \end_layout
23537
23538 \begin_layout Itemize
23539
23540 \change_deleted 564990737 1669742044
23541
23542 \family sans
23543 Email
23544 \family default
23545  to supply an email address for fast contact.
23546 \end_layout
23547
23548 \begin_layout Standard
23549
23550 \change_deleted 564990737 1669742044
23551 In addition to these topics, the macros use one additional \SpecialChar LaTeX
23552  command that
23553  has no counterpart in \SpecialChar LyX
23554 :
23555 \end_layout
23556
23557 \begin_layout Itemize
23558
23559 \change_deleted 564990737 1669742044
23560
23561 \family typewriter
23562
23563 \backslash
23564 and
23565 \family default
23566  to separate different names for more than one author and institute, respectivel
23567 y.
23568 \end_layout
23569
23570 \begin_layout Standard
23571
23572 \change_deleted 564990737 1669742044
23573 The appropriate command has to be entered in \SpecialChar LyX
23574  and marked as \SpecialChar LaTeX
23575  code.
23576  See the examples.
23577  
23578 \end_layout
23579
23580 \begin_layout Subsection
23581
23582 \change_deleted 564990737 1669742044
23583 The abstract
23584 \end_layout
23585
23586 \begin_layout Standard
23587
23588 \change_deleted 564990737 1669742044
23589 The abstract should immediately follow the header block.
23590  With version 5 the abstract environment was changed to a command, and there
23591  is now a restriction to only one paragraph.
23592  In addition, it should contain an entry with the keywords.
23593  This is done via the paragraph style 
23594 \family sans
23595 Keywords
23596 \family default
23597 .
23598  Refer to the example paper.
23599 \end_layout
23600
23601 \begin_layout Subsection
23602
23603 \change_deleted 564990737 1669742044
23604 Supported environments
23605 \end_layout
23606
23607 \begin_layout Standard
23608
23609 \change_deleted 564990737 1669742044
23610 The A&A paper layout supports the following environments for structuring
23611  your text:
23612 \end_layout
23613
23614 \begin_layout Itemize
23615
23616 \change_deleted 564990737 1669742044
23617
23618 \family sans
23619 Standard
23620 \end_layout
23621
23622 \begin_layout Itemize
23623
23624 \change_deleted 564990737 1669742044
23625
23626 \family sans
23627 Section
23628 \end_layout
23629
23630 \begin_layout Itemize
23631
23632 \change_deleted 564990737 1669742044
23633
23634 \family sans
23635 Subsection
23636 \end_layout
23637
23638 \begin_layout Itemize
23639
23640 \change_deleted 564990737 1669742044
23641
23642 \family sans
23643 Subsubsection
23644 \end_layout
23645
23646 \begin_layout Itemize
23647
23648 \change_deleted 564990737 1669742044
23649
23650 \family sans
23651 Itemize
23652 \end_layout
23653
23654 \begin_layout Itemize
23655
23656 \change_deleted 564990737 1669742044
23657
23658 \family sans
23659 Enumerate
23660 \end_layout
23661
23662 \begin_layout Itemize
23663
23664 \change_deleted 564990737 1669742044
23665
23666 \family sans
23667 Description
23668 \end_layout
23669
23670 \begin_layout Itemize
23671
23672 \change_deleted 564990737 1669742044
23673
23674 \family sans
23675 Caption
23676 \end_layout
23677
23678 \begin_layout Itemize
23679
23680 \change_deleted 564990737 1669742044
23681
23682 \family sans
23683 Abstract
23684 \end_layout
23685
23686 \begin_layout Itemize
23687
23688 \change_deleted 564990737 1669742044
23689
23690 \family sans
23691 Acknowledgment
23692 \end_layout
23693
23694 \begin_layout Itemize
23695
23696 \change_deleted 564990737 1669742044
23697
23698 \family sans
23699 Bibliography
23700 \end_layout
23701
23702 \begin_layout Itemize
23703
23704 \change_deleted 564990737 1669742044
23705
23706 \family sans
23707 \SpecialChar LaTeX
23708
23709 \end_layout
23710
23711 \begin_layout Subsection
23712
23713 \change_deleted 564990737 1669742044
23714 Commands not supported by \SpecialChar LyX
23715
23716 \end_layout
23717
23718 \begin_layout Standard
23719
23720 \change_deleted 564990737 1669742044
23721 Some commands are not yet supported by the 
23722 \family sans
23723 paper (A&A)
23724 \family default
23725  layout for \SpecialChar LyX
23726 .
23727  Some have already been mentioned.
23728  For the sake of completeness, they are listed all together here:
23729 \end_layout
23730
23731 \begin_layout Itemize
23732
23733 \change_deleted 564990737 1669742044
23734
23735 \family typewriter
23736
23737 \backslash
23738 and
23739 \end_layout
23740
23741 \begin_layout Itemize
23742
23743 \change_deleted 564990737 1669742044
23744
23745 \family typewriter
23746
23747 \backslash
23748 authorrunning
23749 \end_layout
23750
23751 \begin_layout Itemize
23752
23753 \change_deleted 564990737 1669742044
23754
23755 \family typewriter
23756
23757 \backslash
23758 object{}
23759 \end_layout
23760
23761 \begin_layout Itemize
23762
23763 \change_deleted 564990737 1669742044
23764
23765 \family typewriter
23766
23767 \backslash
23768 titlerunning{}
23769 \end_layout
23770
23771 \begin_layout Standard
23772
23773 \change_deleted 564990737 1669742044
23774 If you want to use any of these commands, you have to enter them yourself.
23775  
23776 \series bold
23777 Do not forget to mark them as \SpecialChar LaTeX
23778  code!
23779 \end_layout
23780
23781 \begin_layout Subsection
23782
23783 \change_deleted 564990737 1669742044
23784 Figure and Table Floats
23785 \end_layout
23786
23787 \begin_layout Standard
23788
23789 \change_deleted 564990737 1669742044
23790 \SpecialChar LyX
23791  provides support for the necessary float environments 
23792 \family sans
23793 figure, figure*, table
23794 \family default
23795  and 
23796 \family sans
23797 table*
23798 \family default
23799 , therefore we won't tell much about it here.
23800  Refer to the 
23801 \emph on
23802 User's
23803 \begin_inset space ~
23804 \end_inset
23805
23806 Guide
23807 \emph default
23808 .
23809  Just remember that tables should be left-aligned.
23810  For that, select the table and change the alignment in 
23811 \family sans
23812 Edit\SpecialChar menuseparator
23813 Paragraph
23814 \begin_inset space ~
23815 \end_inset
23816
23817 Settings.
23818 \end_layout
23819
23820 \begin_layout Standard
23821
23822 \change_deleted 564990737 1669742044
23823 There is only one special thing: the figures with caption besides the figure.
23824  To create such a figure, you have to do the following:
23825 \end_layout
23826
23827 \begin_layout Enumerate
23828
23829 \change_deleted 564990737 1669742044
23830 Create a wide figure float: 
23831 \family sans
23832 Insert\SpecialChar menuseparator
23833 Float\SpecialChar menuseparator
23834 Figure
23835 \family default
23836 , then right click in the figure and select 
23837 \family sans
23838 Span
23839 \begin_inset space ~
23840 \end_inset
23841
23842 columns
23843 \family default
23844 .
23845 \end_layout
23846
23847 \begin_layout Enumerate
23848
23849 \change_deleted 564990737 1669742044
23850 Enter your caption text.
23851 \end_layout
23852
23853 \begin_layout Enumerate
23854
23855 \change_deleted 564990737 1669742044
23856 Press 
23857 \family sans
23858 Return
23859 \family default
23860  to move the cursor above the caption.
23861 \end_layout
23862
23863 \begin_layout Enumerate
23864
23865 \change_deleted 564990737 1669742044
23866 Insert your figure
23867 \end_layout
23868
23869 \begin_layout Enumerate
23870
23871 \change_deleted 564990737 1669742044
23872 Position the cursor behind the figure and insert a horizontal fill: 
23873 \family sans
23874 Insert\SpecialChar menuseparator
23875 Special
23876 \begin_inset space ~
23877 \end_inset
23878
23879 Character\SpecialChar menuseparator
23880 Horizontal
23881 \begin_inset space ~
23882 \end_inset
23883
23884 Fill
23885 \family default
23886 .
23887 \end_layout
23888
23889 \begin_layout Enumerate
23890
23891 \change_deleted 564990737 1669742044
23892 Switch to \SpecialChar LaTeX
23893  mode: 
23894 \family sans
23895 M-c
23896 \begin_inset space ~
23897 \end_inset
23898
23899 t
23900 \family default
23901 .
23902 \end_layout
23903
23904 \begin_layout Enumerate
23905
23906 \change_deleted 564990737 1669742044
23907 Enter 
23908 \family typewriter
23909
23910 \backslash
23911 parbox[b]{55mm}{
23912 \family default
23913 .
23914  
23915 \series bold
23916 Do not close the brace!
23917 \end_layout
23918
23919 \begin_layout Enumerate
23920
23921 \change_deleted 564990737 1669742044
23922 Position the cursor behind the caption text, switch to \SpecialChar LaTeX
23923  mode and insert
23924  the closing brace: 
23925 \family sans
23926 M-c
23927 \begin_inset space ~
23928 \end_inset
23929
23930 t
23931 \family default
23932  
23933 \family typewriter
23934 }
23935 \family default
23936 .
23937 \end_layout
23938
23939 \begin_layout Standard
23940
23941 \change_deleted 564990737 1669742044
23942 Also, refer to the figures in the example paper.
23943 \end_layout
23944
23945 \begin_layout Subsection
23946
23947 \change_deleted 564990737 1669742044
23948 Referee layout
23949 \end_layout
23950
23951 \begin_layout Standard
23952
23953 \change_deleted 564990737 1669742044
23954 For submission, the paper has to be formated in a special double-spacing
23955  layout.
23956  For this purpose, you have to give the option 
23957 \family typewriter
23958 referee
23959 \family default
23960  to the document class.
23961  This must be done using the custom class options field in the 
23962 \family sans
23963 Document\SpecialChar menuseparator
23964 Settings
23965 \family default
23966  dialog.
23967  Just enter the string 
23968 \family typewriter
23969 referee
23970 \family default
23971  there.
23972 \end_layout
23973
23974 \begin_layout Subsection
23975
23976 \change_deleted 564990737 1669742044
23977 The example paper
23978 \end_layout
23979
23980 \begin_layout Standard
23981
23982 \change_deleted 564990737 1669742044
23983 The 
23984 \family sans
23985 Examples
23986 \family default
23987  directory contains an example paper written with \SpecialChar LyX
23988 .
23989  It is the example paper from the original macro package, translated to
23990  \SpecialChar LyX
23991 .
23992  Use it for inspiration, and compare the original \SpecialChar LaTeX
23993  code with \SpecialChar LyX
23994  way of writing.
23995 \end_layout
23996
23997 \begin_layout Section
23998
23999 \change_deleted 564990737 1671097429
24000 Dinbrief
24001 \end_layout
24002
24003 \begin_layout Standard
24004
24005 \change_deleted 564990737 1671097429
24006 The document class 
24007 \family sans
24008 dinbrief
24009 \family default
24010  can be used to type letters according to German conventions.
24011  A template file is included in 
24012 \family typewriter
24013 .../lyx/share/templates
24014 \family default
24015  for you to use as a starting point.
24016 \end_layout
24017
24018 \begin_layout Section
24019
24020 \change_deleted 564990737 1671097429
24021 Elsevier Journals
24022 \end_layout
24023
24024 \begin_layout Standard
24025
24026 \change_deleted 564990737 1671097429
24027 See the \SpecialChar LyX
24028  template file 
24029 \family typewriter
24030 elsarticle.lyx
24031 \family default
24032 .
24033  It contains all infos you need.
24034 \end_layout
24035
24036 \begin_layout Section
24037
24038 \change_deleted 564990737 1669755802
24039 ijmpc and ijmpd
24040 \end_layout
24041
24042 \begin_layout Standard
24043
24044 \change_deleted 564990737 1669755802
24045 by 
24046 \noun on
24047 Panayotis Papasotiriou
24048 \end_layout
24049
24050 \begin_layout Subsection
24051
24052 \change_deleted 564990737 1669755802
24053 Overview
24054 \end_layout
24055
24056 \begin_layout Standard
24057
24058 \change_deleted 564990737 1669755802
24059 The ijmpc package is a set of macros that facilitates electronic manuscript
24060  submission to the 
24061 \emph on
24062 International Journal of Modern Physics C
24063 \emph default
24064 .
24065  Similarly, the ijmpd package is for creating manuscripts to be submitted
24066  to the 
24067 \emph on
24068 International Journal of Modern Physics D
24069 \emph default
24070 .
24071  Both journals are published by World Scientific.
24072  The corresponding document classes are named 
24073 \family typewriter
24074 ws-ijmpc.cls
24075 \family default
24076  and 
24077 \family typewriter
24078 ws-ijmpd.cls
24079 \family default
24080 , respectively.
24081  These files, together with instructions for the authors, can be downloaded
24082  from the sites 
24083 \begin_inset Flex URL
24084 status collapsed
24085
24086 \begin_layout Plain Layout
24087
24088 http://www.worldscinet.com/ijmpc/mkt/guidelines.shtml
24089 \end_layout
24090
24091 \end_inset
24092
24093  and 
24094 \begin_inset Flex URL
24095 status collapsed
24096
24097 \begin_layout Plain Layout
24098
24099 http://www.worldscinet.com/ijmpd/mkt/guidelines.shtml
24100 \end_layout
24101
24102 \end_inset
24103
24104 .
24105  Both packages are modified versions of the standard 
24106 \begin_inset Quotes eld
24107 \end_inset
24108
24109 article
24110 \begin_inset Quotes erd
24111 \end_inset
24112
24113  package, and they are almost (but not exactly) identical.
24114  Most of their features are supported by \SpecialChar LyX
24115 .
24116  I have used \SpecialChar LyX
24117  successfully to write articles submitted to both journals
24118  without any problem.
24119 \end_layout
24120
24121 \begin_layout Subsection
24122
24123 \change_deleted 564990737 1669755802
24124 Writing a paper
24125 \end_layout
24126
24127 \begin_layout Standard
24128
24129 \change_deleted 564990737 1669755802
24130 As usual, the easiest way to write a paper is to start with a template.
24131  Click on 
24132 \family sans
24133 File\SpecialChar menuseparator
24134 New from
24135 \family default
24136  
24137 \family sans
24138 Template
24139 \family default
24140 , then choose the 
24141 \family typewriter
24142 ijmpc.lyx
24143 \family default
24144  or 
24145 \family typewriter
24146 ijmpd.lyx
24147 \family default
24148  template.
24149  This will give an (almost) empty document that includes the most common
24150  fields found in a manuscript.
24151  Simply overwrite the existing text (including the brackets, 
24152 \family typewriter
24153 <>
24154 \family default
24155 ) with your text.
24156  You should keep in mind the following remarks.
24157 \end_layout
24158
24159 \begin_layout Enumerate
24160
24161 \change_deleted 564990737 1669755802
24162 \SpecialChar LyX
24163  won't let you change the font size and the page style of the document,
24164  because such modifications are not allowed by both packages.
24165 \end_layout
24166
24167 \begin_layout Enumerate
24168
24169 \change_deleted 564990737 1669755802
24170 The language of the document should not be changed.
24171  Before previewing your paper, be sure that the babel package is not used.
24172  To do this, click on 
24173 \begin_inset Info
24174 type  "menu"
24175 arg   "dialog-show document"
24176 \end_inset
24177
24178  
24179 \family sans
24180 \SpecialChar menuseparator
24181 Language
24182 \family default
24183 , and select 
24184 \begin_inset Quotes eld
24185 \end_inset
24186
24187 None
24188 \begin_inset Quotes erd
24189 \end_inset
24190
24191  as 
24192 \family sans
24193 Language Package
24194 \family default
24195 .
24196 \end_layout
24197
24198 \begin_layout Enumerate
24199
24200 \change_deleted 564990737 1669755802
24201 The 
24202 \begin_inset Quotes eld
24203 \end_inset
24204
24205 Keywords
24206 \begin_inset Quotes erd
24207 \end_inset
24208
24209  style must be used to define keywords.
24210 \end_layout
24211
24212 \begin_layout Enumerate
24213
24214 \change_deleted 564990737 1669755802
24215 The ijmpc package provides a style named 
24216 \begin_inset Quotes eld
24217 \end_inset
24218
24219 Classification Codes
24220 \begin_inset Quotes erd
24221 \end_inset
24222
24223 , which can be used to define classification codes, such as PACS numbers.
24224  Note that this facility is not supported by the ijmpd package.
24225 \end_layout
24226
24227 \begin_layout Enumerate
24228
24229 \change_deleted 564990737 1669755802
24230 Several new environments are available: 
24231 \begin_inset Quotes eld
24232 \end_inset
24233
24234 Definition
24235 \begin_inset Quotes erd
24236 \end_inset
24237
24238
24239 \begin_inset Quotes eld
24240 \end_inset
24241
24242 Step
24243 \begin_inset Quotes erd
24244 \end_inset
24245
24246
24247 \begin_inset Quotes eld
24248 \end_inset
24249
24250 Example
24251 \begin_inset Quotes erd
24252 \end_inset
24253
24254
24255 \begin_inset Quotes eld
24256 \end_inset
24257
24258 Remark
24259 \begin_inset Quotes erd
24260 \end_inset
24261
24262
24263 \begin_inset Quotes eld
24264 \end_inset
24265
24266 Notation
24267 \begin_inset Quotes erd
24268 \end_inset
24269
24270
24271 \begin_inset Quotes eld
24272 \end_inset
24273
24274 Theorem
24275 \begin_inset Quotes erd
24276 \end_inset
24277
24278
24279 \begin_inset Quotes eld
24280 \end_inset
24281
24282 Proof
24283 \begin_inset Quotes erd
24284 \end_inset
24285
24286
24287 \begin_inset Quotes eld
24288 \end_inset
24289
24290 Corollary
24291 \begin_inset Quotes erd
24292 \end_inset
24293
24294
24295 \begin_inset Quotes eld
24296 \end_inset
24297
24298 Lemma
24299 \begin_inset Quotes erd
24300 \end_inset
24301
24302
24303 \begin_inset Quotes eld
24304 \end_inset
24305
24306 Proposition
24307 \begin_inset Quotes erd
24308 \end_inset
24309
24310
24311 \begin_inset Quotes eld
24312 \end_inset
24313
24314 Prop
24315 \begin_inset Quotes erd
24316 \end_inset
24317
24318
24319 \begin_inset Quotes eld
24320 \end_inset
24321
24322 Question
24323 \begin_inset Quotes erd
24324 \end_inset
24325
24326
24327 \begin_inset Quotes eld
24328 \end_inset
24329
24330 Claim
24331 \begin_inset Quotes erd
24332 \end_inset
24333
24334 , and 
24335 \begin_inset Quotes eld
24336 \end_inset
24337
24338 Conjecture
24339 \begin_inset Quotes erd
24340 \end_inset
24341
24342 .
24343  Their use is more or less obvious.
24344  \SpecialChar LyX
24345  supports all these environments; it will use the proper label, text style,
24346  and numbering scheme for each of them.
24347 \end_layout
24348
24349 \begin_layout Enumerate
24350
24351 \change_deleted 564990737 1669755802
24352 Both packages use basic citations; the natbib package should not be used.
24353  In \SpecialChar LyX
24354 , citation references are shown as usual; in the output, citations are
24355  shown as superscripts.
24356  If you want to use a citation as normal text, you should use the 
24357 \family typewriter
24358 refcite
24359 \family default
24360  command, e.
24361 \begin_inset space \thinspace{}
24362 \end_inset
24363
24364 g.
24365 \begin_inset space \space{}
24366 \end_inset
24367
24368
24369 \begin_inset Quotes eld
24370 \end_inset
24371
24372 See Ref.
24373 \begin_inset space \space{}
24374 \end_inset
24375
24376
24377 \family typewriter
24378
24379 \backslash
24380 refcite{key}
24381 \family default
24382
24383 \begin_inset Quotes erd
24384 \end_inset
24385
24386 .
24387 \end_layout
24388
24389 \begin_layout Enumerate
24390
24391 \change_deleted 564990737 1669755802
24392 There is no 
24393 \begin_inset Quotes eld
24394 \end_inset
24395
24396 Acknowledgments
24397 \begin_inset Quotes erd
24398 \end_inset
24399
24400  section in both packages.
24401  To put acknowledgments, just use the 
24402 \begin_inset Quotes eld
24403 \end_inset
24404
24405 Section*
24406 \begin_inset Quotes erd
24407 \end_inset
24408
24409  environment.
24410 \end_layout
24411
24412 \begin_layout Enumerate
24413
24414 \change_deleted 564990737 1669755802
24415 Appendices may be added to the paper, 
24416 \emph on
24417 after
24418 \emph default
24419  the Acknowledgments and 
24420 \shape italic
24421 before
24422 \shape default
24423  the References.
24424  \SpecialChar LyX
24425  provides a special environment, called 
24426 \begin_inset Quotes eld
24427 \end_inset
24428
24429 Appendices Section
24430 \begin_inset Quotes erd
24431 \end_inset
24432
24433  which marks the beginning of the appendices.
24434  This environment should be left blank; it just sends a \SpecialChar LaTeX
24435  command, but nothing
24436  is really printed.
24437  In \SpecialChar LyX
24438 , the word 
24439 \begin_inset Quotes eld
24440 \end_inset
24441
24442 Appendix
24443 \begin_inset Quotes erd
24444 \end_inset
24445
24446  is printed with blue letters, as a signal that all sections after that
24447  point are appendices.
24448  To write an appendix, use the 
24449 \begin_inset Quotes eld
24450 \end_inset
24451
24452 Appendix
24453 \begin_inset Quotes erd
24454 \end_inset
24455
24456  environment.
24457  \SpecialChar LyX
24458  will number each appendix with capital letters, as required by both journals.
24459  Note that 
24460 \begin_inset Quotes eld
24461 \end_inset
24462
24463 Appendices Section
24464 \begin_inset Quotes erd
24465 \end_inset
24466
24467  
24468 \emph on
24469 must
24470 \emph default
24471  be present before the first appendix; if not, all appendices will be numbered
24472  as normal sections in the output.
24473 \end_layout
24474
24475 \begin_layout Enumerate
24476
24477 \change_deleted 564990737 1669755802
24478 The ijmpc and the ijmpd packages use the 
24479 \family typewriter
24480 tbl
24481 \family default
24482  command to implement table captions.
24483  As a result, a table created by \SpecialChar LyX
24484  is printed correctly, but its caption
24485  is ignored.
24486  However, you can use some \SpecialChar TeX
24487  code to overcome this problem, so that captions
24488  are printed as expected.
24489  To do so, create a float table as usual, remove the caption, and replace
24490  it with the \SpecialChar TeX
24491  code 
24492 \family typewriter
24493
24494 \backslash
24495 tbl{
24496 \emph on
24497 your table caption
24498 \emph default
24499 }{
24500 \family default
24501  (sic); you must also the \SpecialChar TeX
24502  code 
24503 \family typewriter
24504 }
24505 \family default
24506  immediately after the tabular material.
24507  Study the example table included in the template files to see how this
24508  trick is implemented.
24509  Alternatively, If you need table captions, you should implement the whole
24510  table float in a 
24511 \family typewriter
24512 .tex
24513 \family default
24514  file, then include this file to the \SpecialChar LyX
24515  document (
24516 \family sans
24517 Insert\SpecialChar menuseparator
24518 File\SpecialChar menuseparator
24519 Child
24520 \begin_inset space ~
24521 \end_inset
24522
24523 Document
24524 \family default
24525 ).
24526  Details on how to create a table float can be found in the files 
24527 \family typewriter
24528 ws-ijmpc.tex
24529 \family default
24530  and 
24531 \family typewriter
24532 ws-ijmpd.tex
24533 \family default
24534 , included in the corresponding packages.
24535 \end_layout
24536
24537 \begin_layout Subsection
24538
24539 \change_deleted 564990737 1669755802
24540 Preparing a paper for submission
24541 \end_layout
24542
24543 \begin_layout Standard
24544
24545 \change_deleted 564990737 1669755802
24546 Before you submit your paper you must export the \SpecialChar LyX
24547  document as a \SpecialChar LaTeX
24548  file (
24549 \family sans
24550 File\SpecialChar menuseparator
24551 Export\SpecialChar menuseparator
24552 \SpecialChar LaTeX
24553
24554 \family default
24555 )
24556 \begin_inset Foot
24557 status open
24558
24559 \begin_layout Plain Layout
24560 Actually you have the choice between \SpecialChar LaTeX
24561  (plain) and pdflatex.
24562  If you intend to use pdflatex to prepare the paper, you should use the
24563  pdflatex option so that included graphics are converted to PDF format,
24564  ready for use by pdflatex.
24565 \end_layout
24566
24567 \end_inset
24568
24569 , then make the following changes to the resulting 
24570 \family typewriter
24571 .tex
24572 \family default
24573  file.
24574 \end_layout
24575
24576 \begin_layout Enumerate
24577
24578 \change_deleted 564990737 1669755802
24579 Remove the comment lines before the 
24580 \family typewriter
24581
24582 \backslash
24583 documentclass
24584 \family default
24585  command.
24586 \end_layout
24587
24588 \begin_layout Enumerate
24589
24590 \change_deleted 564990737 1669755802
24591 Remove everything between (and including) the 
24592 \family typewriter
24593
24594 \backslash
24595 makeatletter
24596 \family default
24597  and 
24598 \family typewriter
24599
24600 \backslash
24601 makeatother
24602 \family default
24603  commands, except for any commands you specifically put into the \SpecialChar LaTeX
24604  preamble.
24605 \end_layout
24606
24607 \begin_layout Standard
24608
24609 \change_deleted 564990737 1669755802
24610 The modified 
24611 \family typewriter
24612 .tex
24613 \family default
24614  file should be saved and processed through \SpecialChar LaTeX
24615  as many times as necessary.
24616  You may also want to check the resulting 
24617 \family typewriter
24618 .dvi
24619 \family default
24620  document.
24621 \change_unchanged
24622
24623 \end_layout
24624
24625 \begin_layout Section
24626
24627 \change_deleted 564990737 1669801478
24628 iopart
24629 \end_layout
24630
24631 \begin_layout Standard
24632
24633 \change_deleted 564990737 1669801478
24634 by 
24635 \noun on
24636 Uwe Stöhr
24637 \end_layout
24638
24639 \begin_layout Subsection
24640
24641 \change_deleted 564990737 1669801478
24642 Overview
24643 \end_layout
24644
24645 \begin_layout Standard
24646
24647 \change_deleted 564990737 1669801478
24648 The iopart package provides a document class to create electronic manuscript
24649  submission to the journals published by the Institute of Physics.
24650  Instructions for the authors how to create a paper using the iopart class
24651  can be downloaded together with the iopart package from the site 
24652 \begin_inset Flex URL
24653 status collapsed
24654
24655 \begin_layout Plain Layout
24656
24657 ftp://ftp.iop.org/pub/journals/latex2e
24658 \end_layout
24659
24660 \end_inset
24661
24662 .
24663 \end_layout
24664
24665 \begin_layout Subsection
24666
24667 \change_deleted 564990737 1669801478
24668 Writing a paper
24669 \end_layout
24670
24671 \begin_layout Standard
24672
24673 \change_deleted 564990737 1669801478
24674 The easiest way to write a paper is to start with the template 
24675 \emph on
24676 IOP-article.lyx
24677 \emph default
24678  that is available via 
24679 \family sans
24680 File\SpecialChar menuseparator
24681 New From Template
24682 \family default
24683  The template explains how to use the special text environments.
24684  Here are the most important advices:
24685 \end_layout
24686
24687 \begin_layout Itemize
24688
24689 \change_deleted 564990737 1669801478
24690 To be able to compile your document to a PDF, PS, or DVI, ensure that the
24691  no AMS packages are loaded in 
24692 \family sans
24693 Document\SpecialChar menuseparator
24694 Settings\SpecialChar menuseparator
24695 Math Options
24696 \family default
24697 !
24698 \end_layout
24699
24700 \begin_layout Itemize
24701
24702 \change_deleted 564990737 1669801478
24703
24704 \size normal
24705 The title environment defines the kind of your paper.
24706  So use one of the following environments for the title:
24707 \end_layout
24708
24709 \begin_deeper
24710 \begin_layout Itemize
24711
24712 \change_deleted 564990737 1669801478
24713
24714 \family sans
24715 \size normal
24716 Title
24717 \family default
24718  for a Paper
24719 \end_layout
24720
24721 \begin_layout Itemize
24722
24723 \change_deleted 564990737 1669801478
24724
24725 \family sans
24726 \size normal
24727 Review
24728 \family default
24729  for a Review
24730 \end_layout
24731
24732 \begin_layout Itemize
24733
24734 \change_deleted 564990737 1669801478
24735
24736 \family sans
24737 \size normal
24738 Topical
24739 \family default
24740  for a Topical review
24741 \end_layout
24742
24743 \begin_layout Itemize
24744
24745 \change_deleted 564990737 1669801478
24746
24747 \family sans
24748 \size normal
24749 Comment
24750 \family default
24751  for a Comment
24752 \end_layout
24753
24754 \begin_layout Itemize
24755
24756 \change_deleted 564990737 1669801478
24757
24758 \family sans
24759 \size normal
24760 Note
24761 \family default
24762  for a Note
24763 \end_layout
24764
24765 \begin_layout Itemize
24766
24767 \change_deleted 564990737 1669801478
24768
24769 \family sans
24770 \size normal
24771 Paper
24772 \family default
24773  for a Paper (same as Title)
24774 \end_layout
24775
24776 \begin_layout Itemize
24777
24778 \change_deleted 564990737 1669801478
24779
24780 \family sans
24781 \size normal
24782 Prelim
24783 \family default
24784  for a Preliminary communication
24785 \end_layout
24786
24787 \begin_layout Itemize
24788
24789 \change_deleted 564990737 1669801478
24790
24791 \family sans
24792 \size normal
24793 Rapid
24794 \family default
24795  for a Rapid communication
24796 \end_layout
24797
24798 \begin_layout Itemize
24799
24800 \change_deleted 564990737 1669801478
24801
24802 \family sans
24803 \size normal
24804 Letter
24805 \family default
24806  for a Letter to the editor
24807 \end_layout
24808
24809 \end_deeper
24810 \begin_layout Itemize
24811
24812 \change_deleted 564990737 1669801478
24813
24814 \size normal
24815 All title environments except of 
24816 \family sans
24817 Letter
24818 \family default
24819  can have an optional short title.
24820 \end_layout
24821
24822 \begin_layout Itemize
24823
24824 \change_deleted 564990737 1669801478
24825 There is a general title environment 
24826 \family sans
24827 Article
24828 \family default
24829  which is not directly supported by \SpecialChar LyX
24830 .
24831  This can be used as \SpecialChar TeX
24832  code when your document doesn't fit into one of the
24833  other title types.
24834 \end_layout
24835
24836 \begin_layout Standard
24837
24838 \change_deleted 564990737 1669801478
24839 For more informations like hints for special table and formula formatting,
24840  look at the IOP author guidelines.
24841 \change_unchanged
24842
24843 \end_layout
24844
24845 \begin_layout Section
24846
24847 \change_deleted 564990737 1670317155
24848 Kluwer
24849 \end_layout
24850
24851 \begin_layout Standard
24852
24853 \change_deleted 564990737 1670317155
24854 by 
24855 \noun on
24856 Panayotis Papasotiriou
24857 \end_layout
24858
24859 \begin_layout Subsection
24860
24861 \change_deleted 564990737 1670317155
24862 Overview
24863 \end_layout
24864
24865 \begin_layout Standard
24866
24867 \change_deleted 564990737 1670317155
24868 The Kluwer package is a set of macros produced by Kluwer Academic Publishers
24869  that facilitates electronic manuscript submission to the journals they
24870  publish.
24871  Most known of them (at least in my domain of interest) are 
24872 \emph on
24873 Astrophysics and Space Science
24874 \emph default
24875  and 
24876 \emph on
24877 Solar Physics
24878 \emph default
24879 , but there are many others (see a complete list at 
24880 \begin_inset Flex URL
24881 status collapsed
24882
24883 \begin_layout Plain Layout
24884
24885 http://www.wkap.nl/jrnllist.htm/JRNLHOME
24886 \end_layout
24887
24888 \end_inset
24889
24890 ).
24891  The Kluwer package may be downloaded from the site 
24892 \begin_inset Flex URL
24893 status collapsed
24894
24895 \begin_layout Plain Layout
24896
24897 http://www.wkap.nl/kaphtml.htm/STYLEFILES
24898 \end_layout
24899
24900 \end_inset
24901
24902 .
24903  A complete user guide is contained in that package (but it can also be
24904  downloaded separately).
24905 \end_layout
24906
24907 \begin_layout Standard
24908
24909 \change_deleted 564990737 1670317155
24910 \SpecialChar LyX
24911  supports many features of the package but not everything.
24912  However, the \SpecialChar TeX
24913  code needed is reduced to some 
24914 \begin_inset Quotes eld
24915 \end_inset
24916
24917 peculiar
24918 \begin_inset Quotes erd
24919 \end_inset
24920
24921  commands of the package (see
24922 \begin_inset space ~
24923 \end_inset
24924
24925
24926 \begin_inset CommandInset ref
24927 LatexCommand ref
24928 nolink "false"
24929 reference "subsec:kluwer_peculiarities"
24930
24931 \end_inset
24932
24933 ).
24934  I have recently used \SpecialChar LyX
24935  to write an article submitted to the 
24936 \emph on
24937 Astrophysics and Space Science
24938 \emph default
24939  without any problem.
24940 \end_layout
24941
24942 \begin_layout Subsection
24943
24944 \change_deleted 564990737 1670317155
24945 Writing a paper
24946 \end_layout
24947
24948 \begin_layout Standard
24949
24950 \change_deleted 564990737 1670317155
24951 The easiest way to write a paper is to start with the Kluwer template file.
24952  Click on 
24953 \family sans
24954 File\SpecialChar menuseparator
24955 New from
24956 \family default
24957  
24958 \family sans
24959 Template
24960 \family default
24961 , then choose the 
24962 \family typewriter
24963 kluwer.lyx
24964 \family default
24965  template.
24966  This will give an (almost) empty document that includes the most common
24967  fields found in a manuscript and a short description of their use.
24968  As in most templates, simply overwrite the existing text (including the
24969  brackets, 
24970 \family typewriter
24971 <>
24972 \family default
24973 ) with the correct information.
24974 \end_layout
24975
24976 \begin_layout Subsection
24977
24978 \change_deleted 564990737 1670317155
24979 Preparing a paper for submission
24980 \end_layout
24981
24982 \begin_layout Standard
24983
24984 \change_deleted 564990737 1670317155
24985 As in the AAS\SpecialChar TeX
24986  package, before you submit your paper to a journal you must
24987  
24988 \begin_inset Quotes eld
24989 \end_inset
24990
24991 postprocess
24992 \begin_inset Quotes erd
24993 \end_inset
24994
24995  it as follows.
24996 \end_layout
24997
24998 \begin_layout Enumerate
24999
25000 \change_deleted 564990737 1670317155
25001 Export your paper as a \SpecialChar LaTeX
25002  file.
25003  To do this, click on 
25004 \family sans
25005 File\SpecialChar menuseparator
25006 Export\SpecialChar menuseparator
25007 \SpecialChar LaTeX
25008
25009 \family default
25010 .
25011  
25012 \end_layout
25013
25014 \begin_layout Enumerate
25015
25016 \change_deleted 564990737 1670317155
25017 Edit the resulting 
25018 \family typewriter
25019 .tex
25020 \family default
25021  file with a text editor and make the following changes
25022 \end_layout
25023
25024 \begin_deeper
25025 \begin_layout Enumerate
25026
25027 \change_deleted 564990737 1670317155
25028 remove the comment lines before the 
25029 \family typewriter
25030
25031 \backslash
25032 documentclass
25033 \family default
25034  command,
25035 \end_layout
25036
25037 \begin_layout Enumerate
25038
25039 \change_deleted 564990737 1670317155
25040 remove everything between (and including) the 
25041 \family typewriter
25042
25043 \backslash
25044 makeatletter
25045 \family default
25046  and 
25047 \family typewriter
25048
25049 \backslash
25050 makeatother
25051 \family default
25052  commands, except for any commands you specifically put into the \SpecialChar LaTeX
25053  preamble.
25054 \end_layout
25055
25056 \begin_layout Standard
25057
25058 \change_deleted 564990737 1670317155
25059 Save the resulting 
25060 \family typewriter
25061 .tex
25062 \family default
25063  file.
25064 \end_layout
25065
25066 \end_deeper
25067 \begin_layout Enumerate
25068
25069 \change_deleted 564990737 1670317155
25070 Run the 
25071 \family typewriter
25072 .tex
25073 \family default
25074  file through \SpecialChar LaTeX
25075  as many times as necessary (usually up to three).
25076 \end_layout
25077
25078 \begin_layout Enumerate
25079
25080 \change_deleted 564990737 1670317155
25081 View the resulting 
25082 \family typewriter
25083 .dvi
25084 \family default
25085  document using, e.
25086 \begin_inset space \thinspace{}
25087 \end_inset
25088
25089 g.
25090 \begin_inset space \space{}
25091 \end_inset
25092
25093
25094 \family sans
25095 xdvi
25096 \family default
25097 , and check if everything is OK (it should, if you didn't make any mistake).
25098 \end_layout
25099
25100 \begin_layout Subsection
25101
25102 \change_deleted 564990737 1670317155
25103 \begin_inset Quotes eld
25104 \end_inset
25105
25106 Peculiarities
25107 \begin_inset Quotes erd
25108 \end_inset
25109
25110  of the Kluwer package
25111 \begin_inset CommandInset label
25112 LatexCommand label
25113 name "subsec:kluwer_peculiarities"
25114
25115 \end_inset
25116
25117
25118 \end_layout
25119
25120 \begin_layout Standard
25121
25122 \change_deleted 564990737 1670317155
25123 The Kluwer package has the following 
25124 \begin_inset Quotes eld
25125 \end_inset
25126
25127 peculiarities
25128 \begin_inset Quotes erd
25129 \end_inset
25130
25131 .
25132 \end_layout
25133
25134 \begin_layout Enumerate
25135
25136 \change_deleted 564990737 1670317155
25137 It is possible to write multiple articles in the same \SpecialChar LaTeX
25138  file
25139 \begin_inset Foot
25140 status collapsed
25141
25142 \begin_layout Plain Layout
25143 I can't imagine any good reason to do this.
25144 \end_layout
25145
25146 \end_inset
25147
25148 .
25149  Each article must be included in the environment 
25150 \begin_inset Quotes eld
25151 \end_inset
25152
25153 article
25154 \begin_inset Quotes erd
25155 \end_inset
25156
25157 .
25158  Unfortunately, this environment cannot be omitted, even if you write just
25159  one article.
25160  Therefore, each article starts with the command 
25161 \family typewriter
25162
25163 \backslash
25164 begin{article}
25165 \family default
25166  and, obviously, ends with the command 
25167 \family typewriter
25168
25169 \backslash
25170 end{article}
25171 \family default
25172 .
25173  Although this can be implemented in \SpecialChar LyX
25174 , I didn't included it, since it looks
25175  ugly and can confuse the novice user.
25176  Therefore, you need to enter them directly and mark them as \SpecialChar LaTeX
25177  code (the
25178  well-known 
25179 \begin_inset Quotes eld
25180 \end_inset
25181
25182 \SpecialChar TeX
25183  code
25184 \begin_inset Quotes erd
25185 \end_inset
25186
25187 ).
25188 \end_layout
25189
25190 \begin_layout Enumerate
25191
25192 \change_deleted 564990737 1670317155
25193 Information given at the beginning of the article (i.
25194 \begin_inset space \thinspace{}
25195 \end_inset
25196
25197 e.
25198 \begin_inset space \space{}
25199 \end_inset
25200
25201 title, subtitle, author, institution, running title, running author, abstract
25202  and keywords) must be included in an environment called 
25203 \begin_inset Quotes eld
25204 \end_inset
25205
25206 opening
25207 \begin_inset Quotes erd
25208 \end_inset
25209
25210 .
25211  This is not implemented in \SpecialChar LyX
25212 , so you must enter title, subtitle etc.
25213 \begin_inset space ~
25214 \end_inset
25215
25216 between two \SpecialChar TeX
25217  code lines (
25218 \family typewriter
25219
25220 \backslash
25221 begin{opening}
25222 \family default
25223  and 
25224 \family typewriter
25225
25226 \backslash
25227 end{opening}
25228 \family default
25229 ).
25230 \end_layout
25231
25232 \begin_layout Enumerate
25233
25234 \change_deleted 564990737 1670317155
25235 According to the user manual, the label of each bibliography item must be
25236  written as 
25237 \family typewriter
25238
25239 \backslash
25240 protect
25241 \backslash
25242 citeauthoryear{
25243 \family default
25244 \emph on
25245 author(s)
25246 \family typewriter
25247 \emph default
25248 }{
25249 \family default
25250 \emph on
25251 year
25252 \family typewriter
25253 \emph default
25254 }
25255 \family default
25256 .
25257 \end_layout
25258
25259 \begin_layout Standard
25260
25261 \change_deleted 564990737 1670317155
25262 The 
25263 \family typewriter
25264 kluwer.lyx
25265 \family default
25266  template takes care of all these 
25267 \begin_inset Quotes eld
25268 \end_inset
25269
25270 peculiarities
25271 \begin_inset Quotes erd
25272 \end_inset
25273
25274 .
25275  If you start a new paper using this template you don't need to do anything
25276  special.
25277  Just 
25278 \end_layout
25279
25280 \begin_layout Enumerate
25281
25282 \change_deleted 564990737 1670317155
25283 don't delete the \SpecialChar TeX
25284  code included in the template, and
25285 \end_layout
25286
25287 \begin_layout Enumerate
25288
25289 \change_deleted 564990737 1670317155
25290 copy the example bibliography item included in the template and modify it
25291  as necessary to enter new bibliography items.
25292 \end_layout
25293
25294 \begin_layout Section
25295
25296 \change_deleted 564990737 1671097446
25297 Paper
25298 \end_layout
25299
25300 \begin_layout Standard
25301
25302 \change_deleted 564990737 1671097446
25303 The document class 
25304 \family sans
25305 paper
25306 \family default
25307  provides an alternative to the standard 
25308 \family sans
25309 article
25310 \family default
25311  class.
25312  It provides similar functionality, but you might prefer this layout with
25313  sans serif sections, headings, and more.
25314 \end_layout
25315
25316 \begin_layout Section
25317
25318 \change_deleted 564990737 1671097446
25319 Springer Journals (
25320 \family sans
25321 svjour
25322 \family default
25323 )
25324 \end_layout
25325
25326 \begin_layout Standard
25327
25328 \change_deleted 564990737 1671097446
25329 by 
25330 \noun on
25331 Martin Vermeer
25332 \end_layout
25333
25334 \begin_layout Subsection
25335
25336 \change_deleted 564990737 1671097446
25337 Description
25338 \end_layout
25339
25340 \begin_layout Standard
25341
25342 \change_deleted 564990737 1671097446
25343 These are the layout files for some of the journal formats used by Springer
25344  Verlag and listed on 
25345 \begin_inset Flex URL
25346 status collapsed
25347
25348 \begin_layout Plain Layout
25349
25350 http://www.springer.de/author/tex/help-journals.html
25351 \end_layout
25352
25353 \end_inset
25354
25355 , where you should also go to fetch the class files (yes, these are \SpecialChar LaTeX2e
25356  now!).
25357  It is a modular system: the things common to all journals are implemented
25358  in 
25359 \family typewriter
25360 svjour.inc
25361 \family default
25362 , which journal-specific layout files (such as, e.
25363 \begin_inset space \thinspace{}
25364 \end_inset
25365
25366 g.
25367 \begin_inset space \space{}
25368 \end_inset
25369
25370
25371 \family typewriter
25372 svjog.layout
25373 \family default
25374  for Journal of Geodesy) can include.
25375 \end_layout
25376
25377 \begin_layout Standard
25378
25379 \change_deleted 564990737 1671097446
25380 This means that implementing support for any other Springer journal on this
25381  list is as simple as writing your own 
25382 \family typewriter
25383 sv
25384 \family default
25385 <myjournal>
25386 \family typewriter
25387 .layout
25388 \family default
25389  file following the outline given in 
25390 \family typewriter
25391 svjog.layout
25392 \family default
25393 .
25394  
25395 \end_layout
25396
25397 \begin_layout Standard
25398
25399 \change_deleted 564990737 1671097446
25400 It is reasonably well tested only for the Journal of Geodesy.
25401  
25402 \family typewriter
25403 svjour
25404 \family default
25405  and 
25406 \family typewriter
25407 svjog
25408 \family default
25409  come with the standard \SpecialChar LyX
25410  distribution.
25411  Install the relevant class file (downloaded from Springer) in a proper
25412  directory, reconfigure \SpecialChar LaTeX
25413  (in the te\SpecialChar TeX
25414  case by running 
25415 \family typewriter
25416 texhash
25417 \family default
25418 , as root if necessary — doesn't \SpecialChar LyX
25419  take care of this?), reconfigure \SpecialChar LyX
25420  and
25421  it should work.
25422 \end_layout
25423
25424 \begin_layout Subsection
25425
25426 \change_deleted 564990737 1671097446
25427 New styles
25428 \end_layout
25429
25430 \begin_layout Standard
25431
25432 \change_deleted 564990737 1671097446
25433 A large number of theorem-like styles — 
25434 \family sans
25435 Claim, Conjecture,
25436 \family default
25437  
25438 \family sans
25439 \SpecialChar ldots
25440 Theorem
25441 \family default
25442 .
25443 \end_layout
25444
25445 \begin_layout Standard
25446
25447 \change_deleted 564990737 1671097446
25448
25449 \family sans
25450 Headnote, Dedication, Subtitle, Running_\SpecialChar LaTeX
25451 _Title, Author_Running, Institute,
25452  Mail, Offprints, Keywords, Acknowledgements, Acknowledgement
25453 \family default
25454 .
25455  See the Springer class file documentation for details.
25456 \end_layout
25457
25458 \begin_layout Subsection
25459
25460 \change_deleted 564990737 1671097446
25461 Supported journals
25462 \end_layout
25463
25464 \begin_layout Itemize
25465
25466 \change_deleted 564990737 1671097446
25467
25468 \emph on
25469 Journal of Geodesy
25470 \emph default
25471
25472 \family typewriter
25473 svjog.layout
25474 \family default
25475  — Martin Vermeer
25476 \end_layout
25477
25478 \begin_layout Itemize
25479
25480 \change_deleted 564990737 1671097446
25481
25482 \emph on
25483 Probability Theory and Related Fields
25484 \emph default
25485
25486 \family typewriter
25487 svprobth.layout
25488 \family default
25489  — Jean-Marc Lasgouttes
25490 \end_layout
25491
25492 \begin_layout Standard
25493
25494 \change_deleted 564990737 1671097446
25495 Add your own, it isn't so hard!
25496 \end_layout
25497
25498 \begin_layout Subsection
25499
25500 \change_deleted 564990737 1671097446
25501 Credits
25502 \end_layout
25503
25504 \begin_layout Standard
25505
25506 \change_deleted 564990737 1671097446
25507 These files are partly based on the older 
25508 \family typewriter
25509 ejour2.layout
25510 \family default
25511 , which was again based on a tinkered-with version of an old \SpecialChar LaTeX
25512  2.09 style
25513  file from Springer.
25514  All this, and the 
25515 \family typewriter
25516 ejour2
25517 \family default
25518  layout, are now defunct.
25519  Jean-Marc Lasgouttes helped out big in making me find my way around the
25520  \SpecialChar LyX
25521  layout file mechanism.
25522 \end_layout
25523
25524 \begin_layout Subsection
25525
25526 \change_deleted 564990737 1671097446
25527 Bugs
25528 \end_layout
25529
25530 \begin_layout Standard
25531
25532 \change_deleted 564990737 1671097446
25533 Probably.
25534  But probably less than in the old hacked-\SpecialChar LaTeX
25535  
25536 \family typewriter
25537 ejour2
25538 \family default
25539 .
25540 \end_layout
25541
25542 \begin_layout Chapter
25543 \SpecialChar LyX
25544  Features needing Extra Software
25545 \end_layout
25546
25547 \begin_layout Section
25548 Checking \SpecialChar TeX
25549
25550 \end_layout
25551
25552 \begin_layout Standard
25553 by 
25554 \noun on
25555 Asger Alstrup
25556 \end_layout
25557
25558 \begin_layout Subsection
25559 Introduction
25560 \end_layout
25561
25562 \begin_layout Standard
25563 If you have the 
25564 \family typewriter
25565 chktex
25566 \family default
25567  program installed
25568 \begin_inset Foot
25569 status collapsed
25570
25571 \begin_layout Plain Layout
25572
25573 \family typewriter
25574 chktex
25575 \family default
25576  is not yet available when you are using the \SpecialChar LaTeX
25577  distribution MiK\SpecialChar TeX
25578 .
25579 \end_layout
25580
25581 \end_inset
25582
25583 , you'll find in the 
25584 \family sans
25585 Tools
25586 \family default
25587  menu the entry: 
25588 \family sans
25589 Check
25590 \begin_inset space ~
25591 \end_inset
25592
25593 TeX
25594 \family default
25595 .
25596  You can get 
25597 \family typewriter
25598 chktex
25599 \family default
25600  from CTAN,
25601 \begin_inset Newline newline
25602 \end_inset
25603
25604
25605 \begin_inset CommandInset href
25606 LatexCommand href
25607 target "https://www.ctan.org/tex-archive/help/Catalogue/entries/chktex.html"
25608 literal "false"
25609
25610 \end_inset
25611
25612 .
25613 \end_layout
25614
25615 \begin_layout Standard
25616 The 
25617 \family sans
25618 Chk\SpecialChar TeX
25619
25620 \family default
25621  package is a program that was written by 
25622 \begin_inset Flex Noun
25623 status collapsed
25624
25625 \begin_layout Plain Layout
25626 Jens T.
25627 \begin_inset space ~
25628 \end_inset
25629
25630 Berger Thielemann
25631 \end_layout
25632
25633 \end_inset
25634
25635  in frustration because some constructs in \SpecialChar LaTeX
25636  are sometimes non-intuitive,
25637  and easy to forget.
25638  The program runs over your \SpecialChar LaTeX
25639  file, checks the integrity of the file, and
25640  flags some common errors.
25641  In other technical words, it is 
25642 \family typewriter
25643 lint
25644 \family default
25645  for \SpecialChar LaTeX
25646 .
25647 \end_layout
25648
25649 \begin_layout Standard
25650 Well, what is a syntax checker doing in \SpecialChar LyX
25651  which is supposed to produce correct
25652  \SpecialChar LaTeX
25653  anyways? The answer is simple: Just as 
25654 \family typewriter
25655 Lint
25656 \family default
25657  not only checks the 
25658 \emph on
25659 syntax
25660 \emph default
25661  of C programs, but also does 
25662 \emph on
25663 semantic
25664 \emph default
25665  checks for type-errors, 
25666 \family sans
25667 Chk\SpecialChar TeX
25668
25669 \family default
25670  catches some common 
25671 \emph on
25672 typographic
25673 \emph default
25674  errors, in addition to the syntactical ones.
25675  Specifically, 
25676 \family sans
25677 Chk\SpecialChar TeX
25678
25679 \family default
25680  is capable of detecting several common errors, such as
25681 \end_layout
25682
25683 \begin_layout Itemize
25684 Ellipsis detection:
25685 \begin_inset Newline newline
25686 \end_inset
25687
25688 Use \SpecialChar ldots
25689  instead of ...
25690 \end_layout
25691
25692 \begin_layout Itemize
25693 No space in front of/after parenthesis:
25694 \begin_inset Newline newline
25695 \end_inset
25696
25697 ( wrong spacing )
25698 \end_layout
25699
25700 \begin_layout Itemize
25701 Enforcement of normal space after common abbreviations:
25702 \begin_inset Newline newline
25703 \end_inset
25704
25705 e.
25706 \begin_inset space \thinspace{}
25707 \end_inset
25708
25709 g.
25710 \begin_inset space \space{}
25711 \end_inset
25712
25713 is too wide spacing.
25714 \end_layout
25715
25716 \begin_layout Itemize
25717 Enforcement of end-of-sentence space when the last sentence ends with a
25718  capital letter:
25719 \begin_inset Newline newline
25720 \end_inset
25721
25722 This is a TEST.
25723  And this is wrong spacing.
25724 \end_layout
25725
25726 \begin_layout Itemize
25727 Space in front of labels and similar commands:
25728 \begin_inset Newline newline
25729 \end_inset
25730
25731 The label should stick right up to the text to avoid falling to a wrong
25732  page.
25733  
25734 \begin_inset CommandInset label
25735 LatexCommand label
25736 name "sec:chktex"
25737
25738 \end_inset
25739
25740  
25741 \begin_inset Foot
25742 status collapsed
25743
25744 \begin_layout Plain Layout
25745 This footnote is in danger of falling off to a wrong page
25746 \end_layout
25747
25748 \end_inset
25749
25750  The label is separated too much.
25751 \end_layout
25752
25753 \begin_layout Itemize
25754 Space in front of references, instead of hard spaces:
25755 \begin_inset Newline newline
25756 \end_inset
25757
25758 If you have bad luck, the text will break right between the referenced text
25759  and reference number, and that's a pity.
25760  See section 
25761 \begin_inset CommandInset ref
25762 LatexCommand ref
25763 nolink "false"
25764 reference "sec:chktex"
25765
25766 \end_inset
25767
25768 .
25769 \end_layout
25770
25771 \begin_layout Itemize
25772 Use of 
25773 \begin_inset Quotes eld
25774 \end_inset
25775
25776 x
25777 \begin_inset Quotes erd
25778 \end_inset
25779
25780  instead of 
25781 \begin_inset Formula $\times$
25782 \end_inset
25783
25784  between numbers:
25785 \begin_inset Newline newline
25786 \end_inset
25787
25788 2x2 looks cheap compared to 
25789 \begin_inset Formula $2\times2$
25790 \end_inset
25791
25792 .
25793 \end_layout
25794
25795 \begin_layout Standard
25796 and more \SpecialChar ldots
25797  It is an invaluable tool when you are 
25798 \begin_inset Quotes eld
25799 \end_inset
25800
25801 finishing up
25802 \begin_inset Quotes erd
25803 \end_inset
25804
25805  your document before printing, and you should run it right after the obligatory
25806  spelling check, and before you go fine tuning the typesetting.
25807 \end_layout
25808
25809 \begin_layout Subsection
25810 How to use it
25811 \end_layout
25812
25813 \begin_layout Standard
25814 If you have the program installed, usage is as simple as choosing 
25815 \family sans
25816 Tools\SpecialChar menuseparator
25817 Check
25818 \begin_inset space ~
25819 \end_inset
25820
25821 TeX
25822 \family default
25823 .
25824  This will make \SpecialChar LyX
25825  generate a \SpecialChar LaTeX
25826  file of your document, start 
25827 \family sans
25828 Chk\SpecialChar TeX
25829
25830 \family default
25831  to check it, and then make \SpecialChar LyX
25832  insert 
25833 \begin_inset Quotes eld
25834 \end_inset
25835
25836 error boxes
25837 \begin_inset Quotes erd
25838 \end_inset
25839
25840  with the warnings from 
25841 \family sans
25842 Chk\SpecialChar TeX
25843
25844 \family default
25845 , if there were any.
25846  The warnings will be placed close to the point of the mistake, and you
25847  can quickly find them by using the 
25848 \family sans
25849 Navigate\SpecialChar menuseparator
25850 Error
25851 \family default
25852  menu item, or the shortcut key 
25853 \family sans
25854 C-g
25855 \family default
25856  from the default 
25857 \family typewriter
25858 cua
25859 \family default
25860  bind file.
25861  Open the error boxes by clicking on them with the mouse, or use the shortcut
25862  key 
25863 \family sans
25864 C-i
25865 \family default
25866  from 
25867 \family typewriter
25868 cua
25869 \family default
25870  bindings, or the corresponding 
25871 \family sans
25872 C-o
25873 \family default
25874  for the alternate 
25875 \family typewriter
25876 emacs
25877 \family default
25878  bind file.
25879  Read the warning and correct the mistake, if it is a mistake.
25880  If you have trouble understanding what the warning is about, you can safely
25881  ignore it.
25882  Remember that there is a hidden layer between the document on screen and
25883  the technical details in invoking 
25884 \family sans
25885 Chk\SpecialChar TeX
25886
25887 \family default
25888 , and this gap can make some warnings seem arcane or just plain silly.
25889 \end_layout
25890
25891 \begin_layout Standard
25892 This document is an excellent testing bed for the feature, and it should
25893  provide quite a few warnings for you to fiddle with.
25894  Since computers are only so smart, expect most of the warnings to be false
25895  alarms, though.
25896 \end_layout
25897
25898 \begin_layout Subsection
25899 How to fine tune it
25900 \end_layout
25901
25902 \begin_layout Standard
25903 Sometimes, you'll find that 
25904 \family sans
25905 Chk\SpecialChar TeX
25906
25907 \family default
25908  makes more noise than suits your mood.
25909  Then you can choose not to use it, wait until your mood changes, or try
25910  to customize 
25911 \family sans
25912 Chk\SpecialChar TeX
25913
25914 \family default
25915  to get better along with you.
25916 \end_layout
25917
25918 \begin_layout Standard
25919 Although 
25920 \family sans
25921 Chk\SpecialChar TeX
25922
25923 \family default
25924  
25925 \emph on
25926 is
25927 \emph default
25928  very configurable and extensible, you should not expect to solve all problems
25929  with 
25930 \family sans
25931 Chk\SpecialChar TeX
25932
25933 \family default
25934  in \SpecialChar LyX
25935  this way.
25936  Since \SpecialChar LyX
25937  has to generate a somewhat special \SpecialChar LaTeX
25938  file to be able to match the
25939  line numbers from the 
25940 \family sans
25941 Chk\SpecialChar TeX
25942
25943 \family default
25944  output
25945 \begin_inset Foot
25946 status collapsed
25947
25948 \begin_layout Plain Layout
25949 You can inspect the specific output from 
25950 \family sans
25951 chktex
25952 \family default
25953  by using 
25954 \family sans
25955 Document\SpecialChar menuseparator
25956 \SpecialChar LaTeX
25957
25958 \begin_inset space ~
25959 \end_inset
25960
25961 Log
25962 \family default
25963  right after a 
25964 \family sans
25965 chktex
25966 \family default
25967  run.
25968 \end_layout
25969
25970 \end_inset
25971
25972  to the internal document structure, some of the warnings will not appear
25973  correctly.
25974  There are two things you can do about this:
25975 \end_layout
25976
25977 \begin_layout Itemize
25978 Fine tune the 
25979 \family sans
25980 Chk\SpecialChar TeX
25981
25982 \family default
25983  invocation command line in 
25984 \begin_inset Flex Noun
25985 status collapsed
25986
25987 \begin_layout Plain Layout
25988 Tools\SpecialChar menuseparator
25989 Preferences\SpecialChar menuseparator
25990 Output\SpecialChar menuseparator
25991 LaTeX\SpecialChar menuseparator
25992 CheckTeX command
25993 \end_layout
25994
25995 \end_inset
25996
25997 , or the global 
25998 \family sans
25999 Chk\SpecialChar TeX
26000
26001 \family default
26002  installation configuration file (usually with the file 
26003 \family typewriter
26004 chktexrc
26005 \family default
26006 ).
26007  See below to learn what warnings can be enabled and disabled on the command
26008  line.
26009 \end_layout
26010
26011 \begin_layout Itemize
26012 Export your document as a raw \SpecialChar LaTeX
26013  file using 
26014 \family sans
26015 File\SpecialChar menuseparator
26016 Export\SpecialChar menuseparator
26017 \SpecialChar LaTeX
26018
26019 \family default
26020  and run 
26021 \family typewriter
26022 chktex
26023 \family default
26024  manually on that.
26025  Invoked in this way, it can be a hassle to find the corresponding place
26026  in the document inside \SpecialChar LyX
26027 , but with a little patience, you should be able
26028  to do it.
26029 \end_layout
26030
26031 \begin_layout Standard
26032 Here follows the warning messages that can be enabled and disabled in 
26033 \family sans
26034 Preferences
26035 \family default
26036 .
26037  Use 
26038 \family typewriter
26039 -n#
26040 \family default
26041  to disable a warning, and 
26042 \family typewriter
26043 -w#
26044 \family default
26045  to enable a warning.
26046  The emphasized entries are disabled by default, because the default is
26047  "
26048 \family typewriter
26049 chktex -n1 -n3 -n6 -n9 -n22 -n25 -n30 -n38
26050 \family default
26051 ".
26052 \end_layout
26053
26054 \begin_layout Standard
26055 Notice that you should only use the options that enable and disable warnings,
26056  because \SpecialChar LyX
26057  relies on some of the other command line parameters to be set
26058  in a specific way to have a chance to communicate with 
26059 \family typewriter
26060 chktex
26061 \family default
26062 .
26063 \end_layout
26064
26065 \begin_layout Enumerate
26066
26067 \size small
26068 \emph on
26069 Command terminated with space.
26070 \end_layout
26071
26072 \begin_layout Enumerate
26073
26074 \size small
26075 Non-breaking space (
26076 \begin_inset Quotes eld
26077 \end_inset
26078
26079
26080 \family typewriter
26081 ~
26082 \family default
26083
26084 \begin_inset Quotes erd
26085 \end_inset
26086
26087 ) should have been used.
26088 \end_layout
26089
26090 \begin_layout Enumerate
26091
26092 \size small
26093 \emph on
26094 You should enclose the previous parenthesis with 
26095 \begin_inset Quotes eld
26096 \end_inset
26097
26098
26099 \family typewriter
26100 {}
26101 \family default
26102
26103 \begin_inset Quotes erd
26104 \end_inset
26105
26106 .
26107 \end_layout
26108
26109 \begin_layout Enumerate
26110
26111 \size small
26112 Italic correction (
26113 \begin_inset Quotes eld
26114 \end_inset
26115
26116
26117 \family typewriter
26118
26119 \backslash
26120 /
26121 \family default
26122
26123 \begin_inset Quotes erd
26124 \end_inset
26125
26126 ) found in non-italic buffer.
26127 \end_layout
26128
26129 \begin_layout Enumerate
26130
26131 \size small
26132 Italic correction (
26133 \begin_inset Quotes eld
26134 \end_inset
26135
26136
26137 \family typewriter
26138
26139 \backslash
26140 /
26141 \family default
26142
26143 \begin_inset Quotes erd
26144 \end_inset
26145
26146 ) found more than once.
26147 \end_layout
26148
26149 \begin_layout Enumerate
26150
26151 \size small
26152 \emph on
26153 No italic correction (
26154 \begin_inset Quotes eld
26155 \end_inset
26156
26157
26158 \family typewriter
26159
26160 \backslash
26161 /
26162 \family default
26163
26164 \begin_inset Quotes erd
26165 \end_inset
26166
26167 ) found.
26168 \end_layout
26169
26170 \begin_layout Enumerate
26171
26172 \size small
26173 Accent command 
26174 \begin_inset Quotes eld
26175 \end_inset
26176
26177
26178 \family typewriter
26179 cmd
26180 \family default
26181
26182 \begin_inset Quotes erd
26183 \end_inset
26184
26185  needs use of 
26186 \begin_inset Quotes eld
26187 \end_inset
26188
26189
26190 \family typewriter
26191 cmd
26192 \family default
26193
26194 \begin_inset Quotes erd
26195 \end_inset
26196
26197 .
26198 \end_layout
26199
26200 \begin_layout Enumerate
26201
26202 \size small
26203 Wrong length of dash may have been used.
26204 \end_layout
26205
26206 \begin_layout Enumerate
26207
26208 \size small
26209 \emph on
26210 \begin_inset Quotes eld
26211 \end_inset
26212
26213
26214 \family typewriter
26215 %s
26216 \family default
26217
26218 \begin_inset Quotes erd
26219 \end_inset
26220
26221  expected, found 
26222 \begin_inset Quotes eld
26223 \end_inset
26224
26225
26226 \family typewriter
26227 %s
26228 \family default
26229
26230 \begin_inset Quotes erd
26231 \end_inset
26232
26233 .
26234 \end_layout
26235
26236 \begin_layout Enumerate
26237
26238 \size small
26239 Solo 
26240 \begin_inset Quotes eld
26241 \end_inset
26242
26243
26244 \family typewriter
26245 %s
26246 \family default
26247
26248 \begin_inset Quotes erd
26249 \end_inset
26250
26251  found.
26252 \end_layout
26253
26254 \begin_layout Enumerate
26255
26256 \size small
26257 You should use 
26258 \begin_inset Quotes eld
26259 \end_inset
26260
26261
26262 \family typewriter
26263 %s
26264 \family default
26265
26266 \begin_inset Quotes erd
26267 \end_inset
26268
26269  to achieve an ellipsis.
26270 \end_layout
26271
26272 \begin_layout Enumerate
26273
26274 \size small
26275 Inter-word spacing (
26276 \begin_inset Quotes eld
26277 \end_inset
26278
26279
26280 \family typewriter
26281
26282 \backslash
26283
26284 \family default
26285  
26286 \begin_inset Quotes eld
26287 \end_inset
26288
26289 ) should perhaps be used.
26290 \end_layout
26291
26292 \begin_layout Enumerate
26293
26294 \size small
26295 Inter-sentence spacing (
26296 \begin_inset Quotes eld
26297 \end_inset
26298
26299
26300 \family typewriter
26301
26302 \backslash
26303 @
26304 \family default
26305
26306 \begin_inset Quotes erd
26307 \end_inset
26308
26309 ) should perhaps be used.
26310 \end_layout
26311
26312 \begin_layout Enumerate
26313
26314 \size small
26315 Could not find argument for command.
26316 \end_layout
26317
26318 \begin_layout Enumerate
26319
26320 \size small
26321 No match found for 
26322 \begin_inset Quotes eld
26323 \end_inset
26324
26325
26326 \family typewriter
26327 %s
26328 \family default
26329
26330 \begin_inset Quotes erd
26331 \end_inset
26332
26333 .
26334 \end_layout
26335
26336 \begin_layout Enumerate
26337
26338 \size small
26339 Math mode still on at end of \SpecialChar LaTeX
26340  file.
26341 \end_layout
26342
26343 \begin_layout Enumerate
26344
26345 \size small
26346 Number of 
26347 \begin_inset Quotes eld
26348 \end_inset
26349
26350
26351 \family typewriter
26352 char
26353 \family default
26354
26355 \begin_inset Quotes erd
26356 \end_inset
26357
26358  doesn't match the number of 
26359 \begin_inset Quotes eld
26360 \end_inset
26361
26362
26363 \family typewriter
26364 char
26365 \family default
26366
26367 \begin_inset Quotes erd
26368 \end_inset
26369
26370 .
26371 \end_layout
26372
26373 \begin_layout Enumerate
26374
26375 \size small
26376 You should use either 
26377 \family typewriter
26378
26379 \begin_inset Quotes eld
26380 \end_inset
26381
26382
26383 \family default
26384  or 
26385 \family typewriter
26386
26387 \begin_inset Quotes erd
26388 \end_inset
26389
26390
26391 \family default
26392  as an alternative to 
26393 \begin_inset Quotes eld
26394 \end_inset
26395
26396
26397 \family typewriter
26398 "
26399 \family default
26400
26401 \begin_inset Quotes erd
26402 \end_inset
26403
26404 .
26405 \end_layout
26406
26407 \begin_layout Enumerate
26408
26409 \size small
26410 You should use "
26411 \family typewriter
26412 '
26413 \family default
26414 " (ASCII 39) instead of "
26415 \family typewriter
26416 ´
26417 \family default
26418 " (ASCII 180).
26419 \end_layout
26420
26421 \begin_layout Enumerate
26422
26423 \size small
26424 User-specified pattern found.
26425 \end_layout
26426
26427 \begin_layout Enumerate
26428
26429 \size small
26430 This command might not be intended.
26431 \end_layout
26432
26433 \begin_layout Enumerate
26434
26435 \size small
26436 \emph on
26437 Comment displayed.
26438 \end_layout
26439
26440 \begin_layout Enumerate
26441
26442 \size small
26443 Either 
26444 \family typewriter
26445 ''
26446 \backslash
26447 ,'
26448 \family default
26449  or 
26450 \family typewriter
26451 '
26452 \backslash
26453 ,''
26454 \family default
26455  will look better.
26456 \end_layout
26457
26458 \begin_layout Enumerate
26459
26460 \size small
26461 Delete this space to maintain correct page references.
26462 \end_layout
26463
26464 \begin_layout Enumerate
26465
26466 \size small
26467 \emph on
26468 You might wish to put this between a pair of 
26469 \begin_inset Quotes eld
26470 \end_inset
26471
26472
26473 \family typewriter
26474 {}
26475 \family default
26476
26477 \begin_inset Quotes erd
26478 \end_inset
26479
26480 .
26481 \end_layout
26482
26483 \begin_layout Enumerate
26484
26485 \size small
26486 You ought to remove spaces in front of punctuation.
26487 \end_layout
26488
26489 \begin_layout Enumerate
26490
26491 \size small
26492 Could not execute \SpecialChar LaTeX
26493  command.
26494 \end_layout
26495
26496 \begin_layout Enumerate
26497
26498 \size small
26499 Don't use 
26500 \family typewriter
26501
26502 \backslash
26503 /
26504 \family default
26505  in front of small punctuation.
26506 \end_layout
26507
26508 \begin_layout Enumerate
26509
26510 \family typewriter
26511 \size small
26512 $
26513 \backslash
26514 times$
26515 \family default
26516  may look prettier here.
26517 \end_layout
26518
26519 \begin_layout Enumerate
26520
26521 \size small
26522 \emph on
26523 Multiple spaces detected in output.
26524 \end_layout
26525
26526 \begin_layout Enumerate
26527
26528 \size small
26529 This text may be ignored.
26530 \end_layout
26531
26532 \begin_layout Enumerate
26533
26534 \size small
26535 Use 
26536 \family typewriter
26537
26538 \begin_inset Quotes eld
26539 \end_inset
26540
26541
26542 \family default
26543  to begin quotation, not 
26544 \family typewriter
26545 '
26546 \family default
26547 .
26548 \end_layout
26549
26550 \begin_layout Enumerate
26551
26552 \size small
26553 Use 
26554 \family typewriter
26555 '
26556 \family default
26557  to end quotation, not 
26558 \family typewriter
26559
26560 \begin_inset Quotes eld
26561 \end_inset
26562
26563
26564 \family default
26565 .
26566 \end_layout
26567
26568 \begin_layout Enumerate
26569
26570 \size small
26571 Don't mix quotes.
26572 \end_layout
26573
26574 \begin_layout Enumerate
26575
26576 \size small
26577 You should perhaps use 
26578 \begin_inset Quotes eld
26579 \end_inset
26580
26581
26582 \family typewriter
26583 cmd
26584 \family default
26585
26586 \begin_inset Quotes erd
26587 \end_inset
26588
26589  instead.
26590 \end_layout
26591
26592 \begin_layout Enumerate
26593
26594 \size small
26595 You should put a space in front of/after parenthesis.
26596 \end_layout
26597
26598 \begin_layout Enumerate
26599
26600 \size small
26601 You should avoid spaces in front of/after parenthesis.
26602 \end_layout
26603
26604 \begin_layout Enumerate
26605
26606 \size small
26607 \emph on
26608 You should not use punctuation in front of/after quotes.
26609 \end_layout
26610
26611 \begin_layout Enumerate
26612
26613 \size small
26614 Double space found.
26615 \end_layout
26616
26617 \begin_layout Enumerate
26618
26619 \size small
26620 You should put punctuation outside inner/inside display math mode.
26621 \end_layout
26622
26623 \begin_layout Enumerate
26624
26625 \size small
26626 You ought to not use primitive \SpecialChar TeX
26627  in \SpecialChar LaTeX
26628  code.
26629 \end_layout
26630
26631 \begin_layout Enumerate
26632
26633 \size small
26634 You should remove spaces in front of 
26635 \begin_inset Quotes eld
26636 \end_inset
26637
26638
26639 \family typewriter
26640 %s
26641 \family default
26642
26643 \begin_inset Quotes erd
26644 \end_inset
26645
26646
26647 \end_layout
26648
26649 \begin_layout Enumerate
26650
26651 \size small
26652 \begin_inset Quotes eld
26653 \end_inset
26654
26655
26656 \family typewriter
26657 %s
26658 \family default
26659
26660 \begin_inset Quotes erd
26661 \end_inset
26662
26663  is normally not followed by 
26664 \begin_inset Quotes eld
26665 \end_inset
26666
26667
26668 \family typewriter
26669 %c
26670 \family default
26671
26672 \begin_inset Quotes erd
26673 \end_inset
26674
26675 .
26676 \end_layout
26677
26678 \begin_layout Standard
26679 In later versions of \SpecialChar LyX
26680 , we hope to provide a more complete interface to this
26681  tool (and it's smaller cousin 
26682 \family typewriter
26683 lacheck
26684 \family default
26685 ) to exploit the full power of it.
26686  But it's not exactly useless as it is now: go try it on one of your existing
26687  documents of a certain length and be surprised.
26688 \end_layout
26689
26690 \begin_layout Section
26691 Version Control in \SpecialChar LyX
26692
26693 \end_layout
26694
26695 \begin_layout Standard
26696 by
26697 \noun on
26698  Lars Gullik Bjønnes 
26699 \noun default
26700 and 
26701 \noun on
26702 Pavel Sanda
26703 \end_layout
26704
26705 \begin_layout Subsection
26706 Introduction
26707 \end_layout
26708
26709 \begin_layout Standard
26710 \SpecialChar LyX
26711  supports some of the most basic RCS/CVS/SVN/GIT commands.
26712  If you need something a bit more sophisticated you will have to do that
26713  manually in a terminal.
26714 \end_layout
26715
26716 \begin_layout Standard
26717 Also note that CVS support is not as good as subversion support, so we advise
26718  using SVN instead.
26719  A good place to start learning Subversion is the SVN Book
26720 \begin_inset Foot
26721 status collapsed
26722
26723 \begin_layout Plain Layout
26724 \begin_inset CommandInset href
26725 LatexCommand href
26726 target "http://svnbook.red-bean.com/"
26727 literal "false"
26728
26729 \end_inset
26730
26731
26732 \end_layout
26733
26734 \end_inset
26735
26736 .
26737  In the case of RCS you should read 
26738 \begin_inset Quotes eld
26739 \end_inset
26740
26741 rcsintro
26742 \begin_inset Quotes erd
26743 \end_inset
26744
26745  (a man file, read it with 
26746 \family typewriter
26747 man rcsintro
26748 \family default
26749 ).
26750  This file describes all the basic features of RCS.
26751  You should especially notice the comment about a RCS directory, and the
26752  notion of a master RCS file (the file ending in 
26753 \family typewriter
26754 ,v
26755 \family default
26756 ).
26757 \end_layout
26758
26759 \begin_layout Standard
26760 Before you begin to use the version control features in \SpecialChar LyX
26761 , you should be
26762  familiar with RCS/CVS/SVN/GIT usage.
26763  The implementation in \SpecialChar LyX
26764  assumes a recent version of the GNU RCS or CVS/SVN
26765  package — no guarantees are made for older versions.
26766  Most of the log messages are not currently displayed after operations —
26767  you can check them in the Messages pane if you are unsure.
26768  Regular users of version control will appreciate the VC toolbar, which
26769  can be enabled via 
26770 \family sans
26771 View\SpecialChar menuseparator
26772 Toolbars\SpecialChar menuseparator
26773 Version
26774 \begin_inset space ~
26775 \end_inset
26776
26777 Control
26778 \family default
26779 .
26780 \end_layout
26781
26782 \begin_layout Standard
26783 For introducing your own external commands consult 
26784 \begin_inset Flex Code
26785 status collapsed
26786
26787 \begin_layout Plain Layout
26788 vc-command
26789 \end_layout
26790
26791 \end_inset
26792
26793  in the manual 
26794 \emph on
26795 \SpecialChar LyX
26796  Functions
26797 \emph default
26798 .
26799 \end_layout
26800
26801 \begin_layout Standard
26802 It is strongly recommended to store documents in uncompressed format if
26803  using version control (uncheck 
26804 \family sans
26805 Document\SpecialChar menuseparator
26806 Compressed
26807 \family default
26808  if it is checked): Uncompressed LyX documents are text files and therefore
26809  for merging two different versions by version control systems.
26810  Compressed LyX documents are binary files, which cannot be merged by version
26811  control systems.
26812 \end_layout
26813
26814 \begin_layout Subsection
26815 RCS commands in \SpecialChar LyX
26816
26817 \end_layout
26818
26819 \begin_layout Standard
26820 The following sections describe the RCS commands supported by \SpecialChar LyX
26821 .
26822  You can find them in the 
26823 \family sans
26824 File\SpecialChar menuseparator
26825 Version
26826 \begin_inset space ~
26827 \end_inset
26828
26829 Control
26830 \family default
26831  submenu.
26832  \SpecialChar LyX
26833  was tested against RCS 5.7/5.8.
26834 \end_layout
26835
26836 \begin_layout Subsubsection
26837
26838 \family sans
26839 Register
26840 \end_layout
26841
26842 \begin_layout Standard
26843 If your document is not under revision control, this is the only item shown
26844  in the menu.
26845  And if it is under revision control, the 
26846 \family sans
26847 Register
26848 \family default
26849  item is not visible.
26850  
26851 \end_layout
26852
26853 \begin_layout Standard
26854 This command registers your document with RCS (unless you are under the
26855  directory managed by CVS)\SpecialChar endofsentence
26856  You are asked interactively to supply an initial
26857  description of the document.
26858  The document is now set in Read-Only mode and you have to 
26859 \family sans
26860 Check
26861 \begin_inset space ~
26862 \end_inset
26863
26864 Out
26865 \begin_inset space ~
26866 \end_inset
26867
26868 For
26869 \begin_inset space ~
26870 \end_inset
26871
26872 Edit
26873 \family default
26874 , before making any changes to it.
26875  A document under revision control has a 
26876 \begin_inset Quotes eld
26877 \end_inset
26878
26879 [RCS:<version> <locker>]
26880 \begin_inset Quotes erd
26881 \end_inset
26882
26883  item tagged to the filename in the minibuffer.
26884 \end_layout
26885
26886 \begin_layout Standard
26887 RCS command that is run:
26888 \end_layout
26889
26890 \begin_layout LyX-Code
26891
26892 \family typewriter
26893 ci -q -u -i -t-"<initial description>" <file-name>
26894 \end_layout
26895
26896 \begin_layout Standard
26897 Read 
26898 \family typewriter
26899 man ci
26900 \family default
26901  to understand the switches.
26902  
26903 \end_layout
26904
26905 \begin_layout Subsubsection
26906
26907 \family sans
26908 Check In Changes
26909 \end_layout
26910
26911 \begin_layout Standard
26912 When you are finished editing a file, you check in your changes.
26913  When you do this, you are asked for a description of the changes.
26914  This is stored in the history log.
26915  The version number is bumped, your changes are applied to the master RCS
26916  file, the document is unlocked and set to Read-Only mode.
26917 \end_layout
26918
26919 \begin_layout Itemize
26920 RCS command: 
26921 \family typewriter
26922 ci -q -u -m"<description>" <file-name>
26923 \end_layout
26924
26925 \begin_layout Subsubsection
26926
26927 \family sans
26928 Check Out For Edit
26929 \end_layout
26930
26931 \begin_layout Standard
26932 By doing this you lock the document so that only you can edit it.
26933  This will also make the document Read-Write only for you.
26934  You will usually continue editing for a while and when you are finished
26935  you check in your changes.
26936  The status line is changed to reflect that you have locked the file.
26937 \end_layout
26938
26939 \begin_layout Itemize
26940 RCS command: 
26941 \family typewriter
26942 co -q -l <file-name>
26943 \end_layout
26944
26945 \begin_layout Subsubsection
26946
26947 \family sans
26948 Revert To Repository Version
26949 \end_layout
26950
26951 \begin_layout Standard
26952 This will discard all changes made to the document since the last check
26953  in.
26954  You get a warning before changes are discarded.
26955 \end_layout
26956
26957 \begin_layout Itemize
26958 RCS command: 
26959 \family typewriter
26960 co -f -u<version> <file-name>
26961 \end_layout
26962
26963 \begin_layout Subsubsection
26964
26965 \family sans
26966 Copy
26967 \end_layout
26968
26969 \begin_layout Standard
26970 This will create a copy of the current document.
26971  Since RCS does not support copy operations natively, the version history
26972  is not preserved, and the copy is added as a new file.
26973  It requires a clean document without any changes since the last checkin.
26974  You are asked for a file name and a description of the copy operation.
26975  After that the copy is created, both locally and in the repository.
26976  If the parent directories of the copied and original document differ, all
26977  relative paths of included files of the copy are adjusted (like in 
26978 \family sans
26979 File\SpecialChar menuseparator
26980 Save As
26981 \family default
26982 \SpecialChar ldots
26983 ).
26984  Finally, the copy is loaded instead of the original document.
26985 \end_layout
26986
26987 \begin_layout Labeling
26988 \labelwidthstring 00.00.0000
26989 RCS
26990 \begin_inset space ~
26991 \end_inset
26992
26993 commands: 
26994 \begin_inset space ~
26995 \end_inset
26996
26997
26998 \begin_inset Newline newline
26999 \end_inset
27000
27001 Copy 
27002 \begin_inset Flex Code
27003 status collapsed
27004
27005 \begin_layout Plain Layout
27006
27007 \family typewriter
27008 \begin_inset Quotes qld
27009 \end_inset
27010
27011 <file-name>
27012 \begin_inset Quotes qld
27013 \end_inset
27014
27015
27016 \end_layout
27017
27018 \end_inset
27019
27020  to 
27021 \begin_inset Flex Code
27022 status collapsed
27023
27024 \begin_layout Plain Layout
27025
27026 \family typewriter
27027 \begin_inset Quotes qld
27028 \end_inset
27029
27030 <new-file-name>
27031 \begin_inset Quotes qld
27032 \end_inset
27033
27034
27035 \end_layout
27036
27037 \end_inset
27038
27039
27040 \begin_inset Newline newline
27041 \end_inset
27042
27043
27044 \begin_inset Flex Code
27045 status collapsed
27046
27047 \begin_layout Plain Layout
27048 ci -q -u 
27049 \family typewriter
27050 -i 
27051 \begin_inset Quotes qld
27052 \end_inset
27053
27054 <new-file-name>
27055 \begin_inset Quotes qld
27056 \end_inset
27057
27058
27059 \end_layout
27060
27061 \end_inset
27062
27063
27064 \end_layout
27065
27066 \begin_layout Subsubsection
27067
27068 \family sans
27069 Undo Last Checkin
27070 \end_layout
27071
27072 \begin_layout Standard
27073 This makes as if the last check in never happened.
27074  No changes are made to the document loaded into \SpecialChar LyX
27075 , but the last version
27076  is removed from the master RCS file.
27077 \end_layout
27078
27079 \begin_layout Itemize
27080 RCS command: 
27081 \family typewriter
27082 rcs -o<version> <file-name>
27083 \end_layout
27084
27085 \begin_layout Subsubsection
27086
27087 \family sans
27088 Show History
27089 \end_layout
27090
27091 \begin_layout Standard
27092 This shows the complete history of the RCS document.
27093  The output of 
27094 \family typewriter
27095 rlog <file-name>
27096 \family default
27097  is shown in a browser.
27098  See 
27099 \family typewriter
27100 man rlog
27101 \family default
27102  for more info.
27103 \end_layout
27104
27105 \begin_layout Subsubsection
27106 Revision info
27107 \end_layout
27108
27109 \begin_layout Standard
27110 \SpecialChar LyX
27111  supports RCS version number, author name, date and time of last commit.
27112  All those are extracted from 
27113 \family typewriter
27114 rlog -r <file-name>
27115 \family default
27116 .
27117  See 
27118 \begin_inset CommandInset ref
27119 LatexCommand ref
27120 nolink "false"
27121 reference "subsec:VCS-Revision-Information"
27122
27123 \end_inset
27124
27125  for details.
27126 \end_layout
27127
27128 \begin_layout Subsection
27129 CVS commands in \SpecialChar LyX
27130
27131 \end_layout
27132
27133 \begin_layout Standard
27134 A subset of CVS operations is supported by \SpecialChar LyX
27135 .
27136  You can find the commands in the 
27137 \family sans
27138 File\SpecialChar menuseparator
27139 Version
27140 \begin_inset space ~
27141 \end_inset
27142
27143 Control
27144 \family default
27145  submenu.
27146  The version control system SVN is more powerful, so please use it instead
27147  of CVS if possible.
27148 \end_layout
27149
27150 \begin_layout Subsubsection
27151
27152 \family sans
27153 General CVS usage
27154 \end_layout
27155
27156 \begin_layout Standard
27157 If you start from scratch with CVS you have to create your repository and
27158  checkout the working copy with external tools.
27159  If you're using a client-server setup you may need to login before doing
27160  the first repository checkout.
27161 \end_layout
27162
27163 \begin_layout Standard
27164 If your documents are under revision control and others are using the same
27165  repository problems arise when different changes to the same document at
27166  the same location happen.
27167  Standard CVS repositories don't operate with a file locking mechanism.
27168  This may be surprising, but conflicts only occur if people disagree on
27169  the proper content of the same part of a document.
27170  So, if co-workers are used to communicate regularly, these conflicts occur
27171  rarely.
27172  If they don't communicate they have a fundamental problem anyway.
27173  Nevertheless some people like to work with so called 
27174 \begin_inset Quotes eld
27175 \end_inset
27176
27177 reserved checkouts
27178 \begin_inset Quotes erd
27179 \end_inset
27180
27181 .
27182  If they do so the working copy of all files is readonly when checked out
27183  first and the user starts editing after using a special command to make
27184  the working copy writable.
27185  When the changes are checked in the working copy returns to readonly state.
27186  With \SpecialChar LyX
27187  one has to edit the 
27188 \begin_inset Flex Code
27189 status collapsed
27190
27191 \begin_layout Plain Layout
27192 .cvsrc
27193 \end_layout
27194
27195 \end_inset
27196
27197  file and add the line 
27198 \begin_inset Flex Code
27199 status collapsed
27200
27201 \begin_layout Plain Layout
27202 cvs -r
27203 \end_layout
27204
27205 \end_inset
27206
27207  to work with reserved checkouts.
27208  The benefit is the possibility to see who is using a writable copy of some
27209  document.
27210  It's not guaranteed only one user makes a copy writable.
27211 \end_layout
27212
27213 \begin_layout Standard
27214 \SpecialChar LyX
27215  tries to guess if you're using reserved or non-reserved checkouts.
27216  If your working copy is readonly or it is writable and an additional copy
27217  of your document exists in the CVS/Base sub-directory a reserved otherwise
27218  a non-reserved checkout is assumed.
27219  When a reserved checkout is detected you have to use 
27220 \begin_inset Flex Noun
27221 status collapsed
27222
27223 \begin_layout Plain Layout
27224 Check Out
27225 \end_layout
27226
27227 \end_inset
27228
27229  to make your working copy writable if it's readonly.
27230  After doing so the 
27231 \begin_inset Flex Noun
27232 status collapsed
27233
27234 \begin_layout Plain Layout
27235 Check In
27236 \end_layout
27237
27238 \end_inset
27239
27240  operation is possible and that makes your working copy readonly again after
27241  transferring your changes to the repository.
27242 \end_layout
27243
27244 \begin_layout Standard
27245 More information about CVS can be found here 
27246 \begin_inset Flex URL
27247 status collapsed
27248
27249 \begin_layout Plain Layout
27250
27251 http://www.nongnu.org/cvs
27252 \end_layout
27253
27254 \end_inset
27255
27256  and here 
27257 \begin_inset Flex URL
27258 status collapsed
27259
27260 \begin_layout Plain Layout
27261
27262 http://ximbiot.com/cvs
27263 \end_layout
27264
27265 \end_inset
27266
27267 .
27268 \end_layout
27269
27270 \begin_layout Standard
27271 Read 
27272 \family typewriter
27273 man cvs
27274 \family default
27275  to understand the sub-commands and the switches mentioned below.
27276 \end_layout
27277
27278 \begin_layout Subsubsection
27279
27280 \family sans
27281 Register
27282 \end_layout
27283
27284 \begin_layout Standard
27285 If your document is not under revision control, this is the only item shown
27286  in the menu.
27287  And if it is under revision control, the 
27288 \family sans
27289 Register
27290 \family default
27291  item is not visible.
27292  
27293 \end_layout
27294
27295 \begin_layout Standard
27296 This command registers in CVS your document 
27297 \begin_inset Flex Strong
27298 status collapsed
27299
27300 \begin_layout Plain Layout
27301
27302 \emph on
27303 only
27304 \end_layout
27305
27306 \end_inset
27307
27308  in the case you have already the documents directory under CVS control
27309  (in particular 
27310 \family typewriter
27311 CVS/Entries
27312 \family default
27313  file exists).
27314  This means you have to create or checkout the archive by yourself using
27315  external tools.
27316  (In case you forget that step \SpecialChar LyX
27317  registers the document with RCS.)
27318 \end_layout
27319
27320 \begin_layout Standard
27321 Then you are asked interactively to supply an initial description of the
27322  document.
27323  Don't forget that registered file is not yet checked in.
27324 \end_layout
27325
27326 \begin_layout Standard
27327 CVS command that is run: 
27328 \family typewriter
27329 cvs -q add -m"<entered message>" "<file-name>"
27330 \end_layout
27331
27332 \begin_layout Standard
27333 The term 
27334 \family typewriter
27335 "<file-name>"
27336 \family default
27337  above and for all other CVS commands is an abbreviation for 
27338 \begin_inset Quotes eld
27339 \end_inset
27340
27341 change the current working directory to file location and use the file name
27342  without path component as argument
27343 \begin_inset Quotes erd
27344 \end_inset
27345
27346 .
27347 \end_layout
27348
27349 \begin_layout Subsubsection
27350
27351 \family sans
27352 Check In Changes
27353 \end_layout
27354
27355 \begin_layout Standard
27356 When you are finished editing a file, you commit your changes.
27357  When you do this and you had changed the document, you are asked for a
27358  description of the changes.
27359  After that changes are written to the repository.
27360  In case you didn't change the document and a reserved checkout is detected
27361  the reservation made on 
27362 \begin_inset Flex Noun
27363 status collapsed
27364
27365 \begin_layout Plain Layout
27366 Check Out
27367 \end_layout
27368
27369 \end_inset
27370
27371  is undone.
27372 \end_layout
27373
27374 \begin_layout Labeling
27375 \labelwidthstring 00.00.0000
27376 CVS
27377 \begin_inset space ~
27378 \end_inset
27379
27380 command: 
27381 \begin_inset space ~
27382 \end_inset
27383
27384
27385 \begin_inset Newline newline
27386 \end_inset
27387
27388
27389 \begin_inset Flex Code
27390 status collapsed
27391
27392 \begin_layout Plain Layout
27393 cvs 
27394 \family typewriter
27395 -q commit -m"<description>" "<file-name>"
27396 \end_layout
27397
27398 \end_inset
27399
27400  or
27401 \begin_inset Newline newline
27402 \end_inset
27403
27404
27405 \begin_inset Flex Code
27406 status collapsed
27407
27408 \begin_layout Plain Layout
27409 cvs -q unedit 
27410 \family typewriter
27411 "<file-name>"
27412 \end_layout
27413
27414 \end_inset
27415
27416
27417 \end_layout
27418
27419 \begin_layout Subsubsection
27420
27421 \family sans
27422 Check Out Changes
27423 \end_layout
27424
27425 \begin_layout Standard
27426 When you are sharing a repository with others, you may have to incorporate
27427  their changes into your working copy.
27428 \end_layout
27429
27430 \begin_layout Standard
27431 CVS command: 
27432 \family typewriter
27433 cvs -q update "<file-name>"
27434 \end_layout
27435
27436 \begin_layout Standard
27437 If a readonly checkout is detected the working copy is made writable and
27438  reserved.
27439 \end_layout
27440
27441 \begin_layout Standard
27442 CVS command: 
27443 \family typewriter
27444 cvs -q edit "<file-name>"
27445 \end_layout
27446
27447 \begin_layout Subsubsection
27448
27449 \family sans
27450 Revert To Repository Version
27451 \end_layout
27452
27453 \begin_layout Standard
27454 This will discard all changes made to the document since the last check
27455  in.
27456  You get a warning before changes are discarded.
27457  Firstly the file is deleted, secondly CVS update command is run.
27458 \end_layout
27459
27460 \begin_layout Standard
27461 CVS command: 
27462 \family typewriter
27463 cvs -q update "<file-name>"
27464 \end_layout
27465
27466 \begin_layout Standard
27467 If a reserved checkout is detected and the working copy has no changes only
27468  the reservation is undone.
27469 \end_layout
27470
27471 \begin_layout Standard
27472 CVS command: 
27473 \family typewriter
27474 cvs -q unedit "<file-name>"
27475 \end_layout
27476
27477 \begin_layout Subsubsection
27478
27479 \family sans
27480 Copy
27481 \end_layout
27482
27483 \begin_layout Standard
27484 This will create a copy of the current document.
27485  Since CVS does not support copy operations natively, the version history
27486  is not preserved, and the copy is added as a new file.
27487  It requires a clean document without any changes since the last checkin.
27488  You are asked for a file name and a description of the copy operation.
27489  After that the copy is created, both locally and in the repository.
27490  If the parent directories of the copied and original document differ, all
27491  relative paths of included files of the copy are adjusted (like in 
27492 \family sans
27493 File\SpecialChar menuseparator
27494 Save As
27495 \family default
27496 \SpecialChar ldots
27497 ).
27498  Finally, the copy is loaded instead of the original document.
27499 \end_layout
27500
27501 \begin_layout Labeling
27502 \labelwidthstring 00.00.0000
27503 CVS
27504 \begin_inset space ~
27505 \end_inset
27506
27507 commands: 
27508 \begin_inset space ~
27509 \end_inset
27510
27511
27512 \begin_inset Newline newline
27513 \end_inset
27514
27515 Copy 
27516 \begin_inset Flex Code
27517 status collapsed
27518
27519 \begin_layout Plain Layout
27520 "<file-name>"
27521 \end_layout
27522
27523 \end_inset
27524
27525  to 
27526 \begin_inset Flex Code
27527 status collapsed
27528
27529 \begin_layout Plain Layout
27530 "<new-file-name>"
27531 \end_layout
27532
27533 \end_inset
27534
27535
27536 \begin_inset Newline newline
27537 \end_inset
27538
27539
27540 \begin_inset Flex Code
27541 status collapsed
27542
27543 \begin_layout Plain Layout
27544 cvs -q add "<new-file-name>"
27545 \end_layout
27546
27547 \end_inset
27548
27549
27550 \end_layout
27551
27552 \begin_layout Subsubsection
27553
27554 \family sans
27555 Rename
27556 \end_layout
27557
27558 \begin_layout Standard
27559 This will rename the current document.
27560  Since CVS does not support rename operations natively, the version history
27561  is not preserved, the renamed document is added as a new file, and the
27562  original document is deleted.
27563  It requires a clean document without any changes since the last checkin.
27564  You are asked for a file name and a description of the rename operation.
27565  After that the document is renamed, both locally and in the repository.
27566  If the parent directories of the new and old file names differ, all relative
27567  paths of included files are adjusted (like in 
27568 \family sans
27569 File\SpecialChar menuseparator
27570 Save As
27571 \family default
27572 \SpecialChar ldots
27573 ).
27574  Finally, the document is reloaded using the new name.
27575 \end_layout
27576
27577 \begin_layout Labeling
27578 \labelwidthstring 00.00.0000
27579 CVS
27580 \begin_inset space ~
27581 \end_inset
27582
27583 commands: 
27584 \begin_inset space ~
27585 \end_inset
27586
27587
27588 \begin_inset Newline newline
27589 \end_inset
27590
27591 Rename 
27592 \begin_inset Flex Code
27593 status collapsed
27594
27595 \begin_layout Plain Layout
27596 "<file-name>"
27597 \end_layout
27598
27599 \end_inset
27600
27601  to 
27602 \begin_inset Flex Code
27603 status collapsed
27604
27605 \begin_layout Plain Layout
27606 "<new-file-name>"
27607 \end_layout
27608
27609 \end_inset
27610
27611
27612 \begin_inset Newline newline
27613 \end_inset
27614
27615
27616 \begin_inset Flex Code
27617 status collapsed
27618
27619 \begin_layout Plain Layout
27620 cvs -q add "<new-file-name>"
27621 \end_layout
27622
27623 \end_inset
27624
27625
27626 \begin_inset Newline newline
27627 \end_inset
27628
27629
27630 \begin_inset Flex Code
27631 status collapsed
27632
27633 \begin_layout Plain Layout
27634 cvs -q remove "<file-name>"
27635 \end_layout
27636
27637 \end_inset
27638
27639
27640 \end_layout
27641
27642 \begin_layout Subsubsection
27643 Update of the local directory checkout from repository
27644 \end_layout
27645
27646 \begin_layout Standard
27647 Once your documents gets more complex, containing sub-documents and pictures,
27648  including external 
27649 \begin_inset Flex Code
27650 status collapsed
27651
27652 \begin_layout Plain Layout
27653 .tex
27654 \end_layout
27655
27656 \end_inset
27657
27658  files and so on using version control becomes more complicated.
27659  \SpecialChar LyX
27660  supports updating the whole tree in which resides the document.
27661  This become especially useful once you cooperate with people which neither
27662  have detailed knowledge about CVS usage nor they have ambition to commit
27663  additional material to the repository.
27664  You have to organize the files structure so that all external files are
27665  in the same directory or subdirectories of the document.
27666  It's good practice anyway to store multipart documents in an extra directory.
27667 \end_layout
27668
27669 \begin_layout Standard
27670 The 
27671 \begin_inset Flex Code
27672 status collapsed
27673
27674 \begin_layout Plain Layout
27675 Update local directory from repository
27676 \end_layout
27677
27678 \end_inset
27679
27680  command updates the whole directory.
27681  If local changes are detected user is warned before update starts.
27682  In case of merge conflicts both versions of the conflicting document parts
27683  are placed in the final document.
27684  You have to review and correct the result of the merge.
27685  You'll find the conflicts enclosed in pairs of 
27686 \begin_inset Flex Code
27687 status collapsed
27688
27689 \begin_layout Plain Layout
27690 <<<<<<<
27691 \end_layout
27692
27693 \end_inset
27694
27695  and 
27696 \begin_inset Flex Code
27697 status collapsed
27698
27699 \begin_layout Plain Layout
27700 >>>>>>>
27701 \end_layout
27702
27703 \end_inset
27704
27705  separated by 
27706 \begin_inset Flex Code
27707 status collapsed
27708
27709 \begin_layout Plain Layout
27710 =======
27711 \end_layout
27712
27713 \end_inset
27714
27715 .
27716  The first part is your version as before the update operation with the
27717  document name prepended.
27718  The second one is the repository version with the version number after
27719  the sequence of 
27720 \begin_inset Flex Code
27721 status collapsed
27722
27723 \begin_layout Plain Layout
27724 >
27725 \end_layout
27726
27727 \end_inset
27728
27729  signs.
27730 \end_layout
27731
27732 \begin_layout Labeling
27733 \labelwidthstring 00.00.0000
27734 CVS
27735 \begin_inset space ~
27736 \end_inset
27737
27738 commands: 
27739 \begin_inset space ~
27740 \end_inset
27741
27742
27743 \begin_inset Newline newline
27744 \end_inset
27745
27746
27747 \begin_inset Flex Code
27748 status collapsed
27749
27750 \begin_layout Plain Layout
27751 cd $path; cvs diff 
27752 \family typewriter
27753 "."
27754 \end_layout
27755
27756 \end_inset
27757
27758  (Ask if changes are detected.)
27759 \begin_inset Newline newline
27760 \end_inset
27761
27762
27763 \begin_inset Flex Code
27764 status collapsed
27765
27766 \begin_layout Plain Layout
27767 cd $path; cvs -q update 
27768 \family typewriter
27769 "."
27770 \end_layout
27771
27772 \end_inset
27773
27774
27775 \end_layout
27776
27777 \begin_layout Standard
27778 where 
27779 \begin_inset Flex Code
27780 status collapsed
27781
27782 \begin_layout Plain Layout
27783 $path
27784 \end_layout
27785
27786 \end_inset
27787
27788  stands for the path to the document.
27789 \end_layout
27790
27791 \begin_layout Subsubsection
27792
27793 \family sans
27794 Show History
27795 \end_layout
27796
27797 \begin_layout Standard
27798 This shows the complete history of the CVS document.
27799  The output of 
27800 \family typewriter
27801 cvs log "<file-name>"
27802 \family default
27803  is shown in a browser.
27804 \end_layout
27805
27806 \begin_layout Subsubsection
27807 Revision info
27808 \end_layout
27809
27810 \begin_layout Standard
27811 \SpecialChar LyX
27812  supports CVS version number, author name, date and time of last commit.
27813  All those are extracted from 
27814 \family typewriter
27815 cvs log -r <file-name>
27816 \family default
27817 .
27818  See 
27819 \begin_inset CommandInset ref
27820 LatexCommand ref
27821 nolink "false"
27822 reference "subsec:VCS-Revision-Information"
27823
27824 \end_inset
27825
27826  for details.
27827 \end_layout
27828
27829 \begin_layout Subsection
27830 SVN commands in \SpecialChar LyX
27831
27832 \end_layout
27833
27834 \begin_layout Standard
27835 SVN is now partially supported by \SpecialChar LyX
27836 .
27837  You can find the commands in the 
27838 \family sans
27839 File\SpecialChar menuseparator
27840 Version
27841 \begin_inset space ~
27842 \end_inset
27843
27844 Control
27845 \family default
27846  submenu.
27847  Please note that if you use password protected access to repository via
27848  ssh, you will be asked in terminal window.
27849  \SpecialChar LyX
27850  was tested against SVN 1.5, 1.6, 1.7 and 1.8
27851 \begin_inset Foot
27852 status collapsed
27853
27854 \begin_layout Plain Layout
27855 Most of the commands will work with 1.4 too, see 
27856 \begin_inset CommandInset ref
27857 LatexCommand ref
27858 nolink "false"
27859 reference "subsec:SVN-Repo-Update"
27860
27861 \end_inset
27862
27863 .
27864  There seems to be currently unresolved permissions problem under SVN 1.8
27865  with reverting changes when file is locked.
27866 \end_layout
27867
27868 \end_inset
27869
27870
27871 \end_layout
27872
27873 \begin_layout Subsubsection
27874
27875 \family sans
27876 Register
27877 \end_layout
27878
27879 \begin_layout Standard
27880 If your document is not under revision control, this is the only item shown
27881  in the menu.
27882  And if it is under revision control, the 
27883 \family sans
27884 Register
27885 \family default
27886  item is not visible.
27887 \end_layout
27888
27889 \begin_layout Standard
27890 This command registers in SVN your document ONLY in case you have already
27891  the documents directory under SVN control (in particular 
27892 \family typewriter
27893 .svn/entries
27894 \family default
27895  file exists).
27896  This means you have to checkout the archive by yourself.
27897 \end_layout
27898
27899 \begin_layout Standard
27900 Then you are asked interactively to supply an initial description of the
27901  document.
27902  Don't forget that registered file is not yet commited.
27903 \end_layout
27904
27905 \begin_layout Standard
27906 SVN command that is run: 
27907 \family typewriter
27908 svn add -q 
27909 \begin_inset Quotes qld
27910 \end_inset
27911
27912 <file-name>
27913 \begin_inset Quotes qld
27914 \end_inset
27915
27916
27917 \end_layout
27918
27919 \begin_layout Standard
27920 Read 
27921 \family typewriter
27922 man svn
27923 \family default
27924  to understand the switches.
27925 \end_layout
27926
27927 \begin_layout Subsubsection
27928
27929 \family sans
27930 Check In Changes
27931 \end_layout
27932
27933 \begin_layout Standard
27934 When you are finished editing a file, you commit your changes.
27935  When you do this, you are asked for a description of the changes.
27936  After that changes are commited.
27937 \end_layout
27938
27939 \begin_layout Standard
27940 SVN command:
27941 \begin_inset Foot
27942 status collapsed
27943
27944 \begin_layout Plain Layout
27945 In case locking is not enabled.
27946  See Section 
27947 \begin_inset CommandInset ref
27948 LatexCommand ref
27949 nolink "false"
27950 reference "subsec:SVN-File-Locking"
27951
27952 \end_inset
27953
27954 .
27955 \end_layout
27956
27957 \end_inset
27958
27959  
27960 \family typewriter
27961 svn commit -q -m"<description>" <file-name>
27962 \end_layout
27963
27964 \begin_layout Subsubsection
27965
27966 \family sans
27967 Check Out For Edit
27968 \end_layout
27969
27970 \begin_layout Standard
27971 Updates the changes of this file from the repository.
27972  Be sure you understand SVN merging and conflicts resolving before using
27973  this function, because all conflicts has to be resolved manually by you!
27974 \end_layout
27975
27976 \begin_layout Standard
27977 SVN command:
27978 \begin_inset Foot
27979 status collapsed
27980
27981 \begin_layout Plain Layout
27982 Ditto.
27983 \end_layout
27984
27985 \end_inset
27986
27987  
27988 \family typewriter
27989 svn update --non-interactive 
27990 \begin_inset Quotes qld
27991 \end_inset
27992
27993 <file-name>
27994 \begin_inset Quotes qld
27995 \end_inset
27996
27997
27998 \end_layout
27999
28000 \begin_layout Subsubsection
28001
28002 \family sans
28003 Revert To Repository Version
28004 \end_layout
28005
28006 \begin_layout Standard
28007 This will discard all changes made to the document since the last check
28008  in.
28009  You get a warning before changes are discarded.
28010 \end_layout
28011
28012 \begin_layout Standard
28013 SVN command: 
28014 \family typewriter
28015 svn revert -q 
28016 \begin_inset Quotes qld
28017 \end_inset
28018
28019 <file-name>
28020 \begin_inset Quotes qld
28021 \end_inset
28022
28023
28024 \end_layout
28025
28026 \begin_layout Subsubsection
28027
28028 \family sans
28029 Copy
28030 \end_layout
28031
28032 \begin_layout Standard
28033 This will create a copy of the current document including the version history.
28034  It requires a clean document without any changes since the last checkin.
28035  You are asked for a file name and a description of the copy operation.
28036  After that the copy is created, both locally and in the repository.
28037  If the parent directories of the copied and original document differ, all
28038  relative paths of included files of the copy are adjusted (like in 
28039 \family sans
28040 File\SpecialChar menuseparator
28041 Save As
28042 \family default
28043 \SpecialChar ldots
28044 ).
28045  Finally, the copy is loaded instead of the original document.
28046 \end_layout
28047
28048 \begin_layout Labeling
28049 \labelwidthstring 00.00.0000
28050 SVN
28051 \begin_inset space ~
28052 \end_inset
28053
28054 commands: 
28055 \begin_inset space ~
28056 \end_inset
28057
28058
28059 \begin_inset Newline newline
28060 \end_inset
28061
28062
28063 \begin_inset Flex Code
28064 status collapsed
28065
28066 \begin_layout Plain Layout
28067 svn copy -q 
28068 \family typewriter
28069
28070 \begin_inset Quotes qld
28071 \end_inset
28072
28073 <file-name>
28074 \begin_inset Quotes qld
28075 \end_inset
28076
28077  
28078 \begin_inset Quotes qld
28079 \end_inset
28080
28081 <new-file-name>
28082 \begin_inset Quotes qld
28083 \end_inset
28084
28085
28086 \end_layout
28087
28088 \end_inset
28089
28090
28091 \begin_inset Newline newline
28092 \end_inset
28093
28094
28095 \begin_inset Flex Code
28096 status collapsed
28097
28098 \begin_layout Plain Layout
28099 svn commit
28100 \end_layout
28101
28102 \end_inset
28103
28104
28105 \end_layout
28106
28107 \begin_layout Subsubsection
28108
28109 \family sans
28110 Rename
28111 \end_layout
28112
28113 \begin_layout Standard
28114 This will rename the current document including the version history.
28115  It requires a clean document without any changes since the last checkin.
28116  You are asked for a file name and a description of the rename operation.
28117  After that the document is renamed, both locally and in the repository.
28118  If the parent directories of the new and old file names differ, all relative
28119  paths of included files are adjusted (like in 
28120 \family sans
28121 File\SpecialChar menuseparator
28122 Save As
28123 \family default
28124 \SpecialChar ldots
28125 ).
28126  Finally, the document is reloaded using the new name.
28127 \end_layout
28128
28129 \begin_layout Labeling
28130 \labelwidthstring 00.00.0000
28131 SVN
28132 \begin_inset space ~
28133 \end_inset
28134
28135 commands: 
28136 \begin_inset space ~
28137 \end_inset
28138
28139
28140 \begin_inset Newline newline
28141 \end_inset
28142
28143
28144 \begin_inset Flex Code
28145 status collapsed
28146
28147 \begin_layout Plain Layout
28148 svn move -q 
28149 \family typewriter
28150
28151 \begin_inset Quotes qld
28152 \end_inset
28153
28154 <file-name>
28155 \begin_inset Quotes qld
28156 \end_inset
28157
28158  
28159 \begin_inset Quotes qld
28160 \end_inset
28161
28162 <new-file-name>
28163 \begin_inset Quotes qld
28164 \end_inset
28165
28166
28167 \end_layout
28168
28169 \end_inset
28170
28171
28172 \begin_inset Newline newline
28173 \end_inset
28174
28175
28176 \begin_inset Flex Code
28177 status collapsed
28178
28179 \begin_layout Plain Layout
28180 svn commit
28181 \end_layout
28182
28183 \end_inset
28184
28185
28186 \end_layout
28187
28188 \begin_layout Subsubsection
28189 \begin_inset CommandInset label
28190 LatexCommand label
28191 name "subsec:SVN-Repo-Update"
28192
28193 \end_inset
28194
28195 Update of the local directory checkout from repository
28196 \begin_inset Foot
28197 status collapsed
28198
28199 \begin_layout Plain Layout
28200 Note that this command will work only with subversion 
28201 \begin_inset Formula $\geqq1.5$
28202 \end_inset
28203
28204
28205 \end_layout
28206
28207 \end_inset
28208
28209
28210 \end_layout
28211
28212 \begin_layout Standard
28213 All the commands above have one shortcoming – they deal with the current
28214  document only.
28215  Once your document contains pictures, includes external 
28216 \begin_inset Flex Code
28217 status collapsed
28218
28219 \begin_layout Plain Layout
28220 .tex
28221 \end_layout
28222
28223 \end_inset
28224
28225  files and so on administration becomes more complicated.
28226  \SpecialChar LyX
28227  now supports updating the whole tree in which resides the document
28228 \begin_inset Foot
28229 status collapsed
28230
28231 \begin_layout Plain Layout
28232 One need to organize the files structure so that all external files are
28233  in the same directory or subdirectories of the document.
28234  
28235 \end_layout
28236
28237 \end_inset
28238
28239 .
28240  This become especially useful once you cooperate with people which neither
28241  know about subversion management nor they have ambition to commit additional
28242  material to the repository.
28243  
28244 \end_layout
28245
28246 \begin_layout Standard
28247 \begin_inset Flex Code
28248 status collapsed
28249
28250 \begin_layout Plain Layout
28251 Update local directory from repository
28252 \end_layout
28253
28254 \end_inset
28255
28256  command updates the whole directory and in case of merge conflicts local
28257  version of the files are left, so no unintended data loss occurs.
28258  If local changes are detected user is warned before update starts.
28259 \end_layout
28260
28261 \begin_layout Labeling
28262 \labelwidthstring 00.00.0000
28263 SVN
28264 \begin_inset space ~
28265 \end_inset
28266
28267 commands: 
28268 \begin_inset space ~
28269 \end_inset
28270
28271
28272 \begin_inset Newline newline
28273 \end_inset
28274
28275
28276 \begin_inset Flex Code
28277 status collapsed
28278
28279 \begin_layout Plain Layout
28280 svn diff $path
28281 \end_layout
28282
28283 \end_inset
28284
28285  (Ask if changes are detected.)
28286 \begin_inset Newline newline
28287 \end_inset
28288
28289
28290 \begin_inset Flex Code
28291 status collapsed
28292
28293 \begin_layout Plain Layout
28294 svn update --accept mine-full $path
28295 \end_layout
28296
28297 \end_inset
28298
28299
28300 \end_layout
28301
28302 \begin_layout Standard
28303 where 
28304 \begin_inset Flex Code
28305 status collapsed
28306
28307 \begin_layout Plain Layout
28308 $path
28309 \end_layout
28310
28311 \end_inset
28312
28313  stands for the path to the document.
28314 \end_layout
28315
28316 \begin_layout Subsubsection
28317
28318 \family sans
28319 Show History
28320 \end_layout
28321
28322 \begin_layout Standard
28323 This shows the complete history of the SVN document.
28324  The output of 
28325 \family typewriter
28326 svn log 
28327 \begin_inset Quotes qld
28328 \end_inset
28329
28330 <file-name>
28331 \begin_inset Quotes qld
28332 \end_inset
28333
28334
28335 \family default
28336  is shown in a browser.
28337 \end_layout
28338
28339 \begin_layout Subsubsection
28340 File Locking
28341 \begin_inset CommandInset label
28342 LatexCommand label
28343 name "subsec:SVN-File-Locking"
28344
28345 \end_inset
28346
28347
28348 \end_layout
28349
28350 \begin_layout Standard
28351 The file exchange through various revision control systems brings the problem
28352  of merge conflicts in case two different users try to edit the same (parts
28353  of) document.
28354  When such a conflict happens it needs manual resolving and one reasonable
28355  alternative is to provide some kind of locking mechanism, which guarantees
28356  that only one user is allowed to edit file at the given time.
28357 \end_layout
28358
28359 \begin_layout Standard
28360 SVN has two such mechanisms to provide mutual exclusivity for file access
28361  – locks and automatic setting of write permissions (see sec.
28362  
28363 \begin_inset CommandInset ref
28364 LatexCommand ref
28365 nolink "false"
28366 reference "subsec:Automatical-Locking-Property"
28367
28368 \end_inset
28369
28370 ) based on 
28371 \begin_inset Flex Code
28372 status collapsed
28373
28374 \begin_layout Plain Layout
28375 svn:needs-lock
28376 \end_layout
28377
28378 \end_inset
28379
28380  file svn property
28381 \begin_inset Foot
28382 status collapsed
28383
28384 \begin_layout Plain Layout
28385 \begin_inset Flex URL
28386 status open
28387
28388 \begin_layout Plain Layout
28389
28390 http://svnbook.red-bean.com/en/1.2/svn.advanced.locking.html
28391 \end_layout
28392
28393 \end_inset
28394
28395
28396 \end_layout
28397
28398 \end_inset
28399
28400 .
28401  If this property is detected for a given document \SpecialChar LyX
28402  starts to use SVN locks
28403  for document editing automatically and the whole check-in/out mechanism
28404  switches to the same regimen as for RCS.
28405  This in particular means there are two different modes of file use in \SpecialChar LyX
28406 :
28407 \end_layout
28408
28409 \begin_layout Itemize
28410 Unlocked state.
28411  The loaded file is in the read-only mode.
28412  For editing on needs to check-out.
28413  
28414 \emph on
28415 Check-out
28416 \emph default
28417  consists of updating from the repository and gaining write lock.
28418  If the lock is not possible to obtain, we remain in unlocked state.
28419 \end_layout
28420
28421 \begin_layout Itemize
28422 Locked state.
28423  The loaded file is in the 
28424 \begin_inset Quotes els
28425 \end_inset
28426
28427 normal
28428 \begin_inset Quotes ers
28429 \end_inset
28430
28431  edit mode.
28432  No other user is allowed to edit the file.
28433  
28434 \emph on
28435 Check-in
28436 \emph default
28437  consists of commiting changes and releasing write-lock.
28438  If no changes have been made to the document, no commit will be produced
28439 \begin_inset Foot
28440 status collapsed
28441
28442 \begin_layout Plain Layout
28443 Don't be puzzled by the fact that you will be asked for commit message anyway.
28444 \end_layout
28445
28446 \end_inset
28447
28448  and only the write-lock will be released.
28449 \end_layout
28450
28451 \begin_layout Standard
28452 SVN commands:
28453 \end_layout
28454
28455 \begin_layout Labeling
28456 \labelwidthstring 00.00.0000
28457 Check-in:
28458 \family typewriter
28459  svn commit -q -m"<description>" "<file-name>"
28460 \begin_inset Newline newline
28461 \end_inset
28462
28463 svn unlock "<file-name>"
28464 \end_layout
28465
28466 \begin_layout Labeling
28467 \labelwidthstring 00.00.0000
28468 Check-out: 
28469 \family typewriter
28470 svn update "<file-name>"
28471 \begin_inset Newline newline
28472 \end_inset
28473
28474 svn lock "<file-name>"
28475 \end_layout
28476
28477 \begin_layout Subsubsection
28478
28479 \family typewriter
28480 \begin_inset CommandInset label
28481 LatexCommand label
28482 name "subsec:Automatical-Locking-Property"
28483
28484 \end_inset
28485
28486
28487 \family default
28488 Automatic Locking Property
28489 \end_layout
28490
28491 \begin_layout Standard
28492 The above mentioned automatic setting of write permissions of the .lyx file
28493  can be set through
28494 \family sans
28495  File\SpecialChar menuseparator
28496 Version
28497 \begin_inset space ~
28498 \end_inset
28499
28500 Control\SpecialChar menuseparator
28501 Use Locking Property
28502 \family default
28503 .
28504  This command is active only when the file is not locked on the svn server
28505  (i.e.
28506  you need to check-out before proceeding).
28507 \end_layout
28508
28509 \begin_layout Labeling
28510 \labelwidthstring 00.00.0000
28511 SVN
28512 \begin_inset space ~
28513 \end_inset
28514
28515 commands:
28516 \end_layout
28517
28518 \begin_layout Labeling
28519 \labelwidthstring 00.00.0000
28520 Set:
28521 \family typewriter
28522  svn propset svn:needs-lock ON "<file-name>"
28523 \end_layout
28524
28525 \begin_layout Labeling
28526 \labelwidthstring 00.00.0000
28527 Unset: 
28528 \family typewriter
28529 svn propdel svn:needs-lock "<file-name>"
28530 \end_layout
28531
28532 \begin_layout Subsubsection
28533 \begin_inset CommandInset label
28534 LatexCommand label
28535 name "subsec:VCS-Revision-Information"
28536
28537 \end_inset
28538
28539 Revision Information in Documents
28540 \end_layout
28541
28542 \begin_layout Standard
28543 There are more possibilities how to activate revision information in our
28544  document.
28545 \end_layout
28546
28547 \begin_layout Itemize
28548 \SpecialChar LyX
28549  supports directly:
28550 \end_layout
28551
28552 \begin_deeper
28553 \begin_layout Itemize
28554 tree revision information (
28555 \begin_inset Flex Code
28556 status collapsed
28557
28558 \begin_layout Plain Layout
28559 vcs-tree-revision
28560 \end_layout
28561
28562 \end_inset
28563
28564 ).
28565  The result is the output of the 
28566 \begin_inset Flex Code
28567 status collapsed
28568
28569 \begin_layout Plain Layout
28570 svnversion
28571 \end_layout
28572
28573 \end_inset
28574
28575  command, the following table gives you an idea, how to read the results.
28576 \end_layout
28577
28578 \begin_layout Standard
28579 \align center
28580 \begin_inset Tabular
28581 <lyxtabular version="3" rows="6" columns="2">
28582 <features tabularvalignment="middle">
28583 <column alignment="left" valignment="top">
28584 <column alignment="left" valignment="top">
28585 <row>
28586 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
28587 \begin_inset Text
28588
28589 \begin_layout Plain Layout
28590
28591 \series bold
28592 Output
28593 \end_layout
28594
28595 \end_inset
28596 </cell>
28597 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
28598 \begin_inset Text
28599
28600 \begin_layout Plain Layout
28601
28602 \series bold
28603 Meaning
28604 \end_layout
28605
28606 \end_inset
28607 </cell>
28608 </row>
28609 <row>
28610 <cell alignment="left" valignment="top" topline="true" leftline="true" usebox="none">
28611 \begin_inset Text
28612
28613 \begin_layout Plain Layout
28614 4123:4168
28615 \end_layout
28616
28617 \end_inset
28618 </cell>
28619 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28620 \begin_inset Text
28621
28622 \begin_layout Plain Layout
28623 mixed revision working copy
28624 \end_layout
28625
28626 \end_inset
28627 </cell>
28628 </row>
28629 <row>
28630 <cell alignment="left" valignment="top" topline="true" leftline="true" usebox="none">
28631 \begin_inset Text
28632
28633 \begin_layout Plain Layout
28634 4168M
28635 \end_layout
28636
28637 \end_inset
28638 </cell>
28639 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28640 \begin_inset Text
28641
28642 \begin_layout Plain Layout
28643 modified working copy
28644 \end_layout
28645
28646 \end_inset
28647 </cell>
28648 </row>
28649 <row>
28650 <cell alignment="left" valignment="top" topline="true" leftline="true" usebox="none">
28651 \begin_inset Text
28652
28653 \begin_layout Plain Layout
28654 4123S
28655 \end_layout
28656
28657 \end_inset
28658 </cell>
28659 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28660 \begin_inset Text
28661
28662 \begin_layout Plain Layout
28663 switched working copy
28664 \end_layout
28665
28666 \end_inset
28667 </cell>
28668 </row>
28669 <row>
28670 <cell alignment="left" valignment="top" topline="true" leftline="true" usebox="none">
28671 \begin_inset Text
28672
28673 \begin_layout Plain Layout
28674 4123P
28675 \end_layout
28676
28677 \end_inset
28678 </cell>
28679 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28680 \begin_inset Text
28681
28682 \begin_layout Plain Layout
28683 partial working copy, from a sparse checkout
28684 \end_layout
28685
28686 \end_inset
28687 </cell>
28688 </row>
28689 <row>
28690 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
28691 \begin_inset Text
28692
28693 \begin_layout Plain Layout
28694 4123:4168MS
28695 \end_layout
28696
28697 \end_inset
28698 </cell>
28699 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
28700 \begin_inset Text
28701
28702 \begin_layout Plain Layout
28703 mixed revision, modified, switched working copy
28704 \end_layout
28705
28706 \end_inset
28707 </cell>
28708 </row>
28709 </lyxtabular>
28710
28711 \end_inset
28712
28713
28714 \end_layout
28715
28716 \begin_layout Itemize
28717 file revision information.
28718  The result comes from parsing the output of 
28719 \begin_inset Flex Code
28720 status collapsed
28721
28722 \begin_layout Plain Layout
28723 svn
28724 \begin_inset space ~
28725 \end_inset
28726
28727 info
28728 \begin_inset space ~
28729 \end_inset
28730
28731 --xml
28732 \begin_inset space ~
28733 \end_inset
28734
28735 file.lyx
28736 \end_layout
28737
28738 \end_inset
28739
28740 .
28741  Supported flags are:
28742 \end_layout
28743
28744 \begin_deeper
28745 \begin_layout Itemize
28746 version number of the last commit (
28747 \begin_inset Flex Code
28748 status collapsed
28749
28750 \begin_layout Plain Layout
28751 vcs-revision
28752 \end_layout
28753
28754 \end_inset
28755
28756 )
28757 \end_layout
28758
28759 \begin_layout Itemize
28760 author of the last commit (
28761 \begin_inset Flex Code
28762 status collapsed
28763
28764 \begin_layout Plain Layout
28765 vcs-author
28766 \end_layout
28767
28768 \end_inset
28769
28770 )
28771 \end_layout
28772
28773 \begin_layout Itemize
28774 date of the last commit (
28775 \begin_inset Flex Code
28776 status collapsed
28777
28778 \begin_layout Plain Layout
28779 vcs-date
28780 \end_layout
28781
28782 \end_inset
28783
28784 )
28785 \end_layout
28786
28787 \begin_layout Itemize
28788 time of the last commit (
28789 \begin_inset Flex Code
28790 status collapsed
28791
28792 \begin_layout Plain Layout
28793 vcs-time
28794 \end_layout
28795
28796 \end_inset
28797
28798 )
28799 \end_layout
28800
28801 \end_deeper
28802 \begin_layout Standard
28803 You can obtain this info via InsetInfo (
28804 \change_inserted 5863208 1564400022
28805
28806 \lang american
28807 Insert\SpecialChar menuseparator
28808 Field\SpecialChar menuseparator
28809 Version Control Revision
28810 \change_deleted 5863208 1564399852
28811
28812 \lang english
28813 e.g.
28814  
28815 \begin_inset Flex Code
28816 status collapsed
28817
28818 \begin_layout Plain Layout
28819 info-insert buffer vcs-date
28820 \end_layout
28821
28822 \end_inset
28823
28824
28825 \change_unchanged
28826 ).
28827  The information will be available only when you have the file stored under
28828  svn managment (i.e.
28829  the 
28830 \begin_inset Flex Code
28831 status collapsed
28832
28833 \begin_layout Plain Layout
28834 .svn
28835 \end_layout
28836
28837 \end_inset
28838
28839  directory is available with your document).
28840 \end_layout
28841
28842 \end_deeper
28843 \begin_layout Itemize
28844 Another—a hacking one—possibility is to use svn keywords
28845 \begin_inset Foot
28846 status collapsed
28847
28848 \begin_layout Plain Layout
28849 http://svnbook.red-bean.com/en/1.4/svn.advanced.props.special.keywords.html
28850 \end_layout
28851
28852 \end_inset
28853
28854 .
28855  In short – you set file keywords property (e.g.
28856  
28857 \family sans
28858 svn propset svn:keywords 'Rev' file.lyx
28859 \family default
28860 ) and then paste keyword \SpecialChar TeX
28861  code
28862 \begin_inset Foot
28863 status collapsed
28864
28865 \begin_layout Plain Layout
28866 This is an easy way how to ensure that \SpecialChar LyX
28867  won't break the line in the middle
28868  of keyword tag.
28869 \end_layout
28870
28871 \end_inset
28872
28873  tag in your document (e.g.
28874  
28875 \begin_inset Flex Code
28876 status collapsed
28877
28878 \begin_layout Plain Layout
28879 $Rev$
28880 \end_layout
28881
28882 \end_inset
28883
28884 ).
28885  This way svn client will automatically substitute revision number (e.g.
28886  
28887 \begin_inset Flex Code
28888 status collapsed
28889
28890 \begin_layout Plain Layout
28891 $Rev: 59 $
28892 \end_layout
28893
28894 \end_inset
28895
28896 ) after each update and commit.
28897  There are more problems with this approach.
28898  Firstly, the '$' character is used in \SpecialChar TeX
28899  world for math equations, so any
28900  occurence of math formula 
28901 \begin_inset Formula $Rev$
28902 \end_inset
28903
28904  become 
28905 \begin_inset Formula $Rev:59$
28906 \end_inset
28907
28908  in your \SpecialChar LyX
28909  document.
28910  Similarly for other keywords like Id, Date, Author, etc.
28911  Secondly svn output is dependent on your locales, so its very easy that
28912  svn would produce some problematic strings once Date is used.
28913  Thirdly you get the whole 'Rev: 59' string in your document instead of
28914  the plain number.
28915  Until subversion implements user's custom keywords it will be hard to use
28916  this approach reliably or let \SpecialChar LyX
28917  to support it directly.
28918 \end_layout
28919
28920 \begin_layout Subsection
28921 SVN and Windows Environment
28922 \end_layout
28923
28924 \begin_layout Quote
28925 My inclination is to say that if the user cannot figure out the command
28926  line operations on their own fairly quickly, they would be well advised
28927  to use TortoiseSVN.
28928  —P.
28929  A.
28930  Rubin
28931 \end_layout
28932
28933 \begin_layout Subsubsection
28934 Preparation
28935 \end_layout
28936
28937 \begin_layout Standard
28938 In addition to installing \SpecialChar LyX
28939 , and having access to a Subversion repository,
28940  the user will need to install the Subversion client program.
28941  A Windows installer for the client program is available from 
28942 \begin_inset CommandInset href
28943 LatexCommand href
28944 name "CollabNet"
28945 target "http://www.collab.net/nonav/downloads/subversion/"
28946 literal "false"
28947
28948 \end_inset
28949
28950 .
28951  The user may also want to install 
28952 \begin_inset CommandInset href
28953 LatexCommand href
28954 name "TortoiseSVN"
28955 target "http://tortoisesvn.tigris.org/"
28956 literal "false"
28957
28958 \end_inset
28959
28960 , which integrates Subversion operations into the context (rightclick) menu
28961  of Windows Explorer.
28962  Operations done outside \SpecialChar LyX
28963  will typically be more convenient using the Explorer
28964  context menu.
28965  Note that TortoiseSVN is not a replacement for the client program, which
28966  is what \SpecialChar LyX
28967  itself will use.
28968 \end_layout
28969
28970 \begin_layout Subsubsection
28971 Bringing a document under Subversion control
28972 \end_layout
28973
28974 \begin_layout Standard
28975 Before a \SpecialChar LyX
28976  document can be brought under version control in Subversion, its
28977  parent directory needs to be under version control.
28978  If the document is being added to a project already in the repository,
28979  this is accomplished by checking the project out to the directory where
28980  the new document will be placed.
28981  If the project itself is not yet under version control (for instance, if
28982  this document starts a new project), the directory must be imported into
28983  the repository.
28984  This is done outside \SpecialChar LyX
28985 .
28986  Both import and checkout are easily accomplished from the Explorer context
28987  menu using TortoiseSVN, or alternatively can be done using the command
28988  line client at a DOS prompt.
28989  The procedure for importing the project using TortoiseSVN is described
28990  below, assuming an existing repository and a new project being started
28991  in 
28992 \family typewriter
28993 C:
28994 \backslash
28995 new project
28996 \family default
28997 .
28998  For information on using the Subversion client program, run 
28999 \family typewriter
29000 svn --help 
29001 \family default
29002 in a DOS shell.
29003 \end_layout
29004
29005 \begin_layout Enumerate
29006 Locate 
29007 \family typewriter
29008 C:
29009 \backslash
29010 new project 
29011 \family default
29012 in Windows Explorer, right click it, and select 
29013 \family sans
29014 TortoiseSVN\SpecialChar menuseparator
29015 Repo-browser
29016 \family default
29017 .
29018  If necessary, adjust the URL for the repository, then click OK.
29019 \end_layout
29020
29021 \begin_layout Enumerate
29022 Right click the level of the repository under which you want to place the
29023  new project folder (typically the top level) and click 
29024 \family sans
29025 Create folder
29026 \family default
29027  Supply a name for the project folder and click OK.
29028  Add a message for the log file if desired, then click OK again.
29029  The new project folder should appear in the repository.
29030  Finally, click OK again to exit the repository browser.
29031 \end_layout
29032
29033 \begin_layout Enumerate
29034 Once again right click 
29035 \family typewriter
29036 C:
29037 \backslash
29038 new project
29039 \family default
29040 , this time selecting SVN Checkout\SpecialChar ldots
29041  Select the URL of the project folder
29042  you just created in the repository, and set the checkout directory to 
29043 \family typewriter
29044 C:
29045 \backslash
29046 new project.
29047
29048 \family default
29049  Click OK.
29050  You will be warned about a non-empty folder; click OK to proceed.
29051  You should now have a 
29052 \family typewriter
29053 .svn
29054 \family default
29055  directory under 
29056 \family typewriter
29057 C:
29058 \backslash
29059 new project.
29060 \end_layout
29061
29062 \begin_layout Enumerate
29063 Create or open your document in \SpecialChar LyX
29064  and click 
29065 \family sans
29066 File\SpecialChar menuseparator
29067 Version
29068 \begin_inset space ~
29069 \end_inset
29070
29071 Control\SpecialChar menuseparator
29072 Register.
29073  
29074 \family default
29075 Add a log message and click OK to commit the document to version control.
29076 \end_layout
29077
29078 \begin_layout Standard
29079 From this point onward, you should have full functionality in the 
29080 \family sans
29081 File\SpecialChar menuseparator
29082 Version
29083 \begin_inset space ~
29084 \end_inset
29085
29086 Control
29087 \family default
29088  menu.
29089  You also have the option of checking the document in and out, viewing its
29090  history, etc.
29091  using the TortoiseSVN context menu in Windows Explorer or the Subversion
29092  client program from a command prompt.
29093 \end_layout
29094
29095 \begin_layout Subsubsection
29096 SSH tunnel used with SVN under Windows
29097 \end_layout
29098
29099 \begin_layout Standard
29100 Compared with Linux setting up an svn client to communicate over ssh under
29101  Windows is a rather troublesome task.
29102  We will at least offer some hints how to setup the client side but prior
29103  knowledge about ssh and the Windows command line is needed, also be prepared
29104  for a great deal of frustration\SpecialChar ldots
29105
29106 \end_layout
29107
29108 \begin_layout Enumerate
29109 Get an svn client for windows, as described in the previous sections.
29110  When it is a fresh install run some svn command (e.g.
29111  
29112 \begin_inset Flex Code
29113 status collapsed
29114
29115 \begin_layout Plain Layout
29116 svn --version
29117 \end_layout
29118
29119 \end_inset
29120
29121 ) to create config files, which you will need to change later on.
29122 \end_layout
29123
29124 \begin_layout Enumerate
29125 Choose an ssh client for Windows.
29126  There are several possibilities, we will use the one from Putty tools
29127 \begin_inset Foot
29128 status collapsed
29129
29130 \begin_layout Plain Layout
29131 \begin_inset Flex URL
29132 status collapsed
29133
29134 \begin_layout Plain Layout
29135
29136 http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html
29137 \end_layout
29138
29139 \end_inset
29140
29141
29142 \end_layout
29143
29144 \end_inset
29145
29146 .
29147  You will need to set the connection up so that the client doesn't ask for
29148  any password from you.
29149  To keep things easy we will use only keys without any additional password
29150  protection etc.
29151 \end_layout
29152
29153 \begin_deeper
29154 \begin_layout Enumerate
29155 Generate keys by 
29156 \begin_inset Flex Code
29157 status collapsed
29158
29159 \begin_layout Plain Layout
29160 puttygen
29161 \end_layout
29162
29163 \end_inset
29164
29165 .
29166  Save your private .ppk key file and put the public one on the server side.
29167  If the SVN server runs on Linux, note that the format of the public key
29168  is not compatible with Linux openssh and you will need to direcly copy-paste
29169  the key from the 
29170 \begin_inset Quotes eld
29171 \end_inset
29172
29173
29174 \emph on
29175 Public key for pasting into OpenSSH authorized_keys file
29176 \emph default
29177 :
29178 \begin_inset Quotes erd
29179 \end_inset
29180
29181  edit field into the server's 
29182 \begin_inset Flex Code
29183 status collapsed
29184
29185 \begin_layout Plain Layout
29186 ~/.ssh/authorized_keys
29187 \end_layout
29188
29189 \end_inset
29190
29191  / 
29192 \begin_inset Flex Code
29193 status collapsed
29194
29195 \begin_layout Plain Layout
29196 authorized_keys2
29197 \end_layout
29198
29199 \end_inset
29200
29201  file.
29202 \end_layout
29203
29204 \begin_layout Enumerate
29205 Get the Putty's 
29206 \begin_inset Flex Code
29207 status collapsed
29208
29209 \begin_layout Plain Layout
29210 plink
29211 \end_layout
29212
29213 \end_inset
29214
29215 .
29216  In the SVN config file
29217 \begin_inset Foot
29218 status collapsed
29219
29220 \begin_layout Plain Layout
29221 Exact path depends on Windows version, usually somewhere around 
29222 \begin_inset Flex Code
29223 status collapsed
29224
29225 \begin_layout Plain Layout
29226 c:
29227 \backslash
29228 Documents and Settings
29229 \backslash
29230 user
29231 \backslash
29232 Application Data
29233 \backslash
29234 Subversion
29235 \backslash
29236 config
29237 \end_layout
29238
29239 \end_inset
29240
29241  / 
29242 \begin_inset Flex Code
29243 status collapsed
29244
29245 \begin_layout Plain Layout
29246 AppData
29247 \backslash
29248 Roaming
29249 \backslash
29250 Subversion
29251 \end_layout
29252
29253 \end_inset
29254
29255 .
29256 \end_layout
29257
29258 \end_inset
29259
29260 , section [tunnels], setup ssh command, e.g.
29261  
29262 \begin_inset Flex Code
29263 status collapsed
29264
29265 \begin_layout Plain Layout
29266 ssh=c:/path/plink.exe -i c:/path/private_key.ppk
29267 \end_layout
29268
29269 \end_inset
29270
29271 .
29272 \begin_inset Foot
29273 status collapsed
29274
29275 \begin_layout Plain Layout
29276 It will usually take a lot of time to get exact command right and it depends
29277  on many things.
29278  For example do not have some remote server saved as a default session in
29279  Putty etc.
29280  If things fail, try to connect via plink without SVN first.
29281 \end_layout
29282
29283 \end_inset
29284
29285
29286 \end_layout
29287
29288 \end_deeper
29289 \begin_layout Enumerate
29290 Checkout the SVN archive, e.
29291 \begin_inset space \thinspace{}
29292 \end_inset
29293
29294 g.
29295 \begin_inset Newline newline
29296 \end_inset
29297
29298
29299 \begin_inset Flex Code
29300 status collapsed
29301
29302 \begin_layout Plain Layout
29303 svn co svn+ssh://user@server/repository_path
29304 \end_layout
29305
29306 \end_inset
29307
29308 .
29309 \end_layout
29310
29311 \begin_layout Subsubsection
29312 End-of-Line Conversions
29313 \end_layout
29314
29315 \begin_layout Standard
29316 When the collaborators are mixing Linux and Windows environments, \SpecialChar LyX
29317  will
29318  use different line endings inside the .lyx files.
29319  This is not a problem as far as \SpecialChar LyX
29320  functionality is concerned, but the commit
29321  diffs will be huge and merge-conflicts prone.
29322  Fortunately SVN itself knows
29323 \begin_inset Foot
29324 status collapsed
29325
29326 \begin_layout Plain Layout
29327 \begin_inset Flex URL
29328 status collapsed
29329
29330 \begin_layout Plain Layout
29331
29332 http://svnbook.red-bean.com/en/1.4/svn.advanced.props.file-portability.html
29333 \end_layout
29334
29335 \end_inset
29336
29337
29338 \end_layout
29339
29340 \end_inset
29341
29342  how to deal with CR/LF problems when switching .lyx files to the 
29343 \begin_inset Flex Code
29344 status collapsed
29345
29346 \begin_layout Plain Layout
29347 native
29348 \end_layout
29349
29350 \end_inset
29351
29352  mode.
29353 \begin_inset Foot
29354 status collapsed
29355
29356 \begin_layout Plain Layout
29357 For the lazy guys: 
29358 \begin_inset Flex Code
29359 status collapsed
29360
29361 \begin_layout Plain Layout
29362 svn propset svn:eol-style native FILE_NAME
29363 \end_layout
29364
29365 \end_inset
29366
29367
29368 \end_layout
29369
29370 \end_inset
29371
29372
29373 \end_layout
29374
29375 \begin_layout Subsection
29376 GIT commands in \SpecialChar LyX
29377
29378 \end_layout
29379
29380 \begin_layout Standard
29381 A minimal subset of GIT commands is now supported by \SpecialChar LyX
29382 .
29383  You can find the commands in the 
29384 \family sans
29385 File\SpecialChar menuseparator
29386 Version
29387 \begin_inset space ~
29388 \end_inset
29389
29390 Control
29391 \family default
29392  submenu.
29393  Please note that if you use password protected access to repository via
29394  ssh, you will be asked in terminal window.
29395  \SpecialChar LyX
29396  was tested against GIT 1.7.
29397 \begin_inset Foot
29398 status collapsed
29399
29400 \begin_layout Plain Layout
29401 Windows users please note that you need to ensure that git is on the path.
29402  This can be set from within \SpecialChar LyX
29403  at 
29404 \family sans
29405 Tools\SpecialChar menuseparator
29406 Preferences\SpecialChar menuseparator
29407 Paths\SpecialChar menuseparator
29408 PATH prefix
29409 \family default
29410 .
29411 \end_layout
29412
29413 \end_inset
29414
29415
29416 \end_layout
29417
29418 \begin_layout Standard
29419 One big difference of GIT and the other supported version control systems
29420  is the distributed nature of GIT: With traditional version control systems
29421  there is one central server which hosts the repository.
29422  Users commit their changes to the server, and get updates made by other
29423  users from it.
29424  With GIT, users commit to a local repository.
29425  The local repository can be synchronized with one or more remote repositories
29426  using the 
29427 \begin_inset Flex Code
29428 status collapsed
29429
29430 \begin_layout Plain Layout
29431 pull
29432 \end_layout
29433
29434 \end_inset
29435
29436  and 
29437 \begin_inset Flex Code
29438 status collapsed
29439
29440 \begin_layout Plain Layout
29441 push
29442 \end_layout
29443
29444 \end_inset
29445
29446  GIT commands.
29447  \SpecialChar LyX
29448  does not interact in any way with remote GIT repositories.
29449  It works exclusively with the local repository in a very similar way as
29450  with a central CVS or SVN repository.
29451  If you use remote GIT repositories you need to do the 
29452 \begin_inset Flex Code
29453 status collapsed
29454
29455 \begin_layout Plain Layout
29456 pull
29457 \end_layout
29458
29459 \end_inset
29460
29461  and 
29462 \begin_inset Flex Code
29463 status collapsed
29464
29465 \begin_layout Plain Layout
29466 push
29467 \end_layout
29468
29469 \end_inset
29470
29471  operations with your favourite GIT client.
29472 \end_layout
29473
29474 \begin_layout Subsubsection
29475
29476 \family sans
29477 Register
29478 \end_layout
29479
29480 \begin_layout Standard
29481 If your document is not under revision control, this is the only item shown
29482  in the menu.
29483  And if it is under revision control, the 
29484 \family sans
29485 Register
29486 \family default
29487  item is not visible.
29488 \end_layout
29489
29490 \begin_layout Standard
29491 This command registers in GIT your document ONLY in case you have already
29492  the documents directory under GIT control (in particular 
29493 \family typewriter
29494 .git/index
29495 \family default
29496  file exists).
29497  This means you have to checkout the archive by yourself.
29498 \end_layout
29499
29500 \begin_layout Standard
29501 Then you are asked interactively to supply an initial description of the
29502  document.
29503  Don't forget that registered file is not yet committed.
29504 \end_layout
29505
29506 \begin_layout Standard
29507 GIT command that is run: 
29508 \family typewriter
29509 git add 
29510 \begin_inset Quotes qld
29511 \end_inset
29512
29513 <file-name>
29514 \begin_inset Quotes qld
29515 \end_inset
29516
29517
29518 \end_layout
29519
29520 \begin_layout Standard
29521 Read 
29522 \family typewriter
29523 man git
29524 \family default
29525  to understand the switches.
29526 \end_layout
29527
29528 \begin_layout Subsubsection
29529
29530 \family sans
29531 Check In Changes
29532 \end_layout
29533
29534 \begin_layout Standard
29535 When you are finished editing a file, you commit your changes.
29536  When you do this, you are asked for a description of the changes.
29537  After that changes are committed.
29538 \end_layout
29539
29540 \begin_layout Standard
29541 GIT command: 
29542 \family typewriter
29543 git commit -q -m"<description>" <file-name>
29544 \end_layout
29545
29546 \begin_layout Subsubsection
29547
29548 \family sans
29549 Revert To Repository Version
29550 \end_layout
29551
29552 \begin_layout Standard
29553 This will discard all changes made to the document since the last check
29554  in.
29555  You get a warning before changes are discarded.
29556 \end_layout
29557
29558 \begin_layout Standard
29559 GIT command: 
29560 \family typewriter
29561 git checkout -q 
29562 \begin_inset Quotes qld
29563 \end_inset
29564
29565 <file-name>
29566 \begin_inset Quotes qld
29567 \end_inset
29568
29569
29570 \end_layout
29571
29572 \begin_layout Subsubsection
29573
29574 \family sans
29575 Rename
29576 \end_layout
29577
29578 \begin_layout Standard
29579 This will rename the current document including the version history.
29580  It requires a clean document without any changes since the last checkin.
29581  You are asked for a file name and a description of the rename operation.
29582  After that the document is renamed, both locally and in the repository.
29583  If the parent directories of the new and old file names differ, all relative
29584  paths of included files are adjusted (like in 
29585 \family sans
29586 File\SpecialChar menuseparator
29587 Save As
29588 \family default
29589 \SpecialChar ldots
29590 ).
29591  Finally, the document is reloaded using the new name.
29592 \end_layout
29593
29594 \begin_layout Labeling
29595 \labelwidthstring 00.00.0000
29596 GIT
29597 \begin_inset space ~
29598 \end_inset
29599
29600 commands: 
29601 \begin_inset space ~
29602 \end_inset
29603
29604
29605 \begin_inset Newline newline
29606 \end_inset
29607
29608
29609 \begin_inset Flex Code
29610 status collapsed
29611
29612 \begin_layout Plain Layout
29613 git mv 
29614 \family typewriter
29615
29616 \begin_inset Quotes qld
29617 \end_inset
29618
29619 <file-name>
29620 \begin_inset Quotes qld
29621 \end_inset
29622
29623  
29624 \begin_inset Quotes qld
29625 \end_inset
29626
29627 <new-file-name>
29628 \begin_inset Quotes qld
29629 \end_inset
29630
29631
29632 \end_layout
29633
29634 \end_inset
29635
29636
29637 \begin_inset Newline newline
29638 \end_inset
29639
29640
29641 \begin_inset Flex Code
29642 status collapsed
29643
29644 \begin_layout Plain Layout
29645 git commit
29646 \end_layout
29647
29648 \end_inset
29649
29650
29651 \end_layout
29652
29653 \begin_layout Subsubsection
29654
29655 \family sans
29656 Show History
29657 \end_layout
29658
29659 \begin_layout Standard
29660 This shows the complete history of the GIT document.
29661  The output of 
29662 \family typewriter
29663 git log 
29664 \begin_inset Quotes qld
29665 \end_inset
29666
29667 <file-name>
29668 \begin_inset Quotes qld
29669 \end_inset
29670
29671
29672 \family default
29673  is shown in a browser.
29674 \end_layout
29675
29676 \begin_layout Subsubsection
29677 Version Info
29678 \end_layout
29679
29680 \begin_layout Standard
29681 \SpecialChar LyX
29682  supports GIT hash number of the last commit to the file, 
29683 \change_inserted 1119979965 1564297456
29684 its abbreviated form, 
29685 \change_unchanged
29686 author name, date and time of last commit.
29687  All those are extracted from 
29688 \family typewriter
29689 git log -n 1 --pretty=format:%H%n
29690 \change_inserted 1119979965 1564297427
29691 %h%n
29692 \change_unchanged
29693 %an%n%ai
29694 \family default
29695 .
29696  Tree version information is obtained via 
29697 \family typewriter
29698 git describe --abbrev --dirty --long
29699 \family default
29700 .
29701  See 
29702 \begin_inset CommandInset ref
29703 LatexCommand ref
29704 nolink "false"
29705 reference "subsec:VCS-Revision-Information"
29706
29707 \end_inset
29708
29709  for other details.
29710 \end_layout
29711
29712 \begin_layout Subsection
29713 Further tuning
29714 \end_layout
29715
29716 \begin_layout Standard
29717 With the recent addition of the 
29718 \begin_inset Flex Code
29719 status collapsed
29720
29721 \begin_layout Plain Layout
29722 vc-command
29723 \end_layout
29724
29725 \end_inset
29726
29727  function \SpecialChar LyX
29728  power users are allowed to create their own commands for revision
29729  control.
29730 \end_layout
29731
29732 \begin_layout Standard
29733 As an example you can see how two TortoiseSVN commands could be integrated
29734  directly:
29735 \end_layout
29736
29737 \begin_layout Description
29738 Commit: 
29739 \begin_inset Flex Code
29740 status collapsed
29741
29742 \begin_layout Plain Layout
29743 vc-command DR "." "TortoiseProc /command:commit /path:$$p"
29744 \end_layout
29745
29746 \end_inset
29747
29748
29749 \end_layout
29750
29751 \begin_layout Description
29752 Revert: 
29753 \begin_inset Flex Code
29754 status collapsed
29755
29756 \begin_layout Plain Layout
29757 vc-command DR "." "TortoiseProc /command:revert /path:$$p"
29758 \end_layout
29759
29760 \end_inset
29761
29762
29763 \end_layout
29764
29765 \begin_layout Subsection
29766 Version control and Document comparison
29767 \end_layout
29768
29769 \begin_layout Standard
29770 One of the typical uses of version control is to inspect the changes between
29771  revisions, usually by creating 
29772 \begin_inset Flex Code
29773 status collapsed
29774
29775 \begin_layout Plain Layout
29776 diff
29777 \end_layout
29778
29779 \end_inset
29780
29781  dumps.
29782  While this is useful for plain text files, it is much less useful in the
29783  case of \SpecialChar LyX
29784  files, which have more a complicated structure.
29785  Hence we provide binding to the Document comparison feature.
29786  There are two ways of calling this feature – either by direct call of 
29787 \begin_inset Flex Code
29788 status collapsed
29789
29790 \begin_layout Plain Layout
29791 vc-compare
29792 \end_layout
29793
29794 \end_inset
29795
29796  \SpecialChar LyX
29797  function (for details see \SpecialChar LyX
29798  functions manual) or by the toolbar icon 
29799 \begin_inset Info
29800 type  "icon"
29801 arg   "vc-compare"
29802 \end_inset
29803
29804  or the menu item 
29805 \begin_inset Info
29806 type  "menu"
29807 arg   "vc-compare"
29808 \end_inset
29809
29810 , respectively.
29811  One can either compare two chosen revisions of the document or he can simply
29812  compare the current version of edited text with older revisions (where
29813  '
29814 \begin_inset Flex Noun
29815 status collapsed
29816
29817 \begin_layout Plain Layout
29818 0
29819 \end_layout
29820
29821 \end_inset
29822
29823 ' revisions back means comparison of the edited file with last commited
29824  revision).
29825  
29826 \end_layout
29827
29828 \begin_layout Standard
29829 This feature is supported for SVN and RCS though due to the more complicated
29830  versioning scheme of RCS there is a constraint – when addressing the revisions
29831  in dialog, numbers always point to the last number in RCS revision number,
29832  i.e.
29833  '35' in '1.2.35'.
29834  We don't currently support GIT addressing of revisions, one can just compare
29835  edited document with its revision X steps backs, where X is addressed as
29836  
29837 \begin_inset Flex Code
29838 status collapsed
29839
29840 \begin_layout Plain Layout
29841 HEAD~X
29842 \end_layout
29843
29844 \end_inset
29845
29846 .
29847 \end_layout
29848
29849 \begin_layout Section
29850 Literate Programming
29851 \end_layout
29852
29853 \begin_layout Standard
29854 Updated by 
29855 \noun on
29856 Kayvan Sylvan 
29857 \noun default
29858 (kayvan@sylvan.com)
29859 \noun on
29860
29861 \noun default
29862 original documentation written by 
29863 \noun on
29864 Edmar Wienskoski Jr.
29865
29866 \noun default
29867  (edmar-w-jr@technologist.com)
29868 \end_layout
29869
29870 \begin_layout Subsection
29871 Introduction
29872 \end_layout
29873
29874 \begin_layout Standard
29875 The main purpose of this documentation is to show you how to use \SpecialChar LyX
29876  for literate
29877  programming, where it is assumed that you are familiar with this programming
29878  technique, and know what 
29879 \begin_inset Quotes eld
29880 \end_inset
29881
29882 tangling
29883 \begin_inset Quotes erd
29884 \end_inset
29885
29886  and 
29887 \begin_inset Quotes eld
29888 \end_inset
29889
29890 weaving
29891 \begin_inset Quotes erd
29892 \end_inset
29893
29894  means.
29895  If that is not the case, please follow the web links provided in the following
29896  sections.
29897  There is a lot of good documentation out there covering old development
29898  history to the latest tools tips.
29899 \end_layout
29900
29901 \begin_layout Standard
29902 It is also assumed that you are familiar with \SpecialChar LyX
29903  itself to a point that you
29904  are comfortable changing your \SpecialChar LyX
29905  preferences, and X resources file.
29906  If that is not the case please refer to other \SpecialChar LyX
29907  documentation to cover your
29908  specific needs.
29909 \end_layout
29910
29911 \begin_layout Subsection
29912 Literate Programming
29913 \end_layout
29914
29915 \begin_layout Standard
29916 From the Literate Programming FAQ: 
29917 \end_layout
29918
29919 \begin_layout Quotation
29920 Literate programming is the combination of documentation and source together
29921  in a fashion suited for reading by human beings.
29922  In fact, literate programs should be enjoyable reading, even inviting!
29923  (Sorry Bob, I couldn't resist!) In general, literate programs combine source
29924  and documentation in a single file.
29925  Literate programming tools then parse the file to produce either readable
29926  documentation or compilable source.
29927  The WEB style of literate programming was created by D.
29928 \begin_inset space \thinspace{}
29929 \end_inset
29930
29931 E.
29932  Knuth during the development of his \SpecialChar TeX
29933  typesetting software.
29934  
29935 \end_layout
29936
29937 \begin_layout Standard
29938 Another excerpt says:
29939 \end_layout
29940
29941 \begin_layout Quotation
29942
29943 \emph on
29944 How is literate programming different from verbose commenting?
29945 \end_layout
29946
29947 \begin_layout Quotation
29948 There are three distinguishing characteristics.
29949  In order of importance, they are: 
29950 \end_layout
29951
29952 \begin_deeper
29953 \begin_layout Itemize
29954 flexible order of elaboration 
29955 \end_layout
29956
29957 \begin_layout Itemize
29958 automatic support for browsing 
29959 \end_layout
29960
29961 \begin_layout Itemize
29962 typeset documentation, especially diagrams and mathematics 
29963 \end_layout
29964
29965 \end_deeper
29966 \begin_layout Standard
29967 Now that I sparked your curiosity, take a look in the references.
29968 \end_layout
29969
29970 \begin_layout Subsubsection
29971 References
29972 \end_layout
29973
29974 \begin_layout Standard
29975 The complete Literate Programming FAQ can be found at:
29976 \end_layout
29977
29978 \begin_layout Quote
29979 Literate Programming FAQ 
29980 \begin_inset Flex URL
29981 status open
29982
29983 \begin_layout Plain Layout
29984
29985 http://www.literateprogramming.com/lpfaq.pdf
29986 \end_layout
29987
29988 \end_inset
29989
29990
29991 \end_layout
29992
29993 \begin_layout Standard
29994 The FAQ lists 23 (twenty three!) different literate programming tools.
29995  Where some are specialized or 
29996 \begin_inset Quotes eld
29997 \end_inset
29998
29999 tailored
30000 \begin_inset Quotes erd
30001 \end_inset
30002
30003  for particular programming languages, while other have general scope.
30004  I selected 
30005 \noun on
30006 Noweb
30007 \noun default
30008  for my own use for several reasons:
30009 \end_layout
30010
30011 \begin_layout Itemize
30012 It can generate the documentation either in \SpecialChar LaTeX
30013  or HTML.
30014 \end_layout
30015
30016 \begin_layout Itemize
30017 It has a open architecture, i.
30018 \begin_inset space \thinspace{}
30019 \end_inset
30020
30021 e.
30022 \begin_inset space \space{}
30023 \end_inset
30024
30025 it is easy to plug in new filters
30026 \begin_inset Foot
30027 status collapsed
30028
30029 \begin_layout Plain Layout
30030
30031 \emph on
30032 Filters 
30033 \emph default
30034 are programs that read a given data stream and output a manipulated data
30035  stream.
30036  That way, a WEB file (consisting of literate code) can be turned into a
30037  file consisting only of C program code or \SpecialChar LaTeX
30038  code.
30039 \end_layout
30040
30041 \end_inset
30042
30043  and to perform special processing that you may need.
30044  
30045 \end_layout
30046
30047 \begin_layout Itemize
30048 There is a good selection of filters available already (the HTML is one
30049  of them).
30050 \end_layout
30051
30052 \begin_layout Itemize
30053 It is free.
30054 \end_layout
30055
30056 \begin_layout Standard
30057 The Noweb web page can be found at: 
30058 \end_layout
30059
30060 \begin_layout Quote
30061 Noweb home page 
30062 \begin_inset Flex URL
30063 status collapsed
30064
30065 \begin_layout Plain Layout
30066
30067 https://www.cs.tufts.edu/~nr/noweb/
30068 \end_layout
30069
30070 \end_inset
30071
30072
30073 \end_layout
30074
30075 \begin_layout Standard
30076 Starting from there you can reach many other interesting links and even
30077  some literate program examples.
30078 \end_layout
30079
30080 \begin_layout Subsection
30081 \SpecialChar LyX
30082  and Literate Programming with Noweb
30083 \end_layout
30084
30085 \begin_layout Standard
30086 The \SpecialChar LyX
30087  support for Literate Programming is provided by using the generic \SpecialChar LyX
30088
30089  converters mechanism.
30090  This support is provided in a 
30091 \begin_inset Quotes eld
30092 \end_inset
30093
30094 Noweb independent
30095 \begin_inset Quotes erd
30096 \end_inset
30097
30098  way, i.
30099 \begin_inset space \thinspace{}
30100 \end_inset
30101
30102 e.
30103 \begin_inset space \space{}
30104 \end_inset
30105
30106 you will be able to use this new \SpecialChar LyX
30107  feature with some other literate programming
30108  tool of your choice by just changing your \SpecialChar LyX
30109  preferences.
30110 \end_layout
30111
30112 \begin_layout Subsubsection
30113 Generating documents and code (weaving and tangling)
30114 \end_layout
30115
30116 \begin_layout Paragraph
30117 Using the noweb module
30118 \end_layout
30119
30120 \begin_layout Standard
30121 If you have installed Noweb and \SpecialChar LyX
30122  successfully, whenever you open a new document,
30123  after you have chosen its document class, use the 
30124 \family sans
30125 Document\SpecialChar menuseparator
30126 Settings
30127 \family default
30128  menu to add the 
30129 \begin_inset Quotes eld
30130 \end_inset
30131
30132 noweb
30133 \begin_inset Quotes erd
30134 \end_inset
30135
30136  module.
30137  If Noweb is correctly installed, when you click on the 
30138 \begin_inset Quotes eld
30139 \end_inset
30140
30141 Modules
30142 \begin_inset Quotes erd
30143 \end_inset
30144
30145  link, you will see the 
30146 \begin_inset Quotes eld
30147 \end_inset
30148
30149 noweb
30150 \begin_inset Quotes erd
30151 \end_inset
30152
30153  module in the available list and you can add it to your document.
30154 \end_layout
30155
30156 \begin_layout Paragraph
30157 Typing code in
30158 \end_layout
30159
30160 \begin_layout Standard
30161 \SpecialChar LyX
30162  enables you to write code with a custom inset named 
30163 \begin_inset Flex Noun
30164 status collapsed
30165
30166 \begin_layout Plain Layout
30167 Chunk
30168 \end_layout
30169
30170 \end_inset
30171
30172 .
30173  Noweb delimits chunks like this:
30174 \end_layout
30175
30176 \begin_layout LyX-Code
30177 <<My code>>=
30178 \end_layout
30179
30180 \begin_layout LyX-Code
30181   code
30182 \end_layout
30183
30184 \begin_layout LyX-Code
30185   more code
30186 \end_layout
30187
30188 \begin_layout LyX-Code
30189   even more code
30190 \end_layout
30191
30192 \begin_layout LyX-Code
30193   @
30194 \end_layout
30195
30196 \begin_layout Standard
30197 The problem is that whatever is written in between the << and the 
30198 \family typewriter
30199 @
30200 \family default
30201  must be taken literally, i.
30202 \begin_inset space \thinspace{}
30203 \end_inset
30204
30205 e.
30206 \begin_inset space \space{}
30207 \end_inset
30208
30209 \SpecialChar LyX
30210  should be prevented from making any special interpretation of what has
30211  been written.
30212  This is also handled by 
30213 \begin_inset Flex Noun
30214 status collapsed
30215
30216 \begin_layout Plain Layout
30217 Chunk
30218 \end_layout
30219
30220 \end_inset
30221
30222 , that works like a normal text inset but has a free spacing capability.
30223 \end_layout
30224
30225 \begin_layout Standard
30226 As a special note, you can also use the 
30227 \begin_inset Quotes eld
30228 \end_inset
30229
30230 %def
30231 \begin_inset Quotes erd
30232 \end_inset
30233
30234  construct of Noweb in your chunks to add items to Noweb's identifier cross-refe
30235 rence:
30236 \end_layout
30237
30238 \begin_layout LyX-Code
30239 <<My chunk>>=
30240 \end_layout
30241
30242 \begin_layout LyX-Code
30243 def some_function(args):
30244 \end_layout
30245
30246 \begin_layout LyX-Code
30247    "This is the doc string for this function."
30248 \end_layout
30249
30250 \begin_layout LyX-Code
30251    print "My args: ", args
30252 \end_layout
30253
30254 \begin_layout LyX-Code
30255 @ %def some_function
30256 \end_layout
30257
30258 \begin_layout Standard
30259 For an example of this usage and the resulting cross-reference output, look
30260  at the Literate python program in 
30261 \emph on
30262 LIBDIR/examples/listerrors.lyx
30263 \emph default
30264  which should make this all clear.
30265 \end_layout
30266
30267 \begin_layout Paragraph
30268 Generating the documentation
30269 \end_layout
30270
30271 \begin_layout Standard
30272 At this point you already have a new document file with a proper document
30273  class, and with some code and text on it.
30274  How do I print it? The answer is simple, you select 
30275 \family sans
30276 View\SpecialChar menuseparator
30277 DVI,
30278 \family default
30279  etc.
30280  Just like you would do for a plain document.
30281  No special procedure is required.
30282 \end_layout
30283
30284 \begin_layout Standard
30285 To help orientate you, I will now explain what happens inside \SpecialChar LyX
30286 :
30287 \end_layout
30288
30289 \begin_layout Enumerate
30290 When the 
30291 \family sans
30292 Update\SpecialChar menuseparator
30293 DVI
30294 \family default
30295  menu option is chosen, a \SpecialChar LaTeX
30296  file is generated.
30297  
30298 \end_layout
30299
30300 \begin_deeper
30301 \begin_layout Standard
30302 If the document is of any literate class the generated file will be named
30303  with an extension name defined by the 
30304 \begin_inset Quotes eld
30305 \end_inset
30306
30307 literate
30308 \begin_inset Quotes erd
30309 \end_inset
30310
30311  format (defined in the Preferences panel), otherwise the file will have
30312  the usual 
30313 \family typewriter
30314 .tex
30315 \family default
30316  extension.
30317 \end_layout
30318
30319 \end_deeper
30320 \begin_layout Enumerate
30321 Note that the only difference so far is in the name of the file, no special
30322  processing is required by \SpecialChar LyX
30323 .
30324  Given that you formatted the code using the 
30325 \begin_inset Flex Noun
30326 status collapsed
30327
30328 \begin_layout Plain Layout
30329 Chunk
30330 \end_layout
30331
30332 \end_inset
30333
30334  inset that, by itself, takes care of the business.
30335 \end_layout
30336
30337 \begin_layout Enumerate
30338 If the document is of any literate class \SpecialChar LyX
30339  will then use the internal \SpecialChar LyX
30340  to
30341  Noweb converter, followed by the Noweb to \SpecialChar LaTeX
30342  converter
30343 \begin_inset Foot
30344 status collapsed
30345
30346 \begin_layout Plain Layout
30347 The converters are defined in the 
30348 \family sans
30349 Tools\SpecialChar menuseparator
30350 Preferences
30351 \family default
30352  panel, under the 
30353 \begin_inset Quotes eld
30354 \end_inset
30355
30356 Conversion
30357 \begin_inset Quotes erd
30358 \end_inset
30359
30360  tab.
30361  See section 
30362 \emph on
30363 Converters
30364 \emph default
30365  of the 
30366 \emph on
30367 Customization
30368 \emph default
30369  manual for general information about converters.
30370 \end_layout
30371
30372 \end_inset
30373
30374  to generate the \SpecialChar LaTeX
30375  file.
30376 \end_layout
30377
30378 \begin_deeper
30379 \begin_layout Standard
30380 Otherwise it will just skip this step.
30381 \end_layout
30382
30383 \end_deeper
30384 \begin_layout Enumerate
30385 Finally, \SpecialChar LaTeX
30386  is invoked and the regular post processing continues as in a plain
30387  document.
30388 \end_layout
30389
30390 \begin_layout Standard
30391 Independence from a particular 
30392 \begin_inset Quotes eld
30393 \end_inset
30394
30395 literate tool
30396 \begin_inset Quotes erd
30397 \end_inset
30398
30399  is easily achieved by changing the commands that are run by the various
30400  converters.
30401 \end_layout
30402
30403 \begin_layout Paragraph
30404 Generating the code
30405 \end_layout
30406
30407 \begin_layout Standard
30408 When the build menu option is chosen or the corresponding button in the
30409  toolbar is pressed, a \SpecialChar LaTeX
30410  file is generated just like step 1 above.
30411  Next, \SpecialChar LyX
30412  invokes the 
30413 \family typewriter
30414 Noweb->Program
30415 \family default
30416  converter.
30417  This converter needs to be defined by the user and is not installed by
30418  default, though the Program format is.
30419  This converter (like any other converter) will have two parts:
30420 \end_layout
30421
30422 \begin_layout Enumerate
30423 The converter program itself.
30424  This program performs the conversion from the one format to the other (in
30425  this case, from the Noweb format to the Program pseudo-format).
30426 \end_layout
30427
30428 \begin_layout Enumerate
30429 The error log parser.
30430  This is a program whose sole purpose is to rewrite error messages in a
30431  format that \SpecialChar LyX
30432  understands.
30433  This makes it possible for \SpecialChar LyX
30434  to place error boxes in the right places in
30435  the file buffer.
30436 \end_layout
30437
30438 \begin_layout Standard
30439 The first part, the 
30440 \begin_inset Quotes eld
30441 \end_inset
30442
30443 Converter
30444 \begin_inset Quotes erd
30445 \end_inset
30446
30447  setting, should be set to
30448 \end_layout
30449
30450 \begin_layout LyX-Code
30451
30452 \family typewriter
30453 build-script $$i
30454 \family default
30455  $$r
30456 \end_layout
30457
30458 \begin_layout Standard
30459 This basically means that \SpecialChar LyX
30460  will call 
30461 \begin_inset Quotes eld
30462 \end_inset
30463
30464 build-script
30465 \begin_inset Quotes erd
30466 \end_inset
30467
30468  (a program or script) with the name of the Noweb file (normally a file
30469  in the \SpecialChar LyX
30470  temp directory) and the directory path of the original \SpecialChar LyX
30471  file.
30472  
30473 \end_layout
30474
30475 \begin_layout Standard
30476 This is an implementation of 
30477 \begin_inset Quotes eld
30478 \end_inset
30479
30480 build-script
30481 \begin_inset Quotes erd
30482 \end_inset
30483
30484  that you can place in a directory on your path:
30485 \end_layout
30486
30487 \begin_layout LyX-Code
30488
30489 \family sans
30490 #!/bin/sh
30491 \end_layout
30492
30493 \begin_layout LyX-Code
30494
30495 \family sans
30496 #
30497 \end_layout
30498
30499 \begin_layout LyX-Code
30500
30501 \family sans
30502 notangle -Rbuild-script $1 | env NOWEB_SOURCE=$1 NOWEB_OUTPUT_DIR=$2 sh
30503 \end_layout
30504
30505 \begin_layout Standard
30506 The next part of the converter setting is the 
30507 \begin_inset Quotes eld
30508 \end_inset
30509
30510 Flags
30511 \begin_inset Quotes erd
30512 \end_inset
30513
30514  which is to be set to
30515 \end_layout
30516
30517 \begin_layout LyX-Code
30518
30519 \family typewriter
30520 parselog=$$s/scripts/listerrors
30521 \end_layout
30522
30523 \begin_layout Standard
30524 This will run any errors that are generated by the 
30525 \begin_inset Quotes eld
30526 \end_inset
30527
30528 build-script
30529 \begin_inset Quotes erd
30530 \end_inset
30531
30532  process through the 
30533 \begin_inset Quotes eld
30534 \end_inset
30535
30536 listerrors
30537 \begin_inset Quotes erd
30538 \end_inset
30539
30540  program.
30541 \end_layout
30542
30543 \begin_layout Standard
30544 The build will normally take place in \SpecialChar LyX
30545 's temporary directory, so the files
30546  produced by the conversion will be in that directory.
30547  \SpecialChar LyX
30548  will copy out what it regards as the `main' file, but the 
30549 \family typewriter
30550 Noweb->Program
30551 \family default
30552  conversion may produce several files, and so most of these would then be
30553  deleted when \SpecialChar LyX
30554  was closed.
30555  This is why we pass in the NOWEB_OUTPUT_DIR environment variable so that
30556  the build-script chunk can place the generated files in that location.
30557 \end_layout
30558
30559 \begin_layout Paragraph
30560 Build instructions in the document
30561 \end_layout
30562
30563 \begin_layout Standard
30564 The last piece of the integration between \SpecialChar LyX
30565  and noweb is the 
30566 \begin_inset Quotes eld
30567 \end_inset
30568
30569 build-script
30570 \begin_inset Quotes erd
30571 \end_inset
30572
30573  chunk.
30574  Generally, the instructions for building your program should be embedded
30575  in a chunk of its own.
30576  The noweb-specific 
30577 \begin_inset Quotes eld
30578 \end_inset
30579
30580 build-script
30581 \begin_inset Quotes erd
30582 \end_inset
30583
30584  above uses the notangle command to look for this chunk (called 
30585 \begin_inset Quotes eld
30586 \end_inset
30587
30588 build-script
30589 \begin_inset Quotes erd
30590 \end_inset
30591
30592 ) and runs its contents through 
30593 \begin_inset Quotes eld
30594 \end_inset
30595
30596 sh
30597 \begin_inset Quotes erd
30598 \end_inset
30599
30600 .
30601 \end_layout
30602
30603 \begin_layout Standard
30604 Typically, such a chunk would look something like this:
30605 \end_layout
30606
30607 \begin_layout LyX-Code
30608 <<build-script>>=
30609 \end_layout
30610
30611 \begin_layout LyX-Code
30612 #!/bin/sh
30613 \begin_inset Newline newline
30614 \end_inset
30615
30616 if [ -z "${NOWEB_SOURCE}" ]
30617 \begin_inset Newline newline
30618 \end_inset
30619
30620 then
30621 \end_layout
30622
30623 \begin_layout LyX-Code
30624 NOWEB_SOURCE=myfile.nw
30625 \begin_inset Newline newline
30626 \end_inset
30627
30628 fi
30629 \begin_inset Newline newline
30630 \end_inset
30631
30632 [...
30633  code to extract files ...
30634  use NOWEB_OUTPUT_DIR here ...]
30635 \begin_inset Newline newline
30636 \end_inset
30637
30638 [...
30639  code to compile files ...]
30640 \begin_inset Newline newline
30641 \end_inset
30642
30643 @
30644 \end_layout
30645
30646 \begin_layout Standard
30647 Look in 
30648 \emph on
30649 LIBDIR/examples/listerrors.lyx
30650 \emph default
30651  or in 
30652 \emph on
30653 LIBDIR/examples/Literate.lyx
30654 \emph default
30655  which implement two versions of the 
30656 \begin_inset Quotes eld
30657 \end_inset
30658
30659 listerrors
30660 \begin_inset Quotes erd
30661 \end_inset
30662
30663  program for some illustrations of how all of these pieces go together or
30664  in 
30665 \emph on
30666 LIBDIR/examples/noweb2lyx.lyx.
30667
30668 \emph default
30669  Interestingly, these three files show off the language-indepence of the
30670  \SpecialChar LyX
30671  literate programming support since they are written in Python, C and Perl
30672  respectively.
30673 \end_layout
30674
30675 \begin_layout Subsubsection
30676 Configuring \SpecialChar LyX
30677
30678 \end_layout
30679
30680 \begin_layout Standard
30681 All the Literate Programming support is configured by the 
30682 \family sans
30683 Tools\SpecialChar menuseparator
30684 Preferences
30685 \family default
30686  panel in the 
30687 \begin_inset Quotes eld
30688 \end_inset
30689
30690 File Handling
30691 \begin_inset Quotes erd
30692 \end_inset
30693
30694  tab.
30695  The important parts are:
30696 \end_layout
30697
30698 \begin_layout Description
30699 the
30700 \begin_inset space ~
30701 \end_inset
30702
30703
30704 \begin_inset Quotes eld
30705 \end_inset
30706
30707 NoWeb
30708 \begin_inset Quotes erd
30709 \end_inset
30710
30711
30712 \begin_inset space ~
30713 \end_inset
30714
30715 format Set up via the File Formats tab, this is where the Noweb-specific
30716  pieces are set up.
30717  The 
30718 \family sans
30719 GUI Name
30720 \family default
30721  is set to 
30722 \family typewriter
30723 NoWeb
30724 \family default
30725 , the file extension is set to 
30726 \family typewriter
30727 .nw
30728 \family default
30729 .
30730  This tells \SpecialChar LyX
30731  to create a file with a 
30732 \family typewriter
30733 .nw
30734 \family default
30735  extension in the first step of the conversion process.
30736 \end_layout
30737
30738 \begin_layout Description
30739 the
30740 \begin_inset space ~
30741 \end_inset
30742
30743
30744 \family sans
30745 Program
30746 \family default
30747
30748 \begin_inset space ~
30749 \end_inset
30750
30751 format This is an empty format whose sole purpose is to be the endpoint
30752  of a conversion (which then allows us to set up a converter for it).
30753 \end_layout
30754
30755 \begin_layout Description
30756
30757 \family sans
30758 NoWeb
30759 \family default
30760 ->
30761 \family sans
30762 \SpecialChar LaTeX
30763
30764 \family default
30765  This converter performs the 
30766 \begin_inset Quotes eld
30767 \end_inset
30768
30769 weaving
30770 \begin_inset Quotes erd
30771 \end_inset
30772
30773  of the literate document.
30774  For Noweb, it is set to 
30775 \begin_inset Quotes eld
30776 \end_inset
30777
30778
30779 \family typewriter
30780 noweave -delay -index $$i > $$o
30781 \family default
30782
30783 \begin_inset Quotes erd
30784 \end_inset
30785
30786
30787 \end_layout
30788
30789 \begin_layout Description
30790
30791 \family sans
30792 NoWeb
30793 \family default
30794 ->
30795 \family sans
30796 Program
30797 \family default
30798  This performs the 
30799 \begin_inset Quotes eld
30800 \end_inset
30801
30802 tangling step
30803 \begin_inset Quotes erd
30804 \end_inset
30805
30806 .
30807  As stated above, the Converter is set to 
30808 \begin_inset Quotes eld
30809 \end_inset
30810
30811
30812 \family typewriter
30813 build-script $$i
30814 \family default
30815  $$r
30816 \begin_inset Quotes erd
30817 \end_inset
30818
30819 , with Flags set to
30820 \begin_inset Newline newline
30821 \end_inset
30822
30823
30824 \begin_inset Quotes eld
30825 \end_inset
30826
30827
30828 \family typewriter
30829 parselog=$$s/scripts/listerrors
30830 \family default
30831
30832 \begin_inset Quotes erd
30833 \end_inset
30834
30835 .
30836 \end_layout
30837
30838 \begin_layout Subsubsection
30839 Debug extensions
30840 \end_layout
30841
30842 \begin_layout Standard
30843 There is also a new function implemented in the \SpecialChar LyX
30844  server, the 
30845 \begin_inset Quotes eld
30846 \end_inset
30847
30848 server-goto-file-row" function, to be used with ddd/gdb or other debugger.
30849  
30850 \end_layout
30851
30852 \begin_layout Standard
30853 When debugging code with ddd/gdb, it is possible to invoke a text editor
30854  at the current execution position with a single key stroke.
30855  The default ddd configuration for that is shift-ctrl-V.
30856  It happens that you can define the editor command line invocation in ddd
30857  by accessing the 
30858 \family sans
30859 Edit\SpecialChar menuseparator
30860 Preferences\SpecialChar menuseparator
30861 Helpers
30862 \family default
30863  dialog and changing the "Edit Sources" entry.
30864 \end_layout
30865
30866 \begin_layout Standard
30867 I take advantage of the newly created \SpecialChar LyX
30868  server function and this ddd feature,
30869  and set 
30870 \begin_inset Quotes eld
30871 \end_inset
30872
30873 Edit Sources
30874 \begin_inset Quotes erd
30875 \end_inset
30876
30877  to:
30878 \end_layout
30879
30880 \begin_layout LyX-Code
30881 echo "LYXCMD:monitor:server-goto-file-row:@FILE@ @LINE@" >~/.lyxpipe.in
30882 \end_layout
30883
30884 \begin_layout Standard
30885 With this, whenever you are using ddd and find a point in the program that
30886  you want to edit, you just press shift-ctrl-V (in the ddd window), and
30887  ddd will forward this information to \SpecialChar LyX
30888  through the \SpecialChar LyX
30889  server and then the
30890  \SpecialChar LyX
30891  window will show the same file with the cursor at the same position ddd
30892  was pointing to.
30893  No more guessing or long scrolling to locate a point in the program back
30894  from debugging !
30895 \end_layout
30896
30897 \begin_layout Standard
30898 Note however that you must enable the \SpecialChar LyX
30899  server to get this feature working
30900  (it is disabled by default).
30901  Sec.
30902 \begin_inset space ~
30903 \end_inset
30904
30905
30906 \begin_inset CommandInset ref
30907 LatexCommand ref
30908 nolink "false"
30909 reference "sec:Starting-the-Server"
30910
30911 \end_inset
30912
30913  explains how to do that.
30914 \end_layout
30915
30916 \begin_layout Subsubsection
30917 Toolbar extensions
30918 \end_layout
30919
30920 \begin_layout Standard
30921 There are six new buttons that can be added to your \SpecialChar LyX
30922  toolbar.
30923  Four of these buttons are short cuts to layout styles: 
30924 \family sans
30925 Standard
30926 \family default
30927
30928 \family sans
30929 Section
30930 \family default
30931
30932 \family sans
30933 \SpecialChar LaTeX
30934
30935 \family default
30936 , and 
30937 \family sans
30938 \SpecialChar LyX
30939 -Code
30940 \family default
30941 , one for the custom inset 
30942 \family sans
30943 Chunk
30944 \family default
30945 .
30946  The last one is a short cut to the 
30947 \begin_inset Quotes eld
30948 \end_inset
30949
30950 Build Program
30951 \begin_inset Quotes erd
30952 \end_inset
30953
30954  File menu entry.
30955  
30956 \end_layout
30957
30958 \begin_layout Standard
30959 \SpecialChar LyX
30960  has a range of buttons that are available for tool bar customization.
30961  In my toolbar I like to combine the six short cuts above with two more:
30962  One for 
30963 \family sans
30964 Document
30965 \family default
30966 \SpecialChar menuseparator
30967
30968 \family sans
30969 Update
30970 \family default
30971 \SpecialChar menuseparator
30972
30973 \family sans
30974 DVI
30975 \family default
30976  and the other for 
30977 \family sans
30978 Document\SpecialChar menuseparator
30979 View\SpecialChar menuseparator
30980 DVI
30981 \family default
30982  File menu entries.
30983  Here is how it looks like:
30984 \end_layout
30985
30986 \begin_layout LyX-Code
30987 Toolbar
30988 \end_layout
30989
30990 \begin_layout LyX-Code
30991   Layouts
30992 \end_layout
30993
30994 \begin_layout LyX-Code
30995   Icon "layout Standard"
30996 \end_layout
30997
30998 \begin_layout LyX-Code
30999   Icon "layout Section"
31000 \end_layout
31001
31002 \begin_layout LyX-Code
31003   Icon "layout \SpecialChar LaTeX
31004 "
31005 \end_layout
31006
31007 \begin_layout LyX-Code
31008   Icon "layout \SpecialChar LyX
31009 -Code"
31010 \end_layout
31011
31012 \begin_layout LyX-Code
31013   Icon "flex.insert Chunk"
31014 \end_layout
31015
31016 \begin_layout LyX-Code
31017   Separator
31018 \end_layout
31019
31020 \begin_layout LyX-Code
31021   Icon "buffer-view"
31022 \end_layout
31023
31024 \begin_layout LyX-Code
31025   Icon "buffer-typeset"
31026 \end_layout
31027
31028 \begin_layout LyX-Code
31029   Icon "build-program"
31030 \end_layout
31031
31032 \begin_layout LyX-Code
31033   Separator
31034 \end_layout
31035
31036 \begin_layout LyX-Code
31037 .
31038 \end_layout
31039
31040 \begin_layout LyX-Code
31041 .
31042 \end_layout
31043
31044 \begin_layout LyX-Code
31045 .
31046 \end_layout
31047
31048 \begin_layout LyX-Code
31049 End
31050 \end_layout
31051
31052 \begin_layout Subsubsection
31053 Colors customization
31054 \end_layout
31055
31056 \begin_layout Standard
31057 There are a number of colors in \SpecialChar LyX
31058  that can be customized in 
31059 \family sans
31060 Preferences
31061 \family default
31062 .
31063  One of the things that bothers people is the \SpecialChar LaTeX
31064  font color.
31065  The default color is red, since the chunks uses \SpecialChar LaTeX
31066  font, and there is a lot
31067  of chunks in literate documents, you may get tired of seeing everything
31068  in red.
31069  You can change it by going to the tabs 
31070 \family sans
31071 Look&Feel
31072 \family default
31073
31074 \family sans
31075 Colors.
31076 \end_layout
31077
31078 \begin_layout Standard
31079 The next thing is the visible presence of the newline character in the screen.
31080  You can choose the color of this particular character and make it blend
31081  in the background.
31082  I recommend you choosing a color that is close to the background but not
31083  equal, that way you still can see it is there, but it is not bothering
31084  you anymore.
31085 \end_layout
31086
31087 \begin_layout Subsection
31088 \SpecialChar LyX
31089  and knitr/Sweave
31090 \end_layout
31091
31092 \begin_layout Standard
31093 Support for 
31094 \family sans
31095 knitr
31096 \family default
31097  and 
31098 \family sans
31099 Sweave
31100 \family default
31101  is documented in 
31102 \change_deleted 564990737 1671643409
31103 the 
31104 \emph on
31105 knitr.lyx
31106 \emph default
31107  example file
31108 \change_inserted 564990737 1671643443
31109
31110 \family sans
31111 \lang british
31112 File\SpecialChar menuseparator
31113 Open Example\SpecialChar menuseparator
31114 Modules\SpecialChar menuseparator
31115 Rnw (knitr)
31116 \change_unchanged
31117
31118 \family default
31119 \lang english
31120  and in 
31121 \change_deleted 564990737 1671643461
31122 the Sweave manual (menu 
31123 \family sans
31124 Help\SpecialChar menuseparator
31125 Specific Manuals
31126 \family default
31127 )
31128 \change_inserted 564990737 1671643461
31129
31130 \family sans
31131 \lang british
31132 Help\SpecialChar menuseparator
31133 Specific Manuals\SpecialChar menuseparator
31134 Sweave
31135 \change_unchanged
31136
31137 \family default
31138 \lang english
31139 .
31140 \end_layout
31141
31142 \begin_layout Chapter
31143
31144 \change_deleted 564990737 1671355343
31145 Special features
31146 \end_layout
31147
31148 \begin_layout Standard
31149
31150 \change_deleted 564990737 1671355343
31151 You can do everything with \SpecialChar LyX
31152  that you can do with \SpecialChar LaTeX
31153 .
31154  However, \SpecialChar LyX
31155  cannot support every \SpecialChar LaTeX
31156  feature directly.
31157  But you can always use \SpecialChar TeX
31158  Code.
31159  This chapter shows you some more special things you might want to use.
31160  For other special things you can do with figures, tables, floats, boxes
31161  and notes, have a look at the 
31162 \emph on
31163 Embedded
31164 \begin_inset space ~
31165 \end_inset
31166
31167 Objects
31168 \emph default
31169  manual.
31170 \change_unchanged
31171
31172 \end_layout
31173
31174 \end_body
31175 \end_document