]> git.lyx.org Git - lyx.git/blob - lib/doc/Additional.lyx
AA not longer exists in CTAN; deleting section on AA.
[lyx.git] / lib / doc / Additional.lyx
1 #LyX 2.4 created this file. For more info see https://www.lyx.org/
2 \lyxformat 610
3 \begin_document
4 \begin_header
5 \save_transient_properties true
6 \origin /systemlyxdir/doc/
7 \textclass scrbook
8 \begin_preamble
9 % DO NOT ALTER THIS PREAMBLE!!!
10 %
11 % This preamble is designed to ensure that the manual prints
12 % out as advertised. If you mess with this preamble,
13 % parts of the manual may not print out as expected.  If you
14 % have problems LaTeXing this file, please contact 
15 % the documentation team
16 % email: lyx-docs@lists.lyx.org
17
18 % the pages of the TOC are numbered roman
19 % and a PDF-bookmark for the TOC is added
20 \pagenumbering{roman}
21 \let\myTOC\tableofcontents
22 \renewcommand{\tableofcontents}{%
23  \pdfbookmark[1]{\contentsname}{}
24  \myTOC
25  \cleardoublepage
26  \pagenumbering{arabic}}
27
28 % extra space for tables
29 \newcommand{\extratablespace}[1]{\noalign{\vskip#1}}
30 \end_preamble
31 \options bibliography=totoc,index=totoc,BCOR7.5mm,titlepage,captions=tableheading
32 \use_default_options false
33 \begin_modules
34 logicalmkup
35 theorems-ams
36 theorems-ams-extended
37 multicol
38 shapepar
39 \end_modules
40 \maintain_unincluded_children no
41 \language english
42 \language_package default
43 \inputencoding utf8
44 \fontencoding auto
45 \font_roman "lmodern" "default"
46 \font_sans "lmss" "default"
47 \font_typewriter "lmtt" "default"
48 \font_math "auto" "auto"
49 \font_default_family default
50 \use_non_tex_fonts false
51 \font_sc false
52 \font_roman_osf false
53 \font_sans_osf false
54 \font_typewriter_osf false
55 \font_sf_scale 100 100
56 \font_tt_scale 100 100
57 \use_microtype false
58 \use_dash_ligatures true
59 \graphics default
60 \default_output_format pdf2
61 \output_sync 0
62 \bibtex_command default
63 \index_command default
64 \paperfontsize 12
65 \spacing single
66 \use_hyperref true
67 \pdf_title "LyX's Additional Features manual"
68 \pdf_author "LyX Team"
69 \pdf_subject "LyX's additional features documentation"
70 \pdf_keywords "LyX, Documentation, Additional"
71 \pdf_bookmarks true
72 \pdf_bookmarksnumbered true
73 \pdf_bookmarksopen false
74 \pdf_bookmarksopenlevel 1
75 \pdf_breaklinks false
76 \pdf_pdfborder false
77 \pdf_colorlinks true
78 \pdf_backref false
79 \pdf_pdfusetitle false
80 \pdf_quoted_options "linkcolor=black, citecolor=black, urlcolor=blue, filecolor=blue, pdfpagelayout=OneColumn, pdfnewwindow=true, pdfstartview=XYZ, plainpages=false"
81 \papersize a4
82 \use_geometry false
83 \use_package amsmath 1
84 \use_package amssymb 1
85 \use_package cancel 1
86 \use_package esint 1
87 \use_package mathdots 1
88 \use_package mathtools 1
89 \use_package mhchem 1
90 \use_package stackrel 1
91 \use_package stmaryrd 1
92 \use_package undertilde 1
93 \cite_engine basic
94 \cite_engine_type default
95 \biblio_style plain
96 \use_bibtopic false
97 \use_indices false
98 \paperorientation portrait
99 \suppress_date false
100 \justification true
101 \use_refstyle 0
102 \use_minted 0
103 \use_lineno 0
104 \notefontcolor #0000ff
105 \index Index
106 \shortcut idx
107 \color #008000
108 \end_index
109 \secnumdepth 3
110 \tocdepth 3
111 \paragraph_separation indent
112 \paragraph_indentation default
113 \is_math_indent 1
114 \math_indentation default
115 \math_numbering_side default
116 \quotes_style english
117 \dynamic_quotes 0
118 \papercolumns 1
119 \papersides 2
120 \paperpagestyle headings
121 \tablestyle default
122 \tracking_changes true
123 \output_changes false
124 \change_bars false
125 \postpone_fragile_content false
126 \html_math_output 0
127 \html_css_as_file 0
128 \html_be_strict true
129 \docbook_table_output 0
130 \docbook_mathml_prefix 1
131 \author -712698321 "Jürgen Spitzmüller"
132 \author 177693 "x"
133 \author 5863208 "ab"
134 \author 244031559 "Yuriy"
135 \author 564990737 "John Lyx"
136 \author 630872221 "Jean-Pierre Chrétien" jeanpierre.chretien@free.fr
137 \author 1075283030 "Thibaut"
138 \author 1119979965 "Joel A. Kulesza"
139 \end_header
140
141 \begin_body
142
143 \begin_layout Title
144 Additional \SpecialChar LyX
145  Features
146 \end_layout
147
148 \begin_layout Subtitle
149 Version 2.
150 \change_deleted 630872221 1622909155
151 3
152 \change_inserted 630872221 1622909155
153 4
154 \change_unchanged
155 .x
156 \end_layout
157
158 \begin_layout Author
159 by the \SpecialChar LyX
160  Team
161 \begin_inset Foot
162 status collapsed
163
164 \begin_layout Plain Layout
165 \noindent
166 Principal maintainer of this file is
167 \noun on
168  Richard Kimberly Heck
169 \noun default
170 .
171  If you have comments or error corrections, please send them to the \SpecialChar LyX
172  Documentati
173 on mailing list, 
174 \begin_inset Flex Code
175 status collapsed
176
177 \begin_layout Plain Layout
178 <lyx-docs@lists.lyx.org>
179 \end_layout
180
181 \end_inset
182
183 .
184 \end_layout
185
186 \end_inset
187
188
189 \end_layout
190
191 \begin_layout Standard
192 \begin_inset CommandInset toc
193 LatexCommand tableofcontents
194
195 \end_inset
196
197
198 \end_layout
199
200 \begin_layout Chapter
201 Introduction
202 \end_layout
203
204 \begin_layout Standard
205 This manual is essentially Part II of the 
206 \emph on
207 User's Guide\SpecialChar endofsentence
208
209 \emph default
210  The reason for separating the two documents is simple: the 
211 \emph on
212 User's Guide
213 \emph default
214  is already quite lengthy, and it contains information on all of the basic
215  features one needs to know in order to prepare most documents.
216  However, the \SpecialChar LyX
217  Team has worked to make \SpecialChar LyX
218  extensible through various configuration
219  files and external packages.
220  That means that if you want to support the Fizzwizzle \SpecialChar LaTeX
221  package, you can
222  create a layout file (or module) for it without having to alter \SpecialChar LyX
223  itself.
224  We've already had contributions of several new features this way, and some
225  of them are documented here.
226  There are also some more `advanced' features, such as how to control the
227  presentation of bibliographies and how to work with multi-part documents,
228  that are not covered in the 
229 \emph on
230 User's Guide
231 \emph default
232  and are discussed here.
233 \end_layout
234
235 \begin_layout Standard
236 This manual also documents some special features, like fax support
237 \change_deleted 244031559 1603802929
238 ,
239 \change_inserted 244031559 1603802931
240  and
241 \change_unchanged
242  version control
243 \change_deleted 244031559 1603802954
244 , and SGML support
245 \change_unchanged
246 , which require additional software to work properly.
247  There is also a chapter on \SpecialChar LyX
248 's support for HTML.
249  And lastly, there's a chapter of \SpecialChar LaTeX
250  tools and tips, things you can use to
251  spruce up your documents by directly using the powerful features of \SpecialChar LaTeX
252 .
253  After all, \SpecialChar LyX
254  
255 \emph on
256 is
257 \emph default
258  only WYSIWYM and will only ever interface to some, not all, \SpecialChar LaTeX
259  features.
260 \end_layout
261
262 \begin_layout Standard
263 If you haven't read the 
264 \emph on
265 Introduction
266 \emph default
267  yet, you are definitely in the wrong manual.
268  The 
269 \emph on
270 Introduction
271 \emph default
272  is the first place to go, since it describes the notation and format of
273  all of the manuals.
274  You should also be thoroughly familiar with the 
275 \emph on
276 User's Guide
277 \emph default
278  and all of the basic features of \SpecialChar LyX
279  before attempting to read this one.
280 \end_layout
281
282 \begin_layout Standard
283 Since many of the topics in this manual depend heavily on \SpecialChar LyX
284 's interaction
285  with \SpecialChar LaTeX
286 , this first chapter covers the inner workings of \SpecialChar LyX
287  and how to direct
288  \SpecialChar LyX
289  to generate exactly the \SpecialChar LaTeX
290  code you want.
291  It is obviously for more seasoned \SpecialChar LyX
292  users.
293 \end_layout
294
295 \begin_layout Chapter
296 \SpecialChar LyX
297  and \SpecialChar LaTeX
298
299 \end_layout
300
301 \begin_layout Section
302 How \SpecialChar LyX
303  Uses \SpecialChar LaTeX
304
305 \end_layout
306
307 \begin_layout Standard
308 This chapter is for both \SpecialChar TeX
309 -nicians and the \SpecialChar LaTeX
310 -curious.
311  In it, we'll explain how \SpecialChar LyX
312  and \SpecialChar LaTeX
313  work together to produce printable output.
314  This is the only place in any of the manuals where we assume you know something
315  about \SpecialChar LaTeX
316 .
317 \end_layout
318
319 \begin_layout Standard
320 At one time, \SpecialChar LyX
321  was called a 
322 \begin_inset Quotes eld
323 \end_inset
324
325 WYSIWYM frontend to \SpecialChar LaTeX
326 ,
327 \begin_inset Quotes erd
328 \end_inset
329
330  but that's no longer true.
331  There are frontends to \SpecialChar LaTeX
332  out there.
333 \begin_inset Foot
334 status collapsed
335
336 \begin_layout Plain Layout
337 Some familar ones are \SpecialChar TeX
338 maker and kile, on Linux, and \SpecialChar TeX
339 shop, OSX.
340  There are also the \SpecialChar LaTeX
341  modes for vi and emacs, of course.
342 \end_layout
343
344 \end_inset
345
346  These are basically text editors with the ability to run \SpecialChar LaTeX
347  and mark any
348  errors in the file you're editing.
349  Although \SpecialChar LyX
350  
351 \emph on
352 is
353 \emph default
354  an editor, and it 
355 \emph on
356 does
357 \emph default
358  run \SpecialChar LaTeX
359 , and it also indicates errors in the file, it also does much, much
360  more.
361  For one thing, you don't need to know \SpecialChar LaTeX
362  to use \SpecialChar LyX
363  effectively.
364  And \SpecialChar LyX
365  has added its own extensions to \SpecialChar LaTeX
366 .
367  Try the following sometime: select 
368 \begin_inset Flex Noun
369 status collapsed
370
371 \begin_layout Plain Layout
372 Export\SpecialChar menuseparator
373 LaTeX
374 \end_layout
375
376 \end_inset
377
378  from the 
379 \begin_inset Flex Noun
380 status collapsed
381
382 \begin_layout Plain Layout
383 File
384 \end_layout
385
386 \end_inset
387
388  menu (or 
389 \begin_inset Flex Noun
390 status collapsed
391
392 \begin_layout Plain Layout
393 View\SpecialChar menuseparator
394 Source
395 \begin_inset space ~
396 \end_inset
397
398 Pane
399 \end_layout
400
401 \end_inset
402
403 ), then look at the preamble of the resulting 
404 \begin_inset Flex Code
405 status collapsed
406
407 \begin_layout Plain Layout
408 .tex
409 \end_layout
410
411 \end_inset
412
413  file.
414  You'll notice a variety of new macros defined specifically by \SpecialChar LyX
415 .
416  These macros are defined automatically, according to the features you use
417  in the document.
418 \end_layout
419
420 \begin_layout Standard
421 There are several commands that automatically invoke \SpecialChar LaTeX
422 .
423  They are:
424 \end_layout
425
426 \begin_layout Itemize
427 \begin_inset Flex Noun
428 status collapsed
429
430 \begin_layout Plain Layout
431 Document\SpecialChar menuseparator
432 View
433 \end_layout
434
435 \end_inset
436
437
438 \end_layout
439
440 \begin_layout Itemize
441 \begin_inset Flex Noun
442 status collapsed
443
444 \begin_layout Plain Layout
445 Document\SpecialChar menuseparator
446 Update
447 \end_layout
448
449 \end_inset
450
451
452 \end_layout
453
454 \begin_layout Standard
455 They will only invoke \SpecialChar LaTeX
456  if the file has changed since the last time \SpecialChar LaTeX
457  was
458  run.
459  
460 \end_layout
461
462 \begin_layout Standard
463 When \SpecialChar LyX
464  runs \SpecialChar LaTeX
465  on the file you're editing, it performs these steps:
466 \end_layout
467
468 \begin_layout Enumerate
469 Convert the document to \SpecialChar LaTeX
470  and save to a file with the extension 
471 \begin_inset Flex Code
472 status collapsed
473
474 \begin_layout Plain Layout
475 .tex
476 \end_layout
477
478 \end_inset
479
480  in place of 
481 \begin_inset Flex Code
482 status collapsed
483
484 \begin_layout Plain Layout
485 .lyx
486 \end_layout
487
488 \end_inset
489
490 .
491 \end_layout
492
493 \begin_layout Enumerate
494 Run \SpecialChar LaTeX
495  on the 
496 \begin_inset Flex Code
497 status collapsed
498
499 \begin_layout Plain Layout
500 .tex
501 \end_layout
502
503 \end_inset
504
505  file (maybe several times), and run any other commands (such as 
506 \begin_inset Flex Code
507 status collapsed
508
509 \begin_layout Plain Layout
510 bibtex
511 \end_layout
512
513 \end_inset
514
515  or 
516 \begin_inset Flex Code
517 status collapsed
518
519 \begin_layout Plain Layout
520 makeindex
521 \end_layout
522
523 \end_inset
524
525 ) needed to compile the \SpecialChar LaTeX
526  file.
527 \end_layout
528
529 \begin_layout Enumerate
530 If there are any errors, show the error log.
531 \end_layout
532
533 \begin_layout Standard
534 If you have run \SpecialChar LaTeX
535  using 
536 \begin_inset Flex Noun
537 status collapsed
538
539 \begin_layout Plain Layout
540 View\SpecialChar menuseparator
541 DVI
542 \end_layout
543
544 \end_inset
545
546 , \SpecialChar LyX
547  then runs a DVI viewer to display the DVI-file.
548  If you have used 
549 \begin_inset Flex Noun
550 status collapsed
551
552 \begin_layout Plain Layout
553 View\SpecialChar menuseparator
554 PostScript
555 \end_layout
556
557 \end_inset
558
559 , \SpecialChar LyX
560  performs further steps:
561 \end_layout
562
563 \begin_layout Enumerate
564 Run 
565 \begin_inset Flex Code
566 status collapsed
567
568 \begin_layout Plain Layout
569 dvips
570 \end_layout
571
572 \end_inset
573
574  to convert the DVI file to PostScript.
575 \end_layout
576
577 \begin_layout Enumerate
578 Run a PostScript viewer, such as 
579 \begin_inset Flex Code
580 status collapsed
581
582 \begin_layout Plain Layout
583 ghostview
584 \end_layout
585
586 \end_inset
587
588 , to display the PostScript file.
589 \end_layout
590
591 \begin_layout Standard
592 \SpecialChar LyX
593  does similar things when viewing, or exporting, other formats.
594 \end_layout
595
596 \begin_layout Section
597 Translating \SpecialChar LaTeX
598  files into \SpecialChar LyX
599
600 \end_layout
601
602 \begin_layout Standard
603 You can import a \SpecialChar LaTeX
604  file into \SpecialChar LyX
605  by using the 
606 \begin_inset Flex Noun
607 status collapsed
608
609 \begin_layout Plain Layout
610 File\SpecialChar menuseparator
611 Import\SpecialChar menuseparator
612 LaTeX
613 \end_layout
614
615 \end_inset
616
617  command in \SpecialChar LyX
618 .
619  This will call a program named 
620 \begin_inset Flex Code
621 status collapsed
622
623 \begin_layout Plain Layout
624 tex2lyx
625 \end_layout
626
627 \end_inset
628
629  which will create a file 
630 \begin_inset Flex Code
631 status collapsed
632
633 \begin_layout Plain Layout
634 foo.lyx
635 \end_layout
636
637 \end_inset
638
639  from the file 
640 \begin_inset Flex Code
641 status collapsed
642
643 \begin_layout Plain Layout
644 foo.tex
645 \end_layout
646
647 \end_inset
648
649 .
650  \SpecialChar LyX
651  will then open that file.
652 \begin_inset Foot
653 status collapsed
654
655 \begin_layout Plain Layout
656 \begin_inset Flex Code
657 status collapsed
658
659 \begin_layout Plain Layout
660 tex2lyx
661 \end_layout
662
663 \end_inset
664
665  can also be run from the command line, of course.
666 \end_layout
667
668 \end_inset
669
670
671 \end_layout
672
673 \begin_layout Standard
674 \begin_inset Flex Code
675 status collapsed
676
677 \begin_layout Plain Layout
678 tex2lyx
679 \end_layout
680
681 \end_inset
682
683  will translate most legal \SpecialChar LaTeX
684 , but not everything.
685  It will put things it doesn't understand into \SpecialChar TeX
686  code, so after translating
687  a file with 
688 \begin_inset Flex Code
689 status collapsed
690
691 \begin_layout Plain Layout
692 tex2lyx
693 \end_layout
694
695 \end_inset
696
697 , you can look for \SpecialChar TeX
698  code and hand-edit it until it looks right.
699 \end_layout
700
701 \begin_layout Standard
702 If you don't know what \SpecialChar TeX
703  code is, read the next section.
704 \end_layout
705
706 \begin_layout Section
707 \begin_inset CommandInset label
708 LatexCommand label
709 name "sec:Inserting-TeX-Code"
710
711 \end_inset
712
713 Inserting \SpecialChar TeX
714  Code into \SpecialChar LyX
715  Documents 
716 \end_layout
717
718 \begin_layout Standard
719 Anything you can do in \SpecialChar LaTeX
720  you can do in \SpecialChar LyX
721 , for a very simple reason: You can
722  always insert \SpecialChar TeX
723  code into any \SpecialChar LyX
724  document.
725  \SpecialChar LyX
726  cannot, and will never be able to, display every possible \SpecialChar LaTeX
727  construct.
728  If ever you need to insert \SpecialChar LaTeX
729  commands into your \SpecialChar LyX
730  document, you can use the
731  
732 \begin_inset Flex Code
733 status collapsed
734
735 \begin_layout Plain Layout
736 \SpecialChar TeX
737  Code
738 \end_layout
739
740 \end_inset
741
742  box, which you can insert into your document with 
743 \begin_inset Flex Noun
744 status collapsed
745
746 \begin_layout Plain Layout
747 Insert\SpecialChar menuseparator
748
749 \family sans
750 TeX
751 \family default
752  Code
753 \end_layout
754
755 \end_inset
756
757  or the keyboard shortcut 
758 \begin_inset Info
759 type  "shortcut"
760 arg   "ert-insert"
761 \end_inset
762
763 .
764 \end_layout
765
766 \begin_layout Standard
767 Here's an example of inserting \SpecialChar LaTeX
768  commands in a \SpecialChar LyX
769  document.
770  The code looks like this:
771 \end_layout
772
773 \begin_layout LyX-Code
774
775 \backslash
776 begin{tabular}{ll}
777 \begin_inset Newline newline
778 \end_inset
779
780
781 \backslash
782 begin{minipage}{5cm}
783 \begin_inset Newline newline
784 \end_inset
785
786 This is an example of a minipage environment.
787  You 
788 \begin_inset Newline newline
789 \end_inset
790
791 can put nearly everything in it, even (non-floating) 
792 \begin_inset Newline newline
793 \end_inset
794
795 figures and tables.
796  
797 \begin_inset Newline newline
798 \end_inset
799
800
801 \backslash
802 end{minipage}
803 \begin_inset Newline newline
804 \end_inset
805
806 &
807 \begin_inset Newline newline
808 \end_inset
809
810
811 \backslash
812 begin{minipage}{5cm}
813 \begin_inset Newline newline
814 \end_inset
815
816
817 \backslash
818 begin{verbatim}
819 \begin_inset Newline newline
820 \end_inset
821
822
823 \backslash
824 begin{minipage}{5cm}
825 \begin_inset Newline newline
826 \end_inset
827
828 This ...
829  
830 \begin_inset Newline newline
831 \end_inset
832
833
834 \backslash
835 end{minipage}
836 \begin_inset Newline newline
837 \end_inset
838
839
840 \backslash
841 end{verbatim}
842 \begin_inset Newline newline
843 \end_inset
844
845
846 \backslash
847 end{minipage}
848 \begin_inset Newline newline
849 \end_inset
850
851
852 \backslash
853 end{tabular}
854 \end_layout
855
856 \begin_layout LyX-Code
857
858 \end_layout
859
860 \begin_layout Standard
861 The 
862 \begin_inset Flex Code
863 status collapsed
864
865 \begin_layout Plain Layout
866 \SpecialChar TeX
867  Code
868 \end_layout
869
870 \end_inset
871
872  box containing this text is directly after this paragraph.
873  Those of you reading the manual in \SpecialChar LyX
874  will only see the \SpecialChar TeX
875  code inset.
876  Those reading a printed version of the manuals will see the actual results:
877 \begin_inset VSpace bigskip
878 \end_inset
879
880
881 \end_layout
882
883 \begin_layout Standard
884 \begin_inset ERT
885 status open
886
887 \begin_layout Plain Layout
888
889
890 \backslash
891 begin{tabular}{ll}
892 \end_layout
893
894 \begin_layout Plain Layout
895
896
897 \backslash
898 begin{minipage}{5cm}
899 \end_layout
900
901 \begin_layout Plain Layout
902
903 This is an example of a minipage environment.
904  You can put nearly everything in it, even (non-floating) figures and tables.
905  
906 \end_layout
907
908 \begin_layout Plain Layout
909
910
911 \backslash
912 end{minipage}
913 \end_layout
914
915 \begin_layout Plain Layout
916
917 &
918 \end_layout
919
920 \begin_layout Plain Layout
921
922
923 \backslash
924 begin{minipage}{5cm}
925 \end_layout
926
927 \begin_layout Plain Layout
928
929
930 \backslash
931 begin{verbatim}
932 \end_layout
933
934 \begin_layout Plain Layout
935
936
937 \backslash
938 begin{minipage}{5cm}
939 \end_layout
940
941 \begin_layout Plain Layout
942
943 This ...
944  
945 \end_layout
946
947 \begin_layout Plain Layout
948
949
950 \backslash
951 end{minipage}
952 \end_layout
953
954 \begin_layout Plain Layout
955
956
957 \backslash
958 end{verbatim}
959 \end_layout
960
961 \begin_layout Plain Layout
962
963
964 \backslash
965 end{minipage}
966 \end_layout
967
968 \begin_layout Plain Layout
969
970
971 \backslash
972 end{tabular}
973 \end_layout
974
975 \end_inset
976
977
978 \begin_inset VSpace bigskip
979 \end_inset
980
981
982 \end_layout
983
984 \begin_layout Standard
985 In addition to using \SpecialChar TeX
986  code, you can also create a separate file containing
987  some complex \SpecialChar LaTeX
988  structure and then use 
989 \begin_inset Flex Noun
990 status collapsed
991
992 \begin_layout Plain Layout
993 Insert\SpecialChar menuseparator
994 Child
995 \begin_inset space ~
996 \end_inset
997
998 Document
999 \end_layout
1000
1001 \end_inset
1002
1003  to include your file (you should select the type 
1004 \begin_inset Flex Code
1005 status collapsed
1006
1007 \begin_layout Plain Layout
1008 Input
1009 \end_layout
1010
1011 \end_inset
1012
1013 ).
1014  We recommend that you only do this if you have a 
1015 \begin_inset Flex Code
1016 status collapsed
1017
1018 \begin_layout Plain Layout
1019 .tex
1020 \end_layout
1021
1022 \end_inset
1023
1024  file which you 
1025 \emph on
1026 know
1027 \emph default
1028  works already.
1029  Otherwise, you'll have a big job tracking down \SpecialChar LaTeX
1030  errors.
1031 \end_layout
1032
1033 \begin_layout Standard
1034 There are a few last points to emphasize:
1035 \end_layout
1036
1037 \begin_layout Itemize
1038 \SpecialChar LyX
1039  
1040 \emph on
1041 does not
1042 \emph default
1043  check if your \SpecialChar LaTeX
1044  code is correct.
1045 \end_layout
1046
1047 \begin_layout Itemize
1048 Beware of reinventing the wheel.
1049 \end_layout
1050
1051 \begin_layout Standard
1052 On that last point, \SpecialChar LyX
1053  does have quite a few features tucked into it, and
1054  more are coming.
1055  Be sure to check the manuals to make sure that \SpecialChar LyX
1056  doesn't have such-and-such
1057  feature before you decide you have to do it by hand.
1058  Moreover, there are numerous \SpecialChar LaTeX
1059  packages out there to do all sorts of things,
1060  from labels to envelopes to fancy multipage tables.
1061  Check out 
1062 \change_inserted 244031559 1603815732
1063
1064 \begin_inset CommandInset href
1065 LatexCommand href
1066 name "CTAN"
1067 target "https://www.ctan.org/"
1068 literal "false"
1069
1070 \end_inset
1071
1072
1073 \change_deleted 244031559 1603815732
1074
1075 \begin_inset CommandInset href
1076 LatexCommand href
1077 name "CTAN"
1078 target "http://www.ctan.org/"
1079 literal "false"
1080
1081 \end_inset
1082
1083
1084 \change_unchanged
1085  for details.
1086 \end_layout
1087
1088 \begin_layout Standard
1089 If you do need to do some wild and fancy things within your document, be
1090  sure to check out a good \SpecialChar LaTeX
1091  book for assistance.
1092  There are a number of them listed in the bibliography of the 
1093 \emph on
1094 User's Guide
1095 \emph default
1096 .
1097 \end_layout
1098
1099 \begin_layout Section
1100 \SpecialChar LyX
1101  and the \SpecialChar LaTeX
1102  Preamble
1103 \end_layout
1104
1105 \begin_layout Subsection
1106 About the \SpecialChar LaTeX
1107  Preamble
1108 \end_layout
1109
1110 \begin_layout Standard
1111 If you already know \SpecialChar LaTeX
1112 , there is no need to explain here what the preamble
1113  is good for.
1114  If you don't, the following will give you some ideas—we recommend again
1115  that you consult a \SpecialChar LaTeX
1116  book for further information.
1117  In any case, you should read the points below, because they explain what
1118  you can do and what you don't need to do in the \SpecialChar LaTeX
1119  preamble of a \SpecialChar LyX
1120  document.
1121 \end_layout
1122
1123 \begin_layout Standard
1124 The \SpecialChar LaTeX
1125  preamble comes at the very beginning of a document, 
1126 \emph on
1127 before
1128 \emph default
1129  the text.
1130  It serves to:
1131 \end_layout
1132
1133 \begin_layout Itemize
1134 Declare the document class.
1135  
1136 \begin_inset Newline newline
1137 \end_inset
1138
1139 \SpecialChar LyX
1140  already does this for you.
1141  If you're a seasoned \SpecialChar LaTeX
1142 -nician, and you have a custom document class you
1143  want to use, check out the 
1144 \emph on
1145 Customization Manual
1146 \emph default
1147  for information on how to make \SpecialChar LyX
1148  interface to it.
1149 \end_layout
1150
1151 \begin_layout Itemize
1152 Declare the usage of packages.
1153  
1154 \begin_inset Newline newline
1155 \end_inset
1156
1157 \SpecialChar LaTeX
1158  packages provide special commands, which are only available within a document
1159  when the package has been declared in the preamble.
1160  In addition to providing special commands, the inclusion of a package can
1161  change the document.
1162  For example, the package 
1163 \begin_inset Flex Code
1164 status collapsed
1165
1166 \begin_layout Plain Layout
1167 indentfirst
1168 \end_layout
1169
1170 \end_inset
1171
1172  forces all paragraphs to be indented.
1173  There are other packages for labels, envelopes, margins, etc.
1174  
1175 \end_layout
1176
1177 \begin_layout Itemize
1178 Set counters, variables, lengths and widths.
1179  
1180 \begin_inset Newline newline
1181 \end_inset
1182
1183 There are several \SpecialChar LaTeX
1184  counters and variables that 
1185 \emph on
1186 must
1187 \emph default
1188  be set globally from within the preamble in order to have the desired effect.
1189  (There are variables that you can set and reset inside the document, too.)
1190  Margins are a good example of something that must be set in the preamble.
1191  Another example is the label format for lists.
1192  You can actually set these just about anywhere, but it's best to do it
1193  just once, inside the preamble.
1194 \end_layout
1195
1196 \begin_layout Itemize
1197 Declare user defined commands (with 
1198 \begin_inset Flex Code
1199 status collapsed
1200
1201 \begin_layout Plain Layout
1202
1203 \backslash
1204 newcommand
1205 \end_layout
1206
1207 \end_inset
1208
1209  or 
1210 \begin_inset Flex Code
1211 status collapsed
1212
1213 \begin_layout Plain Layout
1214
1215 \backslash
1216 renewcommand
1217 \end_layout
1218
1219 \end_inset
1220
1221 ).
1222 \begin_inset Newline newline
1223 \end_inset
1224
1225 These are abbreviations for \SpecialChar LaTeX
1226  commands which appear very often inside a document.
1227  Although the preamble is a good place to declare such commands, they 
1228 \emph on
1229 can
1230 \emph default
1231  be declared anywhere (before they are used for the first time, of course).
1232  This can be useful if there is a lot of raw \SpecialChar LaTeX
1233  code in your document, which
1234  normally should not be the case.
1235 \end_layout
1236
1237 \begin_layout Standard
1238 \SpecialChar LyX
1239  adds its own set of definitions to the preamble of the 
1240 \begin_inset Flex Code
1241 status collapsed
1242
1243 \begin_layout Plain Layout
1244 .tex
1245 \end_layout
1246
1247 \end_inset
1248
1249  file it produces.
1250  This makes \SpecialChar LaTeX
1251  files generated by \SpecialChar LyX
1252  portable.
1253 \end_layout
1254
1255 \begin_layout Subsection
1256 Changing the Preamble
1257 \end_layout
1258
1259 \begin_layout Standard
1260 The commands which \SpecialChar LyX
1261  adds to the preamble of a \SpecialChar LaTeX
1262  file are fixed; you can't
1263  change them without patching \SpecialChar LyX
1264  itself.
1265  You can, however, add your own stuff to the preamble by selecting 
1266 \begin_inset Flex Noun
1267 status collapsed
1268
1269 \begin_layout Plain Layout
1270 \SpecialChar LaTeX
1271
1272 \begin_inset space ~
1273 \end_inset
1274
1275 Preamble
1276 \end_layout
1277
1278 \end_inset
1279
1280  in the 
1281 \begin_inset Flex Noun
1282 status collapsed
1283
1284 \begin_layout Plain Layout
1285 Document\SpecialChar menuseparator
1286 Settings
1287 \end_layout
1288
1289 \end_inset
1290
1291  dialog.
1292  \SpecialChar LyX
1293  adds anything in the 
1294 \begin_inset Flex Noun
1295 status collapsed
1296
1297 \begin_layout Plain Layout
1298 Preamble
1299 \end_layout
1300
1301 \end_inset
1302
1303  dialog to its own built-in preamble.
1304  Before adding your own declarations in the preamble, you should make sure
1305  that \SpecialChar LyX
1306  doesn't already support what you want to do.
1307  (Remember what we said about reinventing the wheel?) Also, 
1308 \emph on
1309 make sure your preamble code is correct
1310 \emph default
1311 .
1312  \SpecialChar LyX
1313  doesn't check it for you.
1314  If there is an error, you're likely to get an error like 
1315 \begin_inset Quotes eld
1316 \end_inset
1317
1318
1319 \begin_inset Flex Code
1320 status collapsed
1321
1322 \begin_layout Plain Layout
1323 Missing 
1324 \backslash
1325 begin{document}
1326 \end_layout
1327
1328 \end_inset
1329
1330
1331 \begin_inset Quotes erd
1332 \end_inset
1333
1334 .
1335  If you see this error, check your preamble.
1336 \end_layout
1337
1338 \begin_layout Subsection
1339 Examples
1340 \end_layout
1341
1342 \begin_layout Standard
1343 Here are some examples of what you can add to a preamble, and what they
1344  do.
1345 \end_layout
1346
1347 \begin_layout Subsubsection
1348 Example #1: Offsets
1349 \end_layout
1350
1351 \begin_layout Standard
1352 There are two variables under \SpecialChar LaTeX
1353  that control page position: 
1354 \begin_inset Flex Code
1355 status collapsed
1356
1357 \begin_layout Plain Layout
1358
1359 \backslash
1360 hoffset
1361 \end_layout
1362
1363 \end_inset
1364
1365  and 
1366 \begin_inset Flex Code
1367 status collapsed
1368
1369 \begin_layout Plain Layout
1370
1371 \backslash
1372 voffset
1373 \end_layout
1374
1375 \end_inset
1376
1377 .
1378  Their names should be self-explanatory.
1379  These variables are useful if you think for a moment about computer labels.
1380  Sometimes, the size of a print medium and the area of the medium that you
1381  can actually print on aren't the same.
1382  This is where 
1383 \begin_inset Flex Code
1384 status collapsed
1385
1386 \begin_layout Plain Layout
1387
1388 \backslash
1389 hoffset
1390 \end_layout
1391
1392 \end_inset
1393
1394  and 
1395 \begin_inset Flex Code
1396 status collapsed
1397
1398 \begin_layout Plain Layout
1399
1400 \backslash
1401 voffset
1402 \end_layout
1403
1404 \end_inset
1405
1406  come in.
1407 \end_layout
1408
1409 \begin_layout Standard
1410 The default values for 
1411 \begin_inset Flex Code
1412 status collapsed
1413
1414 \begin_layout Plain Layout
1415
1416 \backslash
1417 hoffset
1418 \end_layout
1419
1420 \end_inset
1421
1422  and 
1423 \begin_inset Flex Code
1424 status collapsed
1425
1426 \begin_layout Plain Layout
1427
1428 \backslash
1429 voffset
1430 \end_layout
1431
1432 \end_inset
1433
1434  are both 0
1435 \begin_inset space \thinspace{}
1436 \end_inset
1437
1438 points, i.
1439 \begin_inset space \thinspace{}
1440 \end_inset
1441
1442 e.
1443 \begin_inset space \space{}
1444 \end_inset
1445
1446 the page isn't shifted.
1447  Unfortunately, some DVI drivers always seem to shift the page.
1448  We have no idea why, or why the sysadmin hasn't fixed such behavior.
1449  If you're using \SpecialChar LyX
1450  on a system that you don't personally maintain, and your
1451  sysadmin is a doofus, 
1452 \begin_inset Flex Code
1453 status collapsed
1454
1455 \begin_layout Plain Layout
1456
1457 \backslash
1458 hoffset
1459 \end_layout
1460
1461 \end_inset
1462
1463  and 
1464 \begin_inset Flex Code
1465 status collapsed
1466
1467 \begin_layout Plain Layout
1468
1469 \backslash
1470 voffset
1471 \end_layout
1472
1473 \end_inset
1474
1475  can save the day.
1476  Suppose your left and top margins are always 0.5
1477 \begin_inset space \thinspace{}
1478 \end_inset
1479
1480 inches too big.
1481  You can add this to the preamble:
1482 \end_layout
1483
1484 \begin_layout LyX-Code
1485
1486 \backslash
1487 setlength{
1488 \backslash
1489 hoffset}{-0.5 in}
1490 \end_layout
1491
1492 \begin_layout LyX-Code
1493
1494 \backslash
1495 setlength{
1496 \backslash
1497 voffset}{-0.5 in}
1498 \end_layout
1499
1500 \begin_layout Standard
1501 and your margins should now be correct.
1502 \end_layout
1503
1504 \begin_layout Subsubsection
1505 Example #2: Labels
1506 \end_layout
1507
1508 \begin_layout Standard
1509 Speaking of labels, suppose you wanted to print out a bunch of address labels.
1510  There's a rather nice package, available at your nearest CTAN archive,
1511  for printing sheets of labels: 
1512 \begin_inset Flex Code
1513 status collapsed
1514
1515 \begin_layout Plain Layout
1516 labels.sty
1517 \end_layout
1518
1519 \end_inset
1520
1521 .
1522  Now, your system may not have this package installed by default.
1523  We leave that up to you to check.
1524  You'll also want to read the documentation for it; we're not going to do
1525  that for you.
1526  Since this is an example, however, we'll give you an example of how you
1527  use this package.
1528 \end_layout
1529
1530 \begin_layout Standard
1531 First, make sure you're using the 
1532 \begin_inset Flex Code
1533 status collapsed
1534
1535 \begin_layout Plain Layout
1536 article
1537 \end_layout
1538
1539 \end_inset
1540
1541  document class.
1542  Next, you need to put the following in your preamble:
1543 \end_layout
1544
1545 \begin_layout LyX-Code
1546
1547 \backslash
1548 usepackage{labels}
1549 \end_layout
1550
1551 \begin_layout LyX-Code
1552
1553 \backslash
1554 LabelCols=3
1555 \end_layout
1556
1557 \begin_layout LyX-Code
1558
1559 \backslash
1560 LabelRows=7
1561 \end_layout
1562
1563 \begin_layout LyX-Code
1564
1565 \backslash
1566 LeftBorder=8mm
1567 \end_layout
1568
1569 \begin_layout LyX-Code
1570
1571 \backslash
1572 RightBorder=8mm
1573 \end_layout
1574
1575 \begin_layout LyX-Code
1576
1577 \backslash
1578 TopBorder=9mm
1579 \end_layout
1580
1581 \begin_layout LyX-Code
1582
1583 \backslash
1584 BottomBorder=2mm
1585 \end_layout
1586
1587 \begin_layout Standard
1588 This sets things up for Avery label sheets, stock #5360.
1589  You're now ready to print labels, but you'll need to insert \SpecialChar LaTeX
1590  code, placing
1591  the commands 
1592 \begin_inset Flex Code
1593 status collapsed
1594
1595 \begin_layout Plain Layout
1596
1597 \backslash
1598 begin{labels}
1599 \end_layout
1600
1601 \end_inset
1602
1603  and 
1604 \begin_inset Flex Code
1605 status collapsed
1606
1607 \begin_layout Plain Layout
1608
1609 \backslash
1610 end{labels}
1611 \end_layout
1612
1613 \end_inset
1614
1615  around each label text.
1616  This and other special features of 
1617 \begin_inset Flex Code
1618 status collapsed
1619
1620 \begin_layout Plain Layout
1621 labels.sty
1622 \end_layout
1623
1624 \end_inset
1625
1626  are explained in its documentation.
1627 \end_layout
1628
1629 \begin_layout Standard
1630 Someday, someone may write a \SpecialChar LyX
1631  layout file to support this package directly.
1632  Maybe that someone is you.
1633 \end_layout
1634
1635 \begin_layout Subsubsection
1636 Example #3: Paragraph Indentation
1637 \end_layout
1638
1639 \begin_layout Standard
1640 Americans are trained to indent the first line of 
1641 \emph on
1642 every
1643 \emph default
1644  paragraph.
1645  As with all of their other weird quirks, most Americans will whine and
1646  moan until they can have their way and indent the first line of all paragraphs.
1647  (Yes, we're joking.
1648  (We are?) 
1649 \emph on
1650 Yeah
1651 \emph default
1652 , we are.)
1653 \end_layout
1654
1655 \begin_layout Standard
1656 Of course, this behavior isn't standard typography.
1657  In books, you typically only indent the first line of a paragraph 
1658 \emph on
1659 if
1660 \emph default
1661  it follows another one.
1662  The idea behind indenting the first line of a paragraph is to distinguish
1663  neighboring paragraphs from one another.
1664  If there is no previous paragraph—for example, if it follows a figure or
1665  is the first paragraph in a section—then there is no need for indentation.
1666  
1667 \end_layout
1668
1669 \begin_layout Standard
1670 If you're a typical American (we're still joking!), though, you don't care
1671  about such esoteric things; you want your indentation! Add this to the
1672  preamble:
1673 \end_layout
1674
1675 \begin_layout LyX-Code
1676
1677 \backslash
1678 usepackage{indentfirst}
1679 \end_layout
1680
1681 \begin_layout Standard
1682 If your \SpecialChar TeX
1683  distribution isn't braindead, you'll have this package, and all
1684  of your paragraphs will get the indentation the Founding Fathers intended
1685  they should have.
1686 \end_layout
1687
1688 \begin_layout Subsubsection
1689 Example #4: This Document
1690 \end_layout
1691
1692 \begin_layout Standard
1693 You can also check out the preamble of this document to get an idea of some
1694  of the advanced things you can do.
1695 \end_layout
1696
1697 \begin_layout Section
1698 \SpecialChar LyX
1699  and \SpecialChar LaTeX
1700  Errors
1701 \end_layout
1702
1703 \begin_layout Standard
1704 When \SpecialChar LyX
1705  calls \SpecialChar LaTeX
1706 , it tells \SpecialChar LaTeX
1707  to blithely ignore any errors and keep going.
1708  It then uses the logfile from the \SpecialChar LaTeX
1709  run to do a post-mortem.
1710  After analyzing the logfile, \SpecialChar LyX
1711  displays a dialog listing the errors.
1712  Clicking on any one of them will take you to the position in your \SpecialChar LyX
1713  file
1714  where the error occurred.
1715 \begin_inset Foot
1716 status collapsed
1717
1718 \begin_layout Plain Layout
1719 Well, usually.
1720  Analyzing the logfile is a tough job, and \SpecialChar LyX
1721  doesn't always go to the right
1722  line.
1723  There are also cases where \SpecialChar LaTeX
1724  reports the error on one line, but the actual
1725  error is earlier.
1726  This is not unlike forgetting a closing brace in a program: You'll get
1727  an error, but only later.
1728 \end_layout
1729
1730 \end_inset
1731
1732
1733 \end_layout
1734
1735 \begin_layout Standard
1736 Some folks also like to look at the log file directly: It is available from
1737  
1738 \begin_inset Flex Noun
1739 status collapsed
1740
1741 \begin_layout Plain Layout
1742 Document\SpecialChar menuseparator
1743 LaTeX
1744 \begin_inset space ~
1745 \end_inset
1746
1747 Log
1748 \end_layout
1749
1750 \end_inset
1751
1752 .
1753  There are some fairly common error messages and warnings.
1754  We'll cover those here.
1755  You should look at a good \SpecialChar LaTeX
1756  book for a complete listing.
1757 \end_layout
1758
1759 \begin_layout Itemize
1760 \begin_inset Flex Code
1761 status collapsed
1762
1763 \begin_layout Plain Layout
1764 LaTeX Warning
1765 \end_layout
1766
1767 \end_inset
1768
1769
1770 \begin_inset Newline newline
1771 \end_inset
1772
1773 Anything beginning with these words is a warning message for the purpose
1774  of 
1775 \begin_inset Quotes eld
1776 \end_inset
1777
1778 debugging
1779 \begin_inset Quotes erd
1780 \end_inset
1781
1782  the \SpecialChar LaTeX
1783  code itself.
1784  You'll get messages like this if you added or changed cross-references
1785  or bibliography entries, in which case, \SpecialChar LaTeX
1786  is trying to tell you that you
1787  need to make another run.
1788  You can by-and-large ignore these.
1789 \end_layout
1790
1791 \begin_layout Itemize
1792 \begin_inset Flex Code
1793 status collapsed
1794
1795 \begin_layout Plain Layout
1796 LaTeX Font Warning
1797 \end_layout
1798
1799 \end_inset
1800
1801
1802 \begin_inset Newline newline
1803 \end_inset
1804
1805 Another warning message, this time about fonts which \SpecialChar LaTeX
1806  couldn't find.
1807  The rest of the message will often say something about a replacement font
1808  that \SpecialChar LaTeX
1809  used.
1810  You can safely ignore these, too.
1811 \end_layout
1812
1813 \begin_layout Itemize
1814 \begin_inset Flex Code
1815 status collapsed
1816
1817 \begin_layout Plain Layout
1818 Overfull 
1819 \backslash
1820 hbox
1821 \end_layout
1822
1823 \end_inset
1824
1825
1826 \begin_inset Newline newline
1827 \end_inset
1828
1829 \SpecialChar LaTeX
1830  absolutely 
1831 \emph on
1832 loves
1833 \emph default
1834  to spew these out.
1835  It seems to generate at least one of these messages for just about any
1836  document you write.
1837  They are warnings about lines that were too long and run past the right
1838  margin.
1839  This happens if \SpecialChar LaTeX
1840  does not find a reasonable way to break the lines (notoriously
1841  often with typewriter font, since this does not allow for automatic break
1842  points).
1843  In many cases, this is unnoticeable in the final output.
1844  (It can be just a point or two.) Sometimes, however, the lines run rather
1845  visibly into the margin; something you will not want to have in your final
1846  print.
1847  
1848 \begin_inset Newline newline
1849 \end_inset
1850
1851 There are several global ways to try to minimize the overfull lines.
1852  Clicking 
1853 \family sans
1854 Enable micro-typographic extensions
1855 \family default
1856  in 
1857 \family sans
1858 Document\SpecialChar menuseparator
1859 Settings\SpecialChar menuseparator
1860 Fonts
1861 \family default
1862  might already improve things a lot.
1863  Furthermore, \SpecialChar LaTeX
1864  code such as the following in 
1865 \family sans
1866 Document\SpecialChar menuseparator
1867 Settings\SpecialChar menuseparator
1868 Preamble
1869 \family default
1870  usually reduces the overfull lines drastically (we use this in the preamble
1871  of this document):
1872 \end_layout
1873
1874 \begin_deeper
1875 \begin_layout LyX-Code
1876
1877 \backslash
1878 tolerance 1414
1879 \begin_inset Newline newline
1880 \end_inset
1881
1882
1883 \backslash
1884 hbadness 1414
1885 \begin_inset Newline newline
1886 \end_inset
1887
1888
1889 \backslash
1890 emergencystretch 1.5em
1891 \begin_inset Newline newline
1892 \end_inset
1893
1894
1895 \backslash
1896 hfuzz 0.3pt
1897 \end_layout
1898
1899 \begin_layout Standard
1900 In some cases, however, you eventually have to rewrite the text to get the
1901  line breaking right.
1902 \begin_inset Foot
1903 status collapsed
1904
1905 \begin_layout Plain Layout
1906 For more information, see 
1907 \begin_inset Flex URL
1908 status open
1909
1910 \begin_layout Plain Layout
1911
1912 http://www.tex.ac.uk/FAQ-overfull.html
1913 \end_layout
1914
1915 \end_inset
1916
1917
1918 \end_layout
1919
1920 \end_inset
1921
1922
1923 \end_layout
1924
1925 \begin_layout Standard
1926 In any case, you should check the respective lines, at least for the final
1927  version of your document.
1928  Your eyes will tell you if there's a problem with something that's too
1929  wide.
1930 \begin_inset Foot
1931 status collapsed
1932
1933 \begin_layout Plain Layout
1934 You can also enable the `draft' option in 
1935 \begin_inset Flex Noun
1936 status collapsed
1937
1938 \begin_layout Plain Layout
1939 Document\SpecialChar menuseparator
1940 Settings
1941 \end_layout
1942
1943 \end_inset
1944
1945 , and then \SpecialChar LaTeX
1946  will draw a black box in the margin of lines that are overfull.
1947 \end_layout
1948
1949 \end_inset
1950
1951  
1952 \end_layout
1953
1954 \end_deeper
1955 \begin_layout Itemize
1956 \begin_inset Flex Code
1957 status collapsed
1958
1959 \begin_layout Plain Layout
1960 Underfull 
1961 \backslash
1962 hbox
1963 \end_layout
1964
1965 \end_inset
1966
1967
1968 \begin_inset Newline newline
1969 \end_inset
1970
1971 Not quite as common as its cousin.
1972  This happens again if \SpecialChar LaTeX
1973  does not find a reasonable break point and consequently
1974  generates too loose lines.
1975  As with the overfull lines, you should check if this is a visible problem.
1976 \end_layout
1977
1978 \begin_layout Itemize
1979 \begin_inset Flex Code
1980 status collapsed
1981
1982 \begin_layout Plain Layout
1983 Overfull 
1984 \backslash
1985 vbox
1986 \end_layout
1987
1988 \end_inset
1989
1990  and 
1991 \begin_inset Flex Code
1992 status collapsed
1993
1994 \begin_layout Plain Layout
1995 Underfull 
1996 \backslash
1997 vbox
1998 \end_layout
1999
2000 \end_inset
2001
2002
2003 \begin_inset Newline newline
2004 \end_inset
2005
2006 Warnings about troubles breaking the page.
2007  Once again, just look at the output.
2008  Your eyes will tell you where something has gone wrong.
2009 \end_layout
2010
2011 \begin_layout Itemize
2012 \begin_inset Flex Code
2013 status collapsed
2014
2015 \begin_layout Plain Layout
2016 LaTeX Error: File 
2017 \begin_inset Quotes els
2018 \end_inset
2019
2020 Xxxx
2021 \begin_inset Quotes ers
2022 \end_inset
2023
2024  not found
2025 \end_layout
2026
2027 \end_inset
2028
2029
2030 \begin_inset Newline newline
2031 \end_inset
2032
2033 The file 
2034 \begin_inset Quotes eld
2035 \end_inset
2036
2037 Xxxx
2038 \begin_inset Quotes erd
2039 \end_inset
2040
2041  isn't installed on this system.
2042  This usually appears because some package your document needs isn't installed.
2043  If you didn't touch the preamble or didn't use the 
2044 \begin_inset Flex Code
2045 status collapsed
2046
2047 \begin_layout Plain Layout
2048
2049 \backslash
2050 usepackage{}
2051 \end_layout
2052
2053 \end_inset
2054
2055  command, then one of the packages \SpecialChar LyX
2056  tried to load is missing.
2057  Use 
2058 \begin_inset Flex Noun
2059 status collapsed
2060
2061 \begin_layout Plain Layout
2062 Help\SpecialChar menuseparator
2063 \SpecialChar LaTeX
2064  Configuration
2065 \end_layout
2066
2067 \end_inset
2068
2069  to get a list of packages that \SpecialChar LyX
2070  knows about.
2071  This file is updated whenever you reconfigure \SpecialChar LyX
2072  (using 
2073 \begin_inset Flex Noun
2074 status collapsed
2075
2076 \begin_layout Plain Layout
2077 Tools\SpecialChar menuseparator
2078 Reconfigure
2079 \end_layout
2080
2081 \end_inset
2082
2083 ) and tells you which packages have been detected and what they do.
2084 \begin_inset Newline newline
2085 \end_inset
2086
2087 If you did use the 
2088 \begin_inset Flex Code
2089 status collapsed
2090
2091 \begin_layout Plain Layout
2092
2093 \backslash
2094 usepackage{}
2095 \end_layout
2096
2097 \end_inset
2098
2099  command and the package in question isn't installed, then you'll need to
2100  install it yourself.
2101 \end_layout
2102
2103 \begin_layout Itemize
2104 \begin_inset Flex Code
2105 status collapsed
2106
2107 \begin_layout Plain Layout
2108 LaTeX Error: Unknown option
2109 \end_layout
2110
2111 \end_inset
2112
2113
2114 \begin_inset Newline newline
2115 \end_inset
2116
2117 Error messages beginning with this are trying to tell you that you specified
2118  a bad or undefined option to a package.
2119  Check the package's documentation.
2120 \end_layout
2121
2122 \begin_layout Itemize
2123 \begin_inset Flex Code
2124 status collapsed
2125
2126 \begin_layout Plain Layout
2127 Undefined control sequence
2128 \end_layout
2129
2130 \end_inset
2131
2132
2133 \begin_inset Newline newline
2134 \end_inset
2135
2136 If you've inserted \SpecialChar LaTeX
2137  code into your document, but made a typo, you'll get
2138  one of these.
2139  You may have forgotten to load a package.
2140  In any case, this error message usually means that you used an undefined
2141  command.
2142  
2143 \end_layout
2144
2145 \begin_layout Standard
2146 There are other error and warning messages.
2147  Some are self-explanatory.
2148  These are usually \SpecialChar LaTeX
2149  messages.
2150  Others are downright cryptic.
2151  These are usually \SpecialChar TeX
2152  error messages, and we really have 
2153 \emph on
2154 no clue
2155 \emph default
2156  what they mean or how to decipher them.
2157  No-one does.
2158 \end_layout
2159
2160 \begin_layout Standard
2161 There's a general sequence you should follow if you get error messages:
2162 \end_layout
2163
2164 \begin_layout Enumerate
2165 Look at the \SpecialChar LaTeX
2166  code you inserted for typos.
2167 \end_layout
2168
2169 \begin_layout Enumerate
2170 If there are no typos, check that you used the command(s) correctly.
2171 \end_layout
2172
2173 \begin_layout Enumerate
2174 If you get a bunch of error boxes piled up at the very top of the document—and
2175  especially if you see a 
2176 \begin_inset Quotes eld
2177 \end_inset
2178
2179
2180 \begin_inset Flex Code
2181 status collapsed
2182
2183 \begin_layout Plain Layout
2184 Missing 
2185 \backslash
2186 begin{document}
2187 \end_layout
2188
2189 \end_inset
2190
2191
2192 \begin_inset Quotes erd
2193 \end_inset
2194
2195  error—it means that there are errors in the preamble.
2196  Start debugging your preamble.
2197 \end_layout
2198
2199 \begin_layout Enumerate
2200 If you didn't add anything to the preamble and didn't add any \SpecialChar LaTeX
2201  code to the
2202  document, the first suspect is your \SpecialChar LaTeX
2203  distribution itself.
2204  Check for missing packages and install them.
2205 \end_layout
2206
2207 \begin_layout Enumerate
2208 Okay, so there are no missing packages.
2209  Did you use any of the fine-tuning options in \SpecialChar LyX
2210 ? Specifically, did you 
2211 \emph on
2212 misuse
2213 \emph default
2214  any of them, like trying to manually insert lots of 
2215 \begin_inset Flex Code
2216 status collapsed
2217
2218 \begin_layout Plain Layout
2219
2220 \change_deleted 177693 1654669036
2221 Protected
2222 \change_inserted 177693 1654669038
2223 Non-Breaking
2224 \change_unchanged
2225
2226 \begin_inset space ~
2227 \end_inset
2228
2229
2230 \change_deleted 177693 1654669040
2231 Blanks
2232 \change_inserted 177693 1654669041
2233 Spaces
2234 \change_unchanged
2235
2236 \end_layout
2237
2238 \end_inset
2239
2240
2241 \begin_inset Flex Code
2242 status collapsed
2243
2244 \begin_layout Plain Layout
2245 Linebreaks
2246 \end_layout
2247
2248 \end_inset
2249
2250 , or 
2251 \begin_inset Flex Code
2252 status collapsed
2253
2254 \begin_layout Plain Layout
2255 Pagebreaks
2256 \end_layout
2257
2258 \end_inset
2259
2260 ? Did you try to kludge something together with these instead of using the
2261  appropriate paragraph environment?
2262 \end_layout
2263
2264 \begin_layout Enumerate
2265 All right, you didn't use any of the fine-tuning options, you played by
2266  the rules.
2267  Did you try to pull a fancy maneuver? Did you do something funky inside
2268  a table or an equation, like inserting a graphic into a table cell?
2269 \end_layout
2270
2271 \begin_layout Enumerate
2272 Do you have long sections of text where \SpecialChar LaTeX
2273  cannot find a place to break a
2274  line? By default, \SpecialChar LaTeX
2275  is rather strict about how much extra inter-word spacing
2276  it will add in order to break a line.
2277  Preferably, you should rework the paragraph to avoid the problem.
2278 \end_layout
2279
2280 \begin_layout Enumerate
2281 Did you go overboard with the nesting? \SpecialChar LyX
2282  (currently) doesn't check to make
2283  sure you're in the limits for nesting environments.
2284  If you nested a bunch of environments to the 
2285 \begin_inset Formula $17^{\mathrm{th}}$
2286 \end_inset
2287
2288  level, that's the problem.
2289  (The limit in \SpecialChar LaTeX
2290  is five.)
2291 \end_layout
2292
2293 \begin_layout Enumerate
2294 Okay, you didn't get any error messages, but your output looks awful.
2295  If you have a table or figure that's too wide or long for the page, you
2296  need to:
2297 \end_layout
2298
2299 \begin_deeper
2300 \begin_layout Enumerate
2301 rescale the figure so it fits.
2302 \end_layout
2303
2304 \begin_layout Enumerate
2305 trim down the table so it fits.
2306 \end_layout
2307
2308 \end_deeper
2309 \begin_layout Enumerate
2310 If something else is wrong with the output, and you didn't try to pull anything
2311  fancy or kludge the fine-tuning options, we're not sure what's wrong.
2312 \end_layout
2313
2314 \begin_layout Standard
2315 If all this doesn't help—well, then 
2316 \emph on
2317 perhaps
2318 \emph default
2319  you might have found a bug in \SpecialChar LyX
2320 \SpecialChar ldots
2321 .
2322 \end_layout
2323
2324 \begin_layout Chapter
2325 Supplemental Tools
2326 \end_layout
2327
2328 \begin_layout Section
2329 Customizing Bibliographies with Bib\SpecialChar TeX
2330  or Biblatex
2331 \end_layout
2332
2333 \begin_layout Standard
2334 The most basic information about how to use Bib\SpecialChar TeX
2335  or 
2336 \family sans
2337 Biblatex
2338 \family default
2339  with \SpecialChar LyX
2340  is contained in the section 
2341 \emph on
2342 Bibliography databases
2343 \emph default
2344  of the 
2345 \emph on
2346 User's Guide
2347 \emph default
2348 .
2349  The following subsections explain special bibliography features supported
2350  by \SpecialChar LyX
2351 .
2352 \end_layout
2353
2354 \begin_layout Subsection
2355 Alternative Citation Styles
2356 \end_layout
2357
2358 \begin_layout Standard
2359 Standard Bib\SpecialChar TeX
2360  uses numbers (e.
2361 \begin_inset space \thinspace{}
2362 \end_inset
2363
2364 g.
2365 \begin_inset space \space{}
2366 \end_inset
2367
2368
2369 \begin_inset Quotes eld
2370 \end_inset
2371
2372 [12]
2373 \begin_inset Quotes erd
2374 \end_inset
2375
2376 ) to refer to a cited work.
2377  However, in many scientific disciplines, other citation styles are in use.
2378  The most common one is the author-year style (e.
2379 \begin_inset space \thinspace{}
2380 \end_inset
2381
2382 g.
2383 \begin_inset space \space{}
2384 \end_inset
2385
2386
2387 \begin_inset Quotes eld
2388 \end_inset
2389
2390 Knuth 1984a
2391 \begin_inset Quotes erd
2392 \end_inset
2393
2394 ).
2395  \SpecialChar LyX
2396  supports three packages that provide this style, 
2397 \begin_inset Flex Code
2398 status collapsed
2399
2400 \begin_layout Plain Layout
2401 biblatex
2402 \end_layout
2403
2404 \end_inset
2405
2406
2407 \begin_inset Flex Code
2408 status collapsed
2409
2410 \begin_layout Plain Layout
2411 natbib
2412 \end_layout
2413
2414 \end_inset
2415
2416 , and 
2417 \begin_inset Flex Code
2418 status collapsed
2419
2420 \begin_layout Plain Layout
2421 jurabib
2422 \end_layout
2423
2424 \end_inset
2425
2426 .
2427  Each of these packages has their pros and cons, which cannot be listed
2428  in detail.
2429  If you only want to have simple author-year (or author-numerical) style,
2430  or if you want to use one of the countless style files for 
2431 \begin_inset Flex Code
2432 status collapsed
2433
2434 \begin_layout Plain Layout
2435 natbib
2436 \end_layout
2437
2438 \end_inset
2439
2440 , then the established 
2441 \begin_inset Flex Code
2442 status collapsed
2443
2444 \begin_layout Plain Layout
2445 natbib
2446 \end_layout
2447
2448 \end_inset
2449
2450  package is probably your choice.
2451  If you look for specific citation styles common in law studies, you might
2452  consider the 
2453 \begin_inset Flex Code
2454 status collapsed
2455
2456 \begin_layout Plain Layout
2457 jurabib
2458 \end_layout
2459
2460 \end_inset
2461
2462  package.
2463  If you want to have full control over the formatting or look for advanced
2464  features such as ibidem, footnote citations, full title citations, advanced
2465  date formats (such as 400 BC) or full localization to other languages than
2466  English, you should definitely consider 
2467 \begin_inset Flex Code
2468 status collapsed
2469
2470 \begin_layout Plain Layout
2471 biblatex
2472 \end_layout
2473
2474 \end_inset
2475
2476 , which exceeds all other packages in terms of features, but is also quite
2477  heavy and more resource-hungry.
2478 \end_layout
2479
2480 \begin_layout Standard
2481 The handling of these packages in \SpecialChar LyX
2482  is basically the same.
2483  Go to 
2484 \begin_inset Flex Noun
2485 status collapsed
2486
2487 \begin_layout Plain Layout
2488 Document\SpecialChar menuseparator
2489 Settings
2490 \end_layout
2491
2492 \end_inset
2493
2494  and select under 
2495 \begin_inset Flex Noun
2496 status collapsed
2497
2498 \begin_layout Plain Layout
2499 Bibliography
2500 \end_layout
2501
2502 \end_inset
2503
2504  the 
2505 \begin_inset Flex Noun
2506 status collapsed
2507
2508 \begin_layout Plain Layout
2509 Style Format
2510 \end_layout
2511
2512 \end_inset
2513
2514  
2515 \begin_inset Flex Noun
2516 status collapsed
2517
2518 \begin_layout Plain Layout
2519 Basic (BibTeX)
2520 \end_layout
2521
2522 \end_inset
2523
2524
2525 \begin_inset Flex Noun
2526 status collapsed
2527
2528 \begin_layout Plain Layout
2529 Biblatex
2530 \end_layout
2531
2532 \end_inset
2533
2534
2535 \begin_inset Flex Noun
2536 status collapsed
2537
2538 \begin_layout Plain Layout
2539 Biblatex (Natbib mode)
2540 \end_layout
2541
2542 \end_inset
2543
2544
2545 \begin_inset Flex Noun
2546 status collapsed
2547
2548 \begin_layout Plain Layout
2549 Natbib (BibTeX)
2550 \end_layout
2551
2552 \end_inset
2553
2554  or 
2555 \begin_inset Flex Noun
2556 status collapsed
2557
2558 \begin_layout Plain Layout
2559 Jurabib (BibTeX)
2560 \end_layout
2561
2562 \end_inset
2563
2564  (see sec.
2565 \begin_inset space ~
2566 \end_inset
2567
2568 6.5.3 in the User's Guide for more information on these choices).
2569  With all these packages, you will get some extra features in the citation
2570  dialog and you can select the style of the reference (
2571 \begin_inset Quotes eld
2572 \end_inset
2573
2574 Knuth 1984
2575 \begin_inset Quotes erd
2576 \end_inset
2577
2578
2579 \begin_inset Quotes eld
2580 \end_inset
2581
2582 Knuth (1984)
2583 \begin_inset Quotes erd
2584 \end_inset
2585
2586
2587 \begin_inset Quotes eld
2588 \end_inset
2589
2590 Knuth, 1984
2591 \begin_inset Quotes erd
2592 \end_inset
2593
2594
2595 \begin_inset Quotes eld
2596 \end_inset
2597
2598 1984
2599 \begin_inset Quotes erd
2600 \end_inset
2601
2602  etc.).
2603  Note that either package needs specifically designed style files.
2604  They all ship their own, but there are lots of additional style files,
2605  and there is even an interactive style file builder
2606 \begin_inset Foot
2607 status collapsed
2608
2609 \begin_layout Plain Layout
2610 See 
2611 \begin_inset Flex URL
2612 status open
2613
2614 \begin_layout Plain Layout
2615
2616 ftp://ctan.tug.org/tex-archive/macros/latex/contrib/custom-bib/
2617 \end_layout
2618
2619 \end_inset
2620
2621
2622 \end_layout
2623
2624 \end_inset
2625
2626  for 
2627 \begin_inset Flex Code
2628 status collapsed
2629
2630 \begin_layout Plain Layout
2631 natbib
2632 \end_layout
2633
2634 \end_inset
2635
2636 .
2637 \end_layout
2638
2639 \begin_layout Subsection
2640 Subdivided Bibliographies
2641 \end_layout
2642
2643 \begin_layout Standard
2644 Sometimes you might need to divide your bibliography into several sections.
2645  If you are for instance a historian, the possibility to separate sources
2646  and scientific works is most likely a 
2647 \begin_inset Quotes eld
2648 \end_inset
2649
2650 must have
2651 \begin_inset Quotes erd
2652 \end_inset
2653
2654 .
2655  Unfortunately, Bib\SpecialChar TeX
2656  itself does not allow you to do this.
2657  But with the help of some \SpecialChar LaTeX
2658  packages, Bib\SpecialChar TeX
2659  can be extended to fit your needs.
2660 \end_layout
2661
2662 \begin_layout Standard
2663 \SpecialChar LyX
2664  provides native support for one of these packages, 
2665 \family typewriter
2666 bibtopic
2667 \family default
2668 .
2669 \begin_inset Foot
2670 status collapsed
2671
2672 \begin_layout Plain Layout
2673 Available from 
2674 \begin_inset Flex URL
2675 status open
2676
2677 \begin_layout Plain Layout
2678
2679 ftp://ctan.tug.org/tex-archive/macros/latex/contrib/bibtopic/
2680 \end_layout
2681
2682 \end_inset
2683
2684
2685 \end_layout
2686
2687 \end_inset
2688
2689  The advantage of this package (compared to other packages such as 
2690 \family typewriter
2691 multibib
2692 \family default
2693 ) is that you don't need to define new citation commands.
2694  Instead, you need to prepare different bibliographic databases which include
2695  the entries for the different sections of the bibliography.
2696  For example: If you want to divide your bibliography into the sections
2697  
2698 \begin_inset Quotes eld
2699 \end_inset
2700
2701 Sources
2702 \begin_inset Quotes erd
2703 \end_inset
2704
2705  and 
2706 \begin_inset Quotes eld
2707 \end_inset
2708
2709 Scientific works
2710 \begin_inset Quotes erd
2711 \end_inset
2712
2713 , you first need to create two bibliographic databases, e.
2714 \begin_inset space \thinspace{}
2715 \end_inset
2716
2717 g.
2718 \begin_inset space \space{}
2719 \end_inset
2720
2721
2722 \begin_inset Flex Code
2723 status collapsed
2724
2725 \begin_layout Plain Layout
2726 sources.bib
2727 \end_layout
2728
2729 \end_inset
2730
2731  and 
2732 \begin_inset Flex Code
2733 status collapsed
2734
2735 \begin_layout Plain Layout
2736 scientific.bib
2737 \end_layout
2738
2739 \end_inset
2740
2741 .
2742  
2743 \end_layout
2744
2745 \begin_layout Standard
2746 Go to 
2747 \begin_inset Flex Noun
2748 status collapsed
2749
2750 \begin_layout Plain Layout
2751 Document\SpecialChar menuseparator
2752 Settings
2753 \end_layout
2754
2755 \end_inset
2756
2757  and check under 
2758 \begin_inset Flex Noun
2759 status collapsed
2760
2761 \begin_layout Plain Layout
2762 Bibliography
2763 \end_layout
2764
2765 \end_inset
2766
2767  the option 
2768 \begin_inset Flex Noun
2769 status collapsed
2770
2771 \begin_layout Plain Layout
2772 Subdivided bibliography
2773 \end_layout
2774
2775 \end_inset
2776
2777 .
2778  Now you can insert multiple Bib\SpecialChar TeX
2779  bibliographies, one for each section of
2780  your bibliography.
2781  Returning to our example: Insert the Bib\SpecialChar TeX
2782  bibliography 
2783 \begin_inset Flex Code
2784 status collapsed
2785
2786 \begin_layout Plain Layout
2787 sources.bib
2788 \end_layout
2789
2790 \end_inset
2791
2792  and a second one for the database 
2793 \begin_inset Flex Code
2794 status collapsed
2795
2796 \begin_layout Plain Layout
2797 scientific.bib
2798 \end_layout
2799
2800 \end_inset
2801
2802 .
2803  You are free to use the same or different styles for each section.
2804  Additionally, you can choose if the bibliography section should contain
2805  
2806 \begin_inset Quotes eld
2807 \end_inset
2808
2809 all cited references
2810 \begin_inset Quotes erd
2811 \end_inset
2812
2813  of the specified database(s) (which is the default), 
2814 \begin_inset Quotes eld
2815 \end_inset
2816
2817 all uncited references
2818 \begin_inset Quotes erd
2819 \end_inset
2820
2821  or even 
2822 \begin_inset Quotes eld
2823 \end_inset
2824
2825 all references
2826 \begin_inset Quotes erd
2827 \end_inset
2828
2829 .
2830  This might be useful if you would like to separate your bibliography into
2831  three sections: 
2832 \begin_inset Quotes eld
2833 \end_inset
2834
2835 Cited sources
2836 \begin_inset Quotes erd
2837 \end_inset
2838
2839
2840 \begin_inset Quotes eld
2841 \end_inset
2842
2843 Uncited sources
2844 \begin_inset Quotes erd
2845 \end_inset
2846
2847 , and 
2848 \begin_inset Quotes eld
2849 \end_inset
2850
2851 Scientific works
2852 \begin_inset Quotes erd
2853 \end_inset
2854
2855 .
2856  The titles for the sections can be added as ordinary sections or subsections.
2857  Since 
2858 \begin_inset Flex Code
2859 status collapsed
2860
2861 \begin_layout Plain Layout
2862 bibtopic
2863 \end_layout
2864
2865 \end_inset
2866
2867  removes the bibliography title, you have to manually re-add that, too (as
2868  a chapter* or section*, for instance).
2869 \end_layout
2870
2871 \begin_layout Standard
2872 With 
2873 \family sans
2874 Biblatex
2875 \family default
2876 , the procedure is a bit different.
2877  Since 
2878 \family typewriter
2879 bibtopic
2880 \family default
2881  does not work with 
2882 \family sans
2883 Biblatex
2884 \family default
2885 , the aforementioned 
2886 \begin_inset Flex Noun
2887 status collapsed
2888
2889 \begin_layout Plain Layout
2890 Subdivided bibliography
2891 \end_layout
2892
2893 \end_inset
2894
2895  option is disabled if you use 
2896 \family sans
2897 Biblatex
2898 \family default
2899 .
2900  However, 
2901 \family sans
2902 Biblatex
2903 \family default
2904  provides its own means to generate subdivided bibliographies.
2905  You can either add keywords to bibliography entries via the 
2906 \begin_inset Flex Code
2907 status collapsed
2908
2909 \begin_layout Plain Layout
2910 keywords
2911 \end_layout
2912
2913 \end_inset
2914
2915  entry option and then filter bibliography sections by keyword (by adding
2916  
2917 \begin_inset Flex Code
2918 status collapsed
2919
2920 \begin_layout Plain Layout
2921 keyword=mykeyword
2922 \end_layout
2923
2924 \end_inset
2925
2926  to the 
2927 \begin_inset Flex Noun
2928 status collapsed
2929
2930 \begin_layout Plain Layout
2931 Options
2932 \end_layout
2933
2934 \end_inset
2935
2936  field of the dialog that opens if you left-click on the 
2937 \begin_inset Flex Noun
2938 status collapsed
2939
2940 \begin_layout Plain Layout
2941 Biblatex Generated Bibliography
2942 \end_layout
2943
2944 \end_inset
2945
2946  button), or you can filter by entry types (such as 
2947 \emph on
2948 book
2949 \emph default
2950  or 
2951 \emph on
2952 article
2953 \emph default
2954 ) by entering e.
2955 \begin_inset space \thinspace{}
2956 \end_inset
2957
2958 g.
2959  
2960 \begin_inset Flex Code
2961 status collapsed
2962
2963 \begin_layout Plain Layout
2964 type=book
2965 \end_layout
2966
2967 \end_inset
2968
2969  or 
2970 \begin_inset Flex Code
2971 status collapsed
2972
2973 \begin_layout Plain Layout
2974 nottype=collection
2975 \end_layout
2976
2977 \end_inset
2978
2979  to the mentioned 
2980 \begin_inset Flex Noun
2981 status collapsed
2982
2983 \begin_layout Plain Layout
2984 Options
2985 \end_layout
2986
2987 \end_inset
2988
2989  field, or you can create so-called 
2990 \begin_inset Quotes eld
2991 \end_inset
2992
2993 Bibliography Categories
2994 \begin_inset Quotes erd
2995 \end_inset
2996
2997  to which you can assign individual entries.
2998  Please refer to the Biblatex manual, section 
2999 \emph on
3000 Subdivided Bibliographies
3001 \emph default
3002 , for details.
3003 \end_layout
3004
3005 \begin_layout Subsection
3006 Multiple Bibliographies
3007 \begin_inset CommandInset label
3008 LatexCommand label
3009 name "subsec:Multiple-Bibliographies"
3010
3011 \end_inset
3012
3013
3014 \end_layout
3015
3016 \begin_layout Standard
3017 Multiple bibliographies, e.
3018 \begin_inset space \thinspace{}
3019 \end_inset
3020
3021 g.
3022 \begin_inset space \space{}
3023 \end_inset
3024
3025 a bibliography for each part, chapter, section, subsection or child (sub-documen
3026 t) of the document, are also supported by \SpecialChar LyX
3027 .
3028  In order to enable it, go to 
3029 \begin_inset Flex Noun
3030 status collapsed
3031
3032 \begin_layout Plain Layout
3033 Document\SpecialChar menuseparator
3034 Settings\SpecialChar menuseparator
3035 Bibliography
3036 \end_layout
3037
3038 \end_inset
3039
3040  and select the relevant unit (e.
3041 \begin_inset space \thinspace{}
3042 \end_inset
3043
3044 g., 
3045 \begin_inset Quotes eld
3046 \end_inset
3047
3048 per section
3049 \begin_inset Quotes erd
3050 \end_inset
3051
3052 ) in the 
3053 \begin_inset Flex Noun
3054 status collapsed
3055
3056 \begin_layout Plain Layout
3057 Multiple Bibliographies
3058 \end_layout
3059
3060 \end_inset
3061
3062  combo box.
3063  Then add a Bib(la)\SpecialChar TeX
3064  bibliography to each unit (e.
3065 \begin_inset space \thinspace{}
3066 \end_inset
3067
3068 g., section) of your document.
3069  In the output, a separate bibliography, containing only the references
3070  done in the current unit is generated.
3071 \end_layout
3072
3073 \begin_layout Standard
3074 If you use Bib\SpecialChar TeX
3075 , either the 
3076 \begin_inset Flex Code
3077 status collapsed
3078
3079 \begin_layout Plain Layout
3080 chapterbib
3081 \end_layout
3082
3083 \end_inset
3084
3085  or the 
3086 \begin_inset Flex Code
3087 status collapsed
3088
3089 \begin_layout Plain Layout
3090 bibtopic
3091 \end_layout
3092
3093 \end_inset
3094
3095  package is used to create multiple bibliographies.
3096  The former package is used if you select 
3097 \begin_inset Quotes eld
3098 \end_inset
3099
3100 per child document
3101 \begin_inset Quotes erd
3102 \end_inset
3103
3104  and do 
3105 \emph on
3106 not
3107 \emph default
3108  check 
3109 \begin_inset Flex Noun
3110 status collapsed
3111
3112 \begin_layout Plain Layout
3113 Sectioned Bibliography
3114 \end_layout
3115
3116 \end_inset
3117
3118 .
3119  In all other cases, 
3120 \begin_inset Flex Code
3121 status collapsed
3122
3123 \begin_layout Plain Layout
3124 bibtopic
3125 \end_layout
3126
3127 \end_inset
3128
3129  is used.
3130 \begin_inset Foot
3131 status collapsed
3132
3133 \begin_layout Plain Layout
3134 An alternative approach, if you are willing to use some 
3135 \begin_inset Flex Noun
3136 status collapsed
3137
3138 \begin_layout Plain Layout
3139 \SpecialChar TeX
3140  Code
3141 \end_layout
3142
3143 \end_inset
3144
3145  (see section
3146 \begin_inset space ~
3147 \end_inset
3148
3149
3150 \begin_inset CommandInset ref
3151 LatexCommand ref
3152 reference "sec:Inserting-TeX-Code"
3153
3154 \end_inset
3155
3156 ), is to use the 
3157 \begin_inset Flex Code
3158 status collapsed
3159
3160 \begin_layout Plain Layout
3161 bibunits
3162 \end_layout
3163
3164 \end_inset
3165
3166  package.
3167 \end_layout
3168
3169 \end_inset
3170
3171  If 
3172 \begin_inset Flex Code
3173 status collapsed
3174
3175 \begin_layout Plain Layout
3176 bibtopic
3177 \end_layout
3178
3179 \end_inset
3180
3181  is used, \SpecialChar LyX
3182  encloses the specified units in 
3183 \begin_inset Flex Code
3184 status collapsed
3185
3186 \begin_layout Plain Layout
3187 bibtopic
3188 \end_layout
3189
3190 \end_inset
3191
3192 's 
3193 \begin_inset Flex Code
3194 status collapsed
3195
3196 \begin_layout Plain Layout
3197
3198 \backslash
3199 begin{btUnit}
3200 \end_layout
3201
3202 \end_inset
3203
3204  and 
3205 \begin_inset Flex Code
3206 status collapsed
3207
3208 \begin_layout Plain Layout
3209
3210 \backslash
3211 end{btUnit}
3212 \end_layout
3213
3214 \end_inset
3215
3216  in order to create the units.
3217  Note that this approach has some limitations.
3218  First, every citation reference has to be inside some 
3219 \begin_inset Flex Code
3220 status collapsed
3221
3222 \begin_layout Plain Layout
3223 btUnit
3224 \end_layout
3225
3226 \end_inset
3227
3228 .
3229  So citations outside a defined unit (e.
3230 \begin_inset space \thinspace{}
3231 \end_inset
3232
3233 g., before the first section if you use 
3234 \begin_inset Quotes eld
3235 \end_inset
3236
3237 by section
3238 \begin_inset Quotes erd
3239 \end_inset
3240
3241 ) will appear as 
3242 \begin_inset Quotes eld
3243 \end_inset
3244
3245 ???
3246 \begin_inset Quotes erd
3247 \end_inset
3248
3249 .
3250  You can also create your own units by entering 
3251 \begin_inset Flex Code
3252 status collapsed
3253
3254 \begin_layout Plain Layout
3255
3256 \backslash
3257 begin{btUnit}
3258 \end_layout
3259
3260 \end_inset
3261
3262  and 
3263 \begin_inset Flex Code
3264 status collapsed
3265
3266 \begin_layout Plain Layout
3267
3268 \backslash
3269 end{btUnit}
3270 \end_layout
3271
3272 \end_inset
3273
3274  as \SpecialChar TeX
3275  code (for instance to work around the mentioned limitation).
3276  Note, though, that 
3277 \begin_inset Flex Code
3278 status collapsed
3279
3280 \begin_layout Plain Layout
3281 btUnit
3282 \end_layout
3283
3284 \end_inset
3285
3286 s cannot be nested.
3287  A second limitation is that 
3288 \begin_inset Flex Code
3289 status collapsed
3290
3291 \begin_layout Plain Layout
3292 bibtopic
3293 \end_layout
3294
3295 \end_inset
3296
3297  always processes all references of a bibliography database, even if they
3298  are not cited.
3299  This can result in odd labels (e.
3300 \begin_inset space \thinspace{}
3301 \end_inset
3302
3303 g.
3304  
3305 \begin_inset Quotes eld
3306 \end_inset
3307
3308 Miller 2014b
3309 \begin_inset Quotes erd
3310 \end_inset
3311
3312  if two works of this author from 2014 are in the database, even if only
3313  one is cited).
3314 \end_layout
3315
3316 \begin_layout Standard
3317 If you use 
3318 \family sans
3319 Biblatex
3320 \family default
3321 , the 
3322 \begin_inset Flex Code
3323 status collapsed
3324
3325 \begin_layout Plain Layout
3326 refsection
3327 \end_layout
3328
3329 \end_inset
3330
3331  option is used instead.
3332  If you need specific units, you can start them with the \SpecialChar TeX
3333  code 
3334 \begin_inset Flex Code
3335 status collapsed
3336
3337 \begin_layout Plain Layout
3338
3339 \backslash
3340 newrefsection
3341 \end_layout
3342
3343 \end_inset
3344
3345  or 
3346 \begin_inset Flex Code
3347 status collapsed
3348
3349 \begin_layout Plain Layout
3350
3351 \backslash
3352 newrefsegment
3353 \end_layout
3354
3355 \end_inset
3356
3357 , respectively.
3358  If you also want to control the end of the unit, use the environment 
3359 \begin_inset Flex Code
3360 status collapsed
3361
3362 \begin_layout Plain Layout
3363
3364 \backslash
3365 begin{refsection}
3366 \end_layout
3367
3368 \end_inset
3369
3370  \SpecialChar ldots
3371  
3372 \begin_inset Flex Code
3373 status collapsed
3374
3375 \begin_layout Plain Layout
3376
3377 \backslash
3378 end{refsection}
3379 \end_layout
3380
3381 \end_inset
3382
3383  instead.
3384  Note, though, that 
3385 \begin_inset Flex Code
3386 status collapsed
3387
3388 \begin_layout Plain Layout
3389 refsection
3390 \end_layout
3391
3392 \end_inset
3393
3394 s cannot be nested.
3395  In addition to the individual bibliography of the current unit, 
3396 \family sans
3397 Biblatex
3398 \family default
3399  also provides an easy way to output all bibliographies, subsequently, at
3400  one place (e.
3401 \begin_inset space \thinspace{}
3402 \end_inset
3403
3404 g., at the end of the document).
3405  Select 
3406 \begin_inset Quotes eld
3407 \end_inset
3408
3409 all reference units
3410 \begin_inset Quotes erd
3411 \end_inset
3412
3413  from the Content combo box of the Bib(la)TeX inset dialog in order to achieve
3414  this.
3415  Please refer to the 
3416 \family sans
3417 Biblatex
3418 \family default
3419  manual for more information on this topic.
3420 \end_layout
3421
3422 \begin_layout Section
3423 Multipart Documents
3424 \end_layout
3425
3426 \begin_layout Subsection
3427 General Operation
3428 \end_layout
3429
3430 \begin_layout Standard
3431 When you are working on a large file with many sections, it is often convenient
3432  to break up the document into several files, or perhaps you have something
3433  where a table may change from time to time, but the preceding text does
3434  not.
3435  In these cases, you should seriously consider using multipart documents.
3436  For example, scientific papers often have five major sections: the introduction
3437 , observations, results, discussion, and conclusion.
3438  Each of these could be its own separate \SpecialChar LyX
3439  file, with one 
3440 \begin_inset Quotes eld
3441 \end_inset
3442
3443 master
3444 \begin_inset Quotes erd
3445 \end_inset
3446
3447  file which contains the title, authors, abstract, references, etc., plus
3448  the five included files.
3449  It is important to note that each of these files is a full \SpecialChar LyX
3450  file which
3451  can be formatted and printed on its own, as well as included in a master
3452  file.
3453  Each of these files must have the same document class, however—don't attempt
3454  to mix book classes with article classes.
3455  You may also include \SpecialChar LaTeX
3456  files; however, these files must not have their own
3457  preamble (i.
3458 \begin_inset space \thinspace{}
3459 \end_inset
3460
3461 e.
3462 \begin_inset space \space{}
3463 \end_inset
3464
3465 everything up to and including the 
3466 \begin_inset Flex Code
3467 status collapsed
3468
3469 \begin_layout Plain Layout
3470
3471 \backslash
3472 begin{document}
3473 \end_layout
3474
3475 \end_inset
3476
3477  line as well as the 
3478 \begin_inset Flex Code
3479 status collapsed
3480
3481 \begin_layout Plain Layout
3482
3483 \backslash
3484 end{document}
3485 \end_layout
3486
3487 \end_inset
3488
3489  line must be deleted) or else errors will be generated when you try to
3490  make a DVI file.
3491 \end_layout
3492
3493 \begin_layout Standard
3494 \SpecialChar LyX
3495  allows you to include files quite easily with 
3496 \begin_inset Flex Noun
3497 status collapsed
3498
3499 \begin_layout Plain Layout
3500 Insert\SpecialChar menuseparator
3501 Child
3502 \begin_inset space ~
3503 \end_inset
3504
3505 Document
3506 \end_layout
3507
3508 \end_inset
3509
3510 .
3511  When you click on this selection a small box is inserted into the file
3512  at the current cursor location.
3513  Clicking on the box raises a dialog which allows you to select the file
3514  to be included, and the method of its inclusion.
3515  
3516 \end_layout
3517
3518 \begin_layout Standard
3519 The file selection box should by now be obvious.
3520  The three inclusion methods are 
3521 \begin_inset Quotes eld
3522 \end_inset
3523
3524 include
3525 \begin_inset Quotes erd
3526 \end_inset
3527
3528
3529 \begin_inset Quotes eld
3530 \end_inset
3531
3532 input
3533 \begin_inset Quotes erd
3534 \end_inset
3535
3536 , and 
3537 \begin_inset Quotes eld
3538 \end_inset
3539
3540 verbatim
3541 \begin_inset Quotes erd
3542 \end_inset
3543
3544 .
3545  The methods 
3546 \begin_inset Quotes eld
3547 \end_inset
3548
3549 include
3550 \begin_inset Quotes erd
3551 \end_inset
3552
3553  and 
3554 \begin_inset Quotes eld
3555 \end_inset
3556
3557 input
3558 \begin_inset Quotes erd
3559 \end_inset
3560
3561  are similar in many ways, but there are also some notable differences:
3562 \end_layout
3563
3564 \begin_layout Enumerate
3565 Files that are 
3566 \begin_inset Quotes eld
3567 \end_inset
3568
3569 included
3570 \begin_inset Quotes erd
3571 \end_inset
3572
3573  are typeset beginning on a new page, while files that are 
3574 \begin_inset Quotes eld
3575 \end_inset
3576
3577 inputted
3578 \begin_inset Quotes erd
3579 \end_inset
3580
3581  are typeset starting on the current page.
3582 \end_layout
3583
3584 \begin_layout Enumerate
3585 \begin_inset Quotes eld
3586 \end_inset
3587
3588 Included
3589 \begin_inset Quotes erd
3590 \end_inset
3591
3592  files cannot themselves 
3593 \begin_inset Quotes eld
3594 \end_inset
3595
3596 include
3597 \begin_inset Quotes erd
3598 \end_inset
3599
3600  further files (
3601 \begin_inset Quotes eld
3602 \end_inset
3603
3604 grandchilds
3605 \begin_inset Quotes erd
3606 \end_inset
3607
3608 ).
3609  With 
3610 \begin_inset Quotes eld
3611 \end_inset
3612
3613 input
3614 \begin_inset Quotes erd
3615 \end_inset
3616
3617 , on the other hand, infinite sub-inputting is possible.
3618 \end_layout
3619
3620 \begin_layout Enumerate
3621 \begin_inset Quotes eld
3622 \end_inset
3623
3624 Include
3625 \begin_inset Quotes erd
3626 \end_inset
3627
3628  allow for the output of only selected 
3629 \begin_inset Quotes eld
3630 \end_inset
3631
3632 included
3633 \begin_inset Quotes erd
3634 \end_inset
3635
3636  files, while maintaining the actual counters (pagination etc.) and references
3637  (please refer to the section 
3638 \emph on
3639 Child
3640 \begin_inset space ~
3641 \end_inset
3642
3643 Documents
3644 \emph default
3645  of the 
3646 \emph on
3647 Embedded
3648 \begin_inset space ~
3649 \end_inset
3650
3651 Objects
3652 \emph default
3653  manual for details).
3654 \end_layout
3655
3656 \begin_layout Standard
3657 Hence, 
3658 \begin_inset Quotes eld
3659 \end_inset
3660
3661 include
3662 \begin_inset Quotes erd
3663 \end_inset
3664
3665  is the preferred method for chapters that are outsourced to child documents,
3666  while 
3667 \begin_inset Quotes eld
3668 \end_inset
3669
3670 input
3671 \begin_inset Quotes erd
3672 \end_inset
3673
3674  is more suitable for arbitrary file inheritance.
3675 \end_layout
3676
3677 \begin_layout Standard
3678
3679 \begin_inset Quotes eld
3680 \end_inset
3681
3682 verbatim
3683 \begin_inset Quotes erd
3684 \end_inset
3685
3686  included file allows you to include a file typeset exactly as it appears
3687  in the file, i.
3688 \begin_inset space \thinspace{}
3689 \end_inset
3690
3691 e.
3692 \begin_inset space \space{}
3693 \end_inset
3694
3695 in 
3696 \begin_inset Flex Code
3697 status collapsed
3698
3699 \begin_layout Plain Layout
3700 verbatim
3701 \end_layout
3702
3703 \end_inset
3704
3705  mode, with the characters set in a fixed-width typewriter font.
3706  Normally, spaces in this file are invisible, though two consecutive spaces
3707  are conserved, unlike \SpecialChar LyX
3708 's normal treatment of spaces.
3709  However, setting the 
3710 \begin_inset Flex Noun
3711 status collapsed
3712
3713 \begin_layout Plain Layout
3714 Mark
3715 \begin_inset space ~
3716 \end_inset
3717
3718 spaces
3719 \begin_inset space ~
3720 \end_inset
3721
3722 in
3723 \begin_inset space ~
3724 \end_inset
3725
3726 output
3727 \end_layout
3728
3729 \end_inset
3730
3731  checkbox typesets a mark to unambiguously define the presence of a space.
3732  
3733 \end_layout
3734
3735 \begin_layout Standard
3736 Generally, the master file is converted into a full \SpecialChar LaTeX
3737  file before typesetting,
3738  while the included files are converted to \SpecialChar LaTeX
3739  files that do not have all the
3740  preamble information.
3741 \end_layout
3742
3743 \begin_layout Subsection
3744 Cross-References Between Files
3745 \end_layout
3746
3747 \begin_layout Standard
3748 \begin_inset Box Shadowbox
3749 position "t"
3750 hor_pos "c"
3751 has_inner_box 1
3752 inner_pos "t"
3753 use_parbox 0
3754 use_makebox 0
3755 width "100col%"
3756 special "none"
3757 height "1in"
3758 height_special "totalheight"
3759 thickness "0.4pt"
3760 separation "3pt"
3761 shadowsize "4pt"
3762 framecolor "black"
3763 backgroundcolor "none"
3764 status open
3765
3766 \begin_layout Plain Layout
3767 This section is somewhat out of date.
3768  Need to describe default master documents and how children are opened when
3769  the master is.
3770  [[FIXME]]
3771 \end_layout
3772
3773 \end_inset
3774
3775
3776 \end_layout
3777
3778 \begin_layout Standard
3779 It is possible to set up cross-references between the different files.
3780  First, open all the files in question: let's call them A and B in a two
3781  file example, where B is included in A.
3782  Let's say you insert a label in A, then want to reference it in B.
3783  Open the cross-reference dialog whilst in document B, and you can select
3784  the 
3785 \begin_inset Quotes eld
3786 \end_inset
3787
3788 buffer
3789 \begin_inset Quotes erd
3790 \end_inset
3791
3792  to use.
3793 \end_layout
3794
3795 \begin_layout Subsection
3796 Bibliography Lists in all Subdocuments
3797 \end_layout
3798
3799 \begin_layout Standard
3800 If you work with child documents, you might want to have only one main bibliogra
3801 phy at the end, but still be able to have a selected bibliography for the
3802  child if you output it on its own.
3803  Here is how to achieve this.
3804 \end_layout
3805
3806 \begin_layout Standard
3807 For the main document, you just insert a bibliography inset at the place
3808  where the main bibliography has to appear (within the master file or within
3809  a child).
3810  If the bibliography inset is in the master file, the references will be
3811  inherited by all children, so they are available in the citation dialog
3812  within each child.
3813 \end_layout
3814
3815 \begin_layout Standard
3816 For child-specific bibliographies, insert bibliography insets within the
3817  child documents, at the place where the bibliography should appear when
3818  the child is compiled separately.
3819  However, the trick is to insert them into a branch (
3820 \family sans
3821 Insert\SpecialChar menuseparator
3822 Branch\SpecialChar menuseparator
3823 Insert New Branch...
3824 \family default
3825 ), e.
3826 \begin_inset space \thinspace{}
3827 \end_inset
3828
3829 g.
3830  called 
3831 \begin_inset Quotes eld
3832 \end_inset
3833
3834 Childonly
3835 \begin_inset Quotes erd
3836 \end_inset
3837
3838 .
3839  Within the children, activate the branch (
3840 \family sans
3841 Document\SpecialChar menuseparator
3842 Settings...\SpecialChar menuseparator
3843 Branches
3844 \family default
3845 ).
3846  Within the master, deactivate the branch (
3847 \family sans
3848 Document\SpecialChar menuseparator
3849 Settings...\SpecialChar menuseparator
3850 Branches
3851 \family default
3852 ).
3853  Now the child's bibliography will be ignored by the master, but considered
3854  by the child.
3855 \end_layout
3856
3857 \begin_layout Standard
3858 If you need multiple bibliographies (e.
3859 \begin_inset space \thinspace{}
3860 \end_inset
3861
3862 g., one per child in the 
3863 \emph on
3864 main document
3865 \emph default
3866 ), please refer to sec.
3867 \begin_inset space ~
3868 \end_inset
3869
3870
3871 \begin_inset CommandInset ref
3872 LatexCommand ref
3873 reference "subsec:Multiple-Bibliographies"
3874
3875 \end_inset
3876
3877 .
3878 \end_layout
3879
3880 \begin_layout Section
3881 \SpecialChar LyX
3882  Archives
3883 \end_layout
3884
3885 \begin_layout Standard
3886 Users sometimes need to be able to 
3887 \begin_inset Quotes eld
3888 \end_inset
3889
3890 bundle
3891 \begin_inset Quotes erd
3892 \end_inset
3893
3894  a \SpecialChar LyX
3895  file together with all the images (and other files) on which it depends,
3896  either for sending to a publisher or for sharing with a co-author.
3897  \SpecialChar LyX
3898  includes a Python script (
3899 \begin_inset Flex Code
3900 status collapsed
3901
3902 \begin_layout Plain Layout
3903 lyxpak.py
3904 \end_layout
3905
3906 \end_inset
3907
3908 ) that automates this process.
3909  To use it, you must have either the 
3910 \begin_inset Flex Code
3911 status collapsed
3912
3913 \begin_layout Plain Layout
3914 zipfile
3915 \end_layout
3916
3917 \end_inset
3918
3919  or 
3920 \begin_inset Flex Code
3921 status collapsed
3922
3923 \begin_layout Plain Layout
3924 tarfile
3925 \end_layout
3926
3927 \end_inset
3928
3929  python modules installed on your system.
3930  By default, the script prefers the 
3931 \begin_inset Flex Code
3932 status collapsed
3933
3934 \begin_layout Plain Layout
3935 gzip
3936 \end_layout
3937
3938 \end_inset
3939
3940 -compressed 
3941 \begin_inset Flex Code
3942 status collapsed
3943
3944 \begin_layout Plain Layout
3945 tar
3946 \end_layout
3947
3948 \end_inset
3949
3950  format on Unix-like systems and the 
3951 \begin_inset Flex Code
3952 status collapsed
3953
3954 \begin_layout Plain Layout
3955 zip
3956 \end_layout
3957
3958 \end_inset
3959
3960  format on Windows.
3961 \end_layout
3962
3963 \begin_layout Standard
3964 \SpecialChar LyX
3965 's configuration process will set the script up to export a `\SpecialChar LyX
3966  Archive',
3967  and this format will then be available under 
3968 \begin_inset Flex Code
3969 status collapsed
3970
3971 \begin_layout Plain Layout
3972 File\SpecialChar menuseparator
3973 Export
3974 \end_layout
3975
3976 \end_inset
3977
3978 .
3979 \end_layout
3980
3981 \begin_layout Standard
3982 Independently of the platform, the generation of a particular archive format
3983  can be forced by adding either the 
3984 \begin_inset Flex Code
3985 status collapsed
3986
3987 \begin_layout Plain Layout
3988 -t
3989 \end_layout
3990
3991 \end_inset
3992
3993  (for the 
3994 \begin_inset Flex Code
3995 status collapsed
3996
3997 \begin_layout Plain Layout
3998 tar
3999 \end_layout
4000
4001 \end_inset
4002
4003  format) or 
4004 \begin_inset Flex Code
4005 status collapsed
4006
4007 \begin_layout Plain Layout
4008 -z
4009 \end_layout
4010
4011 \end_inset
4012
4013  (for the 
4014 \begin_inset Flex Code
4015 status collapsed
4016
4017 \begin_layout Plain Layout
4018 zip
4019 \end_layout
4020
4021 \end_inset
4022
4023  format) switch to the 
4024 \begin_inset Flex Code
4025 status collapsed
4026
4027 \begin_layout Plain Layout
4028 \SpecialChar LyX
4029 \SpecialChar menuseparator
4030 \SpecialChar LyX
4031  Archive
4032 \end_layout
4033
4034 \end_inset
4035
4036  converter in 
4037 \begin_inset Flex Code
4038 status collapsed
4039
4040 \begin_layout Plain Layout
4041 Tools\SpecialChar menuseparator
4042 Preferences\SpecialChar menuseparator
4043 File Handling\SpecialChar menuseparator
4044 Converters
4045 \end_layout
4046
4047 \end_inset
4048
4049 .
4050  (Make sure you add the switch after the script name, not before it.)
4051 \end_layout
4052
4053 \begin_layout Section
4054 Fancy Headers and Footers
4055 \end_layout
4056
4057 \begin_layout Standard
4058 The default page layout is rather plain; for an 
4059 \begin_inset Flex Code
4060 status collapsed
4061
4062 \begin_layout Plain Layout
4063 article
4064 \end_layout
4065
4066 \end_inset
4067
4068  document class, all you get is a centered page number at the bottom of
4069  the page.
4070  This document uses KOMA-script's book class, so it appears to be a bit
4071  fancier.
4072  But to really put on a show, you need to set the document page style to
4073  
4074 \begin_inset Quotes eld
4075 \end_inset
4076
4077 fancy
4078 \begin_inset Quotes erd
4079 \end_inset
4080
4081 , as mentioned in the 
4082 \emph on
4083 User Guide
4084 \emph default
4085 .
4086  This section describes the \SpecialChar LaTeX
4087  code you need to insert in your \SpecialChar LaTeX
4088  preamble in
4089  order to get the desired effects.
4090 \end_layout
4091
4092 \begin_layout Standard
4093 For more information on fancy headers, see the 
4094 \begin_inset Flex Code
4095 status collapsed
4096
4097 \begin_layout Plain Layout
4098 fancyhdr
4099 \end_layout
4100
4101 \end_inset
4102
4103  package documentation.
4104  (
4105 \begin_inset Flex URL
4106 status collapsed
4107
4108 \begin_layout Plain Layout
4109
4110 https://www.ctan.org/tex-archive/help/Catalogue/entries/fancyhdr.html
4111 \end_layout
4112
4113 \end_inset
4114
4115 )
4116 \end_layout
4117
4118 \begin_layout Standard
4119 The page header is divided into three fields, not surprisingly labeled 
4120 \begin_inset Quotes eld
4121 \end_inset
4122
4123 left
4124 \begin_inset Quotes erd
4125 \end_inset
4126
4127
4128 \begin_inset Quotes eld
4129 \end_inset
4130
4131 center
4132 \begin_inset Quotes erd
4133 \end_inset
4134
4135 , and 
4136 \begin_inset Quotes eld
4137 \end_inset
4138
4139 right
4140 \begin_inset Quotes erd
4141 \end_inset
4142
4143 .
4144  The footer is also divided into these three fields.
4145  The \SpecialChar LaTeX
4146  commands to set these fields in the simplest manner are 
4147 \begin_inset Flex Code
4148 status collapsed
4149
4150 \begin_layout Plain Layout
4151
4152 \backslash
4153 lhead
4154 \end_layout
4155
4156 \end_inset
4157
4158
4159 \begin_inset Flex Code
4160 status collapsed
4161
4162 \begin_layout Plain Layout
4163
4164 \backslash
4165 chead
4166 \end_layout
4167
4168 \end_inset
4169
4170
4171 \begin_inset Flex Code
4172 status collapsed
4173
4174 \begin_layout Plain Layout
4175
4176 \backslash
4177 rhead
4178 \end_layout
4179
4180 \end_inset
4181
4182
4183 \begin_inset Flex Code
4184 status collapsed
4185
4186 \begin_layout Plain Layout
4187
4188 \backslash
4189 lfoot
4190 \end_layout
4191
4192 \end_inset
4193
4194 , etc.
4195  Suppose you wish to put your name in the upper left hand corner of each
4196  page.
4197  Simply insert the following command in the preamble: 
4198 \end_layout
4199
4200 \begin_layout Standard
4201
4202 \family typewriter
4203
4204 \backslash
4205 lhead{John Q.
4206  DocWriter}
4207 \end_layout
4208
4209 \begin_layout Standard
4210 You will now see your name in the upper left.
4211  If a field has a default entry that you would like to get rid of (often
4212  the page number appears in the central footer) simply include a command
4213  with a blank argument, e.
4214 \begin_inset space \thinspace{}
4215 \end_inset
4216
4217 g.:
4218 \end_layout
4219
4220 \begin_layout Standard
4221
4222 \family typewriter
4223
4224 \backslash
4225 cfoot{}
4226 \end_layout
4227
4228 \begin_layout Standard
4229 Let's get really fancy: lets put the section number with the word 
4230 \begin_inset Quotes eld
4231 \end_inset
4232
4233 Section
4234 \begin_inset Quotes erd
4235 \end_inset
4236
4237  (e.
4238 \begin_inset space \thinspace{}
4239 \end_inset
4240
4241 g.
4242 \begin_inset space \space{}
4243 \end_inset
4244
4245 Section 3) in the upper left, the page number (e.
4246 \begin_inset space \thinspace{}
4247 \end_inset
4248
4249 g.
4250 \begin_inset space \space{}
4251 \end_inset
4252
4253 Page 4) in the upper right, your name in the lower left, and the date in
4254  the lower right.
4255  The following commands should now appear in the preamble:
4256 \end_layout
4257
4258 \begin_layout Standard
4259
4260 \family typewriter
4261
4262 \backslash
4263 lhead{Section 
4264 \backslash
4265 thesection}
4266 \end_layout
4267
4268 \begin_layout Standard
4269
4270 \family typewriter
4271
4272 \backslash
4273 chead{}
4274 \end_layout
4275
4276 \begin_layout Standard
4277
4278 \family typewriter
4279
4280 \backslash
4281 rhead{Page 
4282 \backslash
4283 thepage}
4284 \end_layout
4285
4286 \begin_layout Standard
4287
4288 \family typewriter
4289
4290 \backslash
4291 lfoot{John Q.
4292  DocWriter}
4293 \end_layout
4294
4295 \begin_layout Standard
4296
4297 \family typewriter
4298
4299 \backslash
4300 cfoot{}
4301 \end_layout
4302
4303 \begin_layout Standard
4304
4305 \family typewriter
4306
4307 \backslash
4308 rfoot{
4309 \backslash
4310 today}
4311 \end_layout
4312
4313 \begin_layout Standard
4314 The commands 
4315 \begin_inset Flex Code
4316 status collapsed
4317
4318 \begin_layout Plain Layout
4319
4320 \backslash
4321 thesection
4322 \end_layout
4323
4324 \end_inset
4325
4326  and 
4327 \begin_inset Flex Code
4328 status collapsed
4329
4330 \begin_layout Plain Layout
4331
4332 \backslash
4333 thepage
4334 \end_layout
4335
4336 \end_inset
4337
4338  access \SpecialChar LaTeX
4339 's section and page counters, and so print out the current section
4340  and page number.
4341  
4342 \begin_inset Flex Code
4343 status collapsed
4344
4345 \begin_layout Plain Layout
4346
4347 \backslash
4348 today
4349 \end_layout
4350
4351 \end_inset
4352
4353  simply prints out today's date.
4354 \end_layout
4355
4356 \begin_layout Standard
4357 The thicknesses of the horizontal rules drawn beneath the header and above
4358  the footer can also be modified.
4359  If you don't want one of the rules, set its thickness to 0.
4360  The header rule has a default thickness of 0.4pt, the footer rule is 0pt.
4361  Use commands
4362 \family typewriter
4363  
4364 \family default
4365 like 
4366 \begin_inset Flex Code
4367 status collapsed
4368
4369 \begin_layout Plain Layout
4370
4371 \backslash
4372 renewcommand{
4373 \backslash
4374 headrulewidth}{0.4pt}
4375 \end_layout
4376
4377 \end_inset
4378
4379  and 
4380 \begin_inset Flex Code
4381 status collapsed
4382
4383 \begin_layout Plain Layout
4384
4385 \backslash
4386 renewcommand{
4387 \backslash
4388 footrulewidth}{0.4pt}
4389 \end_layout
4390
4391 \end_inset
4392
4393  to set the thicknesses.
4394 \end_layout
4395
4396 \begin_layout Standard
4397 You can switch the header/footer settings on and off for individual pages
4398  using commands like 
4399 \begin_inset Flex Code
4400 status collapsed
4401
4402 \begin_layout Plain Layout
4403
4404 \backslash
4405 thispagestyle{empty}
4406 \end_layout
4407
4408 \end_inset
4409
4410
4411 \begin_inset Flex Code
4412 status collapsed
4413
4414 \begin_layout Plain Layout
4415
4416 \backslash
4417 thispagestyle{plain}
4418 \end_layout
4419
4420 \end_inset
4421
4422 , and 
4423 \begin_inset Flex Code
4424 status collapsed
4425
4426 \begin_layout Plain Layout
4427
4428 \backslash
4429 thispagestyle{fancy}
4430 \end_layout
4431
4432 \end_inset
4433
4434 .
4435  Simply insert them in the text on the page you want changed and mark them
4436  as \SpecialChar TeX
4437  code.
4438  In fact, title pages are marked as plain by default, while following pages
4439  are marked fancy when using the global fancy setting.
4440 \end_layout
4441
4442 \begin_layout Standard
4443 As a final example, it is possible to include an image in the header or
4444  footer.
4445  Suppose you want to put a company logo in the upper lefthand corner.
4446  You might try something like
4447 \end_layout
4448
4449 \begin_layout Standard
4450
4451 \family typewriter
4452
4453 \backslash
4454 lhead{
4455 \backslash
4456 resizebox{1in}{!}{
4457 \backslash
4458 includegraphics{logo.eps}}}
4459 \end_layout
4460
4461 \begin_layout Standard
4462 \noindent
4463 (you may need to preface this with 
4464 \begin_inset Flex Code
4465 status collapsed
4466
4467 \begin_layout Plain Layout
4468
4469 \backslash
4470 usepackage{graphics}
4471 \end_layout
4472
4473 \end_inset
4474
4475  if you don't include graphics elsewhere in your document).
4476 \end_layout
4477
4478 \begin_layout Section
4479 Itemize Bullet Selection
4480 \begin_inset CommandInset label
4481 LatexCommand label
4482 name "sec:bullet"
4483
4484 \end_inset
4485
4486
4487 \end_layout
4488
4489 \begin_layout Standard
4490 by
4491 \noun on
4492  Allan Rae
4493 \end_layout
4494
4495 \begin_layout Subsection
4496 Introduction
4497 \end_layout
4498
4499 \begin_layout Standard
4500 \SpecialChar LyX
4501  provides 216 bullet shapes that can be accessed from a simple dialog.
4502  Using this dialog you can easily specify what bullet shape to use at each
4503  level of an itemized list.
4504  These settings are document-wide so you won't be able to specify different
4505  sets of bullets for different paragraphs.
4506 \begin_inset Foot
4507 status collapsed
4508
4509 \begin_layout Plain Layout
4510 Well, actually you can but you'll have to do it by hand.
4511 \end_layout
4512
4513 \end_inset
4514
4515
4516 \end_layout
4517
4518 \begin_layout Subsection
4519 How it looks
4520 \end_layout
4521
4522 \begin_layout Standard
4523 Open the dialog by selecting the 
4524 \begin_inset Flex Noun
4525 status collapsed
4526
4527 \begin_layout Plain Layout
4528 Document\SpecialChar menuseparator
4529 Settings
4530 \end_layout
4531
4532 \end_inset
4533
4534  menu item and then select the 
4535 \begin_inset Flex Noun
4536 status collapsed
4537
4538 \begin_layout Plain Layout
4539 Bullets
4540 \end_layout
4541
4542 \end_inset
4543
4544  tab.
4545 \end_layout
4546
4547 \begin_layout Standard
4548 The dialog provides you with a table of bullet shapes.
4549  A column of buttons on the left of the table provides access to the six
4550  different panels of bullet shapes.
4551  The row of buttons across the top is used to select which bullet depth
4552  you are changing.
4553
4554 \change_deleted 244031559 1603875981
4555  A text entry under the table shows the currently selected bullet shape's
4556  \SpecialChar LaTeX
4557  equivalent and this can be edited if desired.
4558  If you do modify the text you will also need to specify any needed packages
4559  in the \SpecialChar LaTeX
4560  preamble.
4561 \change_unchanged
4562
4563 \end_layout
4564
4565 \begin_layout Standard
4566 The six panels are divided up by the packages they require.
4567  The following table shows the mappings from button name to \SpecialChar LaTeX
4568  package.
4569 \end_layout
4570
4571 \begin_layout Standard
4572 \align center
4573 \begin_inset Tabular
4574 <lyxtabular version="3" rows="7" columns="2">
4575 <features tabularvalignment="middle">
4576 <column alignment="center" valignment="top" width="0pt">
4577 <column alignment="center" valignment="top" width="0pt">
4578 <row>
4579 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
4580 \begin_inset Text
4581
4582 \begin_layout Plain Layout
4583
4584 \family roman
4585 \series medium
4586 \shape up
4587 \size normal
4588 \emph off
4589 \bar no
4590 \noun off
4591 \color none
4592 Button
4593 \end_layout
4594
4595 \end_inset
4596 </cell>
4597 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
4598 \begin_inset Text
4599
4600 \begin_layout Plain Layout
4601
4602 \family roman
4603 \series medium
4604 \shape up
4605 \size normal
4606 \emph off
4607 \bar no
4608 \noun off
4609 \color none
4610 Packages Required
4611 \end_layout
4612
4613 \end_inset
4614 </cell>
4615 </row>
4616 <row>
4617 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4618 \begin_inset Text
4619
4620 \begin_layout Plain Layout
4621
4622 \family sans
4623 \series medium
4624 \shape up
4625 \size normal
4626 \emph off
4627 \bar no
4628 \noun off
4629 \color none
4630 Standard
4631 \end_layout
4632
4633 \end_inset
4634 </cell>
4635 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4636 \begin_inset Text
4637
4638 \begin_layout Plain Layout
4639
4640 \series medium
4641 \shape up
4642 \size normal
4643 \emph off
4644 \bar no
4645 \noun off
4646 \color none
4647 base \SpecialChar LaTeX
4648
4649 \end_layout
4650
4651 \end_inset
4652 </cell>
4653 </row>
4654 <row>
4655 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4656 \begin_inset Text
4657
4658 \begin_layout Plain Layout
4659
4660 \family sans
4661 \series medium
4662 \shape up
4663 \size normal
4664 \emph off
4665 \bar no
4666 \noun off
4667 \color none
4668 Maths
4669 \end_layout
4670
4671 \end_inset
4672 </cell>
4673 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4674 \begin_inset Text
4675
4676 \begin_layout Plain Layout
4677
4678 \family typewriter
4679 \series medium
4680 \shape up
4681 \size normal
4682 \emph off
4683 \bar no
4684 \noun off
4685 \color none
4686 amssymb.sty
4687 \end_layout
4688
4689 \end_inset
4690 </cell>
4691 </row>
4692 <row>
4693 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4694 \begin_inset Text
4695
4696 \begin_layout Plain Layout
4697
4698 \family sans
4699 \series medium
4700 \shape up
4701 \size normal
4702 \emph off
4703 \bar no
4704 \noun off
4705 \color none
4706 Ding1
4707 \end_layout
4708
4709 \end_inset
4710 </cell>
4711 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4712 \begin_inset Text
4713
4714 \begin_layout Plain Layout
4715
4716 \family typewriter
4717 \series medium
4718 \shape up
4719 \size normal
4720 \emph off
4721 \bar no
4722 \noun off
4723 \color none
4724 pifont.sty
4725 \end_layout
4726
4727 \end_inset
4728 </cell>
4729 </row>
4730 <row>
4731 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4732 \begin_inset Text
4733
4734 \begin_layout Plain Layout
4735
4736 \family sans
4737 \series medium
4738 \shape up
4739 \size normal
4740 \emph off
4741 \bar no
4742 \noun off
4743 \color none
4744 Ding2
4745 \end_layout
4746
4747 \end_inset
4748 </cell>
4749 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4750 \begin_inset Text
4751
4752 \begin_layout Plain Layout
4753
4754 \family typewriter
4755 \series medium
4756 \shape up
4757 \size normal
4758 \emph off
4759 \bar no
4760 \noun off
4761 \color none
4762 pifont.sty
4763 \end_layout
4764
4765 \end_inset
4766 </cell>
4767 </row>
4768 <row>
4769 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4770 \begin_inset Text
4771
4772 \begin_layout Plain Layout
4773
4774 \family sans
4775 \series medium
4776 \shape up
4777 \size normal
4778 \emph off
4779 \bar no
4780 \noun off
4781 \color none
4782 Ding3
4783 \end_layout
4784
4785 \end_inset
4786 </cell>
4787 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4788 \begin_inset Text
4789
4790 \begin_layout Plain Layout
4791
4792 \family typewriter
4793 \series medium
4794 \shape up
4795 \size normal
4796 \emph off
4797 \bar no
4798 \noun off
4799 \color none
4800 pifont.sty
4801 \end_layout
4802
4803 \end_inset
4804 </cell>
4805 </row>
4806 <row>
4807 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
4808 \begin_inset Text
4809
4810 \begin_layout Plain Layout
4811
4812 \family sans
4813 \series medium
4814 \shape up
4815 \size normal
4816 \emph off
4817 \bar no
4818 \noun off
4819 \color none
4820 Ding4
4821 \end_layout
4822
4823 \end_inset
4824 </cell>
4825 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
4826 \begin_inset Text
4827
4828 \begin_layout Plain Layout
4829
4830 \family typewriter
4831 \series medium
4832 \shape up
4833 \size normal
4834 \emph off
4835 \bar no
4836 \noun off
4837 \color none
4838 pifont.sty
4839 \end_layout
4840
4841 \end_inset
4842 </cell>
4843 </row>
4844 </lyxtabular>
4845
4846 \end_inset
4847
4848
4849 \end_layout
4850
4851 \begin_layout Standard
4852 \SpecialChar LyX
4853  doesn't stop you using bullets from packages you don't have.
4854  If you get errors from \SpecialChar LaTeX
4855  when you try to view or print the file, then it
4856  is likely you are missing a package.
4857 \begin_inset Foot
4858 status collapsed
4859
4860 \begin_layout Plain Layout
4861 \SpecialChar LyX
4862  doesn't restrict your use since you may be editing locally and exporting
4863  elsewhere.
4864 \end_layout
4865
4866 \end_inset
4867
4868
4869 \end_layout
4870
4871 \begin_layout Subsection
4872 How to use it
4873 \end_layout
4874
4875 \begin_layout Standard
4876 Select which bullet depth you want to change then select the bullet shape
4877  and size.
4878  Any changes will not be visible in \SpecialChar LyX
4879 , but are visible when viewing the document.
4880 \end_layout
4881
4882 \begin_layout Standard
4883 You can reset a bullet shape to the default simply by clicking your right
4884  mouse button on the appropriate bullet depth button.
4885 \begin_inset Foot
4886 status open
4887
4888 \begin_layout Plain Layout
4889 If you 
4890 \emph on
4891 really
4892 \emph default
4893  want to have multiple sets of paragraphs with different sets of bullets
4894  in each, then you're going to have to get your hands dirty with \SpecialChar TeX
4895  code.
4896  The bullet selection dialog can help though because it provides you with
4897  the \SpecialChar LaTeX
4898  code for a wide range of bullet shapes.
4899  To make your own custom paragraphs you have the following options:
4900 \end_layout
4901
4902 \begin_layout Plain Layout
4903 \begin_inset ERT
4904 status open
4905
4906 \begin_layout Plain Layout
4907
4908
4909 \backslash
4910 let
4911 \backslash
4912 savelabelitemi=
4913 \backslash
4914 labelitemi
4915 \end_layout
4916
4917 \end_inset
4918
4919
4920 \end_layout
4921
4922 \begin_layout Plain Layout
4923 \begin_inset ERT
4924 status open
4925
4926 \begin_layout Plain Layout
4927
4928
4929 \backslash
4930 renewcommand
4931 \backslash
4932 labelitemi[0]{
4933 \backslash
4934 small
4935 \backslash
4936 (
4937 \backslash
4938 sharp
4939 \backslash
4940 )}
4941 \end_layout
4942
4943 \end_inset
4944
4945
4946 \end_layout
4947
4948 \begin_layout Itemize
4949 Use the \SpecialChar LaTeX
4950  command 
4951 \begin_inset Flex Code
4952 status collapsed
4953
4954 \begin_layout Plain Layout
4955
4956 \backslash
4957 renewcommand{}{}
4958 \end_layout
4959
4960 \end_inset
4961
4962  to specify a new bullet shape for a given depth.
4963  You'll also need to save the current bullet shape so you can restore it
4964  again afterwards.
4965  In this itemized list the following \SpecialChar LaTeX
4966  code was used to change the bullet
4967  used for the first depth.
4968 \end_layout
4969
4970 \begin_deeper
4971 \begin_layout LyX-Code
4972
4973 \backslash
4974 let
4975 \backslash
4976 savelabelitemi=
4977 \backslash
4978 labelitemi 
4979 \end_layout
4980
4981 \begin_layout LyX-Code
4982
4983 \backslash
4984 renewcommand
4985 \backslash
4986 labelitemi[0]{
4987 \backslash
4988 small
4989 \backslash
4990 (
4991 \backslash
4992 sharp
4993 \backslash
4994 )}
4995 \end_layout
4996
4997 \end_deeper
4998 \begin_layout Itemize
4999 Note that the itemize depth is specified in Roman numerals as part of the
5000  
5001 \family typewriter
5002
5003 \backslash
5004 labelitem
5005 \family default
5006  command.
5007 \end_layout
5008
5009 \begin_layout Itemize
5010 \begin_inset Argument item:1
5011 status open
5012
5013 \begin_layout Plain Layout
5014 \begin_inset ERT
5015 status open
5016
5017 \begin_layout Plain Layout
5018
5019
5020 \backslash
5021 (
5022 \backslash
5023 star
5024 \backslash
5025 )
5026 \end_layout
5027
5028 \end_inset
5029
5030
5031 \end_layout
5032
5033 \end_inset
5034
5035  Specify each individual entry by starting each item with the bullet shape
5036  enclosed in a 
5037 \begin_inset Quotes eld
5038 \end_inset
5039
5040 Custom Item
5041 \begin_inset Quotes erd
5042 \end_inset
5043
5044  inset (available at 
5045 \family sans
5046 Insert\SpecialChar menuseparator
5047 Custom Item
5048 \family default
5049 ) and set as 
5050 \begin_inset Flex Noun
5051 status collapsed
5052
5053 \begin_layout Plain Layout
5054 \SpecialChar TeX
5055  Code
5056 \end_layout
5057
5058 \end_inset
5059
5060 .
5061  For example, this item was started with 
5062 \begin_inset Flex Code
5063 status collapsed
5064
5065 \begin_layout Plain Layout
5066
5067 \backslash
5068 (
5069 \backslash
5070 star
5071 \backslash
5072 )
5073 \end_layout
5074
5075 \end_inset
5076
5077 .
5078 \end_layout
5079
5080 \begin_layout Plain Layout
5081 \begin_inset ERT
5082 status open
5083
5084 \begin_layout Plain Layout
5085
5086
5087 \backslash
5088 renewcommand
5089 \backslash
5090 labelitemi[0]{
5091 \backslash
5092 savelabelitemi}
5093 \end_layout
5094
5095 \end_inset
5096
5097
5098 \end_layout
5099
5100 \begin_layout Plain Layout
5101 You'll also need to revert the labelitem back to its previous setting for
5102  the global bullet shape settings to remain in effect.
5103  The way used here was:
5104 \end_layout
5105
5106 \begin_layout LyX-Code
5107
5108 \backslash
5109 renewcommand
5110 \backslash
5111 labelitemi[0]{
5112 \backslash
5113 savelabelitemi}
5114 \end_layout
5115
5116 \end_inset
5117
5118
5119 \end_layout
5120
5121 \begin_layout Chapter
5122 \SpecialChar LyX
5123  and the World Wide Web
5124 \end_layout
5125
5126 \begin_layout Standard
5127 \SpecialChar LyX
5128  has long supported the export of documents to various web-friendly formats,
5129  such as HTML.
5130  Before version 2.0, however, HTML export was always accomplished by the
5131  use of external converters.
5132 \begin_inset Foot
5133 status collapsed
5134
5135 \begin_layout Plain Layout
5136 For details on the use of external converters with \SpecialChar LyX
5137 , see the 
5138 \emph on
5139 Converters
5140 \emph default
5141  section of the Customization manual.
5142 \end_layout
5143
5144 \end_inset
5145
5146  These fall into two large groups: there are converters that use \SpecialChar LaTeX
5147  as an
5148  intermediate format, such as 
5149 \begin_inset Flex Code
5150 status collapsed
5151
5152 \begin_layout Plain Layout
5153 htlatex
5154 \end_layout
5155
5156 \end_inset
5157
5158
5159 \begin_inset Flex Code
5160 status collapsed
5161
5162 \begin_layout Plain Layout
5163 html2latex
5164 \end_layout
5165
5166 \end_inset
5167
5168 , and 
5169 \begin_inset Flex Code
5170 status collapsed
5171
5172 \begin_layout Plain Layout
5173 plastex
5174 \end_layout
5175
5176 \end_inset
5177
5178 , relying upon \SpecialChar LyX
5179  to produce the \SpecialChar LaTeX
5180 ; and there is a converter that works directly
5181  on \SpecialChar LyX
5182  files, 
5183 \begin_inset Flex Code
5184 status collapsed
5185
5186 \begin_layout Plain Layout
5187 e\SpecialChar LyX
5188 er
5189 \end_layout
5190
5191 \end_inset
5192
5193 .
5194  All of these have different advantages and disadvantages.
5195  
5196 \end_layout
5197
5198 \begin_layout Standard
5199 The \SpecialChar LaTeX
5200 -based converters have the advantage that, in principle, they know everythin
5201 g about the exported document that \SpecialChar LaTeX
5202  does.
5203  Such converters do not care, for example, if a certain block of code was
5204  produced by \SpecialChar LyX
5205  or was Evil Red Text.
5206  These converters know about 
5207 \begin_inset Flex Code
5208 status collapsed
5209
5210 \begin_layout Plain Layout
5211 aux
5212 \end_layout
5213
5214 \end_inset
5215
5216  files, counters, and references, and can often make use of the 
5217 \begin_inset Flex Code
5218 status collapsed
5219
5220 \begin_layout Plain Layout
5221 bbl
5222 \end_layout
5223
5224 \end_inset
5225
5226  files generated by Bib\SpecialChar TeX
5227 .
5228  On the other hand, \SpecialChar LaTeX
5229  is a very hard language to parse—it is sometimes said
5230  that only \SpecialChar TeX
5231  itself understands \SpecialChar TeX
5232 —and \SpecialChar LaTeX
5233 -based converters will often choke on
5234  what seem to be quite simple constructs; complex ones can throw them completely
5235 , and as of this writing, for example, the 
5236 \emph on
5237 Embedded Objects
5238 \emph default
5239  manual will not export with 
5240 \begin_inset Flex Code
5241 status collapsed
5242
5243 \begin_layout Plain Layout
5244 htlatex
5245 \end_layout
5246
5247 \end_inset
5248
5249 , though the others will.
5250  The other issue concerns how math is handled.
5251  These converters typically convert the formulae into little pictures that
5252  are then linked from the HTML document.
5253  Since these are actually generated by \SpecialChar LaTeX
5254 , they are accurate.
5255  But they do not scale well, and just getting them to look as if they are
5256  actually meant to be in your document—so that the font sizes seem to be
5257  roughly the same—can be a challenge.
5258 \end_layout
5259
5260 \begin_layout Standard
5261 Alex Fernandez's 
5262 \begin_inset Flex Code
5263 status collapsed
5264
5265 \begin_layout Plain Layout
5266 e\SpecialChar LyX
5267 er
5268 \end_layout
5269
5270 \end_inset
5271
5272  (
5273 \begin_inset CommandInset href
5274 LatexCommand href
5275 name "http://pinchito.es/elyxer/"
5276 target "http://pinchito.es/elyxer/"
5277 literal "false"
5278
5279 \end_inset
5280
5281 ) solves some of these problems.
5282  In particular, the formulae it produces scale perfectly, since it renders
5283  math using a combination of HTML and CSS rather than converting the formulae
5284  to images.
5285  But even moderately complex formula are rendered less well than with 
5286 \begin_inset Flex Code
5287 status collapsed
5288
5289 \begin_layout Plain Layout
5290 htlatex
5291 \end_layout
5292
5293 \end_inset
5294
5295 ; this reflects the limitations of HTML.
5296 \begin_inset Foot
5297 status collapsed
5298
5299 \begin_layout Plain Layout
5300 That said, 
5301 \begin_inset Flex Code
5302 status collapsed
5303
5304 \begin_layout Plain Layout
5305 e\SpecialChar LyX
5306 er
5307 \end_layout
5308
5309 \end_inset
5310
5311  can also use jsMath and MathJax for equations, but this setting is only
5312  available globally and requires one to have access to a server that runs
5313  the backend.
5314 \end_layout
5315
5316 \end_inset
5317
5318  More importantly (as of version 1.1.1, at least), 
5319 \begin_inset Flex Code
5320 status collapsed
5321
5322 \begin_layout Plain Layout
5323 e\SpecialChar LyX
5324 er
5325 \end_layout
5326
5327 \end_inset
5328
5329  has limited support for math macros and no support for user-defined paragraph
5330  or character styles.
5331  These limitations make 
5332 \begin_inset Flex Code
5333 status collapsed
5334
5335 \begin_layout Plain Layout
5336 e\SpecialChar LyX
5337 er
5338 \end_layout
5339
5340 \end_inset
5341
5342  unsuitable for many of the documents \SpecialChar LyX
5343  users produce.
5344  In principle, of course, these problems could be solved, but the \SpecialChar LyX
5345  developers
5346  have decided to follow a different path and have made \SpecialChar LyX
5347  itself capable of
5348  writing XHTML, just as it is capable of writing \SpecialChar LaTeX
5349 , DocBook, and plaintext.
5350 \end_layout
5351
5352 \begin_layout Standard
5353 As of this writing, XHTML output remains under development and should probably
5354  be regarded as 
5355 \begin_inset Quotes eld
5356 \end_inset
5357
5358 experimental
5359 \begin_inset Quotes erd
5360 \end_inset
5361
5362 .
5363 \begin_inset Foot
5364 status collapsed
5365
5366 \begin_layout Plain Layout
5367 The file 
5368 \begin_inset Flex Code
5369 status collapsed
5370
5371 \begin_layout Plain Layout
5372 development/HTML/HTML.notes
5373 \end_layout
5374
5375 \end_inset
5376
5377 , which can be found in the \SpecialChar LyX
5378  source tree or 
5379 \begin_inset CommandInset href
5380 LatexCommand href
5381 name "accessed online"
5382 target "https://www.lyx.org/trac/browser/lyxgit/development/HTML/HTML.notes?rev=master"
5383 literal "false"
5384
5385 \end_inset
5386
5387 , usually contains up-to-date information about the state of XHTML output.
5388  See also the list of XHTML bugs on 
5389 \begin_inset CommandInset href
5390 LatexCommand href
5391 name "the bug tracker"
5392 target "https://www.lyx.org/trac/query?status=reopened&status=assigned&status=new&max=0&component=xhtml+export&order=id&col=id&col=summary&col=reporter&col=keywords&keywords=%21%7Efixedintrunk&desc=1"
5393 literal "false"
5394
5395 \end_inset
5396
5397 .
5398 \end_layout
5399
5400 \end_inset
5401
5402  Still, the developers have chosen this approach because it has several
5403  potential advantages over the other two.
5404 \end_layout
5405
5406 \begin_layout Standard
5407 These advantages are primarily due to the fact that the XHTML output routines,
5408  since they are part of \SpecialChar LyX
5409 , know everything \SpecialChar LyX
5410  knows about the document being
5411  exported.
5412 \begin_inset Foot
5413 status collapsed
5414
5415 \begin_layout Plain Layout
5416 Another advantage is that, since these routines are internal to \SpecialChar LyX
5417 , they are
5418  immune to changes in \SpecialChar LyX
5419 's file format, or to changes in the semantics of
5420  existing insets.
5421 \end_layout
5422
5423 \end_inset
5424
5425  So they know about the table of contents (as displayed in the outline),
5426  about the counters associated with different paragraph styles, and about
5427  user-defined styles.
5428  The XHTML output routines know what \SpecialChar LyX
5429  knows about internationalization,
5430  too, so they will output 
5431 \begin_inset Quotes eld
5432 \end_inset
5433
5434 Chapter 1
5435 \begin_inset Quotes erd
5436 \end_inset
5437
5438  or 
5439 \begin_inset Quotes eld
5440 \end_inset
5441
5442
5443 \lang ngerman
5444 Kapitel
5445 \lang english
5446  1
5447 \begin_inset Quotes erd
5448 \end_inset
5449
5450 , depending upon the language in effect at the time.
5451  
5452 \end_layout
5453
5454 \begin_layout Standard
5455 Quite generally, the output routines know what \SpecialChar LyX
5456  knows about document layout,
5457  that is, about how the document is to be rendered on screen.
5458  We use this information when we output the document as XHTML.
5459  In particular, \SpecialChar LyX
5460  
5461 \emph on
5462 automatically
5463 \emph default
5464  generates CSS style information corresponding to the layout information
5465  it uses to render the document on screen: if section headings are supposed
5466  to be sans-serif and bold as seen in \SpecialChar LyX
5467 , then (by default) they will be sans-seri
5468 f and bold when viewed in a web browser, too.
5469  And this is true not just for pre-defined styles, like Section, but for
5470  any style, including user-defined styles.
5471  Indeed, the XHTML output routines make no distinction between user-defined
5472  paragraph and 
5473 \change_deleted 244031559 1603876931
5474 character
5475 \change_inserted 244031559 1603876940
5476 text
5477 \change_unchanged
5478  styles and \SpecialChar LyX
5479 's own pre-defined styles: in each case, everything \SpecialChar LyX
5480  knows about
5481  the styles is contained in the layout files.
5482  And much the same is true as regards pre-defined textual insets, such as
5483  footnotes, and various custom insets.
5484  
5485 \end_layout
5486
5487 \begin_layout Standard
5488 The result is that XHTML output can be customized and extended in exactly
5489  the same way \SpecialChar LaTeX
5490  output can be customized and extended: through layout files
5491  and modules.
5492  See chapter five of the 
5493 \emph on
5494 Customization 
5495 \emph default
5496 manual for the details.
5497 \end_layout
5498
5499 \begin_layout Standard
5500 The remainder of this chapter contains more detailed information on XHTML
5501  output, its limitations, and ways to work around those limitations.
5502 \end_layout
5503
5504 \begin_layout Section
5505 Math Output in XHTML
5506 \end_layout
5507
5508 \begin_layout Standard
5509 \SpecialChar LyX
5510  offers four choices for how math is rendered.
5511  These have various advantages and disadvantages:
5512 \end_layout
5513
5514 \begin_layout Itemize
5515 MathML
5516 \begin_inset Newline newline
5517 \end_inset
5518
5519 MathML is a dialect of XML designed specifically for mathematics on the
5520  web, and it typically renders very well in browsers that support it.
5521  The disadvantage is that not all browsers support MathML, and support is
5522  not complete even in the Gecko-based browsers, such as Firefox.
5523 \begin_inset Newline newline
5524 \end_inset
5525
5526 If \SpecialChar LyX
5527  is unable to render a formula as MathML—for example, if the formula
5528  uses the 
5529 \begin_inset Flex Code
5530 status collapsed
5531
5532 \begin_layout Plain Layout
5533 xymatrix
5534 \end_layout
5535
5536 \end_inset
5537
5538  package or ERT—then it will instead output the formula as an image.
5539  
5540 \end_layout
5541
5542 \begin_layout Itemize
5543 HTML
5544 \begin_inset Newline newline
5545 \end_inset
5546
5547 As mentioned above, 
5548 \begin_inset Flex Code
5549 status collapsed
5550
5551 \begin_layout Plain Layout
5552 elyxer
5553 \end_layout
5554
5555 \end_inset
5556
5557  outputs math as HTML, styled by CSS.
5558 \begin_inset Foot
5559 status collapsed
5560
5561 \begin_layout Plain Layout
5562 \SpecialChar LyX
5563  has borrowed some of the CSS for its HTML output from 
5564 \begin_inset Flex Code
5565 status collapsed
5566
5567 \begin_layout Plain Layout
5568 elyxer
5569 \end_layout
5570
5571 \end_inset
5572
5573 .
5574 \end_layout
5575
5576 \end_inset
5577
5578  For simple formulae, this can work quite well, though with more complicated
5579  formulae it tends to break down.
5580  Still, this method has the advantage that it is very widely supported and
5581  so it may be appropriate for documents that contain only a little, fairly
5582  simple math.
5583 \begin_inset Newline newline
5584 \end_inset
5585
5586 If Lyx is unable to render a formula as HTML—for example, if the formula
5587  uses the 
5588 \begin_inset Flex Code
5589 status collapsed
5590
5591 \begin_layout Plain Layout
5592 xymatrix
5593 \end_layout
5594
5595 \end_inset
5596
5597  package or ERT—then it will instead output the formula as an image.
5598  
5599 \end_layout
5600
5601 \begin_layout Itemize
5602 Images
5603 \begin_inset Newline newline
5604 \end_inset
5605
5606 Like 
5607 \begin_inset Flex Code
5608 status collapsed
5609
5610 \begin_layout Plain Layout
5611 htlatex
5612 \end_layout
5613
5614 \end_inset
5615
5616 , \SpecialChar LyX
5617  will output formulae as images, the very same images, in fact, that are
5618  used for instant preview.
5619 \begin_inset Foot
5620 status collapsed
5621
5622 \begin_layout Plain Layout
5623 Instant preview does 
5624 \emph on
5625 not 
5626 \emph default
5627 have to be on for images to be output, however.
5628 \end_layout
5629
5630 \end_inset
5631
5632  The advantage to this method is that the images are simply generated by
5633  \SpecialChar LaTeX
5634 , so they are very accurate.
5635  The disadvantage, as mentioned earlier, is that these are bitmapped images,
5636  so they do not scale terribly well, and one cannot copy them, etc.
5637 \begin_inset Newline newline
5638 \end_inset
5639
5640 The size of the images can be controlled by setting the 
5641 \begin_inset Quotes eld
5642 \end_inset
5643
5644 Math Images Scaling
5645 \begin_inset Quotes erd
5646 \end_inset
5647
5648  parameter under 
5649 \begin_inset Flex Noun
5650 status collapsed
5651
5652 \begin_layout Plain Layout
5653 Document\SpecialChar menuseparator
5654 Settings\SpecialChar menuseparator
5655 Formats
5656 \end_layout
5657
5658 \end_inset
5659
5660 .
5661 \begin_inset Foot
5662 status collapsed
5663
5664 \begin_layout Plain Layout
5665 For those who want to know, this controls the resolution of the image in
5666  dots per inch and is based upon a default of 75 dpi.
5667 \end_layout
5668
5669 \end_inset
5670
5671
5672 \begin_inset Newline newline
5673 \end_inset
5674
5675 If \SpecialChar LyX
5676  for some reason fails to create an image for a formula (e.g., if a required
5677  \SpecialChar LaTeX
5678  package is not installed), then it will fall back to outputing the raw
5679  \SpecialChar LaTeX
5680 .
5681 \end_layout
5682
5683 \begin_layout Itemize
5684 \SpecialChar LaTeX
5685
5686 \begin_inset Newline newline
5687 \end_inset
5688
5689 Finally, \SpecialChar LyX
5690  will happily output math as \SpecialChar LaTeX
5691 .
5692  As well as being the output of last resort, this method can be used with
5693  such tools as 
5694 \begin_inset CommandInset href
5695 LatexCommand href
5696 name "jsMath"
5697 target "http://www.math.union.edu/~dpvc/jsMath/"
5698 literal "false"
5699
5700 \end_inset
5701
5702 , which uses JavaScript to render \SpecialChar LaTeX
5703  embedded in HTML documents.
5704  \SpecialChar LyX
5705  wraps the \SpecialChar LaTeX
5706  in either a 
5707 \begin_inset Flex Code
5708 status collapsed
5709
5710 \begin_layout Plain Layout
5711 span
5712 \end_layout
5713
5714 \end_inset
5715
5716  (for inline formulas) or 
5717 \begin_inset Flex Code
5718 status collapsed
5719
5720 \begin_layout Plain Layout
5721 div
5722 \end_layout
5723
5724 \end_inset
5725
5726  (for displayed formulas) with 
5727 \begin_inset Flex Code
5728 status collapsed
5729
5730 \begin_layout Plain Layout
5731 class='math'
5732 \end_layout
5733
5734 \end_inset
5735
5736 , as is required for jsMath.
5737 \end_layout
5738
5739 \begin_layout Standard
5740 One of these output methods must be selected under 
5741 \begin_inset Flex Noun
5742 status collapsed
5743
5744 \begin_layout Plain Layout
5745 Document\SpecialChar menuseparator
5746 Settings\SpecialChar menuseparator
5747 Formats
5748 \end_layout
5749
5750 \end_inset
5751
5752 .
5753  By default, \SpecialChar LyX
5754  outputs MathML.
5755  This is a document-wide setting, therefore.
5756 \end_layout
5757
5758 \begin_layout Standard
5759 Eventually, \SpecialChar LyX
5760  will offer the user the option to select an alternate output
5761  method for a particular inset, say, one that isn't being rendered very
5762  well by MathML.
5763 \begin_inset Foot
5764 status collapsed
5765
5766 \begin_layout Plain Layout
5767 That said, since \SpecialChar LyX
5768  falls back to images if the inset contains ERT, then one
5769  can force output as an image by putting some harmless ERT into the math,
5770  for example: 
5771 \begin_inset Formula $a=b\relax$
5772 \end_inset
5773
5774 .
5775 \end_layout
5776
5777 \end_inset
5778
5779
5780 \end_layout
5781
5782 \begin_layout Section
5783 Bibliography and Citations
5784 \end_layout
5785
5786 \begin_layout Standard
5787 XHTML output fully supports bibliographies and citations.
5788  
5789 \end_layout
5790
5791 \begin_layout Standard
5792 Citation labels are generated by the same machinery that generates \SpecialChar LyX
5793 's on-screen
5794  labels, so the labels will look in the output much as they do in \SpecialChar LyX
5795 , though
5796  better.
5797  If you are using numerical citations, then \SpecialChar LyX
5798  will output numerical labels,
5799  such as [1] or [17], rather than simply showing the citation key in square
5800  brackets, as it does on-screen.
5801  If you are using author-year citations, then \SpecialChar LyX
5802  will add lowercase letters
5803  to the years, just as Bib\SpecialChar TeX
5804  does, if it finds more than one citation for
5805  a given author-year combination.
5806  The labels will be printed with the bibliography entries.
5807  Note that there is, at present, no way to customize the appearance of the
5808  labels, for example, to choose between square brackets and parentheses.
5809 \end_layout
5810
5811 \begin_layout Standard
5812 Bibliography output is handled by the same machinery that handles the presentati
5813 on of reference information in the citation dialog, so you will see in the
5814  XHTML output pretty much what you would see if you were to look at a given
5815  entry in the citation dialog.
5816  The formatting can be customized in your layout file or, preferably, in
5817  a module.
5818  See the 
5819 \emph on
5820 Customization
5821 \emph default
5822  manual for the details.
5823 \end_layout
5824
5825 \begin_layout Standard
5826 The main defect at present is that cross-referenced information is printed
5827  with every entry with which it is associated.
5828  So you can see things like this:
5829 \end_layout
5830
5831 \begin_layout Quote
5832 Jason Stanley, 
5833 \begin_inset Quotes eld
5834 \end_inset
5835
5836 Context and Logical Form
5837 \begin_inset Quotes erd
5838 \end_inset
5839
5840 , in 
5841 \emph on
5842 Language in Context: Selected Essays
5843 \emph default
5844  (Oxford: Oxford University Press, 2007), pp.
5845  30–68.
5846 \end_layout
5847
5848 \begin_layout Quote
5849 Jason Stanley, 
5850 \begin_inset Quotes eld
5851 \end_inset
5852
5853 Semantics in Context
5854 \begin_inset Quotes erd
5855 \end_inset
5856
5857 , in 
5858 \emph on
5859 Language in Context: Selected Essays
5860 \emph default
5861  (Oxford: Oxford University Press, 2007), pp.
5862  201–30.
5863 \end_layout
5864
5865 \begin_layout Standard
5866 This should be fixed before long.
5867 \end_layout
5868
5869 \begin_layout Standard
5870 There is no support at present for sectioned bibliographies.
5871  If you have multiple bibliographies, then \SpecialChar LyX
5872  will print the same bibliography
5873  over and over.
5874 \end_layout
5875
5876 \begin_layout Section
5877 Indexes
5878 \end_layout
5879
5880 \begin_layout Standard
5881 \SpecialChar LyX
5882  will happily export indexes as XHTML, but with certain limitations at the
5883  moment.
5884 \end_layout
5885
5886 \begin_layout Standard
5887 Index export will be most reliable when you do not attempt to use the fancy
5888  constructs that are described in the section on indexes in the 
5889 \emph on
5890 User's Guide
5891 \emph default
5892 .
5893 \begin_inset Foot
5894 status collapsed
5895
5896 \begin_layout Plain Layout
5897 The main issue here is that \SpecialChar LyX
5898  itself does not really handle these.
5899  It just lets you enter what you would have to enter in raw \SpecialChar LaTeX
5900 .
5901 \end_layout
5902
5903 \end_inset
5904
5905  We'll describe how they are handled using the subsection headings from
5906  that section.
5907 \end_layout
5908
5909 \begin_layout Itemize
5910 Grouping Index Entries (aka, sub-entries): \SpecialChar LyX
5911  makes an effort to support these,
5912  but the entries must be separated by 
5913 \begin_inset Quotes eld
5914 \end_inset
5915
5916  ! 
5917 \begin_inset Quotes erd
5918 \end_inset
5919
5920 , that is, there must be spaces around the exclamation point.
5921  This is because it is otherwise too difficult to check for escaped exclamation
5922  points, ones in math, and so forth.
5923 \end_layout
5924
5925 \begin_layout Itemize
5926 Page Ranges: There is no support at all for page ranges, since these make
5927  no sense with XHMTL.
5928  Instead, you will just get two index entries, one at either end.
5929 \end_layout
5930
5931 \begin_layout Itemize
5932 Cross-referencing: There is no support for cross-referencing.
5933  If \SpecialChar LyX
5934  finds an entry containing the 
5935 \begin_inset Quotes eld
5936 \end_inset
5937
5938 |see\SpecialChar ldots
5939
5940 \begin_inset Quotes erd
5941 \end_inset
5942
5943  construct, it is just dropped, and the rest is treated as an ordinary index
5944  entry.
5945 \end_layout
5946
5947 \begin_layout Itemize
5948 Index Entry Order: \SpecialChar LyX
5949  does support attempts to fix the sorting order.
5950  It will take what is before the first `@' it finds and use that for sorting,
5951  taking what follows the first `@' to be the actual entry.
5952  At present, \SpecialChar LyX
5953  does not check for escaped `@', so do not try to index email
5954  addresses.
5955 \end_layout
5956
5957 \begin_layout Itemize
5958 Index Entry Layout: You can format entries by using the text style dialog,
5959  or by using any other method available within \SpecialChar LyX
5960  itself.
5961  There is no support for constructs like: 
5962 \begin_inset Quotes eld
5963 \end_inset
5964
5965 entry|textbf
5966 \begin_inset Quotes erd
5967 \end_inset
5968
5969 .
5970  Indeed, if \SpecialChar LyX
5971  finds a pipe symbol, `|', in an entry, it will delete it and
5972  everything that follows it.
5973 \end_layout
5974
5975 \begin_layout Itemize
5976 Multiple Indexes: There is no support for multiple indexes.
5977  Rather, all index entries will be printed as one large index.
5978  To avoid our printing several versions of the index, we print only the
5979  main index, so make sure you have one.
5980 \end_layout
5981
5982 \begin_layout Section
5983 Nomenclature and Glossary
5984 \end_layout
5985
5986 \begin_layout Standard
5987 There is at present no support for glossaries.
5988  Adding it would be fairly trivial, and welcome.
5989 \end_layout
5990
5991 \begin_layout Chapter
5992
5993 \change_inserted 1075283030 1616534180
5994 DocBook Output
5995 \end_layout
5996
5997 \begin_layout Standard
5998
5999 \change_inserted 1075283030 1616534386
6000 Apart from HTML, \SpecialChar LyX
6001  can generate documents in the DocBook XML vocabulary.
6002  With versions 2.3 and before, only select templates could be used to generate
6003  DocBook documents (only version 4).
6004  Starting with \SpecialChar LyX
6005  2.4, most \SpecialChar LyX
6006  layouts can generate valid DocBook documents (only
6007  version 5).
6008  This feature is built into \SpecialChar LyX
6009  and does not require the use of external tools.
6010 \end_layout
6011
6012 \begin_layout Standard
6013
6014 \change_inserted 1075283030 1616534437
6015 The result is that the DocBook output can be customized and extended in
6016  exactly the same way \SpecialChar LaTeX
6017  output can be customized and extended: through layout
6018  files and modules.
6019  See chapter five of the 
6020 \emph on
6021 Customization 
6022 \emph default
6023 manual for the details.
6024 \end_layout
6025
6026 \begin_layout Standard
6027
6028 \change_inserted 1075283030 1616534475
6029 Most \SpecialChar LyX
6030  features are supported with DocBook, like math output.
6031 \end_layout
6032
6033 \begin_layout Itemize
6034
6035 \change_inserted 1075283030 1616534741
6036 Math output is performed mostly in MathML (the major exception being constructio
6037 ns not supported by \SpecialChar LyX
6038 , i.e.
6039  ERTs).
6040  All formulae are also available in raw \SpecialChar TeX
6041  in the DocBook output for further
6042  processing.
6043 \end_layout
6044
6045 \begin_layout Itemize
6046
6047 \change_inserted 1075283030 1616534852
6048 Bibliographies and citations are implemented, including with an external
6049  BibTeX file.
6050  Bibliography entries are not prerendered when the detailed information
6051  are available, but rather output with the standard DocBook constructs.
6052  The external DocBook processor is expected to handle the rendering of entries.
6053 \end_layout
6054
6055 \begin_layout Itemize
6056
6057 \change_inserted 1075283030 1616534863
6058 Indexes are supported, including multiple indices.
6059  Grouping (with 
6060 \family typewriter
6061 !
6062 \family default
6063 ), page ranges, and cross-references (
6064 \family typewriter
6065 |see
6066 \family default
6067 ) are supported, with the exception of the same symbols escaped.
6068  Entry order (
6069 \family typewriter
6070 @
6071 \family default
6072 ) and layout (
6073 \family typewriter
6074 |mathbf
6075 \family default
6076 ) are not supported.
6077  There is no support for escaping of index entries.
6078 \end_layout
6079
6080 \begin_layout Itemize
6081
6082 \change_inserted 1075283030 1616534884
6083 Glossaries are implemented.
6084 \end_layout
6085
6086 \begin_layout Standard
6087
6088 \change_inserted 1075283030 1616534894
6089 Two major parameters can be set at the document level.
6090 \end_layout
6091
6092 \begin_layout Itemize
6093
6094 \change_inserted 1075283030 1616534948
6095 Format for tables: \SpecialChar LyX
6096  can generate tables either as HTML (default value) or
6097  CALS, depending on the user's requirements.
6098  Most DocBook processors accept both formats.
6099 \end_layout
6100
6101 \begin_layout Itemize
6102
6103 \change_inserted 1075283030 1616535006
6104 MathML prefix: in DocBook, MathML is included within its own name space,
6105  unlike HTML.
6106  The implication is that there must be an indication of the tags belonging
6107  to the MathML standard.
6108  Three choices are offered: 
6109 \end_layout
6110
6111 \begin_deeper
6112 \begin_layout Itemize
6113
6114 \change_inserted 1075283030 1616535044
6115 Inline: the MathML name space is defined for each formula (using the 
6116 \family typewriter
6117 xmlns
6118 \family default
6119  attribute on each formula)
6120 \end_layout
6121
6122 \begin_layout Itemize
6123
6124 \change_inserted 1075283030 1616535090
6125 With the 
6126 \family typewriter
6127 m
6128 \family default
6129  prefix (default): the MathML name space is defined at the document level
6130  (using the 
6131 \family typewriter
6132 xmlns:m
6133 \family default
6134  attribute on the root element).
6135  Each MathML is prefixed with 
6136 \family typewriter
6137 m
6138 \family default
6139 : for instance, 
6140 \family typewriter
6141 m:math
6142 \end_layout
6143
6144 \begin_layout Itemize
6145
6146 \change_inserted 1075283030 1616620405
6147 With the 
6148 \family typewriter
6149 mml
6150 \family default
6151  prefix: similar to the 
6152 \family typewriter
6153 m
6154 \family default
6155  option, but with 
6156 \family typewriter
6157 mml
6158 \end_layout
6159
6160 \begin_layout Standard
6161
6162 \change_inserted 1075283030 1616620470
6163 This option is especially useful if you want \SpecialChar LyX
6164  to match your personal style
6165  or to work with buggy software that only accepts one prefix for MathML.
6166 \change_unchanged
6167
6168 \end_layout
6169
6170 \end_deeper
6171 \begin_layout Chapter
6172 The \SpecialChar LyX
6173  Server
6174 \end_layout
6175
6176 \begin_layout Section
6177 Introduction
6178 \end_layout
6179
6180 \begin_layout Standard
6181 The `\SpecialChar LyX
6182  server' allows other programs to talk to \SpecialChar LyX
6183 , invoke \SpecialChar LyX
6184  commands, and retrieve
6185  information about the \SpecialChar LyX
6186  internal state.
6187  This is only intended for advanced users, but they should find it useful.
6188  It is by writing to the \SpecialChar LyX
6189  server, for example, that bibliography managers,
6190  such as JabRef, are able to 
6191 \begin_inset Quotes eld
6192 \end_inset
6193
6194 push
6195 \begin_inset Quotes erd
6196 \end_inset
6197
6198  citations to \SpecialChar LyX
6199 .
6200 \end_layout
6201
6202 \begin_layout Section
6203 Starting the \SpecialChar LyX
6204  Server
6205 \begin_inset CommandInset label
6206 LatexCommand label
6207 name "sec:Starting-the-Server"
6208
6209 \end_inset
6210
6211
6212 \end_layout
6213
6214 \begin_layout Standard
6215 The \SpecialChar LyX
6216  server works through the use of a pair of named pipes.
6217  These are usually located in 
6218 \begin_inset Flex Code
6219 status collapsed
6220
6221 \begin_layout Plain Layout
6222 UserDir
6223 \end_layout
6224
6225 \end_inset
6226
6227 , (except on Windows, where 
6228 \emph on
6229 local
6230 \emph default
6231  named pipes are special objects located in 
6232 \begin_inset Flex Code
6233 status collapsed
6234
6235 \begin_layout Plain Layout
6236
6237 \backslash
6238
6239 \backslash
6240 .
6241 \backslash
6242 pipe
6243 \end_layout
6244
6245 \end_inset
6246
6247 ) and have the names 
6248 \begin_inset Quotes eld
6249 \end_inset
6250
6251
6252 \begin_inset Flex Code
6253 status collapsed
6254
6255 \begin_layout Plain Layout
6256 lyxpipe.in
6257 \end_layout
6258
6259 \end_inset
6260
6261
6262 \begin_inset Quotes erd
6263 \end_inset
6264
6265  and 
6266 \begin_inset Quotes eld
6267 \end_inset
6268
6269
6270 \begin_inset Flex Code
6271 status collapsed
6272
6273 \begin_layout Plain Layout
6274 lyxpipe.out
6275 \end_layout
6276
6277 \end_inset
6278
6279
6280 \begin_inset Quotes erd
6281 \end_inset
6282
6283 .
6284  External programs write into 
6285 \begin_inset Flex Code
6286 status collapsed
6287
6288 \begin_layout Plain Layout
6289 lyxpipe.in
6290 \end_layout
6291
6292 \end_inset
6293
6294  and read back data from 
6295 \begin_inset Flex Code
6296 status collapsed
6297
6298 \begin_layout Plain Layout
6299 lyxpipe.out
6300 \end_layout
6301
6302 \end_inset
6303
6304 .
6305  The stem of the pipe names can be defined in the 
6306 \begin_inset Flex Noun
6307 status collapsed
6308
6309 \begin_layout Plain Layout
6310 Tools\SpecialChar menuseparator
6311 Preferences
6312 \end_layout
6313
6314 \end_inset
6315
6316  dialog, for example 
6317 \begin_inset Flex Code
6318 status collapsed
6319
6320 \begin_layout Plain Layout
6321 "/home/myhome/lyxpipe"
6322 \end_layout
6323
6324 \end_inset
6325
6326 , or 
6327 \begin_inset Flex Code
6328 status collapsed
6329
6330 \begin_layout Plain Layout
6331 "
6332 \backslash
6333
6334 \backslash
6335 .
6336 \backslash
6337 pipe
6338 \backslash
6339 lyxpipe"
6340 \end_layout
6341
6342 \end_inset
6343
6344  on Windows (where any working path instead of lyxpipe can be used, for
6345  example 
6346 \begin_inset Flex Code
6347 status collapsed
6348
6349 \begin_layout Plain Layout
6350 "
6351 \backslash
6352
6353 \backslash
6354 .
6355 \backslash
6356 pipe
6357 \backslash
6358 my
6359 \backslash
6360 lyx
6361 \backslash
6362 pipe"
6363 \end_layout
6364
6365 \end_inset
6366
6367  would also work).
6368  You 
6369 \emph on
6370 must
6371 \emph default
6372  configure this manually in order for the server to start.
6373 \end_layout
6374
6375 \begin_layout Standard
6376 \SpecialChar LyX
6377  will add the '
6378 \begin_inset Flex Code
6379 status collapsed
6380
6381 \begin_layout Plain Layout
6382 .in
6383 \end_layout
6384
6385 \end_inset
6386
6387 ' and '
6388 \begin_inset Flex Code
6389 status collapsed
6390
6391 \begin_layout Plain Layout
6392 .out
6393 \end_layout
6394
6395 \end_inset
6396
6397 ' to create the pipes.
6398  If one of the pipes already exists, \SpecialChar LyX
6399  will assume that another \SpecialChar LyX
6400  process
6401  is already running and will not start the server.
6402  On POSIX (Unix like) systems, if for some other reason, an unused 
6403 \begin_inset Quotes eld
6404 \end_inset
6405
6406 stale
6407 \begin_inset Quotes erd
6408 \end_inset
6409
6410  pipe is left in existence when \SpecialChar LyX
6411  closes, then \SpecialChar LyX
6412  will try to delete it.
6413  If this fails for some reason, you will need to delete the pipes manually
6414  and then restart \SpecialChar LyX
6415 .
6416  On Windows, pipes are deleted by the OS on program termination or crash,
6417  so 
6418 \begin_inset Quotes eld
6419 \end_inset
6420
6421 stale
6422 \begin_inset Quotes erd
6423 \end_inset
6424
6425  pipes should not be possible.
6426 \end_layout
6427
6428 \begin_layout Standard
6429 To have several \SpecialChar LyX
6430  processes with servers at the same time, you have to use
6431  different configurations, perhaps by using separate user directories, each
6432  with its own 
6433 \begin_inset Flex Code
6434 status collapsed
6435
6436 \begin_layout Plain Layout
6437 preferences
6438 \end_layout
6439
6440 \end_inset
6441
6442  file, for each process.
6443 \end_layout
6444
6445 \begin_layout Standard
6446 If you are developing a client program, you might find it useful to enable
6447  debugging information from the \SpecialChar LyX
6448  server.
6449  Do this by starting \SpecialChar LyX
6450  as 
6451 \begin_inset Flex Code
6452 status collapsed
6453
6454 \begin_layout Plain Layout
6455 lyx -dbg lyxserver
6456 \end_layout
6457
6458 \end_inset
6459
6460 .
6461 \end_layout
6462
6463 \begin_layout Standard
6464 You can find a complete example client written in C++ in the source distribution
6465  as 
6466 \begin_inset Flex Code
6467 status collapsed
6468
6469 \begin_layout Plain Layout
6470 development/lyxserver/server_monitor.cpp
6471 \end_layout
6472
6473 \end_inset
6474
6475 .
6476 \end_layout
6477
6478 \begin_layout Standard
6479 Another useful tool is the command-line based client found in 
6480 \begin_inset Flex Code
6481 status collapsed
6482
6483 \begin_layout Plain Layout
6484 src/client/lyxclient
6485 \end_layout
6486
6487 \end_inset
6488
6489 .
6490 \end_layout
6491
6492 \begin_layout Section
6493 Normal communication
6494 \end_layout
6495
6496 \begin_layout Standard
6497 To issue a \SpecialChar LyX
6498  call, the client writes a line of ASCII text into the input
6499  pipe.
6500  This line has the following format:
6501 \end_layout
6502
6503 \begin_layout Quote
6504 LYXCMD:
6505 \emph on
6506 clientname
6507 \emph default
6508 :
6509 \emph on
6510 function
6511 \emph default
6512 :
6513 \emph on
6514 argument
6515 \end_layout
6516
6517 \begin_layout Description
6518 clientname is a name that the client can choose arbitrarily.
6519  Its only use is that \SpecialChar LyX
6520  will echo it if it sends an answer—so a client can
6521  dispatch results from different requesters.
6522 \end_layout
6523
6524 \begin_layout Description
6525 function is the function you want \SpecialChar LyX
6526  to perform.
6527  It is the same as the commands you'd use in the minibuffer.
6528 \end_layout
6529
6530 \begin_layout Description
6531 argument is an optional argument which is meaningful only to some functions
6532  (for instance, the 
6533 \begin_inset Quotes eld
6534 \end_inset
6535
6536 self-insert
6537 \begin_inset Quotes erd
6538 \end_inset
6539
6540  LFUN will insert the argument as text at the cursor position).
6541 \end_layout
6542
6543 \begin_layout Standard
6544 The answer from \SpecialChar LyX
6545  will arrive in the output pipe and be of the form
6546 \end_layout
6547
6548 \begin_layout Quote
6549 INFO:
6550 \emph on
6551 clientname
6552 \emph default
6553 :
6554 \emph on
6555 function
6556 \emph default
6557 :
6558 \emph on
6559 data
6560 \end_layout
6561
6562 \begin_layout Standard
6563 where 
6564 \emph on
6565 clientname
6566 \emph default
6567  and 
6568 \emph on
6569 function
6570 \emph default
6571  are just echoed from the command request, while 
6572 \emph on
6573 data
6574 \emph default
6575  is more or less useful information filled according to how the command
6576  execution worked out.
6577  Some commands, such as 
6578 \begin_inset Quotes eld
6579 \end_inset
6580
6581 font-state
6582 \begin_inset Quotes erd
6583 \end_inset
6584
6585 , will return information about the internal state of \SpecialChar LyX
6586 , while other will
6587  return an empty data-response.
6588  This means that the command execution went fine.
6589 \end_layout
6590
6591 \begin_layout Standard
6592 In case of errors, the response from \SpecialChar LyX
6593  will have this form
6594 \end_layout
6595
6596 \begin_layout Quote
6597 ERROR:
6598 \emph on
6599 clientname
6600 \emph default
6601 :
6602 \emph on
6603 function
6604 \emph default
6605 :
6606 \emph on
6607 error message
6608 \end_layout
6609
6610 \begin_layout Standard
6611 where the 
6612 \emph on
6613 error message
6614 \emph default
6615  should contain an explanation of why the command failed.
6616 \end_layout
6617
6618 \begin_layout Standard
6619 Examples:
6620 \end_layout
6621
6622 \begin_layout LyX-Code
6623 echo "LYXCMD:test:beginning-of-buffer:" >~/.lyxpipe.in
6624 \begin_inset Newline newline
6625 \end_inset
6626
6627 echo "LYXCMD:test:get-xy:" >~/.lyxpipe.in
6628 \begin_inset Newline newline
6629 \end_inset
6630
6631 read a <~/.lyxpipe.out
6632 \begin_inset Newline newline
6633 \end_inset
6634
6635 echo $a
6636 \end_layout
6637
6638 \begin_layout Subsection
6639 AppleScript (Mac OS X)
6640 \end_layout
6641
6642 \begin_layout Standard
6643 Since \SpecialChar LyX
6644  2.1, \SpecialChar LyX
6645  supports basic interactions with AppleScript for normal communicatio
6646 n through the command run.
6647  This command takes a direct argument (the 
6648 \series bold
6649 function
6650 \series default
6651  to perform) and an optional argument.
6652  It either returns the output of the function or triggers an error with
6653  the error message and code.
6654 \end_layout
6655
6656 \begin_layout Standard
6657 Example:
6658 \end_layout
6659
6660 \begin_layout LyX-Code
6661 tell application "\SpecialChar LyX
6662 "
6663 \end_layout
6664
6665 \begin_layout LyX-Code
6666   try
6667 \end_layout
6668
6669 \begin_layout LyX-Code
6670     -- Stores the current file name into f
6671 \end_layout
6672
6673 \begin_layout LyX-Code
6674     set f to (run "server-get-filename" with argument "")
6675 \end_layout
6676
6677 \begin_layout LyX-Code
6678     on error the error_message number the error_number
6679 \end_layout
6680
6681 \begin_layout LyX-Code
6682       display dialog "Error: " & the error_number & ".
6683  " ¬
6684 \end_layout
6685
6686 \begin_layout LyX-Code
6687               & the error_message buttons {"OK"} default button 1
6688 \end_layout
6689
6690 \begin_layout LyX-Code
6691   end try
6692 \end_layout
6693
6694 \begin_layout LyX-Code
6695 end tell
6696 \end_layout
6697
6698 \begin_layout Section
6699 Notification
6700 \end_layout
6701
6702 \begin_layout Standard
6703 \SpecialChar LyX
6704  can notify clients of events going on asynchronously.
6705  Currently it will only do this if the user binds a key sequence with the
6706  function 
6707 \begin_inset Quotes eld
6708 \end_inset
6709
6710 notify
6711 \begin_inset Quotes erd
6712 \end_inset
6713
6714 .
6715  The format of the string \SpecialChar LyX
6716  sends is as follows:
6717 \end_layout
6718
6719 \begin_layout Quote
6720 \begin_inset Flex Code
6721 status collapsed
6722
6723 \begin_layout Plain Layout
6724 NOTIFY:
6725 \end_layout
6726
6727 \end_inset
6728
6729
6730 \emph on
6731 key-sequence
6732 \end_layout
6733
6734 \begin_layout Standard
6735 where 
6736 \emph on
6737 key-sequence
6738 \emph default
6739  is the printed representation of the key sequence that was actually typed
6740  by the user.
6741 \end_layout
6742
6743 \begin_layout Standard
6744 This mechanism can be used to extend \SpecialChar LyX
6745 's command set and implement macros.
6746  Bind some key sequence to 
6747 \begin_inset Quotes eld
6748 \end_inset
6749
6750 notify
6751 \begin_inset Quotes erd
6752 \end_inset
6753
6754 .
6755  Then start a client that listens on the output pipe, dispatches the command
6756  according to the sequence, and starts a function that may use \SpecialChar LyX
6757  calls and
6758  \SpecialChar LyX
6759  requests to issue a command or a series of commands to \SpecialChar LyX
6760 .
6761 \end_layout
6762
6763 \begin_layout Section
6764 The simple \SpecialChar LyX
6765  Server Protocol
6766 \end_layout
6767
6768 \begin_layout Standard
6769 \SpecialChar LyX
6770  implements a simple protocol that can be used for session management.
6771  All messages are of the form
6772 \end_layout
6773
6774 \begin_layout Quote
6775 LYXSRV:
6776 \emph on
6777 clientname
6778 \emph default
6779 :
6780 \emph on
6781 protocol message
6782 \end_layout
6783
6784 \begin_layout Standard
6785 where 
6786 \emph on
6787 protocol message
6788 \emph default
6789  can be 
6790 \begin_inset Quotes eld
6791 \end_inset
6792
6793 hello
6794 \begin_inset Quotes erd
6795 \end_inset
6796
6797  or 
6798 \begin_inset Quotes eld
6799 \end_inset
6800
6801 bye
6802 \begin_inset Quotes erd
6803 \end_inset
6804
6805 .
6806  If 
6807 \begin_inset Quotes eld
6808 \end_inset
6809
6810 hello
6811 \begin_inset Quotes erd
6812 \end_inset
6813
6814  is received from a client, \SpecialChar LyX
6815  will report back to inform the client that
6816  it's listening to it's messages, while 
6817 \begin_inset Quotes eld
6818 \end_inset
6819
6820 bye
6821 \begin_inset Quotes erd
6822 \end_inset
6823
6824  sent from \SpecialChar LyX
6825  will inform clients that \SpecialChar LyX
6826  is closing.
6827 \end_layout
6828
6829 \begin_layout Section
6830 Reverse DVI/PDF search
6831 \end_layout
6832
6833 \begin_layout Standard
6834 Some DVI/PDF viewers
6835 \begin_inset Foot
6836 status collapsed
6837
6838 \begin_layout Plain Layout
6839 The following viewers offer the reverse PDF search feature: Okular on KDE/Linux,
6840  Qpdfview on Unix, Skim on Mac OSX and SumatraPDF on Windows.
6841 \end_layout
6842
6843 \end_inset
6844
6845  provide 
6846 \emph on
6847 reverse search
6848 \emph default
6849  facility (also called 
6850 \emph on
6851 inverse search
6852 \emph default
6853 ).
6854  This means that you can tell \SpecialChar LyX
6855  to put the cursor to a specific line in the
6856  document by clicking at the respective position in the DVI/PDF output.
6857  To achieve this, the viewer must be able to communicate with \SpecialChar LyX
6858 .
6859  This is done via the \SpecialChar LyX
6860  server either by using the named pipe (
6861 \emph on
6862 lyxpipe
6863 \emph default
6864 ), or the UNIX domain socket (
6865 \emph on
6866 lyxsocket
6867 \emph default
6868 ) that \SpecialChar LyX
6869  creates in its temporary directory (this is the way the 
6870 \begin_inset Flex Code
6871 status collapsed
6872
6873 \begin_layout Plain Layout
6874 lyxclient
6875 \end_layout
6876
6877 \end_inset
6878
6879  program communicates with \SpecialChar LyX
6880 ).
6881  In some cases, you need a helper script that mediates between the viewer
6882  and \SpecialChar LyX
6883 , in others, the viewer can communicate with \SpecialChar LyX
6884  directly.
6885  This depends on the selected viewer and on your operating system.
6886  The same applies to the way viewers need to be configured and the way the
6887  reverse search is actually performed.
6888  In what follows, we will thus describe how to setup reverse search for
6889  specific viewers.
6890  Before we turn to this, though, we will explain what needs to be done generally
6891  to enable reverse search in the DVI/PDF output.
6892 \end_layout
6893
6894 \begin_layout Subsection
6895 Automatic setup
6896 \begin_inset CommandInset label
6897 LatexCommand label
6898 name "subsec:rev-search"
6899
6900 \end_inset
6901
6902
6903 \end_layout
6904
6905 \begin_layout Standard
6906 In most cases \SpecialChar LyX
6907  will do the work for you by pressing the following button
6908  in the toolbar: 
6909 \begin_inset Info
6910 type  "icon"
6911 arg   "buffer-toggle-output-sync"
6912 \end_inset
6913
6914 .
6915  Alternatively, you can also enable the feature by checking 
6916 \family sans
6917 Synchronize with Output
6918 \family default
6919  in 
6920 \begin_inset Flex Noun
6921 status collapsed
6922
6923 \begin_layout Plain Layout
6924 Document\SpecialChar menuseparator
6925 Settings\SpecialChar menuseparator
6926 Formats
6927 \end_layout
6928
6929 \end_inset
6930
6931 .
6932  In such a case \SpecialChar LyX
6933  will automatically insert the necessary Sync\SpecialChar TeX
6934  macro (for
6935  PDF) or load the srcltx package (for DVI) respectively.
6936  This option can be easily reached also on 
6937 \begin_inset Flex Code
6938 status collapsed
6939
6940 \begin_layout Plain Layout
6941 View/Update
6942 \end_layout
6943
6944 \end_inset
6945
6946  Toolbar.
6947 \end_layout
6948
6949 \begin_layout Standard
6950 If you need a different setting, you can select or input a custom macro
6951  from the drop down box just below 
6952 \begin_inset Flex Noun
6953 status collapsed
6954
6955 \begin_layout Plain Layout
6956 Document\SpecialChar menuseparator
6957 Settings\SpecialChar menuseparator
6958 Output\SpecialChar menuseparator
6959 Synchronize with Output
6960 \end_layout
6961
6962 \end_inset
6963
6964 .
6965 \end_layout
6966
6967 \begin_layout Standard
6968 Note that the method 
6969 \begin_inset Flex Code
6970 status collapsed
6971
6972 \begin_layout Plain Layout
6973
6974 \backslash
6975 synctex=1
6976 \end_layout
6977
6978 \end_inset
6979
6980  enables gzip compression.
6981  If your viewer does not support it, you should instead use 
6982 \begin_inset Flex Code
6983 status collapsed
6984
6985 \begin_layout Plain Layout
6986
6987 \backslash
6988 synctex=-1
6989 \end_layout
6990
6991 \end_inset
6992
6993 .
6994 \end_layout
6995
6996 \begin_layout Standard
6997 Please also note that including the 
6998 \begin_inset Flex Code
6999 status collapsed
7000
7001 \begin_layout Plain Layout
7002 srcltx
7003 \end_layout
7004
7005 \end_inset
7006
7007  package or 
7008 \begin_inset Flex Code
7009 status collapsed
7010
7011 \begin_layout Plain Layout
7012 src-specials
7013 \end_layout
7014
7015 \end_inset
7016
7017  sometimes has an undesired impact on the typesetting.
7018  Thus, you should switch output synchronization off for the final typesetting
7019  if you use the 
7020 \begin_inset Flex Code
7021 status collapsed
7022
7023 \begin_layout Plain Layout
7024 srcltx
7025 \end_layout
7026
7027 \end_inset
7028
7029  package or 
7030 \begin_inset Flex Code
7031 status collapsed
7032
7033 \begin_layout Plain Layout
7034 src-specials
7035 \end_layout
7036
7037 \end_inset
7038
7039 .
7040  
7041 \end_layout
7042
7043 \begin_layout Standard
7044 In case you need some more special settings that are not covered by the
7045  automatic settings, read the next section about how to set up output synchroniz
7046 ation manually.
7047  If the automatic setup suits your needs, you can readily jump to section
7048 \begin_inset space ~
7049 \end_inset
7050
7051
7052 \begin_inset CommandInset ref
7053 LatexCommand ref
7054 reference "subsec:configuring-viewers"
7055
7056 \end_inset
7057
7058 , where the necessary configuration steps in your viewer – needed both with
7059  the automatic and the manual setup – are described.
7060 \end_layout
7061
7062 \begin_layout Subsection
7063 Manual setup
7064 \end_layout
7065
7066 \begin_layout Standard
7067 \SpecialChar LaTeX
7068  provides several different methods for reverse search.
7069  Some are built-in in the 
7070 \begin_inset Flex Code
7071 status collapsed
7072
7073 \begin_layout Plain Layout
7074 latex/pdflatex
7075 \end_layout
7076
7077 \end_inset
7078
7079  program, some are provided by external packages.
7080  Your choice depends on whether your \SpecialChar LaTeX
7081  distribution already provides a given
7082  method (the built-in methods are rather new) and whether your viewer can
7083  cope with it.
7084  The available methods are described in the following.
7085 \end_layout
7086
7087 \begin_layout Subsubsection*
7088 Built-in DVI-search via src-specials (DVI only) 
7089 \end_layout
7090
7091 \begin_layout Standard
7092 This method provides the DVI file with the necessary information for reverse
7093  search.
7094  It is available in \SpecialChar LaTeX
7095  since quite some time (any somewhat recent \SpecialChar LaTeX
7096  distribution
7097  should include it), and it works reliably.
7098  To enable it, change the 
7099 \begin_inset Flex Noun
7100 status collapsed
7101
7102 \begin_layout Plain Layout
7103 La
7104 \family sans
7105 TeX
7106 \family default
7107  (plain)->DVI
7108 \end_layout
7109
7110 \end_inset
7111
7112  or 
7113 \begin_inset Flex Noun
7114 status collapsed
7115
7116 \begin_layout Plain Layout
7117 La
7118 \family sans
7119 TeX
7120 \family default
7121  (plain)->DraftDVI
7122 \end_layout
7123
7124 \end_inset
7125
7126  converter in 
7127 \begin_inset Flex Noun
7128 status collapsed
7129
7130 \begin_layout Plain Layout
7131 Preferences\SpecialChar menuseparator
7132 File Handling\SpecialChar menuseparator
7133 Converters
7134 \end_layout
7135
7136 \end_inset
7137
7138  to 
7139 \begin_inset Flex Code
7140 status collapsed
7141
7142 \begin_layout Plain Layout
7143 latex -src-specials $$i
7144 \end_layout
7145
7146 \end_inset
7147
7148 .
7149  If this doesn't work, check if your \SpecialChar TeX
7150  engine needs different options (the
7151  syntax might differ in some distributions).
7152 \end_layout
7153
7154 \begin_layout Subsubsection*
7155 External Packages (PDFSync and scrltx) 
7156 \end_layout
7157
7158 \begin_layout Standard
7159 The packages 
7160 \emph on
7161 pdfsync
7162 \emph default
7163  and 
7164 \emph on
7165 scrltx
7166 \emph default
7167  provide reverse search facility for PDF output (via pdflatex) and DVI output,
7168  respectively.
7169  In order to enable it, load the packages in the \SpecialChar LyX
7170  preamble: 
7171 \end_layout
7172
7173 \begin_layout Itemize
7174 \begin_inset Flex Code
7175 status collapsed
7176
7177 \begin_layout Plain Layout
7178
7179 \backslash
7180 usepackage{pdfsync}
7181 \end_layout
7182
7183 \end_inset
7184
7185  for reverse PDF search,
7186 \end_layout
7187
7188 \begin_layout Itemize
7189 \begin_inset Flex Code
7190 status collapsed
7191
7192 \begin_layout Plain Layout
7193
7194 \backslash
7195 usepackage[active]{srcltx}
7196 \end_layout
7197
7198 \end_inset
7199
7200  for reverse DVI search.
7201 \end_layout
7202
7203 \begin_layout Standard
7204 If you want to be able to perform both DVI and PDF reverse searches, you
7205  can also insert in the preamble the following lines
7206 \end_layout
7207
7208 \begin_layout LyX-Code
7209
7210 \backslash
7211 usepackage{ifpdf}
7212 \begin_inset Newline newline
7213 \end_inset
7214
7215
7216 \backslash
7217 ifpdf
7218 \begin_inset Newline newline
7219 \end_inset
7220
7221   
7222 \backslash
7223 usepackage{pdfsync}
7224 \begin_inset Newline newline
7225 \end_inset
7226
7227
7228 \backslash
7229 else
7230 \begin_inset Newline newline
7231 \end_inset
7232
7233   
7234 \backslash
7235 usepackage[active]{srcltx}
7236 \begin_inset Newline newline
7237 \end_inset
7238
7239
7240 \backslash
7241 fi
7242 \end_layout
7243
7244 \begin_layout Standard
7245 This way, you can preview the file as either DVI or PDF (pdflatex) and the
7246  right package will be used.
7247 \end_layout
7248
7249 \begin_layout Standard
7250 Note that PDFSync might affect the output layout of your document.
7251  It is therefore advised to disable PDFsync for final documents.
7252 \end_layout
7253
7254 \begin_layout Subsubsection*
7255 Built-in reverse search via Sync\SpecialChar TeX
7256  (DVI and PDF) 
7257 \end_layout
7258
7259 \begin_layout Standard
7260 Recent versions of 
7261 \begin_inset Flex Code
7262 status collapsed
7263
7264 \begin_layout Plain Layout
7265 (pdf)latex
7266 \end_layout
7267
7268 \end_inset
7269
7270  have built-in support for both PDF and DVI reverse search.
7271  This so-called 
7272 \emph on
7273 Sync\SpecialChar TeX
7274
7275 \emph default
7276  facility is basically the result of the integration of the PDFSync package
7277  to the pdftex program and its merge with the 
7278 \emph on
7279 scr-specials
7280 \emph default
7281  approach.
7282  You need at least \SpecialChar TeX
7283 Live 2008 or a recent Mik\SpecialChar TeX
7284  distribution in order to use
7285  it.
7286 \begin_inset Foot
7287 status collapsed
7288
7289 \begin_layout Plain Layout
7290 For some reason, Mik\SpecialChar TeX
7291  does not understand/obey the command \SpecialChar LyX
7292  inserts into
7293  the preamble when you check the "Enable Forward/Reverse Search" button
7294  in the toolbar and does not generate the necessary info.
7295 \end_layout
7296
7297 \begin_layout Plain Layout
7298 The generation of the required info can be forced by changing the converter
7299  "\SpecialChar LaTeX
7300  (pdflatex) -> PDF (pdflatex)" in Preferences->File handling->Converters
7301  from the default "pdflatex $$i" to "pdflatex -synctex=1 $$i" (i.e., by adding
7302  the -synctex=1 switch).
7303 \end_layout
7304
7305 \end_inset
7306
7307  Also note that only a few PDF viewers (such as Okular and Qpdfview on Unix,
7308  Skim on the Mac, SumatraPDF on Windows; see the next section for details)
7309  already provide Sync\SpecialChar TeX
7310  support.
7311 \end_layout
7312
7313 \begin_layout Standard
7314 To enable Sync\SpecialChar TeX
7315  for DVI output, change the 
7316 \begin_inset Flex Noun
7317 status collapsed
7318
7319 \begin_layout Plain Layout
7320 La
7321 \family sans
7322 TeX
7323 \family default
7324  (plain) -> DVI
7325 \end_layout
7326
7327 \end_inset
7328
7329  or 
7330 \begin_inset Flex Noun
7331 status collapsed
7332
7333 \begin_layout Plain Layout
7334 La
7335 \family sans
7336 TeX
7337 \family default
7338  (plain) -> DraftDVI
7339 \end_layout
7340
7341 \end_inset
7342
7343  converter in 
7344 \begin_inset Flex Noun
7345 status collapsed
7346
7347 \begin_layout Plain Layout
7348 Preferences\SpecialChar menuseparator
7349 File Handling\SpecialChar menuseparator
7350 Converters
7351 \end_layout
7352
7353 \end_inset
7354
7355  to 
7356 \begin_inset Flex Code
7357 status collapsed
7358
7359 \begin_layout Plain Layout
7360 latex -synctex=1 $$i
7361 \end_layout
7362
7363 \end_inset
7364
7365 , and for PDF output, change the 
7366 \begin_inset Flex Noun
7367 status collapsed
7368
7369 \begin_layout Plain Layout
7370 La
7371 \family sans
7372 TeX
7373 \family default
7374  (pdflatex) -> PDF (pdflatex)
7375 \end_layout
7376
7377 \end_inset
7378
7379  converter to 
7380 \begin_inset Flex Code
7381 status collapsed
7382
7383 \begin_layout Plain Layout
7384 pdflatex -synctex=1 $$i
7385 \end_layout
7386
7387 \end_inset
7388
7389 .
7390  Should your viewer not be considered in the following description, or in
7391  case of missing success, please check the documentation of your viewer
7392  whether the viewer needs to be configured for the use with Sync\SpecialChar TeX
7393 .
7394 \begin_inset Foot
7395 status collapsed
7396
7397 \begin_layout Plain Layout
7398 Note that the option 
7399 \begin_inset Flex Code
7400 status collapsed
7401
7402 \begin_layout Plain Layout
7403 -synctex=1
7404 \end_layout
7405
7406 \end_inset
7407
7408  option enables gzip compression.
7409  If your viewer does not support it, you should instead use 
7410 \begin_inset Flex Code
7411 status collapsed
7412
7413 \begin_layout Plain Layout
7414 -synctex=-1
7415 \end_layout
7416
7417 \end_inset
7418
7419 .
7420 \end_layout
7421
7422 \end_inset
7423
7424
7425 \end_layout
7426
7427 \begin_layout Subsection
7428 Configuring and using specific viewers
7429 \begin_inset CommandInset label
7430 LatexCommand label
7431 name "subsec:configuring-viewers"
7432
7433 \end_inset
7434
7435
7436 \end_layout
7437
7438 \begin_layout Subsubsection*
7439 Xdvi (all platforms)
7440 \end_layout
7441
7442 \begin_layout Standard
7443 If you use 
7444 \begin_inset Flex Code
7445 status collapsed
7446
7447 \begin_layout Plain Layout
7448 xdvi
7449 \end_layout
7450
7451 \end_inset
7452
7453 , you don't need to do anything else for performing a reverse DVI search,
7454  as \SpecialChar LyX
7455  already provides the necessary hooks for automatically using the 
7456 \begin_inset Flex Code
7457 status collapsed
7458
7459 \begin_layout Plain Layout
7460 lyxclient
7461 \end_layout
7462
7463 \end_inset
7464
7465  program.
7466  Just setup your document as described above (reverse search is triggered
7467  by Ctrl-click or Alt-click on Mac OSX, respectively).
7468 \end_layout
7469
7470 \begin_layout Standard
7471 However, if for whatever reason you want to use the named pipe instead of
7472  the socket for communicating with \SpecialChar LyX
7473 , simply change the DVI viewer in 
7474 \begin_inset Flex Noun
7475 status collapsed
7476
7477 \begin_layout Plain Layout
7478 Preferences\SpecialChar menuseparator
7479 File Handling\SpecialChar menuseparator
7480 File formats
7481 \end_layout
7482
7483 \end_inset
7484
7485  to
7486 \begin_inset Foot
7487 status collapsed
7488
7489 \begin_layout Plain Layout
7490 On Mac OSX you have to use 
7491 \begin_inset Flex Code
7492 status collapsed
7493
7494 \begin_layout Plain Layout
7495 DISPLAY=:0.0 xdvi -editor "lyxeditor.sh %f %l"
7496 \end_layout
7497
7498 \end_inset
7499
7500
7501 \end_layout
7502
7503 \end_inset
7504
7505  
7506 \begin_inset Flex Code
7507 status collapsed
7508
7509 \begin_layout Plain Layout
7510 xdvi -editor "lyxeditor.sh %f %l"
7511 \end_layout
7512
7513 \end_inset
7514
7515 , where 
7516 \begin_inset Flex Code
7517 status collapsed
7518
7519 \begin_layout Plain Layout
7520 lyxeditor.sh
7521 \end_layout
7522
7523 \end_inset
7524
7525  is a suitable script.
7526  For example, a minimal shell script is the following one:
7527 \end_layout
7528
7529 \begin_layout LyX-Code
7530 #!/bin/sh
7531 \begin_inset Newline newline
7532 \end_inset
7533
7534 LYXPIPE="/path/to/lyxpipe"
7535 \begin_inset Newline newline
7536 \end_inset
7537
7538 COMMAND="LYXCMD:revdvi:server-goto-file-row:$1 $2"
7539 \begin_inset Newline newline
7540 \end_inset
7541
7542 echo "$COMMAND" > "${LYXPIPE}".in || exit
7543 \begin_inset Newline newline
7544 \end_inset
7545
7546 read TMP < "${LYXPIPE}".out || exit
7547 \end_layout
7548
7549 \begin_layout Standard
7550 where 
7551 \begin_inset Flex Code
7552 status collapsed
7553
7554 \begin_layout Plain Layout
7555 /path/to/lyxpipe
7556 \end_layout
7557
7558 \end_inset
7559
7560  is the LyXServer pipe path specified in 
7561 \begin_inset Flex Noun
7562 status collapsed
7563
7564 \begin_layout Plain Layout
7565 Preferences\SpecialChar menuseparator
7566 Paths
7567 \end_layout
7568
7569 \end_inset
7570
7571 .
7572 \begin_inset Foot
7573 status collapsed
7574
7575 \begin_layout Plain Layout
7576 In the 
7577 \begin_inset Flex Code
7578 status collapsed
7579
7580 \begin_layout Plain Layout
7581 development/tools
7582 \end_layout
7583
7584 \end_inset
7585
7586  folder of a source distribution you can find a 
7587 \begin_inset Flex Code
7588 status collapsed
7589
7590 \begin_layout Plain Layout
7591 lyxeditor
7592 \end_layout
7593
7594 \end_inset
7595
7596  script which is able to locate the 
7597 \emph on
7598 lyxpipe
7599 \emph default
7600  based on your preferences.
7601 \end_layout
7602
7603 \end_inset
7604
7605
7606 \end_layout
7607
7608 \begin_layout Subsubsection*
7609 MacDviX (Mac OSX)
7610 \end_layout
7611
7612 \begin_layout Standard
7613 At the end of 
7614 \begin_inset Flex Code
7615 status collapsed
7616
7617 \begin_layout Plain Layout
7618 /Applications/MacDviX_Folder/calleditor.script
7619 \end_layout
7620
7621 \end_inset
7622
7623 , add the following lines:
7624 \end_layout
7625
7626 \begin_layout LyX-Code
7627 /Applications/LyX.app/Contents/MacOS/lyxeditor "$2" $1
7628 \begin_inset Newline newline
7629 \end_inset
7630
7631 exit 1
7632 \end_layout
7633
7634 \begin_layout Standard
7635 Modify the lines accordingly if you install \SpecialChar LyX
7636  somewhere else than in the
7637  Applications folder.
7638 \end_layout
7639
7640 \begin_layout Standard
7641 Reverse search is triggered by Alt-click (OPTION-click).
7642 \end_layout
7643
7644 \begin_layout Subsubsection*
7645 Skim (Mac OSX)
7646 \end_layout
7647
7648 \begin_layout Standard
7649 Enter 
7650 \begin_inset Flex Code
7651 status collapsed
7652
7653 \begin_layout Plain Layout
7654 open -a Skim.app $$i
7655 \end_layout
7656
7657 \end_inset
7658
7659  to the viewer setting in 
7660 \begin_inset Flex Noun
7661 status collapsed
7662
7663 \begin_layout Plain Layout
7664 Preferences\SpecialChar menuseparator
7665 File Handling\SpecialChar menuseparator
7666 File formats\SpecialChar menuseparator
7667 PDF (pdflatex)
7668 \end_layout
7669
7670 \end_inset
7671
7672 , and then in 
7673 \begin_inset Flex Noun
7674 status collapsed
7675
7676 \begin_layout Plain Layout
7677 Skim\SpecialChar menuseparator
7678 Preferences\SpecialChar menuseparator
7679 Sync
7680 \end_layout
7681
7682 \end_inset
7683
7684  choose 
7685 \begin_inset Flex Noun
7686 status collapsed
7687
7688 \begin_layout Plain Layout
7689 custom
7690 \end_layout
7691
7692 \end_inset
7693
7694  preset and enter command 
7695 \begin_inset Flex Noun
7696 status collapsed
7697
7698 \begin_layout Plain Layout
7699 /Applications/\SpecialChar LyX
7700 .app/Contents/MacOS/lyxeditor
7701 \end_layout
7702
7703 \end_inset
7704
7705 .
7706 \end_layout
7707
7708 \begin_layout Standard
7709 Reverse search is triggered by COMMAND-SHIFT-click
7710 \end_layout
7711
7712 \begin_layout Subsubsection*
7713 Evince (GNOME)
7714 \end_layout
7715
7716 \begin_layout Standard
7717 Reverse search with evince does not work out of the box, but it can be achieved
7718  by means of some third party helper scripts.
7719  Please refer to 
7720 \begin_inset CommandInset href
7721 LatexCommand href
7722 target "https://wiki.lyx.org/LyX/SyncTeX"
7723 literal "false"
7724
7725 \end_inset
7726
7727  for details.
7728 \end_layout
7729
7730 \begin_layout Subsubsection*
7731 Okular (KDE)
7732 \end_layout
7733
7734 \begin_layout Standard
7735 Go to 
7736 \begin_inset Flex Noun
7737 status collapsed
7738
7739 \begin_layout Plain Layout
7740 Settings\SpecialChar menuseparator
7741 Configure Okular\SpecialChar menuseparator
7742 Editor
7743 \end_layout
7744
7745 \end_inset
7746
7747  and select LyX
7748 \begin_inset Quotes erd
7749 \end_inset
7750
7751  as editor.
7752  This inserts the appropriate command (
7753 \begin_inset Flex Code
7754 status collapsed
7755
7756 \begin_layout Plain Layout
7757 lyxclient -g %f %l
7758 \end_layout
7759
7760 \end_inset
7761
7762 ).
7763 \end_layout
7764
7765 \begin_layout Standard
7766 Reverse search is triggered by SHIFT-click.
7767
7768 \change_inserted -712698321 1578211026
7769  Note that this only works if Okular is in 
7770 \begin_inset Quotes eld
7771 \end_inset
7772
7773 Browse
7774 \begin_inset Quotes erd
7775 \end_inset
7776
7777  mode (i.
7778 \begin_inset space \thinspace{}
7779 \end_inset
7780
7781 e., the hand symbol is clicked).
7782 \change_unchanged
7783
7784 \end_layout
7785
7786 \begin_layout Subsubsection*
7787 Qpdfview (Unix)
7788 \end_layout
7789
7790 \begin_layout Standard
7791 Qpdfview supports Sync\SpecialChar TeX
7792  since version 0.3.5.
7793  Go to 
7794 \begin_inset Flex Noun
7795 status collapsed
7796
7797 \begin_layout Plain Layout
7798 Edit\SpecialChar menuseparator
7799 Settings\SpecialChar menuseparator
7800 Behavior
7801 \end_layout
7802
7803 \end_inset
7804
7805 , click on the input field of the 
7806 \begin_inset Quotes eld
7807 \end_inset
7808
7809 Source editor
7810 \begin_inset Quotes erd
7811 \end_inset
7812
7813  item and add the command 
7814 \begin_inset Flex Code
7815 status collapsed
7816
7817 \begin_layout Plain Layout
7818 lyxclient -g %1 %2
7819 \end_layout
7820
7821 \end_inset
7822
7823 .
7824 \end_layout
7825
7826 \begin_layout Standard
7827 Reverse search is triggered by double-click or, in more recent versions,
7828  by context menu.
7829 \end_layout
7830
7831 \begin_layout Subsubsection*
7832 YAP (Windows)
7833 \end_layout
7834
7835 \begin_layout Standard
7836 Launch yap, choose its 
7837 \begin_inset Flex Noun
7838 status collapsed
7839
7840 \begin_layout Plain Layout
7841 View\SpecialChar menuseparator
7842 Options
7843 \end_layout
7844
7845 \end_inset
7846
7847  menu and select the 
7848 \begin_inset Quotes eld
7849 \end_inset
7850
7851 Inverse DVI Search
7852 \begin_inset Quotes erd
7853 \end_inset
7854
7855  tab.
7856  Click on the 
7857 \begin_inset Quotes eld
7858 \end_inset
7859
7860 New\SpecialChar ldots
7861
7862 \begin_inset Quotes erd
7863 \end_inset
7864
7865  button and, in the window that opens, enter 
7866 \begin_inset Quotes eld
7867 \end_inset
7868
7869 \SpecialChar LyX
7870  Editor
7871 \begin_inset Quotes erd
7872 \end_inset
7873
7874  (or any other name you like) in the 
7875 \begin_inset Quotes eld
7876 \end_inset
7877
7878 Name:
7879 \begin_inset Quotes erd
7880 \end_inset
7881
7882  field.
7883  Now click on the button labeled 
7884 \begin_inset Quotes eld
7885 \end_inset
7886
7887 \SpecialChar ldots
7888
7889 \begin_inset Quotes erd
7890 \end_inset
7891
7892  to open a file dialog and navigate to the directory containing the batch
7893  file 
7894 \begin_inset Flex Code
7895 status collapsed
7896
7897 \begin_layout Plain Layout
7898 lyxeditor.bat
7899 \end_layout
7900
7901 \end_inset
7902
7903  (see below).
7904  Select 
7905 \begin_inset Flex Code
7906 status collapsed
7907
7908 \begin_layout Plain Layout
7909 lyxeditor.bat
7910 \end_layout
7911
7912 \end_inset
7913
7914  and then specify the program arguments as 
7915 \begin_inset Flex Code
7916 status collapsed
7917
7918 \begin_layout Plain Layout
7919 %f %l
7920 \end_layout
7921
7922 \end_inset
7923
7924 .
7925  The 
7926 \begin_inset Flex Code
7927 status collapsed
7928
7929 \begin_layout Plain Layout
7930 lyxeditor.bat
7931 \end_layout
7932
7933 \end_inset
7934
7935  wrapper is used for communicating with \SpecialChar LyX
7936  through the 
7937 \emph on
7938 lyxpipe
7939 \emph default
7940  and is as follows:
7941 \end_layout
7942
7943 \begin_layout LyX-Code
7944 @echo off
7945 \begin_inset Newline newline
7946 \end_inset
7947
7948 echo LYXCMD:revdvi:server-goto-file-row:%~1 %2> 
7949 \backslash
7950
7951 \backslash
7952 .
7953 \backslash
7954 pipe
7955 \backslash
7956 lyxpipe.in
7957 \begin_inset Newline newline
7958 \end_inset
7959
7960 type 
7961 \backslash
7962
7963 \backslash
7964 .
7965 \backslash
7966 pipe
7967 \backslash
7968 lyxpipe.out
7969 \end_layout
7970
7971 \begin_layout Standard
7972 Make sure that the \SpecialChar LyX
7973 Server pipe path you specified in \SpecialChar LyX
7974  is 
7975 \begin_inset Flex Code
7976 status collapsed
7977
7978 \begin_layout Plain Layout
7979
7980 \backslash
7981
7982 \backslash
7983 .
7984 \backslash
7985 pipe
7986 \backslash
7987 lyxpipe
7988 \end_layout
7989
7990 \end_inset
7991
7992 , otherwise change the 
7993 \begin_inset Flex Code
7994 status collapsed
7995
7996 \begin_layout Plain Layout
7997 lyxeditor.bat
7998 \end_layout
7999
8000 \end_inset
8001
8002  wrapper accordingly.
8003 \end_layout
8004
8005 \begin_layout Standard
8006 In yap, reverse search is triggered by double-click.
8007 \end_layout
8008
8009 \begin_layout Subsubsection*
8010 SumatraPDF (Windows)
8011 \end_layout
8012
8013 \begin_layout Standard
8014 In order to use SumatraPDF for inverse search, enter 
8015 \begin_inset Flex Code
8016 status collapsed
8017
8018 \begin_layout Plain Layout
8019 SumatraPDF -inverse-search "lyxeditor.bat "%f" %l"
8020 \end_layout
8021
8022 \end_inset
8023
8024  in the viewer setting in 
8025 \begin_inset Flex Noun
8026 status collapsed
8027
8028 \begin_layout Plain Layout
8029 Preferences\SpecialChar menuseparator
8030 File Handling\SpecialChar menuseparator
8031 File formats\SpecialChar menuseparator
8032 PDF (pdflatex)
8033 \end_layout
8034
8035 \end_inset
8036
8037 , where 
8038 \begin_inset Flex Code
8039 status collapsed
8040
8041 \begin_layout Plain Layout
8042 lyxeditor.bat
8043 \end_layout
8044
8045 \end_inset
8046
8047  is the previous wrapper.
8048  If SumatraPDF.exe is not in your command PATH, use its full file name.
8049 \end_layout
8050
8051 \begin_layout Standard
8052 Reverse search is triggered by double-click.
8053 \end_layout
8054
8055 \begin_layout Subsubsection*
8056 YAP (Cygwin)
8057 \end_layout
8058
8059 \begin_layout Standard
8060 First of all, make sure that yap is your default DVI viewer in the Windows
8061  environment, then launch it, choose its 
8062 \begin_inset Flex Noun
8063 status collapsed
8064
8065 \begin_layout Plain Layout
8066 View\SpecialChar menuseparator
8067 Options
8068 \end_layout
8069
8070 \end_inset
8071
8072  menu and select the 
8073 \begin_inset Quotes eld
8074 \end_inset
8075
8076 Inverse DVI Search
8077 \begin_inset Quotes erd
8078 \end_inset
8079
8080  tab.
8081  Click on the 
8082 \begin_inset Quotes eld
8083 \end_inset
8084
8085 New\SpecialChar ldots
8086
8087 \begin_inset Quotes erd
8088 \end_inset
8089
8090  button and, in the window that opens, enter 
8091 \begin_inset Quotes eld
8092 \end_inset
8093
8094 \SpecialChar LyX
8095  Editor
8096 \begin_inset Quotes erd
8097 \end_inset
8098
8099  (or any other name you like) in the 
8100 \begin_inset Quotes eld
8101 \end_inset
8102
8103 Name:
8104 \begin_inset Quotes erd
8105 \end_inset
8106
8107  field.
8108  Now click on the button labeled 
8109 \begin_inset Quotes eld
8110 \end_inset
8111
8112 \SpecialChar ldots
8113
8114 \begin_inset Quotes erd
8115 \end_inset
8116
8117  to open a file dialog and navigate to the directory containing the 
8118 \begin_inset Flex Code
8119 status collapsed
8120
8121 \begin_layout Plain Layout
8122 lyxeditor.exe
8123 \end_layout
8124
8125 \end_inset
8126
8127  program (which is installed by default on Cygwin along with the \SpecialChar LyX
8128  executable).
8129  Select 
8130 \begin_inset Flex Code
8131 status collapsed
8132
8133 \begin_layout Plain Layout
8134 lyxeditor.exe
8135 \end_layout
8136
8137 \end_inset
8138
8139  and then specify the program arguments as 
8140 \begin_inset Flex Code
8141 status collapsed
8142
8143 \begin_layout Plain Layout
8144 -g %f %l
8145 \end_layout
8146
8147 \end_inset
8148
8149 .
8150  In this way, you will be using the 
8151 \emph on
8152 lyxsocket
8153 \emph default
8154  for communicating with \SpecialChar LyX
8155 .
8156  If, for whatever reason, you want to use the 
8157 \emph on
8158 lyxpipe
8159 \emph default
8160 , omit the 
8161 \begin_inset Flex Code
8162 status collapsed
8163
8164 \begin_layout Plain Layout
8165 -g
8166 \end_layout
8167
8168 \end_inset
8169
8170  option and be sure to specify the \SpecialChar LyX
8171 Server pipe path in the \SpecialChar LyX
8172  preferences.
8173 \end_layout
8174
8175 \begin_layout Standard
8176 In yap, reverse search is triggered by double-click.
8177 \end_layout
8178
8179 \begin_layout Subsubsection*
8180 SumatraPDF (Cygwin)
8181 \end_layout
8182
8183 \begin_layout Standard
8184 In order to use SumatraPDF for inverse search, enter 
8185 \begin_inset Flex Code
8186 status collapsed
8187
8188 \begin_layout Plain Layout
8189 SumatraPDF -inverse-search "lyxeditor -g %f %l"
8190 \end_layout
8191
8192 \end_inset
8193
8194  in the viewer setting in 
8195 \begin_inset Flex Noun
8196 status collapsed
8197
8198 \begin_layout Plain Layout
8199 Preferences\SpecialChar menuseparator
8200 File Handling\SpecialChar menuseparator
8201 File formats\SpecialChar menuseparator
8202 PDF (pdflatex)
8203 \end_layout
8204
8205 \end_inset
8206
8207 .
8208  If SumatraPDF.exe is not in your command PATH, use its full posix path.
8209  The 
8210 \begin_inset Flex Code
8211 status collapsed
8212
8213 \begin_layout Plain Layout
8214 -g
8215 \end_layout
8216
8217 \end_inset
8218
8219  enables communication via the 
8220 \emph on
8221 lyxsocket
8222 \emph default
8223 .
8224  Again, omit the 
8225 \begin_inset Flex Code
8226 status collapsed
8227
8228 \begin_layout Plain Layout
8229 -g
8230 \end_layout
8231
8232 \end_inset
8233
8234  option if you want to use the 
8235 \emph on
8236 lyxpipe
8237 \emph default
8238 , and be sure to specify the \SpecialChar LyX
8239 Server pipe path in the \SpecialChar LyX
8240  preferences.
8241 \end_layout
8242
8243 \begin_layout Standard
8244 Reverse search is triggered by double-click.
8245 \end_layout
8246
8247 \begin_layout Section
8248 Forward search
8249 \end_layout
8250
8251 \begin_layout Standard
8252 Forward search is, as the name implies, in a sense the 
8253 \begin_inset Quotes eld
8254 \end_inset
8255
8256 opposite
8257 \begin_inset Quotes erd
8258 \end_inset
8259
8260  of reverse search.
8261  It allows you to let the viewer jump to a given position from within \SpecialChar LyX
8262 .
8263  If forward search is set up (as described in what follows), you can put
8264  the cursor anywhere in your \SpecialChar LyX
8265  document, and hit 
8266 \begin_inset Flex Noun
8267 status collapsed
8268
8269 \begin_layout Plain Layout
8270 Navigate\SpecialChar menuseparator
8271 Forward search
8272 \end_layout
8273
8274 \end_inset
8275
8276  (or select 
8277 \begin_inset Flex Noun
8278 status collapsed
8279
8280 \begin_layout Plain Layout
8281 Forward search
8282 \end_layout
8283
8284 \end_inset
8285
8286  in the context menu via right mouse click), and then the viewer will jump
8287  to that position as well.
8288  This implies, of course, that your viewer supports this function.
8289 \end_layout
8290
8291 \begin_layout Standard
8292 To make forward search possible, you first need to provide the generated
8293  output PDF/DVI file with additional information about the \SpecialChar TeX
8294  sources.
8295  This can be done via the methods described in the section 
8296 \begin_inset CommandInset ref
8297 LatexCommand ref
8298 reference "subsec:rev-search"
8299
8300 \end_inset
8301
8302 .
8303 \end_layout
8304
8305 \begin_layout Standard
8306 Additionally, you need to configure \SpecialChar LyX
8307  for using your viewers in 
8308 \begin_inset Flex Noun
8309 status collapsed
8310
8311 \begin_layout Plain Layout
8312 Tools\SpecialChar menuseparator
8313 Preferences\SpecialChar menuseparator
8314 Output\SpecialChar menuseparator
8315 General
8316 \end_layout
8317
8318 \end_inset
8319
8320 .
8321  We provide a range of tested configurations for some viewers, which you
8322  can select from the drop down list.
8323  If none of these configurations suits you, you have to find out and enter
8324  a suitable configuration yourself.
8325  The definition syntax uses the following placeholders:
8326 \end_layout
8327
8328 \begin_layout Itemize
8329 \noindent
8330 \begin_inset Flex Code
8331 status collapsed
8332
8333 \begin_layout Plain Layout
8334 $$n
8335 \end_layout
8336
8337 \end_inset
8338
8339 : row number
8340 \end_layout
8341
8342 \begin_layout Itemize
8343 \noindent
8344 \begin_inset Flex Code
8345 status collapsed
8346
8347 \begin_layout Plain Layout
8348 $$t
8349 \end_layout
8350
8351 \end_inset
8352
8353 : name of the (temporary) exported .tex file (without path)
8354 \end_layout
8355
8356 \begin_layout Itemize
8357 \noindent
8358 \begin_inset Flex Code
8359 status collapsed
8360
8361 \begin_layout Plain Layout
8362 $$f
8363 \end_layout
8364
8365 \end_inset
8366
8367 : name of the (temporary) exported .tex file (including path)
8368 \end_layout
8369
8370 \begin_layout Itemize
8371 \noindent
8372 \begin_inset Flex Code
8373 status collapsed
8374
8375 \begin_layout Plain Layout
8376 $$o
8377 \end_layout
8378
8379 \end_inset
8380
8381 : name of the exported output file (either dvi or pdf, depending on which
8382  one exists in the temporary directory)
8383 \end_layout
8384
8385 \begin_layout Standard
8386 Note that only some of the viewers provide full and usable forward search
8387  functionality out of the box, among them yap, xdvi, okular
8388 \begin_inset Foot
8389 status collapsed
8390
8391 \begin_layout Plain Layout
8392 You might want to set 
8393 \begin_inset Flex Code
8394 status collapsed
8395
8396 \begin_layout Plain Layout
8397 okular --unique
8398 \end_layout
8399
8400 \end_inset
8401
8402  in 
8403 \begin_inset Flex Noun
8404 status collapsed
8405
8406 \begin_layout Plain Layout
8407 Tools\SpecialChar menuseparator
8408 Preferences\SpecialChar menuseparator
8409 File Handling\SpecialChar menuseparator
8410 File
8411 \begin_inset space ~
8412 \end_inset
8413
8414 Formats
8415 \end_layout
8416
8417 \end_inset
8418
8419
8420 \end_layout
8421
8422 \end_inset
8423
8424 , qpdfview, and SumatraPDF
8425 \begin_inset Foot
8426 status collapsed
8427
8428 \begin_layout Plain Layout
8429 SumatraPDF can also use DDE commands through the external program CMCDDE
8430  — downloadable from 
8431 \begin_inset CommandInset href
8432 LatexCommand href
8433 target "http://www.istri.fr/spip/zip/CMCDDE.zip"
8434 literal "false"
8435
8436 \end_inset
8437
8438
8439 \end_layout
8440
8441 \end_inset
8442
8443 .
8444  Others, such as evince
8445 \begin_inset Foot
8446 status collapsed
8447
8448 \begin_layout Plain Layout
8449 Forward search with evince can be achieved by means of third party helper
8450  scripts.
8451  Please refer to 
8452 \begin_inset CommandInset href
8453 LatexCommand href
8454 target "https://wiki.lyx.org/LyX/SyncTeX"
8455 literal "false"
8456
8457 \end_inset
8458
8459  for details.
8460 \end_layout
8461
8462 \end_inset
8463
8464 , require some extra tools in order to use forward search.
8465  While many of the widespread PDF viewers (most notably Adobe Reader) do
8466  not support forward search at all, some other viewers – e.
8467 \begin_inset space \thinspace{}
8468 \end_inset
8469
8470 g.
8471  xpdf – allow at least to reload the document and jump to a specific page
8472  of the file, so you can at least navigate 
8473 \begin_inset Quotes eld
8474 \end_inset
8475
8476 near
8477 \begin_inset Quotes erd
8478 \end_inset
8479
8480 .
8481  This latter functionality is provided by an external call of synctex (see
8482  the predefined example configurations).
8483  
8484 \end_layout
8485
8486 \begin_layout Standard
8487 Forward search works both with DVI and PDF output.
8488  \SpecialChar LyX
8489  simply checks which preview format you have used before (i.
8490 \begin_inset space \thinspace{}
8491 \end_inset
8492
8493 e., which format is already there in the temporary directory) and chooses
8494  the appropriate configuration for the respective format.
8495 \end_layout
8496
8497 \begin_layout Chapter
8498 Special Document Classes
8499 \end_layout
8500
8501 \begin_layout Section
8502
8503 \change_deleted 564990737 1669742044
8504 A&A Paper
8505 \end_layout
8506
8507 \begin_layout Standard
8508
8509 \change_deleted 564990737 1669742044
8510 by 
8511 \noun on
8512 Peter Sütterlin
8513 \end_layout
8514
8515 \begin_layout Subsection
8516
8517 \change_deleted 564990737 1669742044
8518 Introduction
8519 \end_layout
8520
8521 \begin_layout Standard
8522
8523 \change_deleted 564990737 1669742044
8524 This section describes how \SpecialChar LyX
8525  can be used to write articles for submission
8526  to the scientific journal 
8527 \emph on
8528 Astronomy and Astrophysics
8529 \emph default
8530  (
8531 \begin_inset Flex URL
8532 status collapsed
8533
8534 \begin_layout Plain Layout
8535
8536 https://www.aanda.org/
8537 \end_layout
8538
8539 \end_inset
8540
8541 ) using Version 5.01 of the document class 
8542 \family typewriter
8543 aa.cls
8544 \family default
8545 .
8546  This package can be downloaded from the ftp site
8547 \end_layout
8548
8549 \begin_layout Standard
8550
8551 \change_deleted 564990737 1669742044
8552 \begin_inset VSpace medskip
8553 \end_inset
8554
8555
8556 \end_layout
8557
8558 \begin_layout Standard
8559 \align center
8560
8561 \change_deleted 564990737 1669742044
8562 \begin_inset Flex URL
8563 status collapsed
8564
8565 \begin_layout Plain Layout
8566
8567 ftp://ftp.edpsciences.org/pub/aa/readme.html
8568 \end_layout
8569
8570 \end_inset
8571
8572
8573 \end_layout
8574
8575 \begin_layout Standard
8576
8577 \change_deleted 564990737 1669742044
8578 \begin_inset VSpace medskip
8579 \end_inset
8580
8581
8582 \end_layout
8583
8584 \begin_layout Standard
8585
8586 \change_deleted 564990737 1669742044
8587 A manual comes together with that package, and this text is not meant to
8588  replace the original manual but is merely a short guide in how to realize
8589  the correct form of your paper.
8590  
8591 \end_layout
8592
8593 \begin_layout Standard
8594
8595 \change_deleted 564990737 1669742044
8596 Please note that the publisher of the journal was changed from Springer
8597  to EDP Sciences starting January 1, 2001.
8598  That change involved also some slight changes to the style files, namely
8599  the removal of the thesaurus command.
8600  The \SpecialChar LyX
8601  class aa supports the newest version of these style files, V 5.01.
8602  If you have an older version installed, please upgrade.
8603  For compatibility, the old (version 4) layout has been kept as 
8604 \family sans
8605 article (A&A V4)
8606 \family default
8607 .
8608  Please refer to the comments in 
8609 \family typewriter
8610 \SpecialChar LyX
8611 Dir/layouts/aapaper.layout
8612 \family default
8613 .
8614 \end_layout
8615
8616 \begin_layout Subsection
8617
8618 \change_deleted 564990737 1669742044
8619 Getting started
8620 \end_layout
8621
8622 \begin_layout Standard
8623
8624 \change_deleted 564990737 1669742044
8625 It is recommended you start from the example template distributed with \SpecialChar LyX
8626 .
8627  If you are not using a template, note the following settings:
8628 \end_layout
8629
8630 \begin_layout Itemize
8631
8632 \change_deleted 564990737 1669742044
8633 Select 
8634 \family sans
8635 article (A&A)
8636 \family default
8637  in the 
8638 \family sans
8639 Document\SpecialChar menuseparator
8640 Settings
8641 \family default
8642  dialog (OK, that one was obvious).
8643 \end_layout
8644
8645 \begin_layout Itemize
8646
8647 \change_deleted 564990737 1669742044
8648 Don't change the option 
8649 \family sans
8650 Page
8651 \begin_inset space ~
8652 \end_inset
8653
8654 style
8655 \family default
8656 : Leave it set to 
8657 \family sans
8658 default
8659 \family default
8660 .
8661  The whole layout is done by the macros, you shouldn't change anything.
8662 \end_layout
8663
8664 \begin_layout Subsection
8665
8666 \change_deleted 564990737 1669742044
8667 The header block
8668 \end_layout
8669
8670 \begin_layout Standard
8671
8672 \change_deleted 564990737 1669742044
8673 First thing to enter is the header information.
8674  It consists of seven entries, of which some are optional.
8675  They are
8676 \end_layout
8677
8678 \begin_layout Itemize
8679
8680 \change_deleted 564990737 1669742044
8681
8682 \family sans
8683 Title
8684 \family default
8685 : [required] 
8686 \end_layout
8687
8688 \begin_layout Itemize
8689
8690 \change_deleted 564990737 1669742044
8691
8692 \family sans
8693 Subtitle
8694 \family default
8695 : [optional] 
8696 \end_layout
8697
8698 \begin_layout Itemize
8699
8700 \change_deleted 564990737 1669742044
8701
8702 \family sans
8703 Author
8704 \family default
8705 : [required]
8706 \end_layout
8707
8708 \begin_layout Itemize
8709
8710 \change_deleted 564990737 1669742044
8711
8712 \family sans
8713 Address
8714 \family default
8715 : [required]
8716 \end_layout
8717
8718 \begin_layout Itemize
8719
8720 \change_deleted 564990737 1669742044
8721
8722 \family sans
8723 Offprints
8724 \family default
8725 : [optional] if more than one author: whom to contact for offprint requests.
8726 \end_layout
8727
8728 \begin_layout Itemize
8729
8730 \change_deleted 564990737 1669742044
8731
8732 \family sans
8733 Mail
8734 \family default
8735 : [optional] mail address for contacts.
8736 \end_layout
8737
8738 \begin_layout Itemize
8739
8740 \change_deleted 564990737 1669742044
8741
8742 \family sans
8743 Date
8744 \family default
8745 : [required].
8746  Suggested format is 
8747 \family typewriter
8748 Received: <date>; Accepted <date> 
8749 \end_layout
8750
8751 \begin_layout Standard
8752
8753 \change_deleted 564990737 1669742044
8754 There is no need to issue the 
8755 \family typewriter
8756
8757 \backslash
8758 maketitle
8759 \family default
8760  command, this is done automatically by \SpecialChar LyX
8761  when the header is finished.
8762  Although the order of the single header entries doesn't matter it is advised
8763  to keep the above sequence, just to get the best optics and meets the layout
8764  of the real document.
8765 \end_layout
8766
8767 \begin_layout Standard
8768
8769 \change_deleted 564990737 1669742044
8770 If you want to place footnotes in the header block, e.
8771 \begin_inset space \thinspace{}
8772 \end_inset
8773
8774 g.
8775 \begin_inset space \space{}
8776 \end_inset
8777
8778 to state your present address, just use the standard footnote via the menu
8779  
8780 \family sans
8781 Insert\SpecialChar menuseparator
8782 Footnote.
8783
8784 \family default
8785  \SpecialChar LyX
8786  will automagically use the term 
8787 \family typewriter
8788
8789 \backslash
8790 thanks{}
8791 \family default
8792  in that case.
8793 \end_layout
8794
8795 \begin_layout Standard
8796
8797 \change_deleted 564990737 1669742044
8798 Under 
8799 \family sans
8800 Edit\SpecialChar menuseparator
8801 Text Style
8802 \family default
8803 , you'll find two insets which are relevant for the titling:
8804 \end_layout
8805
8806 \begin_layout Itemize
8807
8808 \change_deleted 564990737 1669742044
8809
8810 \family sans
8811 Institute
8812 \family typewriter
8813  
8814 \family default
8815 to mark corresponding author\SpecialChar breakableslash
8816 institute pairs.
8817  The institutes are numbered sequentially as they appear in the 
8818 \family sans
8819 Address
8820 \family default
8821  field, so you have to put a marker to each author.
8822 \end_layout
8823
8824 \begin_layout Itemize
8825
8826 \change_deleted 564990737 1669742044
8827
8828 \family sans
8829 Email
8830 \family default
8831  to supply an email address for fast contact.
8832 \end_layout
8833
8834 \begin_layout Standard
8835
8836 \change_deleted 564990737 1669742044
8837 In addition to these topics, the macros use one additional \SpecialChar LaTeX
8838  command that
8839  has no counterpart in \SpecialChar LyX
8840 :
8841 \end_layout
8842
8843 \begin_layout Itemize
8844
8845 \change_deleted 564990737 1669742044
8846
8847 \family typewriter
8848
8849 \backslash
8850 and
8851 \family default
8852  to separate different names for more than one author and institute, respectivel
8853 y.
8854 \end_layout
8855
8856 \begin_layout Standard
8857
8858 \change_deleted 564990737 1669742044
8859 The appropriate command has to be entered in \SpecialChar LyX
8860  and marked as \SpecialChar LaTeX
8861  code.
8862  See the examples.
8863  
8864 \end_layout
8865
8866 \begin_layout Subsection
8867
8868 \change_deleted 564990737 1669742044
8869 The abstract
8870 \end_layout
8871
8872 \begin_layout Standard
8873
8874 \change_deleted 564990737 1669742044
8875 The abstract should immediately follow the header block.
8876  With version 5 the abstract environment was changed to a command, and there
8877  is now a restriction to only one paragraph.
8878  In addition, it should contain an entry with the keywords.
8879  This is done via the paragraph style 
8880 \family sans
8881 Keywords
8882 \family default
8883 .
8884  Refer to the example paper.
8885 \end_layout
8886
8887 \begin_layout Subsection
8888
8889 \change_deleted 564990737 1669742044
8890 Supported environments
8891 \end_layout
8892
8893 \begin_layout Standard
8894
8895 \change_deleted 564990737 1669742044
8896 The A&A paper layout supports the following environments for structuring
8897  your text:
8898 \end_layout
8899
8900 \begin_layout Itemize
8901
8902 \change_deleted 564990737 1669742044
8903
8904 \family sans
8905 Standard
8906 \end_layout
8907
8908 \begin_layout Itemize
8909
8910 \change_deleted 564990737 1669742044
8911
8912 \family sans
8913 Section
8914 \end_layout
8915
8916 \begin_layout Itemize
8917
8918 \change_deleted 564990737 1669742044
8919
8920 \family sans
8921 Subsection
8922 \end_layout
8923
8924 \begin_layout Itemize
8925
8926 \change_deleted 564990737 1669742044
8927
8928 \family sans
8929 Subsubsection
8930 \end_layout
8931
8932 \begin_layout Itemize
8933
8934 \change_deleted 564990737 1669742044
8935
8936 \family sans
8937 Itemize
8938 \end_layout
8939
8940 \begin_layout Itemize
8941
8942 \change_deleted 564990737 1669742044
8943
8944 \family sans
8945 Enumerate
8946 \end_layout
8947
8948 \begin_layout Itemize
8949
8950 \change_deleted 564990737 1669742044
8951
8952 \family sans
8953 Description
8954 \end_layout
8955
8956 \begin_layout Itemize
8957
8958 \change_deleted 564990737 1669742044
8959
8960 \family sans
8961 Caption
8962 \end_layout
8963
8964 \begin_layout Itemize
8965
8966 \change_deleted 564990737 1669742044
8967
8968 \family sans
8969 Abstract
8970 \end_layout
8971
8972 \begin_layout Itemize
8973
8974 \change_deleted 564990737 1669742044
8975
8976 \family sans
8977 Acknowledgment
8978 \end_layout
8979
8980 \begin_layout Itemize
8981
8982 \change_deleted 564990737 1669742044
8983
8984 \family sans
8985 Bibliography
8986 \end_layout
8987
8988 \begin_layout Itemize
8989
8990 \change_deleted 564990737 1669742044
8991
8992 \family sans
8993 \SpecialChar LaTeX
8994
8995 \end_layout
8996
8997 \begin_layout Subsection
8998
8999 \change_deleted 564990737 1669742044
9000 Commands not supported by \SpecialChar LyX
9001
9002 \end_layout
9003
9004 \begin_layout Standard
9005
9006 \change_deleted 564990737 1669742044
9007 Some commands are not yet supported by the 
9008 \family sans
9009 paper (A&A)
9010 \family default
9011  layout for \SpecialChar LyX
9012 .
9013  Some have already been mentioned.
9014  For the sake of completeness, they are listed all together here:
9015 \end_layout
9016
9017 \begin_layout Itemize
9018
9019 \change_deleted 564990737 1669742044
9020
9021 \family typewriter
9022
9023 \backslash
9024 and
9025 \end_layout
9026
9027 \begin_layout Itemize
9028
9029 \change_deleted 564990737 1669742044
9030
9031 \family typewriter
9032
9033 \backslash
9034 authorrunning
9035 \end_layout
9036
9037 \begin_layout Itemize
9038
9039 \change_deleted 564990737 1669742044
9040
9041 \family typewriter
9042
9043 \backslash
9044 object{}
9045 \end_layout
9046
9047 \begin_layout Itemize
9048
9049 \change_deleted 564990737 1669742044
9050
9051 \family typewriter
9052
9053 \backslash
9054 titlerunning{}
9055 \end_layout
9056
9057 \begin_layout Standard
9058
9059 \change_deleted 564990737 1669742044
9060 If you want to use any of these commands, you have to enter them yourself.
9061  
9062 \series bold
9063 Do not forget to mark them as \SpecialChar LaTeX
9064  code!
9065 \end_layout
9066
9067 \begin_layout Subsection
9068
9069 \change_deleted 564990737 1669742044
9070 Figure and Table Floats
9071 \end_layout
9072
9073 \begin_layout Standard
9074
9075 \change_deleted 564990737 1669742044
9076 \SpecialChar LyX
9077  provides support for the necessary float environments 
9078 \family sans
9079 figure, figure*, table
9080 \family default
9081  and 
9082 \family sans
9083 table*
9084 \family default
9085 , therefore we won't tell much about it here.
9086  Refer to the 
9087 \emph on
9088 User's
9089 \begin_inset space ~
9090 \end_inset
9091
9092 Guide
9093 \emph default
9094 .
9095  Just remember that tables should be left-aligned.
9096  For that, select the table and change the alignment in 
9097 \family sans
9098 Edit\SpecialChar menuseparator
9099 Paragraph
9100 \begin_inset space ~
9101 \end_inset
9102
9103 Settings.
9104 \end_layout
9105
9106 \begin_layout Standard
9107
9108 \change_deleted 564990737 1669742044
9109 There is only one special thing: the figures with caption besides the figure.
9110  To create such a figure, you have to do the following:
9111 \end_layout
9112
9113 \begin_layout Enumerate
9114
9115 \change_deleted 564990737 1669742044
9116 Create a wide figure float: 
9117 \family sans
9118 Insert\SpecialChar menuseparator
9119 Float\SpecialChar menuseparator
9120 Figure
9121 \family default
9122 , then right click in the figure and select 
9123 \family sans
9124 Span
9125 \begin_inset space ~
9126 \end_inset
9127
9128 columns
9129 \family default
9130 .
9131 \end_layout
9132
9133 \begin_layout Enumerate
9134
9135 \change_deleted 564990737 1669742044
9136 Enter your caption text.
9137 \end_layout
9138
9139 \begin_layout Enumerate
9140
9141 \change_deleted 564990737 1669742044
9142 Press 
9143 \family sans
9144 Return
9145 \family default
9146  to move the cursor above the caption.
9147 \end_layout
9148
9149 \begin_layout Enumerate
9150
9151 \change_deleted 564990737 1669742044
9152 Insert your figure
9153 \end_layout
9154
9155 \begin_layout Enumerate
9156
9157 \change_deleted 564990737 1669742044
9158 Position the cursor behind the figure and insert a horizontal fill: 
9159 \family sans
9160 Insert\SpecialChar menuseparator
9161 Special
9162 \begin_inset space ~
9163 \end_inset
9164
9165 Character\SpecialChar menuseparator
9166 Horizontal
9167 \begin_inset space ~
9168 \end_inset
9169
9170 Fill
9171 \family default
9172 .
9173 \end_layout
9174
9175 \begin_layout Enumerate
9176
9177 \change_deleted 564990737 1669742044
9178 Switch to \SpecialChar LaTeX
9179  mode: 
9180 \family sans
9181 M-c
9182 \begin_inset space ~
9183 \end_inset
9184
9185 t
9186 \family default
9187 .
9188 \end_layout
9189
9190 \begin_layout Enumerate
9191
9192 \change_deleted 564990737 1669742044
9193 Enter 
9194 \family typewriter
9195
9196 \backslash
9197 parbox[b]{55mm}{
9198 \family default
9199 .
9200  
9201 \series bold
9202 Do not close the brace!
9203 \end_layout
9204
9205 \begin_layout Enumerate
9206
9207 \change_deleted 564990737 1669742044
9208 Position the cursor behind the caption text, switch to \SpecialChar LaTeX
9209  mode and insert
9210  the closing brace: 
9211 \family sans
9212 M-c
9213 \begin_inset space ~
9214 \end_inset
9215
9216 t
9217 \family default
9218  
9219 \family typewriter
9220 }
9221 \family default
9222 .
9223 \end_layout
9224
9225 \begin_layout Standard
9226
9227 \change_deleted 564990737 1669742044
9228 Also, refer to the figures in the example paper.
9229 \end_layout
9230
9231 \begin_layout Subsection
9232
9233 \change_deleted 564990737 1669742044
9234 Referee layout
9235 \end_layout
9236
9237 \begin_layout Standard
9238
9239 \change_deleted 564990737 1669742044
9240 For submission, the paper has to be formated in a special double-spacing
9241  layout.
9242  For this purpose, you have to give the option 
9243 \family typewriter
9244 referee
9245 \family default
9246  to the document class.
9247  This must be done using the custom class options field in the 
9248 \family sans
9249 Document\SpecialChar menuseparator
9250 Settings
9251 \family default
9252  dialog.
9253  Just enter the string 
9254 \family typewriter
9255 referee
9256 \family default
9257  there.
9258 \end_layout
9259
9260 \begin_layout Subsection
9261
9262 \change_deleted 564990737 1669742044
9263 The example paper
9264 \end_layout
9265
9266 \begin_layout Standard
9267
9268 \change_deleted 564990737 1669742044
9269 The 
9270 \family sans
9271 Examples
9272 \family default
9273  directory contains an example paper written with \SpecialChar LyX
9274 .
9275  It is the example paper from the original macro package, translated to
9276  \SpecialChar LyX
9277 .
9278  Use it for inspiration, and compare the original \SpecialChar LaTeX
9279  code with \SpecialChar LyX
9280  way of writing.
9281 \end_layout
9282
9283 \begin_layout Section
9284 AAS\SpecialChar TeX
9285
9286 \end_layout
9287
9288 \begin_layout Standard
9289 by 
9290 \noun on
9291 Mike Ressler
9292 \end_layout
9293
9294 \begin_layout Subsection
9295 Introduction
9296 \end_layout
9297
9298 \begin_layout Standard
9299 AAS\SpecialChar TeX
9300  is a set of macros produced by the American Astronomical Society to
9301  facilitate electronic manuscript submission to the three journals they
9302  publish: the Astrophysical Journal (including the Letters and Supplement),
9303  the Astronomical Journal, and the Publications of the Astronomical Society
9304  of the Pacific.
9305  \SpecialChar LyX
9306  has proven to be an excellent tool for generating these documents, especially
9307  given its equation, citation, and figure handling capabilities.
9308  \SpecialChar LyX
9309  requires version 5.0 (or higher) of these macros; preferably 6.0, which
9310  is the version described here, or higher.
9311  Versions prior to 5.0 are intended for use with \SpecialChar LaTeX
9312 2.09 and are fundamentally
9313  incompatible with \SpecialChar LyX
9314 .
9315  The AAS\SpecialChar TeX
9316  package may be downloaded from the AAS\SpecialChar TeX
9317  Web site
9318 \end_layout
9319
9320 \begin_layout Standard
9321 \begin_inset VSpace medskip
9322 \end_inset
9323
9324
9325 \end_layout
9326
9327 \begin_layout Standard
9328 \align center
9329 \begin_inset Flex URL
9330 status collapsed
9331
9332 \begin_layout Plain Layout
9333
9334 https://aas.org/aastex/aastex-downloads
9335 \end_layout
9336
9337 \end_inset
9338
9339
9340 \end_layout
9341
9342 \begin_layout Standard
9343 \begin_inset VSpace medskip
9344 \end_inset
9345
9346
9347 \end_layout
9348
9349 \begin_layout Standard
9350 A complete user guide is contained in that package and you should familiarize
9351  yourself with it thoroughly before embarking on writing a paper in \SpecialChar LyX
9352 .
9353  \SpecialChar LyX
9354  will not reduce the need to figure out all the AAS\SpecialChar TeX
9355  commands, it will only
9356  reduce the drudgery of typing everything in.
9357  It is your responsibility to ensure that the final exported \SpecialChar LaTeX
9358  document conforms
9359  completely to the requirements of the journal to which you are submitting
9360  your paper.
9361 \end_layout
9362
9363 \begin_layout Subsection
9364 Starting a New Paper
9365 \end_layout
9366
9367 \begin_layout Standard
9368 I strongly suggest that you start with the AAS\SpecialChar TeX
9369  template file.
9370  Click on 
9371 \family sans
9372 File\SpecialChar menuseparator
9373 New from
9374 \family default
9375  
9376 \family sans
9377 Template
9378 \family default
9379 , enter the new file name, then choose the 
9380 \family typewriter
9381 aastex6.lyx
9382 \family default
9383  template.
9384  This will show the most common fields found in a manuscript.
9385  Simply overwrite the existing text (including the brackets, 
9386 \family typewriter
9387 <>
9388 \family default
9389 ) with the correct information.
9390  Many of the AAS\SpecialChar TeX
9391  commands and environments can be implemented directly in
9392  \SpecialChar LyX
9393 , but some cannot.
9394  For commands such as these, the \SpecialChar LaTeX
9395  code must be entered directly and marked
9396  as such.
9397  Such commands are referred to as \SpecialChar TeX
9398  code, or Evil Red Text.
9399  I tried to minimize the amount of \SpecialChar TeX
9400  code needed in an AAS\SpecialChar TeX
9401  document.
9402 \end_layout
9403
9404 \begin_layout Subsection
9405 Finishing Your Paper
9406 \end_layout
9407
9408 \begin_layout Standard
9409 When the paper is finished to your satisfaction and previews/prints correctly,
9410  there are a few 
9411 \begin_inset Quotes eld
9412 \end_inset
9413
9414 postprocessing
9415 \begin_inset Quotes erd
9416 \end_inset
9417
9418  actions which need to be done before you submit it to the journals.
9419  
9420 \end_layout
9421
9422 \begin_layout Enumerate
9423 Export your paper as a \SpecialChar LaTeX
9424  file (
9425 \family sans
9426 File\SpecialChar menuseparator
9427 Export\SpecialChar menuseparator
9428 \SpecialChar LaTeX
9429
9430 \family default
9431 ).
9432  
9433 \end_layout
9434
9435 \begin_layout Enumerate
9436 Edit the resulting 
9437 \family typewriter
9438 .tex
9439 \family default
9440  file with your favorite text editor
9441 \end_layout
9442
9443 \begin_deeper
9444 \begin_layout Enumerate
9445 remove the comment lines before the 
9446 \family typewriter
9447
9448 \backslash
9449 documentclass
9450 \family default
9451  command
9452 \end_layout
9453
9454 \begin_layout Enumerate
9455 remove the 
9456 \family typewriter
9457
9458 \backslash
9459 usepackage...{fontenc}
9460 \family default
9461  line if it appears (usually just after 
9462 \family typewriter
9463
9464 \backslash
9465 documentclass
9466 \family default
9467 }; also remove the 
9468 \family typewriter
9469
9470 \backslash
9471 secnumdepth
9472 \family default
9473  line if it appears.
9474 \end_layout
9475
9476 \begin_layout Enumerate
9477 remove everything between (and including) the 
9478 \family typewriter
9479
9480 \backslash
9481 makeatletter
9482 \family default
9483  and 
9484 \family typewriter
9485
9486 \backslash
9487 makeatother
9488 \family default
9489  commands, except for any commands you specifically put into the \SpecialChar LaTeX
9490  preamble
9491  (which should appear immediately after the 
9492 \begin_inset Quotes eld
9493 \end_inset
9494
9495 User specified \SpecialChar LaTeX
9496  commands
9497 \begin_inset Quotes erd
9498 \end_inset
9499
9500  comment in the 
9501 \family typewriter
9502 .tex
9503 \family default
9504  file).
9505 \end_layout
9506
9507 \end_deeper
9508 \begin_layout Enumerate
9509 Run the resulting file through \SpecialChar LaTeX
9510  to make sure it still processes correctly.
9511 \end_layout
9512
9513 \begin_layout Enumerate
9514 Reread the journal requirements to make sure your filenames and formats
9515  are correct.
9516 \end_layout
9517
9518 \begin_layout Enumerate
9519 Submit it.
9520 \end_layout
9521
9522 \begin_layout Subsection
9523 Comments On Specific Commands
9524 \end_layout
9525
9526 \begin_layout Standard
9527 I will not describe the detailed usage of the individual AAS\SpecialChar TeX
9528  commands: the
9529  AAS\SpecialChar TeX
9530  User Guide (
9531 \family typewriter
9532 aasguide.tex
9533 \family default
9534 ) gives a good description of each.
9535  Thus it's probably easiest for me to go down the list as found in the guide
9536  and offer comments where necessary.
9537  So let's begin \SpecialChar ldots
9538
9539 \end_layout
9540
9541 \begin_layout Subsubsection
9542 Things that work as expected
9543 \end_layout
9544
9545 \begin_layout Standard
9546 Because they work as you might expect, I simply list them and the section
9547  they are found in: 
9548 \family typewriter
9549
9550 \backslash
9551 documentclass
9552 \family default
9553  (2.1.1), 
9554 \family typewriter
9555
9556 \backslash
9557 begin{document}
9558 \family default
9559  (2.2), 
9560 \family typewriter
9561
9562 \backslash
9563 title
9564 \family default
9565  (2.3), 
9566 \family typewriter
9567
9568 \backslash
9569 author
9570 \family default
9571  (2.3), 
9572 \family typewriter
9573
9574 \backslash
9575 affil
9576 \family default
9577  (2.3), 
9578 \family typewriter
9579
9580 \backslash
9581 abstract
9582 \family default
9583  (2.4), 
9584 \family typewriter
9585
9586 \backslash
9587 keywords
9588 \family default
9589  (2.5), 
9590 \family typewriter
9591
9592 \backslash
9593 section
9594 \family default
9595  (2.7), 
9596 \family typewriter
9597
9598 \backslash
9599 subsection
9600 \family default
9601  (2.7), 
9602 \family typewriter
9603
9604 \backslash
9605 subsubsection
9606 \family default
9607  (2.7), 
9608 \family typewriter
9609
9610 \backslash
9611 paragraph
9612 \family default
9613  (2.7), 
9614 \family typewriter
9615
9616 \backslash
9617 facility
9618 \family default
9619  (2.10), 
9620 \family typewriter
9621
9622 \backslash
9623 begin{displaymath}
9624 \family default
9625  (2.12), 
9626 \family typewriter
9627
9628 \backslash
9629 begin{equation}
9630 \family default
9631  (2.12), 
9632 \family typewriter
9633
9634 \backslash
9635 begin{eqnarray}
9636 \family default
9637  (2.12), 
9638 \family typewriter
9639
9640 \backslash
9641 begin{mathletters}
9642 \family default
9643  (2.12), 
9644 \family typewriter
9645
9646 \backslash
9647 begin{thebibliography}
9648 \family default
9649  (2.13.1), 
9650 \family typewriter
9651
9652 \backslash
9653 bibitem
9654 \family default
9655  (2.13.2), all the cite commands and their variations (2.13.2), the generic
9656  graphicx figure commands (2.14.1), 
9657 \family typewriter
9658
9659 \backslash
9660 begin{table}
9661 \family default
9662  (2.15.4), 
9663 \family typewriter
9664
9665 \backslash
9666 begin{tabular}
9667 \family default
9668  (2.15.4), 
9669 \family typewriter
9670
9671 \backslash
9672 caption
9673 \family default
9674  (2.15.4), 
9675 \family typewriter
9676
9677 \backslash
9678 label
9679 \family default
9680  (2.15.4, amongst other places), 
9681 \family typewriter
9682
9683 \backslash
9684 tablerefs
9685 \family default
9686  (2.15.5), 
9687 \family typewriter
9688
9689 \backslash
9690 tablecomments
9691 \family default
9692  (2.15.5), 
9693 \family typewriter
9694
9695 \backslash
9696 url
9697 \family default
9698  (2.17.4), 
9699 \family typewriter
9700
9701 \backslash
9702 end{document}
9703 \family default
9704  (2.18).
9705 \end_layout
9706
9707 \begin_layout Standard
9708 The following style options also work correctly: 
9709 \family typewriter
9710 longabstract
9711 \family default
9712  (2.4), 
9713 \family typewriter
9714 preprint
9715 \family default
9716  (3.2.1), 
9717 \family typewriter
9718 preprint2
9719 \family default
9720  (3.2.2), 
9721 \family typewriter
9722 eqsecnum
9723 \family default
9724  (3.3), 
9725 \family typewriter
9726 flushrt
9727 \family default
9728  (3.4).
9729  Simply put them in the 
9730 \family sans
9731 Options
9732 \family default
9733  box in 
9734 \family sans
9735 Layout\SpecialChar menuseparator
9736 Document
9737 \family default
9738 .
9739 \end_layout
9740
9741 \begin_layout Subsubsection
9742 Things that work, but require more comment
9743 \end_layout
9744
9745 \begin_layout Standard
9746 The following items work, but require a little more discussion:
9747 \end_layout
9748
9749 \begin_layout Itemize
9750 These items are reserved for use by the journal editors, but you can put
9751  them into the \SpecialChar LaTeX
9752  preamble if you feel compelled to do so: 
9753 \family typewriter
9754
9755 \backslash
9756 received
9757 \family default
9758
9759 \family typewriter
9760
9761 \backslash
9762 revised
9763 \family default
9764
9765 \family typewriter
9766
9767 \backslash
9768 accepted
9769 \family default
9770
9771 \family typewriter
9772
9773 \backslash
9774 ccc
9775 \family default
9776
9777 \family typewriter
9778
9779 \backslash
9780 cpright
9781 \family default
9782  (all from 2.1.3)
9783 \end_layout
9784
9785 \begin_layout Itemize
9786 These items may be placed in the \SpecialChar LaTeX
9787  preamble, and are included as blanks in
9788  the template file: 
9789 \family typewriter
9790
9791 \backslash
9792 slugcomment
9793 \family default
9794  (2.1.4), 
9795 \family typewriter
9796
9797 \backslash
9798 shorttitle
9799 \family default
9800  (2.1.5), 
9801 \family typewriter
9802
9803 \backslash
9804 shortauthors
9805 \family default
9806  (2.1.5)
9807 \end_layout
9808
9809 \begin_layout Itemize
9810
9811 \family typewriter
9812
9813 \backslash
9814 email
9815 \family default
9816  (2.3) – can only be used 
9817 \begin_inset Quotes eld
9818 \end_inset
9819
9820 standalone
9821 \begin_inset Quotes erd
9822 \end_inset
9823
9824 , not in the middle of a paragraph.
9825  Use \SpecialChar TeX
9826  code if you need to embed it.
9827 \end_layout
9828
9829 \begin_layout Itemize
9830
9831 \family typewriter
9832
9833 \backslash
9834 and
9835 \family default
9836  (2.3) – will have extra {} after it.
9837  This should not cause an error.
9838 \end_layout
9839
9840 \begin_layout Itemize
9841
9842 \family typewriter
9843
9844 \backslash
9845 notetoeditor
9846 \family default
9847  (2.6) – can only be used 
9848 \begin_inset Quotes eld
9849 \end_inset
9850
9851 standalone
9852 \begin_inset Quotes erd
9853 \end_inset
9854
9855 , not in the middle of a paragraph.
9856  Use \SpecialChar TeX
9857  code if you need to embed it.
9858 \end_layout
9859
9860 \begin_layout Itemize
9861
9862 \family typewriter
9863
9864 \backslash
9865 placetable
9866 \family default
9867  (2.8) – can't insert a cross-reference tag, you must type the tag name by
9868  hand
9869 \end_layout
9870
9871 \begin_layout Itemize
9872
9873 \family typewriter
9874
9875 \backslash
9876 placefigure
9877 \family default
9878  (2.8) – same as for 
9879 \family typewriter
9880
9881 \backslash
9882 placetable
9883 \end_layout
9884
9885 \begin_layout Itemize
9886
9887 \family typewriter
9888
9889 \backslash
9890 acknowledgements
9891 \family default
9892  (2.9) – will have extra {} after it.
9893  This should not cause an error.
9894 \end_layout
9895
9896 \begin_layout Itemize
9897
9898 \family typewriter
9899
9900 \backslash
9901 appendix
9902 \family default
9903  (2.11) – will have extra {} after it.
9904  This should not cause an error.
9905 \end_layout
9906
9907 \begin_layout Itemize
9908
9909 \family typewriter
9910
9911 \backslash
9912 figcaption
9913 \family default
9914  (2.14.2) – you can insert an optional filename argument by placing the cursor
9915  at the beginning of the text and selecting 
9916 \family sans
9917 Insert\SpecialChar menuseparator
9918 Short Title
9919 \family default
9920 .
9921  
9922 \begin_inset Quotes eld
9923 \end_inset
9924
9925 Short Title
9926 \begin_inset Quotes erd
9927 \end_inset
9928
9929  inserts an optional argument of the type needed by 
9930 \family typewriter
9931
9932 \backslash
9933 figcaption
9934 \family default
9935 .
9936  Hopefully it will be renamed someday.
9937 \end_layout
9938
9939 \begin_layout Itemize
9940
9941 \family typewriter
9942
9943 \backslash
9944 objectname
9945 \family default
9946  (2.17.1) – same as 
9947 \family typewriter
9948
9949 \backslash
9950 figcaption
9951 \family default
9952  for the catalog ID optional parameter
9953 \end_layout
9954
9955 \begin_layout Itemize
9956
9957 \family typewriter
9958
9959 \backslash
9960 dataset
9961 \family default
9962  (2.17.1) – same as 
9963 \family typewriter
9964
9965 \backslash
9966 figcaption
9967 \family default
9968  for the catalog ID optional parameter
9969 \end_layout
9970
9971 \begin_layout Subsubsection
9972 Things not implemented, use \SpecialChar TeX
9973  code
9974 \end_layout
9975
9976 \begin_layout Standard
9977
9978 \family typewriter
9979
9980 \backslash
9981 eqnum
9982 \family default
9983  (2.12), 
9984 \family typewriter
9985
9986 \backslash
9987 setcounter{equation}
9988 \family default
9989  (2.12), Journal name abbreviations (2.13.4), 
9990 \family typewriter
9991
9992 \backslash
9993 figurenum
9994 \family default
9995  (2.14.1), 
9996 \family typewriter
9997
9998 \backslash
9999 epsscale
10000 \family default
10001  (2.14.1), 
10002 \family typewriter
10003
10004 \backslash
10005 plotone
10006 \family default
10007  (2.14.1), 
10008 \family typewriter
10009
10010 \backslash
10011 plottwo
10012 \family default
10013  (2.14.1), 
10014 \family typewriter
10015
10016 \backslash
10017 tablenum
10018 \family default
10019  (2.15.4), 
10020 \family typewriter
10021
10022 \backslash
10023 tableline
10024 \family default
10025  (2.15.4, insert it as the first element in the lefthand cell after where
10026  you want it.
10027  Don't use any of \SpecialChar LyX
10028 's rules in the table), 
10029 \family typewriter
10030
10031 \backslash
10032 tablenotemark
10033 \family default
10034  (2.15.5), 
10035 \family typewriter
10036
10037 \backslash
10038 tablenotetext
10039 \family default
10040  (2.15.5), much of Misc (2.17, except 
10041 \family typewriter
10042
10043 \backslash
10044 objectname
10045 \family default
10046
10047 \family typewriter
10048
10049 \backslash
10050 dataset
10051 \family default
10052
10053 \family typewriter
10054
10055 \backslash
10056 url
10057 \family default
10058 , and 
10059 \family typewriter
10060
10061 \backslash
10062 email
10063 \family default
10064 ; see above), 
10065 \family typewriter
10066
10067 \backslash
10068 singlespace
10069 \family default
10070  (3.1), 
10071 \family typewriter
10072
10073 \backslash
10074 doublespace
10075 \family default
10076  (3.1), 
10077 \family typewriter
10078
10079 \backslash
10080 onecolumn
10081 \family default
10082  (3.2), 
10083 \family typewriter
10084
10085 \backslash
10086 twocolumn
10087 \family default
10088  (3.2)
10089 \end_layout
10090
10091 \begin_layout Subsubsection
10092 Things that cannot be implemented
10093 \end_layout
10094
10095 \begin_layout Standard
10096 \SpecialChar ldots
10097  at least in any meaningful sort of way, so I suggest ignoring them.
10098  They are the references environment (2.13.3), and the deluxetable environment
10099  (2.15).
10100  If you really, really need to use deluxetable, I suggest editing it in
10101  a separate file with a text editor, then using 
10102 \family sans
10103 Insert\SpecialChar menuseparator
10104 Child
10105 \begin_inset space ~
10106 \end_inset
10107
10108 Document
10109 \family default
10110  to include it in your \SpecialChar LyX
10111  document.
10112  See the 
10113 \family typewriter
10114 aas_sample.lyx
10115 \family default
10116  file to see an example of this.
10117 \end_layout
10118
10119 \begin_layout Subsection
10120 FAQs, Tips, Tricks, and Other Ruminations
10121 \end_layout
10122
10123 \begin_layout Subsubsection
10124 Getting \SpecialChar LyX
10125  and AAS\SpecialChar TeX
10126  to cooperate
10127 \end_layout
10128
10129 \begin_layout Standard
10130 It can be a bit tricky to get \SpecialChar LyX
10131  to recognize a new layout and document class.
10132  When all else fails, do this:
10133 \end_layout
10134
10135 \begin_layout Enumerate
10136 Make certain that \SpecialChar LaTeX
10137  can find AAS\SpecialChar TeX
10138 .
10139  Copy sample.tex (and perhaps table.tex) from the AAS\SpecialChar TeX
10140  distribution into a
10141  directory completely unrelated to \SpecialChar LaTeX
10142  or AAS\SpecialChar TeX
10143  and run \SpecialChar LaTeX
10144  on 
10145 \family typewriter
10146 sample.tex
10147 \family default
10148 .
10149 \end_layout
10150
10151 \begin_layout Enumerate
10152 Make certain that 
10153 \family typewriter
10154 aastex.layout
10155 \family default
10156  appears in \SpecialChar LyX
10157 's 
10158 \family typewriter
10159 layouts
10160 \family default
10161  folder
10162 \end_layout
10163
10164 \begin_layout Enumerate
10165 Rerun 
10166 \family sans
10167 Tools\SpecialChar menuseparator
10168 Reconfigure
10169 \family default
10170  in \SpecialChar LyX
10171 , then restart \SpecialChar LyX
10172 .
10173 \end_layout
10174
10175 \begin_layout Enumerate
10176 Open a regular new file, not from a template.
10177  Does AAS\SpecialChar TeX
10178  appear in the class list in 
10179 \family sans
10180 Document\SpecialChar menuseparator
10181 Settings
10182 \family default
10183 ?
10184 \end_layout
10185
10186 \begin_layout Standard
10187 If you get a warning from an existing AAS\SpecialChar TeX
10188  document about not being able
10189  to find the AAS\SpecialChar TeX
10190  layout or a message about 
10191 \begin_inset Quotes eld
10192 \end_inset
10193
10194 You should not mix title layouts with normal ones
10195 \begin_inset Quotes erd
10196 \end_inset
10197
10198 , things haven't been installed correctly.
10199 \end_layout
10200
10201 \begin_layout Subsubsection
10202 \SpecialChar LaTeX
10203  error processing a table 
10204 \end_layout
10205
10206 \begin_layout Standard
10207 \SpecialChar LyX
10208 , by default, attempts to center the table caption/title.
10209  This seems to produce a bad interaction in AAS\SpecialChar TeX
10210  so you should click somewhere
10211  in the caption/title, then select 
10212 \family sans
10213 Edit\SpecialChar menuseparator
10214 Paragraph
10215 \begin_inset space ~
10216 \end_inset
10217
10218 Settings
10219 \family default
10220 , then set the 
10221 \family sans
10222 Alignment
10223 \family default
10224  to 
10225 \family sans
10226 Block
10227 \family default
10228 .
10229  This took care of it for me.
10230 \end_layout
10231
10232 \begin_layout Subsubsection
10233 References
10234 \end_layout
10235
10236 \begin_layout Standard
10237 A couple of things: 1) I have noticed some funny spacing in the reference
10238  entries in the text.
10239  When you enter the bibliography item data, make sure their is 
10240 \emph on
10241 no
10242 \emph default
10243  space between the last author and the parenthesis setting off the year;
10244  
10245 \emph on
10246 e.
10247 \begin_inset space \thinspace{}
10248 \end_inset
10249
10250 g.
10251 \begin_inset space \space{}
10252 \end_inset
10253
10254
10255 \emph default
10256 type 
10257 \family typewriter
10258 Ressler(1992)
10259 \family default
10260 , not 
10261 \family typewriter
10262 Ressler (1992)
10263 \family default
10264 .
10265  2) Entering the references at all is not obvious.
10266  The easiest thing is to start typing your first reference at the end of
10267  the document, then mark it as type 
10268 \family sans
10269 References
10270 \family default
10271 .
10272  That will put a small gray box in front of what you just typed.
10273  Click on the box to fill in the rest of the information.
10274  For new references, go to the end of an existing reference and press return.
10275  That will create a new line with its own box, etc.
10276 \end_layout
10277
10278 \begin_layout Subsubsection
10279 Including EPS files
10280 \end_layout
10281
10282 \begin_layout Standard
10283 Even though AAS\SpecialChar TeX
10284  provides its own figure commands (
10285 \family typewriter
10286
10287 \backslash
10288 plotone
10289 \family default
10290 , for example), I much prefer \SpecialChar LaTeX
10291 's standard figure commands (with the default
10292  graphicx).
10293  You can insert the 
10294 \family typewriter
10295
10296 \backslash
10297 plotone
10298 \family default
10299 , etc.
10300 \begin_inset space ~
10301 \end_inset
10302
10303 commands as \SpecialChar TeX
10304  code into a Figure Float box if you desire, but I never have
10305  much luck getting the layout right.
10306  With the standard graphics, \SpecialChar LyX
10307  will insert a 
10308 \family typewriter
10309
10310 \backslash
10311 usepackage{graphicx}
10312 \family default
10313  command into the \SpecialChar LaTeX
10314  preamble and handle the figures in the standard \SpecialChar LaTeX2e
10315  way,
10316  interspersing the figures in the text.
10317  I believe ApJ accepts figures exactly this way now; AJ might still use
10318  the 
10319 \begin_inset Quotes eld
10320 \end_inset
10321
10322 stack everything at the end
10323 \begin_inset Quotes erd
10324 \end_inset
10325
10326  technique.
10327 \end_layout
10328
10329 \begin_layout Subsubsection
10330 Things I could have done, but didn't
10331 \end_layout
10332
10333 \begin_layout Standard
10334 There are a few 
10335 \begin_inset Quotes eld
10336 \end_inset
10337
10338 pretty
10339 \begin_inset Quotes erd
10340 \end_inset
10341
10342  things I could have implemented, but chose not to.
10343  For instance, I saw no point in double-spacing the text in the \SpecialChar LyX
10344  window,
10345  even though it is double-spaced in the paper manuscript.
10346  Also, I chose not to make separate layouts for the preprint and preprint2
10347  styles.
10348  Since I assume you will spend most of your time in the plain manuscript
10349  mode anyway, I decided not to chew up more disk space with this.
10350  
10351 \end_layout
10352
10353 \begin_layout Subsection
10354 Final Caveat
10355 \end_layout
10356
10357 \begin_layout Standard
10358 Your mileage may vary.
10359  I've now had papers published by both ApJ and AJ that have had 98% of the
10360  effort done in \SpecialChar LyX
10361 ; the last 2% was the \SpecialChar LaTeX
10362  post-processing and a few cleanups.
10363  I have had no trouble with the submission process, and I'm sure the journals
10364  were never aware that there might be a difference.
10365  So, go forth and publish!
10366 \end_layout
10367
10368 \begin_layout Section
10369 AMS \SpecialChar LaTeX
10370
10371 \end_layout
10372
10373 \begin_layout Standard
10374 by 
10375 \noun on
10376 David Johnson
10377 \noun default
10378 ; updated by 
10379 \noun on
10380 Richard Kimberly Heck
10381 \end_layout
10382
10383 \begin_layout Standard
10384 \begin_inset VSpace bigskip
10385 \end_inset
10386
10387
10388 \end_layout
10389
10390 \begin_layout Standard
10391 \noindent
10392 The AMS \SpecialChar LaTeX
10393  layouts are set up to conform to suggested styles for mathematical
10394  papers to be submitted to American Mathematical Society publications.
10395  The layouts are not tailored to a specific journal, but easily can be.
10396  You should refer to the AMS documentation for specific instructions for
10397  each journal (usually it will entail only changing a single line in the
10398  \SpecialChar TeX
10399  output).
10400  That documentation is available on the Web at 
10401 \begin_inset Flex URL
10402 status open
10403
10404 \begin_layout Plain Layout
10405
10406 http://www.ams.org
10407 \end_layout
10408
10409 \end_inset
10410
10411  or by ftp at 
10412 \begin_inset Flex URL
10413 status open
10414
10415 \begin_layout Plain Layout
10416
10417 ftp://ftp.ams.org/pub/tex/amslatex/
10418 \end_layout
10419
10420 \end_inset
10421
10422 .
10423  These layouts are appropriate, and useful, for any mathematical writing.
10424  
10425 \end_layout
10426
10427 \begin_layout Standard
10428 There are two basic AMS \SpecialChar LaTeX
10429  layouts: 
10430 \end_layout
10431
10432 \begin_layout Itemize
10433 amsart: The standard AMS article format.
10434 \end_layout
10435
10436 \begin_layout Itemize
10437 amsbook: the standard AMS book (really, monograph) format.
10438  
10439 \end_layout
10440
10441 \begin_layout Standard
10442 The layouts themselves contain only the minimum necessary to use the AMS
10443  classes.
10444  They do not, in particular, contain any of the `theorem' environments used
10445  for setting theorems, lemmas, and the like.
10446  These are contained, instead, in the 
10447 \begin_inset Flex Code
10448 status collapsed
10449
10450 \begin_layout Plain Layout
10451 Theorems (AMS)
10452 \end_layout
10453
10454 \end_inset
10455
10456  module, which is loaded by default when you select one of the AMS classes.
10457  (It can also be used with other classes and can be removed, if you would
10458  rather use something else.) Less commonly used environments are in the 
10459 \begin_inset Flex Code
10460 status collapsed
10461
10462 \begin_layout Plain Layout
10463 Theorems (AMS-Extended)
10464 \end_layout
10465
10466 \end_inset
10467
10468  module, which must be loaded manually.
10469 \end_layout
10470
10471 \begin_layout Standard
10472 By default, theorems and the like are numbered consecutively throughout
10473  the document, but this may be modified by loading the module 
10474 \begin_inset Flex Code
10475 status collapsed
10476
10477 \begin_layout Plain Layout
10478 Theorems (Order by Section)
10479 \end_layout
10480
10481 \end_inset
10482
10483  or, if you are using 
10484 \begin_inset Flex Code
10485 status collapsed
10486
10487 \begin_layout Plain Layout
10488 book (AMS)
10489 \end_layout
10490
10491 \end_inset
10492
10493 , the module 
10494 \begin_inset Flex Code
10495 status collapsed
10496
10497 \begin_layout Plain Layout
10498 Theorems (Order by Chapter)
10499 \end_layout
10500
10501 \end_inset
10502
10503 .
10504  These will number the results as 
10505 \begin_inset Formula $n.m$
10506 \end_inset
10507
10508 , where the first number refers to the section (or chapter) and the second
10509  refers to the total number of results so far in that section (or chapter).
10510  Many environments are also available unnumbered.
10511  These are indicated by an asterisk at the end.
10512  If you happen to want 
10513 \emph on
10514 only
10515 \emph default
10516  unnumbered results, the module 
10517 \begin_inset Flex Code
10518 status collapsed
10519
10520 \begin_layout Plain Layout
10521 Theorems (Starred)
10522 \end_layout
10523
10524 \end_inset
10525
10526  provides that option.
10527 \end_layout
10528
10529 \begin_layout Standard
10530 Note that these modules do not 
10531 \emph on
10532 have
10533 \emph default
10534  to be used with the AMS classes.
10535  It is perfectly possible to use the 
10536 \begin_inset Flex Code
10537 status collapsed
10538
10539 \begin_layout Plain Layout
10540 Theorems (AMS)
10541 \end_layout
10542
10543 \end_inset
10544
10545  module, and the others mentioned, with other classes, such as 
10546 \begin_inset Flex Code
10547 status collapsed
10548
10549 \begin_layout Plain Layout
10550 article
10551 \end_layout
10552
10553 \end_inset
10554
10555
10556 \begin_inset Flex Code
10557 status collapsed
10558
10559 \begin_layout Plain Layout
10560 report
10561 \end_layout
10562
10563 \end_inset
10564
10565
10566 \begin_inset Flex Code
10567 status collapsed
10568
10569 \begin_layout Plain Layout
10570 book (KOMA-script)
10571 \end_layout
10572
10573 \end_inset
10574
10575 , and so forth.
10576 \end_layout
10577
10578 \begin_layout Subsection
10579 What these layouts provide
10580 \end_layout
10581
10582 \begin_layout Standard
10583 There is a long list of included environments provided by these layouts.
10584  In AMS-\SpecialChar LaTeX
10585 , there is, in fact, an opportunity to define an unlimited variety
10586  of `theorem' environments.
10587  However, the AMS recommends the environments that are available in \SpecialChar LyX
10588 .
10589  
10590 \end_layout
10591
10592 \begin_layout Standard
10593 The following environments—as well as the standard environments, such as
10594  
10595 \begin_inset Flex Noun
10596 status collapsed
10597
10598 \begin_layout Plain Layout
10599 section
10600 \end_layout
10601
10602 \end_inset
10603
10604
10605 \begin_inset Flex Noun
10606 status collapsed
10607
10608 \begin_layout Plain Layout
10609 bibliography
10610 \end_layout
10611
10612 \end_inset
10613
10614
10615 \begin_inset Flex Noun
10616 status collapsed
10617
10618 \begin_layout Plain Layout
10619 title
10620 \end_layout
10621
10622 \end_inset
10623
10624
10625 \begin_inset Flex Noun
10626 status collapsed
10627
10628 \begin_layout Plain Layout
10629 author
10630 \end_layout
10631
10632 \end_inset
10633
10634 , and 
10635 \begin_inset Flex Noun
10636 status collapsed
10637
10638 \begin_layout Plain Layout
10639 date
10640 \end_layout
10641
10642 \end_inset
10643
10644 —are provided by 
10645 \begin_inset Flex Code
10646 status collapsed
10647
10648 \begin_layout Plain Layout
10649 article (AMS)
10650 \end_layout
10651
10652 \end_inset
10653
10654  and 
10655 \begin_inset Flex Code
10656 status collapsed
10657
10658 \begin_layout Plain Layout
10659 book (AMS)
10660 \end_layout
10661
10662 \end_inset
10663
10664 :
10665 \end_layout
10666
10667 \begin_layout Description
10668 Address This should be the author's permanent address.
10669 \end_layout
10670
10671 \begin_layout Description
10672 Current
10673 \begin_inset space ~
10674 \end_inset
10675
10676 Address This should be the author's temporary address at the time of submission,
10677  if different from the Address.
10678 \end_layout
10679
10680 \begin_layout Description
10681 Email Author's e-mail address
10682 \end_layout
10683
10684 \begin_layout Description
10685 URL Author's Web address, if desired.
10686 \end_layout
10687
10688 \begin_layout Description
10689 Keywords Key words or phrases used to identify specific topics discussed
10690  in the paper.
10691 \end_layout
10692
10693 \begin_layout Description
10694 Subjectclass These refer to the AMS Subject Classifications, published and
10695  described in 
10696 \emph on
10697 Mathematical Reviews
10698 \emph default
10699 .
10700  These are also available online at the AMS cites listed above.
10701 \end_layout
10702
10703 \begin_layout Description
10704 Thanks
10705 \end_layout
10706
10707 \begin_layout Description
10708 Dedicatory
10709 \end_layout
10710
10711 \begin_layout Description
10712 Translator
10713 \end_layout
10714
10715 \begin_layout Standard
10716 The following environments are provided by both the 
10717 \begin_inset Flex Code
10718 status collapsed
10719
10720 \begin_layout Plain Layout
10721 Theorems
10722 \end_layout
10723
10724 \end_inset
10725
10726  and 
10727 \begin_inset Flex Code
10728 status collapsed
10729
10730 \begin_layout Plain Layout
10731 Theorems (AMS)
10732 \end_layout
10733
10734 \end_inset
10735
10736  modules, in the latter case in both starred (unnumbered) and unstarred
10737  (numbered) versions.
10738  These same environments are provided only in the starred versions by the
10739  
10740 \begin_inset Flex Code
10741 status collapsed
10742
10743 \begin_layout Plain Layout
10744 Theorems (Starred)
10745 \end_layout
10746
10747 \end_inset
10748
10749  module:
10750 \end_layout
10751
10752 \begin_layout Theorem
10753 This is typically used for the statements of major results.
10754  
10755 \end_layout
10756
10757 \begin_layout Corollary*
10758 This is used for statements which follow fairly directly from previous statement
10759 s.
10760  Again, these can be major results.
10761  
10762 \end_layout
10763
10764 \begin_layout Lemma
10765 These are smaller results needed to prove other statements.
10766 \end_layout
10767
10768 \begin_layout Proposition
10769 These are less major results which (hopefully) add to the general theory
10770  being discussed.
10771 \end_layout
10772
10773 \begin_layout Conjecture
10774 These are statements provided without justification, which the author does
10775  not know how to prove, but which seem to be true (to the author, at least).
10776 \end_layout
10777
10778 \begin_layout Definition*
10779 Guess what this is for.
10780  The font is different for this environment than for the previous ones.
10781  
10782 \end_layout
10783
10784 \begin_layout Example*
10785 Used for examples illustrating proven results.
10786 \end_layout
10787
10788 \begin_layout Problem
10789 It's not really known what this is for.
10790  You should figure it out.
10791 \end_layout
10792
10793 \begin_layout Exercise*
10794 Write a description for this one.
10795 \end_layout
10796
10797 \begin_layout Remark
10798 This environment is also a type of theorem, usually a lesser sort of observation.
10799 \end_layout
10800
10801 \begin_layout Claim*
10802 Often used in the course of giving a proof of a larger result.
10803 \end_layout
10804
10805 \begin_layout Case
10806 Generally, these are used to break up long arguments, using specific instances
10807  of some condition.
10808  
10809 \end_layout
10810
10811 \begin_layout Case
10812 The numbering scheme for cases is on its own, not together with other numbered
10813  statements.
10814  
10815 \end_layout
10816
10817 \begin_layout Proof
10818 At the end of this environment, a QED symbol (usually a square, but it can
10819  vary with different styles) is placed.
10820  If you want to have other environments within this one—for example, Case
10821  environments—and have the QED symbol appear only after them, then the other
10822  environments need to be nested within the proof environment.
10823  See the section 
10824 \emph on
10825 Nesting Environments
10826 \emph default
10827  of the 
10828 \emph on
10829 User's Guide
10830 \emph default
10831  for information on nesting.
10832 \end_layout
10833
10834 \begin_layout Standard
10835 And these environments are provided by 
10836 \begin_inset Flex Code
10837 status collapsed
10838
10839 \begin_layout Plain Layout
10840 Theorems (AMS-Extended)
10841 \end_layout
10842
10843 \end_inset
10844
10845 :
10846 \end_layout
10847
10848 \begin_layout Criterion*
10849 A required condition.
10850 \end_layout
10851
10852 \begin_layout Algorithm*
10853 A general procedure to be used.
10854 \end_layout
10855
10856 \begin_layout Axiom*
10857 This is a property or statement taken as true within the system being discussed.
10858 \end_layout
10859
10860 \begin_layout Condition*
10861 Sometimes used to state a condition assumed within the present context of
10862  discussion.
10863 \end_layout
10864
10865 \begin_layout Note*
10866 Similar to a Remark.
10867 \end_layout
10868
10869 \begin_layout Notation*
10870 Used for the explanation of, yes, notation.
10871 \end_layout
10872
10873 \begin_layout Summary
10874 Do we really need to tell you? 
10875 \end_layout
10876
10877 \begin_layout Acknowledgement*
10878 Acknowledgement.
10879 \end_layout
10880
10881 \begin_layout Conclusion*
10882 Sometimes used at the end of a long train of argument.
10883 \end_layout
10884
10885 \begin_layout Fact
10886 Used in a way similar to Proposition, though perhaps lower on the scale.
10887 \end_layout
10888
10889 \begin_layout Standard
10890 In addition, the AMS classes automatically provide the AMS \SpecialChar LaTeX
10891  and AMS fonts
10892  packages.
10893  They need to be available on your system in order to use these environments.
10894 \end_layout
10895
10896 \begin_layout Section
10897 Broadway
10898 \end_layout
10899
10900 \begin_layout Standard
10901 by 
10902 \shape smallcaps
10903 Garst Reese
10904 \end_layout
10905
10906 \begin_layout Subsection
10907 Introduction
10908 \end_layout
10909
10910 \begin_layout Standard
10911 Broadway is for writing plays.
10912  The format is more decorative than Hollywood, and much less standardized.
10913  This format should be suitable for workshops.
10914 \end_layout
10915
10916 \begin_layout Subsection
10917 Special problems
10918 \end_layout
10919
10920 \begin_layout Standard
10921 The same as in Hollywood.
10922 \end_layout
10923
10924 \begin_layout Subsection
10925 Special features
10926 \end_layout
10927
10928 \begin_layout Standard
10929 Insert the 
10930 \family sans
10931 Speaker
10932 \family default
10933  names as labels then cross-reference the label to insert the name.
10934  The cross-reference dialog will show the current cast of characters.
10935 \end_layout
10936
10937 \begin_layout Subsection
10938 Paper size and Margins
10939 \end_layout
10940
10941 \begin_layout Standard
10942 USLetter, left 1.6in, right 0.75in, top 0.5in, bottom 0.75in
10943 \end_layout
10944
10945 \begin_layout Subsection
10946 Environments
10947 \end_layout
10948
10949 \begin_layout Standard
10950 The following environments are available.
10951  You can use broadway.bind to get the bind keys shown at the right.
10952 \end_layout
10953
10954 \begin_layout Itemize
10955
10956 \family sans
10957 Standard
10958 \begin_inset Newline newline
10959 \end_inset
10960
10961
10962 \family default
10963 You should not have to use this, but it is here for anything that does not
10964  fit otherwise.
10965 \end_layout
10966
10967 \begin_layout Itemize
10968
10969 \family sans
10970 Narrative
10971 \begin_inset space \hfill{}
10972 \end_inset
10973
10974 M-z n
10975 \begin_inset Newline newline
10976 \end_inset
10977
10978
10979 \family default
10980 Used to describe stage setting and the action.
10981  First use of speaker names in all CAPs.
10982 \end_layout
10983
10984 \begin_layout Itemize
10985
10986 \family sans
10987 ACT
10988 \begin_inset space \hfill{}
10989 \end_inset
10990
10991 M-z a
10992 \begin_inset Newline newline
10993 \end_inset
10994
10995
10996 \family default
10997 Automatically numbered.
10998  On screen it will be arabic, but will print as Roman.
10999 \end_layout
11000
11001 \begin_layout Itemize
11002
11003 \family sans
11004 ACT*
11005 \begin_inset space \hfill{}
11006 \end_inset
11007
11008 M-z S at
11009 \begin_inset Newline newline
11010 \end_inset
11011
11012
11013 \family default
11014 Subtitle for 
11015 \family sans
11016 ACT.
11017
11018 \family default
11019  It is just centered text.
11020 \end_layout
11021
11022 \begin_layout Itemize
11023
11024 \family sans
11025 SCENE
11026 \begin_inset space \hfill{}
11027 \end_inset
11028
11029 M-z S-S
11030 \begin_inset Newline newline
11031 \end_inset
11032
11033
11034 \family default
11035 Not automatically numbered.
11036  You supply the number.
11037  This is because I couldn't figure out how.
11038 \end_layout
11039
11040 \begin_layout Itemize
11041
11042 \family sans
11043 AT_RISE:
11044 \begin_inset space \hfill{}
11045 \end_inset
11046
11047 M-z S-R
11048 \begin_inset Newline newline
11049 \end_inset
11050
11051
11052 \family default
11053 A special case of Narrative to describe the setting and action as the curtain
11054  rises.
11055 \end_layout
11056
11057 \begin_layout Itemize
11058
11059 \family sans
11060 Speaker
11061 \begin_inset space \hfill{}
11062 \end_inset
11063
11064 M-z s
11065 \begin_inset Newline newline
11066 \end_inset
11067
11068
11069 \family default
11070 The speaker's (actor's) title, centered in all CAPS.
11071 \end_layout
11072
11073 \begin_layout Itemize
11074
11075 \family sans
11076 Parenthetical
11077 \begin_inset space \hfill{}
11078 \end_inset
11079
11080 M-z p
11081 \begin_inset Newline newline
11082 \end_inset
11083
11084
11085 \family default
11086 Instructions to the speaker.
11087  The parentheses are automatically inserted.
11088  The ( will appear on screen, but both will be in the printed play.
11089  This environment is only used within 
11090 \family sans
11091 Dialogue
11092 \family default
11093 .
11094 \end_layout
11095
11096 \begin_layout Itemize
11097
11098 \family sans
11099 Dialogue
11100 \begin_inset space \hfill{}
11101 \end_inset
11102
11103 M-z d
11104 \begin_inset Newline newline
11105 \end_inset
11106
11107
11108 \family default
11109 What the Speaker says.
11110 \end_layout
11111
11112 \begin_layout Itemize
11113
11114 \family sans
11115 CURTAIN
11116 \begin_inset space \hfill{}
11117 \end_inset
11118
11119 M-z S-C
11120 \begin_inset Newline newline
11121 \end_inset
11122
11123
11124 \family default
11125 The curtain comes down.
11126 \end_layout
11127
11128 \begin_layout Itemize
11129
11130 \family sans
11131 Title
11132 \begin_inset space \hfill{}
11133 \end_inset
11134
11135 M-z S-T
11136 \end_layout
11137
11138 \begin_layout Itemize
11139
11140 \family sans
11141 Author
11142 \begin_inset space \hfill{}
11143 \end_inset
11144
11145 M-z S-A
11146 \end_layout
11147
11148 \begin_layout Itemize
11149
11150 \family sans
11151 Right_Address
11152 \begin_inset space \hfill{}
11153 \end_inset
11154
11155 M-z r
11156 \end_layout
11157
11158 \begin_layout Standard
11159 Hello there.
11160 \end_layout
11161
11162 \begin_layout Section
11163 Dinbrief
11164 \end_layout
11165
11166 \begin_layout Standard
11167 The document class 
11168 \family sans
11169 dinbrief
11170 \family default
11171  can be used to type letters according to German conventions.
11172  A template file is included in 
11173 \family typewriter
11174 .../lyx/share/templates
11175 \family default
11176  for you to use as a starting point.
11177 \end_layout
11178
11179 \begin_layout Section
11180 Elsevier Journals
11181 \end_layout
11182
11183 \begin_layout Standard
11184 See the \SpecialChar LyX
11185  template file 
11186 \family typewriter
11187 elsarticle.lyx
11188 \family default
11189 .
11190  It contains all infos you need.
11191 \end_layout
11192
11193 \begin_layout Section
11194 Foils [aka 
11195 \family sans
11196 Foil\SpecialChar TeX
11197
11198 \family default
11199 ]
11200 \begin_inset CommandInset label
11201 LatexCommand label
11202 name "sec:foiltex"
11203
11204 \end_inset
11205
11206
11207 \end_layout
11208
11209 \begin_layout Standard
11210 by 
11211 \noun on
11212 Allan Rae
11213 \end_layout
11214
11215 \begin_layout Subsection
11216 Introduction
11217 \end_layout
11218
11219 \begin_layout Standard
11220 This section describes how to use \SpecialChar LyX
11221  to make slides for overhead projectors.
11222  There are two document classes that can do this: the default slides class
11223  and the 
11224 \family sans
11225 Foil\SpecialChar TeX
11226
11227 \family default
11228  slides class.
11229  This section documents the latter.
11230 \end_layout
11231
11232 \begin_layout Standard
11233 I'm going to say this again, nice and clear, so that there's no misunderstanding
11234 :
11235 \end_layout
11236
11237 \begin_layout Standard
11238 \begin_inset VSpace bigskip
11239 \end_inset
11240
11241
11242 \end_layout
11243
11244 \begin_layout Standard
11245 \align center
11246
11247 \size large
11248 This section documents the class 
11249 \begin_inset Quotes eld
11250 \end_inset
11251
11252
11253 \family sans
11254 FoilTeX
11255 \family default
11256
11257 \begin_inset Quotes erd
11258 \end_inset
11259
11260  
11261 \emph on
11262 only.
11263 \end_layout
11264
11265 \begin_layout Standard
11266 \begin_inset VSpace bigskip
11267 \end_inset
11268
11269
11270 \end_layout
11271
11272 \begin_layout Standard
11273 If you're looking for the documentation for 
11274 \begin_inset Quotes eld
11275 \end_inset
11276
11277
11278 \family sans
11279 slides (default)
11280 \family default
11281
11282 \begin_inset Quotes erd
11283 \end_inset
11284
11285 , check out section
11286 \begin_inset space ~
11287 \end_inset
11288
11289
11290 \begin_inset CommandInset ref
11291 LatexCommand ref
11292 reference "sec:slitex"
11293
11294 \end_inset
11295
11296 .
11297  If your machine doesn't have the 
11298 \family sans
11299 foils
11300 \family default
11301  class 
11302 \family sans
11303 FoilTeX
11304 \family default
11305  installed, you'll probably have to use the default 
11306 \family sans
11307 slides
11308 \family default
11309  class, which isn't quite as good as 
11310 \family sans
11311 foils.
11312 \end_layout
11313
11314 \begin_layout Standard
11315 The 
11316 \family sans
11317 foils
11318 \family default
11319  class is designed for use with version
11320 \begin_inset space ~
11321 \end_inset
11322
11323 2.1 of the 
11324 \family sans
11325 foils.cls
11326 \family default
11327  \SpecialChar LaTeX
11328  class file which is now an integral part of \SpecialChar LaTeX2e
11329 .
11330 \end_layout
11331
11332 \begin_layout Subsection
11333 Getting Started
11334 \end_layout
11335
11336 \begin_layout Standard
11337 Obviously, to use this document class, you need to select 
11338 \family sans
11339 FoilTeX
11340 \family default
11341  from the 
11342 \family sans
11343 Class
11344 \family default
11345  entry in the 
11346 \family sans
11347 Document
11348 \begin_inset space ~
11349 \end_inset
11350
11351 Layout
11352 \family default
11353  dialog.
11354  There are some settings in the 
11355 \family sans
11356 Document
11357 \begin_inset space ~
11358 \end_inset
11359
11360 Layout
11361 \family default
11362  dialog that you should know about that are specific to this class:
11363 \end_layout
11364
11365 \begin_layout Itemize
11366 Don't change the options 
11367 \family sans
11368 Sides
11369 \family default
11370  and 
11371 \family sans
11372 Columns
11373 \family default
11374  on the 
11375 \family sans
11376 Document
11377 \begin_inset space ~
11378 \end_inset
11379
11380 Layout
11381 \family default
11382  dialog.
11383  They're ignored by the 
11384 \family sans
11385 foils
11386 \family default
11387  class.
11388 \end_layout
11389
11390 \begin_layout Itemize
11391 The default font size is 20
11392 \begin_inset space \thinspace{}
11393 \end_inset
11394
11395 pt with the other options being 17
11396 \begin_inset space \thinspace{}
11397 \end_inset
11398
11399 pt, 25
11400 \begin_inset space \thinspace{}
11401 \end_inset
11402
11403 pt and 30
11404 \begin_inset space \thinspace{}
11405 \end_inset
11406
11407 pt.
11408 \end_layout
11409
11410 \begin_layout Itemize
11411 The default font is 
11412 \family sans
11413 sans
11414 \family default
11415  
11416 \family sans
11417 serif
11418 \family default
11419  but all math equations are still typeset in the usual roman font.
11420 \end_layout
11421
11422 \begin_layout Itemize
11423
11424 \family sans
11425 Foil\SpecialChar TeX
11426
11427 \family default
11428  supports A4 and Letter paper sizes as well as a special size for working
11429  with 35
11430 \begin_inset space \thinspace{}
11431 \end_inset
11432
11433 mm slides.
11434  It doesn't support A5, B5, legal or executive paper sizes.
11435 \end_layout
11436
11437 \begin_layout Itemize
11438 Don't bother changing the 
11439 \family sans
11440 Float Placement
11441 \family default
11442  settings because they are ignored anyway.
11443  All floats appear where they are defined in the text.
11444 \end_layout
11445
11446 \begin_layout Itemize
11447 The 
11448 \family sans
11449 Pagestyle
11450 \family default
11451  setting behaves a bit differently for this class.
11452  
11453 \family sans
11454 Foil\SpecialChar TeX
11455
11456 \family default
11457  provides extensive footer and header capabilities including a user-defined
11458  logo.
11459  See section
11460 \begin_inset space ~
11461 \end_inset
11462
11463
11464 \begin_inset CommandInset ref
11465 LatexCommand ref
11466 reference "sec:foilfoot"
11467
11468 \end_inset
11469
11470  for more details.
11471  The title page is treated differently to all other pages in the document
11472  and is 
11473 \emph on
11474 always
11475 \emph default
11476  unnumbered and 
11477 \emph on
11478 always
11479 \emph default
11480  has the logo centered at the bottom of the page (if one is defined).
11481  The possible page style choices and what they do are as follows:
11482 \end_layout
11483
11484 \begin_deeper
11485 \begin_layout Labeling
11486 \labelwidthstring MMMMMMM
11487
11488 \family sans
11489 \series bold
11490 empty
11491 \family default
11492 \series default
11493  The final output contains no page numbers, or other headers or footers
11494  (except footnotes of course).
11495  
11496 \end_layout
11497
11498 \begin_layout Labeling
11499 \labelwidthstring MMMMMMM
11500
11501 \family sans
11502 \series bold
11503 plain
11504 \family default
11505 \series default
11506  The final output contains page numbers centered at the bottom of the page.
11507  No other headings or footers (other than footnotes).
11508 \end_layout
11509
11510 \begin_layout Labeling
11511 \labelwidthstring MMMMMMM
11512
11513 \series bold
11514 foilheadings
11515 \series default
11516  Page numbers in lower right corner.
11517  Additional headers and footers are also shown.
11518  This is also the default.
11519 \end_layout
11520
11521 \begin_layout Labeling
11522 \labelwidthstring MMMMMMM
11523
11524 \series bold
11525 fancy
11526 \series default
11527  Gives you access to the 
11528 \family sans
11529 fancyheadings
11530 \family default
11531  package although its use with 
11532 \family sans
11533 Foil\SpecialChar TeX
11534
11535 \family default
11536  is discouraged by the writer of the 
11537 \family sans
11538 Foil\SpecialChar TeX
11539
11540 \family default
11541  package because of some potential page layout clashes.
11542 \end_layout
11543
11544 \end_deeper
11545 \begin_layout Subsubsection
11546 Extra Options
11547 \end_layout
11548
11549 \begin_layout Standard
11550 The following options may be used in the extra class options in the 
11551 \family sans
11552 Document\SpecialChar menuseparator
11553 Settings
11554 \family default
11555  dialog.
11556 \end_layout
11557
11558 \begin_layout Labeling
11559 \labelwidthstring MMMMMMx
11560
11561 \series bold
11562 35mmSlide
11563 \series default
11564  This sets up the page layout for 7.33
11565 \begin_inset space \thinspace{}
11566 \end_inset
11567
11568 in by 11
11569 \begin_inset space \thinspace{}
11570 \end_inset
11571
11572 in paper, which is about the same aspect ratio as a 35
11573 \begin_inset space \thinspace{}
11574 \end_inset
11575
11576 mm slide, making it a bit easier to work with this medium.
11577 \end_layout
11578
11579 \begin_layout Labeling
11580 \labelwidthstring MMMMMMx
11581
11582 \series bold
11583 headrule
11584 \series default
11585  Places a rule across the page below the header on every page except the
11586  title page.
11587 \end_layout
11588
11589 \begin_layout Labeling
11590 \labelwidthstring MMMMMMx
11591
11592 \series bold
11593 footrule
11594 \series default
11595  Places a rule across the page above the footer on every page except the
11596  title page.
11597 \end_layout
11598
11599 \begin_layout Labeling
11600 \labelwidthstring MMMMMMx
11601
11602 \series bold
11603 dvips
11604 \series default
11605  This is automatically set each time you create a new 
11606 \family sans
11607 foils
11608 \family default
11609  document.
11610  This option tells 
11611 \family sans
11612 Foil\SpecialChar TeX
11613
11614 \family default
11615  to use the dvips driver to rotate those pages that are set as landscape
11616  foils.
11617 \end_layout
11618
11619 \begin_layout Labeling
11620 \labelwidthstring MMMMMMx
11621
11622 \series bold
11623 landscape
11624 \series default
11625  Simply changes the page dimensions to those of a landscape page but doesn't
11626  do any rotation.
11627  Thus if you use this option you need to use an external program to rotate
11628  each page or feed your paper through your printer as landscape.
11629  Note that this option effectively reverses the roles of the 
11630 \family sans
11631 Foilhead
11632 \family default
11633  and 
11634 \family sans
11635 Rotatefoilhead
11636 \family default
11637  environments (don't worry these are described in the next section).
11638 \end_layout
11639
11640 \begin_layout Labeling
11641 \labelwidthstring MMMMMMx
11642
11643 \series bold
11644 leqno
11645 \series default
11646  Equation numbers on the left.
11647 \end_layout
11648
11649 \begin_layout Labeling
11650 \labelwidthstring MMMMMMx
11651
11652 \series bold
11653 fleqn
11654 \series default
11655  Flush-left equations.
11656 \end_layout
11657
11658 \begin_layout Subsection
11659 Supported Environments
11660 \end_layout
11661
11662 \begin_layout Standard
11663 Most of the environments commonly supported in other classes are also supported
11664  by the 
11665 \family sans
11666 foils
11667 \family default
11668  class.
11669  There are several additional environments provided by 
11670 \family sans
11671 Foil\SpecialChar TeX
11672
11673 \family default
11674  as well as a couple added by \SpecialChar LyX
11675 .
11676  The following environments are shared with other classes:
11677 \end_layout
11678
11679 \begin_layout Standard
11680 \begin_inset Flex Multiple Columns
11681 status open
11682
11683 \begin_layout Itemize
11684
11685 \family sans
11686 Standard
11687 \end_layout
11688
11689 \begin_layout Itemize
11690
11691 \family sans
11692 Itemize
11693 \end_layout
11694
11695 \begin_layout Itemize
11696
11697 \family sans
11698 Enumerate
11699 \end_layout
11700
11701 \begin_layout Itemize
11702
11703 \family sans
11704 Description
11705 \end_layout
11706
11707 \begin_layout Itemize
11708
11709 \family sans
11710 List
11711 \end_layout
11712
11713 \begin_layout Itemize
11714
11715 \family sans
11716 \SpecialChar LyX
11717 -Code
11718 \end_layout
11719
11720 \begin_layout Itemize
11721
11722 \family sans
11723 Verse
11724 \end_layout
11725
11726 \begin_layout Itemize
11727
11728 \family sans
11729 Quote
11730 \end_layout
11731
11732 \begin_layout Itemize
11733
11734 \family sans
11735 Quotation
11736 \end_layout
11737
11738 \begin_layout Itemize
11739
11740 \family sans
11741 TitleAuthor
11742 \end_layout
11743
11744 \begin_layout Itemize
11745
11746 \family sans
11747 Date
11748 \end_layout
11749
11750 \begin_layout Itemize
11751
11752 \family sans
11753 Abstract
11754 \end_layout
11755
11756 \begin_layout Itemize
11757
11758 \family sans
11759 Bibliography
11760 \end_layout
11761
11762 \begin_layout Itemize
11763
11764 \family sans
11765 Address
11766 \end_layout
11767
11768 \begin_layout Itemize
11769
11770 \family sans
11771 RightAddress
11772 \end_layout
11773
11774 \end_inset
11775
11776
11777 \end_layout
11778
11779 \begin_layout Standard
11780 That is, all the major environments apart from the sectioning environments.
11781  Since foils are essentially self-contained sections, with a title and body,
11782  
11783 \family sans
11784 Foil\SpecialChar TeX
11785
11786 \family default
11787  provides specific commands for starting new foils and these are:
11788 \end_layout
11789
11790 \begin_layout Itemize
11791
11792 \family sans
11793 Foilhead
11794 \end_layout
11795
11796 \begin_layout Itemize
11797
11798 \family sans
11799 Rotatefoilhead
11800 \end_layout
11801
11802 \begin_layout Standard
11803 \SpecialChar LyX
11804  also provides slightly modified versions of these two environments called:
11805 \end_layout
11806
11807 \begin_layout Itemize
11808
11809 \family sans
11810 ShortFoilhead
11811 \end_layout
11812
11813 \begin_layout Itemize
11814
11815 \family sans
11816 ShortRotatefoilhead
11817 \end_layout
11818
11819 \begin_layout Standard
11820 and the differences will be explained in the next section.
11821 \end_layout
11822
11823 \begin_layout Standard
11824 Since foils are often used in presenting ideas or new theorems and such
11825  
11826 \family sans
11827 Foil\SpecialChar TeX
11828
11829 \family default
11830  also provides a comprehensive box of goodies for presenting them:
11831 \end_layout
11832
11833 \begin_layout Standard
11834 \begin_inset Flex Multiple Columns
11835 status open
11836
11837 \begin_layout Itemize
11838
11839 \family sans
11840 Theorem
11841 \end_layout
11842
11843 \begin_layout Itemize
11844
11845 \family sans
11846 Lemma
11847 \end_layout
11848
11849 \begin_layout Itemize
11850
11851 \family sans
11852 Corollary
11853 \end_layout
11854
11855 \begin_layout Itemize
11856
11857 \family sans
11858 Proposition
11859 \end_layout
11860
11861 \begin_layout Itemize
11862
11863 \family sans
11864 Definition
11865 \end_layout
11866
11867 \begin_layout Itemize
11868
11869 \family sans
11870 Proof
11871 \end_layout
11872
11873 \begin_layout Itemize
11874
11875 \family sans
11876 Theorem*
11877 \end_layout
11878
11879 \begin_layout Itemize
11880
11881 \family sans
11882 Lemma*
11883 \end_layout
11884
11885 \begin_layout Itemize
11886
11887 \family sans
11888 Corollary*
11889 \end_layout
11890
11891 \begin_layout Itemize
11892
11893 \family sans
11894 Proposition*
11895 \end_layout
11896
11897 \begin_layout Itemize
11898
11899 \family sans
11900 Definition*
11901 \end_layout
11902
11903 \end_inset
11904
11905
11906 \end_layout
11907
11908 \begin_layout Standard
11909 The starred versions are unnumbered while the unstarred versions are numbered.
11910  There are also two list environments added by \SpecialChar LyX
11911  and these are:
11912 \end_layout
11913
11914 \begin_layout Itemize
11915
11916 \family sans
11917 TickList
11918 \end_layout
11919
11920 \begin_layout Itemize
11921
11922 \family sans
11923 CrossList
11924 \end_layout
11925
11926 \begin_layout Standard
11927
11928 \family sans
11929 Foil\SpecialChar TeX
11930
11931 \family default
11932  provides some powerful header and footer capabilities that are best set
11933  in the preamble although they may be set at any point in a document.
11934  If you want to change these settings in your document the best place to
11935  do so is at the very top of a foil, i.
11936 \begin_inset space \thinspace{}
11937 \end_inset
11938
11939 e.
11940 \emph on
11941
11942 \begin_inset space \space{}
11943 \end_inset
11944
11945
11946 \emph default
11947 straight after the foilhead.
11948 \end_layout
11949
11950 \begin_layout Standard
11951 For this purpose, the following command styles are provided [
11952 \shape smallcaps
11953 Martin Vermeer
11954 \shape default
11955 ]:
11956 \end_layout
11957
11958 \begin_layout Standard
11959 \begin_inset Flex Multiple Columns
11960 status open
11961
11962 \begin_layout Itemize
11963
11964 \family sans
11965 My
11966 \begin_inset space ~
11967 \end_inset
11968
11969 Logo
11970 \end_layout
11971
11972 \begin_layout Itemize
11973
11974 \family sans
11975 Restriction
11976 \end_layout
11977
11978 \begin_layout Itemize
11979
11980 \family sans
11981 Right
11982 \begin_inset space ~
11983 \end_inset
11984
11985 Footer
11986 \end_layout
11987
11988 \begin_layout Itemize
11989
11990 \family sans
11991 Right
11992 \begin_inset space ~
11993 \end_inset
11994
11995 Header
11996 \end_layout
11997
11998 \begin_layout Itemize
11999
12000 \family sans
12001 Left
12002 \begin_inset space ~
12003 \end_inset
12004
12005 Header
12006 \end_layout
12007
12008 \begin_deeper
12009 \begin_layout Plain Layout
12010 \begin_inset space ~
12011 \end_inset
12012
12013
12014 \end_layout
12015
12016 \end_deeper
12017 \end_inset
12018
12019
12020 \end_layout
12021
12022 \begin_layout Standard
12023 There are also a few commands provided by 
12024 \family sans
12025 Foil\SpecialChar TeX
12026
12027 \family default
12028  that aren't directly supported by \SpecialChar LyX
12029  but I'll tell you what they do and how
12030  to use them in section
12031 \begin_inset space ~
12032 \end_inset
12033
12034
12035 \begin_inset CommandInset ref
12036 LatexCommand ref
12037 reference "sec:unsuppfoils"
12038
12039 \end_inset
12040
12041 .
12042 \end_layout
12043
12044 \begin_layout Subsection
12045 Building a Set of Foils
12046 \end_layout
12047
12048 \begin_layout Standard
12049 This section will give a simple introduction to using the different environments
12050  to build a set of foils.
12051  If you want to see an example set of foils, take a look at the 
12052 \family typewriter
12053 Foils.lyx
12054 \family default
12055  file you find in \SpecialChar LyX
12056 's 
12057 \family typewriter
12058 examples
12059 \family default
12060  folder.
12061 \end_layout
12062
12063 \begin_layout Subsubsection
12064 Give It a Title Page
12065 \end_layout
12066
12067 \begin_layout Standard
12068 Unlike other classes that provide 
12069 \family sans
12070 Title
12071 \family default
12072
12073 \family sans
12074 Author
12075 \family default
12076
12077 \family sans
12078 Date
12079 \family default
12080  and 
12081 \family sans
12082 Abstract
12083 \family default
12084  environments, 
12085 \family sans
12086 foils
12087 \family default
12088  creates the title on a page of its own.
12089  If you leave out the 
12090 \family sans
12091 Date
12092 \family default
12093  environment \SpecialChar LaTeX
12094  will substitute the current date (every time you regenerate
12095  the output).
12096 \end_layout
12097
12098 \begin_layout Subsubsection
12099 Start a New Foil
12100 \end_layout
12101
12102 \begin_layout Standard
12103 As I mentioned earlier, there are four ways of starting a new foil.
12104  For portrait foils you should use 
12105 \family sans
12106 Foilhead
12107 \family default
12108  or 
12109 \family sans
12110 ShortFoilhead.
12111
12112 \family default
12113  The difference between these two environments is the amount of space between
12114  the title of the foil (the foilhead) and the body of the foil.
12115 \end_layout
12116
12117 \begin_layout Standard
12118 Landscape foils are generated using the 
12119 \family sans
12120 Rotatefoilhead
12121 \family default
12122  and 
12123 \family sans
12124 ShortRotatefoilhead
12125 \family default
12126  environments.
12127  Again the only difference is the spacing between foilhead and body.
12128  Both of the short versions have 0.5
12129 \begin_inset space ~
12130 \end_inset
12131
12132 inches less separation between the foilhead and the body.
12133  
12134 \end_layout
12135
12136 \begin_layout Standard
12137 One problem with the support for landscape foils is the requirement that
12138  you have to use the 
12139 \family typewriter
12140 dvips
12141 \family default
12142  driver to generate the PostScript output otherwise the foils won't be rotated.
12143  It is possible to get landscape foils even if you haven't got the 
12144 \family typewriter
12145 dvips
12146 \family default
12147  driver provided you can feed your foils sideways through your printer ;-)
12148 \end_layout
12149
12150 \begin_layout Subsubsection
12151 Theorems, Lemmas, Proofs and more
12152 \end_layout
12153
12154 \begin_layout Standard
12155 You can't have two of the same type of these environments directly following
12156  each other.
12157  If you use a normal paragraph break, , you will just be extending the previous
12158  environment as if you had merged the two environments together.
12159  Rather than that, you need to insert a so-called separator.
12160  Please refer to the section entitled 
12161 \emph on
12162 Separate Nestings
12163 \emph default
12164  in the 
12165 \emph on
12166 User's Guide
12167 \emph default
12168 .
12169 \end_layout
12170
12171 \begin_layout Subsubsection
12172 Lists
12173 \end_layout
12174
12175 \begin_layout Standard
12176 You get all the commonly supported list styles found in other classes as
12177  well as two new ones.
12178  I'll only describe the new ones here.
12179  If you want to find out more about the other list environments check out
12180  the 
12181 \emph on
12182 User's Guide.
12183
12184 \emph default
12185  If you intend to use itemized lists you might also want to read about the
12186  
12187 \family sans
12188 Itemize
12189 \begin_inset space ~
12190 \end_inset
12191
12192 Bullet
12193 \begin_inset space ~
12194 \end_inset
12195
12196 Selection
12197 \family default
12198  dialog described above in section
12199 \begin_inset space ~
12200 \end_inset
12201
12202
12203 \begin_inset CommandInset ref
12204 LatexCommand ref
12205 reference "sec:bullet"
12206
12207 \end_inset
12208
12209 .
12210 \end_layout
12211
12212 \begin_layout Standard
12213 The two new list styles, 
12214 \family sans
12215 TickList
12216 \family default
12217  and 
12218 \family sans
12219 CrossList
12220 \family default
12221 , are designed to make it easier for you to create lists of do's and don'ts
12222  or right and wrong by providing dedicated environments that use a tick
12223  or a cross as the label of the list.
12224  These lists are in fact dedicated variants of the 
12225 \family sans
12226 Itemize
12227 \family default
12228  environment.
12229  They do however require that you have the 
12230 \family typewriter
12231 psnfss
12232 \family default
12233  packages installed.
12234 \end_layout
12235
12236 \begin_layout Subsubsection
12237 Figures and Tables
12238 \end_layout
12239
12240 \begin_layout Standard
12241
12242 \family sans
12243 Foil\SpecialChar TeX
12244
12245 \family default
12246  redefines the floating tables and figures so that they appear exactly where
12247  they are in the text rather than pushing them to the top of the page or
12248  to some user specified location.
12249  In fact if you change the float placement settings they are simply ignored.
12250 \end_layout
12251
12252 \begin_layout Subsubsection
12253 Page Headers and Footers
12254 \begin_inset CommandInset label
12255 LatexCommand label
12256 name "sec:foilfoot"
12257
12258 \end_inset
12259
12260
12261 \end_layout
12262
12263 \begin_layout Standard
12264
12265 \family sans
12266 My
12267 \begin_inset space ~
12268 \end_inset
12269
12270 Logo
12271 \family default
12272  and 
12273 \family sans
12274 Restriction
12275 \family default
12276  are two commands used to control the left-footer text string.
12277  The first is meant to allow you to include a graphic logo on your foils
12278  and defaults to 
12279 \begin_inset Quotes eld
12280 \end_inset
12281
12282 -Typeset by 
12283 \family sans
12284 Foil\SpecialChar TeX
12285
12286 \family default
12287 -
12288 \begin_inset Quotes erd
12289 \end_inset
12290
12291 .
12292  While the second is meant to provide a classification for the audience,
12293  
12294 \emph on
12295 e.
12296 \begin_inset space \thinspace{}
12297 \end_inset
12298
12299 g.
12300 \emph default
12301
12302 \begin_inset space \space{}
12303 \end_inset
12304
12305 Confidential.
12306  It is empty by default.
12307 \end_layout
12308
12309 \begin_layout Standard
12310 The remaining page corners can be filled by 
12311 \family sans
12312 Right
12313 \begin_inset space ~
12314 \end_inset
12315
12316 Footer
12317 \family default
12318  (which defaults to page numbers), 
12319 \family sans
12320 Right
12321 \begin_inset space ~
12322 \end_inset
12323
12324 Header
12325 \family default
12326  (top right) and 
12327 \family sans
12328 Left
12329 \begin_inset space ~
12330 \end_inset
12331
12332 Header
12333 \family default
12334  (top left).
12335 \end_layout
12336
12337 \begin_layout Subsection
12338 Unsupported 
12339 \family sans
12340 Foil\SpecialChar TeX
12341
12342 \family default
12343  Goodies
12344 \begin_inset CommandInset label
12345 LatexCommand label
12346 name "sec:unsuppfoils"
12347
12348 \end_inset
12349
12350
12351 \end_layout
12352
12353 \begin_layout Standard
12354 All the commands mentioned below need to be set in a 
12355 \family sans
12356 \SpecialChar LaTeX
12357
12358 \family default
12359  environment or as 
12360 \family sans
12361 \SpecialChar TeX
12362
12363 \family default
12364  within another environment.
12365 \end_layout
12366
12367 \begin_layout Subsubsection
12368 Lengths
12369 \end_layout
12370
12371 \begin_layout Standard
12372 All lengths are adjusted using the 
12373 \family typewriter
12374
12375 \backslash
12376 setlength{
12377 \family default
12378 \emph on
12379 lengthname
12380 \family typewriter
12381 \emph default
12382 }{
12383 \family default
12384 \emph on
12385 newlength
12386 \family typewriter
12387 \emph default
12388 }
12389 \family default
12390  command.
12391  Where 
12392 \emph on
12393 lengthname
12394 \emph default
12395  should be replaced by the name given to the length you want to change and
12396  
12397 \emph on
12398 newlength
12399 \emph default
12400  is the length value.
12401  All lengths should be specified in units of length such as inches (
12402 \family typewriter
12403 in
12404 \family default
12405 ), millimeters (
12406 \family typewriter
12407 mm
12408 \family default
12409 ) or points (
12410 \family typewriter
12411 pt
12412 \family default
12413 ) or relative to some document or font-based length such as 
12414 \family typewriter
12415
12416 \backslash
12417 textwidth
12418 \family default
12419 .
12420  
12421 \end_layout
12422
12423 \begin_layout Standard
12424 It's possible to change the spacing between a foilhead and the body of the
12425  foil by adjusting the length specified by 
12426 \family typewriter
12427
12428 \backslash
12429 foilheadskip
12430 \family default
12431 .
12432  For example, to make 
12433 \emph on
12434 all
12435 \emph default
12436  foilheads 0.5
12437 \begin_inset space \space{}
12438 \end_inset
12439
12440 in closer to their bodies put the following in the preamble: 
12441 \family typewriter
12442
12443 \backslash
12444 setlength{
12445 \backslash
12446 foilheadskip}{-0.5in}
12447 \end_layout
12448
12449 \begin_layout Standard
12450 The spacings around floats can be adjusted by setting these lengths:
12451 \end_layout
12452
12453 \begin_layout Labeling
12454 \labelwidthstring MMMMMMMMMMM
12455
12456 \family typewriter
12457
12458 \backslash
12459 abovefloatskip
12460 \family default
12461  Separation between the text and the top of the float
12462 \end_layout
12463
12464 \begin_layout Labeling
12465 \labelwidthstring MMMMMMMMMMM
12466
12467 \family typewriter
12468
12469 \backslash
12470 abovecaptionskip
12471 \family default
12472  Separation between the float and the caption
12473 \end_layout
12474
12475 \begin_layout Labeling
12476 \labelwidthstring MMMMMMMMMMM
12477
12478 \family typewriter
12479
12480 \backslash
12481 belowcaptionskip
12482 \family default
12483  Separation between the caption and the following text
12484 \end_layout
12485
12486 \begin_layout Labeling
12487 \labelwidthstring MMMMMMMMMMM
12488
12489 \family typewriter
12490
12491 \backslash
12492 captionwidth
12493 \family default
12494  You can make the captions narrower than the surrounding text by adjusting
12495  this length.
12496  Best done relative to 
12497 \family typewriter
12498
12499 \backslash
12500 textwidth
12501 \family default
12502 .
12503 \end_layout
12504
12505 \begin_layout Standard
12506 There are also several title page related lengths that you may find useful
12507  if you have a long title or several authors:
12508 \end_layout
12509
12510 \begin_layout Labeling
12511 \labelwidthstring MMMMMMMMMMM
12512
12513 \family typewriter
12514
12515 \backslash
12516 abovetitleskip
12517 \family default
12518  Separation from headers to 
12519 \family sans
12520 Title
12521 \end_layout
12522
12523 \begin_layout Labeling
12524 \labelwidthstring MMMMMMMMMMM
12525
12526 \family typewriter
12527
12528 \backslash
12529 titleauthorskip
12530 \family default
12531  between 
12532 \family sans
12533 Title
12534 \family default
12535  and 
12536 \family sans
12537 Author
12538 \family default
12539  environments
12540 \end_layout
12541
12542 \begin_layout Labeling
12543 \labelwidthstring MMMMMMMMMMM
12544
12545 \family typewriter
12546
12547 \backslash
12548 authorauthorskip
12549 \family default
12550  between multiple 
12551 \family sans
12552 Author
12553 \family default
12554  lines
12555 \end_layout
12556
12557 \begin_layout Labeling
12558 \labelwidthstring MMMMMMMMMMM
12559
12560 \family typewriter
12561
12562 \backslash
12563 authordateskip
12564 \family default
12565  between the 
12566 \family sans
12567 Author
12568 \family default
12569  and the 
12570 \family sans
12571 Date
12572 \end_layout
12573
12574 \begin_layout Labeling
12575 \labelwidthstring MMMMMMMMMMM
12576
12577 \family typewriter
12578
12579 \backslash
12580 dateabstractskip
12581 \family default
12582  between the 
12583 \family sans
12584 Date
12585 \family default
12586  and the 
12587 \family sans
12588 Abstract
12589 \end_layout
12590
12591 \begin_layout Standard
12592 The last length related command affects all the list environments.
12593  If you place 
12594 \family typewriter
12595
12596 \backslash
12597 zerolistvertdimens
12598 \family default
12599  
12600 \emph on
12601 inside
12602 \emph default
12603  a list environment then all the vertical spacing between the list items
12604  is removed.
12605  Note that this is a command not a length so it doesn't require 
12606 \family typewriter
12607
12608 \backslash
12609 setlength
12610 \family default
12611  like the stuff mentioned above.
12612 \end_layout
12613
12614 \begin_layout Subsubsection
12615 Headers and Footers
12616 \end_layout
12617
12618 \begin_layout Standard
12619 The 
12620 \family typewriter
12621
12622 \backslash
12623 LogoOn
12624 \family default
12625  and 
12626 \family typewriter
12627
12628 \backslash
12629 LogoOff
12630 \family default
12631  commands control whether the logo in the 
12632 \family sans
12633 MyLogo
12634 \family default
12635  definition appear on a given page.
12636  If you put 
12637 \family typewriter
12638
12639 \backslash
12640 LogoOff
12641 \family default
12642  in the preamble then none of the foils will have the logo on them.
12643  If you don't want the logo on a particular page place the 
12644 \family typewriter
12645
12646 \backslash
12647 LogoOff
12648 \family default
12649  directly after the foilhead of that page and the 
12650 \family typewriter
12651
12652 \backslash
12653 LogoOn
12654 \family default
12655  directly after the next foilhead.
12656 \end_layout
12657
12658 \begin_layout Standard
12659 If you decide to use the 
12660 \family sans
12661 fancy
12662 \family default
12663  page style setting in the 
12664 \family sans
12665 Document
12666 \begin_inset space ~
12667 \end_inset
12668
12669 Layout
12670 \family default
12671  dialog you should probably add 
12672 \family typewriter
12673
12674 \backslash
12675 let
12676 \backslash
12677 headwidth
12678 \backslash
12679 textwidth
12680 \family default
12681  to your preamble so headers and footers on landscape pages are correctly
12682  placed when rotated.
12683  This is due to some clashes between the page layouts provided by the 
12684 \family sans
12685 fancyheadings
12686 \family default
12687  package and the 
12688 \family sans
12689 foils
12690 \family default
12691  class.
12692 \end_layout
12693
12694 \begin_layout Section
12695 Hollywood (Hollywood spec scripts)
12696 \end_layout
12697
12698 \begin_layout Standard
12699 by 
12700 \shape smallcaps
12701 Garst Reese
12702 \end_layout
12703
12704 \begin_layout Subsection
12705 Introduction
12706 \end_layout
12707
12708 \begin_layout Standard
12709 Getting the format of a Hollywood script right is a 
12710 \begin_inset Quotes eld
12711 \end_inset
12712
12713 rite of passage.
12714 \begin_inset Quotes erd
12715 \end_inset
12716
12717  It is designed to make the readers focus on content and to be easy and
12718  familiar for the actors to read.
12719  Each page of a script should be one minute of film.
12720  Nothing goes in a script that you cannot see or hear on screen.
12721  The courier 12 pt font should be used throughout.
12722  No italics.
12723 \end_layout
12724
12725 \begin_layout Subsection
12726 Special problems
12727 \end_layout
12728
12729 \begin_layout Standard
12730 Speakers' lines should NEVER break in mid-sentence.
12731  If a speaker's lines continue over a page break, repeat the 
12732 \family sans
12733 Speaker
12734 \family default
12735  title followed by (Cont'd).
12736 \end_layout
12737
12738 \begin_layout Subsection
12739 Special features
12740 \end_layout
12741
12742 \begin_layout Standard
12743 Insert the 
12744 \family sans
12745 Speaker
12746 \family default
12747  names as labels then cross-reference the label to insert the name.
12748  The cross-reference dialog will show the current cast of characters.
12749  You can use this to insert the speaker name in narratives also.
12750 \end_layout
12751
12752 \begin_layout Subsection
12753 Paper size and Margins
12754 \end_layout
12755
12756 \begin_layout Standard
12757 USLetter, left 1.6in, right 0.75in, top 0.5in, bottom 0.75in
12758 \end_layout
12759
12760 \begin_layout Subsection
12761 Environments
12762 \end_layout
12763
12764 \begin_layout Standard
12765 The following environments are available.
12766  You can use hollywood.bind to get the bind keys shown at the right.
12767 \end_layout
12768
12769 \begin_layout Itemize
12770
12771 \family sans
12772 Standard
12773 \begin_inset Newline newline
12774 \end_inset
12775
12776
12777 \family default
12778 Used where nothing else works.
12779  Try to avoid it.
12780 \end_layout
12781
12782 \begin_layout Itemize
12783
12784 \family sans
12785 FADE_IN
12786 \family default
12787 :
12788 \begin_inset space \hfill{}
12789 \end_inset
12790
12791
12792 \family sans
12793 M-z S-I
12794 \family default
12795
12796 \begin_inset Newline newline
12797 \end_inset
12798
12799 Usually followed by something like 
12800 \begin_inset Quotes eld
12801 \end_inset
12802
12803 on Sally waking up.
12804 \begin_inset Quotes erd
12805 \end_inset
12806
12807
12808 \end_layout
12809
12810 \begin_layout Itemize
12811
12812 \family sans
12813 INT:
12814 \begin_inset space \hfill{}
12815 \end_inset
12816
12817 M-z i
12818 \begin_inset Newline newline
12819 \end_inset
12820
12821
12822 \family default
12823 Introduces a new INTERIOR camera set-up.
12824  Always followed by DAY or NIGHT, or something similar to define the lighting
12825  required.
12826  Everthing on this line in CAPS.
12827 \end_layout
12828
12829 \begin_layout Itemize
12830
12831 \family sans
12832 EXT:
12833 \begin_inset space \hfill{}
12834 \end_inset
12835
12836 M-z e
12837 \begin_inset Newline newline
12838 \end_inset
12839
12840
12841 \family default
12842 Introduces a new EXTERIOR camera set-up.
12843  Everthing on this line in CAPS.
12844 \end_layout
12845
12846 \begin_layout Itemize
12847
12848 \family sans
12849 Speaker
12850 \begin_inset space \hfill{}
12851 \end_inset
12852
12853 M-z s
12854 \begin_inset Newline newline
12855 \end_inset
12856
12857
12858 \family default
12859 The character speaking.
12860 \end_layout
12861
12862 \begin_layout Itemize
12863
12864 \family sans
12865 Parenthetical
12866 \begin_inset space \hfill{}
12867 \end_inset
12868
12869 M-z p
12870 \begin_inset Newline newline
12871 \end_inset
12872
12873
12874 \family default
12875 Instructions to the speaker.
12876  The () are automatically inserted.
12877 \end_layout
12878
12879 \begin_layout Itemize
12880
12881 \family sans
12882 Dialogue
12883 \begin_inset space \hfill{}
12884 \end_inset
12885
12886 M-z d
12887 \begin_inset Newline newline
12888 \end_inset
12889
12890
12891 \family default
12892 What the 
12893 \family sans
12894 Speaker
12895 \family default
12896  says.
12897 \end_layout
12898
12899 \begin_layout Itemize
12900
12901 \family sans
12902 Transition
12903 \begin_inset space \hfill{}
12904 \end_inset
12905
12906 M-z t
12907 \begin_inset Newline newline
12908 \end_inset
12909
12910
12911 \family default
12912 Camera movement instruction.
12913  e.
12914 \begin_inset space \thinspace{}
12915 \end_inset
12916
12917 g.
12918 \begin_inset space \space{}
12919 \end_inset
12920
12921 CUT TO:
12922 \end_layout
12923
12924 \begin_layout Itemize
12925
12926 \family sans
12927 FADE OUT:
12928 \begin_inset space \hfill{}
12929 \end_inset
12930
12931 M-z S-I
12932 \end_layout
12933
12934 \begin_layout Itemize
12935
12936 \family sans
12937 Author
12938 \begin_inset space \hfill{}
12939 \end_inset
12940
12941 M-z S-A
12942 \end_layout
12943
12944 \begin_layout Itemize
12945
12946 \family sans
12947 Title
12948 \begin_inset space \hfill{}
12949 \end_inset
12950
12951 M-z S-T
12952 \end_layout
12953
12954 \begin_layout Itemize
12955
12956 \family sans
12957 Right_Address
12958 \begin_inset space \hfill{}
12959 \end_inset
12960
12961 M-z r
12962 \end_layout
12963
12964 \begin_layout Subsection
12965 Script jargon
12966 \end_layout
12967
12968 \begin_layout Itemize
12969 (O.S) — off screen
12970 \end_layout
12971
12972 \begin_layout Itemize
12973 (V.0) — voice over
12974 \end_layout
12975
12976 \begin_layout Itemize
12977 b.
12978 \begin_inset space \thinspace{}
12979 \end_inset
12980
12981 g.
12982  — background
12983 \end_layout
12984
12985 \begin_layout Itemize
12986 C.U.
12987  — close-up
12988 \end_layout
12989
12990 \begin_layout Itemize
12991 PAN — camera movement
12992 \end_layout
12993
12994 \begin_layout Itemize
12995 INSERT — cut to close-up of
12996 \end_layout
12997
12998 \begin_layout Section
12999 ijmpc and ijmpd
13000 \end_layout
13001
13002 \begin_layout Standard
13003 by 
13004 \noun on
13005 Panayotis Papasotiriou
13006 \end_layout
13007
13008 \begin_layout Subsection
13009 Overview
13010 \end_layout
13011
13012 \begin_layout Standard
13013 The ijmpc package is a set of macros that facilitates electronic manuscript
13014  submission to the 
13015 \emph on
13016 International Journal of Modern Physics C
13017 \emph default
13018 .
13019  Similarly, the ijmpd package is for creating manuscripts to be submitted
13020  to the 
13021 \emph on
13022 International Journal of Modern Physics D
13023 \emph default
13024 .
13025  Both journals are published by World Scientific.
13026  The corresponding document classes are named 
13027 \family typewriter
13028 ws-ijmpc.cls
13029 \family default
13030  and 
13031 \family typewriter
13032 ws-ijmpd.cls
13033 \family default
13034 , respectively.
13035  These files, together with instructions for the authors, can be downloaded
13036  from the sites 
13037 \begin_inset Flex URL
13038 status collapsed
13039
13040 \begin_layout Plain Layout
13041
13042 http://www.worldscinet.com/ijmpc/mkt/guidelines.shtml
13043 \end_layout
13044
13045 \end_inset
13046
13047  and 
13048 \begin_inset Flex URL
13049 status collapsed
13050
13051 \begin_layout Plain Layout
13052
13053 http://www.worldscinet.com/ijmpd/mkt/guidelines.shtml
13054 \end_layout
13055
13056 \end_inset
13057
13058 .
13059  Both packages are modified versions of the standard 
13060 \begin_inset Quotes eld
13061 \end_inset
13062
13063 article
13064 \begin_inset Quotes erd
13065 \end_inset
13066
13067  package, and they are almost (but not exactly) identical.
13068  Most of their features are supported by \SpecialChar LyX
13069 .
13070  I have used \SpecialChar LyX
13071  successfully to write articles submitted to both journals
13072  without any problem.
13073 \end_layout
13074
13075 \begin_layout Subsection
13076 Writing a paper
13077 \end_layout
13078
13079 \begin_layout Standard
13080 As usual, the easiest way to write a paper is to start with a template.
13081  Click on 
13082 \family sans
13083 File\SpecialChar menuseparator
13084 New from
13085 \family default
13086  
13087 \family sans
13088 Template
13089 \family default
13090 , then choose the 
13091 \family typewriter
13092 ijmpc.lyx
13093 \family default
13094  or 
13095 \family typewriter
13096 ijmpd.lyx
13097 \family default
13098  template.
13099  This will give an (almost) empty document that includes the most common
13100  fields found in a manuscript.
13101  Simply overwrite the existing text (including the brackets, 
13102 \family typewriter
13103 <>
13104 \family default
13105 ) with your text.
13106  You should keep in mind the following remarks.
13107 \end_layout
13108
13109 \begin_layout Enumerate
13110 \SpecialChar LyX
13111  won't let you change the font size and the page style of the document,
13112  because such modifications are not allowed by both packages.
13113 \end_layout
13114
13115 \begin_layout Enumerate
13116 The language of the document should not be changed.
13117  Before previewing your paper, be sure that the babel package is not used.
13118  To do this, click on 
13119 \begin_inset Info
13120 type  "menu"
13121 arg   "dialog-show document"
13122 \end_inset
13123
13124  
13125 \family sans
13126 \SpecialChar menuseparator
13127 Language
13128 \family default
13129 , and select 
13130 \begin_inset Quotes eld
13131 \end_inset
13132
13133 None
13134 \begin_inset Quotes erd
13135 \end_inset
13136
13137  as 
13138 \family sans
13139 Language Package
13140 \family default
13141 .
13142 \end_layout
13143
13144 \begin_layout Enumerate
13145 The 
13146 \begin_inset Quotes eld
13147 \end_inset
13148
13149 Keywords
13150 \begin_inset Quotes erd
13151 \end_inset
13152
13153  style must be used to define keywords.
13154 \end_layout
13155
13156 \begin_layout Enumerate
13157 The ijmpc package provides a style named 
13158 \begin_inset Quotes eld
13159 \end_inset
13160
13161 Classification Codes
13162 \begin_inset Quotes erd
13163 \end_inset
13164
13165 , which can be used to define classification codes, such as PACS numbers.
13166  Note that this facility is not supported by the ijmpd package.
13167 \end_layout
13168
13169 \begin_layout Enumerate
13170 Several new environments are available: 
13171 \begin_inset Quotes eld
13172 \end_inset
13173
13174 Definition
13175 \begin_inset Quotes erd
13176 \end_inset
13177
13178
13179 \begin_inset Quotes eld
13180 \end_inset
13181
13182 Step
13183 \begin_inset Quotes erd
13184 \end_inset
13185
13186
13187 \begin_inset Quotes eld
13188 \end_inset
13189
13190 Example
13191 \begin_inset Quotes erd
13192 \end_inset
13193
13194
13195 \begin_inset Quotes eld
13196 \end_inset
13197
13198 Remark
13199 \begin_inset Quotes erd
13200 \end_inset
13201
13202
13203 \begin_inset Quotes eld
13204 \end_inset
13205
13206 Notation
13207 \begin_inset Quotes erd
13208 \end_inset
13209
13210
13211 \begin_inset Quotes eld
13212 \end_inset
13213
13214 Theorem
13215 \begin_inset Quotes erd
13216 \end_inset
13217
13218
13219 \begin_inset Quotes eld
13220 \end_inset
13221
13222 Proof
13223 \begin_inset Quotes erd
13224 \end_inset
13225
13226
13227 \begin_inset Quotes eld
13228 \end_inset
13229
13230 Corollary
13231 \begin_inset Quotes erd
13232 \end_inset
13233
13234
13235 \begin_inset Quotes eld
13236 \end_inset
13237
13238 Lemma
13239 \begin_inset Quotes erd
13240 \end_inset
13241
13242
13243 \begin_inset Quotes eld
13244 \end_inset
13245
13246 Proposition
13247 \begin_inset Quotes erd
13248 \end_inset
13249
13250
13251 \begin_inset Quotes eld
13252 \end_inset
13253
13254 Prop
13255 \begin_inset Quotes erd
13256 \end_inset
13257
13258
13259 \begin_inset Quotes eld
13260 \end_inset
13261
13262 Question
13263 \begin_inset Quotes erd
13264 \end_inset
13265
13266
13267 \begin_inset Quotes eld
13268 \end_inset
13269
13270 Claim
13271 \begin_inset Quotes erd
13272 \end_inset
13273
13274 , and 
13275 \begin_inset Quotes eld
13276 \end_inset
13277
13278 Conjecture
13279 \begin_inset Quotes erd
13280 \end_inset
13281
13282 .
13283  Their use is more or less obvious.
13284  \SpecialChar LyX
13285  supports all these environments; it will use the proper label, text style,
13286  and numbering scheme for each of them.
13287 \end_layout
13288
13289 \begin_layout Enumerate
13290 Both packages use basic citations; the natbib package should not be used.
13291  In \SpecialChar LyX
13292 , citation references are shown as usual; in the output, citations are
13293  shown as superscripts.
13294  If you want to use a citation as normal text, you should use the 
13295 \family typewriter
13296 refcite
13297 \family default
13298  command, e.
13299 \begin_inset space \thinspace{}
13300 \end_inset
13301
13302 g.
13303 \begin_inset space \space{}
13304 \end_inset
13305
13306
13307 \begin_inset Quotes eld
13308 \end_inset
13309
13310 See Ref.
13311 \begin_inset space \space{}
13312 \end_inset
13313
13314
13315 \family typewriter
13316
13317 \backslash
13318 refcite{key}
13319 \family default
13320
13321 \begin_inset Quotes erd
13322 \end_inset
13323
13324 .
13325 \end_layout
13326
13327 \begin_layout Enumerate
13328 There is no 
13329 \begin_inset Quotes eld
13330 \end_inset
13331
13332 Acknowledgments
13333 \begin_inset Quotes erd
13334 \end_inset
13335
13336  section in both packages.
13337  To put acknowledgments, just use the 
13338 \begin_inset Quotes eld
13339 \end_inset
13340
13341 Section*
13342 \begin_inset Quotes erd
13343 \end_inset
13344
13345  environment.
13346 \end_layout
13347
13348 \begin_layout Enumerate
13349 Appendices may be added to the paper, 
13350 \emph on
13351 after
13352 \emph default
13353  the Acknowledgments and 
13354 \shape italic
13355 before
13356 \shape default
13357  the References.
13358  \SpecialChar LyX
13359  provides a special environment, called 
13360 \begin_inset Quotes eld
13361 \end_inset
13362
13363 Appendices Section
13364 \begin_inset Quotes erd
13365 \end_inset
13366
13367  which marks the beginning of the appendices.
13368  This environment should be left blank; it just sends a \SpecialChar LaTeX
13369  command, but nothing
13370  is really printed.
13371  In \SpecialChar LyX
13372 , the word 
13373 \begin_inset Quotes eld
13374 \end_inset
13375
13376 Appendix
13377 \begin_inset Quotes erd
13378 \end_inset
13379
13380  is printed with blue letters, as a signal that all sections after that
13381  point are appendices.
13382  To write an appendix, use the 
13383 \begin_inset Quotes eld
13384 \end_inset
13385
13386 Appendix
13387 \begin_inset Quotes erd
13388 \end_inset
13389
13390  environment.
13391  \SpecialChar LyX
13392  will number each appendix with capital letters, as required by both journals.
13393  Note that 
13394 \begin_inset Quotes eld
13395 \end_inset
13396
13397 Appendices Section
13398 \begin_inset Quotes erd
13399 \end_inset
13400
13401  
13402 \emph on
13403 must
13404 \emph default
13405  be present before the first appendix; if not, all appendices will be numbered
13406  as normal sections in the output.
13407 \end_layout
13408
13409 \begin_layout Enumerate
13410 The ijmpc and the ijmpd packages use the 
13411 \family typewriter
13412 tbl
13413 \family default
13414  command to implement table captions.
13415  As a result, a table created by \SpecialChar LyX
13416  is printed correctly, but its caption
13417  is ignored.
13418  However, you can use some \SpecialChar TeX
13419  code to overcome this problem, so that captions
13420  are printed as expected.
13421  To do so, create a float table as usual, remove the caption, and replace
13422  it with the \SpecialChar TeX
13423  code 
13424 \family typewriter
13425
13426 \backslash
13427 tbl{
13428 \emph on
13429 your table caption
13430 \emph default
13431 }{
13432 \family default
13433  (sic); you must also the \SpecialChar TeX
13434  code 
13435 \family typewriter
13436 }
13437 \family default
13438  immediately after the tabular material.
13439  Study the example table included in the template files to see how this
13440  trick is implemented.
13441  Alternatively, If you need table captions, you should implement the whole
13442  table float in a 
13443 \family typewriter
13444 .tex
13445 \family default
13446  file, then include this file to the \SpecialChar LyX
13447  document (
13448 \family sans
13449 Insert\SpecialChar menuseparator
13450 File\SpecialChar menuseparator
13451 Child
13452 \begin_inset space ~
13453 \end_inset
13454
13455 Document
13456 \family default
13457 ).
13458  Details on how to create a table float can be found in the files 
13459 \family typewriter
13460 ws-ijmpc.tex
13461 \family default
13462  and 
13463 \family typewriter
13464 ws-ijmpd.tex
13465 \family default
13466 , included in the corresponding packages.
13467 \end_layout
13468
13469 \begin_layout Subsection
13470 Preparing a paper for submission
13471 \end_layout
13472
13473 \begin_layout Standard
13474 Before you submit your paper you must export the \SpecialChar LyX
13475  document as a \SpecialChar LaTeX
13476  file (
13477 \family sans
13478 File\SpecialChar menuseparator
13479 Export\SpecialChar menuseparator
13480 \SpecialChar LaTeX
13481
13482 \family default
13483 )
13484 \begin_inset Foot
13485 status open
13486
13487 \begin_layout Plain Layout
13488 Actually you have the choice between \SpecialChar LaTeX
13489  (plain) and pdflatex.
13490  If you intend to use pdflatex to prepare the paper, you should use the
13491  pdflatex option so that included graphics are converted to PDF format,
13492  ready for use by pdflatex.
13493 \end_layout
13494
13495 \end_inset
13496
13497 , then make the following changes to the resulting 
13498 \family typewriter
13499 .tex
13500 \family default
13501  file.
13502 \end_layout
13503
13504 \begin_layout Enumerate
13505 Remove the comment lines before the 
13506 \family typewriter
13507
13508 \backslash
13509 documentclass
13510 \family default
13511  command.
13512 \end_layout
13513
13514 \begin_layout Enumerate
13515 Remove everything between (and including) the 
13516 \family typewriter
13517
13518 \backslash
13519 makeatletter
13520 \family default
13521  and 
13522 \family typewriter
13523
13524 \backslash
13525 makeatother
13526 \family default
13527  commands, except for any commands you specifically put into the \SpecialChar LaTeX
13528  preamble.
13529 \end_layout
13530
13531 \begin_layout Standard
13532 The modified 
13533 \family typewriter
13534 .tex
13535 \family default
13536  file should be saved and processed through \SpecialChar LaTeX
13537  as many times as necessary.
13538  You may also want to check the resulting 
13539 \family typewriter
13540 .dvi
13541 \family default
13542  document.
13543 \end_layout
13544
13545 \begin_layout Section
13546 iopart
13547 \end_layout
13548
13549 \begin_layout Standard
13550 by 
13551 \noun on
13552 Uwe Stöhr
13553 \end_layout
13554
13555 \begin_layout Subsection
13556 Overview
13557 \end_layout
13558
13559 \begin_layout Standard
13560 The iopart package provides a document class to create electronic manuscript
13561  submission to the journals published by the Institute of Physics.
13562  Instructions for the authors how to create a paper using the iopart class
13563  can be downloaded together with the iopart package from the site 
13564 \begin_inset Flex URL
13565 status collapsed
13566
13567 \begin_layout Plain Layout
13568
13569 ftp://ftp.iop.org/pub/journals/latex2e
13570 \end_layout
13571
13572 \end_inset
13573
13574 .
13575 \end_layout
13576
13577 \begin_layout Subsection
13578 Writing a paper
13579 \end_layout
13580
13581 \begin_layout Standard
13582 The easiest way to write a paper is to start with the template 
13583 \emph on
13584 IOP-article.lyx
13585 \emph default
13586  that is available via 
13587 \family sans
13588 File\SpecialChar menuseparator
13589 New From Template
13590 \family default
13591  The template explains how to use the special text environments.
13592  Here are the most important advices:
13593 \end_layout
13594
13595 \begin_layout Itemize
13596 To be able to compile your document to a PDF, PS, or DVI, ensure that the
13597  no AMS packages are loaded in 
13598 \family sans
13599 Document\SpecialChar menuseparator
13600 Settings\SpecialChar menuseparator
13601 Math Options
13602 \family default
13603 !
13604 \end_layout
13605
13606 \begin_layout Itemize
13607
13608 \size normal
13609 The title environment defines the kind of your paper.
13610  So use one of the following environments for the title:
13611 \end_layout
13612
13613 \begin_deeper
13614 \begin_layout Itemize
13615
13616 \family sans
13617 \size normal
13618 Title
13619 \family default
13620  for a Paper
13621 \end_layout
13622
13623 \begin_layout Itemize
13624
13625 \family sans
13626 \size normal
13627 Review
13628 \family default
13629  for a Review
13630 \end_layout
13631
13632 \begin_layout Itemize
13633
13634 \family sans
13635 \size normal
13636 Topical
13637 \family default
13638  for a Topical review
13639 \end_layout
13640
13641 \begin_layout Itemize
13642
13643 \family sans
13644 \size normal
13645 Comment
13646 \family default
13647  for a Comment
13648 \end_layout
13649
13650 \begin_layout Itemize
13651
13652 \family sans
13653 \size normal
13654 Note
13655 \family default
13656  for a Note
13657 \end_layout
13658
13659 \begin_layout Itemize
13660
13661 \family sans
13662 \size normal
13663 Paper
13664 \family default
13665  for a Paper (same as Title)
13666 \end_layout
13667
13668 \begin_layout Itemize
13669
13670 \family sans
13671 \size normal
13672 Prelim
13673 \family default
13674  for a Preliminary communication
13675 \end_layout
13676
13677 \begin_layout Itemize
13678
13679 \family sans
13680 \size normal
13681 Rapid
13682 \family default
13683  for a Rapid communication
13684 \end_layout
13685
13686 \begin_layout Itemize
13687
13688 \family sans
13689 \size normal
13690 Letter
13691 \family default
13692  for a Letter to the editor
13693 \end_layout
13694
13695 \end_deeper
13696 \begin_layout Itemize
13697
13698 \size normal
13699 All title environments except of 
13700 \family sans
13701 Letter
13702 \family default
13703  can have an optional short title.
13704 \end_layout
13705
13706 \begin_layout Itemize
13707 There is a general title environment 
13708 \family sans
13709 Article
13710 \family default
13711  which is not directly supported by \SpecialChar LyX
13712 .
13713  This can be used as \SpecialChar TeX
13714  code when your document doesn't fit into one of the
13715  other title types.
13716 \end_layout
13717
13718 \begin_layout Standard
13719 For more informations like hints for special table and formula formatting,
13720  look at the IOP author guidelines.
13721 \end_layout
13722
13723 \begin_layout Section
13724 Kluwer
13725 \end_layout
13726
13727 \begin_layout Standard
13728 by 
13729 \noun on
13730 Panayotis Papasotiriou
13731 \end_layout
13732
13733 \begin_layout Subsection
13734 Overview
13735 \end_layout
13736
13737 \begin_layout Standard
13738 The Kluwer package is a set of macros produced by Kluwer Academic Publishers
13739  that facilitates electronic manuscript submission to the journals they
13740  publish.
13741  Most known of them (at least in my domain of interest) are 
13742 \emph on
13743 Astrophysics and Space Science
13744 \emph default
13745  and 
13746 \emph on
13747 Solar Physics
13748 \emph default
13749 , but there are many others (see a complete list at 
13750 \begin_inset Flex URL
13751 status collapsed
13752
13753 \begin_layout Plain Layout
13754
13755 http://www.wkap.nl/jrnllist.htm/JRNLHOME
13756 \end_layout
13757
13758 \end_inset
13759
13760 ).
13761  The Kluwer package may be downloaded from the site 
13762 \begin_inset Flex URL
13763 status collapsed
13764
13765 \begin_layout Plain Layout
13766
13767 http://www.wkap.nl/kaphtml.htm/STYLEFILES
13768 \end_layout
13769
13770 \end_inset
13771
13772 .
13773  A complete user guide is contained in that package (but it can also be
13774  downloaded separately).
13775 \end_layout
13776
13777 \begin_layout Standard
13778 \SpecialChar LyX
13779  supports many features of the package but not everything.
13780  However, the \SpecialChar TeX
13781  code needed is reduced to some 
13782 \begin_inset Quotes eld
13783 \end_inset
13784
13785 peculiar
13786 \begin_inset Quotes erd
13787 \end_inset
13788
13789  commands of the package (see
13790 \begin_inset space ~
13791 \end_inset
13792
13793
13794 \begin_inset CommandInset ref
13795 LatexCommand ref
13796 reference "subsec:kluwer_peculiarities"
13797
13798 \end_inset
13799
13800 ).
13801  I have recently used \SpecialChar LyX
13802  to write an article submitted to the 
13803 \emph on
13804 Astrophysics and Space Science
13805 \emph default
13806  without any problem.
13807 \end_layout
13808
13809 \begin_layout Subsection
13810 Writing a paper
13811 \end_layout
13812
13813 \begin_layout Standard
13814 The easiest way to write a paper is to start with the Kluwer template file.
13815  Click on 
13816 \family sans
13817 File\SpecialChar menuseparator
13818 New from
13819 \family default
13820  
13821 \family sans
13822 Template
13823 \family default
13824 , then choose the 
13825 \family typewriter
13826 kluwer.lyx
13827 \family default
13828  template.
13829  This will give an (almost) empty document that includes the most common
13830  fields found in a manuscript and a short description of their use.
13831  As in most templates, simply overwrite the existing text (including the
13832  brackets, 
13833 \family typewriter
13834 <>
13835 \family default
13836 ) with the correct information.
13837 \end_layout
13838
13839 \begin_layout Subsection
13840 Preparing a paper for submission
13841 \end_layout
13842
13843 \begin_layout Standard
13844 As in the AAS\SpecialChar TeX
13845  package, before you submit your paper to a journal you must
13846  
13847 \begin_inset Quotes eld
13848 \end_inset
13849
13850 postprocess
13851 \begin_inset Quotes erd
13852 \end_inset
13853
13854  it as follows.
13855 \end_layout
13856
13857 \begin_layout Enumerate
13858 Export your paper as a \SpecialChar LaTeX
13859  file.
13860  To do this, click on 
13861 \family sans
13862 File\SpecialChar menuseparator
13863 Export\SpecialChar menuseparator
13864 \SpecialChar LaTeX
13865
13866 \family default
13867 .
13868  
13869 \end_layout
13870
13871 \begin_layout Enumerate
13872 Edit the resulting 
13873 \family typewriter
13874 .tex
13875 \family default
13876  file with a text editor and make the following changes
13877 \end_layout
13878
13879 \begin_deeper
13880 \begin_layout Enumerate
13881 remove the comment lines before the 
13882 \family typewriter
13883
13884 \backslash
13885 documentclass
13886 \family default
13887  command,
13888 \end_layout
13889
13890 \begin_layout Enumerate
13891 remove everything between (and including) the 
13892 \family typewriter
13893
13894 \backslash
13895 makeatletter
13896 \family default
13897  and 
13898 \family typewriter
13899
13900 \backslash
13901 makeatother
13902 \family default
13903  commands, except for any commands you specifically put into the \SpecialChar LaTeX
13904  preamble.
13905 \end_layout
13906
13907 \begin_layout Standard
13908 Save the resulting 
13909 \family typewriter
13910 .tex
13911 \family default
13912  file.
13913 \end_layout
13914
13915 \end_deeper
13916 \begin_layout Enumerate
13917 Run the 
13918 \family typewriter
13919 .tex
13920 \family default
13921  file through \SpecialChar LaTeX
13922  as many times as necessary (usually up to three).
13923 \end_layout
13924
13925 \begin_layout Enumerate
13926 View the resulting 
13927 \family typewriter
13928 .dvi
13929 \family default
13930  document using, e.
13931 \begin_inset space \thinspace{}
13932 \end_inset
13933
13934 g.
13935 \begin_inset space \space{}
13936 \end_inset
13937
13938
13939 \family sans
13940 xdvi
13941 \family default
13942 , and check if everything is OK (it should, if you didn't make any mistake).
13943 \end_layout
13944
13945 \begin_layout Subsection
13946 \begin_inset Quotes eld
13947 \end_inset
13948
13949 Peculiarities
13950 \begin_inset Quotes erd
13951 \end_inset
13952
13953  of the Kluwer package
13954 \begin_inset CommandInset label
13955 LatexCommand label
13956 name "subsec:kluwer_peculiarities"
13957
13958 \end_inset
13959
13960
13961 \end_layout
13962
13963 \begin_layout Standard
13964 The Kluwer package has the following 
13965 \begin_inset Quotes eld
13966 \end_inset
13967
13968 peculiarities
13969 \begin_inset Quotes erd
13970 \end_inset
13971
13972 .
13973 \end_layout
13974
13975 \begin_layout Enumerate
13976 It is possible to write multiple articles in the same \SpecialChar LaTeX
13977  file
13978 \begin_inset Foot
13979 status collapsed
13980
13981 \begin_layout Plain Layout
13982 I can't imagine any good reason to do this.
13983 \end_layout
13984
13985 \end_inset
13986
13987 .
13988  Each article must be included in the environment 
13989 \begin_inset Quotes eld
13990 \end_inset
13991
13992 article
13993 \begin_inset Quotes erd
13994 \end_inset
13995
13996 .
13997  Unfortunately, this environment cannot be omitted, even if you write just
13998  one article.
13999  Therefore, each article starts with the command 
14000 \family typewriter
14001
14002 \backslash
14003 begin{article}
14004 \family default
14005  and, obviously, ends with the command 
14006 \family typewriter
14007
14008 \backslash
14009 end{article}
14010 \family default
14011 .
14012  Although this can be implemented in \SpecialChar LyX
14013 , I didn't included it, since it looks
14014  ugly and can confuse the novice user.
14015  Therefore, you need to enter them directly and mark them as \SpecialChar LaTeX
14016  code (the
14017  well-known 
14018 \begin_inset Quotes eld
14019 \end_inset
14020
14021 \SpecialChar TeX
14022  code
14023 \begin_inset Quotes erd
14024 \end_inset
14025
14026 ).
14027 \end_layout
14028
14029 \begin_layout Enumerate
14030 Information given at the beginning of the article (i.
14031 \begin_inset space \thinspace{}
14032 \end_inset
14033
14034 e.
14035 \begin_inset space \space{}
14036 \end_inset
14037
14038 title, subtitle, author, institution, running title, running author, abstract
14039  and keywords) must be included in an environment called 
14040 \begin_inset Quotes eld
14041 \end_inset
14042
14043 opening
14044 \begin_inset Quotes erd
14045 \end_inset
14046
14047 .
14048  This is not implemented in \SpecialChar LyX
14049 , so you must enter title, subtitle etc.
14050 \begin_inset space ~
14051 \end_inset
14052
14053 between two \SpecialChar TeX
14054  code lines (
14055 \family typewriter
14056
14057 \backslash
14058 begin{opening}
14059 \family default
14060  and 
14061 \family typewriter
14062
14063 \backslash
14064 end{opening}
14065 \family default
14066 ).
14067 \end_layout
14068
14069 \begin_layout Enumerate
14070 According to the user manual, the label of each bibliography item must be
14071  written as 
14072 \family typewriter
14073
14074 \backslash
14075 protect
14076 \backslash
14077 citeauthoryear{
14078 \family default
14079 \emph on
14080 author(s)
14081 \family typewriter
14082 \emph default
14083 }{
14084 \family default
14085 \emph on
14086 year
14087 \family typewriter
14088 \emph default
14089 }
14090 \family default
14091 .
14092 \end_layout
14093
14094 \begin_layout Standard
14095 The 
14096 \family typewriter
14097 kluwer.lyx
14098 \family default
14099  template takes care of all these 
14100 \begin_inset Quotes eld
14101 \end_inset
14102
14103 peculiarities
14104 \begin_inset Quotes erd
14105 \end_inset
14106
14107 .
14108  If you start a new paper using this template you don't need to do anything
14109  special.
14110  Just 
14111 \end_layout
14112
14113 \begin_layout Enumerate
14114 don't delete the \SpecialChar TeX
14115  code included in the template, and
14116 \end_layout
14117
14118 \begin_layout Enumerate
14119 copy the example bibliography item included in the template and modify it
14120  as necessary to enter new bibliography items.
14121 \end_layout
14122
14123 \begin_layout Section
14124 Koma-Script
14125 \end_layout
14126
14127 \begin_layout Standard
14128 by 
14129 \noun on
14130 Bernd Rellermeyer
14131 \end_layout
14132
14133 \begin_layout Subsection
14134 Overview
14135 \end_layout
14136
14137 \begin_layout Standard
14138 The \SpecialChar LyX
14139  document classes 
14140 \emph on
14141 article (koma-script)
14142 \emph default
14143
14144 \emph on
14145 report (koma-script)
14146 \emph default
14147
14148 \emph on
14149 book
14150 \emph default
14151  
14152 \emph on
14153 (koma-script)
14154 \emph default
14155 , and 
14156 \emph on
14157 letter
14158 \emph default
14159  
14160 \emph on
14161 (koma-script)
14162 \emph default
14163  correspond to the \SpecialChar LaTeX
14164  document classes 
14165 \family typewriter
14166 scrartcl.cls
14167 \family default
14168
14169 \family typewriter
14170 scrreprt.cls
14171 \family default
14172
14173 \family typewriter
14174 scrbook.cls
14175 \family default
14176 , and 
14177 \family typewriter
14178 scrlettr.cls
14179 \family default
14180 , resp.
14181 \begin_inset space ~
14182 \end_inset
14183
14184 of the Koma-Script family.
14185  They are replacements for the standard document classes 
14186 \family typewriter
14187 article.cls
14188 \family default
14189
14190 \family typewriter
14191 report.cls
14192 \family default
14193
14194 \family typewriter
14195 book.cls
14196 \family default
14197  and 
14198 \family typewriter
14199 letter.cls
14200 \family default
14201 , resp., and fit better to European typography conventions in a number of
14202  points.
14203 \end_layout
14204
14205 \begin_layout Itemize
14206 Standard character size is 11pt in 
14207 \emph on
14208 article (koma-script)
14209 \emph default
14210
14211 \emph on
14212 report (koma-script)
14213 \emph default
14214 , and 
14215 \emph on
14216 book (koma-script)
14217 \emph default
14218 , and 12pt in 
14219 \emph on
14220 letter (koma-script)
14221 \emph default
14222 .
14223 \end_layout
14224
14225 \begin_layout Itemize
14226 Headings, labels of the description environment, and a number of elements
14227  of the 
14228 \emph on
14229 letter (koma-script)
14230 \emph default
14231  document class are set in a bold sans serif font.
14232 \begin_inset Foot
14233 status collapsed
14234
14235 \begin_layout Plain Layout
14236 There is a big difference between the bold sans serif old cm fonts and new
14237  ec fonts, especially in the appearance of headings.
14238  In comparison, the ec bold sans serif fonts look a bit thin.
14239  Here the \SpecialChar LaTeX
14240  package 
14241 \family typewriter
14242 cmsd.sty by
14243 \family default
14244  
14245 \shape smallcaps
14246 Walter Schmidt
14247 \shape default
14248  helps to produce the 
14249 \begin_inset Quotes eld
14250 \end_inset
14251
14252 usual
14253 \begin_inset Quotes erd
14254 \end_inset
14255
14256  appearance when using the ec fonts.
14257 \end_layout
14258
14259 \end_inset
14260
14261  The numbering of chapter headings is made in the same way as the numbering
14262  of section headings, that is without the extra line 
14263 \begin_inset Quotes eld
14264 \end_inset
14265
14266 Chapter\SpecialChar ldots
14267
14268 \begin_inset Quotes erd
14269 \end_inset
14270
14271 .
14272  In addition, the appearance of the headings can be modified by using a
14273  number of options (in \SpecialChar LyX
14274  to be entered in the field 
14275 \family sans
14276 Extra
14277 \begin_inset space ~
14278 \end_inset
14279
14280 Options
14281 \family default
14282  of the dialog 
14283 \family sans
14284 Layout\SpecialChar menuseparator
14285 Document
14286 \family default
14287 ).
14288  
14289 \end_layout
14290
14291 \begin_layout Itemize
14292 The main means in the Koma-Script document classes to design the type area
14293  are the options 
14294 \family sans
14295 BCOR
14296 \family default
14297  and 
14298 \family sans
14299 DIV
14300 \family default
14301  (in \SpecialChar LyX
14302  to be entered in the extra class options field in the dialog 
14303 \family sans
14304 Document\SpecialChar menuseparator
14305 Settings
14306 \family default
14307 ).
14308  They make a clearer modification of page margins possible as do the options
14309  of the dialog 
14310 \family sans
14311 Document\SpecialChar menuseparator
14312 Settings
14313 \family default
14314 .
14315  
14316 \end_layout
14317
14318 \begin_layout Itemize
14319 The \SpecialChar LaTeX
14320  document classes of the Koma-Script family define a number of additional
14321  commands.
14322  Those part of it which makes sense in \SpecialChar LyX
14323  is implemented in corresponding
14324  paragraph types.
14325 \end_layout
14326
14327 \begin_layout Standard
14328 Detailed descriptions of the \SpecialChar LaTeX
14329  document classes of the Koma-Script family
14330  can be found in the Koma-Script documentation 
14331 \emph on
14332 scrguide
14333 \emph default
14334  (German) and 
14335 \emph on
14336 scrguien
14337 \emph default
14338  (English).
14339 \end_layout
14340
14341 \begin_layout Subsection
14342 article (koma-script), report (koma-script), and book (koma-script)
14343 \end_layout
14344
14345 \begin_layout Standard
14346 The document classes 
14347 \emph on
14348 article (koma-script)
14349 \emph default
14350
14351 \emph on
14352 report (koma-script)
14353 \emph default
14354 , and 
14355 \emph on
14356 book
14357 \emph default
14358  
14359 \emph on
14360 (koma-script)
14361 \emph default
14362  are implemented in the layout files 
14363 \family typewriter
14364 scrartcl.layout
14365 \family default
14366
14367 \family typewriter
14368 scrreprt.layout
14369 \family default
14370 , and 
14371 \family typewriter
14372 scrbook.layout
14373 \family default
14374 , resp.
14375  They contain all the paragraph types of the corresponding standard document
14376  classes 
14377 \emph on
14378 article
14379 \emph default
14380
14381 \emph on
14382 report
14383 \emph default
14384 , and 
14385 \emph on
14386 book
14387 \emph default
14388 , resp., partly modified, with the exception of the \SpecialChar LyX
14389  specific 
14390 \family sans
14391 List
14392 \family default
14393 -type, which is replaced by the new 
14394 \family sans
14395 Labeling
14396 \family default
14397 -type having the same functionality.
14398  Beside the 
14399 \family sans
14400 Labeling
14401 \family default
14402 -Type there is a number of new paragraph types added.
14403  They are 
14404 \emph on
14405 not
14406 \emph default
14407  part of 
14408 \emph on
14409 letter (koma-script)
14410 \emph default
14411 .
14412 \end_layout
14413
14414 \begin_layout Itemize
14415
14416 \family sans
14417 Addpart, Addchap
14418 \family default
14419
14420 \family sans
14421 Addsec
14422 \family default
14423 : are equivalents to 
14424 \family sans
14425 Part*, Chapter*
14426 \family default
14427  and 
14428 \family sans
14429 Section*
14430 \family default
14431 , resp., additionally inserting an entry in the table of contents.
14432  
14433 \family sans
14434 Addpart
14435 \family default
14436  and 
14437 \family sans
14438 Addchap
14439 \family default
14440  are not contained in 
14441 \emph on
14442 article (koma-script)
14443 \emph default
14444 .
14445 \end_layout
14446
14447 \begin_layout Itemize
14448
14449 \family sans
14450 Addchap*
14451 \family default
14452
14453 \family sans
14454 Addsec*
14455 \family default
14456 : behave exactly as 
14457 \family sans
14458 Addchap
14459 \family default
14460  and 
14461 \family sans
14462 Addsec
14463 \family default
14464 , resp., additionally clearing running heads.
14465  
14466 \family sans
14467 Addchap*
14468 \family default
14469  is not contained in 
14470 \emph on
14471 article (koma-script)
14472 \emph default
14473 .
14474 \begin_inset Foot
14475 status collapsed
14476
14477 \begin_layout Plain Layout
14478 There is also an 
14479 \family typewriter
14480
14481 \backslash
14482 addpart*
14483 \family default
14484  command in 
14485 \emph on
14486 book (koma-script)
14487 \emph default
14488  and in 
14489 \emph on
14490 report (koma-script)
14491 \emph default
14492 , but since this is identical to 
14493 \family sans
14494 Part*
14495 \family default
14496 , is has not been implemented in \SpecialChar LyX
14497 .
14498 \end_layout
14499
14500 \end_inset
14501
14502
14503 \end_layout
14504
14505 \begin_layout Itemize
14506
14507 \family sans
14508 Minisec
14509 \family default
14510 : generates a heading directly above the following paragraph in the standard
14511  character size without affecting the structure of the document.
14512 \end_layout
14513
14514 \begin_layout Itemize
14515
14516 \family sans
14517 Captionabove
14518 \family default
14519  and 
14520 \family sans
14521 Captionbelow
14522 \family default
14523  are special captions which respect the different space settings needed
14524  for captions placed above or below an element (if you follow strict typographic
14525  rules, you might want to place table captions always above the table).
14526  You can also use the class option 
14527 \family typewriter
14528 tablecaptionsabove
14529 \family default
14530 , which will switch 
14531 \family sans
14532 caption
14533 \family default
14534  to 
14535 \family sans
14536 captionabove
14537 \family default
14538  for tables and 
14539 \family sans
14540 captionbelow
14541 \family default
14542  for figures.
14543  You need at least Koma-Script version 2.8q to use this.
14544 \end_layout
14545
14546 \begin_layout Itemize
14547
14548 \family sans
14549 Dictum
14550 \family default
14551 : can be used to set a bonmot, e.
14552 \begin_inset space \thinspace{}
14553 \end_inset
14554
14555 g.
14556 \begin_inset space \space{}
14557 \end_inset
14558
14559 at the beginning of a chapter.
14560  If you use the optional argument (
14561 \family sans
14562 Insert\SpecialChar menuseparator
14563 Dictum
14564 \begin_inset space ~
14565 \end_inset
14566
14567 Author
14568 \family default
14569 ), you can insert the dictum's author there.
14570  Dictum and author are separated by a line.
14571  You need at least Koma-Script version 2.8q to use this.
14572  
14573 \family sans
14574 Dictum
14575 \family default
14576  is not contained in 
14577 \emph on
14578 article (koma-script)
14579 \emph default
14580 .
14581 \end_layout
14582
14583 \begin_layout Standard
14584 The following types, together with the standard types 
14585 \family sans
14586 Title
14587 \family default
14588
14589 \family sans
14590 Author
14591 \family default
14592 , and 
14593 \family sans
14594 Date
14595 \family default
14596 , form the title area of the document.
14597  They must be entered ahead of the first 
14598 \begin_inset Quotes eld
14599 \end_inset
14600
14601 ordinary
14602 \begin_inset Quotes erd
14603 \end_inset
14604
14605  paragraph.
14606 \begin_inset Foot
14607 status collapsed
14608
14609 \begin_layout Plain Layout
14610 The corresponding \SpecialChar LaTeX
14611  commands must appear before the 
14612 \family typewriter
14613
14614 \backslash
14615 maketitle
14616 \family default
14617  command.
14618 \end_layout
14619
14620 \end_inset
14621
14622  When such a type is used more than once, the latter usage overwrites the
14623  former one, that means, for every type only the latest usage is valid.
14624  The order of the different types however has, like 
14625 \family sans
14626 Title
14627 \family default
14628
14629 \family sans
14630 Author
14631 \family default
14632 , and 
14633 \family sans
14634 Date
14635 \family default
14636 , no effect on the appearance of the produced document.
14637 \end_layout
14638
14639 \begin_layout Itemize
14640
14641 \family sans
14642 Subject
14643 \family default
14644 : produces a centered paragraph above the ordinary title (
14645 \family sans
14646 Title
14647 \family default
14648
14649 \family sans
14650 Author
14651 \family default
14652
14653 \family sans
14654 Date
14655 \family default
14656 ) for the subject of the document.
14657 \end_layout
14658
14659 \begin_layout Itemize
14660
14661 \family sans
14662 Publishers
14663 \family default
14664 : produces a centered paragraph below the ordinary title (
14665 \family sans
14666 Title
14667 \family default
14668
14669 \family sans
14670 Author
14671 \family default
14672
14673 \family sans
14674 Date
14675 \family default
14676 ) for the publishers' name.
14677 \end_layout
14678
14679 \begin_layout Itemize
14680
14681 \family sans
14682 Dedication
14683 \family default
14684 : in 
14685 \emph on
14686 report (koma-script)
14687 \emph default
14688  and 
14689 \emph on
14690 book (koma-script)
14691 \emph default
14692  produces a centered paragraph on its own page behind the title page, or
14693  in 
14694 \emph on
14695 article (koma-script)
14696 \emph default
14697  produces a centered paragraph below the ordinary title (
14698 \family sans
14699 Title
14700 \family default
14701
14702 \family sans
14703 Author
14704 \family default
14705
14706 \family sans
14707 Date
14708 \family default
14709
14710 \family sans
14711 Publishers
14712 \family default
14713 ) for a dedication.
14714 \end_layout
14715
14716 \begin_layout Itemize
14717
14718 \family sans
14719 Titlehead
14720 \family default
14721 : produces a left aligned paragraph above the ordinary title (
14722 \family sans
14723 Title
14724 \family default
14725
14726 \family sans
14727 Author
14728 \family default
14729
14730 \family sans
14731 Date
14732 \family default
14733
14734 \family sans
14735 Subject
14736 \family default
14737 ) for a document`s head.
14738 \end_layout
14739
14740 \begin_layout Itemize
14741
14742 \family sans
14743 Uppertitleback
14744 \family default
14745 : produces in a double-sided print in 
14746 \emph on
14747 report (koma-script)
14748 \emph default
14749  and 
14750 \emph on
14751 book (koma-script)
14752 \emph default
14753  a left-aligned paragraph at the top of the title page`s back or has no
14754  effect in a single-sided print or in 
14755 \emph on
14756 article (koma-script)
14757 \emph default
14758 .
14759 \end_layout
14760
14761 \begin_layout Itemize
14762
14763 \family sans
14764 Lowertitleback
14765 \family default
14766 : produces in a double-sided print in 
14767 \emph on
14768 report (koma-script)
14769 \emph default
14770  and 
14771 \emph on
14772 book (koma-script)
14773 \emph default
14774  a left-aligned paragraph at the bottom of the title page`s back or has
14775  no effect in a single-sided print or in 
14776 \emph on
14777 article (koma-script)
14778 \emph default
14779 .
14780 \end_layout
14781
14782 \begin_layout Itemize
14783
14784 \family sans
14785 Extratitle
14786 \family default
14787 : produces a special 
14788 \begin_inset Quotes eld
14789 \end_inset
14790
14791 dirty
14792 \begin_inset Quotes erd
14793 \end_inset
14794
14795  page ahead of the actual document containing a paragraph without special
14796  formatting.
14797 \end_layout
14798
14799 \begin_layout Standard
14800 The layout files for the document classes 
14801 \emph on
14802 article (koma-script)
14803 \emph default
14804
14805 \emph on
14806 report (koma-script)
14807 \emph default
14808 , and 
14809 \emph on
14810 book (koma-script)
14811 \emph default
14812  do include the file 
14813 \family typewriter
14814 scrmacros.inc
14815 \family default
14816 .
14817  This is thought of as a place to define your own types.
14818  Copy scrmacros
14819 \family typewriter
14820 .inc
14821 \family default
14822  in your personal layout directory and edit the file!
14823 \end_layout
14824
14825 \begin_layout Subsection
14826 letter (koma-script)
14827 \end_layout
14828
14829 \begin_layout Description
14830 Note: This section discusses the obsolete 
14831 \family sans
14832 KOMA-Script-Letter (v.
14833 \begin_inset space ~
14834 \end_inset
14835
14836 1)
14837 \family default
14838 , which is not even included anymore in recent KOMA releases.
14839  Please refer to the next section for the current KOMA-Script-Letter class
14840  (v.
14841 \begin_inset space ~
14842 \end_inset
14843
14844 2)!
14845 \end_layout
14846
14847 \begin_layout Standard
14848 \noindent
14849 The document class 
14850 \emph on
14851 letter (koma-script)
14852 \emph default
14853  is implemented in the layout file 
14854 \family typewriter
14855 scrlettr.layout
14856 \family default
14857 .
14858  It contains all the paragraph types of the corresponding standard document
14859  class 
14860 \emph on
14861 letter
14862 \emph default
14863 , partly modified, with the exception of the \SpecialChar LyX
14864  specific types 
14865 \family sans
14866 \SpecialChar LyX
14867 -Code
14868 \family default
14869  and 
14870 \family sans
14871 Comment
14872 \family default
14873  and the 
14874 \family sans
14875 List
14876 \family default
14877  type, which is replaced by the new 
14878 \family sans
14879 Labeling
14880 \family default
14881  type.
14882  In addition, it contains, in contrast to the standard document class, the
14883  standard types 
14884 \family sans
14885 \SpecialChar LaTeX
14886
14887 \family default
14888
14889 \family sans
14890 Quotation
14891 \family default
14892
14893 \family sans
14894 Quote
14895 \family default
14896 , and 
14897 \family sans
14898 Verse
14899 \family default
14900 .
14901  Furthermore, there are a number of new letter specific types.
14902 \end_layout
14903
14904 \begin_layout Standard
14905 The appearance of the letter produced by this document class can be controlled
14906  by a number of \SpecialChar LaTeX
14907  commands, which you can put in the \SpecialChar LaTeX
14908  preamble.
14909 \begin_inset Foot
14910 status collapsed
14911
14912 \begin_layout Plain Layout
14913 For example, the standard appearance of the letter`s heading, consisting
14914  of name and address, is quite self-willed.
14915  An 
14916 \begin_inset Quotes eld
14917 \end_inset
14918
14919 ordinary
14920 \begin_inset Quotes erd
14921 \end_inset
14922
14923  heading is produced by the following \SpecialChar LaTeX
14924  commands in the preamble:
14925 \end_layout
14926
14927 \begin_layout LyX-Code
14928
14929 \backslash
14930 firsthead{
14931 \backslash
14932 parbox[b]{
14933 \backslash
14934 textwidth}
14935 \end_layout
14936
14937 \begin_layout LyX-Code
14938   {
14939 \backslash
14940 ignorespaces 
14941 \backslash
14942 fromname
14943 \backslash
14944
14945 \backslash
14946  
14947 \backslash
14948 ignorespaces 
14949 \backslash
14950 fromaddress}} 
14951 \end_layout
14952
14953 \begin_layout LyX-Code
14954
14955 \backslash
14956 nexthead{
14957 \backslash
14958 parbox[b]{
14959 \backslash
14960 textwidth}
14961 \end_layout
14962
14963 \begin_layout LyX-Code
14964   {
14965 \backslash
14966 ignorespaces 
14967 \backslash
14968 fromname 
14969 \backslash
14970 hfill 
14971 \backslash
14972 ignorespaces 
14973 \backslash
14974 pagename
14975 \backslash
14976  
14977 \backslash
14978 thepage}}
14979 \end_layout
14980
14981 \end_inset
14982
14983  A detailed German description of such \SpecialChar LaTeX
14984  commands can be found in the Koma-Script
14985  documentation 
14986 \emph on
14987 scrguide
14988 \emph default
14989 .
14990  With it, the letter's author can produce his personal letter layout.
14991 \end_layout
14992
14993 \begin_layout Standard
14994 The types 
14995 \family sans
14996 Letter
14997 \family default
14998  and 
14999 \family sans
15000 Opening
15001 \family default
15002  define the beginning of the letter and must be used in every letter.
15003  To emphasize them in the \SpecialChar LyX
15004  document class, they are marked with the letter
15005  
15006 \shape italic
15007 L
15008 \shape default
15009  or 
15010 \shape italic
15011 O
15012 \shape default
15013 , resp.
15014 \begin_inset space ~
15015 \end_inset
15016
15017 in the left margin.
15018  It is possible to write any number of letters in one file.
15019  An 
15020 \family sans
15021 Opening
15022 \family default
15023  type produces a new letter using the same addressee and a 
15024 \family sans
15025 Letter
15026 \family default
15027  type produces a new addressee.
15028  The types 
15029 \family sans
15030 Closing
15031 \family default
15032
15033 \family sans
15034 PS
15035 \family default
15036
15037 \family sans
15038 CC
15039 \family default
15040 , and 
15041 \family sans
15042 Encl
15043 \family default
15044  are ordinary paragraph types and can also be used several times in one
15045  and the same letter.
15046 \end_layout
15047
15048 \begin_layout Itemize
15049
15050 \family sans
15051 Letter
15052 \family default
15053 : produces a paragraph for the addressee and implicitly defines the beginning
15054  of the letter.
15055 \end_layout
15056
15057 \begin_layout Itemize
15058
15059 \family sans
15060 Opening
15061 \family default
15062 : produces a paragraph for the form of address and implicitly produces a
15063  new letter.
15064 \end_layout
15065
15066 \begin_layout Itemize
15067
15068 \family sans
15069 Closing
15070 \family default
15071 : produces a paragraph for a close.
15072 \end_layout
15073
15074 \begin_layout Itemize
15075
15076 \family sans
15077 PS
15078 \family default
15079 : produces a paragraph for a postscript.
15080 \end_layout
15081
15082 \begin_layout Itemize
15083
15084 \family sans
15085 CC
15086 \family default
15087 : produces a paragraph for a distribution list.
15088 \end_layout
15089
15090 \begin_layout Itemize
15091
15092 \family sans
15093 Encl
15094 \family default
15095 : produces a paragraph for enclosures.
15096 \end_layout
15097
15098 \begin_layout Standard
15099 The types 
15100 \family sans
15101 Name
15102 \family default
15103
15104 \family sans
15105 Signature
15106 \family default
15107
15108 \family sans
15109 Address
15110 \family default
15111
15112 \family sans
15113 Telephone
15114 \family default
15115
15116 \family sans
15117 Place
15118 \family default
15119
15120 \family sans
15121 Backaddress
15122 \family default
15123
15124 \family sans
15125 Specialmail
15126 \family default
15127
15128 \family sans
15129 Location
15130 \family default
15131
15132 \family sans
15133 Title
15134 \family default
15135 , and 
15136 \family sans
15137 Subject
15138 \family default
15139  are input types provided with a label to enter information, which will
15140  be processed by the document class.
15141 \begin_inset Foot
15142 status collapsed
15143
15144 \begin_layout Plain Layout
15145 It could be seen as a matter of inconsequence, that the types 
15146 \family sans
15147 Letter
15148 \family default
15149  and 
15150 \family sans
15151 Opening
15152 \family default
15153  described above are not such input types as well.
15154  Because of the special meaning of those types, however, I have implemented
15155  them as ordinary paragraph types with a one letter mark in the left margin.
15156  Moreover, it would affect my feeling of symmetry, if the 
15157 \family sans
15158 Opening
15159 \family default
15160  type and the 
15161 \family sans
15162 Closing
15163 \family default
15164  type had such a serious different appearance.
15165 \end_layout
15166
15167 \end_inset
15168
15169  The types must be used ahead of the corresponding 
15170 \family sans
15171 Opening
15172 \family default
15173  type.
15174 \end_layout
15175
15176 \begin_layout Standard
15177 An implementation of these types in a WYSIWYG fashion does not seem to make
15178  sense, because the real appearance of the produced letter does not only
15179  depend on the usage of the particular type, but also on other factors.
15180  For example, a signature entered in the 
15181 \family sans
15182 Signature
15183 \family default
15184  type will in the standard behavior appear in the produced letter only,
15185  when in the same letter also a 
15186 \family sans
15187 Closing
15188 \family default
15189  type is used.
15190  The entered value of the 
15191 \family sans
15192 Telephone
15193 \family default
15194  type will in the standard behavior not appear in the produced letter at
15195  all.
15196  The possibility to design the letter`s heading freely is already indicated
15197  in a footnote above.
15198 \end_layout
15199
15200 \begin_layout Standard
15201 The input types can also be used as empty paragraphs.
15202  This makes sense e.
15203 \begin_inset space \thinspace{}
15204 \end_inset
15205
15206 g.
15207 \begin_inset space \space{}
15208 \end_inset
15209
15210 for the 
15211 \family sans
15212 Signature
15213 \family default
15214  type.
15215  If the 
15216 \family sans
15217 Signature
15218 \family default
15219  type is not used at all, in the standard behavior the value of the 
15220 \family sans
15221 Name
15222 \family default
15223  type is used as signature, whereas if an empty 
15224 \family sans
15225 Signature
15226 \family default
15227  type is used, no signature value is defined.
15228 \end_layout
15229
15230 \begin_layout Standard
15231 By using the input types it is possible to write a letter template, containing
15232  filled input types with your personal dates (name, address, etc.) and empty
15233  input types for other dates you want to enter.
15234 \end_layout
15235
15236 \begin_layout Itemize
15237
15238 \family sans
15239 Name
15240 \family default
15241 : sender's name, in the standard behavior appears as a centered paragraph
15242  in small caps in the letter`s heading.
15243 \end_layout
15244
15245 \begin_layout Itemize
15246
15247 \family sans
15248 Signature
15249 \family default
15250 : sender's signature, in the standard behavior appears below the 
15251 \family sans
15252 Closing
15253 \family default
15254  type.
15255  If no 
15256 \family sans
15257 Signature
15258 \family default
15259  type is used, the value of the 
15260 \family sans
15261 Name
15262 \family default
15263  type appears instead.
15264 \end_layout
15265
15266 \begin_layout Itemize
15267
15268 \family sans
15269 Address
15270 \family default
15271 : sender's address, in the standard behavior appears in a centered paragraph
15272  in the letter`s heading below the sender's name.
15273 \end_layout
15274
15275 \begin_layout Itemize
15276
15277 \family sans
15278 Telephone
15279 \family default
15280 : sender's telephone number, in the standard behavior only sets the \SpecialChar LaTeX
15281  variable
15282  
15283 \family typewriter
15284
15285 \backslash
15286 telephonenum
15287 \family default
15288 .
15289 \end_layout
15290
15291 \begin_layout Itemize
15292
15293 \family sans
15294 Place
15295 \family default
15296 : place of the letter`s making.
15297 \end_layout
15298
15299 \begin_layout Itemize
15300
15301 \family sans
15302 Date
15303 \family default
15304 : date of the letter`s making.
15305  
15306 \family sans
15307 Place
15308 \family default
15309  and 
15310 \family sans
15311 Date
15312 \family default
15313 , in the standard behavior, produce the place and the date in a right-aligned
15314  line below the addressee's field.
15315  If an empty 
15316 \family sans
15317 Date
15318 \family default
15319  type is used, neither place nor date appear, independent of the value of
15320  the 
15321 \family sans
15322 Place
15323 \family default
15324  type.
15325  If no 
15326 \family sans
15327 Date
15328 \family default
15329  type is used, the date of the letter `s production is used.
15330 \end_layout
15331
15332 \begin_layout Itemize
15333
15334 \family sans
15335 Backaddress
15336 \family default
15337 : sender`s back address, in the standard behavior appears above the addressee's
15338  field in a small sans serif font.
15339 \end_layout
15340
15341 \begin_layout Itemize
15342
15343 \family sans
15344 Specialmail
15345 \family default
15346 : special mail information, in the standard behavior appears underlined
15347  above the addressee's field below the back address.
15348 \end_layout
15349
15350 \begin_layout Itemize
15351
15352 \family sans
15353 Location
15354 \family default
15355 : additional information, in the standard behavior appears on right side
15356  below the addressee`s field.
15357 \end_layout
15358
15359 \begin_layout Itemize
15360
15361 \family sans
15362 Title
15363 \family default
15364 : the letter's title, in the standard behavior appears in a big, bold, sans
15365  serif font above the subject.
15366 \end_layout
15367
15368 \begin_layout Itemize
15369
15370 \family sans
15371 Subject
15372 \family default
15373 : the letter's subject, in the standard behavior appears in a bold font
15374  above the 
15375 \family sans
15376 Opening
15377 \family default
15378  paragraph.
15379 \end_layout
15380
15381 \begin_layout Standard
15382 The types 
15383 \family sans
15384 Yourref
15385 \family default
15386
15387 \family sans
15388 Yourmail
15389 \family default
15390
15391 \family sans
15392 Myref
15393 \family default
15394
15395 \family sans
15396 Customer
15397 \family default
15398 , and 
15399 \family sans
15400 Invoice
15401 \family default
15402  produce a business letter like line above the 
15403 \family sans
15404 Title
15405 \family default
15406  line containing the fields 
15407 \begin_inset Quotes eld
15408 \end_inset
15409
15410 Your ref.
15411 \begin_inset Quotes erd
15412 \end_inset
15413
15414
15415 \begin_inset Quotes eld
15416 \end_inset
15417
15418 Your letter of
15419 \begin_inset Quotes erd
15420 \end_inset
15421
15422
15423 \begin_inset Quotes eld
15424 \end_inset
15425
15426 Our ref.
15427 \begin_inset Quotes erd
15428 \end_inset
15429
15430
15431 \begin_inset Quotes eld
15432 \end_inset
15433
15434 Customer no.
15435 \begin_inset Quotes erd
15436 \end_inset
15437
15438
15439 \begin_inset Quotes eld
15440 \end_inset
15441
15442 Invoice no.
15443 \begin_inset Quotes erd
15444 \end_inset
15445
15446 , and 
15447 \begin_inset Quotes eld
15448 \end_inset
15449
15450 Date
15451 \begin_inset Quotes erd
15452 \end_inset
15453
15454 .
15455  For the date field, the value of the 
15456 \family sans
15457 Date
15458 \family default
15459  type is used.
15460  If one of these 
15461 \begin_inset Quotes eld
15462 \end_inset
15463
15464 business letter types
15465 \begin_inset Quotes erd
15466 \end_inset
15467
15468  is used, the value of the 
15469 \family sans
15470 Place
15471 \family default
15472  type however does not appear, but only the \SpecialChar LaTeX
15473  variable 
15474 \family typewriter
15475
15476 \backslash
15477 fromplace
15478 \family default
15479  is set.
15480  The ordinary output of place and date in a right-aligned line below the
15481  addressee`s field is suppressed.
15482  The types are implemented as input types provided with a label and must
15483  be used ahead of the corresponding 
15484 \family sans
15485 Opening
15486 \family default
15487  type.
15488 \end_layout
15489
15490 \begin_layout Itemize
15491
15492 \family sans
15493 Yourref
15494 \family default
15495 : Your ref.
15496 \end_layout
15497
15498 \begin_layout Itemize
15499
15500 \family sans
15501 Yourmail
15502 \family default
15503 : Your letter of.
15504 \end_layout
15505
15506 \begin_layout Itemize
15507
15508 \family sans
15509 Myref
15510 \family default
15511 : Our ref.
15512 \end_layout
15513
15514 \begin_layout Itemize
15515
15516 \family sans
15517 Customer
15518 \family default
15519 : Customer no.
15520 \end_layout
15521
15522 \begin_layout Itemize
15523
15524 \family sans
15525 Invoice
15526 \family default
15527 : Invoice no.
15528 \end_layout
15529
15530 \begin_layout Subsection
15531 The new letter class: letter (koma-script v.2)
15532 \end_layout
15533
15534 \begin_layout Standard
15535 by 
15536 \noun on
15537 Jürgen Spitzmüller
15538 \end_layout
15539
15540 \begin_layout Standard
15541 \begin_inset VSpace medskip
15542 \end_inset
15543
15544
15545 \end_layout
15546
15547 \begin_layout Standard
15548 \noindent
15549 Koma-Script version 2.8 has introduced a new letter class 
15550 \family typewriter
15551 scrlttr2
15552 \family default
15553  which supersedes the now unsupported 
15554 \family typewriter
15555 scrlettr
15556 \family default
15557 .
15558  It has — on the \SpecialChar LaTeX
15559  side — a completely new interface and is not compatible
15560  with the old class.
15561  Therefore, \SpecialChar LyX
15562  supports both, though it is recommended you use the new class.
15563 \end_layout
15564
15565 \begin_layout Standard
15566 This class covers the same functionality as 
15567 \emph on
15568 letter (koma-script),
15569 \emph default
15570  and a few more.
15571  The basic items are 
15572 \family sans
15573 Address
15574 \family default
15575  (receiver's address, same as 
15576 \family sans
15577 Letter
15578 \family default
15579  in the old layout), 
15580 \family sans
15581 Opening
15582 \family default
15583 , and 
15584 \family sans
15585 Closing
15586 \family default
15587 .
15588  
15589 \family sans
15590 NextAddress
15591 \family default
15592  will start a new letter (i.
15593 \begin_inset space \thinspace{}
15594 \end_inset
15595
15596 e.
15597 \begin_inset space \space{}
15598 \end_inset
15599
15600 you can write several letters per document).
15601  New elements are sender's 
15602 \family sans
15603 E-Mail
15604 \family default
15605
15606 \family sans
15607 URL
15608 \family default
15609
15610 \family sans
15611 Fax
15612 \family default
15613
15614 \family sans
15615 Bank
15616 \family default
15617  and the possibility to use a 
15618 \family sans
15619 Logo
15620 \family default
15621  (via 
15622 \family sans
15623 Insert\SpecialChar menuseparator
15624 Graphics
15625 \family default
15626 ) in the header.
15627 \end_layout
15628
15629 \begin_layout Standard
15630 The biggest improvement is, though, that the letter's layout is configurable
15631  to meet almost any needs.
15632  This can be done via the preamble or with a special style file (Letter
15633  Class Option, extension 
15634 \family typewriter
15635 *.lco
15636 \family default
15637 ), that will be read in as a class option.
15638 \begin_inset Foot
15639 status collapsed
15640
15641 \begin_layout Plain Layout
15642 The KOMA package comes with some default 
15643 \family typewriter
15644 *.lco
15645 \family default
15646  files.
15647  There is, for instance, a 
15648 \family typewriter
15649 DIN.lco
15650 \family default
15651  file that follows german typesetting rules, or a 
15652 \family typewriter
15653 KOMAold.lco
15654 \family default
15655  that provides the default layout of the old 
15656 \family typewriter
15657 scrlettr
15658 \family default
15659  class.
15660  The latter can be loaded with the class option 
15661 \family typewriter
15662 KOMAold
15663 \family default
15664 , inserted via the 
15665 \family sans
15666 Layout\SpecialChar menuseparator
15667 Document\SpecialChar menuseparator
15668 Extra Options
15669 \family default
15670  field.
15671 \end_layout
15672
15673 \end_inset
15674
15675  Have a look at the 
15676 \emph on
15677 koma-letter2
15678 \emph default
15679  template that is included in \SpecialChar LyX
15680  for examples.
15681  A detailed description is to be found in the Koma-Script documentation
15682  (
15683 \emph on
15684 scrguide
15685 \emph default
15686 ).
15687 \end_layout
15688
15689 \begin_layout Subsection
15690 Problems
15691 \end_layout
15692
15693 \begin_layout Standard
15694 Visualizing the Koma-Script document classes in \SpecialChar LyX
15695 , the \SpecialChar LyX
15696  internals cause some
15697  problems.
15698 \end_layout
15699
15700 \begin_layout Itemize
15701 The chapter number of a 
15702 \family sans
15703 Chapter
15704 \family default
15705  type appears on a line of its own above the chapter heading instead of
15706  appearing in the same line ahead of it.
15707  The cause for that is the \SpecialChar LyX
15708  internal behavior for the labeltype 
15709 \family sans
15710 Counter_Chapter
15711 \family default
15712  in the layout file.
15713 \end_layout
15714
15715 \begin_layout Itemize
15716 The headings of the types 
15717 \family sans
15718 Addchap
15719 \family default
15720  and 
15721 \family sans
15722 Addsec
15723 \family default
15724  are only put in the 
15725 \begin_inset Quotes eld
15726 \end_inset
15727
15728 true
15729 \begin_inset Quotes erd
15730 \end_inset
15731
15732  \SpecialChar LaTeX
15733  table of contents, but not in the \SpecialChar LyX
15734  table of contents (
15735 \family sans
15736 Document\SpecialChar menuseparator
15737 Table
15738 \begin_inset space ~
15739 \end_inset
15740
15741 of
15742 \begin_inset space ~
15743 \end_inset
15744
15745 Contents
15746 \family default
15747 ).
15748 \end_layout
15749
15750 \begin_layout Itemize
15751 The paragraphs in a 
15752 \emph on
15753 letter
15754 \emph default
15755  document class appear in a skip separation mode, not indented.
15756  This is the standard behavior, no special \SpecialChar LaTeX
15757  commands are needed for that.
15758  But in the 
15759 \family sans
15760 Document\SpecialChar menuseparator
15761 Settings
15762 \family default
15763  dialog the corresponding radio button indicates 
15764 \family sans
15765 Indent
15766 \family default
15767 .
15768  A 
15769 \family sans
15770 Skip
15771 \family default
15772  value always has the effect that extra \SpecialChar LaTeX
15773  commands are inserted in the document
15774  to produce the gap, which is not what is wanted in this case.
15775 \end_layout
15776
15777 \begin_layout Section
15778 Memoir
15779 \end_layout
15780
15781 \begin_layout Standard
15782 By 
15783 \noun on
15784 Jürgen Spitzmüller
15785 \end_layout
15786
15787 \begin_layout Subsection
15788 Overview
15789 \end_layout
15790
15791 \begin_layout Standard
15792 Memoir is a very powerful and constantly evolving class.
15793  It has been designed with regard to fictional and non-fictional literature.
15794  Its aim is to let the user have maximum control over the typesetting of
15795  his document.
15796  Memoir is based on the standard book class, but it can also emulate the
15797  article class (see below).
15798 \end_layout
15799
15800 \begin_layout Standard
15801 Peter Wilson, the developer of Memoir, is known as the author of lots of
15802  useful packages in the \SpecialChar LaTeX
15803  world.
15804  Most of them have been merged with Memoir.
15805  Therefore, it is much easier to layout the table of contents, appendices,
15806  chapter designs and such.
15807  \SpecialChar LyX
15808 , though, does not support all of these goodies natively.
15809  Some of them might be added to forthcoming releases
15810 \begin_inset Foot
15811 status collapsed
15812
15813 \begin_layout Plain Layout
15814 You are invited to send suggestions to 
15815 \begin_inset Flex URL
15816 status collapsed
15817
15818 \begin_layout Plain Layout
15819
15820 lyx-devel@lists.lyx.org
15821 \end_layout
15822
15823 \end_inset
15824
15825 .
15826 \end_layout
15827
15828 \end_inset
15829
15830 , lots will probably never be supported, due to the limitations of \SpecialChar LyX
15831 's framework.
15832  Of course you can still use all features with the help of some native \SpecialChar LaTeX
15833
15834  commands (\SpecialChar TeX
15835  code
15836 \begin_inset Foot
15837 status collapsed
15838
15839 \begin_layout Plain Layout
15840 Cf.
15841 \begin_inset ERT
15842 status collapsed
15843
15844 \begin_layout Plain Layout
15845
15846
15847 \backslash
15848  
15849 \end_layout
15850
15851 \end_inset
15852
15853 section
15854 \begin_inset space ~
15855 \end_inset
15856
15857
15858 \begin_inset CommandInset ref
15859 LatexCommand ref
15860 reference "sec:Inserting-TeX-Code"
15861
15862 \end_inset
15863
15864  for details.
15865 \end_layout
15866
15867 \end_inset
15868
15869 ).
15870  In this section, we can only list those features that are natively supported
15871  by \SpecialChar LyX
15872 .
15873  For detailed descriptions (and for the rest of features) we recommend you
15874  have a look at the detailed manual of the Memoir class
15875 \begin_inset Foot
15876 status collapsed
15877
15878 \begin_layout Plain Layout
15879 Cf.
15880 \begin_inset ERT
15881 status collapsed
15882
15883 \begin_layout Plain Layout
15884
15885
15886 \backslash
15887  
15888 \end_layout
15889
15890 \end_inset
15891
15892
15893 \begin_inset Flex URL
15894 status collapsed
15895
15896 \begin_layout Plain Layout
15897
15898 CTAN:/macros/latex/memoir/memman.pdf
15899 \end_layout
15900
15901 \end_inset
15902
15903 .
15904 \end_layout
15905
15906 \end_inset
15907
15908 , which is not only a user guide for the class, but also both a comprehensive
15909  description on good typesetting and a superb example for good typesetting
15910  itself.
15911 \end_layout
15912
15913 \begin_layout Subsection
15914 Basic features and restrictions
15915 \end_layout
15916
15917 \begin_layout Standard
15918 Memoir supports basically all features of the standard book classes.
15919  There are, however, some differences, as follows:
15920 \end_layout
15921
15922 \begin_layout Description
15923 Font
15924 \begin_inset space ~
15925 \end_inset
15926
15927 sizes: Memoir has a broader range of font sizes: 9, 10, 11, 12, 14, 17
15928 \end_layout
15929
15930 \begin_layout Description
15931 Page
15932 \begin_inset space ~
15933 \end_inset
15934
15935 style: The fancy page style is not supported, due to a command clash between
15936  Memoir and the fancyhdr package (they both define a command with the same
15937  name, which confuses \SpecialChar LaTeX
15938 ).
15939  Instead, Memoir comes with a number of its own page styles (see 
15940 \family sans
15941 Document\SpecialChar menuseparator
15942 Settings\SpecialChar menuseparator
15943 Page
15944 \begin_inset space ~
15945 \end_inset
15946
15947 Style
15948 \family default
15949 ).
15950  If you want to use these for the chapter pages, you have to use the command
15951  
15952 \family typewriter
15953
15954 \backslash
15955 chapterstyle
15956 \family default
15957  in the main text or in preamble (e.
15958 \begin_inset space \thinspace{}
15959 \end_inset
15960
15961 g.
15962 \begin_inset space \space{}
15963 \end_inset
15964
15965
15966 \family typewriter
15967
15968 \backslash
15969 chapterstyle{companion}
15970 \family default
15971 ).
15972 \end_layout
15973
15974 \begin_layout Description
15975 Sectioning: Sectionings (chapter, section, subsection etc.) come with an
15976  optional argument in the standard classes.
15977  With this, you can specify an alternative version of the title for the
15978  table of contents and the headers (for instance, if the title is too long).
15979  In \SpecialChar LyX
15980 , you can do this via 
15981 \family sans
15982 Insert\SpecialChar menuseparator
15983 Short
15984 \begin_inset space ~
15985 \end_inset
15986
15987 Title
15988 \family default
15989  at the beginning of a chapter/section.
15990  Memoir features a second optional argument and thus separates the table
15991  of contents from the header.
15992  You can define three variants of a title with this: one for the main text,
15993  one for the table of contents, and one for the headers.
15994  \SpecialChar LyX
15995  makes these available in form of specific 
15996 \family sans
15997 Short Title
15998 \family default
15999  variants in the 
16000 \family sans
16001 Insert
16002 \family default
16003  menu.
16004 \end_layout
16005
16006 \begin_layout Description
16007 TOC/LOT/LOF: In the standard classes (and in many other classes), the table
16008  of contents, the list of figures and the list of table start a new page
16009  automatically.
16010  Memoir does not follow this route.
16011  You have to insert a page break yourself, if you want to have one.
16012 \end_layout
16013
16014 \begin_layout Description
16015 Titlepage: For some unknown reason, Memoir uses pagination on the title
16016  page (in the standard classes, title pages are 
16017 \begin_inset Quotes eld
16018 \end_inset
16019
16020 empty
16021 \begin_inset Quotes erd
16022 \end_inset
16023
16024 ).
16025  If you want an empty title page, type 
16026 \family typewriter
16027
16028 \backslash
16029 aliaspagestyle{title}{empty}
16030 \family default
16031  in the preamble.
16032 \end_layout
16033
16034 \begin_layout Description
16035 Article: With the class option 
16036 \emph on
16037 article
16038 \emph default
16039  (to be inserted in 
16040 \family sans
16041 Document\SpecialChar menuseparator
16042 Settings\SpecialChar menuseparator
16043 Class Settings\SpecialChar menuseparator
16044 Custom
16045 \begin_inset space ~
16046 \end_inset
16047
16048 Options
16049 \family default
16050 ), you can emulate article style.
16051  That is, counters (footnotes, figures, tables etc.) will not be reset on
16052  new chapters, chapters don't start a new page (but are—in contrary to 
16053 \begin_inset Quotes eld
16054 \end_inset
16055
16056 real
16057 \begin_inset Quotes erd
16058 \end_inset
16059
16060  article classes—still allowed), parts, though, use their own page, as in
16061  book.
16062 \end_layout
16063
16064 \begin_layout Description
16065 Oldfontcommands: By default, Memoir does not allow the use of the deprecated
16066  font commands, which have been used in the old \SpecialChar LaTeX
16067  version 2.09 (e.
16068 \begin_inset space \thinspace{}
16069 \end_inset
16070
16071 g.
16072 \begin_inset space \space{}
16073 \end_inset
16074
16075
16076 \family typewriter
16077
16078 \backslash
16079 rm
16080 \family default
16081
16082 \family typewriter
16083
16084 \backslash
16085 it
16086 \family default
16087 ).
16088  It produces an error and stops \SpecialChar LaTeX
16089  whenever such a command appears.
16090  The class option 
16091 \emph on
16092 oldfontcommands
16093 \emph default
16094  reallows the commands and spits out warnings instead (which does at least
16095  not stop \SpecialChar LaTeX
16096 ).
16097  Since a lot of packages and particularly Bib\SpecialChar TeX
16098  style files are still using
16099  those commands, we have decided to use this option by default.
16100 \end_layout
16101
16102 \begin_layout Subsection
16103 Extra features
16104 \end_layout
16105
16106 \begin_layout Standard
16107 We will only describe the features supported by \SpecialChar LyX
16108  (which is not much currently).
16109  Please consult the Memoir manual
16110 \begin_inset Foot
16111 status collapsed
16112
16113 \begin_layout Plain Layout
16114 Cf.
16115 \begin_inset ERT
16116 status collapsed
16117
16118 \begin_layout Plain Layout
16119
16120
16121 \backslash
16122  
16123 \end_layout
16124
16125 \end_inset
16126
16127
16128 \begin_inset Flex URL
16129 status collapsed
16130
16131 \begin_layout Plain Layout
16132
16133 CTAN:/macros/latex/memoir/memman.pdf
16134 \end_layout
16135
16136 \end_inset
16137
16138 .
16139 \end_layout
16140
16141 \end_inset
16142
16143  for details.
16144 \end_layout
16145
16146 \begin_layout Description
16147 Abstract: You may wonder why an abstract is an extra feature.
16148  Well, it is in book class.
16149  Usually books don't have abstracts.
16150  Memoir, however, has.
16151  You can use it wherever and how often you like.
16152 \end_layout
16153
16154 \begin_layout Description
16155 Chapterprecis: You may know this older typesetting style: The contents of
16156  a chapter are summarized below the title and also in the table of contents
16157  (e.
16158 \begin_inset space \thinspace{}
16159 \end_inset
16160
16161 g.
16162 \begin_inset space \space{}
16163 \end_inset
16164
16165
16166 \emph on
16167 Our hero arrives in Troia; he loses some friends; he finds others
16168 \emph default
16169 ).
16170  Chapterprecis does exactly this.
16171  It is therefore only sensible below a chapter.
16172 \end_layout
16173
16174 \begin_layout Description
16175 Epigraph: An epigraph is a smart slogan or motto at the beginning of a chapter.
16176  The epigraph environment provides an elegant way of typesetting such a
16177  motto.
16178  The motto itself (text) and its (optional) author (source) are divided
16179  by a short line.
16180  The author (source) can be inserted via 
16181 \family sans
16182 Insert\SpecialChar menuseparator
16183 Epigraph Source
16184 \family default
16185 \emph on
16186 .
16187 \end_layout
16188
16189 \begin_layout Description
16190 Poemtitle: Memoir has lots of possibilities to typeset poetry (up to very
16191  complex figurative poems).
16192  \SpecialChar LyX
16193  can only support a few of them.
16194  One is poemtitle, which is a centered title for poems, which will also
16195  be added to the table of contents (verse is the standard environment for
16196  poems.
16197  Memoir has some enhanced versions of verse, but you need to use \SpecialChar TeX
16198  code,
16199  because they have to be nested inside regular verse environments, which
16200  is not possible with \SpecialChar LyX
16201 ).
16202 \end_layout
16203
16204 \begin_layout Description
16205 Poemtitle*: Same as poemtitle, but it adds no entry to the table of contents.
16206 \end_layout
16207
16208 \begin_layout Section
16209 Article (mwart), book (mwbk) and report (mwrep)
16210 \begin_inset Argument status
16211 status collapsed
16212
16213 \begin_layout Plain Layout
16214 The 
16215 \family typewriter
16216 mw
16217 \family default
16218  Classes
16219 \end_layout
16220
16221 \end_inset
16222
16223
16224 \end_layout
16225
16226 \begin_layout Standard
16227 by 
16228 \noun on
16229 Tomasz Luczak
16230 \end_layout
16231
16232 \begin_layout Standard
16233 The \SpecialChar LyX
16234  document classes 
16235 \emph on
16236 article (mwart)
16237 \emph default
16238
16239 \emph on
16240 report (mwrep)
16241 \emph default
16242  and 
16243 \emph on
16244 book
16245 \emph default
16246  
16247 \emph on
16248 (mwbk)
16249 \emph default
16250  correspond to the \SpecialChar LaTeX
16251  document classes 
16252 \family typewriter
16253 mwart.cls
16254 \family default
16255
16256 \family typewriter
16257 mwrep.cls
16258 \family default
16259  and 
16260 \family typewriter
16261 mwbk.cls
16262 \family default
16263 , resp.
16264  They are replacements for the standard document classes 
16265 \family typewriter
16266 article.cls
16267 \family default
16268
16269 \family typewriter
16270 report.cls
16271 \family default
16272  and 
16273 \family typewriter
16274 book.cls
16275 \family default
16276 , resp., and fit better to Polish typography conventions in a number of points.
16277  
16278 \end_layout
16279
16280 \begin_layout Standard
16281 Basic differences:
16282 \end_layout
16283
16284 \begin_layout Itemize
16285 Unnumbered titles (with star, e.
16286 \begin_inset space \thinspace{}
16287 \end_inset
16288
16289 g.
16290 \begin_inset space \space{}
16291 \end_inset
16292
16293
16294 \family sans
16295 Section*
16296 \family default
16297 ) are added into table of contents,
16298 \end_layout
16299
16300 \begin_layout Itemize
16301 Additional page styles:
16302 \end_layout
16303
16304 \begin_deeper
16305 \begin_layout Description
16306 uheadings header with separated lines,
16307 \end_layout
16308
16309 \begin_layout Description
16310 myheadings custom header, contents headers via commands: 
16311 \family typewriter
16312
16313 \backslash
16314 markright
16315 \family default
16316  and 
16317 \family typewriter
16318
16319 \backslash
16320 markboth
16321 \family default
16322 ,
16323 \end_layout
16324
16325 \begin_layout Description
16326 myuheadings custom header with separated lines,
16327 \end_layout
16328
16329 \begin_layout Description
16330 outer page number is placed on outer side of page
16331 \end_layout
16332
16333 \end_deeper
16334 \begin_layout Itemize
16335 Options 
16336 \end_layout
16337
16338 \begin_deeper
16339 \begin_layout Description
16340 rmheadings serif titles — default,
16341 \end_layout
16342
16343 \begin_layout Description
16344 sfheadings sansserif titles,
16345 \end_layout
16346
16347 \begin_layout Description
16348 authortitle on title page first placed is author next title — default,
16349 \end_layout
16350
16351 \begin_layout Description
16352 titleauthor on title page first placed is title next author,
16353 \end_layout
16354
16355 \begin_layout Description
16356 withmarginpar reserve place on page for margins.
16357 \end_layout
16358
16359 \end_deeper
16360 \begin_layout Section
16361 Paper
16362 \end_layout
16363
16364 \begin_layout Standard
16365 The document class 
16366 \family sans
16367 paper
16368 \family default
16369  provides an alternative to the standard 
16370 \family sans
16371 article
16372 \family default
16373  class.
16374  It provides similar functionality, but you might prefer this layout with
16375  sans serif sections, headings, and more.
16376 \end_layout
16377
16378 \begin_layout Section
16379 Rev\SpecialChar TeX
16380 4
16381 \end_layout
16382
16383 \begin_layout Standard
16384 by 
16385 \noun on
16386 Amir Karger
16387 \end_layout
16388
16389 \begin_layout Standard
16390 \begin_inset VSpace bigskip
16391 \end_inset
16392
16393
16394 \end_layout
16395
16396 \begin_layout Standard
16397 \noindent
16398 The 
16399 \family sans
16400 Revtex
16401 \begin_inset space ~
16402 \end_inset
16403
16404 4
16405 \family default
16406  textclass works with the American Physical Sociey's Rev\SpecialChar TeX
16407  4.0 (the 
16408 \begin_inset Formula $\beta$
16409 \end_inset
16410
16411  release of May, 1999) class.
16412 \end_layout
16413
16414 \begin_layout Standard
16415 \SpecialChar LyX
16416  has a 
16417 \family sans
16418 Revtex
16419 \family default
16420  textclass, which works with Rev\SpecialChar TeX
16421  3.1.
16422  However, v3.1 is basically obsolete, as it works with \SpecialChar LaTeX
16423  2.09.
16424  That means that it doesn't interact very well with \SpecialChar LyX
16425 , which requires \SpecialChar LaTeX2e
16426 , although
16427  it has been kludged to work.
16428  Since Rev\SpecialChar TeX
16429  4.0 has been designed to work much more cleanly with \SpecialChar LaTeX2e
16430 , \SpecialChar LyX
16431  with the
16432  
16433 \family sans
16434 Rev\SpecialChar TeX
16435
16436 \begin_inset space ~
16437 \end_inset
16438
16439 4
16440 \family default
16441  textclass should also be pretty easy to use.
16442 \end_layout
16443
16444 \begin_layout Standard
16445 These documents are supposed to be used in 
16446 \emph on
16447 addition
16448 \emph default
16449  to the Rev\SpecialChar TeX
16450  4.0 documents, so we don't describe any of the special Rev\SpecialChar TeX
16451  macros,
16452  and assume you'll know what to put in the preamble if necessary.
16453 \end_layout
16454
16455 \begin_layout Subsection
16456 Installation
16457 \end_layout
16458
16459 \begin_layout Standard
16460 All you need to do is install Rev\SpecialChar TeX
16461  4, as described in the package's README
16462  file.
16463  The package can be found at The Rev\SpecialChar TeX
16464  4 Web Site 
16465 \begin_inset Flex URL
16466 status collapsed
16467
16468 \begin_layout Plain Layout
16469
16470 http://publish.aps.org/revtex4/
16471 \end_layout
16472
16473 \end_inset
16474
16475 .
16476  Install it somewhere that \SpecialChar LaTeX
16477  can see it.
16478  Test it by trying to \SpecialChar LaTeX
16479  a short Rev\SpecialChar TeX
16480  4 document in some random directory (i.
16481 \begin_inset space \thinspace{}
16482 \end_inset
16483
16484 e.
16485 \begin_inset space \space{}
16486 \end_inset
16487
16488 not the directory where you installed the class file.) Then, if you reconfigure
16489  \SpecialChar LyX
16490 , it will find the class file and let you use the Rev\SpecialChar TeX
16491 4 textclass.
16492 \end_layout
16493
16494 \begin_layout Standard
16495 Probably the easiest way to get started is either to import a Rev\SpecialChar TeX
16496  4 document
16497  using 
16498 \family typewriter
16499 tex2lyx
16500 \family default
16501 , or to use the 
16502 \family sans
16503 Revtex
16504 \begin_inset space ~
16505 \end_inset
16506
16507 4
16508 \family default
16509  template, found in the templates directory.
16510 \end_layout
16511
16512 \begin_layout Subsection
16513 Preamble Matter
16514 \end_layout
16515
16516 \begin_layout Standard
16517 Optional arguments to 
16518 \family typewriter
16519
16520 \backslash
16521 documentclass
16522 \family default
16523 , like 
16524 \begin_inset Quotes eld
16525 \end_inset
16526
16527 preprint
16528 \begin_inset Quotes erd
16529 \end_inset
16530
16531  and 
16532 \begin_inset Quotes eld
16533 \end_inset
16534
16535 aps
16536 \begin_inset Quotes erd
16537 \end_inset
16538
16539 , go in the 
16540 \family sans
16541 Extra
16542 \begin_inset space ~
16543 \end_inset
16544
16545 Options
16546 \family default
16547  field in the 
16548 \family sans
16549 Document
16550 \begin_inset space ~
16551 \end_inset
16552
16553 Layout
16554 \family default
16555  dialog, as usual.
16556  Remember that in Rev\SpecialChar TeX
16557 , at least one optional argument is required! 
16558 \end_layout
16559
16560 \begin_layout Standard
16561 Other preamble matter, like 
16562 \family typewriter
16563
16564 \backslash
16565 draft
16566 \family default
16567  etc.
16568 \begin_inset space ~
16569 \end_inset
16570
16571 goes in the 
16572 \family sans
16573 \SpecialChar LaTeX
16574
16575 \begin_inset space ~
16576 \end_inset
16577
16578 Preamble
16579 \family default
16580  dialog, also as usual.
16581 \end_layout
16582
16583 \begin_layout Subsection
16584 Layouts
16585 \end_layout
16586
16587 \begin_layout Standard
16588 The layouts basically correspond to the commands in Rev\SpecialChar TeX
16589 4.0.
16590  For example, the Email layout corresponds to 
16591 \family typewriter
16592
16593 \backslash
16594 email{}
16595 \family default
16596 .
16597  Note that (at least as of Rev\SpecialChar TeX
16598  4.0 Beta), the 
16599 \family sans
16600 Address
16601 \family default
16602  and 
16603 \family sans
16604 Affiliation
16605 \family default
16606  layouts are exactly equivalent, so you shouldn't need to use both.
16607 \begin_inset Foot
16608 status collapsed
16609
16610 \begin_layout Plain Layout
16611 In case you're curious, both were included so that 
16612 \family typewriter
16613 tex2lyx
16614 \family default
16615  would be able to translate both 
16616 \family typewriter
16617
16618 \backslash
16619 address
16620 \family default
16621  and 
16622 \family typewriter
16623
16624 \backslash
16625 affiliation
16626 \family default
16627 .
16628 \end_layout
16629
16630 \end_inset
16631
16632
16633 \end_layout
16634
16635 \begin_layout Subsection
16636 Important Notes
16637 \end_layout
16638
16639 \begin_layout Standard
16640 There are a couple of important unique aspects of Rev\SpecialChar TeX
16641  4 which might cause
16642  bugs that will be even more confusing in \SpecialChar LyX
16643 .
16644 \end_layout
16645
16646 \begin_layout Standard
16647 In Rev\SpecialChar TeX
16648 , the 
16649 \family typewriter
16650
16651 \backslash
16652 thanks
16653 \family default
16654  command goes 
16655 \emph on
16656 outside
16657 \emph default
16658  the 
16659 \family typewriter
16660
16661 \backslash
16662 author
16663 \family default
16664  command.
16665  The \SpecialChar LyX
16666  equivalent is that there is a separate Thanks layout.
16667  Do 
16668 \emph on
16669 not
16670 \emph default
16671  write footnotes in the 
16672 \family sans
16673 Author
16674 \family default
16675  layout, or weird things may happen.
16676  See the Rev\SpecialChar TeX
16677  4 documentation for more details.
16678 \end_layout
16679
16680 \begin_layout Standard
16681 Also, the 
16682 \family sans
16683 Author
16684 \begin_inset space ~
16685 \end_inset
16686
16687 Email
16688 \family default
16689
16690 \family sans
16691 Author
16692 \begin_inset space ~
16693 \end_inset
16694
16695 URL
16696 \family default
16697 , and 
16698 \family sans
16699 Thanks
16700 \family default
16701  layouts must be placed 
16702 \emph on
16703 in between
16704 \emph default
16705  the 
16706 \family sans
16707 Author
16708 \family default
16709  layout and the corresponding 
16710 \family sans
16711 Address
16712 \family default
16713  (or equivalent 
16714 \family sans
16715 Affiliation
16716 \family default
16717 ) layout.
16718  If you put the 
16719 \family sans
16720 Thanks
16721 \family default
16722  after the 
16723 \family sans
16724 Address
16725 \family default
16726 , the \SpecialChar LaTeX
16727  won't compile.
16728 \end_layout
16729
16730 \begin_layout Section
16731 Springer Journals (
16732 \family sans
16733 svjour
16734 \family default
16735 )
16736 \end_layout
16737
16738 \begin_layout Standard
16739 by 
16740 \noun on
16741 Martin Vermeer
16742 \end_layout
16743
16744 \begin_layout Subsection
16745 Description
16746 \end_layout
16747
16748 \begin_layout Standard
16749 These are the layout files for some of the journal formats used by Springer
16750  Verlag and listed on 
16751 \begin_inset Flex URL
16752 status collapsed
16753
16754 \begin_layout Plain Layout
16755
16756 http://www.springer.de/author/tex/help-journals.html
16757 \end_layout
16758
16759 \end_inset
16760
16761 , where you should also go to fetch the class files (yes, these are \SpecialChar LaTeX2e
16762  now!).
16763  It is a modular system: the things common to all journals are implemented
16764  in 
16765 \family typewriter
16766 svjour.inc
16767 \family default
16768 , which journal-specific layout files (such as, e.
16769 \begin_inset space \thinspace{}
16770 \end_inset
16771
16772 g.
16773 \begin_inset space \space{}
16774 \end_inset
16775
16776
16777 \family typewriter
16778 svjog.layout
16779 \family default
16780  for Journal of Geodesy) can include.
16781 \end_layout
16782
16783 \begin_layout Standard
16784 This means that implementing support for any other Springer journal on this
16785  list is as simple as writing your own 
16786 \family typewriter
16787 sv
16788 \family default
16789 <myjournal>
16790 \family typewriter
16791 .layout
16792 \family default
16793  file following the outline given in 
16794 \family typewriter
16795 svjog.layout
16796 \family default
16797 .
16798  
16799 \end_layout
16800
16801 \begin_layout Standard
16802 It is reasonably well tested only for the Journal of Geodesy.
16803  
16804 \family typewriter
16805 svjour
16806 \family default
16807  and 
16808 \family typewriter
16809 svjog
16810 \family default
16811  come with the standard \SpecialChar LyX
16812  distribution.
16813  Install the relevant class file (downloaded from Springer) in a proper
16814  directory, reconfigure \SpecialChar LaTeX
16815  (in the te\SpecialChar TeX
16816  case by running 
16817 \family typewriter
16818 texhash
16819 \family default
16820 , as root if necessary — doesn't \SpecialChar LyX
16821  take care of this?), reconfigure \SpecialChar LyX
16822  and
16823  it should work.
16824 \end_layout
16825
16826 \begin_layout Subsection
16827 New styles
16828 \end_layout
16829
16830 \begin_layout Standard
16831 A large number of theorem-like styles — 
16832 \family sans
16833 Claim, Conjecture,
16834 \family default
16835  
16836 \family sans
16837 \SpecialChar ldots
16838 Theorem
16839 \family default
16840 .
16841 \end_layout
16842
16843 \begin_layout Standard
16844
16845 \family sans
16846 Headnote, Dedication, Subtitle, Running_\SpecialChar LaTeX
16847 _Title, Author_Running, Institute,
16848  Mail, Offprints, Keywords, Acknowledgements, Acknowledgement
16849 \family default
16850 .
16851  See the Springer class file documentation for details.
16852 \end_layout
16853
16854 \begin_layout Subsection
16855 Supported journals
16856 \end_layout
16857
16858 \begin_layout Itemize
16859
16860 \emph on
16861 Journal of Geodesy
16862 \emph default
16863
16864 \family typewriter
16865 svjog.layout
16866 \family default
16867  — Martin Vermeer
16868 \end_layout
16869
16870 \begin_layout Itemize
16871
16872 \emph on
16873 Probability Theory and Related Fields
16874 \emph default
16875
16876 \family typewriter
16877 svprobth.layout
16878 \family default
16879  — Jean-Marc Lasgouttes
16880 \end_layout
16881
16882 \begin_layout Standard
16883 Add your own, it isn't so hard!
16884 \end_layout
16885
16886 \begin_layout Subsection
16887 Credits
16888 \end_layout
16889
16890 \begin_layout Standard
16891 These files are partly based on the older 
16892 \family typewriter
16893 ejour2.layout
16894 \family default
16895 , which was again based on a tinkered-with version of an old \SpecialChar LaTeX
16896  2.09 style
16897  file from Springer.
16898  All this, and the 
16899 \family typewriter
16900 ejour2
16901 \family default
16902  layout, are now defunct.
16903  Jean-Marc Lasgouttes helped out big in making me find my way around the
16904  \SpecialChar LyX
16905  layout file mechanism.
16906 \end_layout
16907
16908 \begin_layout Subsection
16909 Bugs
16910 \end_layout
16911
16912 \begin_layout Standard
16913 Probably.
16914  But probably less than in the old hacked-\SpecialChar LaTeX
16915  
16916 \family typewriter
16917 ejour2
16918 \family default
16919 .
16920 \end_layout
16921
16922 \begin_layout Section
16923 Slides [aka 
16924 \noun on
16925 Sli\SpecialChar TeX
16926
16927 \noun default
16928 ]
16929 \begin_inset CommandInset label
16930 LatexCommand label
16931 name "sec:slitex"
16932
16933 \end_inset
16934
16935
16936 \end_layout
16937
16938 \begin_layout Standard
16939 by 
16940 \noun on
16941 John Weiss
16942 \noun default
16943  
16944 \end_layout
16945
16946 \begin_layout Subsection
16947 Introduction
16948 \end_layout
16949
16950 \begin_layout Standard
16951 This section describes how to use \SpecialChar LyX
16952  to make slides for overhead projectors.
16953  There are two document classes that can do this: the default slides class
16954  and the 
16955 \family sans
16956 Foil\SpecialChar TeX
16957
16958 \family default
16959  slides class.
16960  This section documents the former.
16961 \end_layout
16962
16963 \begin_layout Standard
16964 I'm going to say this again, nice and clear, so that there's no misunderstanding
16965 :
16966 \end_layout
16967
16968 \begin_layout Standard
16969 \begin_inset VSpace bigskip
16970 \end_inset
16971
16972
16973 \end_layout
16974
16975 \begin_layout Standard
16976 \align center
16977
16978 \size large
16979 This section documents the class 
16980 \begin_inset Quotes eld
16981 \end_inset
16982
16983
16984 \family sans
16985 slides (default)
16986 \family default
16987
16988 \begin_inset Quotes erd
16989 \end_inset
16990
16991  
16992 \emph on
16993 only.
16994 \end_layout
16995
16996 \begin_layout Standard
16997 \begin_inset VSpace bigskip
16998 \end_inset
16999
17000
17001 \end_layout
17002
17003 \begin_layout Standard
17004 If you're looking for the documentation for 
17005 \begin_inset Quotes eld
17006 \end_inset
17007
17008
17009 \family sans
17010 slides (Foil\SpecialChar TeX
17011 )
17012 \family default
17013
17014 \begin_inset Quotes erd
17015 \end_inset
17016
17017 , check out section
17018 \begin_inset space ~
17019 \end_inset
17020
17021
17022 \begin_inset CommandInset ref
17023 LatexCommand ref
17024 reference "sec:foiltex"
17025
17026 \end_inset
17027
17028 .
17029  The 
17030 \family sans
17031 foils
17032 \family default
17033  class [
17034 \begin_inset Quotes eld
17035 \end_inset
17036
17037
17038 \family sans
17039 slides (Foil\SpecialChar TeX
17040 )
17041 \family default
17042
17043 \begin_inset Quotes erd
17044 \end_inset
17045
17046 ] is actually somewhat better than the default 
17047 \family sans
17048 slides
17049 \family default
17050  class,
17051 \begin_inset Foot
17052 status collapsed
17053
17054 \begin_layout Plain Layout
17055 \SpecialChar ldots
17056 or so I've been told repeatedly by its advocates.
17057  Having never used it, I have no idea if this claim is true or not.
17058 \end_layout
17059
17060 \end_inset
17061
17062  which this section documents.
17063 \end_layout
17064
17065 \begin_layout Standard
17066 This class is the \SpecialChar LaTeX2e
17067  improvement of the old 
17068 \noun on
17069 Sli\SpecialChar TeX
17070
17071 \noun default
17072  package.
17073  Every \SpecialChar LaTeX2e
17074  distribution includes this class [which I'll just refer to as 
17075 \begin_inset Quotes eld
17076 \end_inset
17077
17078
17079 \family sans
17080 slides
17081 \family default
17082
17083 \begin_inset Quotes erd
17084 \end_inset
17085
17086  from now on], so you're bound to have it.
17087  As I noted earlier, there are other classes, such as 
17088 \family sans
17089 foils
17090 \family default
17091 , which also produce slides for overhead projectors and do a better job
17092  at it.
17093  However, there are some things which 
17094 \family sans
17095 slides
17096 \family default
17097  can do which the others can't, such as generate overlays.
17098  Read on to learn more!
17099 \end_layout
17100
17101 \begin_layout Subsection
17102 Getting Started
17103 \begin_inset CommandInset label
17104 LatexCommand label
17105 name "sec:slidesetup"
17106
17107 \end_inset
17108
17109
17110 \end_layout
17111
17112 \begin_layout Standard
17113 Obviously, to use this document class, you need to select 
17114 \begin_inset Quotes eld
17115 \end_inset
17116
17117
17118 \family sans
17119 slides (default)
17120 \family default
17121
17122 \begin_inset Quotes erd
17123 \end_inset
17124
17125  from the class list in the 
17126 \family sans
17127 Document\SpecialChar menuseparator
17128 Settings
17129 \family default
17130  dialog.
17131  There are some other special things you should know about this class:
17132 \end_layout
17133
17134 \begin_layout Itemize
17135 Don't bother changing the options 
17136 \family sans
17137 Sides and Columns
17138 \family default
17139 .
17140  They're not supported by the 
17141 \family sans
17142 slides
17143 \family default
17144  class, anyways.
17145 \end_layout
17146
17147 \begin_layout Itemize
17148 The option 
17149 \family sans
17150 Page
17151 \begin_inset space ~
17152 \end_inset
17153
17154 style
17155 \family default
17156  behaves a bit differently for this class.
17157  The possible choices and what they do are as follows:
17158 \end_layout
17159
17160 \begin_deeper
17161 \begin_layout Description
17162
17163 \family sans
17164 plain
17165 \family default
17166  The final output contains page numbers in the lower right corner.
17167 \end_layout
17168
17169 \begin_layout Description
17170
17171 \family sans
17172 headings
17173 \family default
17174  Like 
17175 \family sans
17176 plain
17177 \family default
17178 , but also prints out any time markers you've put in.
17179  This is the default.
17180 \end_layout
17181
17182 \begin_layout Description
17183
17184 \family sans
17185 empty
17186 \family default
17187  The final output contains no page numbers, time markers, or alignment markers.
17188 \end_layout
17189
17190 \end_deeper
17191 \begin_layout Itemize
17192 The 
17193 \family sans
17194 slides
17195 \family default
17196  class has an extra option: 
17197 \family typewriter
17198 clock
17199 \family default
17200 .
17201  To use it, put 
17202 \begin_inset Quotes eld
17203 \end_inset
17204
17205
17206 \family typewriter
17207 clock
17208 \family default
17209
17210 \begin_inset Quotes erd
17211 \end_inset
17212
17213  in the extra class options.
17214 \end_layout
17215
17216 \begin_deeper
17217 \begin_layout Standard
17218 Using this options allows you to add time markers to 
17219 \family sans
17220 Note
17221 \family default
17222 s.
17223  See section
17224 \begin_inset space ~
17225 \end_inset
17226
17227
17228 \begin_inset CommandInset ref
17229 LatexCommand ref
17230 reference "sec:slideNote"
17231
17232 \end_inset
17233
17234  for more details.
17235 \end_layout
17236
17237 \end_deeper
17238 \begin_layout Standard
17239 You can also use the template file 
17240 \begin_inset Quotes eld
17241 \end_inset
17242
17243
17244 \family typewriter
17245 slides.lyx
17246 \family default
17247
17248 \begin_inset Quotes erd
17249 \end_inset
17250
17251  to automatically set up a document to use the 
17252 \family sans
17253 slides
17254 \family default
17255  class [using 
17256 \family sans
17257 File\SpecialChar menuseparator
17258 New
17259 \begin_inset space ~
17260 \end_inset
17261
17262 from
17263 \begin_inset space ~
17264 \end_inset
17265
17266 Template
17267 \family default
17268  to open your new document].
17269  The template file also contains some examples of the special paragraph
17270  environments used by this class.
17271  I'll describe those next.
17272 \end_layout
17273
17274 \begin_layout Subsection
17275 Paragraph Environments
17276 \end_layout
17277
17278 \begin_layout Subsubsection
17279 Supported Environments
17280 \end_layout
17281
17282 \begin_layout Standard
17283 The first thing you'll notice when you start up a new 
17284 \family sans
17285 slides
17286 \family default
17287  document is the font size and type: it's the equivalent of the size 
17288 \begin_inset Quotes eld
17289 \end_inset
17290
17291
17292 \family sans
17293 Largest
17294 \family default
17295
17296 \begin_inset Quotes erd
17297 \end_inset
17298
17299  in the 
17300 \family sans
17301 Sans
17302 \begin_inset space ~
17303 \end_inset
17304
17305 Serif
17306 \family default
17307  font.
17308  This is also what's used in the output.
17309  Think of this as a 
17310 \begin_inset Quotes eld
17311 \end_inset
17312
17313 visual cue
17314 \begin_inset Quotes erd
17315 \end_inset
17316
17317  to remind you that this is a slide.
17318  Your final slides will use a larger font; ergo, you'll have less space.
17319  Of course, the larger default screen font isn't WYSIWYG, only a reminder.
17320 \end_layout
17321
17322 \begin_layout Standard
17323 The next thing that becomes obvious is the changes to the paragraph environment
17324  pull-down box [at the far-left end of the toolbar].
17325  Most of the paragraph environments you're used to seeing are missing.
17326  There are also five new ones.
17327  That's because the 
17328 \family sans
17329 slides
17330 \family default
17331  class itself only supports certain paragraph environments:
17332 \end_layout
17333
17334 \begin_layout Itemize
17335
17336 \family sans
17337 Standard
17338 \end_layout
17339
17340 \begin_layout Itemize
17341
17342 \family sans
17343 Itemize
17344 \end_layout
17345
17346 \begin_layout Itemize
17347
17348 \family sans
17349 Enumerate
17350 \end_layout
17351
17352 \begin_layout Itemize
17353
17354 \family sans
17355 Description
17356 \end_layout
17357
17358 \begin_layout Itemize
17359
17360 \family sans
17361 List
17362 \end_layout
17363
17364 \begin_layout Itemize
17365
17366 \family sans
17367 Quotation
17368 \end_layout
17369
17370 \begin_layout Itemize
17371
17372 \family sans
17373 Quote
17374 \end_layout
17375
17376 \begin_layout Itemize
17377
17378 \family sans
17379 Verse
17380 \end_layout
17381
17382 \begin_layout Itemize
17383
17384 \family sans
17385 Caption
17386 \end_layout
17387
17388 \begin_layout Itemize
17389
17390 \family sans
17391 \SpecialChar LyX
17392 -Code
17393 \end_layout
17394
17395 \begin_layout Standard
17396 All of the other standard environments, including the section-heading environmen
17397 ts, aren't used in the 
17398 \family sans
17399 slides
17400 \family default
17401  class.
17402 \end_layout
17403
17404 \begin_layout Standard
17405 On the other hand, you'll notice the following new environments:
17406 \end_layout
17407
17408 \begin_layout Itemize
17409
17410 \family sans
17411 Slide
17412 \end_layout
17413
17414 \begin_layout Itemize
17415
17416 \family sans
17417 Overlay
17418 \end_layout
17419
17420 \begin_layout Itemize
17421
17422 \family sans
17423 Note
17424 \end_layout
17425
17426 \begin_layout Itemize
17427
17428 \family sans
17429 InvisibleText
17430 \end_layout
17431
17432 \begin_layout Itemize
17433
17434 \family sans
17435 VisibleText
17436 \end_layout
17437
17438 \begin_layout Standard
17439 These five are kind of quirky, due to a 
17440 \begin_inset Quotes eld
17441 \end_inset
17442
17443 feature
17444 \begin_inset Quotes erd
17445 \end_inset
17446
17447  in \SpecialChar LyX
17448 .
17449  You see, \SpecialChar LyX
17450  doesn't permit you to nest any other paragraph environment into
17451  an empty environment.
17452  Now, that's fine and dandy, but it means that you wouldn't be able to start
17453  a slide with anything except plain text.
17454  To deal with this, I've performed a little 
17455 \begin_inset Quotes eld
17456 \end_inset
17457
17458 \SpecialChar LaTeX
17459  magic.
17460 \begin_inset Quotes erd
17461 \end_inset
17462
17463  
17464 \end_layout
17465
17466 \begin_layout Subsubsection
17467 Quirks of the New Environments
17468 \begin_inset CommandInset label
17469 LatexCommand label
17470 name "sec:slideQuirk"
17471
17472 \end_inset
17473
17474
17475 \end_layout
17476
17477 \begin_layout Standard
17478 All five of the new paragraph environments are somewhat quirky due to inherent
17479  limitiations in the current version of \SpecialChar LyX
17480 .
17481  As I just mentioned, \SpecialChar LyX
17482  forbids environments that begin with another environment.
17483  To get around this, the 
17484 \family sans
17485 Slide
17486 \family default
17487  environment isn't a paragraph environment as described in the 
17488 \emph on
17489 User's Guide
17490 \emph default
17491 .
17492  
17493 \end_layout
17494
17495 \begin_layout Standard
17496 You should consider 
17497 \family sans
17498 Slide
17499 \family default
17500
17501 \family sans
17502 Overlay
17503 \family default
17504 , and 
17505 \family sans
17506 Note
17507 \family default
17508  to be 
17509 \begin_inset Quotes eld
17510 \end_inset
17511
17512 pseudo-environments.
17513 \begin_inset Quotes erd
17514 \end_inset
17515
17516  They look like a section heading or a 
17517 \begin_inset Quotes eld
17518 \end_inset
17519
17520
17521 \family sans
17522 Caption
17523 \family default
17524 ,
17525 \begin_inset Quotes erd
17526 \end_inset
17527
17528  but really begin a [and, if necessary, end the previous] paragraph environment.
17529  Likewise, treat 
17530 \family sans
17531 InvisibleText
17532 \family default
17533  and 
17534 \family sans
17535 VisibleText
17536 \family default
17537  as 
17538 \begin_inset Quotes eld
17539 \end_inset
17540
17541 pseudo-commands.
17542 \begin_inset Quotes erd
17543 \end_inset
17544
17545  These two perform some action.
17546 \end_layout
17547
17548 \begin_layout Standard
17549 A common feature of all five environments, 
17550 \family sans
17551 Slide
17552 \family default
17553
17554 \family sans
17555 Overlay
17556 \family default
17557
17558 \family sans
17559 Note
17560 \family default
17561
17562 \family sans
17563 InvisibleText
17564 \family default
17565  and 
17566 \family sans
17567 VisibleText
17568 \family default
17569 , is a rather long-ish label.
17570  The text following this label — ordinarily the contents of the paragraph
17571  environment — is utterly irrelevant for 
17572 \family sans
17573 Slide
17574 \family default
17575
17576 \family sans
17577 Overlay
17578 \family default
17579
17580 \family sans
17581 Note
17582 \family default
17583
17584 \family sans
17585 InvisibleText
17586 \family default
17587  and 
17588 \family sans
17589 VisibleText
17590 \family default
17591 .
17592  \SpecialChar LyX
17593  completely ignores it.
17594  In fact, you can leave these five environments completely empty.
17595  
17596 \end_layout
17597
17598 \begin_layout Standard
17599 While you don't 
17600 \emph on
17601 have
17602 \emph default
17603  to put any text after the rather long-ish label, you might want to.
17604  This could be a short description of the contents of the 
17605 \family sans
17606 Slide
17607 \family default
17608 , for example.
17609  In that case, enter your descriptive comment and hit 
17610 \family sans
17611 Return
17612 \family default
17613  as you normally would.
17614 \end_layout
17615
17616 \begin_layout Standard
17617 If, on the other hand, you don't want to enter any descriptive text, you'll
17618  hit another \SpecialChar LyX
17619  quirk.
17620  \SpecialChar LyX
17621 , like nature, abhors a vacuum, and will not let you start a new paragraph
17622  environment until you put something in the old one.
17623  So, do this:
17624 \end_layout
17625
17626 \begin_layout Itemize
17627 Start entering the text that will 
17628 \emph on
17629 follow
17630 \emph default
17631  the new 
17632 \family sans
17633 Slide
17634 \family default
17635
17636 \family sans
17637 Overlay
17638 \family default
17639
17640 \family sans
17641 Note
17642 \family default
17643
17644 \family sans
17645 InvisibleText
17646 \family default
17647  or 
17648 \family sans
17649 VisibleText
17650 \family default
17651 .
17652  
17653 \end_layout
17654
17655 \begin_layout Itemize
17656 Now move to the beginning of that paragraph.
17657  
17658 \end_layout
17659
17660 \begin_layout Itemize
17661 Next, hit 
17662 \family sans
17663 Return
17664 \family default
17665 .
17666  
17667 \end_layout
17668
17669 \begin_layout Itemize
17670 Finally, change this new, empty paragraph to a 
17671 \family sans
17672 Slide
17673 \family default
17674
17675 \family sans
17676 Overlay
17677 \family default
17678
17679 \family sans
17680 Note
17681 \family default
17682
17683 \family sans
17684 InvisibleText
17685 \family default
17686  or 
17687 \family sans
17688 VisibleText
17689 \family default
17690 .
17691  
17692 \end_layout
17693
17694 \begin_layout Standard
17695 Some future version of \SpecialChar LyX
17696  will, hopefully, resolve this quirkiness\SpecialChar ldots
17697
17698 \end_layout
17699
17700 \begin_layout Subsection
17701 Making a Presentation with 
17702 \family sans
17703 Slide
17704 \family default
17705
17706 \family sans
17707 Overlay
17708 \family default
17709  and 
17710 \family sans
17711 Note
17712 \end_layout
17713
17714 \begin_layout Subsubsection
17715 Using the 
17716 \family sans
17717 Slide
17718 \family default
17719  Environment
17720 \end_layout
17721
17722 \begin_layout Standard
17723 If you're expecting this section to teach you how to actually make a presentatio
17724 n, you'll be sorely disappointed.
17725  Naturally, I'll describe all of the ways the 
17726 \family sans
17727 slides
17728 \family default
17729  class can assist you in preparing the materials for a presentation.
17730  Filling in the contents, however, is up to you.
17731  [Then again, that 
17732 \emph on
17733 is
17734 \emph default
17735  the \SpecialChar LyX
17736  philosophy.]
17737 \end_layout
17738
17739 \begin_layout Standard
17740 Choosing the 
17741 \family sans
17742 Slide
17743 \family default
17744  environment [in the manner described in section
17745 \begin_inset space ~
17746 \end_inset
17747
17748
17749 \begin_inset CommandInset ref
17750 LatexCommand ref
17751 reference "sec:slideQuirk"
17752
17753 \end_inset
17754
17755 ] tells \SpecialChar LyX
17756  to begin a new slide [duh].
17757  The label for this environment/
17758 \begin_inset Quotes erd
17759 \end_inset
17760
17761 pseudo-command
17762 \begin_inset Quotes erd
17763 \end_inset
17764
17765  is an 
17766 \begin_inset Quotes eld
17767 \end_inset
17768
17769 ASCII line,
17770 \begin_inset Quotes erd
17771 \end_inset
17772
17773  in cool blue, followed by the label, 
17774 \begin_inset Quotes eld
17775 \end_inset
17776
17777 NewSlide:
17778 \begin_inset Quotes erd
17779 \end_inset
17780
17781 .
17782  Any text or paragraph environments that follow this one go on the new slide.
17783  It's that simple.
17784 \end_layout
17785
17786 \begin_layout Standard
17787 Slides are probably the only time you'll need to forcibly end pages in \SpecialChar LyX
17788
17789  (this can be specified in the 
17790 \family sans
17791 Paragraph Layout
17792 \family default
17793  dialog).
17794  In fact, you'll want to, once you finish entering the contents of one slide.
17795  If you've entered more text than can physically fit on a slide, the extra
17796  overflows onto a new slide.
17797  I don't recommend doing this, however, since the overflow slide won't have
17798  any page number on it.
17799  Furthermore, it may interfere with any 
17800 \family sans
17801 Overlay
17802 \family default
17803  you've made to accompany the oversized 
17804 \family sans
17805 Slide
17806 \family default
17807 .
17808 \end_layout
17809
17810 \begin_layout Standard
17811 The 
17812 \family sans
17813 Overlay
17814 \family default
17815  and 
17816 \family sans
17817 Note
17818 \family default
17819  environments work the same way as the 
17820 \family sans
17821 Slide
17822 \family default
17823  environment.
17824  They both create an 
17825 \begin_inset Quotes eld
17826 \end_inset
17827
17828 ASCII line
17829 \begin_inset Quotes erd
17830 \end_inset
17831
17832  followed by a label [
17833 \begin_inset Quotes eld
17834 \end_inset
17835
17836 NewOverlay:
17837 \begin_inset Quotes erd
17838 \end_inset
17839
17840  and 
17841 \begin_inset Quotes eld
17842 \end_inset
17843
17844 NewNote:
17845 \begin_inset Quotes erd
17846 \end_inset
17847
17848 , respectively].
17849  The color is a stunning magenta instead of blue, and the 
17850 \begin_inset Quotes eld
17851 \end_inset
17852
17853 ASCII line
17854 \begin_inset Quotes erd
17855 \end_inset
17856
17857  will look different, in style and in length.
17858  The label fonts of all three also differ from one another.
17859 \end_layout
17860
17861 \begin_layout Standard
17862 As with a 
17863 \family sans
17864 Slide
17865 \family default
17866 , if the contents of a 
17867 \family sans
17868 Note
17869 \family default
17870  or 
17871 \family sans
17872 Overlay
17873 \family default
17874  exceed the physical size of a slide or sheet of paper, the extra will overflow
17875  onto a new sheet.
17876  Again, you should avoid this.
17877  It defeats the whole purpose of 
17878 \family sans
17879 Note
17880 \family default
17881 s and 
17882 \family sans
17883 Overlay
17884 \family default
17885 s.
17886 \end_layout
17887
17888 \begin_layout Subsubsection
17889 Using 
17890 \family sans
17891 Overlay
17892 \family default
17893  with 
17894 \family sans
17895 Slide
17896 \end_layout
17897
17898 \begin_layout Standard
17899 The idea behind an 
17900 \family sans
17901 Overlay
17902 \family default
17903  is a slide that sits atop another slide.
17904  Perhaps you wish to discuss a figure on the main 
17905 \family sans
17906 Slide
17907 \family default
17908  before displaying the text associated with it.
17909  One way to accomplish this is tape a flap of dark paper over the part of
17910  the 
17911 \family sans
17912 Slide
17913 \family default
17914  you want to display later.
17915  This method fails, however, if you wish to overlap one graph with another,
17916  for example.
17917  You would then have to fumble while speaking to align the two separate,
17918  overlapping 
17919 \family sans
17920 Slide
17921 \family default
17922 s to align the two graphs.
17923  The use of an 
17924 \family sans
17925 Overlay
17926 \family default
17927  environment in both cases makes life much easier.
17928 \end_layout
17929
17930 \begin_layout Standard
17931 Each 
17932 \family sans
17933 Overlay
17934 \family default
17935  receives the page number of its 
17936 \begin_inset Quotes eld
17937 \end_inset
17938
17939 parent
17940 \begin_inset Quotes erd
17941 \end_inset
17942
17943  
17944 \family sans
17945 Slide
17946 \family default
17947 , appended by 
17948 \begin_inset Quotes eld
17949 \end_inset
17950
17951
17952 \family typewriter
17953 -a
17954 \family default
17955
17956 \begin_inset Quotes erd
17957 \end_inset
17958
17959 .
17960 \begin_inset Foot
17961 status collapsed
17962
17963 \begin_layout Plain Layout
17964 Presumably, mutliple 
17965 \family sans
17966 Overlay
17967 \family default
17968 s would have 
17969 \begin_inset Quotes eld
17970 \end_inset
17971
17972
17973 \family typewriter
17974 -a
17975 \family default
17976
17977 \begin_inset Quotes erd
17978 \end_inset
17979
17980
17981 \begin_inset Quotes eld
17982 \end_inset
17983
17984
17985 \family typewriter
17986 -b
17987 \family default
17988
17989 \begin_inset Quotes erd
17990 \end_inset
17991
17992
17993 \begin_inset Quotes eld
17994 \end_inset
17995
17996
17997 \family typewriter
17998 -c
17999 \family default
18000
18001 \begin_inset Quotes erd
18002 \end_inset
18003
18004 , etc.
18005 \begin_inset space ~
18006 \end_inset
18007
18008 appended to the page number of the parent 
18009 \family sans
18010 Slide
18011 \family default
18012 .
18013  
18014 \end_layout
18015
18016 \end_inset
18017
18018  Clearly, you want the contents of both the 
18019 \family sans
18020 Slide
18021 \family default
18022  and the 
18023 \family sans
18024 Overlay
18025 \family default
18026  to each fit on a single physical slide! You should probably consider an
18027  
18028 \family sans
18029 Overlay
18030 \family default
18031  as 
18032 \begin_inset Quotes eld
18033 \end_inset
18034
18035 part of
18036 \begin_inset Quotes erd
18037 \end_inset
18038
18039  a 
18040 \family sans
18041 Slide
18042 \family default
18043 .
18044  Indeed, the \SpecialChar LyX
18045  
18046 \family sans
18047 slides
18048 \family default
18049  class provides a visual cue for this: the label at the start of an 
18050 \family sans
18051 Overlay
18052 \family default
18053  is shorter than that at the start of a 
18054 \family sans
18055 Slide
18056 \family default
18057 .
18058  Lastly, when you generate printable output, you'll find alignment markers
18059  in all four corners of both the 
18060 \family sans
18061 Overlay
18062 \family default
18063  page and its parent 
18064 \family sans
18065 Slide
18066 \family default
18067 .
18068  These will assist you in lining up the two physical slides.
18069 \end_layout
18070
18071 \begin_layout Standard
18072 The major problem in overlaying two slides is aligning the contents of the
18073  two transparencies.
18074  How much space should you leave for that graph on the second slide? Worse
18075  still, what if you want a graph and a sentence on second slide, but there
18076  is text on the main transparency that goes in between them? You could try
18077  and insert vertical space of the right size.
18078  The better way is to use 
18079 \family sans
18080 InvisibleText
18081 \family default
18082  and 
18083 \family sans
18084 VisibleText
18085 \family default
18086 .
18087 \end_layout
18088
18089 \begin_layout Standard
18090 As their names imply, 
18091 \family sans
18092 InvisibleText
18093 \family default
18094  and 
18095 \family sans
18096 VisibleText
18097 \family default
18098  are two command-like paragraph environments that make all subsequent text
18099  invisible and visible, respectively.
18100  Note from section
18101 \begin_inset space ~
18102 \end_inset
18103
18104
18105 \begin_inset CommandInset ref
18106 LatexCommand ref
18107 reference "sec:slideQuirk"
18108
18109 \end_inset
18110
18111  that you don't place anything 
18112 \emph on
18113 into
18114 \emph default
18115  these two environments, however.
18116  When you create an 
18117 \family sans
18118 InvisibleText
18119 \family default
18120 , it inserts a centered, sky-blue label into the page reading 
18121 \begin_inset Quotes eld
18122 \end_inset
18123
18124 <Invisible Text Follows>
18125 \begin_inset Quotes erd
18126 \end_inset
18127
18128 .
18129  For paragraphs following this label, the parts of the 
18130 \family sans
18131 Slide
18132 \family default
18133  [or 
18134 \family sans
18135 Overlay
18136 \family default
18137 ; it doesn't matter which] where they would be contain instead blank space.
18138  
18139 \end_layout
18140
18141 \begin_layout Standard
18142 For 
18143 \family sans
18144 VisibleText
18145 \family default
18146 , the corresponding centered label is 
18147 \begin_inset Quotes eld
18148 \end_inset
18149
18150 <Visible Text Follows>
18151 \begin_inset Quotes erd
18152 \end_inset
18153
18154  in blazing green.
18155  Paragraphs following this label behave normally.
18156  Note that the beginning of a new 
18157 \family sans
18158 Slide
18159 \family default
18160
18161 \family sans
18162 Overlay
18163 \family default
18164 , or 
18165 \family sans
18166 Note
18167 \family default
18168  automatically shuts off an 
18169 \family sans
18170 InvisibleText
18171 \family default
18172 .
18173  It's therefore not necessary to use 
18174 \family sans
18175 VisibleText
18176 \family default
18177  at the end of a 
18178 \family sans
18179 Slide
18180 \family default
18181 .
18182 \end_layout
18183
18184 \begin_layout Standard
18185 By now, it should be obvious how to create overlay transparencies using
18186  the proper combination of 
18187 \family sans
18188 InvisibleText
18189 \family default
18190  and 
18191 \family sans
18192 VisibleText
18193 \family default
18194  on a 
18195 \family sans
18196 Slide
18197 \family default
18198  and 
18199 \family sans
18200 Overlay
18201 \family default
18202 :
18203 \end_layout
18204
18205 \begin_layout Enumerate
18206 Create a 
18207 \family sans
18208 Slide
18209 \family default
18210 , including everything that will appear on it, whether on the main slide
18211  or on the 
18212 \family sans
18213 Overlay
18214 \family default
18215 .
18216 \end_layout
18217
18218 \begin_layout Enumerate
18219 Before each figure or paragraph that will appear only on the 
18220 \family sans
18221 Overlay
18222 \family default
18223 , insert an 
18224 \family sans
18225 InvisibleText
18226 \family default
18227  environment.
18228  If necessary, insert a 
18229 \family sans
18230 VisibleText
18231 \family default
18232  environment after the 
18233 \family sans
18234 Overlay
18235 \family default
18236 -only text.
18237 \end_layout
18238
18239 \begin_layout Enumerate
18240 Start an 
18241 \family sans
18242 Overlay
18243 \family default
18244  immediately following the 
18245 \family sans
18246 Slide
18247 \family default
18248 .
18249 \end_layout
18250
18251 \begin_layout Enumerate
18252 Copy the contents of this 
18253 \family sans
18254 Slide
18255 \family default
18256  into the 
18257 \family sans
18258 Overlay
18259 \family default
18260 .
18261 \end_layout
18262
18263 \begin_layout Enumerate
18264 Within the 
18265 \family sans
18266 Overlay
18267 \family default
18268 , change all of the 
18269 \family sans
18270 InvisibleText
18271 \family default
18272  lines to 
18273 \family sans
18274 VisibleText
18275 \family default
18276  and vice-versa.
18277 \end_layout
18278
18279 \begin_layout Standard
18280 That's it.
18281  You've just made an 
18282 \family sans
18283 Overlay
18284 \family default
18285 .
18286 \end_layout
18287
18288 \begin_layout Standard
18289 There's one problem with the way I've designed the \SpecialChar LyX
18290  
18291 \family sans
18292 slides
18293 \family default
18294  class: you can't make text in the middle of a paragraph invisible, nor
18295  make text in the middle of an invisible paragraph visible again.
18296  To accomplish this feat, you'll need to use some inlined \SpecialChar LaTeX
18297  codes.
18298 \begin_inset Foot
18299 status collapsed
18300
18301 \begin_layout Plain Layout
18302 The commands of interest are: 
18303 \end_layout
18304
18305 \begin_layout Itemize
18306
18307 \family typewriter
18308 {
18309 \backslash
18310 invisible \SpecialChar ldots
18311  }
18312 \end_layout
18313
18314 \begin_layout Itemize
18315
18316 \family typewriter
18317 {
18318 \backslash
18319 visible \SpecialChar ldots
18320  }
18321 \end_layout
18322
18323 \begin_layout Plain Layout
18324 \SpecialChar ldots
18325 and need to be marked as \SpecialChar TeX
18326 .
18327  The text whose 
18328 \begin_inset Quotes eld
18329 \end_inset
18330
18331 visibility
18332 \begin_inset Quotes erd
18333 \end_inset
18334
18335  you wish to change goes in between the brackets [and after the 
18336 \family typewriter
18337
18338 \backslash
18339 invisible
18340 \family default
18341  or 
18342 \family typewriter
18343
18344 \backslash
18345 visible
18346 \family default
18347  command].
18348  If you don't know how to mark text as \SpecialChar TeX
18349 , see the appropriate section of
18350  the 
18351 \emph on
18352 User's Guide
18353 \emph default
18354 .
18355 \end_layout
18356
18357 \end_inset
18358
18359
18360 \end_layout
18361
18362 \begin_layout Subsubsection
18363 Using 
18364 \family sans
18365 Note
18366 \family default
18367  with 
18368 \family sans
18369 Slide
18370 \family default
18371
18372 \begin_inset CommandInset label
18373 LatexCommand label
18374 name "sec:slideNote"
18375
18376 \end_inset
18377
18378
18379 \end_layout
18380
18381 \begin_layout Standard
18382 Like an 
18383 \family sans
18384 Overlay
18385 \family default
18386 , a 
18387 \family sans
18388 Note
18389 \family default
18390  is associated with a 
18391 \begin_inset Quotes eld
18392 \end_inset
18393
18394 parent
18395 \begin_inset Quotes erd
18396 \end_inset
18397
18398  
18399 \family sans
18400 Slide
18401 \family default
18402 .
18403  Here, too, the \SpecialChar LyX
18404  
18405 \family sans
18406 slides
18407 \family default
18408  class provides visual cues.
18409  The label for a 
18410 \family sans
18411 Note
18412 \family default
18413  is shorter than that of a 
18414 \family sans
18415 Slide
18416 \family default
18417  [yet longer than that of an 
18418 \family sans
18419 Overlay
18420 \family default
18421 ] and, like the label of an 
18422 \family sans
18423 Overlay
18424 \family default
18425  is shockingly magenta.
18426  Additionally, the printed 
18427 \family sans
18428 Note
18429 \family default
18430  has the page number of its 
18431 \begin_inset Quotes eld
18432 \end_inset
18433
18434 parent
18435 \begin_inset Quotes erd
18436 \end_inset
18437
18438  
18439 \family sans
18440 Slide
18441 \family default
18442 , appended by 
18443 \begin_inset Quotes eld
18444 \end_inset
18445
18446
18447 \family typewriter
18448 -
18449 \family default
18450 1
18451 \begin_inset Quotes erd
18452 \end_inset
18453
18454
18455 \begin_inset Quotes eld
18456 \end_inset
18457
18458
18459 \family typewriter
18460 -
18461 \family default
18462 2
18463 \begin_inset Quotes erd
18464 \end_inset
18465
18466
18467 \begin_inset Quotes eld
18468 \end_inset
18469
18470
18471 \family typewriter
18472 -
18473 \family default
18474 3
18475 \begin_inset Quotes erd
18476 \end_inset
18477
18478 , etc.
18479  You can have multiple 
18480 \family sans
18481 Note
18482 \family default
18483 s associated with a single 
18484 \family sans
18485 Slide
18486 \family default
18487 , and, as with 
18488 \family sans
18489 Slide
18490 \family default
18491  and 
18492 \family sans
18493 Overlay
18494 \family default
18495 , you'll probably want to break up long 
18496 \family sans
18497 Note
18498 \family default
18499 s so that they fit on a single sheet of paper.
18500 \end_layout
18501
18502 \begin_layout Standard
18503 The purpose of a 
18504 \family sans
18505 Note
18506 \family default
18507  is obvious: it contains anything additional you might want to say about
18508  a 
18509 \family sans
18510 Slide
18511 \family default
18512 .
18513  It could also be used as a sheet of reminders for a particular 
18514 \family sans
18515 Slide
18516 \family default
18517 .
18518  In the case of the latter, you might want to make use of time markers.
18519  Currently, the \SpecialChar LyX
18520  
18521 \family sans
18522 slides
18523 \family default
18524  class has no 
18525 \begin_inset Quotes eld
18526 \end_inset
18527
18528 native
18529 \begin_inset Quotes erd
18530 \end_inset
18531
18532  support for time markers, a 
18533 \noun on
18534 Sli\SpecialChar TeX
18535
18536 \noun default
18537  feature.
18538  So, you'll have to resort to using the \SpecialChar LaTeX
18539  codes.
18540 \end_layout
18541
18542 \begin_layout Standard
18543 To use time markers, you'll need to specify the extra class option 
18544 \begin_inset Quotes eld
18545 \end_inset
18546
18547
18548 \family typewriter
18549 clock
18550 \family default
18551
18552 \begin_inset Quotes erd
18553 \end_inset
18554
18555  [see section
18556 \begin_inset space ~
18557 \end_inset
18558
18559
18560 \begin_inset CommandInset ref
18561 LatexCommand ref
18562 reference "sec:slidesetup"
18563
18564 \end_inset
18565
18566 ].
18567  This option turns on timing marks, which will appear in the lower-left-hand
18568  corner of every 
18569 \family sans
18570 Note
18571 \family default
18572  you generate.
18573  To set what appears in the time marker, you use the \SpecialChar LaTeX
18574  commands 
18575 \begin_inset Quotes eld
18576 \end_inset
18577
18578
18579 \family typewriter
18580
18581 \backslash
18582 settime{}
18583 \family default
18584
18585 \begin_inset Quotes erd
18586 \end_inset
18587
18588  and 
18589 \begin_inset Quotes eld
18590 \end_inset
18591
18592
18593 \family typewriter
18594
18595 \backslash
18596 addtime{}
18597 \family default
18598
18599 \begin_inset Quotes erd
18600 \end_inset
18601
18602 .
18603  The arguments of both commands are time measured in seconds.
18604  
18605 \begin_inset Quotes eld
18606 \end_inset
18607
18608
18609 \family typewriter
18610
18611 \backslash
18612 settime{}
18613 \family default
18614
18615 \begin_inset Quotes erd
18616 \end_inset
18617
18618  sets the time marker to a given time.
18619  
18620 \begin_inset Quotes eld
18621 \end_inset
18622
18623
18624 \family typewriter
18625
18626 \backslash
18627 addtime{}
18628 \family default
18629
18630 \begin_inset Quotes erd
18631 \end_inset
18632
18633  increments the time marker by the specified amount.
18634  Using time markers and 
18635 \family sans
18636 Note
18637 \family default
18638 s in this fashion, you can remind yourself how much time to spend on a particula
18639
18640 \family sans
18641 Slide
18642 \family default
18643 .
18644 \end_layout
18645
18646 \begin_layout Standard
18647 There's one last feature to describe.
18648  Clearly, you'd like to print out all of your 
18649 \family sans
18650 Slide
18651 \family default
18652 s and 
18653 \family sans
18654 Overlay
18655 \family default
18656 s on transparencies while printing all of your 
18657 \family sans
18658 Note
18659 \family default
18660 s on plain paper.
18661  However, a 
18662 \family sans
18663 Note
18664 \family default
18665  
18666 \emph on
18667 must
18668 \emph default
18669  follow the 
18670 \family sans
18671 Slide
18672 \family default
18673  with which it is associated.
18674  What's a person to do?
18675 \end_layout
18676
18677 \begin_layout Standard
18678 Luckily, there are two \SpecialChar LaTeX
18679  commands that allow you to select what to print
18680  out.
18681  Both must be placed into the preamble of your document.
18682  The command 
18683 \begin_inset Quotes eld
18684 \end_inset
18685
18686
18687 \family typewriter
18688
18689 \backslash
18690 onlyslides{
18691 \backslash
18692 slides}
18693 \family default
18694
18695 \begin_inset Quotes erd
18696 \end_inset
18697
18698  will cause the output to contain only the 
18699 \family sans
18700 Slide
18701 \family default
18702 s and 
18703 \family sans
18704 Overlay
18705 \family default
18706 s.
18707  Correspondingly, the command 
18708 \begin_inset Quotes eld
18709 \end_inset
18710
18711
18712 \family typewriter
18713
18714 \backslash
18715 onlynotes{
18716 \backslash
18717 notes}
18718 \family default
18719
18720 \begin_inset Quotes erd
18721 \end_inset
18722
18723  prevents the output of anything but 
18724 \family sans
18725 Note
18726 \family default
18727 s.
18728  I'd advise placing both commands in the preamble and initially comment
18729  both out.
18730  You can then preview your entire presentation as you write.
18731  When you're done writing, you can then uncomment one of the two to select
18732  what you want to print.
18733  I like to uncomment 
18734 \begin_inset Quotes eld
18735 \end_inset
18736
18737
18738 \family typewriter
18739
18740 \backslash
18741 onlyslides{
18742 \backslash
18743 slides}
18744 \family default
18745
18746 \begin_inset Quotes erd
18747 \end_inset
18748
18749  , print to a file with 
18750 \begin_inset Quotes eld
18751 \end_inset
18752
18753
18754 \family typewriter
18755 -slides
18756 \family default
18757
18758 \begin_inset Quotes erd
18759 \end_inset
18760
18761  in its name, comment it back out, then uncomment 
18762 \begin_inset Quotes eld
18763 \end_inset
18764
18765
18766 \family typewriter
18767
18768 \backslash
18769 onlynotes{
18770 \backslash
18771 notes}
18772 \family default
18773
18774 \begin_inset Quotes erd
18775 \end_inset
18776
18777  and print to a 
18778 \begin_inset Quotes eld
18779 \end_inset
18780
18781
18782 \family typewriter
18783 *-notes.ps
18784 \family default
18785
18786 \begin_inset Quotes erd
18787 \end_inset
18788
18789  file.
18790  I can then send either file to a printer, loading transparencies or plain
18791  paper as appropriate.
18792 \end_layout
18793
18794 \begin_layout Standard
18795 You can also provide other arguments to the 
18796 \begin_inset Quotes eld
18797 \end_inset
18798
18799
18800 \family typewriter
18801
18802 \backslash
18803 onlyslides{}
18804 \family default
18805
18806 \begin_inset Quotes erd
18807 \end_inset
18808
18809  and 
18810 \begin_inset Quotes eld
18811 \end_inset
18812
18813
18814 \family typewriter
18815
18816 \backslash
18817 onlynotes{}
18818 \family default
18819
18820 \begin_inset Quotes erd
18821 \end_inset
18822
18823  commands.
18824  See a good \SpecialChar LaTeX
18825  book for details.
18826 \end_layout
18827
18828 \begin_layout Subsection
18829 The 
18830 \family sans
18831 slides
18832 \family default
18833  Class Template File
18834 \end_layout
18835
18836 \begin_layout Standard
18837 I have also provided a template file, 
18838 \begin_inset Quotes eld
18839 \end_inset
18840
18841
18842 \family typewriter
18843 slides.lyx
18844 \family default
18845
18846 \begin_inset Quotes erd
18847 \end_inset
18848
18849 , with the 
18850 \family sans
18851 slides
18852 \family default
18853  class.
18854  To use it, begin your new presentation with 
18855 \family sans
18856 File\SpecialChar menuseparator
18857 New
18858 \begin_inset space ~
18859 \end_inset
18860
18861 from
18862 \begin_inset space ~
18863 \end_inset
18864
18865 Template
18866 \family default
18867 .
18868  Your new \SpecialChar LyX
18869  presentation file will contain an example 
18870 \family sans
18871 Slide
18872 \family default
18873  – 
18874 \family sans
18875 Overlay
18876 \family default
18877  – 
18878 \family sans
18879 Note
18880 \family default
18881  triplet.
18882  The 
18883 \family sans
18884 Slide
18885 \family default
18886  and 
18887 \family sans
18888 Overlay
18889 \family default
18890  additionally contain an example of the use of 
18891 \family sans
18892 InvisibleText
18893 \family default
18894  and 
18895 \family sans
18896 VisibleText
18897 \family default
18898 .
18899  Lastly, the preamble will contain:
18900 \end_layout
18901
18902 \begin_layout LyX-Code
18903 % Uncomment to print out only slides and overlays
18904 \end_layout
18905
18906 \begin_layout LyX-Code
18907 %
18908 \end_layout
18909
18910 \begin_layout LyX-Code
18911 %
18912 \backslash
18913 onlyslides{
18914 \backslash
18915 slides}
18916 \begin_inset Newline newline
18917 \end_inset
18918
18919  
18920 \end_layout
18921
18922 \begin_layout LyX-Code
18923 % Uncomment to print out only notes
18924 \end_layout
18925
18926 \begin_layout LyX-Code
18927 %
18928 \end_layout
18929
18930 \begin_layout LyX-Code
18931 %
18932 \backslash
18933 onlynotes{
18934 \backslash
18935 notes}
18936 \end_layout
18937
18938 \begin_layout Standard
18939 One final thing: I created this class to support the \SpecialChar LaTeX2e
18940  
18941 \begin_inset Quotes eld
18942 \end_inset
18943
18944
18945 \noun on
18946 Sli\SpecialChar TeX
18947
18948 \noun default
18949  emulation
18950 \begin_inset Quotes erd
18951 \end_inset
18952
18953  class, one of the built-in \SpecialChar LaTeX2e
18954  classes.
18955  Neither I nor the rest of the \SpecialChar LyX
18956  Team endorse or oppose the use of this built-in
18957  slide class.
18958  It's here if you want it or need it.
18959  There exist other \SpecialChar LaTeX2e
18960  classes for creating presentations, such as the 
18961 \family sans
18962 Foils
18963 \family default
18964  class [see section
18965 \begin_inset space ~
18966 \end_inset
18967
18968
18969 \begin_inset CommandInset ref
18970 LatexCommand ref
18971 reference "sec:foiltex"
18972
18973 \end_inset
18974
18975 ] or the 
18976 \begin_inset Quotes eld
18977 \end_inset
18978
18979
18980 \family typewriter
18981 seminar
18982 \family default
18983
18984 \begin_inset Quotes erd
18985 \end_inset
18986
18987  package [present on some \SpecialChar TeX
18988  distributions].
18989  The latter is not yet supported under \SpecialChar LyX
18990 .
18991 \begin_inset Foot
18992 status collapsed
18993
18994 \begin_layout Plain Layout
18995 Perhaps you can take on the task\SpecialChar ldots
18996
18997 \end_layout
18998
18999 \end_inset
19000
19001  I know nothing about these other classes.
19002  Try them out to see what sort of alternative they provide.
19003 \end_layout
19004
19005 \begin_layout Chapter
19006 \SpecialChar LyX
19007  Features needing Extra Software
19008 \end_layout
19009
19010 \begin_layout Section
19011 Checking \SpecialChar TeX
19012
19013 \end_layout
19014
19015 \begin_layout Standard
19016 by 
19017 \noun on
19018 Asger Alstrup
19019 \end_layout
19020
19021 \begin_layout Subsection
19022 Introduction
19023 \end_layout
19024
19025 \begin_layout Standard
19026 If you have the 
19027 \family typewriter
19028 chktex
19029 \family default
19030  program installed
19031 \begin_inset Foot
19032 status collapsed
19033
19034 \begin_layout Plain Layout
19035
19036 \family typewriter
19037 chktex
19038 \family default
19039  is not yet available when you are using the \SpecialChar LaTeX
19040  distribution MiK\SpecialChar TeX
19041 .
19042 \end_layout
19043
19044 \end_inset
19045
19046 , you'll find in the 
19047 \family sans
19048 Tools
19049 \family default
19050  menu the entry: 
19051 \family sans
19052 Check
19053 \begin_inset space ~
19054 \end_inset
19055
19056 TeX
19057 \family default
19058 .
19059  You can get 
19060 \family typewriter
19061 chktex
19062 \family default
19063  from CTAN,
19064 \begin_inset Newline newline
19065 \end_inset
19066
19067
19068 \begin_inset CommandInset href
19069 LatexCommand href
19070 target "https://www.ctan.org/tex-archive/help/Catalogue/entries/chktex.html"
19071 literal "false"
19072
19073 \end_inset
19074
19075 .
19076 \end_layout
19077
19078 \begin_layout Standard
19079 The 
19080 \family sans
19081 Chk\SpecialChar TeX
19082
19083 \family default
19084  package is a program that was written by 
19085 \begin_inset Flex Noun
19086 status collapsed
19087
19088 \begin_layout Plain Layout
19089 Jens T.
19090 \begin_inset space ~
19091 \end_inset
19092
19093 Berger Thielemann
19094 \end_layout
19095
19096 \end_inset
19097
19098  in frustration because some constructs in \SpecialChar LaTeX
19099  are sometimes non-intuitive,
19100  and easy to forget.
19101  The program runs over your \SpecialChar LaTeX
19102  file, checks the integrity of the file, and
19103  flags some common errors.
19104  In other technical words, it is 
19105 \family typewriter
19106 lint
19107 \family default
19108  for \SpecialChar LaTeX
19109 .
19110 \end_layout
19111
19112 \begin_layout Standard
19113 Well, what is a syntax checker doing in \SpecialChar LyX
19114  which is supposed to produce correct
19115  \SpecialChar LaTeX
19116  anyways? The answer is simple: Just as 
19117 \family typewriter
19118 Lint
19119 \family default
19120  not only checks the 
19121 \emph on
19122 syntax
19123 \emph default
19124  of C programs, but also does 
19125 \emph on
19126 semantic
19127 \emph default
19128  checks for type-errors, 
19129 \family sans
19130 Chk\SpecialChar TeX
19131
19132 \family default
19133  catches some common 
19134 \emph on
19135 typographic
19136 \emph default
19137  errors, in addition to the syntactical ones.
19138  Specifically, 
19139 \family sans
19140 Chk\SpecialChar TeX
19141
19142 \family default
19143  is capable of detecting several common errors, such as
19144 \end_layout
19145
19146 \begin_layout Itemize
19147 Ellipsis detection:
19148 \begin_inset Newline newline
19149 \end_inset
19150
19151 Use \SpecialChar ldots
19152  instead of ...
19153 \end_layout
19154
19155 \begin_layout Itemize
19156 No space in front of/after parenthesis:
19157 \begin_inset Newline newline
19158 \end_inset
19159
19160 ( wrong spacing )
19161 \end_layout
19162
19163 \begin_layout Itemize
19164 Enforcement of normal space after common abbreviations:
19165 \begin_inset Newline newline
19166 \end_inset
19167
19168 e.
19169 \begin_inset space \thinspace{}
19170 \end_inset
19171
19172 g.
19173 \begin_inset space \space{}
19174 \end_inset
19175
19176 is too wide spacing.
19177 \end_layout
19178
19179 \begin_layout Itemize
19180 Enforcement of end-of-sentence space when the last sentence ends with a
19181  capital letter:
19182 \begin_inset Newline newline
19183 \end_inset
19184
19185 This is a TEST.
19186  And this is wrong spacing.
19187 \end_layout
19188
19189 \begin_layout Itemize
19190 Space in front of labels and similar commands:
19191 \begin_inset Newline newline
19192 \end_inset
19193
19194 The label should stick right up to the text to avoid falling to a wrong
19195  page.
19196  
19197 \begin_inset CommandInset label
19198 LatexCommand label
19199 name "sec:chktex"
19200
19201 \end_inset
19202
19203  
19204 \begin_inset Foot
19205 status collapsed
19206
19207 \begin_layout Plain Layout
19208 This footnote is in danger of falling off to a wrong page
19209 \end_layout
19210
19211 \end_inset
19212
19213  The label is separated too much.
19214 \end_layout
19215
19216 \begin_layout Itemize
19217 Space in front of references, instead of hard spaces:
19218 \begin_inset Newline newline
19219 \end_inset
19220
19221 If you have bad luck, the text will break right between the referenced text
19222  and reference number, and that's a pity.
19223  See section 
19224 \begin_inset CommandInset ref
19225 LatexCommand ref
19226 reference "sec:chktex"
19227
19228 \end_inset
19229
19230 .
19231 \end_layout
19232
19233 \begin_layout Itemize
19234 Use of 
19235 \begin_inset Quotes eld
19236 \end_inset
19237
19238 x
19239 \begin_inset Quotes erd
19240 \end_inset
19241
19242  instead of 
19243 \begin_inset Formula $\times$
19244 \end_inset
19245
19246  between numbers:
19247 \begin_inset Newline newline
19248 \end_inset
19249
19250 2x2 looks cheap compared to 
19251 \begin_inset Formula $2\times2$
19252 \end_inset
19253
19254 .
19255 \end_layout
19256
19257 \begin_layout Standard
19258 and more \SpecialChar ldots
19259  It is an invaluable tool when you are 
19260 \begin_inset Quotes eld
19261 \end_inset
19262
19263 finishing up
19264 \begin_inset Quotes erd
19265 \end_inset
19266
19267  your document before printing, and you should run it right after the obligatory
19268  spelling check, and before you go fine tuning the typesetting.
19269 \end_layout
19270
19271 \begin_layout Subsection
19272 How to use it
19273 \end_layout
19274
19275 \begin_layout Standard
19276 If you have the program installed, usage is as simple as choosing 
19277 \family sans
19278 Tools\SpecialChar menuseparator
19279 Check
19280 \begin_inset space ~
19281 \end_inset
19282
19283 TeX
19284 \family default
19285 .
19286  This will make \SpecialChar LyX
19287  generate a \SpecialChar LaTeX
19288  file of your document, start 
19289 \family sans
19290 Chk\SpecialChar TeX
19291
19292 \family default
19293  to check it, and then make \SpecialChar LyX
19294  insert 
19295 \begin_inset Quotes eld
19296 \end_inset
19297
19298 error boxes
19299 \begin_inset Quotes erd
19300 \end_inset
19301
19302  with the warnings from 
19303 \family sans
19304 Chk\SpecialChar TeX
19305
19306 \family default
19307 , if there were any.
19308  The warnings will be placed close to the point of the mistake, and you
19309  can quickly find them by using the 
19310 \family sans
19311 Navigate\SpecialChar menuseparator
19312 Error
19313 \family default
19314  menu item, or the shortcut key 
19315 \family sans
19316 C-g
19317 \family default
19318  from the default 
19319 \family typewriter
19320 cua
19321 \family default
19322  bind file.
19323  Open the error boxes by clicking on them with the mouse, or use the shortcut
19324  key 
19325 \family sans
19326 C-i
19327 \family default
19328  from 
19329 \family typewriter
19330 cua
19331 \family default
19332  bindings, or the corresponding 
19333 \family sans
19334 C-o
19335 \family default
19336  for the alternate 
19337 \family typewriter
19338 emacs
19339 \family default
19340  bind file.
19341  Read the warning and correct the mistake, if it is a mistake.
19342  If you have trouble understanding what the warning is about, you can safely
19343  ignore it.
19344  Remember that there is a hidden layer between the document on screen and
19345  the technical details in invoking 
19346 \family sans
19347 Chk\SpecialChar TeX
19348
19349 \family default
19350 , and this gap can make some warnings seem arcane or just plain silly.
19351 \end_layout
19352
19353 \begin_layout Standard
19354 This document is an excellent testing bed for the feature, and it should
19355  provide quite a few warnings for you to fiddle with.
19356  Since computers are only so smart, expect most of the warnings to be false
19357  alarms, though.
19358 \end_layout
19359
19360 \begin_layout Subsection
19361 How to fine tune it
19362 \end_layout
19363
19364 \begin_layout Standard
19365 Sometimes, you'll find that 
19366 \family sans
19367 Chk\SpecialChar TeX
19368
19369 \family default
19370  makes more noise than suits your mood.
19371  Then you can choose not to use it, wait until your mood changes, or try
19372  to customize 
19373 \family sans
19374 Chk\SpecialChar TeX
19375
19376 \family default
19377  to get better along with you.
19378 \end_layout
19379
19380 \begin_layout Standard
19381 Although 
19382 \family sans
19383 Chk\SpecialChar TeX
19384
19385 \family default
19386  
19387 \emph on
19388 is
19389 \emph default
19390  very configurable and extensible, you should not expect to solve all problems
19391  with 
19392 \family sans
19393 Chk\SpecialChar TeX
19394
19395 \family default
19396  in \SpecialChar LyX
19397  this way.
19398  Since \SpecialChar LyX
19399  has to generate a somewhat special \SpecialChar LaTeX
19400  file to be able to match the
19401  line numbers from the 
19402 \family sans
19403 Chk\SpecialChar TeX
19404
19405 \family default
19406  output
19407 \begin_inset Foot
19408 status collapsed
19409
19410 \begin_layout Plain Layout
19411 You can inspect the specific output from 
19412 \family sans
19413 chktex
19414 \family default
19415  by using 
19416 \family sans
19417 Document\SpecialChar menuseparator
19418 \SpecialChar LaTeX
19419
19420 \begin_inset space ~
19421 \end_inset
19422
19423 Log
19424 \family default
19425  right after a 
19426 \family sans
19427 chktex
19428 \family default
19429  run.
19430 \end_layout
19431
19432 \end_inset
19433
19434  to the internal document structure, some of the warnings will not appear
19435  correctly.
19436  There are two things you can do about this:
19437 \end_layout
19438
19439 \begin_layout Itemize
19440 Fine tune the 
19441 \family sans
19442 Chk\SpecialChar TeX
19443
19444 \family default
19445  invocation command line in 
19446 \begin_inset Flex Noun
19447 status collapsed
19448
19449 \begin_layout Plain Layout
19450 Tools\SpecialChar menuseparator
19451 Preferences\SpecialChar menuseparator
19452 Output\SpecialChar menuseparator
19453 LaTeX\SpecialChar menuseparator
19454 CheckTeX command
19455 \end_layout
19456
19457 \end_inset
19458
19459 , or the global 
19460 \family sans
19461 Chk\SpecialChar TeX
19462
19463 \family default
19464  installation configuration file (usually with the file 
19465 \family typewriter
19466 chktexrc
19467 \family default
19468 ).
19469  See below to learn what warnings can be enabled and disabled on the command
19470  line.
19471 \end_layout
19472
19473 \begin_layout Itemize
19474 Export your document as a raw \SpecialChar LaTeX
19475  file using 
19476 \family sans
19477 File\SpecialChar menuseparator
19478 Export\SpecialChar menuseparator
19479 \SpecialChar LaTeX
19480
19481 \family default
19482  and run 
19483 \family typewriter
19484 chktex
19485 \family default
19486  manually on that.
19487  Invoked in this way, it can be a hassle to find the corresponding place
19488  in the document inside \SpecialChar LyX
19489 , but with a little patience, you should be able
19490  to do it.
19491 \end_layout
19492
19493 \begin_layout Standard
19494 Here follows the warning messages that can be enabled and disabled in 
19495 \family sans
19496 Preferences
19497 \family default
19498 .
19499  Use 
19500 \family typewriter
19501 -n#
19502 \family default
19503  to disable a warning, and 
19504 \family typewriter
19505 -w#
19506 \family default
19507  to enable a warning.
19508  The emphasized entries are disabled by default, because the default is
19509  "
19510 \family typewriter
19511 chktex -n1 -n3 -n6 -n9 -n22 -n25 -n30 -n38
19512 \family default
19513 ".
19514 \end_layout
19515
19516 \begin_layout Standard
19517 Notice that you should only use the options that enable and disable warnings,
19518  because \SpecialChar LyX
19519  relies on some of the other command line parameters to be set
19520  in a specific way to have a chance to communicate with 
19521 \family typewriter
19522 chktex
19523 \family default
19524 .
19525 \end_layout
19526
19527 \begin_layout Enumerate
19528
19529 \size small
19530 \emph on
19531 Command terminated with space.
19532 \end_layout
19533
19534 \begin_layout Enumerate
19535
19536 \size small
19537 Non-breaking space (
19538 \begin_inset Quotes eld
19539 \end_inset
19540
19541
19542 \family typewriter
19543 ~
19544 \family default
19545
19546 \begin_inset Quotes erd
19547 \end_inset
19548
19549 ) should have been used.
19550 \end_layout
19551
19552 \begin_layout Enumerate
19553
19554 \size small
19555 \emph on
19556 You should enclose the previous parenthesis with 
19557 \begin_inset Quotes eld
19558 \end_inset
19559
19560
19561 \family typewriter
19562 {}
19563 \family default
19564
19565 \begin_inset Quotes erd
19566 \end_inset
19567
19568 .
19569 \end_layout
19570
19571 \begin_layout Enumerate
19572
19573 \size small
19574 Italic correction (
19575 \begin_inset Quotes eld
19576 \end_inset
19577
19578
19579 \family typewriter
19580
19581 \backslash
19582 /
19583 \family default
19584
19585 \begin_inset Quotes erd
19586 \end_inset
19587
19588 ) found in non-italic buffer.
19589 \end_layout
19590
19591 \begin_layout Enumerate
19592
19593 \size small
19594 Italic correction (
19595 \begin_inset Quotes eld
19596 \end_inset
19597
19598
19599 \family typewriter
19600
19601 \backslash
19602 /
19603 \family default
19604
19605 \begin_inset Quotes erd
19606 \end_inset
19607
19608 ) found more than once.
19609 \end_layout
19610
19611 \begin_layout Enumerate
19612
19613 \size small
19614 \emph on
19615 No italic correction (
19616 \begin_inset Quotes eld
19617 \end_inset
19618
19619
19620 \family typewriter
19621
19622 \backslash
19623 /
19624 \family default
19625
19626 \begin_inset Quotes erd
19627 \end_inset
19628
19629 ) found.
19630 \end_layout
19631
19632 \begin_layout Enumerate
19633
19634 \size small
19635 Accent command 
19636 \begin_inset Quotes eld
19637 \end_inset
19638
19639
19640 \family typewriter
19641 cmd
19642 \family default
19643
19644 \begin_inset Quotes erd
19645 \end_inset
19646
19647  needs use of 
19648 \begin_inset Quotes eld
19649 \end_inset
19650
19651
19652 \family typewriter
19653 cmd
19654 \family default
19655
19656 \begin_inset Quotes erd
19657 \end_inset
19658
19659 .
19660 \end_layout
19661
19662 \begin_layout Enumerate
19663
19664 \size small
19665 Wrong length of dash may have been used.
19666 \end_layout
19667
19668 \begin_layout Enumerate
19669
19670 \size small
19671 \emph on
19672 \begin_inset Quotes eld
19673 \end_inset
19674
19675
19676 \family typewriter
19677 %s
19678 \family default
19679
19680 \begin_inset Quotes erd
19681 \end_inset
19682
19683  expected, found 
19684 \begin_inset Quotes eld
19685 \end_inset
19686
19687
19688 \family typewriter
19689 %s
19690 \family default
19691
19692 \begin_inset Quotes erd
19693 \end_inset
19694
19695 .
19696 \end_layout
19697
19698 \begin_layout Enumerate
19699
19700 \size small
19701 Solo 
19702 \begin_inset Quotes eld
19703 \end_inset
19704
19705
19706 \family typewriter
19707 %s
19708 \family default
19709
19710 \begin_inset Quotes erd
19711 \end_inset
19712
19713  found.
19714 \end_layout
19715
19716 \begin_layout Enumerate
19717
19718 \size small
19719 You should use 
19720 \begin_inset Quotes eld
19721 \end_inset
19722
19723
19724 \family typewriter
19725 %s
19726 \family default
19727
19728 \begin_inset Quotes erd
19729 \end_inset
19730
19731  to achieve an ellipsis.
19732 \end_layout
19733
19734 \begin_layout Enumerate
19735
19736 \size small
19737 Inter-word spacing (
19738 \begin_inset Quotes eld
19739 \end_inset
19740
19741
19742 \family typewriter
19743
19744 \backslash
19745
19746 \family default
19747  
19748 \begin_inset Quotes eld
19749 \end_inset
19750
19751 ) should perhaps be used.
19752 \end_layout
19753
19754 \begin_layout Enumerate
19755
19756 \size small
19757 Inter-sentence spacing (
19758 \begin_inset Quotes eld
19759 \end_inset
19760
19761
19762 \family typewriter
19763
19764 \backslash
19765 @
19766 \family default
19767
19768 \begin_inset Quotes erd
19769 \end_inset
19770
19771 ) should perhaps be used.
19772 \end_layout
19773
19774 \begin_layout Enumerate
19775
19776 \size small
19777 Could not find argument for command.
19778 \end_layout
19779
19780 \begin_layout Enumerate
19781
19782 \size small
19783 No match found for 
19784 \begin_inset Quotes eld
19785 \end_inset
19786
19787
19788 \family typewriter
19789 %s
19790 \family default
19791
19792 \begin_inset Quotes erd
19793 \end_inset
19794
19795 .
19796 \end_layout
19797
19798 \begin_layout Enumerate
19799
19800 \size small
19801 Math mode still on at end of \SpecialChar LaTeX
19802  file.
19803 \end_layout
19804
19805 \begin_layout Enumerate
19806
19807 \size small
19808 Number of 
19809 \begin_inset Quotes eld
19810 \end_inset
19811
19812
19813 \family typewriter
19814 char
19815 \family default
19816
19817 \begin_inset Quotes erd
19818 \end_inset
19819
19820  doesn't match the number of 
19821 \begin_inset Quotes eld
19822 \end_inset
19823
19824
19825 \family typewriter
19826 char
19827 \family default
19828
19829 \begin_inset Quotes erd
19830 \end_inset
19831
19832 .
19833 \end_layout
19834
19835 \begin_layout Enumerate
19836
19837 \size small
19838 You should use either 
19839 \family typewriter
19840
19841 \begin_inset Quotes eld
19842 \end_inset
19843
19844
19845 \family default
19846  or 
19847 \family typewriter
19848
19849 \begin_inset Quotes erd
19850 \end_inset
19851
19852
19853 \family default
19854  as an alternative to 
19855 \begin_inset Quotes eld
19856 \end_inset
19857
19858
19859 \family typewriter
19860 "
19861 \family default
19862
19863 \begin_inset Quotes erd
19864 \end_inset
19865
19866 .
19867 \end_layout
19868
19869 \begin_layout Enumerate
19870
19871 \size small
19872 You should use "
19873 \family typewriter
19874 '
19875 \family default
19876 " (ASCII 39) instead of "
19877 \family typewriter
19878 ´
19879 \family default
19880 " (ASCII 180).
19881 \end_layout
19882
19883 \begin_layout Enumerate
19884
19885 \size small
19886 User-specified pattern found.
19887 \end_layout
19888
19889 \begin_layout Enumerate
19890
19891 \size small
19892 This command might not be intended.
19893 \end_layout
19894
19895 \begin_layout Enumerate
19896
19897 \size small
19898 \emph on
19899 Comment displayed.
19900 \end_layout
19901
19902 \begin_layout Enumerate
19903
19904 \size small
19905 Either 
19906 \family typewriter
19907 ''
19908 \backslash
19909 ,'
19910 \family default
19911  or 
19912 \family typewriter
19913 '
19914 \backslash
19915 ,''
19916 \family default
19917  will look better.
19918 \end_layout
19919
19920 \begin_layout Enumerate
19921
19922 \size small
19923 Delete this space to maintain correct page references.
19924 \end_layout
19925
19926 \begin_layout Enumerate
19927
19928 \size small
19929 \emph on
19930 You might wish to put this between a pair of 
19931 \begin_inset Quotes eld
19932 \end_inset
19933
19934
19935 \family typewriter
19936 {}
19937 \family default
19938
19939 \begin_inset Quotes erd
19940 \end_inset
19941
19942 .
19943 \end_layout
19944
19945 \begin_layout Enumerate
19946
19947 \size small
19948 You ought to remove spaces in front of punctuation.
19949 \end_layout
19950
19951 \begin_layout Enumerate
19952
19953 \size small
19954 Could not execute \SpecialChar LaTeX
19955  command.
19956 \end_layout
19957
19958 \begin_layout Enumerate
19959
19960 \size small
19961 Don't use 
19962 \family typewriter
19963
19964 \backslash
19965 /
19966 \family default
19967  in front of small punctuation.
19968 \end_layout
19969
19970 \begin_layout Enumerate
19971
19972 \family typewriter
19973 \size small
19974 $
19975 \backslash
19976 times$
19977 \family default
19978  may look prettier here.
19979 \end_layout
19980
19981 \begin_layout Enumerate
19982
19983 \size small
19984 \emph on
19985 Multiple spaces detected in output.
19986 \end_layout
19987
19988 \begin_layout Enumerate
19989
19990 \size small
19991 This text may be ignored.
19992 \end_layout
19993
19994 \begin_layout Enumerate
19995
19996 \size small
19997 Use 
19998 \family typewriter
19999
20000 \begin_inset Quotes eld
20001 \end_inset
20002
20003
20004 \family default
20005  to begin quotation, not 
20006 \family typewriter
20007 '
20008 \family default
20009 .
20010 \end_layout
20011
20012 \begin_layout Enumerate
20013
20014 \size small
20015 Use 
20016 \family typewriter
20017 '
20018 \family default
20019  to end quotation, not 
20020 \family typewriter
20021
20022 \begin_inset Quotes eld
20023 \end_inset
20024
20025
20026 \family default
20027 .
20028 \end_layout
20029
20030 \begin_layout Enumerate
20031
20032 \size small
20033 Don't mix quotes.
20034 \end_layout
20035
20036 \begin_layout Enumerate
20037
20038 \size small
20039 You should perhaps use 
20040 \begin_inset Quotes eld
20041 \end_inset
20042
20043
20044 \family typewriter
20045 cmd
20046 \family default
20047
20048 \begin_inset Quotes erd
20049 \end_inset
20050
20051  instead.
20052 \end_layout
20053
20054 \begin_layout Enumerate
20055
20056 \size small
20057 You should put a space in front of/after parenthesis.
20058 \end_layout
20059
20060 \begin_layout Enumerate
20061
20062 \size small
20063 You should avoid spaces in front of/after parenthesis.
20064 \end_layout
20065
20066 \begin_layout Enumerate
20067
20068 \size small
20069 \emph on
20070 You should not use punctuation in front of/after quotes.
20071 \end_layout
20072
20073 \begin_layout Enumerate
20074
20075 \size small
20076 Double space found.
20077 \end_layout
20078
20079 \begin_layout Enumerate
20080
20081 \size small
20082 You should put punctuation outside inner/inside display math mode.
20083 \end_layout
20084
20085 \begin_layout Enumerate
20086
20087 \size small
20088 You ought to not use primitive \SpecialChar TeX
20089  in \SpecialChar LaTeX
20090  code.
20091 \end_layout
20092
20093 \begin_layout Enumerate
20094
20095 \size small
20096 You should remove spaces in front of 
20097 \begin_inset Quotes eld
20098 \end_inset
20099
20100
20101 \family typewriter
20102 %s
20103 \family default
20104
20105 \begin_inset Quotes erd
20106 \end_inset
20107
20108
20109 \end_layout
20110
20111 \begin_layout Enumerate
20112
20113 \size small
20114 \begin_inset Quotes eld
20115 \end_inset
20116
20117
20118 \family typewriter
20119 %s
20120 \family default
20121
20122 \begin_inset Quotes erd
20123 \end_inset
20124
20125  is normally not followed by 
20126 \begin_inset Quotes eld
20127 \end_inset
20128
20129
20130 \family typewriter
20131 %c
20132 \family default
20133
20134 \begin_inset Quotes erd
20135 \end_inset
20136
20137 .
20138 \end_layout
20139
20140 \begin_layout Standard
20141 In later versions of \SpecialChar LyX
20142 , we hope to provide a more complete interface to this
20143  tool (and it's smaller cousin 
20144 \family typewriter
20145 lacheck
20146 \family default
20147 ) to exploit the full power of it.
20148  But it's not exactly useless as it is now: go try it on one of your existing
20149  documents of a certain length and be surprised.
20150 \end_layout
20151
20152 \begin_layout Section
20153 Version Control in \SpecialChar LyX
20154
20155 \end_layout
20156
20157 \begin_layout Standard
20158 by
20159 \noun on
20160  Lars Gullik Bjønnes 
20161 \noun default
20162 and 
20163 \noun on
20164 Pavel Sanda
20165 \end_layout
20166
20167 \begin_layout Subsection
20168 Introduction
20169 \end_layout
20170
20171 \begin_layout Standard
20172 \SpecialChar LyX
20173  supports some of the most basic RCS/CVS/SVN/GIT commands.
20174  If you need something a bit more sophisticated you will have to do that
20175  manually in a terminal.
20176 \end_layout
20177
20178 \begin_layout Standard
20179 Also note that CVS support is not as good as subversion support, so we advise
20180  using SVN instead.
20181  A good place to start learning Subversion is the SVN Book
20182 \begin_inset Foot
20183 status collapsed
20184
20185 \begin_layout Plain Layout
20186 \begin_inset CommandInset href
20187 LatexCommand href
20188 target "http://svnbook.red-bean.com/"
20189 literal "false"
20190
20191 \end_inset
20192
20193
20194 \end_layout
20195
20196 \end_inset
20197
20198 .
20199  In the case of RCS you should read 
20200 \begin_inset Quotes eld
20201 \end_inset
20202
20203 rcsintro
20204 \begin_inset Quotes erd
20205 \end_inset
20206
20207  (a man file, read it with 
20208 \family typewriter
20209 man rcsintro
20210 \family default
20211 ).
20212  This file describes all the basic features of RCS.
20213  You should especially notice the comment about a RCS directory, and the
20214  notion of a master RCS file (the file ending in 
20215 \family typewriter
20216 ,v
20217 \family default
20218 ).
20219 \end_layout
20220
20221 \begin_layout Standard
20222 Before you begin to use the version control features in \SpecialChar LyX
20223 , you should be
20224  familiar with RCS/CVS/SVN/GIT usage.
20225  The implementation in \SpecialChar LyX
20226  assumes a recent version of the GNU RCS or CVS/SVN
20227  package — no guarantees are made for older versions.
20228  Most of the log messages are not currently displayed after operations —
20229  you can check them in the Messages pane if you are unsure.
20230  Regular users of version control will appreciate the VC toolbar, which
20231  can be enabled via 
20232 \family sans
20233 View\SpecialChar menuseparator
20234 Toolbars\SpecialChar menuseparator
20235 Version
20236 \begin_inset space ~
20237 \end_inset
20238
20239 Control
20240 \family default
20241 .
20242 \end_layout
20243
20244 \begin_layout Standard
20245 For introducing your own external commands consult 
20246 \begin_inset Flex Code
20247 status collapsed
20248
20249 \begin_layout Plain Layout
20250 vc-command
20251 \end_layout
20252
20253 \end_inset
20254
20255  in the manual 
20256 \emph on
20257 \SpecialChar LyX
20258  Functions
20259 \emph default
20260 .
20261 \end_layout
20262
20263 \begin_layout Standard
20264 It is strongly recommended to store documents in uncompressed format if
20265  using version control (uncheck 
20266 \family sans
20267 Document\SpecialChar menuseparator
20268 Compressed
20269 \family default
20270  if it is checked): Uncompressed LyX documents are text files and therefore
20271  for merging two different versions by version control systems.
20272  Compressed LyX documents are binary files, which cannot be merged by version
20273  control systems.
20274 \end_layout
20275
20276 \begin_layout Subsection
20277 RCS commands in \SpecialChar LyX
20278
20279 \end_layout
20280
20281 \begin_layout Standard
20282 The following sections describe the RCS commands supported by \SpecialChar LyX
20283 .
20284  You can find them in the 
20285 \family sans
20286 File\SpecialChar menuseparator
20287 Version
20288 \begin_inset space ~
20289 \end_inset
20290
20291 Control
20292 \family default
20293  submenu.
20294  \SpecialChar LyX
20295  was tested against RCS 5.7/5.8.
20296 \end_layout
20297
20298 \begin_layout Subsubsection
20299
20300 \family sans
20301 Register
20302 \end_layout
20303
20304 \begin_layout Standard
20305 If your document is not under revision control, this is the only item shown
20306  in the menu.
20307  And if it is under revision control, the 
20308 \family sans
20309 Register
20310 \family default
20311  item is not visible.
20312  
20313 \end_layout
20314
20315 \begin_layout Standard
20316 This command registers your document with RCS (unless you are under the
20317  directory managed by CVS)\SpecialChar endofsentence
20318  You are asked interactively to supply an initial
20319  description of the document.
20320  The document is now set in Read-Only mode and you have to 
20321 \family sans
20322 Check
20323 \begin_inset space ~
20324 \end_inset
20325
20326 Out
20327 \begin_inset space ~
20328 \end_inset
20329
20330 For
20331 \begin_inset space ~
20332 \end_inset
20333
20334 Edit
20335 \family default
20336 , before making any changes to it.
20337  A document under revision control has a 
20338 \begin_inset Quotes eld
20339 \end_inset
20340
20341 [RCS:<version> <locker>]
20342 \begin_inset Quotes erd
20343 \end_inset
20344
20345  item tagged to the filename in the minibuffer.
20346 \end_layout
20347
20348 \begin_layout Standard
20349 RCS command that is run:
20350 \end_layout
20351
20352 \begin_layout LyX-Code
20353
20354 \family typewriter
20355 ci -q -u -i -t-"<initial description>" <file-name>
20356 \end_layout
20357
20358 \begin_layout Standard
20359 Read 
20360 \family typewriter
20361 man ci
20362 \family default
20363  to understand the switches.
20364  
20365 \end_layout
20366
20367 \begin_layout Subsubsection
20368
20369 \family sans
20370 Check In Changes
20371 \end_layout
20372
20373 \begin_layout Standard
20374 When you are finished editing a file, you check in your changes.
20375  When you do this, you are asked for a description of the changes.
20376  This is stored in the history log.
20377  The version number is bumped, your changes are applied to the master RCS
20378  file, the document is unlocked and set to Read-Only mode.
20379 \end_layout
20380
20381 \begin_layout Itemize
20382 RCS command: 
20383 \family typewriter
20384 ci -q -u -m"<description>" <file-name>
20385 \end_layout
20386
20387 \begin_layout Subsubsection
20388
20389 \family sans
20390 Check Out For Edit
20391 \end_layout
20392
20393 \begin_layout Standard
20394 By doing this you lock the document so that only you can edit it.
20395  This will also make the document Read-Write only for you.
20396  You will usually continue editing for a while and when you are finished
20397  you check in your changes.
20398  The status line is changed to reflect that you have locked the file.
20399 \end_layout
20400
20401 \begin_layout Itemize
20402 RCS command: 
20403 \family typewriter
20404 co -q -l <file-name>
20405 \end_layout
20406
20407 \begin_layout Subsubsection
20408
20409 \family sans
20410 Revert To Repository Version
20411 \end_layout
20412
20413 \begin_layout Standard
20414 This will discard all changes made to the document since the last check
20415  in.
20416  You get a warning before changes are discarded.
20417 \end_layout
20418
20419 \begin_layout Itemize
20420 RCS command: 
20421 \family typewriter
20422 co -f -u<version> <file-name>
20423 \end_layout
20424
20425 \begin_layout Subsubsection
20426
20427 \family sans
20428 Copy
20429 \end_layout
20430
20431 \begin_layout Standard
20432 This will create a copy of the current document.
20433  Since RCS does not support copy operations natively, the version history
20434  is not preserved, and the copy is added as a new file.
20435  It requires a clean document without any changes since the last checkin.
20436  You are asked for a file name and a description of the copy operation.
20437  After that the copy is created, both locally and in the repository.
20438  If the parent directories of the copied and original document differ, all
20439  relative paths of included files of the copy are adjusted (like in 
20440 \family sans
20441 File\SpecialChar menuseparator
20442 Save As
20443 \family default
20444 \SpecialChar ldots
20445 ).
20446  Finally, the copy is loaded instead of the original document.
20447 \end_layout
20448
20449 \begin_layout Labeling
20450 \labelwidthstring 00.00.0000
20451 RCS
20452 \begin_inset space ~
20453 \end_inset
20454
20455 commands: 
20456 \begin_inset space ~
20457 \end_inset
20458
20459
20460 \begin_inset Newline newline
20461 \end_inset
20462
20463 Copy 
20464 \begin_inset Flex Code
20465 status collapsed
20466
20467 \begin_layout Plain Layout
20468
20469 \family typewriter
20470 \begin_inset Quotes qld
20471 \end_inset
20472
20473 <file-name>
20474 \begin_inset Quotes qld
20475 \end_inset
20476
20477
20478 \end_layout
20479
20480 \end_inset
20481
20482  to 
20483 \begin_inset Flex Code
20484 status collapsed
20485
20486 \begin_layout Plain Layout
20487
20488 \family typewriter
20489 \begin_inset Quotes qld
20490 \end_inset
20491
20492 <new-file-name>
20493 \begin_inset Quotes qld
20494 \end_inset
20495
20496
20497 \end_layout
20498
20499 \end_inset
20500
20501
20502 \begin_inset Newline newline
20503 \end_inset
20504
20505
20506 \begin_inset Flex Code
20507 status collapsed
20508
20509 \begin_layout Plain Layout
20510 ci -q -u 
20511 \family typewriter
20512 -i 
20513 \begin_inset Quotes qld
20514 \end_inset
20515
20516 <new-file-name>
20517 \begin_inset Quotes qld
20518 \end_inset
20519
20520
20521 \end_layout
20522
20523 \end_inset
20524
20525
20526 \end_layout
20527
20528 \begin_layout Subsubsection
20529
20530 \family sans
20531 Undo Last Checkin
20532 \end_layout
20533
20534 \begin_layout Standard
20535 This makes as if the last check in never happened.
20536  No changes are made to the document loaded into \SpecialChar LyX
20537 , but the last version
20538  is removed from the master RCS file.
20539 \end_layout
20540
20541 \begin_layout Itemize
20542 RCS command: 
20543 \family typewriter
20544 rcs -o<version> <file-name>
20545 \end_layout
20546
20547 \begin_layout Subsubsection
20548
20549 \family sans
20550 Show History
20551 \end_layout
20552
20553 \begin_layout Standard
20554 This shows the complete history of the RCS document.
20555  The output of 
20556 \family typewriter
20557 rlog <file-name>
20558 \family default
20559  is shown in a browser.
20560  See 
20561 \family typewriter
20562 man rlog
20563 \family default
20564  for more info.
20565 \end_layout
20566
20567 \begin_layout Subsubsection
20568 Revision info
20569 \end_layout
20570
20571 \begin_layout Standard
20572 \SpecialChar LyX
20573  supports RCS version number, author name, date and time of last commit.
20574  All those are extracted from 
20575 \family typewriter
20576 rlog -r <file-name>
20577 \family default
20578 .
20579  See 
20580 \begin_inset CommandInset ref
20581 LatexCommand ref
20582 reference "subsec:VCS-Revision-Information"
20583
20584 \end_inset
20585
20586  for details.
20587 \end_layout
20588
20589 \begin_layout Subsection
20590 CVS commands in \SpecialChar LyX
20591
20592 \end_layout
20593
20594 \begin_layout Standard
20595 A subset of CVS operations is supported by \SpecialChar LyX
20596 .
20597  You can find the commands in the 
20598 \family sans
20599 File\SpecialChar menuseparator
20600 Version
20601 \begin_inset space ~
20602 \end_inset
20603
20604 Control
20605 \family default
20606  submenu.
20607  The version control system SVN is more powerful, so please use it instead
20608  of CVS if possible.
20609 \end_layout
20610
20611 \begin_layout Subsubsection
20612
20613 \family sans
20614 General CVS usage
20615 \end_layout
20616
20617 \begin_layout Standard
20618 If you start from scratch with CVS you have to create your repository and
20619  checkout the working copy with external tools.
20620  If you're using a client-server setup you may need to login before doing
20621  the first repository checkout.
20622 \end_layout
20623
20624 \begin_layout Standard
20625 If your documents are under revision control and others are using the same
20626  repository problems arise when different changes to the same document at
20627  the same location happen.
20628  Standard CVS repositories don't operate with a file locking mechanism.
20629  This may be surprising, but conflicts only occur if people disagree on
20630  the proper content of the same part of a document.
20631  So, if co-workers are used to communicate regularly, these conflicts occur
20632  rarely.
20633  If they don't communicate they have a fundamental problem anyway.
20634  Nevertheless some people like to work with so called 
20635 \begin_inset Quotes eld
20636 \end_inset
20637
20638 reserved checkouts
20639 \begin_inset Quotes erd
20640 \end_inset
20641
20642 .
20643  If they do so the working copy of all files is readonly when checked out
20644  first and the user starts editing after using a special command to make
20645  the working copy writable.
20646  When the changes are checked in the working copy returns to readonly state.
20647  With \SpecialChar LyX
20648  one has to edit the 
20649 \begin_inset Flex Code
20650 status collapsed
20651
20652 \begin_layout Plain Layout
20653 .cvsrc
20654 \end_layout
20655
20656 \end_inset
20657
20658  file and add the line 
20659 \begin_inset Flex Code
20660 status collapsed
20661
20662 \begin_layout Plain Layout
20663 cvs -r
20664 \end_layout
20665
20666 \end_inset
20667
20668  to work with reserved checkouts.
20669  The benefit is the possibility to see who is using a writable copy of some
20670  document.
20671  It's not guaranteed only one user makes a copy writable.
20672 \end_layout
20673
20674 \begin_layout Standard
20675 \SpecialChar LyX
20676  tries to guess if you're using reserved or non-reserved checkouts.
20677  If your working copy is readonly or it is writable and an additional copy
20678  of your document exists in the CVS/Base sub-directory a reserved otherwise
20679  a non-reserved checkout is assumed.
20680  When a reserved checkout is detected you have to use 
20681 \begin_inset Flex Noun
20682 status collapsed
20683
20684 \begin_layout Plain Layout
20685 Check Out
20686 \end_layout
20687
20688 \end_inset
20689
20690  to make your working copy writable if it's readonly.
20691  After doing so the 
20692 \begin_inset Flex Noun
20693 status collapsed
20694
20695 \begin_layout Plain Layout
20696 Check In
20697 \end_layout
20698
20699 \end_inset
20700
20701  operation is possible and that makes your working copy readonly again after
20702  transferring your changes to the repository.
20703 \end_layout
20704
20705 \begin_layout Standard
20706 More information about CVS can be found here 
20707 \begin_inset Flex URL
20708 status collapsed
20709
20710 \begin_layout Plain Layout
20711
20712 http://www.nongnu.org/cvs
20713 \end_layout
20714
20715 \end_inset
20716
20717  and here 
20718 \begin_inset Flex URL
20719 status collapsed
20720
20721 \begin_layout Plain Layout
20722
20723 http://ximbiot.com/cvs
20724 \end_layout
20725
20726 \end_inset
20727
20728 .
20729 \end_layout
20730
20731 \begin_layout Standard
20732 Read 
20733 \family typewriter
20734 man cvs
20735 \family default
20736  to understand the sub-commands and the switches mentioned below.
20737 \end_layout
20738
20739 \begin_layout Subsubsection
20740
20741 \family sans
20742 Register
20743 \end_layout
20744
20745 \begin_layout Standard
20746 If your document is not under revision control, this is the only item shown
20747  in the menu.
20748  And if it is under revision control, the 
20749 \family sans
20750 Register
20751 \family default
20752  item is not visible.
20753  
20754 \end_layout
20755
20756 \begin_layout Standard
20757 This command registers in CVS your document 
20758 \begin_inset Flex Strong
20759 status collapsed
20760
20761 \begin_layout Plain Layout
20762
20763 \emph on
20764 only
20765 \end_layout
20766
20767 \end_inset
20768
20769  in the case you have already the documents directory under CVS control
20770  (in particular 
20771 \family typewriter
20772 CVS/Entries
20773 \family default
20774  file exists).
20775  This means you have to create or checkout the archive by yourself using
20776  external tools.
20777  (In case you forget that step \SpecialChar LyX
20778  registers the document with RCS.)
20779 \end_layout
20780
20781 \begin_layout Standard
20782 Then you are asked interactively to supply an initial description of the
20783  document.
20784  Don't forget that registered file is not yet checked in.
20785 \end_layout
20786
20787 \begin_layout Standard
20788 CVS command that is run: 
20789 \family typewriter
20790 cvs -q add -m"<entered message>" "<file-name>"
20791 \end_layout
20792
20793 \begin_layout Standard
20794 The term 
20795 \family typewriter
20796 "<file-name>"
20797 \family default
20798  above and for all other CVS commands is an abbreviation for 
20799 \begin_inset Quotes eld
20800 \end_inset
20801
20802 change the current working directory to file location and use the file name
20803  without path component as argument
20804 \begin_inset Quotes erd
20805 \end_inset
20806
20807 .
20808 \end_layout
20809
20810 \begin_layout Subsubsection
20811
20812 \family sans
20813 Check In Changes
20814 \end_layout
20815
20816 \begin_layout Standard
20817 When you are finished editing a file, you commit your changes.
20818  When you do this and you had changed the document, you are asked for a
20819  description of the changes.
20820  After that changes are written to the repository.
20821  In case you didn't change the document and a reserved checkout is detected
20822  the reservation made on 
20823 \begin_inset Flex Noun
20824 status collapsed
20825
20826 \begin_layout Plain Layout
20827 Check Out
20828 \end_layout
20829
20830 \end_inset
20831
20832  is undone.
20833 \end_layout
20834
20835 \begin_layout Labeling
20836 \labelwidthstring 00.00.0000
20837 CVS
20838 \begin_inset space ~
20839 \end_inset
20840
20841 command: 
20842 \begin_inset space ~
20843 \end_inset
20844
20845
20846 \begin_inset Newline newline
20847 \end_inset
20848
20849
20850 \begin_inset Flex Code
20851 status collapsed
20852
20853 \begin_layout Plain Layout
20854 cvs 
20855 \family typewriter
20856 -q commit -m"<description>" "<file-name>"
20857 \end_layout
20858
20859 \end_inset
20860
20861  or
20862 \begin_inset Newline newline
20863 \end_inset
20864
20865
20866 \begin_inset Flex Code
20867 status collapsed
20868
20869 \begin_layout Plain Layout
20870 cvs -q unedit 
20871 \family typewriter
20872 "<file-name>"
20873 \end_layout
20874
20875 \end_inset
20876
20877
20878 \end_layout
20879
20880 \begin_layout Subsubsection
20881
20882 \family sans
20883 Check Out Changes
20884 \end_layout
20885
20886 \begin_layout Standard
20887 When you are sharing a repository with others, you may have to incorporate
20888  their changes into your working copy.
20889 \end_layout
20890
20891 \begin_layout Standard
20892 CVS command: 
20893 \family typewriter
20894 cvs -q update "<file-name>"
20895 \end_layout
20896
20897 \begin_layout Standard
20898 If a readonly checkout is detected the working copy is made writable and
20899  reserved.
20900 \end_layout
20901
20902 \begin_layout Standard
20903 CVS command: 
20904 \family typewriter
20905 cvs -q edit "<file-name>"
20906 \end_layout
20907
20908 \begin_layout Subsubsection
20909
20910 \family sans
20911 Revert To Repository Version
20912 \end_layout
20913
20914 \begin_layout Standard
20915 This will discard all changes made to the document since the last check
20916  in.
20917  You get a warning before changes are discarded.
20918  Firstly the file is deleted, secondly CVS update command is run.
20919 \end_layout
20920
20921 \begin_layout Standard
20922 CVS command: 
20923 \family typewriter
20924 cvs -q update "<file-name>"
20925 \end_layout
20926
20927 \begin_layout Standard
20928 If a reserved checkout is detected and the working copy has no changes only
20929  the reservation is undone.
20930 \end_layout
20931
20932 \begin_layout Standard
20933 CVS command: 
20934 \family typewriter
20935 cvs -q unedit "<file-name>"
20936 \end_layout
20937
20938 \begin_layout Subsubsection
20939
20940 \family sans
20941 Copy
20942 \end_layout
20943
20944 \begin_layout Standard
20945 This will create a copy of the current document.
20946  Since CVS does not support copy operations natively, the version history
20947  is not preserved, and the copy is added as a new file.
20948  It requires a clean document without any changes since the last checkin.
20949  You are asked for a file name and a description of the copy operation.
20950  After that the copy is created, both locally and in the repository.
20951  If the parent directories of the copied and original document differ, all
20952  relative paths of included files of the copy are adjusted (like in 
20953 \family sans
20954 File\SpecialChar menuseparator
20955 Save As
20956 \family default
20957 \SpecialChar ldots
20958 ).
20959  Finally, the copy is loaded instead of the original document.
20960 \end_layout
20961
20962 \begin_layout Labeling
20963 \labelwidthstring 00.00.0000
20964 CVS
20965 \begin_inset space ~
20966 \end_inset
20967
20968 commands: 
20969 \begin_inset space ~
20970 \end_inset
20971
20972
20973 \begin_inset Newline newline
20974 \end_inset
20975
20976 Copy 
20977 \begin_inset Flex Code
20978 status collapsed
20979
20980 \begin_layout Plain Layout
20981 "<file-name>"
20982 \end_layout
20983
20984 \end_inset
20985
20986  to 
20987 \begin_inset Flex Code
20988 status collapsed
20989
20990 \begin_layout Plain Layout
20991 "<new-file-name>"
20992 \end_layout
20993
20994 \end_inset
20995
20996
20997 \begin_inset Newline newline
20998 \end_inset
20999
21000
21001 \begin_inset Flex Code
21002 status collapsed
21003
21004 \begin_layout Plain Layout
21005 cvs -q add "<new-file-name>"
21006 \end_layout
21007
21008 \end_inset
21009
21010
21011 \end_layout
21012
21013 \begin_layout Subsubsection
21014
21015 \family sans
21016 Rename
21017 \end_layout
21018
21019 \begin_layout Standard
21020 This will rename the current document.
21021  Since CVS does not support rename operations natively, the version history
21022  is not preserved, the renamed document is added as a new file, and the
21023  original document is deleted.
21024  It requires a clean document without any changes since the last checkin.
21025  You are asked for a file name and a description of the rename operation.
21026  After that the document is renamed, both locally and in the repository.
21027  If the parent directories of the new and old file names differ, all relative
21028  paths of included files are adjusted (like in 
21029 \family sans
21030 File\SpecialChar menuseparator
21031 Save As
21032 \family default
21033 \SpecialChar ldots
21034 ).
21035  Finally, the document is reloaded using the new name.
21036 \end_layout
21037
21038 \begin_layout Labeling
21039 \labelwidthstring 00.00.0000
21040 CVS
21041 \begin_inset space ~
21042 \end_inset
21043
21044 commands: 
21045 \begin_inset space ~
21046 \end_inset
21047
21048
21049 \begin_inset Newline newline
21050 \end_inset
21051
21052 Rename 
21053 \begin_inset Flex Code
21054 status collapsed
21055
21056 \begin_layout Plain Layout
21057 "<file-name>"
21058 \end_layout
21059
21060 \end_inset
21061
21062  to 
21063 \begin_inset Flex Code
21064 status collapsed
21065
21066 \begin_layout Plain Layout
21067 "<new-file-name>"
21068 \end_layout
21069
21070 \end_inset
21071
21072
21073 \begin_inset Newline newline
21074 \end_inset
21075
21076
21077 \begin_inset Flex Code
21078 status collapsed
21079
21080 \begin_layout Plain Layout
21081 cvs -q add "<new-file-name>"
21082 \end_layout
21083
21084 \end_inset
21085
21086
21087 \begin_inset Newline newline
21088 \end_inset
21089
21090
21091 \begin_inset Flex Code
21092 status collapsed
21093
21094 \begin_layout Plain Layout
21095 cvs -q remove "<file-name>"
21096 \end_layout
21097
21098 \end_inset
21099
21100
21101 \end_layout
21102
21103 \begin_layout Subsubsection
21104 Update of the local directory checkout from repository
21105 \end_layout
21106
21107 \begin_layout Standard
21108 Once your documents gets more complex, containing sub-documents and pictures,
21109  including external 
21110 \begin_inset Flex Code
21111 status collapsed
21112
21113 \begin_layout Plain Layout
21114 .tex
21115 \end_layout
21116
21117 \end_inset
21118
21119  files and so on using version control becomes more complicated.
21120  \SpecialChar LyX
21121  supports updating the whole tree in which resides the document.
21122  This become especially useful once you cooperate with people which neither
21123  have detailed knowledge about CVS usage nor they have ambition to commit
21124  additional material to the repository.
21125  You have to organize the files structure so that all external files are
21126  in the same directory or subdirectories of the document.
21127  It's good practice anyway to store multipart documents in an extra directory.
21128 \end_layout
21129
21130 \begin_layout Standard
21131 The 
21132 \begin_inset Flex Code
21133 status collapsed
21134
21135 \begin_layout Plain Layout
21136 Update local directory from repository
21137 \end_layout
21138
21139 \end_inset
21140
21141  command updates the whole directory.
21142  If local changes are detected user is warned before update starts.
21143  In case of merge conflicts both versions of the conflicting document parts
21144  are placed in the final document.
21145  You have to review and correct the result of the merge.
21146  You'll find the conflicts enclosed in pairs of 
21147 \begin_inset Flex Code
21148 status collapsed
21149
21150 \begin_layout Plain Layout
21151 <<<<<<<
21152 \end_layout
21153
21154 \end_inset
21155
21156  and 
21157 \begin_inset Flex Code
21158 status collapsed
21159
21160 \begin_layout Plain Layout
21161 >>>>>>>
21162 \end_layout
21163
21164 \end_inset
21165
21166  separated by 
21167 \begin_inset Flex Code
21168 status collapsed
21169
21170 \begin_layout Plain Layout
21171 =======
21172 \end_layout
21173
21174 \end_inset
21175
21176 .
21177  The first part is your version as before the update operation with the
21178  document name prepended.
21179  The second one is the repository version with the version number after
21180  the sequence of 
21181 \begin_inset Flex Code
21182 status collapsed
21183
21184 \begin_layout Plain Layout
21185 >
21186 \end_layout
21187
21188 \end_inset
21189
21190  signs.
21191 \end_layout
21192
21193 \begin_layout Labeling
21194 \labelwidthstring 00.00.0000
21195 CVS
21196 \begin_inset space ~
21197 \end_inset
21198
21199 commands: 
21200 \begin_inset space ~
21201 \end_inset
21202
21203
21204 \begin_inset Newline newline
21205 \end_inset
21206
21207
21208 \begin_inset Flex Code
21209 status collapsed
21210
21211 \begin_layout Plain Layout
21212 cd $path; cvs diff 
21213 \family typewriter
21214 "."
21215 \end_layout
21216
21217 \end_inset
21218
21219  (Ask if changes are detected.)
21220 \begin_inset Newline newline
21221 \end_inset
21222
21223
21224 \begin_inset Flex Code
21225 status collapsed
21226
21227 \begin_layout Plain Layout
21228 cd $path; cvs -q update 
21229 \family typewriter
21230 "."
21231 \end_layout
21232
21233 \end_inset
21234
21235
21236 \end_layout
21237
21238 \begin_layout Standard
21239 where 
21240 \begin_inset Flex Code
21241 status collapsed
21242
21243 \begin_layout Plain Layout
21244 $path
21245 \end_layout
21246
21247 \end_inset
21248
21249  stands for the path to the document.
21250 \end_layout
21251
21252 \begin_layout Subsubsection
21253
21254 \family sans
21255 Show History
21256 \end_layout
21257
21258 \begin_layout Standard
21259 This shows the complete history of the CVS document.
21260  The output of 
21261 \family typewriter
21262 cvs log "<file-name>"
21263 \family default
21264  is shown in a browser.
21265 \end_layout
21266
21267 \begin_layout Subsubsection
21268 Revision info
21269 \end_layout
21270
21271 \begin_layout Standard
21272 \SpecialChar LyX
21273  supports CVS version number, author name, date and time of last commit.
21274  All those are extracted from 
21275 \family typewriter
21276 cvs log -r <file-name>
21277 \family default
21278 .
21279  See 
21280 \begin_inset CommandInset ref
21281 LatexCommand ref
21282 reference "subsec:VCS-Revision-Information"
21283
21284 \end_inset
21285
21286  for details.
21287 \end_layout
21288
21289 \begin_layout Subsection
21290 SVN commands in \SpecialChar LyX
21291
21292 \end_layout
21293
21294 \begin_layout Standard
21295 SVN is now partially supported by \SpecialChar LyX
21296 .
21297  You can find the commands in the 
21298 \family sans
21299 File\SpecialChar menuseparator
21300 Version
21301 \begin_inset space ~
21302 \end_inset
21303
21304 Control
21305 \family default
21306  submenu.
21307  Please note that if you use password protected access to repository via
21308  ssh, you will be asked in terminal window.
21309  \SpecialChar LyX
21310  was tested against SVN 1.5, 1.6, 1.7 and 1.8
21311 \begin_inset Foot
21312 status collapsed
21313
21314 \begin_layout Plain Layout
21315 Most of the commands will work with 1.4 too, see 
21316 \begin_inset CommandInset ref
21317 LatexCommand ref
21318 reference "subsec:SVN-Repo-Update"
21319
21320 \end_inset
21321
21322 .
21323  There seems to be currently unresolved permissions problem under SVN 1.8
21324  with reverting changes when file is locked.
21325 \end_layout
21326
21327 \end_inset
21328
21329
21330 \end_layout
21331
21332 \begin_layout Subsubsection
21333
21334 \family sans
21335 Register
21336 \end_layout
21337
21338 \begin_layout Standard
21339 If your document is not under revision control, this is the only item shown
21340  in the menu.
21341  And if it is under revision control, the 
21342 \family sans
21343 Register
21344 \family default
21345  item is not visible.
21346 \end_layout
21347
21348 \begin_layout Standard
21349 This command registers in SVN your document ONLY in case you have already
21350  the documents directory under SVN control (in particular 
21351 \family typewriter
21352 .svn/entries
21353 \family default
21354  file exists).
21355  This means you have to checkout the archive by yourself.
21356 \end_layout
21357
21358 \begin_layout Standard
21359 Then you are asked interactively to supply an initial description of the
21360  document.
21361  Don't forget that registered file is not yet commited.
21362 \end_layout
21363
21364 \begin_layout Standard
21365 SVN command that is run: 
21366 \family typewriter
21367 svn add -q 
21368 \begin_inset Quotes qld
21369 \end_inset
21370
21371 <file-name>
21372 \begin_inset Quotes qld
21373 \end_inset
21374
21375
21376 \end_layout
21377
21378 \begin_layout Standard
21379 Read 
21380 \family typewriter
21381 man svn
21382 \family default
21383  to understand the switches.
21384 \end_layout
21385
21386 \begin_layout Subsubsection
21387
21388 \family sans
21389 Check In Changes
21390 \end_layout
21391
21392 \begin_layout Standard
21393 When you are finished editing a file, you commit your changes.
21394  When you do this, you are asked for a description of the changes.
21395  After that changes are commited.
21396 \end_layout
21397
21398 \begin_layout Standard
21399 SVN command:
21400 \begin_inset Foot
21401 status collapsed
21402
21403 \begin_layout Plain Layout
21404 In case locking is not enabled.
21405  See Section 
21406 \begin_inset CommandInset ref
21407 LatexCommand ref
21408 reference "subsec:SVN-File-Locking"
21409
21410 \end_inset
21411
21412 .
21413 \end_layout
21414
21415 \end_inset
21416
21417  
21418 \family typewriter
21419 svn commit -q -m"<description>" <file-name>
21420 \end_layout
21421
21422 \begin_layout Subsubsection
21423
21424 \family sans
21425 Check Out For Edit
21426 \end_layout
21427
21428 \begin_layout Standard
21429 Updates the changes of this file from the repository.
21430  Be sure you understand SVN merging and conflicts resolving before using
21431  this function, because all conflicts has to be resolved manually by you!
21432 \end_layout
21433
21434 \begin_layout Standard
21435 SVN command:
21436 \begin_inset Foot
21437 status collapsed
21438
21439 \begin_layout Plain Layout
21440 Ditto.
21441 \end_layout
21442
21443 \end_inset
21444
21445  
21446 \family typewriter
21447 svn update --non-interactive 
21448 \begin_inset Quotes qld
21449 \end_inset
21450
21451 <file-name>
21452 \begin_inset Quotes qld
21453 \end_inset
21454
21455
21456 \end_layout
21457
21458 \begin_layout Subsubsection
21459
21460 \family sans
21461 Revert To Repository Version
21462 \end_layout
21463
21464 \begin_layout Standard
21465 This will discard all changes made to the document since the last check
21466  in.
21467  You get a warning before changes are discarded.
21468 \end_layout
21469
21470 \begin_layout Standard
21471 SVN command: 
21472 \family typewriter
21473 svn revert -q 
21474 \begin_inset Quotes qld
21475 \end_inset
21476
21477 <file-name>
21478 \begin_inset Quotes qld
21479 \end_inset
21480
21481
21482 \end_layout
21483
21484 \begin_layout Subsubsection
21485
21486 \family sans
21487 Copy
21488 \end_layout
21489
21490 \begin_layout Standard
21491 This will create a copy of the current document including the version history.
21492  It requires a clean document without any changes since the last checkin.
21493  You are asked for a file name and a description of the copy operation.
21494  After that the copy is created, both locally and in the repository.
21495  If the parent directories of the copied and original document differ, all
21496  relative paths of included files of the copy are adjusted (like in 
21497 \family sans
21498 File\SpecialChar menuseparator
21499 Save As
21500 \family default
21501 \SpecialChar ldots
21502 ).
21503  Finally, the copy is loaded instead of the original document.
21504 \end_layout
21505
21506 \begin_layout Labeling
21507 \labelwidthstring 00.00.0000
21508 SVN
21509 \begin_inset space ~
21510 \end_inset
21511
21512 commands: 
21513 \begin_inset space ~
21514 \end_inset
21515
21516
21517 \begin_inset Newline newline
21518 \end_inset
21519
21520
21521 \begin_inset Flex Code
21522 status collapsed
21523
21524 \begin_layout Plain Layout
21525 svn copy -q 
21526 \family typewriter
21527
21528 \begin_inset Quotes qld
21529 \end_inset
21530
21531 <file-name>
21532 \begin_inset Quotes qld
21533 \end_inset
21534
21535  
21536 \begin_inset Quotes qld
21537 \end_inset
21538
21539 <new-file-name>
21540 \begin_inset Quotes qld
21541 \end_inset
21542
21543
21544 \end_layout
21545
21546 \end_inset
21547
21548
21549 \begin_inset Newline newline
21550 \end_inset
21551
21552
21553 \begin_inset Flex Code
21554 status collapsed
21555
21556 \begin_layout Plain Layout
21557 svn commit
21558 \end_layout
21559
21560 \end_inset
21561
21562
21563 \end_layout
21564
21565 \begin_layout Subsubsection
21566
21567 \family sans
21568 Rename
21569 \end_layout
21570
21571 \begin_layout Standard
21572 This will rename the current document including the version history.
21573  It requires a clean document without any changes since the last checkin.
21574  You are asked for a file name and a description of the rename operation.
21575  After that the document is renamed, both locally and in the repository.
21576  If the parent directories of the new and old file names differ, all relative
21577  paths of included files are adjusted (like in 
21578 \family sans
21579 File\SpecialChar menuseparator
21580 Save As
21581 \family default
21582 \SpecialChar ldots
21583 ).
21584  Finally, the document is reloaded using the new name.
21585 \end_layout
21586
21587 \begin_layout Labeling
21588 \labelwidthstring 00.00.0000
21589 SVN
21590 \begin_inset space ~
21591 \end_inset
21592
21593 commands: 
21594 \begin_inset space ~
21595 \end_inset
21596
21597
21598 \begin_inset Newline newline
21599 \end_inset
21600
21601
21602 \begin_inset Flex Code
21603 status collapsed
21604
21605 \begin_layout Plain Layout
21606 svn move -q 
21607 \family typewriter
21608
21609 \begin_inset Quotes qld
21610 \end_inset
21611
21612 <file-name>
21613 \begin_inset Quotes qld
21614 \end_inset
21615
21616  
21617 \begin_inset Quotes qld
21618 \end_inset
21619
21620 <new-file-name>
21621 \begin_inset Quotes qld
21622 \end_inset
21623
21624
21625 \end_layout
21626
21627 \end_inset
21628
21629
21630 \begin_inset Newline newline
21631 \end_inset
21632
21633
21634 \begin_inset Flex Code
21635 status collapsed
21636
21637 \begin_layout Plain Layout
21638 svn commit
21639 \end_layout
21640
21641 \end_inset
21642
21643
21644 \end_layout
21645
21646 \begin_layout Subsubsection
21647 \begin_inset CommandInset label
21648 LatexCommand label
21649 name "subsec:SVN-Repo-Update"
21650
21651 \end_inset
21652
21653 Update of the local directory checkout from repository
21654 \begin_inset Foot
21655 status collapsed
21656
21657 \begin_layout Plain Layout
21658 Note that this command will work only with subversion 
21659 \begin_inset Formula $\geqq1.5$
21660 \end_inset
21661
21662
21663 \end_layout
21664
21665 \end_inset
21666
21667
21668 \end_layout
21669
21670 \begin_layout Standard
21671 All the commands above have one shortcoming – they deal with the current
21672  document only.
21673  Once your document contains pictures, includes external 
21674 \begin_inset Flex Code
21675 status collapsed
21676
21677 \begin_layout Plain Layout
21678 .tex
21679 \end_layout
21680
21681 \end_inset
21682
21683  files and so on administration becomes more complicated.
21684  \SpecialChar LyX
21685  now supports updating the whole tree in which resides the document
21686 \begin_inset Foot
21687 status collapsed
21688
21689 \begin_layout Plain Layout
21690 One need to organize the files structure so that all external files are
21691  in the same directory or subdirectories of the document.
21692  
21693 \end_layout
21694
21695 \end_inset
21696
21697 .
21698  This become especially useful once you cooperate with people which neither
21699  know about subversion management nor they have ambition to commit additional
21700  material to the repository.
21701  
21702 \end_layout
21703
21704 \begin_layout Standard
21705 \begin_inset Flex Code
21706 status collapsed
21707
21708 \begin_layout Plain Layout
21709 Update local directory from repository
21710 \end_layout
21711
21712 \end_inset
21713
21714  command updates the whole directory and in case of merge conflicts local
21715  version of the files are left, so no unintended data loss occurs.
21716  If local changes are detected user is warned before update starts.
21717 \end_layout
21718
21719 \begin_layout Labeling
21720 \labelwidthstring 00.00.0000
21721 SVN
21722 \begin_inset space ~
21723 \end_inset
21724
21725 commands: 
21726 \begin_inset space ~
21727 \end_inset
21728
21729
21730 \begin_inset Newline newline
21731 \end_inset
21732
21733
21734 \begin_inset Flex Code
21735 status collapsed
21736
21737 \begin_layout Plain Layout
21738 svn diff $path
21739 \end_layout
21740
21741 \end_inset
21742
21743  (Ask if changes are detected.)
21744 \begin_inset Newline newline
21745 \end_inset
21746
21747
21748 \begin_inset Flex Code
21749 status collapsed
21750
21751 \begin_layout Plain Layout
21752 svn update --accept mine-full $path
21753 \end_layout
21754
21755 \end_inset
21756
21757
21758 \end_layout
21759
21760 \begin_layout Standard
21761 where 
21762 \begin_inset Flex Code
21763 status collapsed
21764
21765 \begin_layout Plain Layout
21766 $path
21767 \end_layout
21768
21769 \end_inset
21770
21771  stands for the path to the document.
21772 \end_layout
21773
21774 \begin_layout Subsubsection
21775
21776 \family sans
21777 Show History
21778 \end_layout
21779
21780 \begin_layout Standard
21781 This shows the complete history of the SVN document.
21782  The output of 
21783 \family typewriter
21784 svn log 
21785 \begin_inset Quotes qld
21786 \end_inset
21787
21788 <file-name>
21789 \begin_inset Quotes qld
21790 \end_inset
21791
21792
21793 \family default
21794  is shown in a browser.
21795 \end_layout
21796
21797 \begin_layout Subsubsection
21798 File Locking
21799 \begin_inset CommandInset label
21800 LatexCommand label
21801 name "subsec:SVN-File-Locking"
21802
21803 \end_inset
21804
21805
21806 \end_layout
21807
21808 \begin_layout Standard
21809 The file exchange through various revision control systems brings the problem
21810  of merge conflicts in case two different users try to edit the same (parts
21811  of) document.
21812  When such a conflict happens it needs manual resolving and one reasonable
21813  alternative is to provide some kind of locking mechanism, which guarantees
21814  that only one user is allowed to edit file at the given time.
21815 \end_layout
21816
21817 \begin_layout Standard
21818 SVN has two such mechanisms to provide mutual exclusivity for file access
21819  – locks and automatic setting of write permissions (see sec.
21820  
21821 \begin_inset CommandInset ref
21822 LatexCommand ref
21823 reference "subsec:Automatical-Locking-Property"
21824
21825 \end_inset
21826
21827 ) based on 
21828 \begin_inset Flex Code
21829 status collapsed
21830
21831 \begin_layout Plain Layout
21832 svn:needs-lock
21833 \end_layout
21834
21835 \end_inset
21836
21837  file svn property
21838 \begin_inset Foot
21839 status collapsed
21840
21841 \begin_layout Plain Layout
21842 \begin_inset Flex URL
21843 status open
21844
21845 \begin_layout Plain Layout
21846
21847 http://svnbook.red-bean.com/en/1.2/svn.advanced.locking.html
21848 \end_layout
21849
21850 \end_inset
21851
21852
21853 \end_layout
21854
21855 \end_inset
21856
21857 .
21858  If this property is detected for a given document \SpecialChar LyX
21859  starts to use SVN locks
21860  for document editing automatically and the whole check-in/out mechanism
21861  switches to the same regimen as for RCS.
21862  This in particular means there are two different modes of file use in \SpecialChar LyX
21863 :
21864 \end_layout
21865
21866 \begin_layout Itemize
21867 Unlocked state.
21868  The loaded file is in the read-only mode.
21869  For editing on needs to check-out.
21870  
21871 \emph on
21872 Check-out
21873 \emph default
21874  consists of updating from the repository and gaining write lock.
21875  If the lock is not possible to obtain, we remain in unlocked state.
21876 \end_layout
21877
21878 \begin_layout Itemize
21879 Locked state.
21880  The loaded file is in the 
21881 \begin_inset Quotes els
21882 \end_inset
21883
21884 normal
21885 \begin_inset Quotes ers
21886 \end_inset
21887
21888  edit mode.
21889  No other user is allowed to edit the file.
21890  
21891 \emph on
21892 Check-in
21893 \emph default
21894  consists of commiting changes and releasing write-lock.
21895  If no changes have been made to the document, no commit will be produced
21896 \begin_inset Foot
21897 status collapsed
21898
21899 \begin_layout Plain Layout
21900 Don't be puzzled by the fact that you will be asked for commit message anyway.
21901 \end_layout
21902
21903 \end_inset
21904
21905  and only the write-lock will be released.
21906 \end_layout
21907
21908 \begin_layout Standard
21909 SVN commands:
21910 \end_layout
21911
21912 \begin_layout Labeling
21913 \labelwidthstring 00.00.0000
21914 Check-in:
21915 \family typewriter
21916  svn commit -q -m"<description>" "<file-name>"
21917 \begin_inset Newline newline
21918 \end_inset
21919
21920 svn unlock "<file-name>"
21921 \end_layout
21922
21923 \begin_layout Labeling
21924 \labelwidthstring 00.00.0000
21925 Check-out: 
21926 \family typewriter
21927 svn update "<file-name>"
21928 \begin_inset Newline newline
21929 \end_inset
21930
21931 svn lock "<file-name>"
21932 \end_layout
21933
21934 \begin_layout Subsubsection
21935
21936 \family typewriter
21937 \begin_inset CommandInset label
21938 LatexCommand label
21939 name "subsec:Automatical-Locking-Property"
21940
21941 \end_inset
21942
21943
21944 \family default
21945 Automatic Locking Property
21946 \end_layout
21947
21948 \begin_layout Standard
21949 The above mentioned automatic setting of write permissions of the .lyx file
21950  can be set through
21951 \family sans
21952  File\SpecialChar menuseparator
21953 Version
21954 \begin_inset space ~
21955 \end_inset
21956
21957 Control\SpecialChar menuseparator
21958 Use Locking Property
21959 \family default
21960 .
21961  This command is active only when the file is not locked on the svn server
21962  (i.e.
21963  you need to check-out before proceeding).
21964 \end_layout
21965
21966 \begin_layout Labeling
21967 \labelwidthstring 00.00.0000
21968 SVN
21969 \begin_inset space ~
21970 \end_inset
21971
21972 commands:
21973 \end_layout
21974
21975 \begin_layout Labeling
21976 \labelwidthstring 00.00.0000
21977 Set:
21978 \family typewriter
21979  svn propset svn:needs-lock ON "<file-name>"
21980 \end_layout
21981
21982 \begin_layout Labeling
21983 \labelwidthstring 00.00.0000
21984 Unset: 
21985 \family typewriter
21986 svn propdel svn:needs-lock "<file-name>"
21987 \end_layout
21988
21989 \begin_layout Subsubsection
21990 \begin_inset CommandInset label
21991 LatexCommand label
21992 name "subsec:VCS-Revision-Information"
21993
21994 \end_inset
21995
21996 Revision Information in Documents
21997 \end_layout
21998
21999 \begin_layout Standard
22000 There are more possibilities how to activate revision information in our
22001  document.
22002 \end_layout
22003
22004 \begin_layout Itemize
22005 \SpecialChar LyX
22006  supports directly:
22007 \end_layout
22008
22009 \begin_deeper
22010 \begin_layout Itemize
22011 tree revision information (
22012 \begin_inset Flex Code
22013 status collapsed
22014
22015 \begin_layout Plain Layout
22016 vcs-tree-revision
22017 \end_layout
22018
22019 \end_inset
22020
22021 ).
22022  The result is the output of the 
22023 \begin_inset Flex Code
22024 status collapsed
22025
22026 \begin_layout Plain Layout
22027 svnversion
22028 \end_layout
22029
22030 \end_inset
22031
22032  command, the following table gives you an idea, how to read the results.
22033 \end_layout
22034
22035 \begin_layout Standard
22036 \align center
22037 \begin_inset Tabular
22038 <lyxtabular version="3" rows="6" columns="2">
22039 <features tabularvalignment="middle">
22040 <column alignment="left" valignment="top">
22041 <column alignment="left" valignment="top">
22042 <row>
22043 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22044 \begin_inset Text
22045
22046 \begin_layout Plain Layout
22047
22048 \series bold
22049 Output
22050 \end_layout
22051
22052 \end_inset
22053 </cell>
22054 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
22055 \begin_inset Text
22056
22057 \begin_layout Plain Layout
22058
22059 \series bold
22060 Meaning
22061 \end_layout
22062
22063 \end_inset
22064 </cell>
22065 </row>
22066 <row>
22067 <cell alignment="left" valignment="top" topline="true" leftline="true" usebox="none">
22068 \begin_inset Text
22069
22070 \begin_layout Plain Layout
22071 4123:4168
22072 \end_layout
22073
22074 \end_inset
22075 </cell>
22076 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
22077 \begin_inset Text
22078
22079 \begin_layout Plain Layout
22080 mixed revision working copy
22081 \end_layout
22082
22083 \end_inset
22084 </cell>
22085 </row>
22086 <row>
22087 <cell alignment="left" valignment="top" topline="true" leftline="true" usebox="none">
22088 \begin_inset Text
22089
22090 \begin_layout Plain Layout
22091 4168M
22092 \end_layout
22093
22094 \end_inset
22095 </cell>
22096 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
22097 \begin_inset Text
22098
22099 \begin_layout Plain Layout
22100 modified working copy
22101 \end_layout
22102
22103 \end_inset
22104 </cell>
22105 </row>
22106 <row>
22107 <cell alignment="left" valignment="top" topline="true" leftline="true" usebox="none">
22108 \begin_inset Text
22109
22110 \begin_layout Plain Layout
22111 4123S
22112 \end_layout
22113
22114 \end_inset
22115 </cell>
22116 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
22117 \begin_inset Text
22118
22119 \begin_layout Plain Layout
22120 switched working copy
22121 \end_layout
22122
22123 \end_inset
22124 </cell>
22125 </row>
22126 <row>
22127 <cell alignment="left" valignment="top" topline="true" leftline="true" usebox="none">
22128 \begin_inset Text
22129
22130 \begin_layout Plain Layout
22131 4123P
22132 \end_layout
22133
22134 \end_inset
22135 </cell>
22136 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
22137 \begin_inset Text
22138
22139 \begin_layout Plain Layout
22140 partial working copy, from a sparse checkout
22141 \end_layout
22142
22143 \end_inset
22144 </cell>
22145 </row>
22146 <row>
22147 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22148 \begin_inset Text
22149
22150 \begin_layout Plain Layout
22151 4123:4168MS
22152 \end_layout
22153
22154 \end_inset
22155 </cell>
22156 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
22157 \begin_inset Text
22158
22159 \begin_layout Plain Layout
22160 mixed revision, modified, switched working copy
22161 \end_layout
22162
22163 \end_inset
22164 </cell>
22165 </row>
22166 </lyxtabular>
22167
22168 \end_inset
22169
22170
22171 \end_layout
22172
22173 \begin_layout Itemize
22174 file revision information.
22175  The result comes from parsing the output of 
22176 \begin_inset Flex Code
22177 status collapsed
22178
22179 \begin_layout Plain Layout
22180 svn
22181 \begin_inset space ~
22182 \end_inset
22183
22184 info
22185 \begin_inset space ~
22186 \end_inset
22187
22188 --xml
22189 \begin_inset space ~
22190 \end_inset
22191
22192 file.lyx
22193 \end_layout
22194
22195 \end_inset
22196
22197 .
22198  Supported flags are:
22199 \end_layout
22200
22201 \begin_deeper
22202 \begin_layout Itemize
22203 version number of the last commit (
22204 \begin_inset Flex Code
22205 status collapsed
22206
22207 \begin_layout Plain Layout
22208 vcs-revision
22209 \end_layout
22210
22211 \end_inset
22212
22213 )
22214 \end_layout
22215
22216 \begin_layout Itemize
22217 author of the last commit (
22218 \begin_inset Flex Code
22219 status collapsed
22220
22221 \begin_layout Plain Layout
22222 vcs-author
22223 \end_layout
22224
22225 \end_inset
22226
22227 )
22228 \end_layout
22229
22230 \begin_layout Itemize
22231 date of the last commit (
22232 \begin_inset Flex Code
22233 status collapsed
22234
22235 \begin_layout Plain Layout
22236 vcs-date
22237 \end_layout
22238
22239 \end_inset
22240
22241 )
22242 \end_layout
22243
22244 \begin_layout Itemize
22245 time of the last commit (
22246 \begin_inset Flex Code
22247 status collapsed
22248
22249 \begin_layout Plain Layout
22250 vcs-time
22251 \end_layout
22252
22253 \end_inset
22254
22255 )
22256 \end_layout
22257
22258 \end_deeper
22259 \begin_layout Standard
22260 You can obtain this info via InsetInfo (
22261 \change_inserted 5863208 1564400022
22262
22263 \lang american
22264 Insert\SpecialChar menuseparator
22265 Field\SpecialChar menuseparator
22266 Version Control Revision
22267 \change_deleted 5863208 1564399852
22268
22269 \lang english
22270 e.g.
22271  
22272 \begin_inset Flex Code
22273 status collapsed
22274
22275 \begin_layout Plain Layout
22276 info-insert buffer vcs-date
22277 \end_layout
22278
22279 \end_inset
22280
22281
22282 \change_unchanged
22283 ).
22284  The information will be available only when you have the file stored under
22285  svn managment (i.e.
22286  the 
22287 \begin_inset Flex Code
22288 status collapsed
22289
22290 \begin_layout Plain Layout
22291 .svn
22292 \end_layout
22293
22294 \end_inset
22295
22296  directory is available with your document).
22297 \end_layout
22298
22299 \end_deeper
22300 \begin_layout Itemize
22301 Another—a hacking one—possibility is to use svn keywords
22302 \begin_inset Foot
22303 status collapsed
22304
22305 \begin_layout Plain Layout
22306 http://svnbook.red-bean.com/en/1.4/svn.advanced.props.special.keywords.html
22307 \end_layout
22308
22309 \end_inset
22310
22311 .
22312  In short – you set file keywords property (e.g.
22313  
22314 \family sans
22315 svn propset svn:keywords 'Rev' file.lyx
22316 \family default
22317 ) and then paste keyword \SpecialChar TeX
22318  code
22319 \begin_inset Foot
22320 status collapsed
22321
22322 \begin_layout Plain Layout
22323 This is an easy way how to ensure that \SpecialChar LyX
22324  won't break the line in the middle
22325  of keyword tag.
22326 \end_layout
22327
22328 \end_inset
22329
22330  tag in your document (e.g.
22331  
22332 \begin_inset Flex Code
22333 status collapsed
22334
22335 \begin_layout Plain Layout
22336 $Rev$
22337 \end_layout
22338
22339 \end_inset
22340
22341 ).
22342  This way svn client will automatically substitute revision number (e.g.
22343  
22344 \begin_inset Flex Code
22345 status collapsed
22346
22347 \begin_layout Plain Layout
22348 $Rev: 59 $
22349 \end_layout
22350
22351 \end_inset
22352
22353 ) after each update and commit.
22354  There are more problems with this approach.
22355  Firstly, the '$' character is used in \SpecialChar TeX
22356  world for math equations, so any
22357  occurence of math formula 
22358 \begin_inset Formula $Rev$
22359 \end_inset
22360
22361  become 
22362 \begin_inset Formula $Rev:59$
22363 \end_inset
22364
22365  in your \SpecialChar LyX
22366  document.
22367  Similarly for other keywords like Id, Date, Author, etc.
22368  Secondly svn output is dependent on your locales, so its very easy that
22369  svn would produce some problematic strings once Date is used.
22370  Thirdly you get the whole 'Rev: 59' string in your document instead of
22371  the plain number.
22372  Until subversion implements user's custom keywords it will be hard to use
22373  this approach reliably or let \SpecialChar LyX
22374  to support it directly.
22375 \end_layout
22376
22377 \begin_layout Subsection
22378 SVN and Windows Environment
22379 \end_layout
22380
22381 \begin_layout Quote
22382 My inclination is to say that if the user cannot figure out the command
22383  line operations on their own fairly quickly, they would be well advised
22384  to use TortoiseSVN.
22385  —P.
22386  A.
22387  Rubin
22388 \end_layout
22389
22390 \begin_layout Subsubsection
22391 Preparation
22392 \end_layout
22393
22394 \begin_layout Standard
22395 In addition to installing \SpecialChar LyX
22396 , and having access to a Subversion repository,
22397  the user will need to install the Subversion client program.
22398  A Windows installer for the client program is available from 
22399 \begin_inset CommandInset href
22400 LatexCommand href
22401 name "CollabNet"
22402 target "http://www.collab.net/nonav/downloads/subversion/"
22403 literal "false"
22404
22405 \end_inset
22406
22407 .
22408  The user may also want to install 
22409 \begin_inset CommandInset href
22410 LatexCommand href
22411 name "TortoiseSVN"
22412 target "http://tortoisesvn.tigris.org/"
22413 literal "false"
22414
22415 \end_inset
22416
22417 , which integrates Subversion operations into the context (rightclick) menu
22418  of Windows Explorer.
22419  Operations done outside \SpecialChar LyX
22420  will typically be more convenient using the Explorer
22421  context menu.
22422  Note that TortoiseSVN is not a replacement for the client program, which
22423  is what \SpecialChar LyX
22424  itself will use.
22425 \end_layout
22426
22427 \begin_layout Subsubsection
22428 Bringing a document under Subversion control
22429 \end_layout
22430
22431 \begin_layout Standard
22432 Before a \SpecialChar LyX
22433  document can be brought under version control in Subversion, its
22434  parent directory needs to be under version control.
22435  If the document is being added to a project already in the repository,
22436  this is accomplished by checking the project out to the directory where
22437  the new document will be placed.
22438  If the project itself is not yet under version control (for instance, if
22439  this document starts a new project), the directory must be imported into
22440  the repository.
22441  This is done outside \SpecialChar LyX
22442 .
22443  Both import and checkout are easily accomplished from the Explorer context
22444  menu using TortoiseSVN, or alternatively can be done using the command
22445  line client at a DOS prompt.
22446  The procedure for importing the project using TortoiseSVN is described
22447  below, assuming an existing repository and a new project being started
22448  in 
22449 \family typewriter
22450 C:
22451 \backslash
22452 new project
22453 \family default
22454 .
22455  For information on using the Subversion client program, run 
22456 \family typewriter
22457 svn --help 
22458 \family default
22459 in a DOS shell.
22460 \end_layout
22461
22462 \begin_layout Enumerate
22463 Locate 
22464 \family typewriter
22465 C:
22466 \backslash
22467 new project 
22468 \family default
22469 in Windows Explorer, right click it, and select 
22470 \family sans
22471 TortoiseSVN\SpecialChar menuseparator
22472 Repo-browser
22473 \family default
22474 .
22475  If necessary, adjust the URL for the repository, then click OK.
22476 \end_layout
22477
22478 \begin_layout Enumerate
22479 Right click the level of the repository under which you want to place the
22480  new project folder (typically the top level) and click 
22481 \family sans
22482 Create folder
22483 \family default
22484  Supply a name for the project folder and click OK.
22485  Add a message for the log file if desired, then click OK again.
22486  The new project folder should appear in the repository.
22487  Finally, click OK again to exit the repository browser.
22488 \end_layout
22489
22490 \begin_layout Enumerate
22491 Once again right click 
22492 \family typewriter
22493 C:
22494 \backslash
22495 new project
22496 \family default
22497 , this time selecting SVN Checkout\SpecialChar ldots
22498  Select the URL of the project folder
22499  you just created in the repository, and set the checkout directory to 
22500 \family typewriter
22501 C:
22502 \backslash
22503 new project.
22504
22505 \family default
22506  Click OK.
22507  You will be warned about a non-empty folder; click OK to proceed.
22508  You should now have a 
22509 \family typewriter
22510 .svn
22511 \family default
22512  directory under 
22513 \family typewriter
22514 C:
22515 \backslash
22516 new project.
22517 \end_layout
22518
22519 \begin_layout Enumerate
22520 Create or open your document in \SpecialChar LyX
22521  and click 
22522 \family sans
22523 File\SpecialChar menuseparator
22524 Version
22525 \begin_inset space ~
22526 \end_inset
22527
22528 Control\SpecialChar menuseparator
22529 Register.
22530  
22531 \family default
22532 Add a log message and click OK to commit the document to version control.
22533 \end_layout
22534
22535 \begin_layout Standard
22536 From this point onward, you should have full functionality in the 
22537 \family sans
22538 File\SpecialChar menuseparator
22539 Version
22540 \begin_inset space ~
22541 \end_inset
22542
22543 Control
22544 \family default
22545  menu.
22546  You also have the option of checking the document in and out, viewing its
22547  history, etc.
22548  using the TortoiseSVN context menu in Windows Explorer or the Subversion
22549  client program from a command prompt.
22550 \end_layout
22551
22552 \begin_layout Subsubsection
22553 SSH tunnel used with SVN under Windows
22554 \end_layout
22555
22556 \begin_layout Standard
22557 Compared with Linux setting up an svn client to communicate over ssh under
22558  Windows is a rather troublesome task.
22559  We will at least offer some hints how to setup the client side but prior
22560  knowledge about ssh and the Windows command line is needed, also be prepared
22561  for a great deal of frustration\SpecialChar ldots
22562
22563 \end_layout
22564
22565 \begin_layout Enumerate
22566 Get an svn client for windows, as described in the previous sections.
22567  When it is a fresh install run some svn command (e.g.
22568  
22569 \begin_inset Flex Code
22570 status collapsed
22571
22572 \begin_layout Plain Layout
22573 svn --version
22574 \end_layout
22575
22576 \end_inset
22577
22578 ) to create config files, which you will need to change later on.
22579 \end_layout
22580
22581 \begin_layout Enumerate
22582 Choose an ssh client for Windows.
22583  There are several possibilities, we will use the one from Putty tools
22584 \begin_inset Foot
22585 status collapsed
22586
22587 \begin_layout Plain Layout
22588 \begin_inset Flex URL
22589 status collapsed
22590
22591 \begin_layout Plain Layout
22592
22593 http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html
22594 \end_layout
22595
22596 \end_inset
22597
22598
22599 \end_layout
22600
22601 \end_inset
22602
22603 .
22604  You will need to set the connection up so that the client doesn't ask for
22605  any password from you.
22606  To keep things easy we will use only keys without any additional password
22607  protection etc.
22608 \end_layout
22609
22610 \begin_deeper
22611 \begin_layout Enumerate
22612 Generate keys by 
22613 \begin_inset Flex Code
22614 status collapsed
22615
22616 \begin_layout Plain Layout
22617 puttygen
22618 \end_layout
22619
22620 \end_inset
22621
22622 .
22623  Save your private .ppk key file and put the public one on the server side.
22624  If the SVN server runs on Linux, note that the format of the public key
22625  is not compatible with Linux openssh and you will need to direcly copy-paste
22626  the key from the 
22627 \begin_inset Quotes eld
22628 \end_inset
22629
22630
22631 \emph on
22632 Public key for pasting into OpenSSH authorized_keys file
22633 \emph default
22634 :
22635 \begin_inset Quotes erd
22636 \end_inset
22637
22638  edit field into the server's 
22639 \begin_inset Flex Code
22640 status collapsed
22641
22642 \begin_layout Plain Layout
22643 ~/.ssh/authorized_keys
22644 \end_layout
22645
22646 \end_inset
22647
22648  / 
22649 \begin_inset Flex Code
22650 status collapsed
22651
22652 \begin_layout Plain Layout
22653 authorized_keys2
22654 \end_layout
22655
22656 \end_inset
22657
22658  file.
22659 \end_layout
22660
22661 \begin_layout Enumerate
22662 Get the Putty's 
22663 \begin_inset Flex Code
22664 status collapsed
22665
22666 \begin_layout Plain Layout
22667 plink
22668 \end_layout
22669
22670 \end_inset
22671
22672 .
22673  In the SVN config file
22674 \begin_inset Foot
22675 status collapsed
22676
22677 \begin_layout Plain Layout
22678 Exact path depends on Windows version, usually somewhere around 
22679 \begin_inset Flex Code
22680 status collapsed
22681
22682 \begin_layout Plain Layout
22683 c:
22684 \backslash
22685 Documents and Settings
22686 \backslash
22687 user
22688 \backslash
22689 Application Data
22690 \backslash
22691 Subversion
22692 \backslash
22693 config
22694 \end_layout
22695
22696 \end_inset
22697
22698  / 
22699 \begin_inset Flex Code
22700 status collapsed
22701
22702 \begin_layout Plain Layout
22703 AppData
22704 \backslash
22705 Roaming
22706 \backslash
22707 Subversion
22708 \end_layout
22709
22710 \end_inset
22711
22712 .
22713 \end_layout
22714
22715 \end_inset
22716
22717 , section [tunnels], setup ssh command, e.g.
22718  
22719 \begin_inset Flex Code
22720 status collapsed
22721
22722 \begin_layout Plain Layout
22723 ssh=c:/path/plink.exe -i c:/path/private_key.ppk
22724 \end_layout
22725
22726 \end_inset
22727
22728 .
22729 \begin_inset Foot
22730 status collapsed
22731
22732 \begin_layout Plain Layout
22733 It will usually take a lot of time to get exact command right and it depends
22734  on many things.
22735  For example do not have some remote server saved as a default session in
22736  Putty etc.
22737  If things fail, try to connect via plink without SVN first.
22738 \end_layout
22739
22740 \end_inset
22741
22742
22743 \end_layout
22744
22745 \end_deeper
22746 \begin_layout Enumerate
22747 Checkout the SVN archive, e.
22748 \begin_inset space \thinspace{}
22749 \end_inset
22750
22751 g.
22752 \begin_inset Newline newline
22753 \end_inset
22754
22755
22756 \begin_inset Flex Code
22757 status collapsed
22758
22759 \begin_layout Plain Layout
22760 svn co svn+ssh://user@server/repository_path
22761 \end_layout
22762
22763 \end_inset
22764
22765 .
22766 \end_layout
22767
22768 \begin_layout Subsubsection
22769 End-of-Line Conversions
22770 \end_layout
22771
22772 \begin_layout Standard
22773 When the collaborators are mixing Linux and Windows environments, \SpecialChar LyX
22774  will
22775  use different line endings inside the .lyx files.
22776  This is not a problem as far as \SpecialChar LyX
22777  functionality is concerned, but the commit
22778  diffs will be huge and merge-conflicts prone.
22779  Fortunately SVN itself knows
22780 \begin_inset Foot
22781 status collapsed
22782
22783 \begin_layout Plain Layout
22784 \begin_inset Flex URL
22785 status collapsed
22786
22787 \begin_layout Plain Layout
22788
22789 http://svnbook.red-bean.com/en/1.4/svn.advanced.props.file-portability.html
22790 \end_layout
22791
22792 \end_inset
22793
22794
22795 \end_layout
22796
22797 \end_inset
22798
22799  how to deal with CR/LF problems when switching .lyx files to the 
22800 \begin_inset Flex Code
22801 status collapsed
22802
22803 \begin_layout Plain Layout
22804 native
22805 \end_layout
22806
22807 \end_inset
22808
22809  mode.
22810 \begin_inset Foot
22811 status collapsed
22812
22813 \begin_layout Plain Layout
22814 For the lazy guys: 
22815 \begin_inset Flex Code
22816 status collapsed
22817
22818 \begin_layout Plain Layout
22819 svn propset svn:eol-style native FILE_NAME
22820 \end_layout
22821
22822 \end_inset
22823
22824
22825 \end_layout
22826
22827 \end_inset
22828
22829
22830 \end_layout
22831
22832 \begin_layout Subsection
22833 GIT commands in \SpecialChar LyX
22834
22835 \end_layout
22836
22837 \begin_layout Standard
22838 A minimal subset of GIT commands is now supported by \SpecialChar LyX
22839 .
22840  You can find the commands in the 
22841 \family sans
22842 File\SpecialChar menuseparator
22843 Version
22844 \begin_inset space ~
22845 \end_inset
22846
22847 Control
22848 \family default
22849  submenu.
22850  Please note that if you use password protected access to repository via
22851  ssh, you will be asked in terminal window.
22852  \SpecialChar LyX
22853  was tested against GIT 1.7.
22854 \begin_inset Foot
22855 status collapsed
22856
22857 \begin_layout Plain Layout
22858 Windows users please note that you need to ensure that git is on the path.
22859  This can be set from within \SpecialChar LyX
22860  at 
22861 \family sans
22862 Tools\SpecialChar menuseparator
22863 Preferences\SpecialChar menuseparator
22864 Paths\SpecialChar menuseparator
22865 PATH prefix
22866 \family default
22867 .
22868 \end_layout
22869
22870 \end_inset
22871
22872
22873 \end_layout
22874
22875 \begin_layout Standard
22876 One big difference of GIT and the other supported version control systems
22877  is the distributed nature of GIT: With traditional version control systems
22878  there is one central server which hosts the repository.
22879  Users commit their changes to the server, and get updates made by other
22880  users from it.
22881  With GIT, users commit to a local repository.
22882  The local repository can be synchronized with one or more remote repositories
22883  using the 
22884 \begin_inset Flex Code
22885 status collapsed
22886
22887 \begin_layout Plain Layout
22888 pull
22889 \end_layout
22890
22891 \end_inset
22892
22893  and 
22894 \begin_inset Flex Code
22895 status collapsed
22896
22897 \begin_layout Plain Layout
22898 push
22899 \end_layout
22900
22901 \end_inset
22902
22903  GIT commands.
22904  \SpecialChar LyX
22905  does not interact in any way with remote GIT repositories.
22906  It works exclusively with the local repository in a very similar way as
22907  with a central CVS or SVN repository.
22908  If you use remote GIT repositories you need to do the 
22909 \begin_inset Flex Code
22910 status collapsed
22911
22912 \begin_layout Plain Layout
22913 pull
22914 \end_layout
22915
22916 \end_inset
22917
22918  and 
22919 \begin_inset Flex Code
22920 status collapsed
22921
22922 \begin_layout Plain Layout
22923 push
22924 \end_layout
22925
22926 \end_inset
22927
22928  operations with your favourite GIT client.
22929 \end_layout
22930
22931 \begin_layout Subsubsection
22932
22933 \family sans
22934 Register
22935 \end_layout
22936
22937 \begin_layout Standard
22938 If your document is not under revision control, this is the only item shown
22939  in the menu.
22940  And if it is under revision control, the 
22941 \family sans
22942 Register
22943 \family default
22944  item is not visible.
22945 \end_layout
22946
22947 \begin_layout Standard
22948 This command registers in GIT your document ONLY in case you have already
22949  the documents directory under GIT control (in particular 
22950 \family typewriter
22951 .git/index
22952 \family default
22953  file exists).
22954  This means you have to checkout the archive by yourself.
22955 \end_layout
22956
22957 \begin_layout Standard
22958 Then you are asked interactively to supply an initial description of the
22959  document.
22960  Don't forget that registered file is not yet committed.
22961 \end_layout
22962
22963 \begin_layout Standard
22964 GIT command that is run: 
22965 \family typewriter
22966 git add 
22967 \begin_inset Quotes qld
22968 \end_inset
22969
22970 <file-name>
22971 \begin_inset Quotes qld
22972 \end_inset
22973
22974
22975 \end_layout
22976
22977 \begin_layout Standard
22978 Read 
22979 \family typewriter
22980 man git
22981 \family default
22982  to understand the switches.
22983 \end_layout
22984
22985 \begin_layout Subsubsection
22986
22987 \family sans
22988 Check In Changes
22989 \end_layout
22990
22991 \begin_layout Standard
22992 When you are finished editing a file, you commit your changes.
22993  When you do this, you are asked for a description of the changes.
22994  After that changes are committed.
22995 \end_layout
22996
22997 \begin_layout Standard
22998 GIT command: 
22999 \family typewriter
23000 git commit -q -m"<description>" <file-name>
23001 \end_layout
23002
23003 \begin_layout Subsubsection
23004
23005 \family sans
23006 Revert To Repository Version
23007 \end_layout
23008
23009 \begin_layout Standard
23010 This will discard all changes made to the document since the last check
23011  in.
23012  You get a warning before changes are discarded.
23013 \end_layout
23014
23015 \begin_layout Standard
23016 GIT command: 
23017 \family typewriter
23018 git checkout -q 
23019 \begin_inset Quotes qld
23020 \end_inset
23021
23022 <file-name>
23023 \begin_inset Quotes qld
23024 \end_inset
23025
23026
23027 \end_layout
23028
23029 \begin_layout Subsubsection
23030
23031 \family sans
23032 Rename
23033 \end_layout
23034
23035 \begin_layout Standard
23036 This will rename the current document including the version history.
23037  It requires a clean document without any changes since the last checkin.
23038  You are asked for a file name and a description of the rename operation.
23039  After that the document is renamed, both locally and in the repository.
23040  If the parent directories of the new and old file names differ, all relative
23041  paths of included files are adjusted (like in 
23042 \family sans
23043 File\SpecialChar menuseparator
23044 Save As
23045 \family default
23046 \SpecialChar ldots
23047 ).
23048  Finally, the document is reloaded using the new name.
23049 \end_layout
23050
23051 \begin_layout Labeling
23052 \labelwidthstring 00.00.0000
23053 GIT
23054 \begin_inset space ~
23055 \end_inset
23056
23057 commands: 
23058 \begin_inset space ~
23059 \end_inset
23060
23061
23062 \begin_inset Newline newline
23063 \end_inset
23064
23065
23066 \begin_inset Flex Code
23067 status collapsed
23068
23069 \begin_layout Plain Layout
23070 git mv 
23071 \family typewriter
23072
23073 \begin_inset Quotes qld
23074 \end_inset
23075
23076 <file-name>
23077 \begin_inset Quotes qld
23078 \end_inset
23079
23080  
23081 \begin_inset Quotes qld
23082 \end_inset
23083
23084 <new-file-name>
23085 \begin_inset Quotes qld
23086 \end_inset
23087
23088
23089 \end_layout
23090
23091 \end_inset
23092
23093
23094 \begin_inset Newline newline
23095 \end_inset
23096
23097
23098 \begin_inset Flex Code
23099 status collapsed
23100
23101 \begin_layout Plain Layout
23102 git commit
23103 \end_layout
23104
23105 \end_inset
23106
23107
23108 \end_layout
23109
23110 \begin_layout Subsubsection
23111
23112 \family sans
23113 Show History
23114 \end_layout
23115
23116 \begin_layout Standard
23117 This shows the complete history of the GIT document.
23118  The output of 
23119 \family typewriter
23120 git log 
23121 \begin_inset Quotes qld
23122 \end_inset
23123
23124 <file-name>
23125 \begin_inset Quotes qld
23126 \end_inset
23127
23128
23129 \family default
23130  is shown in a browser.
23131 \end_layout
23132
23133 \begin_layout Subsubsection
23134 Version Info
23135 \end_layout
23136
23137 \begin_layout Standard
23138 \SpecialChar LyX
23139  supports GIT hash number of the last commit to the file, 
23140 \change_inserted 1119979965 1564297456
23141 its abbreviated form, 
23142 \change_unchanged
23143 author name, date and time of last commit.
23144  All those are extracted from 
23145 \family typewriter
23146 git log -n 1 --pretty=format:%H%n
23147 \change_inserted 1119979965 1564297427
23148 %h%n
23149 \change_unchanged
23150 %an%n%ai
23151 \family default
23152 .
23153  Tree version information is obtained via 
23154 \family typewriter
23155 git describe --abbrev --dirty --long
23156 \family default
23157 .
23158  See 
23159 \begin_inset CommandInset ref
23160 LatexCommand ref
23161 reference "subsec:VCS-Revision-Information"
23162
23163 \end_inset
23164
23165  for other details.
23166 \end_layout
23167
23168 \begin_layout Subsection
23169 Further tuning
23170 \end_layout
23171
23172 \begin_layout Standard
23173 With the recent addition of the 
23174 \begin_inset Flex Code
23175 status collapsed
23176
23177 \begin_layout Plain Layout
23178 vc-command
23179 \end_layout
23180
23181 \end_inset
23182
23183  function \SpecialChar LyX
23184  power users are allowed to create their own commands for revision
23185  control.
23186 \end_layout
23187
23188 \begin_layout Standard
23189 As an example you can see how two TortoiseSVN commands could be integrated
23190  directly:
23191 \end_layout
23192
23193 \begin_layout Description
23194 Commit: 
23195 \begin_inset Flex Code
23196 status collapsed
23197
23198 \begin_layout Plain Layout
23199 vc-command DR "." "TortoiseProc /command:commit /path:$$p"
23200 \end_layout
23201
23202 \end_inset
23203
23204
23205 \end_layout
23206
23207 \begin_layout Description
23208 Revert: 
23209 \begin_inset Flex Code
23210 status collapsed
23211
23212 \begin_layout Plain Layout
23213 vc-command DR "." "TortoiseProc /command:revert /path:$$p"
23214 \end_layout
23215
23216 \end_inset
23217
23218
23219 \end_layout
23220
23221 \begin_layout Subsection
23222 Version control and Document comparison
23223 \end_layout
23224
23225 \begin_layout Standard
23226 One of the typical uses of version control is to inspect the changes between
23227  revisions, usually by creating 
23228 \begin_inset Flex Code
23229 status collapsed
23230
23231 \begin_layout Plain Layout
23232 diff
23233 \end_layout
23234
23235 \end_inset
23236
23237  dumps.
23238  While this is useful for plain text files, it is much less useful in the
23239  case of \SpecialChar LyX
23240  files, which have more a complicated structure.
23241  Hence we provide binding to the Document comparison feature.
23242  There are two ways of calling this feature – either by direct call of 
23243 \begin_inset Flex Code
23244 status collapsed
23245
23246 \begin_layout Plain Layout
23247 vc-compare
23248 \end_layout
23249
23250 \end_inset
23251
23252  \SpecialChar LyX
23253  function (for details see \SpecialChar LyX
23254  functions manual) or by the toolbar icon 
23255 \begin_inset Info
23256 type  "icon"
23257 arg   "vc-compare"
23258 \end_inset
23259
23260  or the menu item 
23261 \begin_inset Info
23262 type  "menu"
23263 arg   "vc-compare"
23264 \end_inset
23265
23266 , respectively.
23267  One can either compare two chosen revisions of the document or he can simply
23268  compare the current version of edited text with older revisions (where
23269  '
23270 \begin_inset Flex Noun
23271 status collapsed
23272
23273 \begin_layout Plain Layout
23274 0
23275 \end_layout
23276
23277 \end_inset
23278
23279 ' revisions back means comparison of the edited file with last commited
23280  revision).
23281  
23282 \end_layout
23283
23284 \begin_layout Standard
23285 This feature is supported for SVN and RCS though due to the more complicated
23286  versioning scheme of RCS there is a constraint – when addressing the revisions
23287  in dialog, numbers always point to the last number in RCS revision number,
23288  i.e.
23289  '35' in '1.2.35'.
23290  We don't currently support GIT addressing of revisions, one can just compare
23291  edited document with its revision X steps backs, where X is addressed as
23292  
23293 \begin_inset Flex Code
23294 status collapsed
23295
23296 \begin_layout Plain Layout
23297 HEAD~X
23298 \end_layout
23299
23300 \end_inset
23301
23302 .
23303 \end_layout
23304
23305 \begin_layout Section
23306 Literate Programming
23307 \end_layout
23308
23309 \begin_layout Standard
23310 Updated by 
23311 \noun on
23312 Kayvan Sylvan 
23313 \noun default
23314 (kayvan@sylvan.com)
23315 \noun on
23316
23317 \noun default
23318 original documentation written by 
23319 \noun on
23320 Edmar Wienskoski Jr.
23321
23322 \noun default
23323  (edmar-w-jr@technologist.com)
23324 \end_layout
23325
23326 \begin_layout Subsection
23327 Introduction
23328 \end_layout
23329
23330 \begin_layout Standard
23331 The main purpose of this documentation is to show you how to use \SpecialChar LyX
23332  for literate
23333  programming, where it is assumed that you are familiar with this programming
23334  technique, and know what 
23335 \begin_inset Quotes eld
23336 \end_inset
23337
23338 tangling
23339 \begin_inset Quotes erd
23340 \end_inset
23341
23342  and 
23343 \begin_inset Quotes eld
23344 \end_inset
23345
23346 weaving
23347 \begin_inset Quotes erd
23348 \end_inset
23349
23350  means.
23351  If that is not the case, please follow the web links provided in the following
23352  sections.
23353  There is a lot of good documentation out there covering old development
23354  history to the latest tools tips.
23355 \end_layout
23356
23357 \begin_layout Standard
23358 It is also assumed that you are familiar with \SpecialChar LyX
23359  itself to a point that you
23360  are comfortable changing your \SpecialChar LyX
23361  preferences, and X resources file.
23362  If that is not the case please refer to other \SpecialChar LyX
23363  documentation to cover your
23364  specific needs.
23365 \end_layout
23366
23367 \begin_layout Subsection
23368 Literate Programming
23369 \end_layout
23370
23371 \begin_layout Standard
23372 From the Literate Programming FAQ: 
23373 \end_layout
23374
23375 \begin_layout Quotation
23376 Literate programming is the combination of documentation and source together
23377  in a fashion suited for reading by human beings.
23378  In fact, literate programs should be enjoyable reading, even inviting!
23379  (Sorry Bob, I couldn't resist!) In general, literate programs combine source
23380  and documentation in a single file.
23381  Literate programming tools then parse the file to produce either readable
23382  documentation or compilable source.
23383  The WEB style of literate programming was created by D.
23384 \begin_inset space \thinspace{}
23385 \end_inset
23386
23387 E.
23388  Knuth during the development of his \SpecialChar TeX
23389  typesetting software.
23390  
23391 \end_layout
23392
23393 \begin_layout Standard
23394 Another excerpt says:
23395 \end_layout
23396
23397 \begin_layout Quotation
23398
23399 \emph on
23400 How is literate programming different from verbose commenting?
23401 \end_layout
23402
23403 \begin_layout Quotation
23404 There are three distinguishing characteristics.
23405  In order of importance, they are: 
23406 \end_layout
23407
23408 \begin_deeper
23409 \begin_layout Itemize
23410 flexible order of elaboration 
23411 \end_layout
23412
23413 \begin_layout Itemize
23414 automatic support for browsing 
23415 \end_layout
23416
23417 \begin_layout Itemize
23418 typeset documentation, especially diagrams and mathematics 
23419 \end_layout
23420
23421 \end_deeper
23422 \begin_layout Standard
23423 Now that I sparked your curiosity, take a look in the references.
23424 \end_layout
23425
23426 \begin_layout Subsubsection
23427 References
23428 \end_layout
23429
23430 \begin_layout Standard
23431 The complete Literate Programming FAQ can be found at:
23432 \end_layout
23433
23434 \begin_layout Quote
23435 Literate Programming FAQ 
23436 \begin_inset Flex URL
23437 status open
23438
23439 \begin_layout Plain Layout
23440
23441 http://www.literateprogramming.com/lpfaq.pdf
23442 \end_layout
23443
23444 \end_inset
23445
23446
23447 \end_layout
23448
23449 \begin_layout Standard
23450 The FAQ lists 23 (twenty three!) different literate programming tools.
23451  Where some are specialized or 
23452 \begin_inset Quotes eld
23453 \end_inset
23454
23455 tailored
23456 \begin_inset Quotes erd
23457 \end_inset
23458
23459  for particular programming languages, while other have general scope.
23460  I selected 
23461 \noun on
23462 Noweb
23463 \noun default
23464  for my own use for several reasons:
23465 \end_layout
23466
23467 \begin_layout Itemize
23468 It can generate the documentation either in \SpecialChar LaTeX
23469  or HTML.
23470 \end_layout
23471
23472 \begin_layout Itemize
23473 It has a open architecture, i.
23474 \begin_inset space \thinspace{}
23475 \end_inset
23476
23477 e.
23478 \begin_inset space \space{}
23479 \end_inset
23480
23481 it is easy to plug in new filters
23482 \begin_inset Foot
23483 status collapsed
23484
23485 \begin_layout Plain Layout
23486
23487 \emph on
23488 Filters 
23489 \emph default
23490 are programs that read a given data stream and output a manipulated data
23491  stream.
23492  That way, a WEB file (consisting of literate code) can be turned into a
23493  file consisting only of C program code or \SpecialChar LaTeX
23494  code.
23495 \end_layout
23496
23497 \end_inset
23498
23499  and to perform special processing that you may need.
23500  
23501 \end_layout
23502
23503 \begin_layout Itemize
23504 There is a good selection of filters available already (the HTML is one
23505  of them).
23506 \end_layout
23507
23508 \begin_layout Itemize
23509 It is free.
23510 \end_layout
23511
23512 \begin_layout Standard
23513 The Noweb web page can be found at: 
23514 \end_layout
23515
23516 \begin_layout Quote
23517 Noweb home page 
23518 \begin_inset Flex URL
23519 status collapsed
23520
23521 \begin_layout Plain Layout
23522
23523 https://www.cs.tufts.edu/~nr/noweb/
23524 \end_layout
23525
23526 \end_inset
23527
23528
23529 \end_layout
23530
23531 \begin_layout Standard
23532 Starting from there you can reach many other interesting links and even
23533  some literate program examples.
23534 \end_layout
23535
23536 \begin_layout Subsection
23537 \SpecialChar LyX
23538  and Literate Programming with Noweb
23539 \end_layout
23540
23541 \begin_layout Standard
23542 The \SpecialChar LyX
23543  support for Literate Programming is provided by using the generic \SpecialChar LyX
23544
23545  converters mechanism.
23546  This support is provided in a 
23547 \begin_inset Quotes eld
23548 \end_inset
23549
23550 Noweb independent
23551 \begin_inset Quotes erd
23552 \end_inset
23553
23554  way, i.
23555 \begin_inset space \thinspace{}
23556 \end_inset
23557
23558 e.
23559 \begin_inset space \space{}
23560 \end_inset
23561
23562 you will be able to use this new \SpecialChar LyX
23563  feature with some other literate programming
23564  tool of your choice by just changing your \SpecialChar LyX
23565  preferences.
23566 \end_layout
23567
23568 \begin_layout Subsubsection
23569 Generating documents and code (weaving and tangling)
23570 \end_layout
23571
23572 \begin_layout Paragraph
23573 Using the noweb module
23574 \end_layout
23575
23576 \begin_layout Standard
23577 If you have installed Noweb and \SpecialChar LyX
23578  successfully, whenever you open a new document,
23579  after you have chosen its document class, use the 
23580 \family sans
23581 Document\SpecialChar menuseparator
23582 Settings
23583 \family default
23584  menu to add the 
23585 \begin_inset Quotes eld
23586 \end_inset
23587
23588 noweb
23589 \begin_inset Quotes erd
23590 \end_inset
23591
23592  module.
23593  If Noweb is correctly installed, when you click on the 
23594 \begin_inset Quotes eld
23595 \end_inset
23596
23597 Modules
23598 \begin_inset Quotes erd
23599 \end_inset
23600
23601  link, you will see the 
23602 \begin_inset Quotes eld
23603 \end_inset
23604
23605 noweb
23606 \begin_inset Quotes erd
23607 \end_inset
23608
23609  module in the available list and you can add it to your document.
23610 \end_layout
23611
23612 \begin_layout Paragraph
23613 Typing code in
23614 \end_layout
23615
23616 \begin_layout Standard
23617 \SpecialChar LyX
23618  enables you to write code with a custom inset named 
23619 \begin_inset Flex Noun
23620 status collapsed
23621
23622 \begin_layout Plain Layout
23623 Chunk
23624 \end_layout
23625
23626 \end_inset
23627
23628 .
23629  Noweb delimits chunks like this:
23630 \end_layout
23631
23632 \begin_layout LyX-Code
23633 <<My code>>=
23634 \end_layout
23635
23636 \begin_layout LyX-Code
23637   code
23638 \end_layout
23639
23640 \begin_layout LyX-Code
23641   more code
23642 \end_layout
23643
23644 \begin_layout LyX-Code
23645   even more code
23646 \end_layout
23647
23648 \begin_layout LyX-Code
23649   @
23650 \end_layout
23651
23652 \begin_layout Standard
23653 The problem is that whatever is written in between the << and the 
23654 \family typewriter
23655 @
23656 \family default
23657  must be taken literally, i.
23658 \begin_inset space \thinspace{}
23659 \end_inset
23660
23661 e.
23662 \begin_inset space \space{}
23663 \end_inset
23664
23665 \SpecialChar LyX
23666  should be prevented from making any special interpretation of what has
23667  been written.
23668  This is also handled by 
23669 \begin_inset Flex Noun
23670 status collapsed
23671
23672 \begin_layout Plain Layout
23673 Chunk
23674 \end_layout
23675
23676 \end_inset
23677
23678 , that works like a normal text inset but has a free spacing capability.
23679 \end_layout
23680
23681 \begin_layout Standard
23682 As a special note, you can also use the 
23683 \begin_inset Quotes eld
23684 \end_inset
23685
23686 %def
23687 \begin_inset Quotes erd
23688 \end_inset
23689
23690  construct of Noweb in your chunks to add items to Noweb's identifier cross-refe
23691 rence:
23692 \end_layout
23693
23694 \begin_layout LyX-Code
23695 <<My chunk>>=
23696 \end_layout
23697
23698 \begin_layout LyX-Code
23699 def some_function(args):
23700 \end_layout
23701
23702 \begin_layout LyX-Code
23703    "This is the doc string for this function."
23704 \end_layout
23705
23706 \begin_layout LyX-Code
23707    print "My args: ", args
23708 \end_layout
23709
23710 \begin_layout LyX-Code
23711 @ %def some_function
23712 \end_layout
23713
23714 \begin_layout Standard
23715 For an example of this usage and the resulting cross-reference output, look
23716  at the Literate python program in 
23717 \emph on
23718 LIBDIR/examples/listerrors.lyx
23719 \emph default
23720  which should make this all clear.
23721 \end_layout
23722
23723 \begin_layout Paragraph
23724 Generating the documentation
23725 \end_layout
23726
23727 \begin_layout Standard
23728 At this point you already have a new document file with a proper document
23729  class, and with some code and text on it.
23730  How do I print it? The answer is simple, you select 
23731 \family sans
23732 View\SpecialChar menuseparator
23733 DVI,
23734 \family default
23735  etc.
23736  Just like you would do for a plain document.
23737  No special procedure is required.
23738 \end_layout
23739
23740 \begin_layout Standard
23741 To help orientate you, I will now explain what happens inside \SpecialChar LyX
23742 :
23743 \end_layout
23744
23745 \begin_layout Enumerate
23746 When the 
23747 \family sans
23748 Update\SpecialChar menuseparator
23749 DVI
23750 \family default
23751  menu option is chosen, a \SpecialChar LaTeX
23752  file is generated.
23753  
23754 \end_layout
23755
23756 \begin_deeper
23757 \begin_layout Standard
23758 If the document is of any literate class the generated file will be named
23759  with an extension name defined by the 
23760 \begin_inset Quotes eld
23761 \end_inset
23762
23763 literate
23764 \begin_inset Quotes erd
23765 \end_inset
23766
23767  format (defined in the Preferences panel), otherwise the file will have
23768  the usual 
23769 \family typewriter
23770 .tex
23771 \family default
23772  extension.
23773 \end_layout
23774
23775 \end_deeper
23776 \begin_layout Enumerate
23777 Note that the only difference so far is in the name of the file, no special
23778  processing is required by \SpecialChar LyX
23779 .
23780  Given that you formatted the code using the 
23781 \begin_inset Flex Noun
23782 status collapsed
23783
23784 \begin_layout Plain Layout
23785 Chunk
23786 \end_layout
23787
23788 \end_inset
23789
23790  inset that, by itself, takes care of the business.
23791 \end_layout
23792
23793 \begin_layout Enumerate
23794 If the document is of any literate class \SpecialChar LyX
23795  will then use the internal \SpecialChar LyX
23796  to
23797  Noweb converter, followed by the Noweb to \SpecialChar LaTeX
23798  converter
23799 \begin_inset Foot
23800 status collapsed
23801
23802 \begin_layout Plain Layout
23803 The converters are defined in the 
23804 \family sans
23805 Tools\SpecialChar menuseparator
23806 Preferences
23807 \family default
23808  panel, under the 
23809 \begin_inset Quotes eld
23810 \end_inset
23811
23812 Conversion
23813 \begin_inset Quotes erd
23814 \end_inset
23815
23816  tab.
23817  See section 
23818 \emph on
23819 Converters
23820 \emph default
23821  of the 
23822 \emph on
23823 Customization
23824 \emph default
23825  manual for general information about converters.
23826 \end_layout
23827
23828 \end_inset
23829
23830  to generate the \SpecialChar LaTeX
23831  file.
23832 \end_layout
23833
23834 \begin_deeper
23835 \begin_layout Standard
23836 Otherwise it will just skip this step.
23837 \end_layout
23838
23839 \end_deeper
23840 \begin_layout Enumerate
23841 Finally, \SpecialChar LaTeX
23842  is invoked and the regular post processing continues as in a plain
23843  document.
23844 \end_layout
23845
23846 \begin_layout Standard
23847 Independence from a particular 
23848 \begin_inset Quotes eld
23849 \end_inset
23850
23851 literate tool
23852 \begin_inset Quotes erd
23853 \end_inset
23854
23855  is easily achieved by changing the commands that are run by the various
23856  converters.
23857 \end_layout
23858
23859 \begin_layout Paragraph
23860 Generating the code
23861 \end_layout
23862
23863 \begin_layout Standard
23864 When the build menu option is chosen or the corresponding button in the
23865  toolbar is pressed, a \SpecialChar LaTeX
23866  file is generated just like step 1 above.
23867  Next, \SpecialChar LyX
23868  invokes the 
23869 \family typewriter
23870 Noweb->Program
23871 \family default
23872  converter.
23873  This converter needs to be defined by the user and is not installed by
23874  default, though the Program format is.
23875  This converter (like any other converter) will have two parts:
23876 \end_layout
23877
23878 \begin_layout Enumerate
23879 The converter program itself.
23880  This program performs the conversion from the one format to the other (in
23881  this case, from the Noweb format to the Program pseudo-format).
23882 \end_layout
23883
23884 \begin_layout Enumerate
23885 The error log parser.
23886  This is a program whose sole purpose is to rewrite error messages in a
23887  format that \SpecialChar LyX
23888  understands.
23889  This makes it possible for \SpecialChar LyX
23890  to place error boxes in the right places in
23891  the file buffer.
23892 \end_layout
23893
23894 \begin_layout Standard
23895 The first part, the 
23896 \begin_inset Quotes eld
23897 \end_inset
23898
23899 Converter
23900 \begin_inset Quotes erd
23901 \end_inset
23902
23903  setting, should be set to
23904 \end_layout
23905
23906 \begin_layout LyX-Code
23907
23908 \family typewriter
23909 build-script $$i
23910 \family default
23911  $$r
23912 \end_layout
23913
23914 \begin_layout Standard
23915 This basically means that \SpecialChar LyX
23916  will call 
23917 \begin_inset Quotes eld
23918 \end_inset
23919
23920 build-script
23921 \begin_inset Quotes erd
23922 \end_inset
23923
23924  (a program or script) with the name of the Noweb file (normally a file
23925  in the \SpecialChar LyX
23926  temp directory) and the directory path of the original \SpecialChar LyX
23927  file.
23928  
23929 \end_layout
23930
23931 \begin_layout Standard
23932 This is an implementation of 
23933 \begin_inset Quotes eld
23934 \end_inset
23935
23936 build-script
23937 \begin_inset Quotes erd
23938 \end_inset
23939
23940  that you can place in a directory on your path:
23941 \end_layout
23942
23943 \begin_layout LyX-Code
23944
23945 \family sans
23946 #!/bin/sh
23947 \end_layout
23948
23949 \begin_layout LyX-Code
23950
23951 \family sans
23952 #
23953 \end_layout
23954
23955 \begin_layout LyX-Code
23956
23957 \family sans
23958 notangle -Rbuild-script $1 | env NOWEB_SOURCE=$1 NOWEB_OUTPUT_DIR=$2 sh
23959 \end_layout
23960
23961 \begin_layout Standard
23962 The next part of the converter setting is the 
23963 \begin_inset Quotes eld
23964 \end_inset
23965
23966 Flags
23967 \begin_inset Quotes erd
23968 \end_inset
23969
23970  which is to be set to
23971 \end_layout
23972
23973 \begin_layout LyX-Code
23974
23975 \family typewriter
23976 parselog=$$s/scripts/listerrors
23977 \end_layout
23978
23979 \begin_layout Standard
23980 This will run any errors that are generated by the 
23981 \begin_inset Quotes eld
23982 \end_inset
23983
23984 build-script
23985 \begin_inset Quotes erd
23986 \end_inset
23987
23988  process through the 
23989 \begin_inset Quotes eld
23990 \end_inset
23991
23992 listerrors
23993 \begin_inset Quotes erd
23994 \end_inset
23995
23996  program.
23997 \end_layout
23998
23999 \begin_layout Standard
24000 The build will normally take place in \SpecialChar LyX
24001 's temporary directory, so the files
24002  produced by the conversion will be in that directory.
24003  \SpecialChar LyX
24004  will copy out what it regards as the `main' file, but the 
24005 \family typewriter
24006 Noweb->Program
24007 \family default
24008  conversion may produce several files, and so most of these would then be
24009  deleted when \SpecialChar LyX
24010  was closed.
24011  This is why we pass in the NOWEB_OUTPUT_DIR environment variable so that
24012  the build-script chunk can place the generated files in that location.
24013 \end_layout
24014
24015 \begin_layout Paragraph
24016 Build instructions in the document
24017 \end_layout
24018
24019 \begin_layout Standard
24020 The last piece of the integration between \SpecialChar LyX
24021  and noweb is the 
24022 \begin_inset Quotes eld
24023 \end_inset
24024
24025 build-script
24026 \begin_inset Quotes erd
24027 \end_inset
24028
24029  chunk.
24030  Generally, the instructions for building your program should be embedded
24031  in a chunk of its own.
24032  The noweb-specific 
24033 \begin_inset Quotes eld
24034 \end_inset
24035
24036 build-script
24037 \begin_inset Quotes erd
24038 \end_inset
24039
24040  above uses the notangle command to look for this chunk (called 
24041 \begin_inset Quotes eld
24042 \end_inset
24043
24044 build-script
24045 \begin_inset Quotes erd
24046 \end_inset
24047
24048 ) and runs its contents through 
24049 \begin_inset Quotes eld
24050 \end_inset
24051
24052 sh
24053 \begin_inset Quotes erd
24054 \end_inset
24055
24056 .
24057 \end_layout
24058
24059 \begin_layout Standard
24060 Typically, such a chunk would look something like this:
24061 \end_layout
24062
24063 \begin_layout LyX-Code
24064 <<build-script>>=
24065 \end_layout
24066
24067 \begin_layout LyX-Code
24068 #!/bin/sh
24069 \begin_inset Newline newline
24070 \end_inset
24071
24072 if [ -z "${NOWEB_SOURCE}" ]
24073 \begin_inset Newline newline
24074 \end_inset
24075
24076 then
24077 \end_layout
24078
24079 \begin_layout LyX-Code
24080 NOWEB_SOURCE=myfile.nw
24081 \begin_inset Newline newline
24082 \end_inset
24083
24084 fi
24085 \begin_inset Newline newline
24086 \end_inset
24087
24088 [...
24089  code to extract files ...
24090  use NOWEB_OUTPUT_DIR here ...]
24091 \begin_inset Newline newline
24092 \end_inset
24093
24094 [...
24095  code to compile files ...]
24096 \begin_inset Newline newline
24097 \end_inset
24098
24099 @
24100 \end_layout
24101
24102 \begin_layout Standard
24103 Look in 
24104 \emph on
24105 LIBDIR/examples/listerrors.lyx
24106 \emph default
24107  or in 
24108 \emph on
24109 LIBDIR/examples/Literate.lyx
24110 \emph default
24111  which implement two versions of the 
24112 \begin_inset Quotes eld
24113 \end_inset
24114
24115 listerrors
24116 \begin_inset Quotes erd
24117 \end_inset
24118
24119  program for some illustrations of how all of these pieces go together or
24120  in 
24121 \emph on
24122 LIBDIR/examples/noweb2lyx.lyx.
24123
24124 \emph default
24125  Interestingly, these three files show off the language-indepence of the
24126  \SpecialChar LyX
24127  literate programming support since they are written in Python, C and Perl
24128  respectively.
24129 \end_layout
24130
24131 \begin_layout Subsubsection
24132 Configuring \SpecialChar LyX
24133
24134 \end_layout
24135
24136 \begin_layout Standard
24137 All the Literate Programming support is configured by the 
24138 \family sans
24139 Tools\SpecialChar menuseparator
24140 Preferences
24141 \family default
24142  panel in the 
24143 \begin_inset Quotes eld
24144 \end_inset
24145
24146 File Handling
24147 \begin_inset Quotes erd
24148 \end_inset
24149
24150  tab.
24151  The important parts are:
24152 \end_layout
24153
24154 \begin_layout Description
24155 the
24156 \begin_inset space ~
24157 \end_inset
24158
24159
24160 \begin_inset Quotes eld
24161 \end_inset
24162
24163 NoWeb
24164 \begin_inset Quotes erd
24165 \end_inset
24166
24167
24168 \begin_inset space ~
24169 \end_inset
24170
24171 format Set up via the File Formats tab, this is where the Noweb-specific
24172  pieces are set up.
24173  The 
24174 \family sans
24175 GUI Name
24176 \family default
24177  is set to 
24178 \family typewriter
24179 NoWeb
24180 \family default
24181 , the file extension is set to 
24182 \family typewriter
24183 .nw
24184 \family default
24185 .
24186  This tells \SpecialChar LyX
24187  to create a file with a 
24188 \family typewriter
24189 .nw
24190 \family default
24191  extension in the first step of the conversion process.
24192 \end_layout
24193
24194 \begin_layout Description
24195 the
24196 \begin_inset space ~
24197 \end_inset
24198
24199
24200 \family sans
24201 Program
24202 \family default
24203
24204 \begin_inset space ~
24205 \end_inset
24206
24207 format This is an empty format whose sole purpose is to be the endpoint
24208  of a conversion (which then allows us to set up a converter for it).
24209 \end_layout
24210
24211 \begin_layout Description
24212
24213 \family sans
24214 NoWeb
24215 \family default
24216 ->
24217 \family sans
24218 \SpecialChar LaTeX
24219
24220 \family default
24221  This converter performs the 
24222 \begin_inset Quotes eld
24223 \end_inset
24224
24225 weaving
24226 \begin_inset Quotes erd
24227 \end_inset
24228
24229  of the literate document.
24230  For Noweb, it is set to 
24231 \begin_inset Quotes eld
24232 \end_inset
24233
24234
24235 \family typewriter
24236 noweave -delay -index $$i > $$o
24237 \family default
24238
24239 \begin_inset Quotes erd
24240 \end_inset
24241
24242
24243 \end_layout
24244
24245 \begin_layout Description
24246
24247 \family sans
24248 NoWeb
24249 \family default
24250 ->
24251 \family sans
24252 Program
24253 \family default
24254  This performs the 
24255 \begin_inset Quotes eld
24256 \end_inset
24257
24258 tangling step
24259 \begin_inset Quotes erd
24260 \end_inset
24261
24262 .
24263  As stated above, the Converter is set to 
24264 \begin_inset Quotes eld
24265 \end_inset
24266
24267
24268 \family typewriter
24269 build-script $$i
24270 \family default
24271  $$r
24272 \begin_inset Quotes erd
24273 \end_inset
24274
24275 , with Flags set to
24276 \begin_inset Newline newline
24277 \end_inset
24278
24279
24280 \begin_inset Quotes eld
24281 \end_inset
24282
24283
24284 \family typewriter
24285 parselog=$$s/scripts/listerrors
24286 \family default
24287
24288 \begin_inset Quotes erd
24289 \end_inset
24290
24291 .
24292 \end_layout
24293
24294 \begin_layout Subsubsection
24295 Debug extensions
24296 \end_layout
24297
24298 \begin_layout Standard
24299 There is also a new function implemented in the \SpecialChar LyX
24300  server, the 
24301 \begin_inset Quotes eld
24302 \end_inset
24303
24304 server-goto-file-row" function, to be used with ddd/gdb or other debugger.
24305  
24306 \end_layout
24307
24308 \begin_layout Standard
24309 When debugging code with ddd/gdb, it is possible to invoke a text editor
24310  at the current execution position with a single key stroke.
24311  The default ddd configuration for that is shift-ctrl-V.
24312  It happens that you can define the editor command line invocation in ddd
24313  by accessing the 
24314 \family sans
24315 Edit\SpecialChar menuseparator
24316 Preferences\SpecialChar menuseparator
24317 Helpers
24318 \family default
24319  dialog and changing the "Edit Sources" entry.
24320 \end_layout
24321
24322 \begin_layout Standard
24323 I take advantage of the newly created \SpecialChar LyX
24324  server function and this ddd feature,
24325  and set 
24326 \begin_inset Quotes eld
24327 \end_inset
24328
24329 Edit Sources
24330 \begin_inset Quotes erd
24331 \end_inset
24332
24333  to:
24334 \end_layout
24335
24336 \begin_layout LyX-Code
24337 echo "LYXCMD:monitor:server-goto-file-row:@FILE@ @LINE@" >~/.lyxpipe.in
24338 \end_layout
24339
24340 \begin_layout Standard
24341 With this, whenever you are using ddd and find a point in the program that
24342  you want to edit, you just press shift-ctrl-V (in the ddd window), and
24343  ddd will forward this information to \SpecialChar LyX
24344  through the \SpecialChar LyX
24345  server and then the
24346  \SpecialChar LyX
24347  window will show the same file with the cursor at the same position ddd
24348  was pointing to.
24349  No more guessing or long scrolling to locate a point in the program back
24350  from debugging !
24351 \end_layout
24352
24353 \begin_layout Standard
24354 Note however that you must enable the \SpecialChar LyX
24355  server to get this feature working
24356  (it is disabled by default).
24357  Sec.
24358 \begin_inset space ~
24359 \end_inset
24360
24361
24362 \begin_inset CommandInset ref
24363 LatexCommand ref
24364 reference "sec:Starting-the-Server"
24365
24366 \end_inset
24367
24368  explains how to do that.
24369 \end_layout
24370
24371 \begin_layout Subsubsection
24372 Toolbar extensions
24373 \end_layout
24374
24375 \begin_layout Standard
24376 There are six new buttons that can be added to your \SpecialChar LyX
24377  toolbar.
24378  Four of these buttons are short cuts to layout styles: 
24379 \family sans
24380 Standard
24381 \family default
24382
24383 \family sans
24384 Section
24385 \family default
24386
24387 \family sans
24388 \SpecialChar LaTeX
24389
24390 \family default
24391 , and 
24392 \family sans
24393 \SpecialChar LyX
24394 -Code
24395 \family default
24396 , one for the custom inset 
24397 \family sans
24398 Chunk
24399 \family default
24400 .
24401  The last one is a short cut to the 
24402 \begin_inset Quotes eld
24403 \end_inset
24404
24405 Build Program
24406 \begin_inset Quotes erd
24407 \end_inset
24408
24409  File menu entry.
24410  
24411 \end_layout
24412
24413 \begin_layout Standard
24414 \SpecialChar LyX
24415  has a range of buttons that are available for tool bar customization.
24416  In my toolbar I like to combine the six short cuts above with two more:
24417  One for 
24418 \family sans
24419 Document
24420 \family default
24421 \SpecialChar menuseparator
24422
24423 \family sans
24424 Update
24425 \family default
24426 \SpecialChar menuseparator
24427
24428 \family sans
24429 DVI
24430 \family default
24431  and the other for 
24432 \family sans
24433 Document\SpecialChar menuseparator
24434 View\SpecialChar menuseparator
24435 DVI
24436 \family default
24437  File menu entries.
24438  Here is how it looks like:
24439 \end_layout
24440
24441 \begin_layout LyX-Code
24442 Toolbar
24443 \end_layout
24444
24445 \begin_layout LyX-Code
24446   Layouts
24447 \end_layout
24448
24449 \begin_layout LyX-Code
24450   Icon "layout Standard"
24451 \end_layout
24452
24453 \begin_layout LyX-Code
24454   Icon "layout Section"
24455 \end_layout
24456
24457 \begin_layout LyX-Code
24458   Icon "layout \SpecialChar LaTeX
24459 "
24460 \end_layout
24461
24462 \begin_layout LyX-Code
24463   Icon "layout \SpecialChar LyX
24464 -Code"
24465 \end_layout
24466
24467 \begin_layout LyX-Code
24468   Icon "flex.insert Chunk"
24469 \end_layout
24470
24471 \begin_layout LyX-Code
24472   Separator
24473 \end_layout
24474
24475 \begin_layout LyX-Code
24476   Icon "buffer-view"
24477 \end_layout
24478
24479 \begin_layout LyX-Code
24480   Icon "buffer-typeset"
24481 \end_layout
24482
24483 \begin_layout LyX-Code
24484   Icon "build-program"
24485 \end_layout
24486
24487 \begin_layout LyX-Code
24488   Separator
24489 \end_layout
24490
24491 \begin_layout LyX-Code
24492 .
24493 \end_layout
24494
24495 \begin_layout LyX-Code
24496 .
24497 \end_layout
24498
24499 \begin_layout LyX-Code
24500 .
24501 \end_layout
24502
24503 \begin_layout LyX-Code
24504 End
24505 \end_layout
24506
24507 \begin_layout Subsubsection
24508 Colors customization
24509 \end_layout
24510
24511 \begin_layout Standard
24512 There are a number of colors in \SpecialChar LyX
24513  that can be customized in 
24514 \family sans
24515 Preferences
24516 \family default
24517 .
24518  One of the things that bothers people is the \SpecialChar LaTeX
24519  font color.
24520  The default color is red, since the chunks uses \SpecialChar LaTeX
24521  font, and there is a lot
24522  of chunks in literate documents, you may get tired of seeing everything
24523  in red.
24524  You can change it by going to the tabs 
24525 \family sans
24526 Look&Feel
24527 \family default
24528
24529 \family sans
24530 Colors.
24531 \end_layout
24532
24533 \begin_layout Standard
24534 The next thing is the visible presence of the newline character in the screen.
24535  You can choose the color of this particular character and make it blend
24536  in the background.
24537  I recommend you choosing a color that is close to the background but not
24538  equal, that way you still can see it is there, but it is not bothering
24539  you anymore.
24540 \end_layout
24541
24542 \begin_layout Subsection
24543 \SpecialChar LyX
24544  and knitr/Sweave
24545 \end_layout
24546
24547 \begin_layout Standard
24548 Support for 
24549 \family sans
24550 knitr
24551 \family default
24552  and 
24553 \family sans
24554 Sweave
24555 \family default
24556  is documented in the 
24557 \emph on
24558 knitr.lyx
24559 \emph default
24560  example file and in the Sweave manual (menu 
24561 \family sans
24562 Help\SpecialChar menuseparator
24563 Specific Manuals
24564 \family default
24565 ).
24566 \end_layout
24567
24568 \begin_layout Chapter
24569 Special features
24570 \end_layout
24571
24572 \begin_layout Standard
24573 You can do everything with \SpecialChar LyX
24574  that you can do with \SpecialChar LaTeX
24575 .
24576  However, \SpecialChar LyX
24577  cannot support every \SpecialChar LaTeX
24578  feature directly.
24579  But you can always use \SpecialChar TeX
24580  Code.
24581  This chapter shows you some more special things you might want to use.
24582  For other special things you can do with figures, tables, floats, boxes
24583  and notes, have a look at the 
24584 \emph on
24585 Embedded
24586 \begin_inset space ~
24587 \end_inset
24588
24589 Objects
24590 \emph default
24591  manual.
24592 \end_layout
24593
24594 \begin_layout Section
24595 Multiple Text Columns
24596 \end_layout
24597
24598 \begin_layout Standard
24599 This feature is independent of the option 
24600 \family sans
24601 Two-column document
24602 \family default
24603  in the document settings under 
24604 \family sans
24605 Text Layout
24606 \family default
24607 .
24608  If you want to have 2
24609 \begin_inset space ~
24610 \end_inset
24611
24612 columns for the whole document, it is recommended to use the 
24613 \family sans
24614 Two-column document
24615 \family default
24616  option.
24617  For all other cases use this feature.
24618 \end_layout
24619
24620 \begin_layout Standard
24621 To use multiple text columns in your document, you have to load the module
24622  
24623 \family sans
24624 Multiple Columns
24625 \family default
24626  (menu 
24627 \family sans
24628 Document\SpecialChar menuseparator
24629 Settings\SpecialChar menuseparator
24630 Modules
24631 \family default
24632 ) and must have the \SpecialChar LaTeX
24633 -package 
24634 \begin_inset Flex Code
24635 status collapsed
24636
24637 \begin_layout Plain Layout
24638 multicol
24639 \end_layout
24640
24641 \end_inset
24642
24643  installed.
24644 \end_layout
24645
24646 \begin_layout Standard
24647 Footnotes within multiple columns will be placed at the bottom of the page
24648  and not under each column.
24649  Within the different columns you can use everything, with the limitation
24650  that for floats you need to use the float option 
24651 \family sans
24652 Span columns
24653 \family default
24654 .
24655 \end_layout
24656
24657 \begin_layout Subsection
24658 Basics
24659 \end_layout
24660
24661 \begin_layout Standard
24662 If you want to have 2
24663 \begin_inset space ~
24664 \end_inset
24665
24666 columns in your text, insert a multicolumn inset via the menu 
24667 \family sans
24668 Insert\SpecialChar menuseparator
24669 Custom
24670 \begin_inset space ~
24671 \end_inset
24672
24673 Insets\SpecialChar menuseparator
24674 Multiple
24675 \begin_inset space ~
24676 \end_inset
24677
24678 Columns
24679 \family default
24680  where the columns should start.
24681  Write all text that should be printed in 2
24682 \begin_inset space ~
24683 \end_inset
24684
24685 columns into this inset.
24686 \end_layout
24687
24688 \begin_layout Standard
24689 Here is an example:
24690 \end_layout
24691
24692 \begin_layout Standard
24693 \noindent
24694 \begin_inset Flex Multiple Columns
24695 status open
24696
24697 \begin_layout Plain Layout
24698 \noindent
24699
24700 \series bold
24701 \size small
24702 The Adventure of the Empty House
24703 \series default
24704
24705 \begin_inset Newline newline
24706 \end_inset
24707
24708 by Sir Arthur Conan Doyle
24709 \end_layout
24710
24711 \begin_layout Plain Layout
24712
24713 \size small
24714 It was in the spring of the year 1894 that all London was interested, and
24715  the fashionable world dismayed, by the murder of the Honourable Ronald
24716  Adair under most unusual and inexplicable circumstances.
24717  The public has already learned those particulars of the crime which came
24718  out in the police investigation, but a good deal was suppressed upon that
24719  occasion, since the case for the prosecution was so overwhelmingly strong
24720  that it was not necessary to bring forward all the facts.
24721  Only now, at the end of nearly ten years, am I allowed to supply those
24722  missing links which make up the whole of that remarkable chain.
24723  The crime was of interest in itself, but that interest was as nothing to
24724  me compared to the inconceivable sequel, which afforded me the greatest
24725  shock and surprise of any event in my adventurous life.
24726  Even now, after this long interval, I find myself thrilling as I think
24727  of it, and feeling once more that sudden flood of joy, amazement, and increduli
24728 ty which utterly submerged my mind.
24729  Let me say to that public, which has shown some interest in those glimpses
24730  which I have occasionally given them of the thoughts and actions of a very
24731  remarkable man, that they are not to blame me if I have not shared my knowledge
24732  with them, for I should have considered it my first duty to do so, had
24733  I not been barred by a positive prohibition from his own lips, which was
24734  only withdrawn upon the third of last month.
24735 \end_layout
24736
24737 \end_inset
24738
24739
24740 \end_layout
24741
24742 \begin_layout Standard
24743 To get 3 or more columns, set the cursor into the multicolumn inset and
24744  use the menu 
24745 \family sans
24746 Insert\SpecialChar menuseparator
24747 Number
24748 \begin_inset space ~
24749 \end_inset
24750
24751 of
24752 \begin_inset space ~
24753 \end_inset
24754
24755 Columns
24756 \family default
24757 .
24758  The number of the desired columns is written into that inset (for 3
24759 \begin_inset space ~
24760 \end_inset
24761
24762 columns write 
24763 \begin_inset Quotes eld
24764 \end_inset
24765
24766 3
24767 \begin_inset Quotes erd
24768 \end_inset
24769
24770 ).
24771 \begin_inset Newline newline
24772 \end_inset
24773
24774 Here is an example with 3
24775 \begin_inset space ~
24776 \end_inset
24777
24778 columns:
24779 \end_layout
24780
24781 \begin_layout Standard
24782 \begin_inset Flex Multiple Columns
24783 status open
24784
24785 \begin_layout Plain Layout
24786
24787 \size footnotesize
24788 \begin_inset Argument 1
24789 status open
24790
24791 \begin_layout Plain Layout
24792
24793 3
24794 \end_layout
24795
24796 \end_inset
24797
24798 It can be imagined that my close intimacy with Sherlock Holmes had interested
24799  me deeply in crime, and that after his disappearance I never failed to
24800  read with care the various problems which came before the public.
24801  And I even attempted, more than once, for my own private satisfaction,
24802  to employ his methods in their solution, though with indifferent success.
24803  There was none, however, which appealed to me like this tragedy of Ronald
24804  Adair.
24805  As I read the evidence at the inquest, which led up to a verdict of willful
24806  murder against some person or persons unknown, I realized more clearly
24807  than I had ever done the loss which the community had sustained by the
24808  death of Sherlock Holmes.
24809  There were points about this strange business which would, I was sure,
24810  have specially appealed to him, and the efforts of the police would have
24811  been supplemented, or more probably anticipated, by the trained observation
24812  and the alert mind of the first criminal agent in Europe.
24813  All day, as I drove upon my round, I turned over the case in my mind and
24814  found no explanation which appeared to me to be adequate.
24815  At the risk of telling a twice-told tale, I will recapitulate the facts
24816  as they were known to the public at the conclusion of the inquest.
24817 \end_layout
24818
24819 \end_inset
24820
24821
24822 \end_layout
24823
24824 \begin_layout Standard
24825 You can have up to 10
24826 \begin_inset space ~
24827 \end_inset
24828
24829 columns if you want to, but that might not be very pleasant for the readers
24830  of your document.
24831 \end_layout
24832
24833 \begin_layout Standard
24834 \begin_inset Newpage newpage
24835 \end_inset
24836
24837
24838 \end_layout
24839
24840 \begin_layout Subsection
24841 Columns inside Columns
24842 \end_layout
24843
24844 \begin_layout Standard
24845 You can also have columns inside columns:
24846 \end_layout
24847
24848 \begin_layout Standard
24849 \begin_inset Flex Multiple Columns
24850 status open
24851
24852 \begin_layout Plain Layout
24853
24854 \size footnotesize
24855 The Honourable Ronald Adair was the second son of the Earl of Maynooth,
24856  at that time governor of one of the Australian colonies.
24857  Adair's mother had returned from Australia to undergo the operation for
24858  cataract, and she, her son Ronald, and her daughter Hilda were living together
24859  at 427 Park Lane.
24860 \end_layout
24861
24862 \begin_layout Plain Layout
24863 \begin_inset Flex Multiple Columns
24864 status open
24865
24866 \begin_layout Plain Layout
24867
24868 \size footnotesize
24869 The youth moved in the best society
24870 \begin_inset space ~
24871 \end_inset
24872
24873 – had, so far as was known, no enemies and no particular vices.
24874  He had been engaged to Miss Edith Woodley, of Carstairs, but the engagement
24875  had been broken off by mutual consent some months before, and there was
24876  no sign that it had left any very profound feeling behind it.
24877  For the rest {sic} the man's life moved in a narrow and conventional circle,
24878  for his habits were quiet and his nature unemotional.
24879  Yet it was upon this easy-going young aristocrat that death came, in most
24880  strange and unexpected form, between the hours of ten and eleven-twenty
24881  on the night of March 30, 1894.
24882 \end_layout
24883
24884 \end_inset
24885
24886
24887 \end_layout
24888
24889 \begin_layout Plain Layout
24890
24891 \size footnotesize
24892 Ronald Adair was fond of cards
24893 \begin_inset space ~
24894 \end_inset
24895
24896 – playing continually, but never for such stakes as would hurt him.
24897  He was a member of the Baldwin, the Cavendish, and the Bagatelle card clubs.
24898  It was shown that, after dinner on the day of his death, he had played
24899  a rubber of whist at the latter club.
24900  He had also played there in the afternoon.
24901
24902 \size default
24903  
24904 \size footnotesize
24905 The evidence of those who had played with him
24906 \begin_inset space ~
24907 \end_inset
24908
24909 – Mr.
24910  Murray, Sir John Hardy, and Colonel Moran
24911 \begin_inset space ~
24912 \end_inset
24913
24914 – showed that the game was whist, and that there was a fairly equal fall
24915  of the cards.
24916  Adair might have lost five pounds, but not more.
24917  His fortune was a considerable one, and such a loss could not in any way
24918  affect him.
24919  He had played nearly every day at one club or other, but he was a cautious
24920  player, and usually rose a winner.
24921  It came out in evidence that, in partnership with Colonel Moran, he had
24922  actually won as much as four hundred and twenty pounds in a sitting, some
24923  weeks before, from Godfrey Milner and Lord Balmoral.
24924  So much for his recent history as it came out at the inquest.
24925 \end_layout
24926
24927 \end_inset
24928
24929
24930 \end_layout
24931
24932 \begin_layout Subsection
24933 Advanced Examples
24934 \end_layout
24935
24936 \begin_layout Standard
24937 The examples in this section show some more special features of multiple
24938  columns.
24939 \end_layout
24940
24941 \begin_layout Standard
24942 For more features of multiple columns, have a look at the 
24943 \begin_inset CommandInset href
24944 LatexCommand href
24945 name "documentation"
24946 target "http://mirror.ctan.org/macros/latex/required/tools/multicol.pdf"
24947 literal "false"
24948
24949 \end_inset
24950
24951  of the \SpecialChar LaTeX
24952 -package 
24953 \begin_inset Flex Code
24954 status collapsed
24955
24956 \begin_layout Plain Layout
24957 multicol
24958 \end_layout
24959
24960 \end_inset
24961
24962 .
24963 \end_layout
24964
24965 \begin_layout Subsubsection
24966 Preface
24967 \end_layout
24968
24969 \begin_layout Standard
24970 To add a preface text for multiple columns, set the cursor into the multicolumn
24971  inset and use the menu 
24972 \family sans
24973 Insert\SpecialChar menuseparator
24974 Preface
24975 \family default
24976 .
24977  Write your preface text into that inset.
24978 \begin_inset Newline newline
24979 \end_inset
24980
24981 This is an example with some preface text:
24982 \end_layout
24983
24984 \begin_layout Standard
24985 \begin_inset VSpace bigskip
24986 \end_inset
24987
24988
24989 \end_layout
24990
24991 \begin_layout Standard
24992 \begin_inset Flex Multiple Columns
24993 status open
24994
24995 \begin_layout Plain Layout
24996 \begin_inset Argument 2
24997 status open
24998
24999 \begin_layout Plain Layout
25000 And the story continues and continues and continues and continues\SpecialChar ldots
25001
25002 \end_layout
25003
25004 \end_inset
25005
25006
25007 \size small
25008 On the evening of the crime, he returned from the club exactly at ten.
25009  His mother and sister were out spending the evening with a relation.
25010  The servant deposed that she heard him enter the front room on the second
25011  floor, generally used as his sitting-room.
25012  She had lit a fire there, and as it smoked she had opened the window.
25013  No sound was heard from the room until eleven-twenty, the hour of the return
25014  of Lady Maynooth and her daughter.
25015  Desiring to say good-night, she attempted to enter her son's room.
25016  The door was locked on the inside, and no answer could be got to their
25017  cries and knocking.
25018  Help was obtained, and the door forced.
25019  The unfortunate young man was found lying near the table.
25020  His head had been horribly mutilated by an expanding revolver bullet, but
25021  no weapon of any sort was to be found in the room.
25022 \end_layout
25023
25024 \end_inset
25025
25026
25027 \end_layout
25028
25029 \begin_layout Standard
25030 You can also use a section heading as the preface if you use a section command
25031  as \SpecialChar TeX
25032  Code.
25033  For example the command
25034 \end_layout
25035
25036 \begin_layout LyX-Code
25037
25038 \backslash
25039 subsection{subsection title}
25040 \end_layout
25041
25042 \begin_layout Standard
25043 creates a subsection.
25044  In this example the preface is a subsubsection:
25045 \end_layout
25046
25047 \begin_layout Standard
25048 \begin_inset Flex Multiple Columns
25049 status open
25050
25051 \begin_layout Plain Layout
25052 \begin_inset Argument 2
25053 status open
25054
25055 \begin_layout Plain Layout
25056 \begin_inset ERT
25057 status collapsed
25058
25059 \begin_layout Plain Layout
25060
25061
25062 \backslash
25063 subsubsection{
25064 \end_layout
25065
25066 \end_inset
25067
25068 This is a subsubsection heading as a preface
25069 \begin_inset ERT
25070 status collapsed
25071
25072 \begin_layout Plain Layout
25073
25074 }
25075 \end_layout
25076
25077 \end_inset
25078
25079
25080 \end_layout
25081
25082 \end_inset
25083
25084
25085 \size small
25086 A minute examination of the circumstances served only to make the case more
25087  complex.
25088  In the first place, no reason could be given why the young man should have
25089  fastened the door upon the inside.
25090  There was the possibility that the murderer had done this, and had afterwards
25091  escaped by the window.
25092  The drop was at least twenty feet, however, and a bed of crocuses in full
25093  bloom lay beneath.
25094  Neither the flowers nor the earth showed any sign of having been disturbed,
25095  nor were there any marks upon the narrow strip of grass which separated
25096  the house from the road.
25097  Apparently, therefore, it was the young man himself who had fastened the
25098  door.
25099  But how did he come by his death? No one could have climbed up to the window
25100  without leaving traces.
25101  Suppose a man had fired through the window, he would indeed be a remarkable
25102  shot who could with a revolver inflict so deadly a wound.
25103  Again, Park Lane is a frequented thoroughfare; there is a cab stand within
25104  a hundred yards of the house.
25105  No one had heard a shot.
25106 \end_layout
25107
25108 \end_inset
25109
25110
25111 \end_layout
25112
25113 \begin_layout Standard
25114 If there is less vertical space than 6
25115 \begin_inset space ~
25116 \end_inset
25117
25118 text lines is left on the page at the beginning of the multiple columns,
25119  a page break will be inserted before the multiple columns.
25120  Depending on the number of lines of the preface text, you might want to
25121  change this space.
25122  This is done by setting the cursor into the mulitcolumn inset behind the
25123  preface (if there is any) and using the menu 
25124 \family sans
25125 Insert\SpecialChar menuseparator
25126 Space
25127 \begin_inset space ~
25128 \end_inset
25129
25130 Before
25131 \begin_inset space ~
25132 \end_inset
25133
25134 Page
25135 \begin_inset space ~
25136 \end_inset
25137
25138 Break
25139 \family default
25140 .
25141  Insert into that inset the amount of space like e.
25142 \begin_inset space \thinspace{}
25143 \end_inset
25144
25145 g.
25146 \begin_inset space \space{}
25147 \end_inset
25148
25149
25150 \begin_inset Quotes eld
25151 \end_inset
25152
25153 5cm
25154 \begin_inset Quotes erd
25155 \end_inset
25156
25157 .
25158 \begin_inset Newline newline
25159 \end_inset
25160
25161 In this example the space is set to 7
25162 \begin_inset space ~
25163 \end_inset
25164
25165 text lines by using 
25166 \begin_inset Flex Code
25167 status collapsed
25168
25169 \begin_layout Plain Layout
25170 7
25171 \backslash
25172 baselineskip
25173 \end_layout
25174
25175 \end_inset
25176
25177  (where the command 
25178 \begin_inset Flex Code
25179 status collapsed
25180
25181 \begin_layout Plain Layout
25182
25183 \backslash
25184 baselineskip
25185 \end_layout
25186
25187 \end_inset
25188
25189  needs to be inserted as \SpecialChar TeX
25190  code):
25191 \end_layout
25192
25193 \begin_layout Standard
25194 \begin_inset Flex Multiple Columns
25195 status open
25196
25197 \begin_layout Plain Layout
25198 \begin_inset Argument 3
25199 status open
25200
25201 \begin_layout Plain Layout
25202 7
25203 \begin_inset ERT
25204 status collapsed
25205
25206 \begin_layout Plain Layout
25207
25208
25209 \backslash
25210 baselineskip
25211 \end_layout
25212
25213 \end_inset
25214
25215
25216 \end_layout
25217
25218 \end_inset
25219
25220
25221 \size small
25222 On the evening of the crime, he returned from the club exactly at ten.
25223  His mother and sister were out spending the evening with a relation.
25224  The servant deposed that she heard him enter the front room on the second
25225  floor, generally used as his sitting-room.
25226  She had lit a fire there, and as it smoked she had opened the window.
25227  No sound was heard from the room until eleven-twenty, the hour of the return
25228  of Lady Maynooth and her daughter.
25229  Desiring to say good-night, she attempted to enter her son's room.
25230  The door was locked on the inside, and no answer could be got to their
25231  cries and knocking.
25232  Help was obtained, and the door forced.
25233  The unfortunate young man was found lying near the table.
25234  His head had been horribly mutilated by an expanding revolver bullet, but
25235  no weapon of any sort was to be found in the room.
25236 \end_layout
25237
25238 \end_inset
25239
25240
25241 \end_layout
25242
25243 \begin_layout Subsubsection
25244 Surrounding Space
25245 \end_layout
25246
25247 \begin_layout Standard
25248 The amount of space before and after multiple columns can be changed by
25249  changing the length 
25250 \begin_inset Flex Code
25251 status collapsed
25252
25253 \begin_layout Plain Layout
25254
25255 \backslash
25256 multicolsep
25257 \end_layout
25258
25259 \end_inset
25260
25261 .
25262  For example the command
25263 \end_layout
25264
25265 \begin_layout LyX-Code
25266
25267 \backslash
25268 setlength{
25269 \backslash
25270 multicolsep}{3cm}
25271 \end_layout
25272
25273 \begin_layout Standard
25274 in \SpecialChar TeX
25275  Code changes its value to 3
25276 \begin_inset space \thinspace{}
25277 \end_inset
25278
25279 cm.
25280  The change must be made before the multiple columns' start.
25281  The predefined value is 13
25282 \begin_inset space \thinspace{}
25283 \end_inset
25284
25285 pt.
25286 \end_layout
25287
25288 \begin_layout Standard
25289 For this example 
25290 \begin_inset Flex Code
25291 status collapsed
25292
25293 \begin_layout Plain Layout
25294
25295 \backslash
25296 multicolsep
25297 \end_layout
25298
25299 \end_inset
25300
25301  was set to 2.5
25302 \begin_inset space \thinspace{}
25303 \end_inset
25304
25305 cm:
25306 \end_layout
25307
25308 \begin_layout Standard
25309 \begin_inset ERT
25310 status open
25311
25312 \begin_layout Plain Layout
25313
25314
25315 \backslash
25316 setlength{
25317 \backslash
25318 multicolsep}{2.5cm}
25319 \end_layout
25320
25321 \end_inset
25322
25323
25324 \end_layout
25325
25326 \begin_layout Standard
25327 \begin_inset Flex Multiple Columns
25328 status open
25329
25330 \begin_layout Plain Layout
25331
25332 \size small
25333 All day I turned these facts over in my mind, endeavouring to hit upon some
25334  theory which could reconcile them all, and to find that line of least resistanc
25335 e which my poor friend had declared to be the starting-point of every investigat
25336 ion.
25337  I confess that I made little progress.
25338  In the evening I strolled across the Park, and found myself about six o'clock
25339  at the Oxford Street end of Park Lane.
25340  A group of loafers upon the pavements, all staring up at a particular window,
25341  directed me to the house which I had come to see.
25342  A tall, thin man with coloured glasses, whom I strongly suspected of being
25343  a plain-clothes detective, was pointing out some theory of his own, while
25344  the others crowded round to listen to what he said.
25345  I got as near him as I could, but his observations seemed to me to be absurd,
25346  so I withdrew again in some disgust.
25347  As I did so I struck against an elderly, deformed man, who had been behind
25348  me, and I knocked down several books which he was carrying.
25349 \end_layout
25350
25351 \end_inset
25352
25353
25354 \end_layout
25355
25356 \begin_layout Standard
25357 \begin_inset Note Greyedout
25358 status open
25359
25360 \begin_layout Plain Layout
25361
25362 \series bold
25363 Note:
25364 \series default
25365  The values you set with 
25366 \begin_inset Flex Code
25367 status collapsed
25368
25369 \begin_layout Plain Layout
25370
25371 \backslash
25372 setlength
25373 \end_layout
25374
25375 \end_inset
25376
25377  will be used for all following multiple columns until you change them again.
25378 \end_layout
25379
25380 \end_inset
25381
25382
25383 \end_layout
25384
25385 \begin_layout Standard
25386 \begin_inset ERT
25387 status collapsed
25388
25389 \begin_layout Plain Layout
25390
25391
25392 \backslash
25393 setlength{
25394 \backslash
25395 multicolsep}{13pt}
25396 \end_layout
25397
25398 \end_inset
25399
25400
25401 \begin_inset Note Note
25402 status collapsed
25403
25404 \begin_layout Plain Layout
25405 go back to the default
25406 \end_layout
25407
25408 \end_inset
25409
25410
25411 \end_layout
25412
25413 \begin_layout Standard
25414 \begin_inset Newpage newpage
25415 \end_inset
25416
25417
25418 \end_layout
25419
25420 \begin_layout Subsubsection
25421 Column Breaks
25422 \end_layout
25423
25424 \begin_layout Standard
25425 A column break can be forced by inserting the command 
25426 \begin_inset Flex Code
25427 status collapsed
25428
25429 \begin_layout Plain Layout
25430
25431 \backslash
25432 columnbreak{}
25433 \end_layout
25434
25435 \end_inset
25436
25437  as \SpecialChar TeX
25438  Code to that position in the text where the column should be broken.
25439  Note that this leads in most cases to whitespace in the text.
25440 \begin_inset Newline newline
25441 \end_inset
25442
25443 Here is an example:
25444 \end_layout
25445
25446 \begin_layout Standard
25447 \begin_inset Flex Multiple Columns
25448 status open
25449
25450 \begin_layout Plain Layout
25451
25452 \size small
25453 \begin_inset Quotes eld
25454 \end_inset
25455
25456 You're surprised to see me, sir,
25457 \begin_inset Quotes erd
25458 \end_inset
25459
25460  said he, in a strange, croaking voice.
25461 \end_layout
25462
25463 \begin_layout Plain Layout
25464
25465 \size small
25466 I acknowledged that I was.
25467 \end_layout
25468
25469 \begin_layout Plain Layout
25470
25471 \size small
25472 \begin_inset Quotes eld
25473 \end_inset
25474
25475 Well, I've a conscience, sir, and when I chanced to see you go into this
25476  house, as I came hobbling after you, I thought to myself, I'll just step
25477  in and see that kind gentleman, and tell him that if I was a bit gruff
25478  in my manner there was not any harm meant, and that I am much obliged to
25479  him for picking up my books.
25480 \begin_inset Quotes erd
25481 \end_inset
25482
25483
25484 \end_layout
25485
25486 \begin_layout Plain Layout
25487
25488 \size small
25489 \begin_inset Quotes eld
25490 \end_inset
25491
25492 You make too much of a trifle,
25493 \begin_inset Quotes erd
25494 \end_inset
25495
25496  said I.
25497  
25498 \begin_inset Quotes eld
25499 \end_inset
25500
25501 May I ask how you knew who I was?
25502 \begin_inset Quotes erd
25503 \end_inset
25504
25505  AFTER THIS SENTENCE THE COLUMN BREAK IS FORCED.
25506 \begin_inset ERT
25507 status collapsed
25508
25509 \begin_layout Plain Layout
25510
25511
25512 \backslash
25513 columnbreak{}
25514 \end_layout
25515
25516 \end_inset
25517
25518
25519 \end_layout
25520
25521 \begin_layout Plain Layout
25522
25523 \size small
25524 \begin_inset Quotes eld
25525 \end_inset
25526
25527 Well, sir, if it isn't too great a liberty, I am a neighbour of yours, for
25528  you'll find my little bookshop at the corner of Church Street, and very
25529  happy to see you, I am sure.
25530  Maybe you collect yourself, sir.
25531  Here's 
25532 \noun on
25533 British
25534 \begin_inset space ~
25535 \end_inset
25536
25537 Birds
25538 \noun default
25539 , and 
25540 \noun on
25541 Catullus
25542 \noun default
25543 , and 
25544 \noun on
25545 The Holy War
25546 \noun default
25547
25548 \begin_inset space ~
25549 \end_inset
25550
25551 – a bargain, every one of them.
25552  With five volumes you could just fill that gap on that second shelf.
25553  It looks untidy, does it not, sir?
25554 \begin_inset Quotes erd
25555 \end_inset
25556
25557
25558 \end_layout
25559
25560 \end_inset
25561
25562
25563 \end_layout
25564
25565 \begin_layout Subsubsection
25566 Column Separation
25567 \end_layout
25568
25569 \begin_layout Standard
25570 The width of the columns is automatically calculated, but you can modify
25571  the space between the columns.
25572  This is done by changing the length 
25573 \begin_inset Flex Code
25574 status collapsed
25575
25576 \begin_layout Plain Layout
25577
25578 \backslash
25579 columnsep
25580 \end_layout
25581
25582 \end_inset
25583
25584 .
25585  Its predefined value is 10
25586 \begin_inset space \thinspace{}
25587 \end_inset
25588
25589 pt.
25590  Here is an example where 
25591 \begin_inset Flex Code
25592 status collapsed
25593
25594 \begin_layout Plain Layout
25595
25596 \backslash
25597 columnsep
25598 \end_layout
25599
25600 \end_inset
25601
25602  is set to 3
25603 \begin_inset space \thinspace{}
25604 \end_inset
25605
25606 cm:
25607 \end_layout
25608
25609 \begin_layout Standard
25610 \begin_inset ERT
25611 status open
25612
25613 \begin_layout Plain Layout
25614
25615
25616 \backslash
25617 setlength{
25618 \backslash
25619 columnsep}{3cm}
25620 \end_layout
25621
25622 \end_inset
25623
25624
25625 \end_layout
25626
25627 \begin_layout Standard
25628 \begin_inset Flex Multiple Columns
25629 status open
25630
25631 \begin_layout Plain Layout
25632
25633 \size small
25634 My observations of No.
25635 \begin_inset space \space{}
25636 \end_inset
25637
25638 427 Park Lane did little to clear up the problem in which I was interested.
25639  The house was separated from the street by a low wall and railing, the
25640  whole not more than five feet high.
25641  It was perfectly easy, therefore, for anyone to get into the garden, but
25642  the window was entirely inaccessible, since there was no water pipe or
25643  anything which could help the most active man to climb it.
25644  More puzzled than ever, I retraced my steps to Kensington.
25645  I had not been in my study five minutes when the maid entered to say that
25646  a person desired to see me.
25647  To my astonishment it was none other than my strange old book collector,
25648  his sharp, wizened face peering out from a frame of white hair, and his
25649  precious volumes, a dozen of them at least, wedged under his right arm.
25650 \end_layout
25651
25652 \end_inset
25653
25654
25655 \end_layout
25656
25657 \begin_layout Standard
25658 \begin_inset ERT
25659 status collapsed
25660
25661 \begin_layout Plain Layout
25662
25663
25664 \backslash
25665 setlength{
25666 \backslash
25667 columnsep}{10pt}
25668 \end_layout
25669
25670 \end_inset
25671
25672
25673 \begin_inset Note Note
25674 status collapsed
25675
25676 \begin_layout Plain Layout
25677 go back to the default
25678 \end_layout
25679
25680 \end_inset
25681
25682
25683 \end_layout
25684
25685 \begin_layout Subsubsection
25686 Vertical Lines
25687 \end_layout
25688
25689 \begin_layout Standard
25690 Between the columns a rule with a width of the length 
25691 \begin_inset Flex Code
25692 status collapsed
25693
25694 \begin_layout Plain Layout
25695
25696 \backslash
25697 columnseprule
25698 \end_layout
25699
25700 \end_inset
25701
25702  is placed.
25703  If this rule width is set to 0
25704 \begin_inset space \thinspace{}
25705 \end_inset
25706
25707 pt (this is the default), the rule is suppressed.
25708  In the following example the rule is 2
25709 \begin_inset space \thinspace{}
25710 \end_inset
25711
25712 pt wide:
25713 \end_layout
25714
25715 \begin_layout Standard
25716 \begin_inset ERT
25717 status open
25718
25719 \begin_layout Plain Layout
25720
25721
25722 \backslash
25723 setlength{
25724 \backslash
25725 columnseprule}{2pt}
25726 \end_layout
25727
25728 \end_inset
25729
25730
25731 \end_layout
25732
25733 \begin_layout Standard
25734 \begin_inset Flex Multiple Columns
25735 status open
25736
25737 \begin_layout Plain Layout
25738
25739 \size small
25740 \begin_inset Quotes eld
25741 \end_inset
25742
25743 You're surprised to see me, sir,
25744 \begin_inset Quotes erd
25745 \end_inset
25746
25747  said he, in a strange, croaking voice.
25748 \end_layout
25749
25750 \begin_layout Plain Layout
25751
25752 \size small
25753 I acknowledged that I was.
25754 \end_layout
25755
25756 \begin_layout Plain Layout
25757
25758 \size small
25759 \begin_inset Quotes eld
25760 \end_inset
25761
25762 Well, I've a conscience, sir, and when I chanced to see you go into this
25763  house, as I came hobbling after you, I thought to myself, I'll just step
25764  in and see that kind gentleman, and tell him that if I was a bit gruff
25765  in my manner there was not any harm meant, and that I am much obliged to
25766  him for picking up my books.
25767 \begin_inset Quotes erd
25768 \end_inset
25769
25770
25771 \end_layout
25772
25773 \begin_layout Plain Layout
25774
25775 \size small
25776 \begin_inset Quotes eld
25777 \end_inset
25778
25779 You make too much of a trifle,
25780 \begin_inset Quotes erd
25781 \end_inset
25782
25783  said I.
25784  
25785 \begin_inset Quotes eld
25786 \end_inset
25787
25788 May I ask how you knew who I was?
25789 \begin_inset Quotes erd
25790 \end_inset
25791
25792
25793 \end_layout
25794
25795 \begin_layout Plain Layout
25796
25797 \size small
25798 \begin_inset Quotes eld
25799 \end_inset
25800
25801 Well, sir, if it isn't too great a liberty, I am a neighbour of yours, for
25802  you'll find my little bookshop at the corner of Church Street, and very
25803  happy to see you, I am sure.
25804  Maybe you collect yourself, sir.
25805  Here's 
25806 \noun on
25807 British
25808 \begin_inset space ~
25809 \end_inset
25810
25811 Birds
25812 \noun default
25813 , and 
25814 \noun on
25815 Catullus
25816 \noun default
25817 , and 
25818 \noun on
25819 The Holy War
25820 \noun default
25821
25822 \begin_inset space ~
25823 \end_inset
25824
25825 – a bargain, every one of them.
25826  With five volumes you could just fill that gap on that second shelf.
25827  It looks untidy, does it not, sir?
25828 \begin_inset Quotes erd
25829 \end_inset
25830
25831
25832 \end_layout
25833
25834 \end_inset
25835
25836
25837 \end_layout
25838
25839 \begin_layout Standard
25840 \begin_inset VSpace defskip
25841 \end_inset
25842
25843
25844 \end_layout
25845
25846 \begin_layout Standard
25847 The rule can be colored by redefining the command 
25848 \begin_inset Flex Code
25849 status collapsed
25850
25851 \begin_layout Plain Layout
25852
25853 \backslash
25854 columnseprulecolor
25855 \end_layout
25856
25857 \end_inset
25858
25859 .
25860  This is done by inserting the command
25861 \end_layout
25862
25863 \begin_layout LyX-Code
25864
25865 \backslash
25866 renewcommand{
25867 \backslash
25868 columnseprulecolor}{
25869 \backslash
25870 color{red}}
25871 \end_layout
25872
25873 \begin_layout Standard
25874 as \SpecialChar TeX
25875  Code before the multicolumn inset.
25876  Replace 
25877 \begin_inset Flex Code
25878 status collapsed
25879
25880 \begin_layout Plain Layout
25881 red
25882 \end_layout
25883
25884 \end_inset
25885
25886  in this command by a color of your choice.
25887  You can use all pre- and self-defined colors.
25888  See the 
25889 \emph on
25890 EmbeddedObjects
25891 \emph default
25892  manual, section 
25893 \emph on
25894 Colored
25895 \begin_inset space ~
25896 \end_inset
25897
25898 Tables
25899 \emph default
25900  for more information about pre- and self-defined colors.
25901  To go back to the default color insert the command
25902 \end_layout
25903
25904 \begin_layout LyX-Code
25905
25906 \backslash
25907 renewcommand{
25908 \backslash
25909 columnseprulecolor}{
25910 \backslash
25911 normalcolor}
25912 \end_layout
25913
25914 \begin_layout Standard
25915 Here is the example with a cyan rule and 1
25916 \begin_inset space \thinspace{}
25917 \end_inset
25918
25919 cm column separation:
25920 \end_layout
25921
25922 \begin_layout Standard
25923 \begin_inset ERT
25924 status open
25925
25926 \begin_layout Plain Layout
25927
25928
25929 \backslash
25930 setlength{
25931 \backslash
25932 columnsep}{1cm}
25933 \end_layout
25934
25935 \begin_layout Plain Layout
25936
25937
25938 \backslash
25939 renewcommand{
25940 \backslash
25941 columnseprulecolor}{
25942 \backslash
25943 color{cyan}}
25944 \end_layout
25945
25946 \end_inset
25947
25948
25949 \end_layout
25950
25951 \begin_layout Standard
25952 \begin_inset Flex Multiple Columns
25953 status open
25954
25955 \begin_layout Plain Layout
25956
25957 \size small
25958 \begin_inset Quotes eld
25959 \end_inset
25960
25961 You're surprised to see me, sir,
25962 \begin_inset Quotes erd
25963 \end_inset
25964
25965  said he, in a strange, croaking voice.
25966 \end_layout
25967
25968 \begin_layout Plain Layout
25969
25970 \size small
25971 I acknowledged that I was.
25972 \end_layout
25973
25974 \begin_layout Plain Layout
25975
25976 \size small
25977 \begin_inset Quotes eld
25978 \end_inset
25979
25980 Well, I've a conscience, sir, and when I chanced to see you go into this
25981  house, as I came hobbling after you, I thought to myself, I'll just step
25982  in and see that kind gentleman, and tell him that if I was a bit gruff
25983  in my manner there was not any harm meant, and that I am much obliged to
25984  him for picking up my books.
25985 \begin_inset Quotes erd
25986 \end_inset
25987
25988
25989 \end_layout
25990
25991 \begin_layout Plain Layout
25992
25993 \size small
25994 \begin_inset Quotes eld
25995 \end_inset
25996
25997 You make too much of a trifle,
25998 \begin_inset Quotes erd
25999 \end_inset
26000
26001  said I.
26002  
26003 \begin_inset Quotes eld
26004 \end_inset
26005
26006 May I ask how you knew who I was?
26007 \begin_inset Quotes erd
26008 \end_inset
26009
26010
26011 \end_layout
26012
26013 \begin_layout Plain Layout
26014
26015 \size small
26016 \begin_inset Quotes eld
26017 \end_inset
26018
26019 Well, sir, if it isn't too great a liberty, I am a neighbour of yours, for
26020  you'll find my little bookshop at the corner of Church Street, and very
26021  happy to see you, I am sure.
26022  Maybe you collect yourself, sir.
26023  Here's 
26024 \noun on
26025 British
26026 \begin_inset space ~
26027 \end_inset
26028
26029 Birds
26030 \noun default
26031 , and 
26032 \noun on
26033 Catullus
26034 \noun default
26035 , and 
26036 \noun on
26037 The Holy War
26038 \noun default
26039
26040 \begin_inset space ~
26041 \end_inset
26042
26043 – a bargain, every one of them.
26044  With five volumes you could just fill that gap on that second shelf.
26045  It looks untidy, does it not, sir?
26046 \begin_inset Quotes erd
26047 \end_inset
26048
26049
26050 \end_layout
26051
26052 \end_inset
26053
26054
26055 \end_layout
26056
26057 \begin_layout Standard
26058 \begin_inset ERT
26059 status collapsed
26060
26061 \begin_layout Plain Layout
26062
26063
26064 \backslash
26065 setlength{
26066 \backslash
26067 columnseprule}{0pt}
26068 \end_layout
26069
26070 \begin_layout Plain Layout
26071
26072
26073 \backslash
26074 renewcommand{
26075 \backslash
26076 columnseprulecolor}{
26077 \backslash
26078 normalcolor}
26079 \end_layout
26080
26081 \end_inset
26082
26083
26084 \begin_inset Note Note
26085 status collapsed
26086
26087 \begin_layout Plain Layout
26088 go back to the default
26089 \end_layout
26090
26091 \end_inset
26092
26093
26094 \end_layout
26095
26096 \begin_layout Section
26097 Non-standard Paragraph Shapes
26098 \end_layout
26099
26100 \begin_layout Standard
26101 \noindent
26102 \SpecialChar LaTeX
26103  as well as any other text processor uses by default rectangular paragraphs.
26104  For special cases like for example posters, invitation cards or poems you
26105  can modify the paragraph shape to one of your choice.
26106  This can be done by using the \SpecialChar LaTeX
26107 -package 
26108 \begin_inset Flex Code
26109 status collapsed
26110
26111 \begin_layout Plain Layout
26112 shapepar
26113 \end_layout
26114
26115 \end_inset
26116
26117  which is loaded by using in the document settings the module 
26118 \family sans
26119 Custom paragraph shapes
26120 \family default
26121 .
26122 \end_layout
26123
26124 \begin_layout Subsection
26125 Predefined shapes
26126 \end_layout
26127
26128 \begin_layout Standard
26129
26130 \series bold
26131 shapepar
26132 \series default
26133  provides the following shapes:
26134 \end_layout
26135
26136 \begin_layout Standard
26137 \begin_inset Tabular
26138 <lyxtabular version="3" rows="13" columns="3">
26139 <features booktabs="true" islongtable="true" longtabularalignment="center">
26140 <column alignment="left" valignment="middle" width="16col%">
26141 <column alignment="left" valignment="middle" width="40col%">
26142 <column alignment="left" valignment="middle" width="35col%">
26143 <row endhead="true">
26144 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26145 \begin_inset Text
26146
26147 \begin_layout Plain Layout
26148
26149 \series bold
26150 \size small
26151 Name
26152 \end_layout
26153
26154 \end_inset
26155 </cell>
26156 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26157 \begin_inset Text
26158
26159 \begin_layout Plain Layout
26160
26161 \series bold
26162 \size small
26163 Description
26164 \end_layout
26165
26166 \end_inset
26167 </cell>
26168 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
26169 \begin_inset Text
26170
26171 \begin_layout Plain Layout
26172
26173 \series bold
26174 \size small
26175 Annotation
26176 \end_layout
26177
26178 \end_inset
26179 </cell>
26180 </row>
26181 <row interlinespace="default">
26182 <cell alignment="left" valignment="top" usebox="none">
26183 \begin_inset Text
26184
26185 \begin_layout Plain Layout
26186
26187 \size small
26188 CDlabel
26189 \end_layout
26190
26191 \end_inset
26192 </cell>
26193 <cell alignment="left" valignment="top" usebox="none">
26194 \begin_inset Text
26195
26196 \begin_layout Plain Layout
26197
26198 \size small
26199 Circle with circular hole (in the size of a CD/DVD)
26200 \end_layout
26201
26202 \end_inset
26203 </cell>
26204 <cell alignment="left" valignment="top" usebox="none">
26205 \begin_inset Text
26206
26207 \begin_layout Plain Layout
26208
26209 \size small
26210 Cannot be scaled, take care there is not too much text
26211 \end_layout
26212
26213 \end_inset
26214 </cell>
26215 </row>
26216 <row interlinespace="default">
26217 <cell alignment="left" valignment="top" usebox="none">
26218 \begin_inset Text
26219
26220 \begin_layout Plain Layout
26221
26222 \size small
26223 Circle
26224 \end_layout
26225
26226 \end_inset
26227 </cell>
26228 <cell alignment="left" valignment="top" usebox="none">
26229 \begin_inset Text
26230
26231 \begin_layout Plain Layout
26232
26233 \size small
26234 Circle
26235 \end_layout
26236
26237 \end_inset
26238 </cell>
26239 <cell alignment="left" valignment="top" usebox="none">
26240 \begin_inset Text
26241
26242 \begin_layout Plain Layout
26243
26244 \size small
26245 Fragile, calculation might fail
26246 \end_layout
26247
26248 \end_inset
26249 </cell>
26250 </row>
26251 <row interlinespace="default">
26252 <cell alignment="left" valignment="top" usebox="none">
26253 \begin_inset Text
26254
26255 \begin_layout Plain Layout
26256
26257 \size small
26258 Diamond
26259 \end_layout
26260
26261 \end_inset
26262 </cell>
26263 <cell alignment="left" valignment="top" usebox="none">
26264 \begin_inset Text
26265
26266 \begin_layout Plain Layout
26267
26268 \size small
26269 Rhomboid (symbolizing a 
26270 \begin_inset Quotes eld
26271 \end_inset
26272
26273 diamond
26274 \begin_inset Quotes erd
26275 \end_inset
26276
26277 )
26278 \end_layout
26279
26280 \end_inset
26281 </cell>
26282 <cell alignment="left" valignment="top" usebox="none">
26283 \begin_inset Text
26284
26285 \begin_layout Plain Layout
26286
26287 \size small
26288 -
26289 \end_layout
26290
26291 \end_inset
26292 </cell>
26293 </row>
26294 <row interlinespace="default">
26295 <cell alignment="left" valignment="top" usebox="none">
26296 \begin_inset Text
26297
26298 \begin_layout Plain Layout
26299
26300 \size small
26301 Heart
26302 \end_layout
26303
26304 \end_inset
26305 </cell>
26306 <cell alignment="left" valignment="top" usebox="none">
26307 \begin_inset Text
26308
26309 \begin_layout Plain Layout
26310
26311 \size small
26312 Heart-like shape
26313 \end_layout
26314
26315 \end_inset
26316 </cell>
26317 <cell alignment="left" valignment="top" usebox="none">
26318 \begin_inset Text
26319
26320 \begin_layout Plain Layout
26321
26322 \size small
26323 -
26324 \end_layout
26325
26326 \end_inset
26327 </cell>
26328 </row>
26329 <row interlinespace="default">
26330 <cell alignment="left" valignment="top" usebox="none">
26331 \begin_inset Text
26332
26333 \begin_layout Plain Layout
26334
26335 \size small
26336 Hexagon
26337 \end_layout
26338
26339 \end_inset
26340 </cell>
26341 <cell alignment="left" valignment="top" usebox="none">
26342 \begin_inset Text
26343
26344 \begin_layout Plain Layout
26345
26346 \size small
26347 Hexagon
26348 \end_layout
26349
26350 \end_inset
26351 </cell>
26352 <cell alignment="left" valignment="top" usebox="none">
26353 \begin_inset Text
26354
26355 \begin_layout Plain Layout
26356
26357 \size small
26358 -
26359 \end_layout
26360
26361 \end_inset
26362 </cell>
26363 </row>
26364 <row interlinespace="default">
26365 <cell alignment="left" valignment="top" usebox="none">
26366 \begin_inset Text
26367
26368 \begin_layout Plain Layout
26369
26370 \size small
26371 Nut
26372 \end_layout
26373
26374 \end_inset
26375 </cell>
26376 <cell alignment="left" valignment="top" usebox="none">
26377 \begin_inset Text
26378
26379 \begin_layout Plain Layout
26380
26381 \size small
26382 Nut for bolt (hexagon with circular hole)
26383 \end_layout
26384
26385 \end_inset
26386 </cell>
26387 <cell alignment="left" valignment="top" usebox="none">
26388 \begin_inset Text
26389
26390 \begin_layout Plain Layout
26391
26392 \size small
26393 -
26394 \end_layout
26395
26396 \end_inset
26397 </cell>
26398 </row>
26399 <row interlinespace="default">
26400 <cell alignment="left" valignment="top" usebox="none">
26401 \begin_inset Text
26402
26403 \begin_layout Plain Layout
26404
26405 \size small
26406 Square
26407 \end_layout
26408
26409 \end_inset
26410 </cell>
26411 <cell alignment="left" valignment="top" usebox="none">
26412 \begin_inset Text
26413
26414 \begin_layout Plain Layout
26415
26416 \size small
26417 Square
26418 \end_layout
26419
26420 \end_inset
26421 </cell>
26422 <cell alignment="left" valignment="top" usebox="none">
26423 \begin_inset Text
26424
26425 \begin_layout Plain Layout
26426
26427 \size small
26428 -
26429 \end_layout
26430
26431 \end_inset
26432 </cell>
26433 </row>
26434 <row interlinespace="default">
26435 <cell alignment="left" valignment="top" usebox="none">
26436 \begin_inset Text
26437
26438 \begin_layout Plain Layout
26439
26440 \size small
26441 Star
26442 \end_layout
26443
26444 \end_inset
26445 </cell>
26446 <cell alignment="left" valignment="top" usebox="none">
26447 \begin_inset Text
26448
26449 \begin_layout Plain Layout
26450
26451 \size small
26452 Five-point star
26453 \end_layout
26454
26455 \end_inset
26456 </cell>
26457 <cell alignment="left" valignment="top" usebox="none">
26458 \begin_inset Text
26459
26460 \begin_layout Plain Layout
26461
26462 \size small
26463 -
26464 \end_layout
26465
26466 \end_inset
26467 </cell>
26468 </row>
26469 <row interlinespace="default">
26470 <cell alignment="left" valignment="top" usebox="none">
26471 \begin_inset Text
26472
26473 \begin_layout Plain Layout
26474
26475 \size small
26476 Candle
26477 \end_layout
26478
26479 \end_inset
26480 </cell>
26481 <cell alignment="left" valignment="top" usebox="none">
26482 \begin_inset Text
26483
26484 \begin_layout Plain Layout
26485
26486 \size small
26487 Burning candle
26488 \end_layout
26489
26490 \end_inset
26491 </cell>
26492 <cell alignment="left" valignment="top" usebox="none">
26493 \begin_inset Text
26494
26495 \begin_layout Plain Layout
26496
26497 \size small
26498 -
26499 \end_layout
26500
26501 \end_inset
26502 </cell>
26503 </row>
26504 <row interlinespace="default">
26505 <cell alignment="left" valignment="top" usebox="none">
26506 \begin_inset Text
26507
26508 \begin_layout Plain Layout
26509
26510 \size small
26511 Drop down/up
26512 \end_layout
26513
26514 \end_inset
26515 </cell>
26516 <cell alignment="left" valignment="top" usebox="none">
26517 \begin_inset Text
26518
26519 \begin_layout Plain Layout
26520
26521 \size small
26522 Normal/reversed rain drop
26523 \end_layout
26524
26525 \end_inset
26526 </cell>
26527 <cell alignment="left" valignment="top" usebox="none">
26528 \begin_inset Text
26529
26530 \begin_layout Plain Layout
26531
26532 \size small
26533 Fragile, calculation might fail
26534 \end_layout
26535
26536 \end_inset
26537 </cell>
26538 </row>
26539 <row interlinespace="default">
26540 <cell alignment="left" valignment="top" usebox="none">
26541 \begin_inset Text
26542
26543 \begin_layout Plain Layout
26544
26545 \size small
26546 \SpecialChar TeX
26547
26548 \end_layout
26549
26550 \end_inset
26551 </cell>
26552 <cell alignment="left" valignment="top" usebox="none">
26553 \begin_inset Text
26554
26555 \begin_layout Plain Layout
26556
26557 \size small
26558 The \SpecialChar TeX
26559  logo
26560 \end_layout
26561
26562 \end_inset
26563 </cell>
26564 <cell alignment="left" valignment="top" usebox="none">
26565 \begin_inset Text
26566
26567 \begin_layout Plain Layout
26568
26569 \size small
26570 -
26571 \end_layout
26572
26573 \end_inset
26574 </cell>
26575 </row>
26576 <row interlinespace="default">
26577 <cell alignment="left" valignment="top" bottomline="true" usebox="none">
26578 \begin_inset Text
26579
26580 \begin_layout Plain Layout
26581
26582 \size small
26583 Triangle up/down/
26584 \begin_inset Newline newline
26585 \end_inset
26586
26587 left/right
26588 \end_layout
26589
26590 \end_inset
26591 </cell>
26592 <cell alignment="left" valignment="top" bottomline="true" usebox="none">
26593 \begin_inset Text
26594
26595 \begin_layout Plain Layout
26596
26597 \size small
26598 Triangles in different orientations
26599 \end_layout
26600
26601 \end_inset
26602 </cell>
26603 <cell alignment="left" valignment="top" bottomline="true" usebox="none">
26604 \begin_inset Text
26605
26606 \begin_layout Plain Layout
26607
26608 \size small
26609 -
26610 \end_layout
26611
26612 \end_inset
26613 </cell>
26614 </row>
26615 </lyxtabular>
26616
26617 \end_inset
26618
26619
26620 \end_layout
26621
26622 \begin_layout Standard
26623 To use a shape for your paragraph, simply select it in \SpecialChar LyX
26624 's pull-down box
26625  for environments in the toolbar.
26626 \end_layout
26627
26628 \begin_layout Standard
26629 \begin_inset Newpage newpage
26630 \end_inset
26631
26632
26633 \end_layout
26634
26635 \begin_layout Standard
26636 Here is an example paragraph in the shape of a nut:
26637 \end_layout
26638
26639 \begin_layout Standard
26640 \begin_inset VSpace bigskip
26641 \end_inset
26642
26643
26644 \end_layout
26645
26646 \begin_layout Nut
26647
26648 \lang latin
26649 Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
26650  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
26651  voluptua.
26652  At vero eos et accusam et justo duo dolores et ea rebum.
26653  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
26654  sit amet.
26655  Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
26656  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
26657  voluptua.
26658 \end_layout
26659
26660 \begin_layout Standard
26661 \begin_inset VSpace bigskip
26662 \end_inset
26663
26664
26665 \end_layout
26666
26667 \begin_layout Standard
26668 \begin_inset Note Greyedout
26669 status open
26670
26671 \begin_layout Plain Layout
26672
26673 \series bold
26674 Note
26675 \series default
26676
26677 \family sans
26678 shapepar
26679 \family default
26680  paragraphs cannot run over a page break.
26681 \end_layout
26682
26683 \end_inset
26684
26685
26686 \end_layout
26687
26688 \begin_layout Standard
26689 \begin_inset VSpace bigskip
26690 \end_inset
26691
26692
26693 \end_layout
26694
26695 \begin_layout Standard
26696 The package 
26697 \begin_inset Flex Code
26698 status collapsed
26699
26700 \begin_layout Plain Layout
26701 shapepar
26702 \end_layout
26703
26704 \end_inset
26705
26706  takes care that the shape will always be preserved, no matter how much
26707  text is in the paragraph.
26708  Therefore the paragraph size changes with the amount of contained text.
26709  This can lead to paragraph sizes exceeding the page margins.
26710  To demonstrate the size scaling, here is the same example paragraph but
26711  with twice as much text:
26712 \end_layout
26713
26714 \begin_layout Standard
26715 \begin_inset Newpage newpage
26716 \end_inset
26717
26718
26719 \end_layout
26720
26721 \begin_layout Nut
26722
26723 \lang latin
26724 Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
26725  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
26726  voluptua.
26727  At vero eos et accusam et justo duo dolores et ea rebum.
26728  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
26729  sit amet.
26730  Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
26731  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
26732  voluptua.
26733  Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
26734  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
26735  voluptua.
26736  At vero eos et accusam et justo duo dolores et ea rebum.
26737  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
26738  sit amet.
26739  Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
26740  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
26741  voluptua.
26742 \end_layout
26743
26744 \begin_layout Standard
26745 \begin_inset VSpace bigskip
26746 \end_inset
26747
26748
26749 \end_layout
26750
26751 \begin_layout Standard
26752 An exception is the shape 
26753 \family sans
26754 CDlabel
26755 \family default
26756 .
26757  It cannot be scaled because it must fit the size of a CD/DVD.
26758  Therefore the amount of text that fits into the shape is limited.
26759 \begin_inset Newline newline
26760 \end_inset
26761
26762 The 
26763 \family sans
26764 drop
26765 \family default
26766  shapes and the 
26767 \family sans
26768 circle
26769 \family default
26770  shape are fragile, meaning that the calculation of their size can fail,
26771  depending on the amount of text.
26772  You will then get the \SpecialChar LaTeX
26773  error 
26774 \begin_inset Quotes eld
26775 \end_inset
26776
26777 Arithmetic overflow
26778 \begin_inset Quotes erd
26779 \end_inset
26780
26781 .
26782  In this case one can try to remove or add some text; if nothing works one
26783  has to use another shape.
26784 \end_layout
26785
26786 \begin_layout Standard
26787 \begin_inset VSpace bigskip
26788 \end_inset
26789
26790
26791 \end_layout
26792
26793 \begin_layout Standard
26794 For shapes with tips you will maybe see that \SpecialChar LaTeX
26795 's hyphenation routine fails
26796  for text in the tips.
26797  Therefore it is often necessary to add hyphenation points 
26798 \family sans
26799 (
26800 \begin_inset Info
26801 type  "shortcut"
26802 arg   "specialchar-insert hyphenation"
26803 \end_inset
26804
26805
26806 \family default
26807 ) to the corresponding text parts.
26808 \end_layout
26809
26810 \begin_layout Standard
26811 \begin_inset VSpace bigskip
26812 \end_inset
26813
26814
26815 \end_layout
26816
26817 \begin_layout Standard
26818 Shapepar paragraphs are either always centered or placed on the page so
26819  that their left border touches the left page margin.
26820  You can therefore not use the paragraph dialog to align such paragraphs.
26821  A solution is to put the paragraph into a minipage or parbox and align
26822  the box.
26823  The problem is hereby to find the right width for the box.
26824  Because if it is too wide and you center the box, the paragraph is not
26825  centered too because it sticks at the left side of the box.
26826  So you might have to play a bit with the width until it fits.
26827  Here are two heart-shaped paragraphs, the first one is not aligned, the
26828  second one is right-aligned:
26829 \end_layout
26830
26831 \begin_layout Standard
26832 \begin_inset Newpage newpage
26833 \end_inset
26834
26835
26836 \end_layout
26837
26838 \begin_layout Heart
26839 \noindent
26840
26841 \lang latin
26842 Lo\SpecialChar softhyphen
26843 rem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
26844  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
26845  voluptua.
26846  At vero eos et accusam et justo duo dolores et ea rebum.
26847  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
26848  sit amet.
26849 \end_layout
26850
26851 \begin_layout Standard
26852 \begin_inset VSpace bigskip
26853 \end_inset
26854
26855
26856 \end_layout
26857
26858 \begin_layout Standard
26859 \noindent
26860 \align right
26861 \begin_inset Box Frameless
26862 position "t"
26863 hor_pos "c"
26864 has_inner_box 1
26865 inner_pos "t"
26866 use_parbox 1
26867 use_makebox 0
26868 width "42col%"
26869 special "none"
26870 height "1in"
26871 height_special "totalheight"
26872 thickness "0.4pt"
26873 separation "3pt"
26874 shadowsize "4pt"
26875 framecolor "black"
26876 backgroundcolor "none"
26877 status open
26878
26879 \begin_layout Heart
26880 \noindent
26881
26882 \lang latin
26883 Lo\SpecialChar softhyphen
26884 rem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
26885  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
26886  voluptua.
26887  At vero eos et accusam et justo duo dolores et ea rebum.
26888  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
26889  sit amet.
26890 \end_layout
26891
26892 \end_inset
26893
26894
26895 \end_layout
26896
26897 \begin_layout Subsection
26898 Custom shapes
26899 \end_layout
26900
26901 \begin_layout Standard
26902 You can define any shape you want.
26903  Doing this manually is a lot of work because every coordinate must be specified.
26904  But there is a way to let the computer calculate the coordinates:
26905 \end_layout
26906
26907 \begin_layout Enumerate
26908 Install the program 
26909 \begin_inset CommandInset href
26910 LatexCommand href
26911 name "Jpgfdraw"
26912 target "https://www.ctan.org/tex-archive/graphics/jpgfdraw"
26913 literal "false"
26914
26915 \end_inset
26916
26917 .
26918 \end_layout
26919
26920 \begin_layout Enumerate
26921 In 
26922 \family sans
26923 Jpgfdraw
26924 \family default
26925  go to the menu 
26926 \family sans
26927 TeX/LaTeX\SpecialChar menuseparator
26928 Settings\SpecialChar menuseparator
26929 Set Normal Size
26930 \family default
26931  and select the font size you are using in your document.
26932  For example this document uses the size 12
26933 \begin_inset space \thinspace{}
26934 \end_inset
26935
26936 pt.
26937 \end_layout
26938
26939 \begin_layout Enumerate
26940 Draw a shape.
26941 \end_layout
26942
26943 \begin_layout Enumerate
26944 Use the menu 
26945 \family sans
26946 TeX/LaTeX\SpecialChar menuseparator
26947 Shapepar
26948 \family default
26949  to export the shape to coordinates.
26950  In the appearing dialog use either the outline of your shape for the coordinate
26951 s or the path itself.
26952 \begin_inset Foot
26953 status collapsed
26954
26955 \begin_layout Plain Layout
26956 For more information see 
26957 \begin_inset CommandInset href
26958 LatexCommand href
26959 target "http://www.dickimaw-books.com/apps/jpgfdraw/manual/shapepar.html"
26960 literal "false"
26961
26962 \end_inset
26963
26964
26965 \end_layout
26966
26967 \end_inset
26968
26969
26970 \end_layout
26971
26972 \begin_layout Standard
26973 The coordinates are written into a \SpecialChar TeX
26974  file.
26975  To use it for your \SpecialChar LyX
26976  document
26977 \end_layout
26978
26979 \begin_layout Enumerate
26980 Place the cursor before the first character of your paragraph (or into a
26981  new empty one).
26982 \end_layout
26983
26984 \begin_layout Enumerate
26985 Open in \SpecialChar LyX
26986  the menu 
26987 \family sans
26988 Insert\SpecialChar menuseparator
26989 File\SpecialChar menuseparator
26990 Child
26991 \begin_inset space ~
26992 \end_inset
26993
26994 Document
26995 \family default
26996 , select the file and use 
26997 \family sans
26998 Input
26999 \family default
27000  as 
27001 \family sans
27002 Include Type.
27003 \end_layout
27004
27005 \begin_layout Standard
27006 \begin_inset VSpace defskip
27007 \end_inset
27008
27009
27010 \end_layout
27011
27012 \begin_layout Standard
27013 \begin_inset Note Greyedout
27014 status open
27015
27016 \begin_layout Plain Layout
27017
27018 \series bold
27019 Note
27020 \series default
27021 : The changed shape only applies to the current paragraph; everything is
27022  reset to normal for the next paragraph.
27023  Therefore the shape definition file must be input into every paragraph
27024  with the desired shape.
27025 \end_layout
27026
27027 \end_inset
27028
27029
27030 \end_layout
27031
27032 \begin_layout Standard
27033 \begin_inset VSpace bigskip
27034 \end_inset
27035
27036
27037 \end_layout
27038
27039 \begin_layout Standard
27040 Here is an example:
27041 \end_layout
27042
27043 \begin_layout Standard
27044 \begin_inset VSpace bigskip
27045 \end_inset
27046
27047
27048 \end_layout
27049
27050 \begin_layout Standard
27051 \begin_inset CommandInset include
27052 LatexCommand input
27053 filename "SpecialParagraphShape.tex"
27054 literal "true"
27055
27056 \end_inset
27057
27058
27059 \lang latin
27060 Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
27061  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
27062  voluptua.
27063  At vero eos et accusam et justo duo dolores et ea rebum.
27064  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
27065  sit amet.
27066  Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
27067  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
27068  voluptua.
27069 \end_layout
27070
27071 \begin_layout Standard
27072 \begin_inset VSpace bigskip
27073 \end_inset
27074
27075
27076 \end_layout
27077
27078 \begin_layout Standard
27079
27080 \series bold
27081 A tip:
27082 \series default
27083  to draw complexer shapes in 
27084 \family sans
27085 Jpgfdraw
27086 \family default
27087  you can draw the shape in a program of your choice and import the resulting
27088  image to 
27089 \family sans
27090 Jpgfdraw
27091 \family default
27092 .
27093  Then you only need to draw a line or spline along the outline of the image.
27094 \end_layout
27095
27096 \begin_layout Standard
27097 \begin_inset VSpace bigskip
27098 \end_inset
27099
27100
27101 \end_layout
27102
27103 \begin_layout Standard
27104 The module 
27105 \family sans
27106 Custom paragraph shapes
27107 \family default
27108  also provides the two commands 
27109 \family sans
27110 shapepar
27111 \family default
27112  and 
27113 \family sans
27114 Shapepar
27115 \family default
27116  which can be used to define custom shapes coordinate by coordinate.
27117 \begin_inset Foot
27118 status collapsed
27119
27120 \begin_layout Plain Layout
27121 These commands are internally used for all shapes described here.
27122 \end_layout
27123
27124 \end_inset
27125
27126  For information how these styles are used and about further customization
27127  possibilities, have a look at the 
27128 \begin_inset CommandInset href
27129 LatexCommand href
27130 name "documentation"
27131 target "https://www.ctan.org/tex-archive/macros/latex/contrib/shapepar/shapepar.pdf"
27132 literal "false"
27133
27134 \end_inset
27135
27136  of the package 
27137 \begin_inset Flex Code
27138 status collapsed
27139
27140 \begin_layout Plain Layout
27141 shapepar
27142 \end_layout
27143
27144 \end_inset
27145
27146 .
27147 \end_layout
27148
27149 \end_body
27150 \end_document