1 #LyX 1.5.2 created this file. For more info see http://www.lyx.org/
8 \newcommand{\extratablespace}[1]{\noalign{\vskip#1}}
14 % set fonts for nicer pdf view
15 \IfFileExists{lmodern.sty}
16 {\usepackage{lmodern}} % if it exists
18 \usepackage[scaled=0.92]{helvet}
21 } % end if it exists not
23 % link all cross references and URLs
25 \usepackage[colorlinks=true, bookmarks, bookmarksnumbered, bookmarksopen, bookmarksopenlevel=1,
26 linkcolor=black, citecolor=black, urlcolor=blue, filecolor=blue,
27 pdfpagelayout=OneColumn, pdfnewwindow=true,
28 pdfstartview=XYZ, plainpages=false, pdfpagelabels,
29 pdfauthor={LyX Team}, pdftex,
30 pdftitle={LyX's Extended manual},
31 pdfsubject={LyX's extended documentation},
32 pdfkeywords={LyX, Documentation, Extended}]{hyperref}
34 \else % if dvi or ps is produced
36 % link all cross references and URLs in DVI output
37 \usepackage[ps2pdf, colorlinks=true,
38 linkcolor=black, citecolor=black, urlcolor=blue, filecolor=blue]{hyperref}
40 \fi % end if pdflatex is used
42 % redefine the \LyX macro for PDF bookmarks
43 \def\LyX{\texorpdfstring{%
44 L\kern-.1667em\lower.25em\hbox{Y}\kern-.125emX\@}
51 \font_typewriter default
52 \font_default_family default
58 \paperfontsize default
66 \paperorientation portrait
69 \paragraph_separation indent
71 \quotes_language english
74 \paperpagestyle headings
75 \tracking_changes false
92 \begin_layout Standard
94 Principal maintainer of this file is
99 If you have comments or error corrections, please send them to the LyX
100 Documentation mailing list, <lyx-docs@lists.lyx.org>.
108 \begin_layout Standard
109 \begin_inset LatexCommand tableofcontents
116 \begin_layout Chapter
120 \begin_layout Standard
123 Extended LyX Features
125 manual, which you are now reading, is essentially Part II of the
127 User's Guide\SpecialChar \@.
130 The reason for splitting this document is simple: the
134 is already huge, and it contains all of the basic features one needs to
135 know in order to prepare most documents.
136 However, the LyX Team has a long-term goal of making LyX extensible through
137 various configuration files and external packages.
138 That means that if you want to support the Fizzwizzle LaTeX package, you
139 can create a layout file for it without having to alter LyX itself.
140 We've already had contributions of several new features this way.
141 This is the place where all of that gets documented.
144 \begin_layout Standard
145 This manual also documents some special features, like fax support, version
146 control, and SGML support, which require additional software to work properly.
147 Lastly, there's a chapter of LaTeX tools and tips, things you can use to
148 spruce up your documents by directly using the powerful features of LaTeX.
153 only WYSIWYM, and will only ever interface to certain LaTeX features.
156 \begin_layout Standard
157 Of course, with all of this extra documentation,
159 Extended LyX Features
161 may itself grow too big for its britches.
162 In that case, you can just call it the
163 \begin_inset Quotes eld
167 \begin_inset Quotes erd
173 \begin_layout Standard
174 If you haven't read the
178 yet, you are definitely in the wrong manual.
183 is the first place to go, since it will direct you to the correct manual,
184 and it also describes the notation and format of all of the manuals.
185 You should also be thoroughly familiar with the
189 and all of the basic features of LyX.
193 \begin_layout Standard
194 In this document, many sections are independent articles contributed by
195 an individual and are noted as such.
196 This person is generally whoever wrote the layout file for the new document
197 class or LaTeX package, or implemented the feature.
198 If there is no mention of an author to a chapter [or chapter sections],
199 that means it was written by the LyX Documentation Team.
202 \begin_layout Standard
203 Since all the topics in this manual depend heavily on LyX's interaction
204 with LaTeX, this first chapter covers the inner workings of LyX and how
205 to direct LyX to generate exactly the LaTeX code you want.
206 It is obviously for more seasoned LyX users.
209 \begin_layout Chapter
213 \begin_layout Section
217 \begin_layout Standard
218 \begin_inset LatexCommand label
219 name "sec:lyxandlatex"
223 This chapter is for both TeX-nicians and the LaTeX-curious.
224 In it, we'll explain how LyX and LaTeX work together to produce printable
226 This is the only place in any of the manuals where we assume you know something
230 \begin_layout Standard
231 At one time, we called LyX a
232 \begin_inset Quotes eld
235 WYSIWYM frontend to LaTeX,
236 \begin_inset Quotes erd
239 but that's no longer true.
240 There are frontends to LaTeX out there.
241 They are basically editors with the ability to run LaTeX and mark any errors
242 in the file you're editing.
251 run LaTeX, and it also marks errors in the file, it also does much, much
253 Thanks to the WYSIWYM concept, you don't need LaTeX to use LyX effectively.
254 LyX has also added a few extensions to LaTeX.
255 Try the following sometime: select
257 Export\SpecialChar \menuseparator
267 menu, then look at the preamble of the resulting
272 You'll notice a variety of new macros defined specifically by LyX.
273 These macros are defined automatically, according to the features you use
277 \begin_layout Standard
278 There are several commands that automatically invoke LaTeX.
282 \begin_layout Itemize
288 iew\SpecialChar \menuseparator
295 \begin_layout Itemize
301 iew\SpecialChar \menuseparator
306 pdate\SpecialChar \menuseparator
312 \begin_layout Itemize
320 \SpecialChar \menuseparator
326 \begin_layout Itemize
334 \SpecialChar \menuseparator
340 \begin_layout Standard
341 They will only invoke LaTeX if the file has changed since the last time
346 \begin_layout Standard
347 When you run LaTeX on the file you're editing, LyX performs these steps:
350 \begin_layout Enumerate
351 Convert the document to LaTeX and save to a file with the extension
362 \begin_layout Enumerate
367 file (maybe several times).
370 \begin_layout Enumerate
371 If there are any errors, insert error boxes in the document to mark where
373 These boxes are transient and are not saved along with the document.
376 \begin_layout Standard
377 If you've run LaTeX using
399 , LyX performs two more steps:
402 \begin_layout Itemize
407 to convert the DVI file to PostScript:
411 \begin_layout Itemize
417 , the output file has the extension
422 \begin_layout Itemize
431 , the output file has the extension
439 \begin_layout Itemize
444 or send the PostScript file to the printer.
447 \begin_layout Section
448 \begin_inset Quotes eld
451 Help! LyX generated an unreadable
456 \begin_inset Quotes erd
462 \begin_layout Standard
463 Die-hard LaTeX users will scream and howl this into the night, then declare
464 LyX useless, simply because they didn't RTFM.
467 \begin_layout Standard
468 We're going to set the record straight.
469 LyX produces two kinds of LaTeX files.
470 One is human readable.
471 The other is LyX readable.
472 Every time LyX executes LaTeX, it produces a LaTeX file that it can easily
478 file is not human readable.
479 Don't even try to read it.
484 file that you can send to a colleague, select
489 xport\SpecialChar \menuseparator
506 \begin_layout Section
507 Translating LaTeX files into LyX
508 \begin_inset LatexCommand label
509 name "sec:Translating-LaTeX-files"
516 \begin_layout Standard
517 You can import a LaTeX file into LyX by using the
522 ile\SpecialChar \menuseparator
527 mport\SpecialChar \menuseparator
535 This will call a program named
539 ---which will create a file
547 ---and then open that file.
550 \begin_layout Standard
555 will translate most legal LaTeX, but not everything.
556 It will leave things it doesn't understand in TeX mode, so after translating
561 , you can look for red text and hand-edit it to look right.
564 \begin_layout Standard
565 If you just want to put a piece of LaTeX code into a LyX file, see Section\InsetSpace ~
567 \begin_inset LatexCommand ref
568 reference "sec:latexcodes"
575 \begin_layout Section
576 Inserting LaTeX Code into LyX Documents
577 \begin_inset LatexCommand label
578 name "sec:Inserting-LaTeX-Code"
585 \begin_layout Standard
586 \begin_inset LatexCommand label
587 name "sec:latexcodes"
591 This is a rather important point: You can always insert LaTeX code into
593 LyX simply cannot, and will probably never be able to, display every possible
595 If ever you need to insert LaTeX commands into your LyX document, you can
596 use the ERT box, which you can insert into your document with
601 nsert\SpecialChar \menuseparator
609 The ERT box comes in three forms: collapsed, open, and inlined.
610 The first two are used just like any other collapsible (foldable) box (such
611 as footnotes), and are useful for significant amounts of LaTeX commands.
613 \begin_inset Quotes eld
617 \begin_inset Quotes erd
620 ERT box displays its content as part of the button, and is useful for very
621 short sections of LaTeX commands.
626 \begin_layout Standard
636 \begin_layout Standard
637 You can switch between all three by right-clicking on the ERT.
638 Note that if you want more than one line of LaTeX commands, you cannot
639 use the inlined mode.
642 \begin_layout Standard
643 Here's an example of inserting LaTeX commands in a LyX document.
644 The code looks like this:
647 \begin_layout LyX-Code
656 This is an example for a minipage environment.
659 can put nearly everything in it, even (non-floating)
702 \begin_layout LyX-Code
706 \begin_layout Standard
707 The ERT box containing this text is directly after this paragraph.
708 Those of you reading the manual online will only see a bunch of funky text
710 Those reading a printed version of the manuals will see the actual results:
713 \begin_layout Standard
717 \begin_layout Standard
724 \begin_layout Standard
731 \begin_layout Standard
733 This is an example for a minipage environment.
734 You can put nearly everything in it, even (non-floating) figures and tables.
738 \begin_layout Standard
745 \begin_layout Standard
750 \begin_layout Standard
757 \begin_layout Standard
764 \begin_layout Standard
771 \begin_layout Standard
777 \begin_layout Standard
784 \begin_layout Standard
791 \begin_layout Standard
798 \begin_layout Standard
810 \begin_layout Standard
811 In addition to these two methods, you can also create a separate file containing
812 some complex LaTeX structure.
818 nsert\SpecialChar \menuseparator
826 to include your file (you should select the type
831 We recommend that you only do this if you have a
840 Otherwise, you'll have a big job tracking down LaTeX errors\SpecialChar \ldots{}
844 \begin_layout Standard
845 There are a few last notes to emphasize:
848 \begin_layout Itemize
849 Inside of LyX, LaTeX code appears
854 \begin_layout Itemize
859 check if your LaTeX code is correct.
862 \begin_layout Itemize
863 Beware reinventing the wheel.
866 \begin_layout Standard
867 That last note refers to two things.
868 First, LyX does have quite a few features tucked into it, and more are
870 Be sure to check the manuals to make sure that LyX doesn't have such-and-such
871 feature before you go off merrily coding LaTeX.
872 Second, there are numerous LaTeX packages out there to do all sorts of
873 things, from labels to envelopes to fancy multipage tables.
874 Check out a CTAN site for details (see Section
875 \begin_inset Quotes eld
879 \begin_inset Quotes erd
890 \begin_layout Standard
895 : I seem to do this an awful lot.
896 Sat down and merrily began coding something to print out labels, only to
897 learn that there were already 2 different LaTeX packages to do this.
898 Worse yet --- I had them already!
906 \begin_layout Standard
907 If you do need to do some wild and fancy things within your document, be
908 sure to check out a good LaTeX book for assistance.
909 There are a number of them listed in the bibliography of the
916 \begin_layout Standard
917 There are a number of LaTeX commands which have to be placed before the
918 beginning of the actual text.
919 They go into the preamble, and this is explained in the next section.
922 \begin_layout Section
923 LyX and the LaTeX Preamble
926 \begin_layout Subsection
927 About the LaTeX Preamble
930 \begin_layout Standard
931 \begin_inset LatexCommand label
936 If you already know LaTeX, there is no need to explain here what the preamble
938 If you don't, the following will give you some ideas --- we recommend again
939 that you consult a LaTeX book for further information.
940 In any case, you should read the points below, because they explain what
941 you can do and what you don't need to do in the LaTeX preamble of a LyX
945 \begin_layout Standard
946 The LaTeX preamble comes at the very beginning of a document,
954 \begin_layout Itemize
955 declare the document class.
956 LyX already does this for you.
960 \begin_layout Standard
961 If you're a seasoned LaTeX-nician, and you have some custom document class
962 you want to use, check out the
966 for information on how to make LyX interface to it.
967 Be sure to submit your efforts to the LyX Team for inclusion in future
972 \begin_layout Itemize
973 declare the usage of packages.
974 LaTeX packages provide special commands, which are only available within
975 a document when the package has been declared in the preamble.
976 For example, the package
980 forces all paragraphs to be indented.
981 There are other packages for labels, envelopes, margins, etc.
985 \begin_layout Itemize
986 set counters, variables, lengths and widths.
987 There are several LaTeX counters and variables which
991 be set globally from within the preamble in order to have the desired effect.
992 [There are other variables which you can set and reset inside the document,
993 too.] Margins are a good example of something which must be set in the preamble.
994 Another example is the label format for lists.
995 You can actually set these just about anywhere, but it's best to do it
996 just once, inside the preamble.
999 \begin_layout Itemize
1000 declare user defined commands [with
1012 ], mostly abbreviations for LaTeX commands which appear very often inside
1014 Although the preamble is a good place to declare such commands, they
1018 be declared anywhere else [but
1022 they are used for the first time, of course\SpecialChar \ldots{}
1024 This can be useful if there is a lot of raw LaTeX code in your document,
1025 which normally should not be the case.
1028 \begin_layout Standard
1029 LyX adds its own set of definitions to the preamble of the
1034 This makes LaTeX files generated by LyX portable.
1037 \begin_layout Subsection
1038 Changing the Preamble
1041 \begin_layout Standard
1042 The commands which LyX adds to the preamble of a LaTeX file are fixed; you
1043 can't change them without patching LyX itself.
1044 You can, however, add your own stuff to the preamble.
1045 There are two ways to do this:
1048 \begin_layout Enumerate
1075 \SpecialChar \menuseparator
1083 dialog, depending on your frontend.
1084 Note that the LyX keybindings will not work in this dialog, alas.
1087 \begin_layout Enumerate
1088 Use the preamble contents you've added as your default template (see
1089 \begin_inset Quotes eld
1093 \begin_inset Quotes erd
1100 ), so that it will be the default preamble for any file you create.
1103 \begin_layout Standard
1104 LyX adds anything in the
1111 dialog to its own built-in preamble.
1112 Before adding your own declarations in the preamble, you should make sure
1113 that LyX doesn't already support what you want to do (remember what we
1114 said about reinventing the wheel?).
1117 make sure your preamble code is correct
1120 LyX doesn't check it.
1123 \begin_layout Subsection
1127 \begin_layout Standard
1128 Here are some examples of what you can add to a preamble, and what they
1132 \begin_layout Subsubsection
1136 \begin_layout Standard
1137 There are two variables under LaTeX that control page position:
1150 Their names should be self-explanatory.
1151 These variables are useful if you think for a moment about computer labels.
1152 Sometimes, the size of a print medium and the area of the medium that you
1153 can actually print on aren't the same.
1169 \begin_layout Standard
1170 The default values for
1182 are both 0 pt.,\InsetSpace ~
1185 the page isn't shifted.
1188 \begin_layout Standard
1189 Unfortunately, some DVI drivers always seem to shift the page.
1190 We have no idea why, or why the sysadmin hasn't fixed such behavior.
1191 If you're using LyX on a system that you don't personally maintain, and
1192 your sysadmin is a doofus,
1205 Suppose you're left and top margins are always 0.5 inches too big.
1206 You can add this to the preamble:
1209 \begin_layout LyX-Code
1217 \begin_layout LyX-Code
1225 \begin_layout Standard
1226 \SpecialChar \ldots{}
1227 and your margins should now be correct.
1230 \begin_layout Subsubsection
1234 \begin_layout Standard
1235 Speaking of labels, suppose you wanted to print out a bunch of address labels.
1236 There's a rather nice package, available at your nearest CTAN archive,
1237 for printing sheets of labels, called
1242 Now, your system may not have this package installed by default.
1243 We leave that up to you to check.
1244 You'll also want to read the documentation for it; we're not going to do
1246 Since this is an example, however, we'll give you an example of how you
1250 \begin_layout Standard
1251 First, make sure you're using the
1256 Next, you need to put the following in your preamble:
1259 \begin_layout LyX-Code
1265 \begin_layout LyX-Code
1271 \begin_layout LyX-Code
1277 \begin_layout LyX-Code
1283 \begin_layout LyX-Code
1289 \begin_layout LyX-Code
1295 \begin_layout LyX-Code
1301 \begin_layout Standard
1302 This sets things up for Avery® label sheets, stock #5360.
1303 You're now ready to print labels, but you'll need to insert LaTeX code,
1304 placing the commands
1316 around each label text.
1317 This and other special features of
1321 are explained in its documentation.
1324 \begin_layout Standard
1325 Someday, someone may write a LyX layout file to support this package directly.
1326 Maybe that someone is you.
1329 \begin_layout Subsubsection
1330 Example #3: Paragraph Indentation
1333 \begin_layout Standard
1334 Americans are trained to indent the first line of
1339 As with all of their other weird quirks, most Americans will whine and
1340 moan until they can have their way and indent the first line of all paragraphs.
1344 \begin_layout Standard
1349 : This was written by an American ---
1353 ! It's my perception of my fellow countrymen.
1354 Tough if you don't like it.
1363 \begin_layout Standard
1364 Of course, this behavior isn't standard typography.
1365 In books, you typically only indent the first line of a paragraph
1369 it follows another one.
1370 The idea behind indenting the first line of a paragraph is to distinguish
1371 neighboring paragraphs from one another.
1372 If there is no previous paragraph, for example, it follows a figure, or
1373 is the first paragraph in a section, then there is no special indentation.
1377 \begin_layout Standard
1378 If you're a typical American, though, you don't care about such esoteric
1379 things; you want your indentation! Add this to the preamble:
1382 \begin_layout LyX-Code
1385 usepackage{indentfirst}
1388 \begin_layout Standard
1389 If your TeX distribution isn't a braindead one, you'll have this package,
1390 and all of your paragraphs will get the indentation you think they deserve.
1393 \begin_layout Subsubsection
1394 Example #4: This Document
1397 \begin_layout Standard
1398 You can also check out the preamble of this document to get an idea of some
1399 of the advanced things you can do.
1400 You'll probably need to make the
1405 reamble\SpecialChar \ldots{}
1408 dialog full-screen to see most of it.
1409 Also, there are more examples and an assortment of LaTeX
1410 \begin_inset Quotes eld
1414 \begin_inset Quotes erd
1417 given in Chapter\InsetSpace ~
1419 \begin_inset LatexCommand ref
1420 reference "cha:secrets"
1428 \begin_layout Section
1429 LyX and LaTeX Errors
1432 \begin_layout Standard
1433 When LyX calls LaTeX, it tells LaTeX to blithely ignore any errors and keep
1435 It then uses the log-file from the LaTeX run to do a post-mortem.
1436 As we stated earlier in the chapter, LyX generates two kinds of
1440 files, one of which it uses to locate errors in the document.
1441 If there was an error someplace, LyX will put a box with the word
1442 \begin_inset Quotes eld
1446 \begin_inset Quotes erd
1449 at the appropriate place in the document.
1453 \begin_layout Standard
1454 LyX will occasionally misguess where the error was.
1455 This will typically happen with tables, figures, math, and the preamble.
1460 It will also display a message alerting you to the fact that there were
1464 \begin_layout Standard
1465 You can navigate through the errors by using
1481 \begin_inset Quotes eld
1485 \begin_inset Quotes erd
1488 the error-boxes and view the error message LaTeX produced by clicking on
1492 \begin_layout Standard
1493 Some folks also like to look at the log file directly, accessible from
1498 ocument\SpecialChar \menuseparator
1508 There are some fairly common error messages and warnings.
1509 We'll cover those here.
1510 You should look at a good LaTeX book for a complete listing.
1513 \begin_layout Itemize
1514 \begin_inset Quotes eld
1522 \begin_inset Quotes eld
1529 \begin_layout Standard
1530 Anything beginning with these word is a warning message for the purpose
1532 \begin_inset Quotes eld
1536 \begin_inset Quotes erd
1539 the LaTeX code itself.
1540 You'll get messages like this if you added or changed cross-references
1541 or bibliography entries, in which case, LaTeX is trying to tell you that
1542 you need to make another run.
1545 \begin_layout Standard
1546 You can by-and-large ignore these.
1550 \begin_layout Itemize
1551 \begin_inset Quotes eld
1559 \begin_inset Quotes erd
1566 \begin_layout Standard
1567 Another warning message, this time about fonts which LaTeX couldn't find.
1568 The rest of the message will often say something about a replacement font
1572 \begin_layout Standard
1573 You can safely ignore these.
1577 \begin_layout Itemize
1578 \begin_inset Quotes eld
1588 \begin_inset Quotes erd
1595 \begin_layout Standard
1601 They are warning you about lines that were too long and run past the right
1603 Almost always, this is unnoticeable in the final output.
1604 Or, only one or two characters extend past the margin.
1605 LaTeX seems to generate at least one of these messages for just about any
1609 \begin_layout Standard
1610 You can ignore these stupid messages.
1611 Your eyes will tell you if there's a problem with something that's too
1612 wide; just look at the output.
1616 \begin_layout Itemize
1617 \begin_inset Quotes eld
1627 \begin_inset Quotes erd
1634 \begin_layout Standard
1635 Not quite as common as its cousin.
1636 LaTeX seems to like to print lines that are a bit too wide as opposed to
1637 ones that are a bit too narrow.
1638 We have no idea why.
1641 \begin_layout Standard
1642 You can ignore these, too.
1646 \begin_layout Itemize
1647 \begin_inset Quotes eld
1657 \begin_inset Quotes erd
1661 \begin_inset Quotes eld
1671 \begin_inset Quotes erd
1678 \begin_layout Standard
1679 Warnings about troubles breaking the page.
1680 Once again, just look at the output.
1681 Your eyes will tell you where something has gone wrong.
1685 \begin_layout Itemize
1686 \begin_inset Quotes eld
1692 \begin_inset Quotes els
1696 \begin_inset Quotes ers
1702 \begin_inset Quotes erd
1709 \begin_layout Standard
1711 \begin_inset Quotes eld
1715 \begin_inset Quotes erd
1718 isn't installed on this system.
1719 This usually appears because some package your document needs isn't installed.
1720 If you didn't touch the preamble or didn't use the
1726 command, then one of the packages LyX tried to load is missing.
1732 elp\SpecialChar \menuseparator
1739 , to get a list of packages that LyX knows about.
1740 This file is updated whenever you reconfigure LyX (using
1747 \SpecialChar \menuseparator
1752 ) and tells you which packages have been detected and what they do.
1755 \begin_layout Standard
1766 command, and the package in question isn't installed, you'll need to install
1771 \begin_layout Itemize
1772 \begin_inset Quotes eld
1777 LaTeX Error: Unknown option
1780 \begin_inset Quotes erd
1787 \begin_layout Standard
1788 Error messages beginning with this are trying to tell you that you specified
1789 a bad or undefined option to a package.
1790 Check the package's documentation.
1794 \begin_layout Itemize
1795 \begin_inset Quotes eld
1800 Undefined control sequence
1803 \begin_inset Quotes erd
1810 \begin_layout Standard
1811 If you've inserted LaTeX code into your document, but made a typo, you'll
1813 You may have forgotten to load a package.
1814 In any case, this error message usually means that you used an undefined
1819 \begin_layout Standard
1820 There are other error and warning messages.
1821 Some are self-explanatory.
1822 These are usually LaTeX messages.
1823 Others are downright cryptic.
1824 These are actually TeX error messages, and we really have
1828 what they mean or how to decipher them.
1831 \begin_layout Standard
1832 There's a general sequence you should follow if you get error messages:
1835 \begin_layout Enumerate
1836 Look at the LaTeX code you inserted for typos.
1839 \begin_layout Enumerate
1840 If there are no typos, check and see that you used the command(s) correctly.
1843 \begin_layout Enumerate
1844 If you get a bunch of error boxes piled up at the very top of the document,
1845 it means that there are errors in the preamble.
1846 Start debugging your preamble.
1849 \begin_layout Enumerate
1850 If you didn't add anything to the preamble and didn't add any LaTeX code
1851 to the document, the first suspect is your LaTeX distribution itself.
1852 Check for missing packages and install them.
1855 \begin_layout Enumerate
1856 Okay, so there are no missing packages.
1857 Did you use any of the fine-tuning options in LyX? Specifically, did you
1862 any of them, like trying to manually insert lots of
1864 Protected\InsetSpace ~
1875 s? Did you try to kludge something together with these instead of using
1876 the appropriate paragraph environment?
1879 \begin_layout Enumerate
1880 All right, you didn't use any of the fine-tuning options, you played by
1882 Did you try to pull a fancy maneuver? Did you do something funky inside
1883 a table or an equation, like inserting a graphic into a table cell?
1886 \begin_layout Enumerate
1887 Do you have long sections of text where LaTeX cannot find a place to break
1888 a line? By default, LaTeX is rather strict about how much extra inter-word
1889 spacing it will add in order to break a line.
1890 Preferably, you should rework the paragraph to avoid the problem.
1891 If this isn't an option, you can wrap your text in
1897 to make LaTeX's line breaking more, well, sloppy.
1900 \begin_layout Enumerate
1901 Did you go overboard with the nesting? LyX (currently) doesn't check to
1902 make sure you're in the limits for nesting environments.
1903 If you nested a bunch of environments to the
1904 \begin_inset Formula $17^{\mathrm{th}}$
1907 level, that's the problem.
1910 \begin_layout Enumerate
1911 Okay, you didn't get any error messages, but your output looks whacked.
1912 If you have a table or figure that's too wide or long for the page, you
1917 \begin_layout Enumerate
1918 rescale the figure so it fits.
1921 \begin_layout Enumerate
1922 trim down the table so it fits.
1925 \begin_layout Standard
1926 If something else is wrong with the output, and you didn't try to pull anything
1927 fancy or kludge the fine-tuning options, we're not sure what's wrong.
1931 \begin_layout Standard
1932 If all this doesn't help --- well, then
1936 you might have found a bug in LyX\SpecialChar \ldots{}
1940 \begin_layout Chapter
1944 \begin_layout Section
1945 Preparing a Bibliography with BibTeX
1946 \begin_inset LatexCommand label
1947 name "sec:Preparing-a-Bibliography"
1954 \begin_layout Standard
1961 Jürgen Spitzmüller
1964 \begin_layout Standard
1965 \begin_inset VSpace bigskip
1971 \begin_layout Standard
1973 STOP! If you don't know what BibTeX is, or have a reasonably good idea of
1976 e.\InsetSpace \thinspace{}
1980 setting up your own bibliographic databases),
1984 , do not walk, to your nearest copy of the 2nd edition of Lamport's
1986 LaTeX: A Document Preparation System
1988 , particularly Appendix B.
1989 The rest of this discussion assumes you have created a correct bibliography
1990 file, that you have all relevant environment variables set correctly (esp.
2003 ), and that if sufficiently desperate, you could create and
2004 \begin_inset Quotes eld
2008 \begin_inset Quotes erd
2011 a LaTeX file with a BibTeX database.
2015 \begin_layout Standard
2016 For those who don't know what BibTeX is, it is a system for creating a large
2017 database of your most used journal references.
2018 For all future articles you write, you only need to include this standard
2019 database and reference the appropriate key to each reference.
2020 Even if you write only a few papers with handful of references each, it
2021 is well worth your time to examine BibTeX and decide whether it will be
2025 \begin_layout Standard
2026 To use BibTeX with LyX, first read the
2030 where it describes how to insert citations.
2031 The basic mechanism for inserting BibTeX references is the same.
2032 Then, at the very end of your document, select
2034 Insert\SpecialChar \menuseparator
2039 TOC\SpecialChar \menuseparator
2043 In the resulting dialog, fill out the dialog boxes as follows:
2046 \begin_layout Description
2047 Database: enter the name of your
2060 For searching multiple
2064 files, just enter them in the desired order, separated by commas.
2068 \begin_layout Description
2069 Style: enter the name of your BibTeX style file *without* the
2074 The default style is
2078 (which should be included in your LaTeX distribution, so you don't have
2079 to worry about creating it).
2082 \begin_layout Standard
2083 For each citation, assuming that the source is in the
2092 nsert\SpecialChar \menuseparator
2099 at the correct location in the text, and enter the appropriate reference
2101 Nothing else is required; when invoking
2106 iew\SpecialChar \menuseparator
2113 , for example, you should see that BibTeX and LaTeX are invoked as needed,
2114 including multiple invocations of LaTeX.
2118 \begin_layout Subsection
2119 Alternative Citation Styles
2122 \begin_layout Standard
2123 Standard BibTeX uses numbers (e.\InsetSpace \thinspace{}
2124 g.\InsetSpace \space{}
2126 \begin_inset Quotes eld
2130 \begin_inset Quotes erd
2133 ) to refer to a cited work.
2134 However, in many scientific disciplines, other citation styles are in use.
2135 The most common one is the author-year style (e.\InsetSpace \thinspace{}
2136 g.\InsetSpace \space{}
2138 \begin_inset Quotes eld
2142 \begin_inset Quotes erd
2146 LyX supports two packages that provide this style,
2155 Both packages have their own pros and cons, which cannot be listed in detail.
2156 If you only want to have simple author-year (or author-numerical) style
2157 or if you want to use one of the countless style files for natbib, than
2162 package is probably your choice.
2163 If you need special features like short title references, ibidem etc., you
2164 might consider the fairly new
2171 \begin_layout Standard
2172 The handling of both packages in LyX is basically the same.
2178 ocument\SpecialChar \menuseparator
2189 pane (with the xforms frontend: the
2203 With both packages, you will get some extra features in the citation dialog
2204 and you can select the style of the reference (
2205 \begin_inset Quotes eld
2209 \begin_inset Quotes erd
2213 \begin_inset Quotes eld
2217 \begin_inset Quotes erd
2221 \begin_inset Quotes eld
2225 \begin_inset Quotes erd
2229 \begin_inset Quotes eld
2233 \begin_inset Quotes erd
2237 Note that both packages need specifically designed style files (they both
2238 ship their own, while there are lots of additional style files and even
2239 an interactive style file builder
2243 \begin_layout Standard
2245 \begin_inset LatexCommand url
2246 target "ftp://ctan.tug.org/tex-archive/macros/latex/contrib/custom-bib/"
2262 \begin_layout Subsection
2263 Sectionated Bibliographies
2264 \begin_inset LatexCommand label
2265 name "sub:Sectionated-Bibliographies"
2272 \begin_layout Standard
2273 Sometimes you might need to divide your bibliography into several sections.
2274 If you are, for instance, a historian, the possibility to separate sources
2275 and scientific works is most likely a
2276 \begin_inset Quotes eld
2280 \begin_inset Quotes erd
2284 Unfortunately, BibTeX itself does not allow you to do this.
2285 The good news is, though: With the help of some LaTeX packages, BibTeX
2286 can be extended to fit your historical needs.
2289 \begin_layout Standard
2290 As of version 1.4, LyX provides native support for one of these packages,
2299 \begin_layout Standard
2301 \begin_inset LatexCommand url
2302 target "ftp://ctan.tug.org/tex-archive/macros/latex/contrib/bibtopic/"
2311 The advantage of this package (compared to other packages like
2315 ) is that you don't need to define new citation commands.
2316 Instead, you need to prepare different bibliographic databases which include
2317 the entries for the different sections of the bibliography.
2318 For example: If you want to divide your bibliography into the sections
2320 \begin_inset Quotes eld
2324 \begin_inset Quotes erd
2328 \begin_inset Quotes eld
2332 \begin_inset Quotes erd
2335 , you first need to create two bibliographic databases, e.\InsetSpace \thinspace{}
2336 g.\InsetSpace \space{}
2349 \begin_layout Standard
2355 ocument\SpecialChar \menuseparator
2366 pane (with the xforms frontend: the
2373 Sectionated\InsetSpace ~
2377 Now you can insert multiple BibTeX references (as described in section\InsetSpace ~
2379 \begin_inset LatexCommand ref
2380 reference "sec:Preparing-a-Bibliography"
2384 ), one for each section of your bibliography.
2385 Returning to our example: Insert a BibTeX reference for the database
2389 and a second one for the database
2394 You are free to use the same or different styles for each section.
2395 Additionally, you can chose if the bibliography section should contain
2397 \begin_inset Quotes eld
2400 all cited references
2401 \begin_inset Quotes erd
2404 of the specified database(s) (which is the default),
2405 \begin_inset Quotes eld
2408 all uncited references
2409 \begin_inset Quotes erd
2413 \begin_inset Quotes eld
2417 \begin_inset Quotes erd
2421 This might be useful if you would like to separate your bibliography into
2423 \begin_inset Quotes eld
2427 \begin_inset Quotes erd
2431 \begin_inset Quotes eld
2435 \begin_inset Quotes erd
2439 \begin_inset Quotes eld
2443 \begin_inset Quotes erd
2447 The titles for the sections can be added as ordinary sections or subsections.
2452 removes the bibliography title, you have manually re-add that, too (as
2453 a chapter* or section*, for instance).
2456 \begin_layout Subsection
2457 Multiple Bibliographies
2460 \begin_layout Standard
2461 Multiple bibliographies, e.\InsetSpace \thinspace{}
2462 g.\InsetSpace \space{}
2463 a bibliography for each section or chapter of
2464 the document, are not supported by BibTeX itself.
2469 package, which is used for the creation of sectionated bibliographies in
2470 LyX (cf.\InsetSpace ~
2471 section\InsetSpace ~
2473 \begin_inset LatexCommand ref
2474 reference "sub:Sectionated-Bibliographies"
2478 ), provides an easy way to solve this task, if you are willing to use some
2479 LaTeX-Code (ERT, cf.\InsetSpace ~
2480 section\InsetSpace ~
2482 \begin_inset LatexCommand ref
2483 reference "sec:Inserting-LaTeX-Code"
2491 \begin_layout Standard
2492 An alternative approach is to use the
2500 package, respectively.
2508 \begin_layout Standard
2514 ocument\SpecialChar \menuseparator
2525 pane (with the xforms frontend: the
2532 Sectionated\InsetSpace ~
2536 In the document, you have to enclose the sections, which shall contain
2537 their own bibliography (including the BibTeX reference itself), between
2550 (those commands have to be inserted as ERT).
2551 The bibliography will contain all references which have been cited in the
2553 N.\InsetSpace \thinspace{}
2554 B.: If you are using this approach, then
2558 citation reference has to be inside some btUnit.
2559 Also, the btUnits cannot be nested.
2562 \begin_layout Standard
2566 \begin_layout Section
2570 \begin_layout Subsection
2574 \begin_layout Standard
2575 When you are working on a large file with many sections, it is often convenient
2576 to break up the document into several files, or perhaps you have something
2577 where a table may change from time to time, but the preceding text does
2579 In these cases, you should seriously consider using multipart documents.
2580 For example, scientific papers often have five major sections: the introduction
2581 , observations, results, discussion, and conclusion.
2582 Each of these could be its own separate LyX file, with one
2583 \begin_inset Quotes eld
2587 \begin_inset Quotes erd
2590 file which contains the title, authors, abstract, references, etc., plus
2591 the five included files.
2592 It is important to note that each of these files is a full LyX file which
2593 can be formatted and printed on its own, as well as included in a master
2595 Each of these files must have the same document class, however--- don't
2596 attempt to mix book classes with article classes.
2597 You may also include LaTeX files; however, these files must not have their
2603 everything up to and including the
2615 line must be deleted) or else errors will be generated when you try to
2619 \begin_layout Standard
2620 LyX allows you to include files quite easily with
2625 nsert\SpecialChar \menuseparator
2634 When you click on this selection a small box is inserted into the file
2635 at the current cursor location.
2636 Clicking on the box raises a dialog which allows you to select the file
2637 to be included, and the method of its inclusion.
2641 \begin_layout Standard
2642 The file selection box should by now be obvious.
2643 The three inclusion methods are
2644 \begin_inset Quotes eld
2648 \begin_inset Quotes erd
2652 \begin_inset Quotes eld
2656 \begin_inset Quotes erd
2660 \begin_inset Quotes eld
2664 \begin_inset Quotes erd
2668 The difference between
2669 \begin_inset Quotes eld
2673 \begin_inset Quotes erd
2677 \begin_inset Quotes eld
2681 \begin_inset Quotes erd
2684 is really only meaningful to LaTeXperts, but the practical difference is
2685 that files which are
2686 \begin_inset Quotes eld
2690 \begin_inset Quotes erd
2693 are typeset beginning on a new page, while files which are
2694 \begin_inset Quotes eld
2698 \begin_inset Quotes erd
2701 are typeset starting on the current page.
2702 Perhaps the labeling in LyX will be changed someday to reflect this.
2705 \begin_layout Standard
2706 Generally, the master file is converted into a full LaTeX file before typesettin
2707 g, while the included files are converted to LaTeX files which do not have
2708 all the preamble information.
2718 button prevents this conversion.
2721 \begin_layout Standard
2723 \begin_inset Quotes eld
2727 \begin_inset Quotes erd
2730 included file allows you to include a file typeset exactly as it appears
2731 in the file, i.e.\InsetSpace ~
2732 verbatim mode, with the characters set in a fixed-width
2734 Normally, spaces in this file are invisible, though two consecutive spaces
2735 are conserved, unlike LyX's normal treatment of spaces.
2736 However, setting the
2746 checkbox typesets a mark to unambiguously define the presence of a space.
2750 \begin_layout Subsection
2751 Cross-References Between Files
2754 \begin_layout Standard
2755 It is possible to set up cross-references between the different files.
2756 First, open all the files in question: let's call them A and B in a two
2757 file example, where B is included in A.
2758 Let's say you insert a label in A, then want to reference it in B.
2759 Open the cross-reference dialog in whilst in document B, and you can select
2761 \begin_inset Quotes eld
2765 \begin_inset Quotes erd
2771 \begin_layout Section
2772 Fancy Headers and Footers
2775 \begin_layout Standard
2776 The default page layout is rather plain; for an article document class,
2777 all you get is a centered page number at the bottom of the page.
2778 This document is the book class, so it appears to be a bit fancier, but
2779 to really put on a show, you need to set the document page style to
2780 \begin_inset Quotes eld
2784 \begin_inset Quotes erd
2787 , as mentioned in the
2793 This section describes the LaTeX codes you need to insert in your LaTeX
2794 preamble or the text in order to get the desired effects.
2797 \begin_layout Standard
2798 The page header is divided into three fields, not surprisingly labeled
2799 \begin_inset Quotes eld
2803 \begin_inset Quotes erd
2807 \begin_inset Quotes eld
2811 \begin_inset Quotes erd
2815 \begin_inset Quotes eld
2819 \begin_inset Quotes erd
2823 The footer is also divided into these three fields.
2824 The LaTeX commands to set these fields in the simplest manner are
2849 Suppose you wish to put your name in the upper left hand corner of each
2851 Simply insert the following command in the preamble:
2854 \begin_layout Standard
2863 \begin_layout Standard
2864 You will now see your name in the upper left.
2865 If a field has a default entry that you would like to get rid of (often
2866 the page number appears in the central footer, simply include a command
2867 with a blank argument, e.\InsetSpace \thinspace{}
2871 \begin_layout Standard
2879 \begin_layout Standard
2880 Let's get really fancy: lets put the section number with the word
2881 \begin_inset Quotes eld
2885 \begin_inset Quotes erd
2888 (e.\InsetSpace \thinspace{}
2890 Section 3) in the upper left, the page number (e.\InsetSpace \thinspace{}
2892 Page 4) in the upper
2893 right, your name in the lower left, and the date in the lower right.
2894 The following commands should now appear in the preamble:
2897 \begin_layout Standard
2907 \begin_layout Standard
2915 \begin_layout Standard
2925 \begin_layout Standard
2934 \begin_layout Standard
2942 \begin_layout Standard
2952 \begin_layout Standard
2965 access LaTeX's section and page counters, and so print out the current
2966 section and page numbers.
2973 simply prints out today's date.
2976 \begin_layout Standard
2977 The thicknesses of the horizontal rules drawn beneath the header and above
2978 the footer can also be modified.
2979 If you don't want one of the headers, set its thickness to 0.
2980 The header rule has a default thickness of 0.4pt, the footer rule is 0pt.
2981 Use the commands, e.\InsetSpace \thinspace{}
2989 headrulewidth}{0.4pt}
2997 footrulewidth}{0.4pt}
2999 to set the thicknesses.
3002 \begin_layout Standard
3003 You can switch the header/footer settings on and off for individual pages
3008 thispagestyle{empty}
3014 thispagestyle{plain}
3020 thispagestyle{fancy}
3023 Simply insert them in the text on the page you want changed and mark them
3025 In fact, title pages are marked as plain by default, while following pages
3026 are marked fancy when using the global fancy setting.
3029 \begin_layout Standard
3030 There are more complex commands which will let you insert things in the
3031 upper left on odd numbered pages, etc., but I will refer you to the
3035 package documentation for more descriptions.
3036 For example, if you have a teTeX installation, look for
3038 /usr/share/texmf/doc/latex/fancyhdr/\SpecialChar \-
3044 \begin_layout Standard
3045 As a final example, it is possible to include an Encapsulated PostScript
3046 file in the header or footer.
3047 Suppose you want to put a company logo in the upper lefthand corner.
3048 You might try something like
3051 \begin_layout Standard
3060 includegraphics{logo.eps}}}
3063 \begin_layout Standard
3065 (you may need to preface this with
3069 usepackage{graphics}
3071 if you don't include EPS files elsewhere in your document).
3074 \begin_layout Section
3075 Itemize Bullet Selection
3076 \begin_inset LatexCommand label
3084 \begin_layout Standard
3090 \begin_layout Subsection
3094 \begin_layout Standard
3095 LyX provides 216 bullet shapes that can be accessed from a simple dialog.
3096 Using this dialog you can easily specify what bullet shape to use at each
3097 level of an itemized list.
3098 These settings are document-wide so you won't be able to specify different
3099 sets of bullets for different paragraphs
3103 \begin_layout Standard
3104 Well, actually you can but you'll have to do it by hand.
3112 \begin_layout Subsection
3116 \begin_layout Standard
3117 Open the dialog by selecting the
3122 ocument\SpecialChar \menuseparator
3129 menu item and then select the
3139 \begin_layout Standard
3140 The dialog provides you with a table of bullet shapes.
3141 A column of buttons on the left of the table provides access to the six
3142 different panels of bullet shapes.
3143 The row of buttons across the top is used to select which bullet depth
3145 A text entry under the table shows the currently selected bullet shape's
3146 LaTeX equivalent and this can be edited if desired.
3147 If you do modify the text you will also need to specify any needed packages
3148 in the LaTeX preamble.
3151 \begin_layout Standard
3152 The six panels are divided up by the packages they require.
3153 The following table shows the mappings from button name to LaTeX packages.
3156 \begin_layout Standard
3158 \begin_inset Tabular
3159 <lyxtabular version="3" rows="7" columns="2">
3161 <column alignment="center" valignment="top" leftline="true" width="0pt">
3162 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0pt">
3163 <row topline="true" bottomline="true">
3164 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3167 \begin_layout Standard
3182 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3185 \begin_layout Standard
3201 <row topline="true">
3202 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3205 \begin_layout Standard
3220 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3223 \begin_layout Standard
3238 <row topline="true">
3239 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3242 \begin_layout Standard
3257 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3260 \begin_layout Standard
3276 <row topline="true">
3277 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3280 \begin_layout Standard
3295 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3298 \begin_layout Standard
3314 <row topline="true">
3315 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3318 \begin_layout Standard
3333 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3336 \begin_layout Standard
3352 <row topline="true">
3353 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3356 \begin_layout Standard
3371 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3374 \begin_layout Standard
3390 <row topline="true" bottomline="true">
3391 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3394 \begin_layout Standard
3409 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3412 \begin_layout Standard
3435 \begin_layout Standard
3436 LyX doesn't stop you using bullets from packages you don't have.
3437 If you get errors from LaTeX when you try to view or print the file then
3438 its likely you are missing a package.
3439 LyX doesn't restrict your use since you may be editing locally and exporting
3443 \begin_layout Subsection
3447 \begin_layout Standard
3448 Select which bullet depth you want to change then select the bullet shape
3450 Any changes will not be visible in LyX, but are visible when viewing the
3451 document using xdvi or ghostview.
3454 \begin_layout Standard
3455 You can reset a bullet shape to the default simply by clicking your right
3456 mouse button on the appropriate bullet depth button.
3459 \begin_layout Standard
3464 want to have multiple sets of paragraphs with different sets of bullets
3465 in each then you're going to have to get your hands dirty.
3466 The itemize bullet selection dialog can help though because it provides
3467 you with the LaTeX code for a wide range of bullet shapes.
3468 To make your own custom paragraphs you have the following options:
3471 \begin_layout Standard
3475 \begin_layout Standard
3491 \begin_layout Standard
3495 \begin_layout Standard
3517 \begin_layout Itemize
3518 Use the LaTeX command
3524 to specify a new bullet shape for a given depth.
3525 You'll also need to save the current bullet shape so you can restore it
3527 In this itemized list the following LaTeX code was used to change the bullet
3528 used for the first depth.
3560 Note that the itemize depth is specified in Roman numerals as part of the
3570 \begin_layout Itemize
3574 \begin_layout Standard
3587 Specify each individual entry by starting each item with the bullet shape
3588 enclosed in square brackets and set as TeX.
3589 For example, this item was started with
3602 \begin_layout Standard
3606 \begin_layout Standard
3622 \begin_layout Standard
3623 You'll also need to revert the labelitem back to its previous setting for
3624 the global bullet shape settings to remain in effect.
3625 The way used here was:
3638 \begin_layout Chapter
3639 Special Document Classes
3642 \begin_layout Section
3646 \begin_layout Standard
3652 \begin_layout Standard
3653 \begin_inset VSpace bigskip
3659 \begin_layout Standard
3661 The AMS LaTeX layouts are set up to conform to suggested styles for mathematical
3662 papers to be submitted to American Mathematical Society publications.
3663 The layouts are not tailored to a specific journal, but easily can be.
3664 You should refer to the AMS documentation for specific instructions for
3665 each journal (usually it will entail only changing a single line in the
3667 That documentation is available on the Web at
3668 \begin_inset LatexCommand url
3669 target "http://www.ams.org"
3674 \begin_inset LatexCommand url
3675 target "ftp://ftp.ams.org/pub/tex/amslatex/"
3679 .These layouts are appropriate, and useful, for any mathematical writing.
3680 There are currently 4 distinct AMS LaTeX layouts:
3683 \begin_layout Enumerate
3684 amsart: The standard AMS-article format.
3685 All results and similar statements are numbered as
3686 \begin_inset Formula $(n.m)$
3689 , where the first number refers to the section, and the second refers to
3690 the total number of results (Theorems, Corollaries, Propositions, Definitions
3691 and Remarks, etc.) in that section.
3692 There are also many (but not all) environments available unnumbered, which
3693 is occasionally needed.
3694 Unnumbered environments indicated by an asterisk at the end.
3697 \begin_layout Enumerate
3698 amsart-seq: Here, numbering for each type of statement is in its own sequence,
3699 with no reference to the section number.
3700 There are also many (but not all) environments available unnumbered, which
3701 is occasionally needed.
3702 Unnumbered environments indicated by an asterisk at the end.
3705 \begin_layout Enumerate
3706 amsart-plain: This one is even more terse, since all the environments are
3710 \begin_layout Enumerate
3711 amsbook: the standard AMS book (really, monograph) format.
3712 Numbering is similar to the amsart layout, except that all numbering is
3714 \begin_inset Formula $(n.m.p)$
3717 , where the first number refers to the chapter, the second to the section,
3718 and the third is the number of the results (Theorems, Corollaries, Propositions
3719 , Definitions and Remarks, etc.) in that section.
3720 There are also many (but not all) environments available unnumbered, which
3721 is occasionally needed.
3722 Unnumbered environments indicated by an asterisk at the end.
3725 \begin_layout Standard
3726 Any AMS LyX file can be converted to either of the numbering schemes by
3727 simply changing the document class in the
3732 ocument\SpecialChar \menuseparator
3743 \begin_layout Subsection
3744 What these layouts provide
3747 \begin_layout Standard
3748 There is a long list of included environments provided by these layouts.
3749 Most mathematical papers or books will set as special statements most of
3750 these environments, in AMS-LaTeX there is an opportunity to define an unlimited
3751 variety of such declarations.
3752 However, the AMS recommends the environments that are available in LyX.
3753 The list of environments (not counting the standard environments such as
3756 sections, bibliography, title, author, date
3761 \begin_layout Description
3762 Theorem This is typically used for the statements of major results.
3764 \begin_inset Quotes eld
3772 \begin_inset Quotes erd
3775 appears in bold type, along with an automatically-determined number (an
3780 , is also available).
3781 The text is italicized.
3784 \begin_layout Description
3785 Corollary This is used for statements which follow fairly directly from
3786 previous statements.
3787 Again, these can be major results.
3795 \begin_layout Description
3796 Lemma These are smaller results needed to prove other statements.
3799 \begin_layout Description
3800 Proposition These are less major results which (hopefully) add to the general
3801 theory being discussed.
3804 \begin_layout Description
3805 Conjecture These are statements provided without justification, which the
3806 author does not know how to prove, but which seem to be true (to the author,
3810 \begin_layout Description
3811 Criterion A required condition.
3814 \begin_layout Description
3815 Algorithm A general procedure to be used.
3818 \begin_layout Description
3819 Axiom This is a property or statement taken as true within the system being
3823 \begin_layout Description
3824 Definition Guess what this is for.
3825 The font, both on-screen and in the output, is different for this environment
3826 than for the previous ones.
3828 \begin_inset Quotes eld
3832 \begin_inset Quotes erd
3835 ) is still set in boldface, along with the number, if any, but the rest
3839 \begin_layout Description
3840 Example Typeset similarly to Definition.
3843 \begin_layout Description
3847 \begin_layout Description
3851 \begin_layout Description
3855 \begin_layout Description
3856 Remark This environment is also a new type of theorem.
3857 This is set with the word Remark in italics, and the rest upright.
3860 \begin_layout Description
3861 Note Set similarly to the Remark environment.
3864 \begin_layout Description
3868 \begin_layout Description
3872 \begin_layout Description
3876 \begin_layout Description
3880 \begin_layout Description
3881 Case Generally, these are used to break up long arguments, using specific
3882 instances of some condition.
3883 The numbering scheme for cases is on its own, not together with other numbered
3888 \begin_layout Description
3892 \begin_layout Description
3896 \begin_layout Description
3898 \begin_inset Quotes eld
3906 \begin_inset Quotes erd
3909 is set in italics, but the rest is set upright.
3910 At the end of this environment (other environments can be nested within
3911 this one, of course) a QED symbol (usually a square, but it can vary with
3912 different styles) is placed.
3915 \begin_layout Description
3916 Address This should be the author's permanent address.
3919 \begin_layout Description
3920 Current\InsetSpace ~
3921 Address This should be the author's temporary address at the time
3922 of submission, if different from the Address.
3925 \begin_layout Description
3926 Email Author's e-mail address
3929 \begin_layout Description
3930 URL Author's Web address, if desired.
3933 \begin_layout Description
3934 Keywords Key words or phrases used to identify specific topics discussed
3938 \begin_layout Description
3939 Subjectclass These refer to the AMS Subject Classifications, published and
3942 Mathematical Reviews
3945 These are also available online at the AMS cites listed above.
3948 \begin_layout Description
3952 \begin_layout Description
3956 \begin_layout Description
3960 \begin_layout Standard
3961 In addition, these environments automatically provide the AMS LaTeX and
3963 They need to be available on your system in order to use these environments.
3966 \begin_layout Section
3970 \begin_layout Standard
3975 can be used to type letters according to German conventions.
3976 A template file is included in
3978 .../lyx/share/templates
3980 for you to use as a starting point.
3983 \begin_layout Section
3987 \begin_layout Standard
3992 provides an alternative to the standard
3997 It provides similar functionality, but you might prefer this layout with
3998 sans serif sections, headings, and more.
4001 \begin_layout Section
4005 \begin_layout Standard
4011 \begin_layout Subsection
4015 \begin_layout Standard
4016 This section describes how LyX can be used to write articles for submission
4017 to the scientific journal
4019 Astronomy and Astrophysics
4022 \begin_inset LatexCommand url
4023 name "www.edpsciences.fr/aa/"
4024 target "http://www.edpsciences.fr/aa/"
4028 ) using Version 5.01 of the document class
4033 This package can be downloaded from the ftp site
4036 \begin_layout Standard
4037 \begin_inset VSpace medskip
4043 \begin_layout Standard
4045 \begin_inset LatexCommand url
4046 target "ftp://ftp.edpsciences.org/pub/aa/readme.html"
4053 \begin_layout Standard
4054 \begin_inset VSpace medskip
4060 \begin_layout Standard
4061 A manual comes together with that package, and this text is not meant to
4062 replace the original manual but merely a short guide how to realize the
4063 correct form of your paper.
4067 \begin_layout Standard
4068 Please note that the publisher of the journal was changed from Springer
4069 to EDP Sciences starting January 1, 2001.
4070 That change implicated also some slight changes of the style files, namely
4071 the removal of the thesaurus command.
4072 The LyX class aa supports the newest version of these style files, V 5.01.
4073 If you have an older version installed, please upgrade.
4074 For compatibility, the old (version 4) layout has been kept as
4079 Please refer to the comments in
4081 LyXDir/layouts/aapaper.layout
4086 \begin_layout Subsection
4090 \begin_layout Standard
4091 It is recommended you start from the example template distributed with LyX.
4092 If you are not using a template, note the following settings:
4095 \begin_layout Itemize
4105 ocument\SpecialChar \menuseparator
4112 dialog (OK, that one was obvious).
4115 \begin_layout Itemize
4116 Don't change the option
4126 The whole layout is done by the macros, you shouldn't change anything.
4129 \begin_layout Subsection
4133 \begin_layout Standard
4134 First thing to enter is the header information.
4135 It consists of seven entries, of which some are optional.
4139 \begin_layout Itemize
4147 \begin_layout Itemize
4155 \begin_layout Itemize
4163 \begin_layout Itemize
4171 \begin_layout Itemize
4176 : [optional] if more than one author: whom to contact for offprint requests.
4179 \begin_layout Itemize
4184 : [optional] mail address for contacts.
4187 \begin_layout Itemize
4195 Received: <date>; Accepted <date>
4198 \begin_layout Standard
4199 There is no need to issue the
4205 command, this is done automatically by LyX when the header is finished.
4206 Although the order of the single header entries doesn't matter it is advised
4207 to keep the above sequence, just to get the best optics and meets the layout
4208 of the real document.
4211 \begin_layout Standard
4212 If you want to place footnotes in the header block, e.\InsetSpace \thinspace{}
4217 \begin_layout Standard
4226 to state your present address, just use the standard footnote via
4231 nsert\SpecialChar \menuseparator
4239 LyX will automagically use the term
4248 \begin_layout Standard
4249 In addition to these topics, the macros use three additional LaTeX commands
4250 that have no counterpart in LyX:
4253 \begin_layout Itemize
4260 to separate different names for more than one author and institute, respectivel
4264 \begin_layout Itemize
4271 to mark corresponding author/institute pairs.
4272 The institutes are numbered sequentially as they appear in the
4276 field, so you have to put a marker to each author.
4279 \begin_layout Itemize
4286 to supply an email address for fast contact.
4289 \begin_layout Standard
4290 In all cases, the appropriate command has to be entered in LyX and marked
4296 \begin_layout Subsection
4300 \begin_layout Standard
4301 The abstract should immediately follow the header block.
4302 With version 5 the abstract environment was changed to a command, and there
4303 is now a resctriction to only one paragraph.
4304 In addition, it should contain an entry with the keywords.
4305 This is not yet implemented for LyX, therefore you have to enter the LaTeX
4312 by hand and mark it as LaTeX code.
4313 Refer to the example paper.
4316 \begin_layout Subsection
4317 Supported environments
4320 \begin_layout Standard
4321 The A&A paper layout supports the following environments for structuring
4325 \begin_layout Itemize
4331 \begin_layout Itemize
4337 \begin_layout Itemize
4343 \begin_layout Itemize
4349 \begin_layout Itemize
4355 \begin_layout Itemize
4361 \begin_layout Itemize
4367 \begin_layout Itemize
4373 \begin_layout Itemize
4379 \begin_layout Itemize
4385 \begin_layout Itemize
4391 \begin_layout Itemize
4397 \begin_layout Subsection
4398 Commands not supported by LyX
4401 \begin_layout Standard
4402 Some commands are not yet supported by the
4407 Some have already been mentioned.
4408 For the sake of completeness, they are listed all together here:
4411 \begin_layout Itemize
4419 \begin_layout Itemize
4427 \begin_layout Itemize
4435 \begin_layout Itemize
4443 \begin_layout Itemize
4451 \begin_layout Itemize
4459 \begin_layout Itemize
4467 \begin_layout Itemize
4475 \begin_layout Standard
4476 If you want to use any of these commands, you have to enter them yourself.
4479 Do not forget to mark them as LaTeX code!
4482 \begin_layout Subsection
4483 Figure and Table Floats
4486 \begin_layout Standard
4487 LyX provides support for the necessary float environments
4489 figure, figure*, table
4495 , therefore we won't tell much about it here.
4502 Just remember that tables should be left-aligned.
4503 For that, select the table and change the alignment in
4508 dit\SpecialChar \menuseparator
4513 aragraph\InsetSpace ~
4517 \begin_layout Standard
4518 There is only one special thing: the figures with caption besides the figure.
4519 To create such a figure, you have to do the following:
4522 \begin_layout Enumerate
4523 Create a wide figure float:
4528 nsert\SpecialChar \menuseparator
4533 t\SpecialChar \menuseparator
4536 , then right click in the figure and select
4547 \begin_layout Enumerate
4548 Enter your caption text.
4551 \begin_layout Enumerate
4556 to move the cursor above the caption.
4559 \begin_layout Enumerate
4563 \begin_layout Enumerate
4564 Position the cursor behind the figure and insert a horizontal fill:
4569 nsert\SpecialChar \menuseparator
4577 \SpecialChar \menuseparator
4580 orizontal\InsetSpace ~
4586 \begin_layout Enumerate
4587 Switch to LaTeX mode:
4595 \begin_layout Enumerate
4605 Do not close the brace!
4608 \begin_layout Enumerate
4609 Position the cursor behind the caption text, switch to LaTeX mode and insert
4622 \begin_layout Standard
4623 Also, refer to the figures in the example paper.
4626 \begin_layout Subsection
4630 \begin_layout Standard
4631 For submission, the paper has to be formated in a special double-spacing
4633 For this purpose, you have to give the option
4637 to the documentclass.
4638 This must be done using the extra class options field in the
4643 ocument\SpecialChar \menuseparator
4651 Just enter the string
4658 \begin_layout Subsection
4662 \begin_layout Standard
4667 directory contains an example paper written with LyX.
4668 It is the example paper from the original macro package, translated to
4670 Use it for inspiration, and compare the original LaTeX code with LyX way
4674 \begin_layout Section
4678 \begin_layout Standard
4684 \begin_layout Subsection
4688 \begin_layout Standard
4689 AASTeX is a set of macros produced by the American Astronomical Society
4690 to facilitate electronic manuscript submission to the three journals they
4691 publish: the Astrophysical Journal (including the Letters and Supplement),
4692 the Astronomical Journal, and the Publications of the Astronomical Society
4694 LyX has proven to be an excellent tool for generating these documents,
4695 especially given its equation, citation, and figure handling capabilities.
4696 LyX requires version 5.0 (or higher) of these macros; preferably 5.2, which
4697 is the version described here, or higher.
4698 Versions prior to 5.0 are intended for use with LaTeX2.09 and are fundamentally
4699 incompatible with LyX.
4700 The AASTeX package may be downloaded from the AASTeX Web site
4703 \begin_layout Standard
4704 \begin_inset VSpace medskip
4710 \begin_layout Standard
4712 \begin_inset LatexCommand url
4713 target "http://www.journals.uchicago.edu/AAS/AASTeX"
4720 \begin_layout Standard
4721 \begin_inset VSpace medskip
4727 \begin_layout Standard
4728 A complete user guide is contained in that package and you should familiarize
4729 yourself with it thoroughly before embarking on writing a paper in LyX.
4730 LyX will not reduce the need to figure out all the AASTeX commands, it
4731 will only reduce the drudgery of typing everything in.
4732 It is your responsibility to ensure that the final exported LaTeX document
4733 conforms completely to the requirements of the journal to which you are
4734 submitting your paper.
4737 \begin_layout Subsection
4738 Starting a New Paper
4741 \begin_layout Standard
4742 I strongly suggest that you start with the AASTeX template file.
4748 ile\SpecialChar \menuseparator
4758 , enter the new file name, then choose the
4763 This will show the most common fields found in a manuscript.
4764 Simply overwrite the existing text (including the brackets,
4768 ) with the correct information.
4769 Many of the AASTeX commands and environments can be implemented directly
4770 in LyX, but some cannot: most noticeably
4782 , which should stick out like a sore thumb if you actually just opened the
4784 For commands such as these, the LaTeX code must be entered directly and
4786 Such commands are referred to as ERT, or Evil Red Text.
4787 I tried to minimize the amount of ERT needed in an AASTeX document, but
4788 there is still a bit more required than any of us would like.
4791 \begin_layout Subsection
4792 Finishing Your Paper
4795 \begin_layout Standard
4796 When the paper is finished to your satisfaction and previews/prints correctly,
4798 \begin_inset Quotes eld
4802 \begin_inset Quotes erd
4805 actions which need to be done before you submit it to the journals.
4809 \begin_layout Enumerate
4810 Export your paper as a LaTeX file (
4815 ile\SpecialChar \menuseparator
4820 xport\SpecialChar \menuseparator
4831 \begin_layout Enumerate
4836 file with your favorite text editor
4840 \begin_layout Enumerate
4841 remove the comment lines before the
4850 \begin_layout Enumerate
4855 usepackage...{fontenc}
4857 line if it appears (usually just after
4872 \begin_layout Enumerate
4873 remove everything between (and including) the
4885 commands, except for any commands you specifically put into the LaTeX preamble
4886 (which should appear immediately after the
4887 \begin_inset Quotes eld
4890 User specified LaTeX commands
4891 \begin_inset Quotes erd
4902 \begin_layout Enumerate
4903 Run the resulting file through LaTeX to make sure it still processes correctly.
4906 \begin_layout Enumerate
4907 Reread the journal requirements to make sure your filenames and formats
4911 \begin_layout Enumerate
4915 \begin_layout Subsection
4916 Comments On Specific Commands
4919 \begin_layout Standard
4920 I will not describe the detailed usage of the individual AASTeX commands:
4921 the AASTeX User Guide (
4925 ) gives a good description of each.
4926 Thus it's probably easiest for me to go down the list as found in the guide
4927 and offer comments where necessary.
4928 So let's begin \SpecialChar \ldots{}
4932 \begin_layout Subsubsection
4933 Things that work as expected
4936 \begin_layout Standard
4940 \begin_layout Standard
4952 \begin_layout Standard
4953 Because they work as you might expect, I simply list them and the section
5054 begin{thebibliography}
5062 (2.13.2), all the cite commands and their variations (2.13.2), the generic
5063 graphicx figure commands (2.14.1),
5087 (2.15.4, amongst other places),
5114 \begin_layout Standard
5115 The following style options also work correctly:
5136 Simply put them in the
5142 Layout\SpecialChar \menuseparator
5148 \begin_layout Standard
5152 \begin_layout Standard
5164 \begin_layout Subsubsection
5165 Things that work, but require more comment
5168 \begin_layout Standard
5169 The following items work, but require a little more discussion:
5172 \begin_layout Itemize
5173 These items are reserved for use by the journal editors, but you can put
5174 them into the LaTeX preamble if you feel compelled to do so:
5207 \begin_layout Itemize
5208 These items may be placed in the LaTeX preamble, and are included as blanks
5209 in the template file:
5230 \begin_layout Itemize
5237 (2.3) -- can only be used
5238 \begin_inset Quotes eld
5242 \begin_inset Quotes erd
5245 , not in the middle of a paragraph.
5246 Use ERT if you need to embed it.
5249 \begin_layout Itemize
5256 (2.3) -- will have extra {} after it.
5257 This should not cause an error.
5260 \begin_layout Itemize
5267 (2.6) -- can only be used
5268 \begin_inset Quotes eld
5272 \begin_inset Quotes erd
5275 , not in the middle of a paragraph.
5276 Use ERT if you need to embed it.
5279 \begin_layout Itemize
5286 (2.8) -- can't insert a cross-reference tag, you must type the tag name
5290 \begin_layout Itemize
5297 (2.8) -- same as for
5304 \begin_layout Itemize
5311 (2.9) -- will have extra {} after it.
5312 This should not cause an error.
5315 \begin_layout Itemize
5322 (2.11) -- will have extra {} after it.
5323 This should not cause an error.
5326 \begin_layout Itemize
5333 (2.14.2) -- you can insert an optional filename argument by placing the cursor
5334 at the beginning of the text and selecting
5336 Insert\SpecialChar \menuseparator
5341 \begin_inset Quotes eld
5345 \begin_inset Quotes erd
5348 inserts an optional argument of the type needed by
5355 Hopefully it will be renamed someday.
5358 \begin_layout Itemize
5371 for the catalog ID optional parameter
5374 \begin_layout Itemize
5387 for the catalog ID optional parameter
5390 \begin_layout Subsubsection
5391 Things not implemented, use ERT
5394 \begin_layout Standard
5398 \begin_layout Standard
5410 \begin_layout Standard
5433 setcounter{equation}
5435 (2.12), Journal name abbreviations (2.13.4),
5471 (2.15.4, insert it as the first element in the lefthand cell after where
5473 Don't use any of LyX's rules in the table),
5485 (2.15.5), much of Misc (2.17, except
5536 \begin_layout Standard
5540 \begin_layout Standard
5552 \begin_layout Subsubsection
5553 Things that cannot be implemented
5556 \begin_layout Standard
5557 \SpecialChar \ldots{}
5558 at least in any meaningful sort of way, so I suggest ignoring them.
5559 They are the references environment (2.13.3), and the deluxetable environment
5561 If you really, really need to use deluxetable, I suggest editing it in
5562 a separate file with a text editor, then using
5567 nsert\SpecialChar \menuseparator
5575 to include it in your LyX document.
5580 file to see an example of this.
5583 \begin_layout Subsection
5584 FAQs, Tips, Tricks, and Other Ruminations
5587 \begin_layout Subsubsection
5588 Getting LyX and AASTeX to cooperate
5591 \begin_layout Standard
5592 It can be a bit tricky to get LyX to recognize a new layout and document
5594 When all else fails, do this:
5597 \begin_layout Enumerate
5598 Make certain that LaTeX can find AASTeX.
5599 Copy sample.tex (and perhaps table.tex) from the AASTeX distribution into
5600 a directory completely unrelated to LaTeX or AASTeX and run LaTeX on
5607 \begin_layout Enumerate
5614 /usr/.../share/lyx/layouts
5623 \begin_layout Enumerate
5629 ools\SpecialChar \menuseparator
5636 in LyX, then restart LyX.
5639 \begin_layout Enumerate
5640 Open a regular new file, not from a template.
5641 Does AASTeX appear in the class list in
5646 ocument\SpecialChar \menuseparator
5656 \begin_layout Standard
5657 If you get a warning from an existing AASTeX document about not being able
5658 to find the AASTeX layout or a message about
5659 \begin_inset Quotes eld
5662 You should not mix title layouts with normal ones
5663 \begin_inset Quotes erd
5666 , things haven't been installed correctly.
5669 \begin_layout Subsubsection
5670 LaTeX error processing a table
5673 \begin_layout Standard
5674 LyX, by default, attempts to center the table caption/title.
5675 This seems to produce a bad interaction in AASTeX so you should click somewhere
5676 in the caption/title, then select
5681 dit\SpecialChar \menuseparator
5686 aragraph\InsetSpace ~
5701 This took care of it for me.
5704 \begin_layout Subsubsection
5706 \begin_inset LatexCommand label
5714 \begin_layout Standard
5715 A couple of things: 1) I have noticed some funny spacing in the reference
5716 entries in the text.
5717 When you enter the bibliography item data, make sure their is
5721 space between the last author and the parenthesis setting off the year;
5724 e.\InsetSpace \thinspace{}
5737 2) Entering the references at all is not obvious.
5738 The easiest thing is to start typing your first reference at the end of
5739 the document, then mark it as type
5744 That will put a small gray box in front of what you just typed.
5745 Click on the box to fill in the rest of the information.
5746 For new references, go to the end of an existing reference and press return.
5747 That will create a new line with its own box, etc.
5750 \begin_layout Subsubsection
5754 \begin_layout Standard
5755 Even though AASTeX provides its own figure commands (
5761 , for example), I much prefer LaTeX's standard figure commands (with the
5770 commands as ERT into a Figure Float box if you desire, but I never
5771 have much luck getting the layout right.
5772 With the standard graphics, LyX will insert a
5776 usepackage{graphicx}
5778 command into the LaTeX preamble and handle the figures in the standard
5779 LaTeX2e way, interspersing the figures in the text.
5780 I believe ApJ accepts figures exactly this way now; AJ might still use
5782 \begin_inset Quotes eld
5785 stack everything at the end
5786 \begin_inset Quotes erd
5792 \begin_layout Subsubsection
5793 Things I could have done, but didn't
5796 \begin_layout Standard
5798 \begin_inset Quotes eld
5802 \begin_inset Quotes erd
5805 things I could have implemented, but chose not to.
5806 For instance, I saw no point in double-spacing the text in the LyX window,
5807 even though it is double-spaced in the paper manuscript.
5808 Also, I chose not to make separate layouts for the preprint and preprint2
5810 Since I assume you will spend most of your time in the plain manuscript
5811 mode anyway, I decided not to chew up more disk space with this.
5815 \begin_layout Subsection
5819 \begin_layout Standard
5820 Your mileage may vary.
5821 I've now had papers published by both ApJ and AJ that have had 98% of the
5822 effort done in LyX; the last 2% was the LaTeX post-processing and a few
5824 I have had no trouble with the submission process, and I'm sure the journals
5825 were never aware that there might be a difference.
5826 So, go forth and publish!
5829 \begin_layout Section
5833 \begin_layout Standard
5836 Panayotis Papasotiriou
5839 \begin_layout Subsection
5843 \begin_layout Standard
5844 The ijmpc package is a set of macros that facilitates electronic manuscript
5847 International Journal of Modern Physics C
5850 Similarly, the ijmpd package is for creating manuscripts to be submitted
5853 International Journal of Modern Physics D
5856 Both journals are published by World Scientific.
5857 The corresponding document classes are named
5866 These files, together with instructions for the authors, can be downloaded
5868 \begin_inset LatexCommand url
5869 target "http://www.worldscinet.com/ijmpc/mkt/guidelines.shtml"
5874 \begin_inset LatexCommand url
5875 target "http://www.worldscinet.com/ijmpd/mkt/guidelines.shtml"
5880 Both packages are modified versions of the standard
5881 \begin_inset Quotes eld
5885 \begin_inset Quotes erd
5888 package, and they are almost (but not exactly) identical.
5889 Most of their features are supported by LyX.
5890 I have used LyX successfully to write articles submitted to both journals
5891 without any problem.
5894 \begin_layout Subsection
5898 \begin_layout Standard
5899 As usual, the easiest way to write a paper is to start with a template.
5905 ile\SpecialChar \menuseparator
5924 This will give an (almost) empty document that includes the most common
5925 fields found in a manuscript.
5926 Simply overwrite the existing text (including the brackets,
5931 You should keep in mind the following remarks.
5934 \begin_layout Enumerate
5935 LyX won't let you change the font size and the page style of the document,
5936 because such modifications are not allowed by both packages.
5939 \begin_layout Enumerate
5940 The language of the document should not be changed.
5941 Before previewing your paper, be sure that the babel package is not used.
5942 To do this, click on
5947 ools\SpecialChar \menuseparator
5965 checkbox in the language settings, and click on
5976 , if you wish to make this change permanent).
5979 \begin_layout Enumerate
5981 \begin_inset Quotes eld
5985 \begin_inset Quotes erd
5988 style must be used to define keywords.
5991 \begin_layout Enumerate
5992 The ijmpc package provides a style named
5993 \begin_inset Quotes eld
5996 Classification Codes
5997 \begin_inset Quotes erd
6000 , which can be used to define classification codes, such as PACS numbers.
6001 Note that this facility is not supported by the ijmpd package.
6004 \begin_layout Enumerate
6005 Several new environments are available:
6006 \begin_inset Quotes eld
6010 \begin_inset Quotes erd
6014 \begin_inset Quotes eld
6018 \begin_inset Quotes erd
6022 \begin_inset Quotes eld
6026 \begin_inset Quotes erd
6030 \begin_inset Quotes eld
6034 \begin_inset Quotes erd
6038 \begin_inset Quotes eld
6042 \begin_inset Quotes erd
6046 \begin_inset Quotes eld
6050 \begin_inset Quotes erd
6054 \begin_inset Quotes eld
6058 \begin_inset Quotes erd
6062 \begin_inset Quotes eld
6066 \begin_inset Quotes erd
6070 \begin_inset Quotes eld
6074 \begin_inset Quotes erd
6078 \begin_inset Quotes eld
6082 \begin_inset Quotes erd
6086 \begin_inset Quotes eld
6090 \begin_inset Quotes erd
6094 \begin_inset Quotes eld
6098 \begin_inset Quotes erd
6102 \begin_inset Quotes eld
6106 \begin_inset Quotes erd
6110 \begin_inset Quotes eld
6114 \begin_inset Quotes erd
6118 Their use is more or less obvious.
6119 LyX supports all these environments; it will use the proper label, text
6120 style, and numbering scheme for each of them.
6123 \begin_layout Enumerate
6124 Both packages use basic citations; the natbib package should not be used.
6125 In LyX, citation references are shown as usual; in the output, citations
6126 are shown as superscripts.
6127 If you want to use a citation as normal text, you should use the
6131 command, e.\InsetSpace \thinspace{}
6133 \begin_inset Quotes eld
6136 See Ref.\InsetSpace ~
6144 \begin_inset Quotes erd
6150 \begin_layout Enumerate
6152 \begin_inset Quotes eld
6156 \begin_inset Quotes erd
6159 section in both packages.
6160 To put acknowledgments, just use the
6161 \begin_inset Quotes eld
6165 \begin_inset Quotes erd
6171 \begin_layout Enumerate
6172 Appendices may be added to the paper,
6176 the Acknowledgments and
6181 LyX provides a special environment, called
6182 \begin_inset Quotes eld
6186 \begin_inset Quotes erd
6189 which marks the beginning of the appendices.
6190 This environment should be left blank; it just sends a LaTeX command, but
6191 nothing is really printed.
6193 \begin_inset Quotes eld
6197 \begin_inset Quotes erd
6200 is printed with blue letters, as a signal that all sections after that
6201 point are appendices.
6202 To write an appendix, use the
6203 \begin_inset Quotes eld
6207 \begin_inset Quotes erd
6211 LyX will number each appendix with capital letters, as required by both
6214 \begin_inset Quotes eld
6218 \begin_inset Quotes erd
6225 be present before the first appendix; if not, all appendices will be numbered
6226 as normal sections in the output.
6229 \begin_layout Enumerate
6230 The ijmpc and the ijmpd packages use the
6234 command to implement table captions.
6235 As a result, a table created by LyX is printed correctly, but its caption
6237 However, you can use some ERT to overpass this problem, so that captions
6238 are printed as expected.
6239 To do so, create a float table as usual, remove the caption, and replace
6250 (sic); you must also the ERT
6254 immediately after the tabular material.
6255 Study the example table included in the template files to see how this
6256 trick is implemented.
6257 Alternatively, If you need table captions, you should implement the whole
6262 file, then include this file to the LyX document (
6267 nsert\SpecialChar \menuseparator
6272 \SpecialChar \menuseparator
6281 Details on how to create a table float can be found in the files
6289 , included in the corresponding packages.
6292 \begin_layout Subsection
6293 Preparing a paper for submission
6296 \begin_layout Standard
6297 Before you submit your paper you must export the LyX document as a LaTeX
6303 ile\SpecialChar \menuseparator
6308 xport\SpecialChar \menuseparator
6323 \begin_layout Standard
6324 Actually you have the choice between LaTeX (plain) and pdflatex.
6325 If you intend to use pdflatex to prepare the paper, you should use the
6326 pdflatex option so that included graphics are converted to PDF format,
6327 ready for use by pdflatex.
6332 , then make the following changes to the resulting
6339 \begin_layout Enumerate
6340 Remove the comment lines before the
6349 \begin_layout Enumerate
6350 Remove everything between (and including) the
6362 commands, except for any commands you specifically put into the LaTeX preamble.
6365 \begin_layout Standard
6370 file should be saved and processed through LaTeX as many times as necessary.
6371 You may also want to check the resulting
6378 \begin_layout Subsection
6382 \begin_layout Standard
6383 The use of ERT is reduced to two commands, which must be placed at the top
6385 If you started writing your paper by using the
6393 template, the ERT needed is already in its place; you usually don't need
6395 You may only modify the first ERT to specify the information printed to
6396 the top of odd and even pages (authors' names and short paper's title,
6398 This ERT must have the form
6402 markboth{Authors' Names}{Short Paper's Title}
6407 \begin_layout Section
6411 \begin_layout Standard
6417 \begin_layout Subsection
6421 \begin_layout Standard
6422 The iopart package provides a document class to create electronic manuscript
6423 submission to the journals published by the Institute of Physics.
6424 Instructions for the authors how to create a paper using the iopart class
6425 can be downloaded together with the iopart package from the site
6426 \begin_inset LatexCommand url
6427 target "ftp://ftp.iop.org/pub/journals/latex2e"
6434 \begin_layout Subsection
6438 \begin_layout Standard
6439 The easiest way to write a paper is to start with the file
6443 that is available in LyX's examples files folder.
6444 Open this file, save it under a new name, and start writing.
6445 The example file explains how to use the special text environments.
6446 Here are the most important advices:
6449 \begin_layout Itemize
6450 To be able to compile your document to a PDF, PS, or DVI, assure that the
6453 Use AMS math package
6455 in the document settings under
6462 \begin_layout Itemize
6465 The title environment defines the kind of your paper.
6466 So use one of the following environments for the title:
6470 \begin_layout Itemize
6479 \begin_layout Itemize
6488 \begin_layout Itemize
6494 for a Topical review
6497 \begin_layout Itemize
6506 \begin_layout Itemize
6515 \begin_layout Itemize
6521 for a Paper (same as Title)
6524 \begin_layout Itemize
6530 for a Preliminary communication
6533 \begin_layout Itemize
6539 for a Rapid communication
6542 \begin_layout Itemize
6548 for a Letter to the editor
6552 \begin_layout Itemize
6555 All title environments except of
6559 can have an optional short title.
6562 \begin_layout Itemize
6563 There is a general title environment
6567 which is not directly supported by the LyX.
6568 This can be used as ERT when your document doesn't fit into one of the
6572 \begin_layout Standard
6573 For more informations like hints for special table and formula formatting,
6574 look at the IOP author guidelines.
6577 \begin_layout Section
6581 \begin_layout Standard
6584 Panayotis Papasotiriou
6587 \begin_layout Subsection
6591 \begin_layout Standard
6592 The Kluwer package is a set of macros produced by Kluwer Academic Publishers
6593 that facilitates electronic manuscript submission to the journals they
6595 Most known of them (at least in my domain of interest) are
6597 Astrophysics and Space Science
6603 , but there are many others (see a complete list at
6604 \begin_inset LatexCommand url
6605 target "http://www.wkap.nl/jrnllist.htm/JRNLHOME"
6610 The Kluwer package may be downloaded from the site
6611 \begin_inset LatexCommand url
6612 target "http://www.wkap.nl/kaphtml.htm/STYLEFILES"
6617 A complete user guide is contained in that package (but it can also be
6618 downloaded separately).
6621 \begin_layout Standard
6622 LyX supports many features of the package but not everything.
6623 However, the ERT needed is reduced to some
6624 \begin_inset Quotes eld
6628 \begin_inset Quotes erd
6631 commands of the package (see\InsetSpace ~
6633 \begin_inset LatexCommand ref
6634 reference "subsec:kluwer_peculiarities"
6639 I have recently used LyX to write an article submitted to the
6641 Astrophysics and Space Science
6643 without any problem.
6646 \begin_layout Subsection
6650 \begin_layout Standard
6651 The easiest way to write a paper is to start with the Kluwer template file.
6654 File\SpecialChar \menuseparator
6669 This will give an (almost) empty document that includes the most common
6670 fields found in a manuscript and a short description of their use.
6671 As in most templates, simply overwrite the existing text (including the
6676 ) with the correct information.
6679 \begin_layout Subsection
6680 Preparing a paper for submission
6683 \begin_layout Standard
6684 As in the AASTeX package, before you submit your paper to a journal you
6686 \begin_inset Quotes eld
6690 \begin_inset Quotes erd
6696 \begin_layout Enumerate
6697 Export your paper as a LaTeX file.
6698 To do this, click on
6703 ile\SpecialChar \menuseparator
6708 xport\SpecialChar \menuseparator
6719 \begin_layout Enumerate
6724 file with a text editor and make the following changes
6728 \begin_layout Enumerate
6729 remove the comment lines before the
6738 \begin_layout Enumerate
6739 remove everything between (and including) the
6751 commands, except for any commands you specifically put into the LaTeX preamble.
6754 \begin_layout Standard
6763 \begin_layout Enumerate
6768 file through LaTeX as many times as necessary (usually up to three).
6771 \begin_layout Enumerate
6776 document using, e.\InsetSpace \thinspace{}
6781 , and check if everything is OK (it should, if you didn't make any mistake).
6784 \begin_layout Subsection
6785 \begin_inset Quotes eld
6789 \begin_inset Quotes erd
6792 of the Kluwer package
6793 \begin_inset LatexCommand label
6794 name "subsec:kluwer_peculiarities"
6801 \begin_layout Standard
6802 The Kluwer package has the following
6803 \begin_inset Quotes eld
6807 \begin_inset Quotes erd
6813 \begin_layout Enumerate
6814 It is possible to write multiple articles in the same LaTeX file
6818 \begin_layout Standard
6819 I can't imagine any good reason to do this.
6825 Each article must be included in the environment
6826 \begin_inset Quotes eld
6830 \begin_inset Quotes erd
6834 Unfortunately, this environment cannot be omitted, even if you write just
6836 Therefore, each article starts with the command
6842 and, obviously, ends with the command
6849 Although this can be implemented in LyX, I didn't included it, since it
6850 looks ugly and can confuse the novice user.
6851 Therefore, you need to enter them directly and mark them as LaTeX code
6853 \begin_inset Quotes eld
6857 \begin_inset Quotes erd
6863 \begin_layout Enumerate
6864 Information given at the beginning of the article (i.e., title, subtitle,
6865 author, institution, running title, running author, abstract and keywords)
6866 must be included in an environment called
6867 \begin_inset Quotes eld
6871 \begin_inset Quotes erd
6875 This is not implemented in LyX, so you must enter title, subtitle etc.\InsetSpace ~
6892 \begin_layout Enumerate
6893 According to the user manual, the label of each bibliography item must be
6917 \begin_layout Standard
6922 template takes care of all these
6923 \begin_inset Quotes eld
6927 \begin_inset Quotes erd
6931 If you start a new paper using this template you don't need to do anything
6936 \begin_layout Enumerate
6937 don't delete the ERT included in the template, and
6940 \begin_layout Enumerate
6941 copy the example bibliography item included in the template and modify it
6942 as necessary to enter new bibliography items.
6945 \begin_layout Section
6949 \begin_layout Standard
6955 \begin_layout Subsection
6959 \begin_layout Standard
6960 The LyX document classes
6962 article (koma-script)
6966 report (koma-script)
6984 correspond to the LaTeX document classes
7000 , resp.\InsetSpace ~
7001 of the Koma-Script family.
7002 They are replacements for the standard document classes
7018 , resp., and fit better to European typography conventions in a number of
7022 \begin_layout Itemize
7023 Standard character size is 11pt in
7025 article (koma-script)
7029 report (koma-script)
7037 letter (koma-script)
7042 \begin_layout Itemize
7043 Headings, labels of the description environment, and a number of elements
7046 letter (koma-script)
7048 document class are set in a bold sans serif font.
7052 \begin_layout Standard
7053 There is a big difference between the bold sans serif old cm fonts and new
7054 ec fonts, especially in the appearance of headings.
7055 In comparison, the ec bold sans serif fonts look a bit thin.
7056 Here the LaTeX package
7064 helps to produce the
7065 \begin_inset Quotes eld
7069 \begin_inset Quotes erd
7072 appearance when using the ec fonts.
7077 The numbering of chapter headings is made in the same way as the numbering
7078 of section headings, that is without the extra line
7079 \begin_inset Quotes eld
7082 Chapter\SpecialChar \ldots{}
7084 \begin_inset Quotes erd
7088 In addition, the appearance of the headings can be modified by using a
7089 number of options (in LyX to be entered in the field
7103 ayout\SpecialChar \menuseparator
7111 A detailed German description of these options can be found in the Koma-Script
7119 \begin_layout Itemize
7120 The main means in the Koma-Script document classes to design the type area
7129 (in LyX to be entered in the extra class options field in the dialog
7134 ocument\SpecialChar \menuseparator
7142 They make a clearer modification of page margins possible as do the options
7148 ocument\SpecialChar \menuseparator
7156 A detailed German description of these and other type area options can
7157 be found in the Koma-Script documentation
7164 \begin_layout Itemize
7165 The LaTeX document classes of the Koma-Script family define a number of
7166 additional commands.
7167 Those part of it which makes sense in LyX is implemented in corresponding
7171 \begin_layout Standard
7172 A detailed German description of the LaTeX document classes of the Koma-Script
7173 family can be found in the Koma-Script documentation
7181 \begin_layout Standard
7182 There is an English translation
7186 , but it is not a complete one.
7191 The following sections describe only those aspects, which are relevant
7195 \begin_layout Subsection
7196 article (koma-script), report (koma-script), and book (koma-script)
7199 \begin_layout Standard
7200 The document classes
7202 article (koma-script)
7206 report (koma-script)
7216 are implemented in the layout files
7229 They contain all the paragraph types of the corresponding standard document
7242 , resp., partly modified, with the exception of the LyX specific
7246 -type, which is replaced by the new
7250 -type having the same functionality.
7255 -Type there is a number of new paragraph types added.
7262 letter (koma-script)
7267 \begin_layout Itemize
7276 : are equivalents to
7284 , resp., additionally inserting an entry in the table of contents.
7293 are not contained in
7295 article (koma-script)
7300 \begin_layout Itemize
7317 , resp., additionally clearing running heads.
7324 article (koma-script)
7330 \begin_layout Standard
7343 report (koma-script)
7345 , but since this is identical to
7349 , is has not been implemented in LyX.
7357 \begin_layout Itemize
7362 : generates a heading directly above the following paragraph in the standard
7363 character size without affecting the structure of the document.
7366 \begin_layout Itemize
7375 are special captions which respect the different space settings needed
7376 for captions placed above or below an element (if you follow strict typographic
7377 rules, you might want to place table captions always above the table).
7378 You can also use the class option
7395 You need at least Koma-Script version 2.8q to use this.
7398 \begin_layout Itemize
7403 : can be used to set a bonmot, e.
7407 \begin_layout Standard
7420 \begin_layout Standard
7429 at the beginning of a chapter.
7430 If you use the optional argument (
7435 nsert\SpecialChar \menuseparator
7439 ), you can insert the dictum's author there.
7440 Dictum and author are separated by a line.
7441 You need at least Koma-Script version 2.8q to use this.
7448 article (koma-script)
7453 \begin_layout Standard
7454 The following types, together with the standard types
7466 , form the title area of the document.
7467 They must be entered ahead of the first
7468 \begin_inset Quotes eld
7472 \begin_inset Quotes erd
7479 \begin_layout Standard
7480 The corresponding LaTeX commands must appear before the
7491 When such a type is used more than once, the latter usage overwrites the
7492 former one, that means, for every type only the latest usage is valid.
7493 The order of the different types however has, like
7505 , no effect on the appearance of the produced document.
7508 \begin_layout Itemize
7513 : produces a centered paragraph above the ordinary title (
7525 ) for the subject of the document.
7528 \begin_layout Itemize
7533 : produces a centered paragraph below the ordinary title (
7545 ) for the publishers' name.
7548 \begin_layout Itemize
7555 report (koma-script)
7561 produces a centered paragraph on its own page behind the title page, or
7564 article (koma-script)
7566 produces a centered paragraph below the ordinary title (
7585 \begin_layout Itemize
7590 : produces a left aligned paragraph above the ordinary title (
7606 ) for a document`s head.
7609 \begin_layout Itemize
7614 : produces in a double-sided print in
7616 report (koma-script)
7622 a left-aligned paragraph at the top of the title page`s back or has no
7623 effect in a single-sided print or in
7625 article (koma-script)
7630 \begin_layout Itemize
7635 : produces in a double-sided print in
7637 report (koma-script)
7643 a left-aligned paragraph at the bottom of the title page`s back or has
7644 no effect in a single-sided print or in
7646 article (koma-script)
7651 \begin_layout Itemize
7656 : produces a special
7657 \begin_inset Quotes eld
7661 \begin_inset Quotes erd
7664 page ahead of the actual document containing a paragraph without special
7668 \begin_layout Standard
7669 The layout files for the document classes
7671 article (koma-script)
7675 report (koma-script)
7686 This is thought of as a place to define your own types.
7691 in your personal layout directory and edit the file!
7694 \begin_layout Subsection
7695 letter (koma-script)
7698 \begin_layout Standard
7702 \begin_layout Standard
7714 \begin_layout Standard
7718 letter (koma-script)
7720 is implemented in the layout file
7725 It contains all the paragraph types of the corresponding standard document
7730 , partly modified, with the exception of the LyX specific types
7742 type, which is replaced by the new
7747 In addition, it contains, in contrast to the standard document class, the
7765 Furthermore, there are a number of new letter specific types.
7768 \begin_layout Standard
7772 \begin_layout Standard
7784 \begin_layout Standard
7785 The appearance of the letter produced by this document class can be controlled
7786 by a number of LaTeX commands, which you can put in the LaTeX preamble.
7790 \begin_layout Standard
7791 For example, the standard appearance of the letter`s heading, consisting
7792 of name and address, is quite self-willed.
7794 \begin_inset Quotes eld
7798 \begin_inset Quotes erd
7801 heading is produced by the following LaTeX commands in the preamble:
7804 \begin_layout LyX-Code
7814 \begin_layout LyX-Code
7830 \begin_layout LyX-Code
7840 \begin_layout LyX-Code
7860 A detailed German description of such LaTeX commands can be found in the
7861 Koma-Script documentation
7866 With it, the letter's author can produce his personal letter layout.
7869 \begin_layout Standard
7878 define the beginning of the letter and must be used in every letter.
7879 To emphasize them in the LyX document class, they are marked with the letter
7888 , resp.\InsetSpace ~
7890 It is possible to write any number of letters in one file.
7895 type produces a new letter using the same addressee and a
7899 type produces a new addressee.
7916 are ordinary paragraph types and can also be used several times in one
7917 and the same letter.
7920 \begin_layout Itemize
7925 : produces a paragraph for the addressee and implicitly defines the beginning
7929 \begin_layout Itemize
7934 : produces a paragraph for the form of address and implicitly produces a
7938 \begin_layout Itemize
7943 : produces a paragraph for a close.
7946 \begin_layout Itemize
7951 : produces a paragraph for a postscript.
7954 \begin_layout Itemize
7959 : produces a paragraph for a distribution list.
7962 \begin_layout Itemize
7967 : produces a paragraph for enclosures.
7970 \begin_layout Standard
8011 are input types provided with a label to enter information, which will
8012 be processed by the document class.
8016 \begin_layout Standard
8017 It could be seen as a matter of inconsequence, that the types
8025 described above are not such input types as well.
8026 Because of the special meaning of those types, however, I have implemented
8027 them as ordinary paragraph types with a one letter mark in the left margin.
8028 Moreover, it would affect my feeling of symmetry, if the
8036 type had such a serious different appearance.
8041 The types must be used ahead of the corresponding
8048 \begin_layout Standard
8049 An implementation of these types in a WYSIWYG fashion does not seem to make
8050 sense, because the real appearance of the produced letter does not only
8051 depend on the usage of the particular type, but also on other factors.
8052 For example, a signature entered in the
8056 type will in the standard behavior appear in the produced letter only,
8057 when in the same letter also a
8062 The entered value of the
8066 type will in the standard behavior not appear in the produced letter at
8068 The possibility to design the letter`s heading freely is already indicated
8069 in a footnote above.
8072 \begin_layout Standard
8073 The input types can also be used as empty paragraphs.
8074 This makes sense e.\InsetSpace \thinspace{}
8085 type is not used at all, in the standard behavior the value of the
8089 type is used as signature, whereas if an empty
8093 type is used, no signature value is defined.
8096 \begin_layout Standard
8097 By using the input types it is possible to write a letter template, containing
8098 filled input types with your personal dates (name, address, etc.) and empty
8099 input types for other dates you want to enter.
8102 \begin_layout Itemize
8107 : sender's name, in the standard behavior appears as a centered paragraph
8108 in small caps in the letter`s heading.
8111 \begin_layout Itemize
8116 : sender's signature, in the standard behavior appears below the
8125 type is used, the value of the
8129 type appears instead.
8132 \begin_layout Itemize
8137 : sender's address, in the standard behavior appears in a centered paragraph
8138 in the letter`s heading below the sender's name.
8141 \begin_layout Itemize
8146 : sender's telephone number, in the standard behavior only sets the LaTeX
8156 \begin_layout Itemize
8161 : place of the letter`s making.
8164 \begin_layout Itemize
8169 : date of the letter`s making.
8178 , in the standard behavior, produce the place and the date in a right-aligned
8179 line below the addressee's field.
8184 type is used, neither place nor date appear, independent of the value of
8194 type is used, the date of the letter `s production is used.
8197 \begin_layout Itemize
8202 : sender`s back address, in the standard behavior appears above the addressee's
8203 field in a small sans serif font.
8206 \begin_layout Itemize
8211 : special mail information, in the standard behavior appears underlined
8212 above the addressee's field below the back address.
8215 \begin_layout Itemize
8220 : additional information, in the standard behavior appears on right side
8221 below the addressee`s field.
8224 \begin_layout Itemize
8229 : the letter's title, in the standard behavior appears in a big, bold, sans
8230 serif font above the subject.
8233 \begin_layout Itemize
8238 : the letter's subject, in the standard behavior appears in a bold font
8246 \begin_layout Standard
8267 produce a business letter like line above the
8271 line containing the fields
8272 \begin_inset Quotes eld
8276 \begin_inset Quotes erd
8280 \begin_inset Quotes eld
8284 \begin_inset Quotes erd
8288 \begin_inset Quotes eld
8292 \begin_inset Quotes erd
8296 \begin_inset Quotes eld
8300 \begin_inset Quotes erd
8304 \begin_inset Quotes eld
8308 \begin_inset Quotes erd
8312 \begin_inset Quotes eld
8316 \begin_inset Quotes erd
8320 For the date field, the value of the
8326 \begin_inset Quotes eld
8329 business letter types
8330 \begin_inset Quotes erd
8333 is used, the value of the
8337 type however does not appear, but only the LaTeX variable
8344 The ordinary output of place and date in a right-aligned line below the
8345 addressee`s field is suppressed.
8346 The types are implemented as input types provided with a label and must
8347 be used ahead of the corresponding
8354 \begin_layout Itemize
8362 \begin_layout Itemize
8370 \begin_layout Itemize
8378 \begin_layout Itemize
8386 \begin_layout Itemize
8394 \begin_layout Subsection
8395 The new letter class: letter (koma-script v.2)
8398 \begin_layout Standard
8401 Jürgen Spitzmüller
8404 \begin_layout Standard
8405 \begin_inset VSpace medskip
8411 \begin_layout Standard
8413 Koma-Script version 2.8 has introduced a new letter class
8417 which supersedes the now unsupported
8422 It has --- on the LaTeX side --- a completely new interface and is not
8423 compatible with the old class.
8424 Therefore, LyX supports both, though it is recommended to use the new class.
8427 \begin_layout Standard
8428 This class covers the same functionality as
8430 letter (koma-script),
8437 (receiver's address, same as
8454 will start a new letter (i.
8458 \begin_layout Standard
8471 \begin_layout Standard
8480 you can write several letters per document).
8481 New elements are sender's
8497 and the possibility to use a
8506 nsert\SpecialChar \menuseparator
8516 \begin_layout Standard
8517 The biggest improvement is, though, that the letter's layout is configurable
8518 at almost any needs.
8519 This can be done via the preamble or with a special style file (Letter
8520 Class Option, extension
8524 ), that will be read in as a class option.
8528 \begin_layout Standard
8529 The KOMA package comes with some default
8534 There is, for instance, a
8538 file that follows german typesetting rules, or a
8542 that provides the default layout of the old
8547 The latter can be loaded with the class option
8556 ayout\SpecialChar \menuseparator
8561 ocument\SpecialChar \menuseparator
8573 template that is included in LyX for examples.
8574 A detailed description is to be found in the Koma-Script documentation
8582 \begin_layout Subsection
8586 \begin_layout Standard
8587 Visualizing the Koma-Script document classes in LyX, the LyX internals cause
8591 \begin_layout Itemize
8592 The chapter number of a
8596 type appears on a line of its own above the chapter heading instead of
8597 appearing in the same line ahead of it.
8598 The cause for that is the LyX internal behavior for the labeltype
8605 \begin_layout Itemize
8606 The headings of the types
8615 \begin_inset Quotes eld
8619 \begin_inset Quotes erd
8622 LaTeX table of contents, but not in the LyX table of contents (
8627 ocument\SpecialChar \menuseparator
8639 \begin_layout Itemize
8644 document class appear in a skip separation mode, not indented.
8645 This is the standard behavior, no special LaTeX commands are needed for
8652 ocument\SpecialChar \menuseparator
8659 dialog the corresponding radio button indicates
8675 value always has the effect that extra LaTeX commands are inserted in the
8676 document to produce the gap, which is not what is wanted in this case.
8679 \begin_layout Section
8687 \begin_layout Standard
8693 \begin_layout Subsection
8697 \begin_layout Standard
8698 These are the layout files for some of the journal formats used by Springer
8699 Verlag and listed on
8700 \begin_inset LatexCommand url
8701 target "http://www.springer.de/author/tex/help-journals.html"
8705 , where you should also go to fetch the class files (yes, these are LaTeX2e
8707 It is a modular system: the things common to all journals are implemented
8712 , which journal-specific layout files (such as, e.\InsetSpace \thinspace{}
8717 for Journal of Geodesy) can include.
8720 \begin_layout Standard
8721 This means that implementing support for any other Springer journal on this
8722 list is as simple as writing your own
8730 file following the outline given in
8738 \begin_layout Standard
8739 It is reasonably well tested only for the Journal of Geodesy.
8748 come with the standard LyX distribution.
8749 Install the relevant class file (downloaded from Springer) in a proper
8750 directory, reconfigure LaTeX (in the teTeX case by running
8754 , as root if necessary --- doesn't LyX take care of this?), reconfigure
8755 LyX and it should work.
8758 \begin_layout Subsection
8762 \begin_layout Standard
8763 A large number of theorem-like styles ---
8769 \SpecialChar \ldots{}
8775 \begin_layout Standard
8778 Headnote, Dedication, Subtitle, Running_LaTeX_Title, Author_Running, Institute,
8779 Mail, Offprints, Keywords, Acknowledgements, Acknowledgement
8782 See the Springer class file documentation for details.
8785 \begin_layout Subsection
8789 \begin_layout Itemize
8801 \begin_layout Itemize
8804 Probability Theory and Related Fields
8810 --- Jean-Marc Lasgouttes
8813 \begin_layout Standard
8814 Add your own, it isn't so hard!
8817 \begin_layout Subsection
8821 \begin_layout Standard
8822 These files are partly based on the older
8826 , which was again based on a tinkered-with version of an old LaTeX 2.09 style
8832 layout, are now defunct.
8833 Jean-Marc Lasgouttes helped out big in making me find my way around the
8834 LyX layout file mechanism.
8837 \begin_layout Subsection
8841 \begin_layout Standard
8843 But probably less than in the old hacked-LaTeX
8850 \begin_layout Standard
8851 Limitations e.\InsetSpace \thinspace{}
8852 g.: does not display the number for theorem-like layouts, just
8856 \begin_layout Section
8864 \begin_layout Standard
8870 \begin_layout Subsection
8874 \begin_layout Standard
8875 These are the layout files for some of the journals of the American Geophysical
8877 It is assumed that you have both the AGU's own class files and AGUplus
8878 installed (everything to be found at
8879 \begin_inset LatexCommand url
8880 target "ftp://ftp.agu.org/journals/latex/journals"
8887 \begin_layout Subsection
8891 \begin_layout Standard
8901 They are still called this in the LyX GUI, though their LaTeX equivalents
8902 in the AGU classes are
8913 \begin_layout Standard
8914 Newly defined styles are
8951 These are mostly manuscript attributes and defined in the AGU class documentati
8955 \begin_layout Standard
8956 I suspect this is still badly incomplete.
8959 \begin_layout Subsection
8963 \begin_layout Standard
8980 \begin_layout Subsection
8984 \begin_layout Itemize
8987 Journal of Geophysical Research
8996 \begin_layout Standard
8997 Add your own, it isn't so hard! Look at the
9008 \begin_layout Subsection
9009 Bugs and things to remember
9012 \begin_layout Standard
9013 In order to use the new layouts, you must remember to do the following for
9017 \begin_layout Enumerate
9023 This can be done in the
9025 layout\SpecialChar \menuseparator
9030 document\SpecialChar \menuseparator
9034 (AGU articles are always in English, right? So
9041 \begin_layout Enumerate
9051 (Yes, this is a bug.)
9054 \begin_layout Enumerate
9055 Make sure you use the
9059 bibliography style, by entering
9063 into the second field of the BibTeX inset.
9064 None of the standard styles will do.
9067 \begin_layout Section
9075 \begin_layout Standard
9081 \begin_layout Subsection
9085 \begin_layout Standard
9086 This is the layout file for the European Geophysical Society journals.
9091 can be downloaded from the web site of the EGS under
9092 \begin_inset LatexCommand url
9093 target "www.copernicus.org"
9100 \begin_layout Subsection
9104 \begin_layout Standard
9107 Right_address, Latex_Title, Affil, Journal, msnumber, FirstAuthor, Received,
9115 The current layout file is unfortunately very unmodular and would benefit
9116 from using the various
9123 \begin_layout Section
9129 \begin_inset LatexCommand label
9137 \begin_layout Standard
9145 \begin_layout Subsection
9149 \begin_layout Standard
9150 This section describes how to use LyX to make slides for overhead projectors.
9151 There are two document classes that can do this: the default slides class
9157 This section documents the former.
9160 \begin_layout Standard
9161 I'm going to say this again, nice and clear, so that there's no misunderstanding
9165 \begin_layout Standard
9166 \begin_inset VSpace bigskip
9172 \begin_layout Standard
9176 This section documents the class
9177 \begin_inset Quotes eld
9185 \begin_inset Quotes erd
9193 \begin_layout Standard
9194 \begin_inset VSpace bigskip
9200 \begin_layout Standard
9201 If you're looking for the documentation for
9202 \begin_inset Quotes eld
9210 \begin_inset Quotes erd
9213 , check out section\InsetSpace ~
9215 \begin_inset LatexCommand ref
9216 reference "sec:foiltex"
9226 \begin_inset Quotes eld
9234 \begin_inset Quotes erd
9237 ] is actually somewhat better than the default
9245 \begin_layout Standard
9246 \SpecialChar \ldots{}
9247 or so I've been told repeatedly by its advocates.
9248 Having never used it, I have no idea if this claim is true or not.
9253 which this section documents.
9256 \begin_layout Standard
9257 This class is the LaTeX2e improvement of the old
9262 Every LaTeX2e distribution includes this class [which I'll just refer to
9264 \begin_inset Quotes eld
9272 \begin_inset Quotes erd
9275 from now on], so you're bound to have it.
9276 As I noted earlier, there are other classes, such as
9280 , which also produce slides for overhead projectors and do a better job
9282 However, there are some things which
9286 can do which the others can't, such as generate overlays.
9287 Read on to learn more!
9290 \begin_layout Subsection
9292 \begin_inset LatexCommand label
9293 name "sec:slidesetup"
9300 \begin_layout Standard
9301 Obviously, to use this document class, you need to select
9302 \begin_inset Quotes eld
9310 \begin_inset Quotes erd
9313 from the class list in the
9318 ocument\SpecialChar \menuseparator
9326 There are some other special things you should know about this class:
9329 \begin_layout Itemize
9330 Don't bother changing the options
9335 They're not supported by the
9342 \begin_layout Itemize
9351 behaves a bit differently for this class.
9352 The possible choices and what they do are as follows:
9356 \begin_layout Description
9361 The final output contains page numbers in the lower right corner.
9364 \begin_layout Description
9373 , but also prints out any time markers you've put in.
9374 This is the default.
9377 \begin_layout Description
9382 The final output contains no page numbers, time markers, or alignment markers.
9386 \begin_layout Itemize
9391 class has an extra option:
9397 \begin_inset Quotes eld
9405 \begin_inset Quotes erd
9408 in the extra class options.
9412 \begin_layout Standard
9413 Using this options allows you to add time markers to
9418 See section\InsetSpace ~
9420 \begin_inset LatexCommand ref
9421 reference "sec:slideNote"
9429 \begin_layout Standard
9430 You can also use the template file
9431 \begin_inset Quotes eld
9439 \begin_inset Quotes erd
9442 to automatically set up a document to use the
9451 ile\SpecialChar \menuseparator
9460 to open your new document].
9461 The template file also contains some examples of the special paragraph
9462 environments used by this class.
9463 I'll describe those next.
9466 \begin_layout Subsection
9467 Paragraph Environments
9470 \begin_layout Subsubsection
9471 Supported Environments
9474 \begin_layout Standard
9475 The first thing you'll notice when you start up a new
9479 document is the font size and type: it's the equivalent of the size
9480 \begin_inset Quotes eld
9488 \begin_inset Quotes erd
9497 This is also what's used in the output.
9499 \begin_inset Quotes eld
9503 \begin_inset Quotes erd
9506 to remind you that this is a slide.
9507 Your final slides will use a larger font; ergo, you'll have less space.
9508 Of course, the larger default screen font isn't WYSIWYG, only a reminder.
9511 \begin_layout Standard
9512 The next thing that becomes obvious is the changes to the paragraph environment
9513 pull-down box [at the far-left end of the toolbar].
9514 Most of the paragraph environments you're used to seeing are missing.
9515 There are also five new ones.
9520 class itself only supports certain paragraph environments:
9523 \begin_layout Itemize
9529 \begin_layout Itemize
9535 \begin_layout Itemize
9541 \begin_layout Itemize
9547 \begin_layout Itemize
9553 \begin_layout Itemize
9559 \begin_layout Itemize
9565 \begin_layout Itemize
9571 \begin_layout Itemize
9577 \begin_layout Itemize
9583 \begin_layout Itemize
9589 \begin_layout Standard
9590 All of the other standard environments, including the section-heading environmen
9591 ts, aren't used in the
9598 \begin_layout Standard
9599 On the other hand, you'll notice the following new environments:
9602 \begin_layout Itemize
9608 \begin_layout Itemize
9614 \begin_layout Itemize
9620 \begin_layout Itemize
9626 \begin_layout Itemize
9632 \begin_layout Standard
9633 These five are kind of quirky, due to a
9634 \begin_inset Quotes eld
9638 \begin_inset Quotes erd
9642 You see, LyX doesn't permit you to nest any other paragraph environment
9643 into an empty environment.
9644 Now, that's fine and dandy, but it means that you wouldn't be able to start
9645 a slide with anything except plain text.
9646 To deal with this, I've performed a little
9647 \begin_inset Quotes eld
9651 \begin_inset Quotes erd
9657 \begin_layout Subsubsection
9658 Quirks of the New Environments
9659 \begin_inset LatexCommand label
9660 name "sec:slideQuirk"
9667 \begin_layout Standard
9668 All five of the new paragraph environments are somewhat quirky due to inherent
9669 limitiations in the current version of LyX.
9670 As I just mentioned, LyX forbids environments that begin with another environme
9672 To get around this, the
9676 environment isn't a paragraph environment as described in the
9684 \begin_layout Standard
9698 \begin_inset Quotes eld
9701 pseudo-environments.
9702 \begin_inset Quotes erd
9705 They look like a section heading or a
9706 \begin_inset Quotes eld
9714 \begin_inset Quotes erd
9717 but really begin a [and, if necessary, end the previous] paragraph environment.
9727 \begin_inset Quotes eld
9731 \begin_inset Quotes erd
9734 These two perform some action.
9737 \begin_layout Standard
9738 A common feature of all five environments,
9758 , is a rather long-ish label.
9759 The text following this label --- ordinarily the contents of the paragraph
9760 environment --- is utterly irrelevant for
9781 LyX completely ignores it.
9782 In fact, you can leave these five environments completely empty.
9786 \begin_layout Standard
9791 to put any text after the rather long-ish label, you might want to.
9792 This could be a short description of the contents of the
9797 In that case, enter in your descriptive comment and hit
9801 as you normally would.
9804 \begin_layout Standard
9805 If, on the other hand, you don't want to enter in any descriptive text,
9806 you'll hit another LyX quirk.
9807 LyX, like nature, abhors a vacuum, and will not let you start a new paragraph
9808 environment until you put something in the old one.
9812 \begin_layout Itemize
9813 Start entering the text that will
9841 \begin_layout Itemize
9842 Now move to the beginning of that paragraph.
9846 \begin_layout Itemize
9855 \begin_layout Itemize
9856 Finally, change this new, empty paragraph to a
9880 \begin_layout Standard
9881 Some future version of LyX will, hopefully, resolve this quirkiness\SpecialChar \ldots{}
9885 \begin_layout Subsection
9886 Making a Presentation with
9899 \begin_layout Subsubsection
9907 \begin_layout Standard
9908 If you're expecting this section to teach you how to actually make a presentatio
9909 n, you'll be sorely disappointed.
9910 Naturally, I'll describe all of the ways the
9914 class can assist you in preparing the materials for a presentation.
9915 Filling in the contents, however, is up to you.
9920 the LyX philosophy.]
9923 \begin_layout Standard
9928 environment [in the manner described in section\InsetSpace ~
9930 \begin_inset LatexCommand ref
9931 reference "sec:slideQuirk"
9935 ] tells LyX to begin a new slide [duh].
9936 The label for this environment/
9937 \begin_inset Quotes erd
9941 \begin_inset Quotes erd
9945 \begin_inset Quotes eld
9949 \begin_inset Quotes erd
9952 in cool blue, followed by the label,
9953 \begin_inset Quotes eld
9957 \begin_inset Quotes erd
9961 Any text or paragraph environments that follow this one go on the new slide.
9965 \begin_layout Standard
9966 Slides are probably the only time you'll need to forcibly end pages in LyX
9967 (this can be specified in the
9972 In fact, you'll want to, once you finish entering the contents of one slide.
9973 If you've entered more text than can physically fit on a slide, the extra
9974 overflows onto a new slide.
9975 I don't recommend doing this, however, since the overflow slide won't have
9976 any page number on it.
9977 Furthermore, it may interfere with any
9981 you've made to accompany the oversized
9988 \begin_layout Standard
9997 environments work the same way as the
10002 They both create an
10003 \begin_inset Quotes eld
10007 \begin_inset Quotes erd
10010 followed by a label [
10011 \begin_inset Quotes eld
10015 \begin_inset Quotes erd
10019 \begin_inset Quotes eld
10023 \begin_inset Quotes erd
10027 The color is a stunning magenta instead of blue, and the
10028 \begin_inset Quotes eld
10032 \begin_inset Quotes erd
10035 will look different, in style and in length.
10036 The label fonts of all three also differ from one another.
10039 \begin_layout Standard
10044 , if the contents of a
10052 exceed the physical size of a slide or sheet of paper, the extra will overflow
10054 Again, you should avoid this.
10055 It defeats the whole purpose of
10066 \begin_layout Subsubsection
10076 \begin_layout Standard
10081 is a slide that sits atop another slide.
10082 Perhaps you wish to discuss a figure on the main
10086 before displaying the text associated with it.
10087 One way to accomplish this is tape a flap of dark paper over the part of
10092 you want to display later.
10093 This method fails, however, if you wish to overlap one graph with another,
10095 You would then have to fumble while speaking to align the two separate,
10100 s to align the two graphs.
10105 environment in both cases makes life much easier.
10108 \begin_layout Standard
10113 receives the page number of its
10114 \begin_inset Quotes eld
10118 \begin_inset Quotes erd
10126 \begin_inset Quotes eld
10134 \begin_inset Quotes erd
10141 \begin_layout Standard
10142 Presumably, mutliple
10147 \begin_inset Quotes eld
10155 \begin_inset Quotes erd
10159 \begin_inset Quotes eld
10167 \begin_inset Quotes erd
10171 \begin_inset Quotes eld
10179 \begin_inset Quotes erd
10182 , etc.\InsetSpace ~
10183 appended to the page number of the parent
10193 Clearly, you want the contents of both the
10201 to each fit on a single physical slide! You should probably consider an
10207 \begin_inset Quotes eld
10211 \begin_inset Quotes erd
10223 class provides a visual cue for this: the label at the start of an
10227 is shorter than that at the start of a
10232 Lastly, when you generate printable output, you'll find alignment markers
10233 in all four corners of both the
10237 page and its parent
10242 These will assist you in lining up the two physical slides.
10245 \begin_layout Standard
10246 The major problem in overlaying two slides is aligning the contents of the
10247 two transparencies.
10248 How much space should you leave for that graph on the second slide? Worse
10249 still, what if you want a graph and a sentence on second slide, but there
10250 is text on the main transparency that goes in between them? You could try
10251 and insert vertical space of the right size.
10252 The better way is to use
10263 \begin_layout Standard
10264 As their names imply,
10272 are two command-like paragraph environments that make all subsequent text
10273 invisible and visible, respectively.
10274 Note from section\InsetSpace ~
10276 \begin_inset LatexCommand ref
10277 reference "sec:slideQuirk"
10281 that you don't place anything
10285 these two environments, however.
10290 , it inserts a centered, sky-blue label into the page reading
10291 \begin_inset Quotes eld
10294 <Invisible Text Follows>
10295 \begin_inset Quotes erd
10299 For paragraphs following this label, the parts of the
10307 ; it doesn't matter which] where they would be contain instead blank space.
10311 \begin_layout Standard
10316 , the corresponding centered label is
10317 \begin_inset Quotes eld
10320 <Visible Text Follows>
10321 \begin_inset Quotes erd
10325 Paragraphs following this label behave normally.
10326 Note that the beginning of a new
10338 automatically shuts off an
10343 It's therefore not necessary to use
10354 \begin_layout Standard
10355 By now, it should be obvious how to create overlay transparencies using
10356 the proper combination of
10375 \begin_layout Enumerate
10380 , including everything that will appear on it, whether on the main slide
10388 \begin_layout Enumerate
10389 Before each figure or paragraph that will appear only on the
10398 If necessary, insert a
10402 environment after the
10409 \begin_layout Enumerate
10414 immediately following the
10421 \begin_layout Enumerate
10422 Copy the contents of this
10433 \begin_layout Enumerate
10438 , change all of the
10449 \begin_layout Standard
10451 You've just made an
10458 \begin_layout Standard
10459 There's one problem with the way I've designed the LyX
10463 class: you can't make text in the middle of a paragraph invisible, nor
10464 make text in the middle of an invisible paragraph visible again.
10465 To accomplish this feat, you'll need to use some inlined LaTeX codes.
10469 \begin_layout Standard
10470 The commands of interest are:
10473 \begin_layout Itemize
10478 invisible \SpecialChar \ldots{}
10482 \begin_layout Itemize
10487 visible \SpecialChar \ldots{}
10491 \begin_layout Standard
10492 \SpecialChar \ldots{}
10493 and need to be marked as TeX.
10495 \begin_inset Quotes eld
10499 \begin_inset Quotes erd
10502 you wish to change goes in between the brackets [and after the
10515 If you don't know how to mark text as TeX, see the appropriate section
10528 \begin_layout Subsubsection
10538 \begin_inset LatexCommand label
10539 name "sec:slideNote"
10546 \begin_layout Standard
10555 is associated with a
10556 \begin_inset Quotes eld
10560 \begin_inset Quotes erd
10572 class provides visual cues.
10577 is shorter than that of a
10581 [yet longer than that of an
10585 ] and, like the label of an
10589 is shockingly magenta.
10590 Additionally, the printed
10594 has the page number of its
10595 \begin_inset Quotes eld
10599 \begin_inset Quotes erd
10607 \begin_inset Quotes eld
10615 \begin_inset Quotes erd
10619 \begin_inset Quotes eld
10627 \begin_inset Quotes erd
10631 \begin_inset Quotes eld
10639 \begin_inset Quotes erd
10643 You can have multiple
10647 s associated with a single
10659 , you'll probably want to break up long
10663 s so that they fit on a single sheet of paper.
10666 \begin_layout Standard
10671 is obvious: it contains anything additional you might want to say about
10677 It could also be used as a sheet of reminders for a particular
10682 In the case of the latter, you might want to make use of time markers.
10688 \begin_inset Quotes eld
10692 \begin_inset Quotes erd
10695 support for time markers, a
10700 So, you'll have to resort to using the LaTeX codes.
10703 \begin_layout Standard
10704 To use time markers, you'll need to specify the extra class option
10705 \begin_inset Quotes eld
10713 \begin_inset Quotes erd
10716 [see section\InsetSpace ~
10718 \begin_inset LatexCommand ref
10719 reference "sec:slidesetup"
10724 This option turns on timing marks, which will appear in the lower-left-hand
10730 To set what appears in the time marker, you use the LaTeX commands
10731 \begin_inset Quotes eld
10741 \begin_inset Quotes erd
10745 \begin_inset Quotes eld
10755 \begin_inset Quotes erd
10759 The arguments of both commands are time measured in seconds.
10761 \begin_inset Quotes eld
10771 \begin_inset Quotes erd
10774 sets the time marker to a given time.
10776 \begin_inset Quotes eld
10786 \begin_inset Quotes erd
10789 increments the time marker by the specified amount.
10790 Using time markers and
10794 s in this fashion, you can remind yourself how much time to spend on a particula
10802 \begin_layout Standard
10803 There's one last feature to describe.
10804 Clearly, you'd like to print out all of your
10812 s on transparencies while printing all of your
10829 with which it is associated.
10830 What's a person to do?
10833 \begin_layout Standard
10834 Luckily, there are two LaTeX commands that allow you to select what to print
10836 Both must be placed into the preamble of your document.
10838 \begin_inset Quotes eld
10850 \begin_inset Quotes erd
10853 will cause the output to contain only the
10862 Correspondingly, the command
10863 \begin_inset Quotes eld
10875 \begin_inset Quotes erd
10878 prevents the output of anything but
10883 I'd advise placing both commands in the preamble and initially comment
10885 You can then preview your entire presentation as you write.
10886 When you're done writing, you can then uncomment one of the two to select
10887 what you want to print.
10888 I like to uncomment
10889 \begin_inset Quotes eld
10901 \begin_inset Quotes erd
10904 , print to a file with
10905 \begin_inset Quotes eld
10913 \begin_inset Quotes erd
10916 in its name, comment it back out, then uncomment
10917 \begin_inset Quotes eld
10929 \begin_inset Quotes erd
10933 \begin_inset Quotes eld
10941 \begin_inset Quotes erd
10945 I can then send either file to a printer, loading transparencies or plain
10946 paper as appropriate.
10949 \begin_layout Standard
10950 You can also provide other arguments to the
10951 \begin_inset Quotes eld
10961 \begin_inset Quotes erd
10965 \begin_inset Quotes eld
10975 \begin_inset Quotes erd
10979 See a good LaTeX book for details.
10982 \begin_layout Subsection
10987 Class Template File
10990 \begin_layout Standard
10991 I have also provided a template file,
10992 \begin_inset Quotes eld
11000 \begin_inset Quotes erd
11008 To use it, begin your new presentation with
11013 ile\SpecialChar \menuseparator
11023 Your new LyX presentation file will contain an example
11044 additionally contain an example of the use of
11053 Lastly, the preamble will contain:
11056 \begin_layout LyX-Code
11057 % Uncomment to print out only slides and overlays
11060 \begin_layout LyX-Code
11064 \begin_layout LyX-Code
11074 \begin_layout LyX-Code
11075 % Uncomment to print out only notes
11078 \begin_layout LyX-Code
11082 \begin_layout LyX-Code
11090 \begin_layout Standard
11091 One final thing: I created this class to support the LaTeX2e
11092 \begin_inset Quotes eld
11100 \begin_inset Quotes erd
11103 class, one of the built-in LaTeX2e classes.
11104 Neither I nor the rest of the LyX Team endorse or oppose the use of this
11105 built-in slide class.
11106 It's here if you want it or need it.
11107 There exist other LaTeX2e classes for creating presentations, such as the
11112 class [see section\InsetSpace ~
11114 \begin_inset LatexCommand ref
11115 reference "sec:foiltex"
11120 \begin_inset Quotes eld
11128 \begin_inset Quotes erd
11131 package [present on some TeX distributions].
11132 The latter is not yet supported under LyX.
11136 \begin_layout Standard
11137 Perhaps you can take on the task\SpecialChar \ldots{}
11143 I know nothing about these other classes.
11144 Try them out to see what sort of alternative they provide.
11147 \begin_layout Section
11156 \begin_inset LatexCommand label
11164 \begin_layout Standard
11170 \begin_layout Subsection
11174 \begin_layout Standard
11175 This section describes how to use LyX to make slides for overhead projectors.
11176 There are two document classes that can do this: the default slides class
11182 This section documents the latter.
11185 \begin_layout Standard
11186 I'm going to say this again, nice and clear, so that there's no misunderstanding
11190 \begin_layout Standard
11191 \begin_inset VSpace bigskip
11197 \begin_layout Standard
11201 This section documents the class
11202 \begin_inset Quotes eld
11210 \begin_inset Quotes erd
11218 \begin_layout Standard
11219 \begin_inset VSpace bigskip
11225 \begin_layout Standard
11226 If you're looking for the documentation for
11227 \begin_inset Quotes eld
11235 \begin_inset Quotes erd
11238 , check out section\InsetSpace ~
11240 \begin_inset LatexCommand ref
11241 reference "sec:slitex"
11246 If your machine doesn't have the
11251 \begin_inset Quotes eld
11259 \begin_inset Quotes erd
11262 ] installed, you'll probably have to use the default
11266 class, which isn't quite as good as
11271 \begin_layout Standard
11276 class is designed for use with version 2.1 of the
11280 LaTeX class file which is now an integral part of LaTeX2e.
11283 \begin_layout Subsection
11287 \begin_layout Standard
11288 Obviously, to use this document class, you need to select
11289 \begin_inset Quotes eld
11297 \begin_inset Quotes erd
11309 Document\InsetSpace ~
11313 There are some settings in the
11315 Document\InsetSpace ~
11318 dialog that you should know about that are specific to this class:
11321 \begin_layout Itemize
11322 Don't change the options
11332 Document\InsetSpace ~
11336 They're ignored by the
11343 \begin_layout Itemize
11344 The default font size is 20pt with the other options being 17pt, 25pt and
11348 \begin_layout Itemize
11349 The default font is
11357 but all math equations are still typeset in the usual roman font.
11360 \begin_layout Itemize
11365 TeX supports A4 and Letter paper sizes as well as a special size for working
11367 It doesn't support A5, B5, legal or executive paper sizes.
11370 \begin_layout Itemize
11371 Don't bother changing the
11375 settings because they are ignored anyway.
11376 All floats appear where they are defined in the text.
11379 \begin_layout Itemize
11387 setting behaves a bit differently for this class.
11392 TeX provides extensive footer and header capabilities including a user-defined
11394 See section\InsetSpace ~
11396 \begin_inset LatexCommand ref
11397 reference "sec:foilfoot"
11402 The title page is treated differently to all other pages in the document
11411 has the logo centered at the bottom of the page (if one is defined).
11412 The possible page style choices and what they do are as follows:
11417 \labelwidthstring MMMMMMM
11424 The final output contains no page numbers, or other headers or footers
11425 (except footnotes of course).
11430 \labelwidthstring MMMMMMM
11437 The final output contains page numbers centered at the bottom of the page.
11438 No other headings or footers (other than footnotes).
11442 \labelwidthstring MMMMMMM
11447 Page numbers in lower right corner.
11448 Additional headers and footers are also shown.
11449 This is also the default.
11453 \labelwidthstring MMMMMMM
11458 Gives you access to the
11462 package although its use with
11466 TeX is discouraged by the writer of the
11470 TeX package because of some potential page layout clashes.
11474 \begin_layout Subsubsection
11478 \begin_layout Standard
11479 The following options may be used in the extra class options in the
11484 ocument\SpecialChar \menuseparator
11495 \labelwidthstring MMMMMMx
11500 This sets up the page layout for 7.33in by 11in paper, which is about the
11501 same aspect ratio as a 35mm slide, making it a bit easier to work with
11506 \labelwidthstring MMMMMMx
11511 Places a rule across the page below the header on every page except the
11516 \labelwidthstring MMMMMMx
11521 Places a rule across the page above the footer on every page except the
11526 \labelwidthstring MMMMMMx
11531 This is automatically set each time you create a new
11540 TeX to use the dvips driver to rotate those pages that are set as landscape
11545 \labelwidthstring MMMMMMx
11550 Simply changes the page dimensions to those of a landscape page but doesn't
11552 Thus if you use this option you need to use an external program to rotate
11553 each page or feed your paper through your printer as landscape.
11554 Note that this option effectively reverses the roles of the
11562 environments (don't worry these are described in the next section).
11566 \labelwidthstring MMMMMMx
11571 Equation numbers on the left.
11575 \labelwidthstring MMMMMMx
11580 Flush-left equations.
11583 \begin_layout Subsection
11584 Supported Environments
11587 \begin_layout Standard
11588 Most of the environments commonly supported in other classes are also supported
11594 There are several additional environments provided by
11598 TeX as well as a couple added by LyX.
11599 The following environments are shared with other classes:
11602 \begin_layout Standard
11606 \begin_layout Standard
11610 begin{multicols}{2}
11618 \begin_layout Itemize
11624 \begin_layout Itemize
11630 \begin_layout Itemize
11636 \begin_layout Itemize
11642 \begin_layout Itemize
11648 \begin_layout Itemize
11654 \begin_layout Itemize
11660 \begin_layout Itemize
11666 \begin_layout Itemize
11672 \begin_layout Itemize
11678 \begin_layout Itemize
11684 \begin_layout Itemize
11690 \begin_layout Itemize
11696 \begin_layout Itemize
11702 \begin_layout Itemize
11708 \begin_layout Itemize
11714 \begin_layout Itemize
11720 \begin_layout Itemize
11726 \begin_layout Standard
11730 \begin_layout Standard
11742 \begin_layout Standard
11743 That is, all the major environments apart from the sectioning environments.
11744 Since foils are essentially self-contained sections, with a title and body,
11749 TeX provides specific commands for starting new foils and these are:
11752 \begin_layout Itemize
11758 \begin_layout Itemize
11764 \begin_layout Standard
11765 LyX also provides slightly modified versions of these two environments called:
11768 \begin_layout Itemize
11774 \begin_layout Itemize
11777 ShortRotatefoilhead
11780 \begin_layout Standard
11781 and the differences will be explained in the next section.
11784 \begin_layout Standard
11785 Since foils are often used in presenting ideas or new theorems and such
11790 TeX also provides a comprehensive box of goodies for presenting them:
11793 \begin_layout Standard
11797 \begin_layout Standard
11801 begin{multicols}{2}
11809 \begin_layout Itemize
11815 \begin_layout Itemize
11821 \begin_layout Itemize
11827 \begin_layout Itemize
11833 \begin_layout Itemize
11839 \begin_layout Itemize
11845 \begin_layout Itemize
11851 \begin_layout Itemize
11857 \begin_layout Itemize
11863 \begin_layout Itemize
11869 \begin_layout Itemize
11875 \begin_layout Standard
11879 \begin_layout Standard
11891 \begin_layout Standard
11892 The starred versions are unnumbered while the unstarred versions are numbered.
11893 There are also two list environments added by LyX and these are:
11896 \begin_layout Itemize
11902 \begin_layout Itemize
11908 \begin_layout Standard
11913 TeX provides some powerful header and footer capabilities that are best
11914 set in the preamble although they may be set at any point in a document.
11915 If you want to change these settings in your document the best place to
11916 do so is at the very top of a foil,
11921 straight after the foilhead.
11924 \begin_layout Standard
11925 For this purpose, the following command styles are provided [
11932 \begin_layout Standard
11936 \begin_layout Standard
11940 begin{multicols}{2}
11948 \begin_layout Itemize
11955 \begin_layout Itemize
11961 \begin_layout Itemize
11968 \begin_layout Itemize
11975 \begin_layout Itemize
11983 \begin_layout Standard
11989 \begin_layout Standard
11993 \begin_layout Standard
12005 \begin_layout Standard
12006 There are also a few commands provided by
12010 TeX that aren't directly supported by LyX but I'll tell you what they do
12011 and how to use them in section\InsetSpace ~
12013 \begin_inset LatexCommand ref
12014 reference "sec:unsuppfoils"
12021 \begin_layout Subsection
12022 Building a Set of Foils
12025 \begin_layout Standard
12026 This section will give a simple introduction to using the different environments
12027 to build a set of foils.
12028 If you want to see an example set of foils take a look at the
12032 file accessible from the
12037 ile\SpecialChar \menuseparator
12042 pen\SpecialChar \ldots{}
12053 \begin_layout Subsubsection
12054 Give It a Title Page
12057 \begin_layout Standard
12058 Unlike other classes that provide
12078 creates the title on a page of its own.
12079 If you leave out the
12083 environment LaTeX will substitute the current date (every time you regenerate
12087 \begin_layout Subsubsection
12091 \begin_layout Standard
12092 As I mentioned earlier, there are four ways of starting a new foil.
12093 For portrait foils you should use
12102 The difference between these two environments is the amount of space between
12103 the title of the foil (the foilhead) and the body of the foil.
12106 \begin_layout Standard
12107 Landscape foils are generated using the
12113 ShortRotatefoilhead
12116 Again the only difference is the spacing between foilhead and body.
12117 Both of the short versions have 0.5 inches less separation between the foilhead
12122 \begin_layout Standard
12123 One problem with the support for landscape foils is the requirement that
12124 you have to use the
12128 driver to generate the PostScript output otherwise the foils won't be rotated.
12129 It is possible to get landscape foils even if you haven't got the
12133 driver provided you can feed your foils sideways through your printer ;-)
12136 \begin_layout Subsubsection
12137 Theorems, Lemmas, Proofs and more
12140 \begin_layout Standard
12141 Due to a small bug in LyX you can't have two of the same type of these environme
12142 nts directly following each other.
12143 They must be separated by something.
12144 If you try, you will just be extending the previous environment as if you
12145 had merged the two environments together.
12146 So, how do you get around this problem? The simplest option is to insert
12147 some text between the two environments or add a
12151 environment between the two with just a
12152 \begin_inset Quotes eld
12160 \begin_inset Quotes erd
12164 This will force LyX to produce two separate environments and hence the
12165 correct LaTeX output.
12166 An example is provided in the example file included with the LyX distribution.
12167 Remember, this problem only occurs if you are trying to place two of the
12168 same type of theorem-like environments one directly after the other.
12171 \begin_layout Subsubsection
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
12185 If you intend to use itemized lists you might also want to read about the
12188 Itemize\InsetSpace ~
12189 Bullet\InsetSpace ~
12192 dialog described above in section\InsetSpace ~
12194 \begin_inset LatexCommand ref
12195 reference "sec:bullet"
12202 \begin_layout Standard
12203 The two new list styles,
12211 , are designed to make it easier for you to create lists of do's and don'ts
12212 or right and wrong by providing dedicated environments that use a tick
12213 or a cross as the label of the list.
12214 These lists are in fact dedicated variants of the
12219 They do however require that you have the
12223 packages installed.
12226 \begin_layout Subsubsection
12230 \begin_layout Standard
12235 TeX redefines the floating tables and figures so that they appear exactly
12236 where they are in the text rather than pushing them to the top of the page
12237 or to some user specified location.
12238 In fact if you change the float placement settings they are simply ignored.
12241 \begin_layout Subsubsection
12242 Page Headers and Footers
12243 \begin_inset LatexCommand label
12244 name "sec:foilfoot"
12251 \begin_layout Standard
12261 are two commands used to control the left-footer text string.
12262 The first is meant to allow you to include a graphic logo on your foils
12264 \begin_inset Quotes eld
12272 \begin_inset Quotes erd
12276 While the second is meant to provide a classification for the audience,
12279 e.\InsetSpace \thinspace{}
12284 It is empty by default.
12287 \begin_layout Standard
12288 The remaining page corners can be filled by
12293 (which defaults to page numbers),
12306 \begin_layout Subsection
12312 \begin_inset LatexCommand label
12313 name "sec:unsuppfoils"
12320 \begin_layout Standard
12321 All the commands mentioned below need to be set in a
12329 within another environment.
12332 \begin_layout Subsubsection
12336 \begin_layout Standard
12337 All lengths are adjusted using the
12360 should be replaced by the name given to the length you want to change and
12365 is the length value.
12366 All lengths should be specified in units of length such as inches (
12378 ) or relative to some document or font-based length such as
12388 \begin_layout Standard
12389 It's possible to change the spacing between a foilhead and the body of the
12390 foil by adjusting the length specified by
12397 For example, to make
12401 foilheads 0.5 inches closer to their bodies put the following in the preamble:
12408 foilheadskip}{-0.5in}
12411 \begin_layout Standard
12412 The spacings around floats can be adjusted by setting these lengths:
12416 \labelwidthstring MMMMMMMMMMM
12423 Separation between the text and the top of the float
12427 \labelwidthstring MMMMMMMMMMM
12434 Separation between the float and the caption
12438 \labelwidthstring MMMMMMMMMMM
12445 Separation between the caption and the following text
12449 \labelwidthstring MMMMMMMMMMM
12456 You can make the captions narrower than the surrounding text by adjusting
12458 Best done relative to
12467 \begin_layout Standard
12468 There are also several title page related lengths that you may find useful
12469 if you have a long title or several authors:
12473 \labelwidthstring MMMMMMMMMMM
12480 Separation from headers to
12486 \labelwidthstring MMMMMMMMMMM
12505 \labelwidthstring MMMMMMMMMMM
12520 \labelwidthstring MMMMMMMMMMM
12537 \labelwidthstring MMMMMMMMMMM
12553 \begin_layout Standard
12554 The last length related command affects all the list environments.
12565 a list environment then all the vertical spacing between the list items
12567 Note that this is a command not a length so it doesn't require
12573 like the stuff mentioned above.
12576 \begin_layout Subsubsection
12577 Headers and Footers
12580 \begin_layout Standard
12593 commands control whether the logo in the
12597 definition appear on a given page.
12604 in the preamble then none of the foils will have the logo on them.
12605 If you don't want the logo on a particular page place the
12611 directly after the foilhead of that page and the
12617 directly after the next foilhead.
12620 \begin_layout Standard
12621 If you decide to use the
12625 page style setting in the
12627 Document\InsetSpace ~
12630 dialog you should probably add
12640 to your preamble so headers and footers on landscape pages are correctly
12641 placed when rotated.
12642 This is due to some clashes between the page layouts provided by the
12653 \begin_layout Section
12654 Latex8 (IEEE Conference Papers)
12657 \begin_layout Standard
12663 \begin_layout Subsection
12667 \begin_layout Standard
12668 Since this class is specifically for writing submissions to IEEE sponsored
12669 conferences I strongly recommend that you get a copy of their Authors Kit.
12674 package and associated bibliography style file is included in the kit.
12675 The Authors Kit is usually sent out by email once your initial submission
12677 There is a lot of useful information in the Authors Kit explaining formatting
12678 restrictions and so on and I will assume you have read this since that
12679 means I don't have to repeat it all here.
12682 \begin_layout Subsection
12686 \begin_layout Standard
12687 [AR\SpecialChar \@.
12691 \begin_layout Subsection
12692 Supported Environments
12695 \begin_layout Itemize
12701 \begin_layout Itemize
12707 \begin_layout Itemize
12713 \begin_layout Itemize
12719 \begin_layout Itemize
12725 \begin_layout Itemize
12731 \begin_layout Itemize
12737 \begin_layout Itemize
12743 \begin_layout Itemize
12749 \begin_layout Subsection
12750 Differences Between Screen and Paper
12753 \begin_layout Standard
12754 There are slight differences in appearance mainly with the presentation
12755 of section counters.
12756 On screen the trailing period of the section counter is missing but it
12757 will appear in the output so don't let this worry you.
12760 \begin_layout Section
12761 Hollywood (Hollywood spec scripts)
12764 \begin_layout Standard
12770 \begin_layout Subsection
12774 \begin_layout Standard
12775 Getting the format of a Hollywood script right is a
12776 \begin_inset Quotes eld
12780 \begin_inset Quotes erd
12783 It is designed to make the readers focus on content and to be easy and
12784 familiar for the actors to read.
12785 Each page of a script should be one minute of film.
12786 Nothing goes in a script that you cannot see or hear on screen.
12787 The courier 12 pt font should be used throughout.
12791 \begin_layout Subsection
12795 \begin_layout Standard
12796 Speakers' lines should NEVER break in mid-sentence.
12797 If a speaker's lines continue over a page break, repeat the
12801 title followed by (Cont'd).
12804 \begin_layout Subsection
12808 \begin_layout Standard
12813 names as labels then cross-reference the label to insert the name.
12814 The cross-reference dialog will show the current cast of characters.
12815 You can use this to insert the speaker name in narratives also.
12818 \begin_layout Subsection
12819 Paper size and Margins
12822 \begin_layout Standard
12823 USLetter, left 1.6in, right 0.75in, top 0.5in, bottom 0.75in
12826 \begin_layout Subsection
12830 \begin_layout Standard
12831 The following environments are available.
12832 You can use hollywood.bind to get the bind keys shown at the right.
12835 \begin_layout Itemize
12842 Used where nothing else works.
12846 \begin_layout Itemize
12859 Usually followed by something like
12860 \begin_inset Quotes eld
12863 on Sally waking up.
12864 \begin_inset Quotes erd
12870 \begin_layout Itemize
12879 Introduces a new INTERIOR camera set-up.
12880 Always followed by DAY or NIGHT, or something similar to define the lighting
12882 Everthing on this line in CAPS.
12885 \begin_layout Itemize
12894 Introduces a new EXTERIOR camera set-up.
12895 Everthing on this line in CAPS.
12898 \begin_layout Itemize
12907 The character speaking.
12910 \begin_layout Itemize
12919 Instructions to the speaker.
12920 The () are automatically inserted, but only the ( will show in LyX.
12921 Both will be printed.
12924 \begin_layout Itemize
12940 \begin_layout Itemize
12949 Camera movement instruction.
12950 e.\InsetSpace \thinspace{}
12955 \begin_layout Itemize
12963 \begin_layout Itemize
12971 \begin_layout Itemize
12979 \begin_layout Itemize
12987 \begin_layout Subsection
12991 \begin_layout Itemize
12992 (O.S) --- off screen
12995 \begin_layout Itemize
12996 (V.0) --- voice over
12999 \begin_layout Itemize
13004 \begin_layout Itemize
13009 \begin_layout Itemize
13010 PAN --- camera movement
13013 \begin_layout Itemize
13014 INSERT --- cut to close-up of
13017 \begin_layout Section
13021 \begin_layout Standard
13027 \begin_layout Subsection
13031 \begin_layout Standard
13032 Broadway is for writing plays.
13033 The format is more decorative than Hollywood, and much less standardized.
13034 This format should be suitable for workshops.
13037 \begin_layout Subsection
13041 \begin_layout Standard
13042 The same as in Hollywood.
13045 \begin_layout Subsection
13049 \begin_layout Standard
13054 names as labels then cross-reference the label to insert the name.
13055 The cross-reference dialog will show the current cast of characters.
13058 \begin_layout Subsection
13059 Paper size and Margins
13062 \begin_layout Standard
13063 USLetter, left 1.6in, right 0.75in, top 0.5in, bottom 0.75in
13066 \begin_layout Subsection
13070 \begin_layout Standard
13071 The following environments are available.
13072 You can use broadway.bind to get the bind keys shown at the right.
13075 \begin_layout Itemize
13082 You should not have to use this, but it is here for anything that does not
13086 \begin_layout Itemize
13095 Used to describe stage setting and the action.
13096 First use of speaker names in all CAPs.
13099 \begin_layout Itemize
13108 Automatically numbered.
13109 On screen it will be arabic, but will print as Roman.
13112 \begin_layout Itemize
13126 It is just centered text.
13129 \begin_layout Itemize
13138 Not automatically numbered.
13139 You supply the number.
13140 This is because I couldn't figure out how.
13143 \begin_layout Itemize
13152 A special case of Narrative to describe the setting and action as the curtain
13156 \begin_layout Itemize
13165 The speaker's (actor's) title, centered in all CAPS.
13168 \begin_layout Itemize
13177 Instructions to the speaker.
13178 The parentheses are automatically inserted.
13179 The ( will appear on screen, but both will be in the printed play.
13180 This environment is only used within
13187 \begin_layout Itemize
13196 What the Speaker says.
13199 \begin_layout Itemize
13208 The curtain comes down.
13211 \begin_layout Itemize
13219 \begin_layout Itemize
13227 \begin_layout Itemize
13235 \begin_layout Standard
13239 \begin_layout Section
13243 \begin_layout Standard
13249 \begin_layout Standard
13250 \begin_inset VSpace bigskip
13256 \begin_layout Standard
13260 Revtex\InsetSpace ~
13263 textclass works with the American Physical Sociey's RevTeX 4.0 (the
13264 \begin_inset Formula $\beta$
13267 release of May, 1999) class.
13270 \begin_layout Standard
13275 textclass, which works with RevTeX 3.1.
13276 However, v3.1 is basically obsolete, as it works with LaTeX 2.09.
13277 That means that it doesn't interact very well with LyX, which requires
13278 LaTeX2e, although it has been kludged to work.
13279 Since RevTeX 4.0 has been designed to work much more cleanly with LaTeX2e,
13282 RevTeX\InsetSpace ~
13285 textclass should also be pretty easy to use.
13288 \begin_layout Standard
13289 These documents are supposed to be used in
13293 to the RevTeX 4.0 documents, so we don't describe any of the special RevTeX
13294 macros, and assume you'll know what to put in the preamble if necessary.
13297 \begin_layout Subsection
13301 \begin_layout Standard
13302 All you need to do is install RevTeX 4, as described in the package's README
13304 The package can be found at
13305 \begin_inset LatexCommand url
13306 name "The RevTeX 4 Web Site"
13307 target "http://publish.aps.org/revtex4/"
13312 Install it somewhere that LaTeX can see it.
13313 Test it by trying to LaTeX a short RevTeX 4 document in some random directory
13314 (i.e., not the directory where you installed the class file.) Then, if you
13315 reconfigure LyX, it will find the class file and let you use the RevTeX4
13319 \begin_layout Standard
13320 Probably the easiest way to get started is either to import a RevTeX 4 document
13327 Revtex\InsetSpace ~
13330 template, found in the templates directory.
13333 \begin_layout Subsection
13337 \begin_layout Standard
13338 Optional arguments to
13345 \begin_inset Quotes eld
13349 \begin_inset Quotes erd
13353 \begin_inset Quotes eld
13357 \begin_inset Quotes erd
13371 Document\InsetSpace ~
13375 Remember that in RevTeX, at least one optional argument is required!
13378 \begin_layout Standard
13379 Other preamble matter, like
13395 dialog, also as usual.
13398 \begin_layout Subsection
13402 \begin_layout Standard
13403 The layouts basically correspond to the commands in RevTeX4.0.
13404 For example, the Email layout corresponds to
13411 Note that (at least as of RevTeX 4.0 Beta), the
13419 layouts are exactly equivalent, so you shouldn't need to use both.
13423 \begin_layout Standard
13424 In case you're curious, both were included so that
13428 would be able to translate both
13448 \begin_layout Subsection
13452 \begin_layout Standard
13453 There are a couple of important unique aspects of RevTeX 4 which might cause
13454 bugs that will be even more confusing in LyX.
13457 \begin_layout Standard
13475 The LyX equivalent is that there is a separate Thanks layout.
13480 write footnotes in the
13484 layout, or weird things may happen.
13485 See the RevTeX 4 documentation for more details.
13488 \begin_layout Standard
13491 Author\InsetSpace ~
13496 Author\InsetSpace ~
13503 layouts must be placed
13511 layout and the corresponding
13528 , the LaTeX won't compile.
13531 \begin_layout Subsection
13535 \begin_layout Standard
13536 The main problem with this layout is that you can't use the optional arguments
13537 to layouts like Email and Title.
13538 (The problem is not unique to this layout; you can't use optional arguments
13539 to the Section layouts either.) This means that after you export that file
13540 to LaTeX (which you'll need to do eventually to send it in to APS), you'll
13541 need to edit the LaTeX file with a text editor to add the optional arguments
13542 to set, e.\InsetSpace \thinspace{}
13543 g., the running title for the page headers.
13544 Lacking these layouts makes the
13550 (and the equivalent
13556 ) useless, so the corresponding layouts don't exist, and will have to be
13561 \begin_layout Standard
13566 actually, LyX 1.3.0 supports some forms of optional arguments, but this layout
13567 has not been updated yet to take advantage of it.
13575 \begin_layout Section
13576 Article (mwart), book (mwbk) and report (mwrep)
13577 \begin_inset OptArg
13580 \begin_layout Standard
13593 \begin_layout Standard
13599 \begin_layout Standard
13600 The LyX document classes
13616 correspond to the LaTeX document classes
13629 They are replacements for the standard document classes
13641 , resp., and fit better to Polish typography conventions in a number of points.
13645 \begin_layout Standard
13649 \begin_layout Itemize
13650 Unnumbered titles (with star, eg.
13655 ) are added into table of contents,
13658 \begin_layout Itemize
13659 Additional page styles:
13663 \begin_layout Description
13664 uheadings header with separated lines,
13667 \begin_layout Description
13668 myheadings custom header, contents headers via commands:
13683 \begin_layout Description
13684 myuheadings custom header with separated lines,
13687 \begin_layout Description
13688 outer page number is placed on outer side of page
13692 \begin_layout Itemize
13697 \begin_layout Description
13698 rmheadings serif titles --- default,
13701 \begin_layout Description
13702 sfheadings sansserif titles,
13705 \begin_layout Description
13706 authortitle on title page first placed is author next title --- default,
13709 \begin_layout Description
13710 titleauthor on title page first placed is title next author,
13713 \begin_layout Description
13714 withmarginpar reserve place on page for margins.
13718 \begin_layout Section
13722 \begin_layout Standard
13728 \begin_layout Standard
13729 Elsevier Science Publishers B.V.
13730 provides a standard LaTeX document class (
13734 ) for submitting articles to their various journals.
13735 The style file can be downloaded directly from their web site:
13736 \begin_inset LatexCommand url
13737 target "http://authors.elsevier.com/"
13742 Instructions are supplied along with the class file, which details the
13743 requirements of the publishers.
13744 LyX includes package that allows for the use of this class, by a layout
13745 and a template file.
13746 Installation of the class file is the same as for any other LaTeX package;
13747 instructions are provided in the Elsevier documentation.
13750 \begin_layout Standard
13760 As the Elsevier class file is based mainly on the standard article class,
13761 most of the normal functionality is provided.
13762 The Elsevier class defines a number of mathematical environments, which
13763 are similar to the AMS environments.
13764 These commands are all described in the Elsevier documentation, and are
13768 \begin_layout Standard
13769 The easiest way to use the Elsevier style is to base documents on the included
13771 It is best not to use options such as fancy headings or the geometry package,
13772 as elements such as these are defined by Elsevier in their style file.
13773 Ideally, no extra packages except those mentioned in the Elsevier documentation
13775 Essentially, Elsevier require as
13776 \begin_inset Quotes eld
13780 \begin_inset Quotes erd
13787 \begin_layout Standard
13796 file as possible, as their intention is to take the supplied file and replace
13797 the class file with one for the particular journal to which the paper has
13799 This also means that not too much time should be spent on the formating
13801 When it comes to be published, this will change anyway.
13802 The rest of the usage for this layout is substantially the same as for
13803 the normal article class.
13804 For details of what Elsevier do and don't allow, refer to their documentation.
13807 \begin_layout Section
13811 \begin_layout Standard
13814 Jürgen Spitzmüller
13817 \begin_layout Subsection
13821 \begin_layout Standard
13822 Memoir is a very powerful and constantly evolving class.
13823 It has been designed with regard to fictional and non-fictional literature.
13824 Its aim is to let the user have maximum control over the typesetting of
13826 Memoir is based on the standard book class, but it can also emulate the
13827 article class (see below).
13830 \begin_layout Standard
13831 Peter Wilson, the developer of Memoir, is known as the author of lots of
13832 useful packages in the LaTeX world.
13833 Most of them have been merged with Memoir.
13834 Therefore, it is much easier to layout the table of contents, appendices,
13835 chapter designs and such.
13836 LyX, though, does not support all of these goodies natively.
13837 Some of them might be added to forthcoming releases
13841 \begin_layout Standard
13842 You are invited to send suggestions to
13843 \begin_inset LatexCommand url
13844 target "lyx-devel@lists.lyx.org"
13853 , lots will probably never, due to the limitations of LyX's framework.
13854 Of course you can still use all features with the help of some native LaTeX
13859 \begin_layout Standard
13864 \begin_layout Standard
13873 section\InsetSpace ~
13875 \begin_inset LatexCommand ref
13876 reference "sec:Inserting-LaTeX-Code"
13886 In this section, we can only list those features which are natively supported
13888 For detailed descriptions (and for the rest of features) we are recommending
13889 to have a look at the detailed manual of the Memoir class
13893 \begin_layout Standard
13898 \begin_layout Standard
13908 \begin_inset LatexCommand url
13909 target "CTAN:/macros/latex/memoir/memman.pdf"
13918 , which is not only a user guide for the class, but also both a comprehensive
13919 description on good typesetting and a superb example for good typesetting
13923 \begin_layout Subsection
13924 Basic features and restrictions
13927 \begin_layout Standard
13928 Memoir supports basically all features of the standard book classes.
13929 There are, however, some differences, as follows:
13932 \begin_layout Description
13934 sizes: Memoir has a broader range of font sizes: 9, 10, 11, 12, 14,
13938 \begin_layout Description
13940 style: The fancy page style is not supported, due to a command clash
13941 between Memoir and the fancyhdr package (they are both defining a command
13942 with the same name, which confuses LaTeX).
13943 Instead, Memoir comes with a bunch of own page styles (see
13945 Layout\SpecialChar \menuseparator
13946 Document\SpecialChar \menuseparator
13951 If you want to use these for the chapter pages, you have to use the command
13958 in the main text or in preamble (e.
13962 \begin_layout Standard
13975 \begin_layout Standard
13988 chapterstyle{companion}
13993 \begin_layout Description
13994 Sectioning: Sectionings (chapter, section, subsection etc.) are coming with
13995 an optional argument in the standard classes.
13996 With this, you can specify an alternative version of the title for the
13997 table of contents and the headers (for instance, if the title is too long).
13998 In LyX, you can do this via
14000 Insert\SpecialChar \menuseparator
14004 at the beginning of a chapter/section.
14005 Memoir features a second optional argument and thus separates the table
14006 of contents from the header.
14007 You can define three variants of a title with this: one for the main text,
14008 one for the table of contents, and one for the headers.
14009 Simply insert two optional arguments if you need this feature, the first
14010 one containing the short title for the Table of Contents, the second one
14011 containing an alternative short title for the headers.
14014 \begin_layout Description
14015 TOC/LOT/LOF: In the standard classes (and in many other classes), the table
14016 of contents, the list of figures and the list of table start a new page
14018 Memoir does not follow this route.
14019 You have to insert a page break yourself, if you want to have one.
14022 \begin_layout Description
14023 Titlepage: For some unknown reason, Memoir uses pagination on the title
14024 page (in the standard classes, title pages are
14025 \begin_inset Quotes eld
14029 \begin_inset Quotes erd
14036 \begin_layout Standard
14049 \begin_layout Standard
14059 If you want an empty title page, type
14063 aliaspagestyle{title}{empty}
14068 \begin_layout Description
14069 Article: With the class option
14075 Layout\SpecialChar \menuseparator
14076 Document\SpecialChar \menuseparator
14080 ), you can emulate article style.
14081 That is, counters (footnotes, figures, tables etc.) will not be reset on
14082 new chapters, chapters don't start a new page (but are---in contrary to
14084 \begin_inset Quotes eld
14088 \begin_inset Quotes erd
14091 article classes---still allowed), parts, though, use their own page, as
14095 \begin_layout Description
14096 Oldfontcommands: By default, Memoir does not allow the use of the deprecated
14097 font commands, which have been used in the old LaTeX version 2.09 (e.
14101 \begin_layout Standard
14114 \begin_layout Standard
14136 It produces an error and stops LaTeX whenever such a command appears.
14141 reallows the commands and spits out warnings instead (which does at least
14143 Since a lot of packages and particularly BibTeX style files are still using
14144 those commands, we have decided to use this option by default.
14147 \begin_layout Subsection
14151 \begin_layout Standard
14152 We will only describe the features supported by LyX (which is not much currently
14154 Please consult the Memoir manual
14158 \begin_layout Standard
14163 \begin_layout Standard
14173 \begin_inset LatexCommand url
14174 target "CTAN:/macros/latex/memoir/memman.pdf"
14186 \begin_layout Description
14187 Abstract: You may wonder why an abstract is an extra feature.
14188 Well, it is in book class.
14189 Usually books don't have abstracts.
14190 Memoir, however, has.
14191 You can use it wherever and how often you like.
14194 \begin_layout Description
14195 Chapterprecis: You may know this from belletristic: The contents of a chapter
14196 is shortly described below the title and also in the table of contents
14201 \begin_layout Standard
14214 \begin_layout Standard
14225 Our hero arrives in Troia; he loses some friends; he finds others
14228 Chapterprecis does exactly this.
14229 It is therefore only sensible below a chapter.
14232 \begin_layout Description
14233 Epigraph: An epigraph is a smart slogan or motto at the beginning of a chapter.
14234 The epigraph environment provides an elegant way of typesetting such a
14236 The motto itself (text) and its author (source) are divided by a short
14238 Unfortunately, we have to fool LyX a bit here again, since the environment
14239 needs two arguments (text and source).
14240 In this case, we have to use curly brackets (in TeX mode) between the two
14251 <author of the slogan>.
14254 \begin_layout Description
14255 Poemtitle: Memoir has lots of possibilities to typeset poetry (up to very
14256 complex figurative poems).
14257 LyX can only support a few of them.
14258 One is poemtitle, which is a centered title for poems, which will also
14259 be added to the table of contents (verse is the standard environment for
14261 Memoir has some enhanced versions of verse, but you need to use ERT, because
14262 they have to be nested inside regular verse environments, which is not
14263 possible with LyX).
14266 \begin_layout Description
14267 Poemtitle*: Same as poemtitle, but it adds no entry to the table of contents.
14270 \begin_layout Chapter
14271 Importing and Exporting Alternate File Formats
14272 \begin_inset OptArg
14275 \begin_layout Standard
14276 Importing and Exporting
14284 \begin_layout Section
14288 \begin_layout Standard
14289 Importing and exporting LyX documents from/to other formats has been touched
14295 Here we describe more of the gory details needed to understand just what
14296 is going on when you click on the
14301 ile\SpecialChar \menuseparator
14313 ile\SpecialChar \menuseparator
14324 \begin_layout Section
14325 Importing Other Formats
14328 \begin_layout Subsection
14332 \begin_layout Standard
14333 Translating from LaTeX into LyX is performed by a converter program called
14339 Although it is a standalone program which can be called from the command
14340 line, LyX will call it automatically when a LaTeX document is imported.
14341 See section\InsetSpace ~
14343 \begin_inset LatexCommand ref
14344 reference "sec:Translating-LaTeX-files"
14348 for a complete description.
14351 \begin_layout Subsection
14355 \begin_layout Standard
14356 When importing plain ASCII text, there are two methods of reading the file.
14358 \begin_inset Quotes eld
14362 \begin_inset Quotes erd
14365 preserves all the linebreaks in the ASCII; to LyX, then, each line looks
14368 \begin_inset Quotes eld
14372 \begin_inset Quotes erd
14375 assumes that consecutive lines separated by only a single linebreak form
14376 a single paragraph.
14377 Successive linebreaks with no intervening text are thus assumed to be paragraph
14381 \begin_layout Subsection
14385 \begin_layout Standard
14388 [Editor's note: Needs to be written, obviously - any volunteers? --- mer]
14391 \begin_layout Section
14392 Exporting Other Formats
14395 \begin_layout Standard
14396 The output formats listed here in the following are also explained concerning
14397 possible graphics formats in the
14404 \begin_layout Subsection
14408 \begin_layout Standard
14409 LyX generates two types of LaTeX files: stripped down versions for the normal
14414 , etc.) which one normally never sees
14418 \begin_layout Standard
14419 The resulting file is a perfectly valid LaTeX file, though the preamble
14420 might look a bit strange since it includes some definitions used by LyX
14421 which wouldn't show up in most human-written files.
14426 , and human readable forms which are suitable for exchanging with your colleague
14428 The only settable option for the translation is the line length of the
14430 The default is 65 characters, but it can be set in
14437 \SpecialChar \menuseparator
14458 \begin_layout Subsection
14459 Device Independent Files
14462 \begin_layout Standard
14463 Device Independent files (DVI files) are produced by running LaTeX on your
14465 There are no user settable options.
14468 \begin_layout Subsection
14472 \begin_layout Standard
14473 The next step in the conversion chain is converting a DVI file into Postscript.
14481 \SpecialChar \menuseparator
14489 \SpecialChar \menuseparator
14498 or, if you need more control on the result,
14505 \SpecialChar \menuseparator
14514 If you use the later, note that it is possible to configure, in
14521 \SpecialChar \menuseparator
14529 , the options passed to the dvips program to achieve different effects.
14532 \begin_layout Subsection
14536 \begin_layout Standard
14537 Exporting as ASCII attempts to preserve the
14538 \begin_inset Quotes eld
14542 \begin_inset Quotes erd
14545 of the document as well as possible, but things like centering and indentation
14546 are thrown out; paragraphs are separated by blank lines.
14547 Section numbering and cross-references are done correctly, so the resulting
14548 text files is remarkably readable.
14549 The only changeable option is the length of lines, as for LaTeX output.
14552 \begin_layout Subsection
14556 \begin_layout Standard
14557 LyX documents can be converted to hypertext markup, usually by converting
14558 to LaTeX first, then converting that to HTML\SpecialChar \@.
14560 \begin_inset Formula $\rightarrow$
14563 HTML converters are currently known to LyX:
14580 Though they are autodetected, you can overide the selection in preferences.
14581 You can also include further command line options in this dialog.
14585 \begin_layout Subsection
14589 \begin_layout Standard
14597 \begin_layout Standard
14598 \begin_inset VSpace bigskip
14604 \begin_layout Standard
14605 The fastest way to generate a basic PDF file (no tags, links, etc.) with
14606 any version of LyX is to save the document as a Postscript file, then run
14612 Starting with version 1.1.6, the menu item
14616 will do all this for you.
14617 There are some issues with fonts that you need to pay attention to: see
14618 Section\InsetSpace ~
14620 \begin_inset LatexCommand ref
14621 reference "sec:badfonts"
14626 Also, as of version 1.1.6, there is a better method that will generate much
14627 more sophisticated files.
14630 \begin_layout Subsubsection
14634 \begin_layout Standard
14635 With pdfLaTeX you cannot use pstricks.
14636 On the other hand, with pdfLaTeX it is possible to insert directly images
14637 in JPEG, PDF or PNG format, use TrueType fonts, and more.
14640 \begin_layout Subsubsection
14641 Why does the text look so bad when viewed with Acrobat Reader?
14642 \begin_inset LatexCommand label
14643 name "sec:badfonts"
14648 \begin_inset OptArg
14651 \begin_layout Standard
14652 Bad Fonts in Acrobat Reader
14660 \begin_layout Standard
14661 The problem is that bitmap fonts are displayed poorly by Acrobat Reader.
14662 When creating a PDF from the LyX file, you need to use outline font instead
14663 of the default bitmap fonts (in fact, you should also use outline fonts
14664 for Postscript files).
14665 Recent LaTeX distributions come with Postscript Type 1 version of the standard
14666 (Computer Modern) fonts.
14667 pdfLaTeX uses these font by default.
14668 Dvips doesn't use these fonts by default, so to make it use them, add the
14669 following to lines to your
14676 \begin_layout LyX-Code
14680 \begin_layout LyX-Code
14684 \begin_layout Standard
14685 If the default LaTeX font encoding (OT1) is used, nothing else need to be
14687 However, if the T1 font encoding is used, then LaTeX uses the newer EC
14688 fonts, for which there are no Type1 version.
14689 The solution is to use the ae package which emulates T1 coded fonts using
14690 the standard CM fonts.
14691 This is done by adding
14695 usepackage{ae,aecompl}
14697 to the preamble of the LyX file.
14698 However, some glyphs are missing from the CM fonts (e.\InsetSpace \thinspace{}
14701 they are taken from the EC fonts.
14702 Therefore you get these glyphs as bitmaps.
14705 \begin_layout Standard
14706 Note: LyX uses by default the T1 font encoding.
14707 If you wish to use the default font encoding (this is not recommended,
14708 unless you only write English documents), clear the field
14716 in preferences (tabs
14728 \begin_layout Standard
14729 An alternate option is to use the standard Postscript fonts instead of the
14730 Computer Modern fonts.
14731 To do that, you need to select
14735 as the global font in the document layout dialog.
14736 When using the Postscript fonts, the result PDF file is smaller as the
14737 fonts are not saved into the file.
14738 Furthermore, the Postscript fonts include all T1 glyphs.
14739 On the other hand, the Postscript fonts have no bold symbol font, so poor
14740 man's bold must be used (see Section\InsetSpace ~
14742 \begin_inset LatexCommand ref
14743 reference "sec:pdfbold"
14748 The Postscript fonts also look different from the Computer Modern fonts.
14751 \begin_layout Standard
14752 To sum up, both the Computer Modern and the Postscript fonts gives good
14753 results (with few exceptions).
14754 The decision of which one to use is a matter of taste.
14757 \begin_layout Subsubsection
14760 boldsymbol{} command work when I use pslatex?
14761 \begin_inset LatexCommand label
14767 \begin_inset OptArg
14770 \begin_layout Standard
14787 \begin_layout Standard
14788 The Postscript fonts do not have a bold symbol font.
14789 The solution is to use the
14795 (poor man's bold) command.
14798 \begin_layout Standard
14799 It is possible to redefine the
14814 \begin_layout LyX-Code
14824 \begin_layout Standard
14828 \begin_layout Subsubsection
14829 Is it possible to do write LaTeX-code which is processed only when running
14831 \begin_inset OptArg
14834 \begin_layout Standard
14835 Conditionals with pdfLaTeX
14843 \begin_layout Standard
14844 Yes you can do this with the
14849 Here is an example:
14852 \begin_layout LyX-Code
14856 \begin_layout LyX-Code
14862 \begin_layout LyX-Code
14868 \begin_layout LyX-Code
14871 pdfinfo { /Author (your name and e-mail address)
14874 \begin_layout LyX-Code
14875 /Title (official title -- i.e., title element)
14878 \begin_layout LyX-Code
14879 /Subject (one line description of the document)
14882 \begin_layout LyX-Code
14886 \begin_layout LyX-Code
14889 pdfcatalog { /PageMode (/UseNone)
14892 \begin_layout LyX-Code
14893 % /OpenAction (fitbh)
14896 \begin_layout LyX-Code
14900 \begin_layout LyX-Code
14903 usepackage[pdftex]{hyperref}
14906 \begin_layout LyX-Code
14912 \begin_layout LyX-Code
14915 usepackage[ps2pdf]{hyperref}
14918 \begin_layout LyX-Code
14924 \begin_layout Subsubsection
14925 How can I make URLs clickable?
14928 \begin_layout Standard
14929 See the references here:
14932 \begin_layout Standard
14933 \begin_inset LatexCommand url
14934 target "http://wiki.lyx.org/pmwiki.php/FAQ/PDF"
14941 \begin_layout Subsection
14945 \begin_layout Standard
14946 Custom exports are possible if you have some particularly weird format you
14947 wish to convert to, assuming you have the relevant converter, of course.
14952 file can be chosen in the
14957 ile\SpecialChar \menuseparator
14962 xport\SpecialChar \menuseparator
14969 dialog; LyX will automatically convert the file to this point, then feed
14970 it to your custom converter.
14971 The possible values are all formats that LyX can produce from its own documents.
14975 \begin_layout Standard
14976 The converter command is also specified in the dialog.
14977 It should be a completely qualified command line which uses the variable
14982 to specify the name of the file.
14983 If this variable is not given, then the file will be sent to the standard
14984 input of your command.
14985 You may have to apply a bit of ingenuity to escape this sequence correctly
14986 so that it is compatible with your shell.
14990 \begin_layout Standard
14991 While it is not possible to save this command using the
14995 dialog, you can manually edit your
15002 \begin_layout LyX-Code
15005 custom_export_command "mycommand $$FName"
15008 \begin_layout Chapter
15009 LyX Features needing Extra Software
15012 \begin_layout Section
15016 \begin_layout Standard
15022 \begin_layout Subsection
15026 \begin_layout Standard
15034 menu, you'll find a
15043 This feature requires you to have the
15047 program installed, and is grayed out if you don't have it.
15048 You can get it from your nearest CTAN mirror, or over the Web from
15049 \begin_inset LatexCommand url
15050 target "http://www.ifi.uio.no/~jensthi/chktex/"
15057 \begin_layout Standard
15062 package is a program that was written by
15067 in frustration because some constructs in LaTeX are sometimes non-intuitive,
15068 and easy to forget.
15069 The program runs over your LaTeX file and checks the integrity of the file,
15070 and flags some common errors.
15071 In other technical words, it is
15078 \begin_layout Standard
15079 Well, what is a syntax checker doing in LyX which is supposed to produce
15080 correct LaTeX anyways? The answer is simple: Just as
15084 not only checks the
15088 of C programs, but also does
15092 checks for type-errors,
15096 catches some common
15100 errors, in addition to the syntactical ones.
15105 is capable of detecting several common errors, such as
15108 \begin_layout Itemize
15109 Ellipsis detection:
15111 Use \SpecialChar \ldots{}
15115 \begin_layout Itemize
15116 No space in front of/after parenthesis:
15121 \begin_layout Itemize
15122 Enforcement of normal space after common abbreviations:
15126 is too wide spacing.
15129 \begin_layout Itemize
15130 Enforcement of end-of-sentence space when the last sentence ends with a
15134 And this is wrong spacing.
15137 \begin_layout Itemize
15138 Space in front of labels and similar commands:
15140 The label should stick right
15141 up to the text to avoid falling to a wrong page.
15143 \begin_inset LatexCommand label
15152 \begin_layout Standard
15153 This footnote is in danger of falling off to a wrong page
15158 The label is separated too much.
15161 \begin_layout Itemize
15162 Space in front of references, instead of hard spaces:
15164 In you are in bad luck,
15165 the text will break right between the referenced text and reference number,
15168 \begin_inset LatexCommand ref
15169 reference "sec:chktex"
15176 \begin_layout Itemize
15178 \begin_inset Quotes eld
15182 \begin_inset Quotes erd
15186 \begin_inset Formula $\times$
15191 2x2 looks cheap compared to
15192 \begin_inset Formula $2\times2$
15198 \begin_layout Standard
15199 and more \SpecialChar \ldots{}
15200 It is an invaluable tool when you are
15201 \begin_inset Quotes eld
15205 \begin_inset Quotes erd
15208 your document before printing, and you should run it right after the obligatory
15209 spelling check, and before you go fine tuning the typesetting.
15212 \begin_layout Subsection
15216 \begin_layout Standard
15217 If you have the program installed, usage is as simple as choosing
15222 ools\SpecialChar \menuseparator
15231 This will make LyX generate a LaTeX file of your document, start
15235 to check it, and then make LyX insert
15236 \begin_inset Quotes eld
15240 \begin_inset Quotes erd
15243 with the warnings from
15247 , if there were any.
15248 The warnings will be placed close to the point of the mistake, and you
15249 can quickly find them by using the
15254 avigate\SpecialChar \menuseparator
15261 menu item, or the shortcut key
15270 Open the error boxes by clicking on them with the mouse, or use the shortcut
15279 bindings, or the corresponding
15288 Read the warning and correct the mistake, if it is a mistake.
15289 If you have trouble understanding what the warning is about, you can safely
15291 Remember that there is a hidden layer between the document on screen and
15292 the technical details in invoking
15296 , and this gap can make some warnings seem arcane or just right down plain
15300 \begin_layout Standard
15301 This document is an excellent testing bed for the feature, and it should
15302 provide quite a few warnings for you to fiddle with.
15303 Since computers are only so smart, expect most of the warnings to be false
15307 \begin_layout Subsection
15308 How to fine tune it
15311 \begin_layout Standard
15312 Sometimes, you'll find that
15316 makes more noise than suits your mood.
15317 Then you can choose not to use it, wait until your mood changes, or try
15322 to get better along with you.
15323 Another choice in the most desperate situations is to use
15328 iew\SpecialChar \menuseparator
15338 , which will get rid of all warnings instantly.
15341 \begin_layout Standard
15350 very configurable and extensible, you shouldn't expect to solve all problems
15356 Since LyX has to generate a somewhat special LaTeX file to be able to match
15357 the line numbers from the
15365 \begin_layout Standard
15366 You can inspect the specific output from
15372 Edit\SpecialChar \menuseparator
15386 to the internal document structure, some of the warnings will not seen
15387 to appear correctly.
15388 There are two things you can do about this:
15391 \begin_layout Itemize
15396 invocation command line in
15412 installation configuration file (usually with the file
15414 /usr/local/share/chktexrc
15417 See below to learn what warnings can be enabled and disabled on the command
15422 \begin_layout Itemize
15423 Export your document as a raw LaTeX file using
15428 ile\SpecialChar \menuseparator
15433 xport\SpecialChar \menuseparator
15445 Invoked in this way, it can be a hassle to find the corresponding place
15446 in the document inside LyX, but with a little patience, you should be able
15450 \begin_layout Standard
15451 Here follows the warning messages that can be enabled and disabled in
15460 to disable a warning, and
15464 to enable a warning.
15465 The emphasized entries are disabled by default, because the default is
15468 chktex -n1 -n3 -n6 -n9 -n22 -n25 -n30 -n38
15473 \begin_layout Standard
15474 Notice that you should only use the options that enable and disable warnings,
15475 because LyX relies on some of the other command line parameters to be set
15476 in a specific way to have a chance to communicate with
15483 \begin_layout Enumerate
15487 Command terminated with space.
15490 \begin_layout Enumerate
15493 Non-breaking space (
15494 \begin_inset Quotes eld
15502 \begin_inset Quotes erd
15505 ) should have been used.
15508 \begin_layout Enumerate
15512 You should enclose the previous parenthesis with
15513 \begin_inset Quotes eld
15521 \begin_inset Quotes erd
15527 \begin_layout Enumerate
15530 Italic correction (
15531 \begin_inset Quotes eld
15541 \begin_inset Quotes erd
15544 ) found in non-italic buffer.
15547 \begin_layout Enumerate
15550 Italic correction (
15551 \begin_inset Quotes eld
15561 \begin_inset Quotes erd
15564 ) found more than once.
15567 \begin_layout Enumerate
15571 No italic correction (
15572 \begin_inset Quotes eld
15582 \begin_inset Quotes erd
15588 \begin_layout Enumerate
15592 \begin_inset Quotes eld
15600 \begin_inset Quotes erd
15604 \begin_inset Quotes eld
15612 \begin_inset Quotes erd
15618 \begin_layout Enumerate
15621 Wrong length of dash may have been used.
15624 \begin_layout Enumerate
15628 \begin_inset Quotes eld
15636 \begin_inset Quotes erd
15640 \begin_inset Quotes eld
15648 \begin_inset Quotes erd
15654 \begin_layout Enumerate
15658 \begin_inset Quotes eld
15666 \begin_inset Quotes erd
15672 \begin_layout Enumerate
15676 \begin_inset Quotes eld
15684 \begin_inset Quotes erd
15687 to achieve an ellipsis.
15690 \begin_layout Enumerate
15693 Inter-word spacing (
15694 \begin_inset Quotes eld
15704 \begin_inset Quotes eld
15707 ) should perhaps be used.
15710 \begin_layout Enumerate
15713 Inter-sentence spacing (
15714 \begin_inset Quotes eld
15724 \begin_inset Quotes erd
15727 ) should perhaps be used.
15730 \begin_layout Enumerate
15733 Could not find argument for command.
15736 \begin_layout Enumerate
15740 \begin_inset Quotes eld
15748 \begin_inset Quotes erd
15754 \begin_layout Enumerate
15757 Math mode still on at end of LaTeX file.
15760 \begin_layout Enumerate
15764 \begin_inset Quotes eld
15772 \begin_inset Quotes erd
15775 doesn't match the number of
15776 \begin_inset Quotes eld
15784 \begin_inset Quotes erd
15790 \begin_layout Enumerate
15793 You should use either
15796 \begin_inset Quotes eld
15804 \begin_inset Quotes erd
15809 as an alternative to
15810 \begin_inset Quotes eld
15818 \begin_inset Quotes erd
15824 \begin_layout Enumerate
15831 " (ASCII 39) instead of "
15838 \begin_layout Enumerate
15841 User-specified pattern found.
15844 \begin_layout Enumerate
15847 This command might not be intended.
15850 \begin_layout Enumerate
15857 \begin_layout Enumerate
15875 \begin_layout Enumerate
15878 Delete this space to maintain correct page references.
15881 \begin_layout Enumerate
15885 You might wish to put this between a pair of
15886 \begin_inset Quotes eld
15894 \begin_inset Quotes erd
15900 \begin_layout Enumerate
15903 You ought to remove spaces in front of punctuation.
15906 \begin_layout Enumerate
15909 Could not execute LaTeX command.
15912 \begin_layout Enumerate
15921 in front of small punctuation.
15924 \begin_layout Enumerate
15932 may look prettier here.
15935 \begin_layout Enumerate
15939 Multiple spaces detected in output.
15942 \begin_layout Enumerate
15945 This text may be ignored.
15948 \begin_layout Enumerate
15954 \begin_inset Quotes eld
15959 to begin quotation, not
15966 \begin_layout Enumerate
15973 to end quotation, not
15976 \begin_inset Quotes eld
15984 \begin_layout Enumerate
15990 \begin_layout Enumerate
15993 You should perhaps use
15994 \begin_inset Quotes eld
16002 \begin_inset Quotes erd
16008 \begin_layout Enumerate
16011 You should put a space in front of/after parenthesis.
16014 \begin_layout Enumerate
16017 You should avoid spaces in front of/after parenthesis.
16020 \begin_layout Enumerate
16024 You should not use punctuation in front of/after quotes.
16027 \begin_layout Enumerate
16030 Double space found.
16033 \begin_layout Enumerate
16036 You should put punctuation outside inner/inside display math mode.
16039 \begin_layout Enumerate
16042 You ought to not use primitive TeX in LaTeX code.
16045 \begin_layout Enumerate
16048 You should remove spaces in front of
16049 \begin_inset Quotes eld
16057 \begin_inset Quotes erd
16063 \begin_layout Enumerate
16066 \begin_inset Quotes eld
16074 \begin_inset Quotes erd
16077 is normally not followed by
16078 \begin_inset Quotes eld
16086 \begin_inset Quotes erd
16092 \begin_layout Standard
16093 In later versions of LyX, we hope to provide a more complete interface to
16094 this tool (and it's smaller cousin
16098 ) to exploit the full power of it.
16099 But it's not exactly useless as it is now: go try it on one of your existing
16100 documents of a certain length and be surprised.
16103 \begin_layout Section
16104 Version Control in LyX
16107 \begin_layout Standard
16110 Lars Gullik Bjønnes
16113 \begin_layout Subsection
16117 \begin_layout Standard
16118 A friend of mine wanted to try LyX for a group project.
16119 When he didn't find support for version control or file locking, he dropped
16121 This angered me a bit, so I thought that I should at least make support
16122 for RCS (with the possibility of CVS and/or SCCS as a future improvement.)
16123 This has now been done.
16124 LyX now supports some of the most basic RCS commands.
16125 If you need to something a bit more sophisticated you will have to do that
16126 manually in an xterm.
16129 \begin_layout Standard
16130 Before you begin to use the version control features in LyX, you should
16132 \begin_inset Quotes eld
16136 \begin_inset Quotes erd
16139 (a man file, read it with
16144 This file describes all the basic features of RCS.
16145 You should especially notice the comment about a RCS directory, and the
16146 notion of a master RCS file (the file ending in
16153 \begin_layout Standard
16154 The implementation in LyX assumes a recent version of the GNU RCS package---no
16155 guarantees are made for older versions.
16158 \begin_layout Subsection
16159 RCS commands in LyX
16162 \begin_layout Standard
16163 The following sections describe the RCS commands supported by LyX.
16164 You can find them in the
16169 ile\SpecialChar \menuseparator
16174 ersion\InsetSpace ~
16180 \begin_layout Subsubsection
16186 \begin_layout Standard
16187 If your document is not under revision control, this is the only item shown
16189 And if it is under revision control, the
16196 item is grayed out.
16200 \begin_layout Standard
16201 This command registers your document with RCS\SpecialChar \@.
16202 You are asked interactively
16203 to supply an initial description of the document.
16204 The document is now set in Read-Only mode and you have to
16211 , before making any changes to it.
16212 A document under revision control has a
16213 \begin_inset Quotes eld
16216 [RCS:<version> <locker>]
16217 \begin_inset Quotes erd
16220 item tagged to the filename in the minibuffer.
16223 \begin_layout Standard
16224 RCS command that is run:
16226 ci -q -u -i -t-"<initial description>" <file-name>
16229 \begin_layout Standard
16234 to understand the switches.
16238 \begin_layout Subsubsection
16244 \begin_layout Standard
16245 When you are finished editing a file, you check in your changes.
16246 When you do this, you are asked for a description of the changes.
16247 This is stored in the history log.
16248 The version number is bumped, your changes are applied to the master RCS
16249 file, the document is unlocked and set to Read-Only mode.
16253 \begin_layout Standard
16256 ci -q -u -m"<description>" <file-name>
16259 \begin_layout Subsubsection
16265 \begin_layout Standard
16266 By doing this you lock the document so that only you can edit it.
16267 This will also make the document Read-Write only for you.
16268 You will usually continue editing for a while and when you are finished
16269 you check in your changes.
16270 The status line is changed to reflect that you have locked the file.
16274 \begin_layout Standard
16277 co -q -l <file-name>
16280 \begin_layout Subsubsection
16283 Revert To Last Version
16286 \begin_layout Standard
16287 This will discard all changes made to the document since the last check
16289 You get a warning before changes are discarded.
16292 \begin_layout Standard
16295 co -f -u<version> <file-name>
16298 \begin_layout Subsubsection
16304 \begin_layout Standard
16305 This makes as if the last check in never happened.
16306 No changes are made to the document loaded into LyX, but the last version
16307 is removed from the master RCS file.
16311 \begin_layout Standard
16314 rcs -o<version> <file-name>
16317 \begin_layout Subsubsection
16323 \begin_layout Standard
16324 This show the complete history of the RCS document.
16329 is shown in a browser.
16337 \begin_layout Section
16338 Literate Programming
16341 \begin_layout Standard
16346 (kayvan@sylvan.com)
16350 original documentation written by
16352 Edmar Wienskoski Jr.
16355 (edmar-w-jr@technologist.com)
16358 \begin_layout Subsection
16362 \begin_layout Standard
16363 The main purpose of this documentation is to show you how to use LyX for
16364 literate programming.
16365 Where it is assumed that you are familiar with this programming technique,
16367 \begin_inset Quotes eld
16371 \begin_inset Quotes erd
16375 \begin_inset Quotes eld
16379 \begin_inset Quotes erd
16383 If that is not the case, please follow the web links provided in the following
16385 There is a lot of good documentation out there covering old development
16386 history to the latest tools tips.
16389 \begin_layout Standard
16390 It is also assumed that you are familiar with LyX itself to a point that
16391 you are comfortable changing your LyX preferences, and X resources file.
16392 If that is not the case please refer to other LyX documentation to cover
16393 your specific needs.
16396 \begin_layout Subsection
16397 Literate Programming
16400 \begin_layout Standard
16401 From the Literate Programming FAQ:
16404 \begin_layout Quotation
16405 Literate programming is the combination of documentation and source together
16406 in a fashion suited for reading by human beings.
16407 In fact, literate programs should be enjoyable reading, even inviting!
16408 (Sorry Bob, I couldn't resist!) In general, literate programs combine source
16409 and documentation in a single file.
16410 Literate programming tools then parse the file to produce either readable
16411 documentation or compilable source.
16412 The WEB style of literate programming was created by D.E.
16413 Knuth during the development of his TeX typesetting software.
16417 \begin_layout Standard
16418 Another excerpt says:
16421 \begin_layout Quotation
16424 How is literate programming different from verbose commenting?
16427 \begin_layout Quotation
16428 There are three distinguishing characteristics.
16429 In order of importance, they are:
16433 \begin_layout Itemize
16434 flexible order of elaboration
16437 \begin_layout Itemize
16438 automatic support for browsing
16441 \begin_layout Itemize
16442 typeset documentation, especially diagrams and mathematics
16446 \begin_layout Standard
16447 Now that I sparked your curiosity, take a look in the references.
16450 \begin_layout Subsubsection
16454 \begin_layout Standard
16455 The complete Literate Programming FAQ can be found at:
16458 \begin_layout Quote
16459 \begin_inset LatexCommand url
16460 name "Literate Programming FAQ"
16461 target "http://shelob.ce.ttu.edu/daves/lpfaq/faq.html"
16468 \begin_layout Standard
16469 The FAQ lists 23 (twenty three!) different literate programming tools.
16470 Where some are specialized or
16471 \begin_inset Quotes eld
16475 \begin_inset Quotes erd
16478 for particular programming languages, while other have general scope.
16483 for my own use for several reasons:
16486 \begin_layout Itemize
16487 It can generate the documentation either in LaTeX or HTML.
16490 \begin_layout Itemize
16491 It has a open architecture, i.e., it is easy to plug in new filters and to
16492 perform special processing that you may need.
16496 \begin_layout Itemize
16497 There is a good selection of filters available already (the HTML is one
16501 \begin_layout Itemize
16505 \begin_layout Standard
16506 The Noweb web page can be found at:
16509 \begin_layout Quote
16510 \begin_inset LatexCommand url
16511 name "Noweb home page"
16512 target "http://www.cs.virginia.edu/~nr/noweb/"
16519 \begin_layout Standard
16520 Starting from there you can reach many other interesting links and even
16521 some literate program examples.
16524 \begin_layout Subsection
16525 \begin_inset LatexCommand label
16526 name "sub:LyX-and-Literate"
16530 LyX and Literate Programming
16533 \begin_layout Standard
16534 The LyX support for Literate Programming is provided by using the generic
16535 LyX convertors mechanism.
16536 This support is provided in a
16537 \begin_inset Quotes eld
16541 \begin_inset Quotes erd
16544 way, i.e., you will be able to use this new LyX feature with some other literate
16545 programming tool of your choice by just changing your LyX preferences.
16548 \begin_layout Subsubsection
16549 Generating documents and code (weaving and tangling)
16552 \begin_layout Paragraph
16553 Selecting the document class
16556 \begin_layout Standard
16557 If you have installed Noweb and LyX successfully, whenever you open a new
16558 document or try to change the document class of an existing one, you will
16559 find that there are three new document classes available:
16562 \begin_layout Itemize
16566 \begin_layout Itemize
16570 \begin_layout Itemize
16574 \begin_layout Standard
16575 You must select one of them to create your literate documents from.
16579 \begin_layout Standard
16580 Note that literate documents are not limited to these three classes.
16581 New classes can be generated from other styles like letter or in combination
16582 with other class variations like Article (AMS).
16583 If you have special needs that cannot be covered by one of the existing
16584 classes, let the LyX developers list (lyx-devel@lists.lyx.org) know and we
16585 will arrange to insert a new entry, or teach you how to do it.
16589 \begin_layout Standard
16590 It is very simple, it involves the creation of a file with four lines, and
16591 re-running of the auto configuration.
16596 Moreover, if you use a literate tool other than Noweb you may need to create
16597 a new set of document classes for it.
16600 \begin_layout Paragraph
16604 \begin_layout Standard
16605 LyX enables you to write code with a layout named
16613 \begin_layout Standard
16614 The equivalent Noweb term is
16615 \begin_inset Quotes eld
16619 \begin_inset Quotes erd
16623 For historical reasons, I got used to the term
16624 \begin_inset Quotes eld
16628 \begin_inset Quotes erd
16631 introduced by other literate tool named Nuweb, which I used for many years
16632 before rendering myself to Noweb.
16637 Noweb delimits scraps like this:
16640 \begin_layout LyX-Code
16644 \begin_layout LyX-Code
16648 \begin_layout LyX-Code
16652 \begin_layout LyX-Code
16656 \begin_layout LyX-Code
16660 \begin_layout Standard
16661 The problem is that whatever is written in between the << and the
16665 must be taken literally, i.e., LyX should be prevented from making any special
16666 interpretation of what has been written.
16667 This is handled by a special layout named Scrap, that works like a normal
16668 paragraph but has a free spacing capability.
16671 \begin_layout Standard
16672 The down side of the Scrap paragraph layout is that consecutive paragraphs
16673 of code will be spaced with one empty line in the source code and also
16674 in the printed documentation.
16675 The work around is to enter each line of code within a single Scrap, with
16676 a newline (ctrl-return).
16677 The example above will look like this:
16681 \begin_layout Standard
16682 If you have a printed version of this document you will not see any difference
16683 between the previous example and this one.
16691 \begin_layout LyX-Code
16703 \begin_layout Standard
16704 This layout works fine.
16705 The only real inconvenience is that you have to type ctrl-return instead
16710 \begin_layout Standard
16711 It is in my list of
16712 \begin_inset Quotes eld
16716 \begin_inset Quotes erd
16727 \begin_layout Standard
16728 As a special note, you can also use the
16729 \begin_inset Quotes eld
16733 \begin_inset Quotes erd
16736 construct of Noweb in your scraps to add items to Noweb's identifier cross-refe
16740 \begin_layout LyX-Code
16743 def some_function(args):
16745 "This is the doc string for this
16748 print "My args: ", args
16751 \begin_layout LyX-Code
16752 @ %def some_function
16755 \begin_layout Standard
16756 For an example of this usage and the resulting cross-reference output, look
16757 at the Literate python program in
16759 LIBDIR/examples/listerrors.lyx
16761 which should make this all clear.
16764 \begin_layout Paragraph
16765 Generating the documentation
16768 \begin_layout Standard
16769 At this point you already have a new document file with a proper document
16770 class, and with some code and text on it.
16771 How do I print it? The answer is simple, you select
16776 iew\SpecialChar \menuseparator
16784 Just like you would do for a plain document.
16785 No special procedure is required.
16788 \begin_layout Standard
16789 To help orientate you, I will now explain what happens inside LyX:
16792 \begin_layout Enumerate
16798 pdate\SpecialChar \menuseparator
16805 menu option is chosen, a LaTeX file is generated.
16810 \begin_layout Standard
16811 If the document is of any literate class the generated file will be named
16812 with an extension name defined by the
16813 \begin_inset Quotes eld
16817 \begin_inset Quotes erd
16820 format (defined in the Preferences panel), otherwise the file will have
16829 \begin_layout Enumerate
16830 Note that the only difference so far is in the name of the file, no special
16831 processing is required by LyX.
16832 Given that you formatted the code using the Scrap layout that, by itself,
16833 takes care of the business.
16836 \begin_layout Enumerate
16837 If the document is of any literate class LyX will then use the internal
16838 LyX to Noweb converter, followed by the Noweb to LaTeX converter
16842 \begin_layout Standard
16843 The converters are defined in the
16848 ools\SpecialChar \menuseparator
16856 \begin_inset Quotes eld
16860 \begin_inset Quotes erd
16865 \begin_inset LatexCommand ref
16866 reference "sub:converters"
16874 manual for general information about converters.
16879 to generate the LaTeX file.
16883 \begin_layout Standard
16884 Otherwise it will just skip this step.
16888 \begin_layout Enumerate
16889 Finally, LaTeX is invoked and the regular post processing continues as in
16893 \begin_layout Standard
16894 Independence from a particular
16895 \begin_inset Quotes eld
16899 \begin_inset Quotes erd
16902 is easily achieved by changing the commands that are run by the various
16906 \begin_layout Paragraph
16907 Generating the code
16910 \begin_layout Standard
16911 When the build menu option is chosen or the corresponding button in the
16912 toolbar is pressed, a LaTeX file is generated just like step 1 above.
16913 Next, LyX invokes the
16918 This converter needs to be defined by the user and is not installed by
16919 default, though the Program format is.
16920 This converter (like any other converter) will have two parts:
16923 \begin_layout Enumerate
16924 The converter program itself.
16925 This program performs the conversion from the one format to the other (in
16926 this case, from the Noweb format to the Program pseudo-format).
16929 \begin_layout Enumerate
16930 The error log parser.
16931 This is a program whose sole purpose is to rewrite error messages in a
16932 format that LyX understands.
16933 This makes it possible for LyX to place error boxes in the right places
16934 in the file buffer.
16937 \begin_layout Standard
16938 The first part, the
16939 \begin_inset Quotes eld
16943 \begin_inset Quotes erd
16946 setting, should be set to
16947 \begin_inset Quotes eld
16955 \begin_inset Quotes erd
16959 This basically means that LyX will call
16960 \begin_inset Quotes eld
16964 \begin_inset Quotes erd
16967 (a program or script) with the name of the Noweb file (normally a file
16968 in the LyX temp directory).
16972 \begin_layout Standard
16973 This is an implementation of
16974 \begin_inset Quotes eld
16978 \begin_inset Quotes erd
16981 that you can place in a directory on your path:
16984 \begin_layout LyX-Code
16988 \begin_layout LyX-Code
16992 \begin_layout LyX-Code
16993 notangle -Rbuild-script $1 | env NOWEB_SOURCE=$1 sh
16996 \begin_layout Standard
16997 The next part of the converter setting is the
16998 \begin_inset Quotes eld
17002 \begin_inset Quotes erd
17005 which is to be set to
17006 \begin_inset Quotes eld
17011 parselog=listerrors
17014 \begin_inset Quotes erd
17018 This will run any errors that are generated by the
17019 \begin_inset Quotes eld
17023 \begin_inset Quotes erd
17026 process through the
17027 \begin_inset Quotes eld
17031 \begin_inset Quotes erd
17037 \begin_layout Standard
17038 The converter code looks in
17046 then on the path for the
17047 \begin_inset Quotes eld
17051 \begin_inset Quotes erd
17057 \begin_layout Standard
17058 The build will normally take place in LyX's temporary directory, so the
17059 files produced by the conversion will be in that directory.
17060 LyX will copy out what it regards as the `main' file, but the
17064 conversion may produce several files, and so most of these would then be
17065 deleted when LyX was closed.
17066 The present solution is to use a `copier',
17070 \begin_layout Standard
17072 \begin_inset LatexCommand ref
17073 reference "sec:converters-etc"
17081 manual for information on these.
17090 script in its default mode, so that the entire contents of the temporary
17091 directory is copied.
17092 More will get copied than is needed, to be sure, but nothing will be lost.
17093 If, however, you know what extensions the generated files will have, this
17094 can be improved by using the
17103 This option takes a comma-separated list of extensions to copy.
17104 So, for example, if the conversion will generate only files with the extensions
17113 , then the correct definition would be:
17116 \begin_layout LyX-Code
17117 python -tt $$s/scripts/ext_copy.py -e c,h $$i $$o
17120 \begin_layout Standard
17121 The result will be that only files with these two extensions will be copied
17125 \begin_layout Paragraph
17126 Build instructions in the document
17129 \begin_layout Standard
17130 The last piece of the integration between LyX and noweb is the
17131 \begin_inset Quotes eld
17135 \begin_inset Quotes erd
17139 Generally, the instructions for building your program should be embedded
17140 in a scrap of its own.
17142 \begin_inset Quotes eld
17146 \begin_inset Quotes erd
17149 above uses the notangle command to look for this scrap (called
17150 \begin_inset Quotes eld
17154 \begin_inset Quotes erd
17157 ) and runs its contents through
17158 \begin_inset Quotes eld
17162 \begin_inset Quotes erd
17168 \begin_layout Standard
17169 Typically, such a scrap would look something like this:
17172 \begin_layout LyX-Code
17179 if [ -z "${NOWEB_SOURCE}" ]
17183 NOWEB_SOURCE=myfile.nw
17189 code to extract files ...]
17192 code to compile files ...]
17197 \begin_layout Standard
17200 LIBDIR/examples/listerrors.lyx
17204 LIBDIR/examples/Literate.lyx
17206 which implement two versions of the
17207 \begin_inset Quotes eld
17211 \begin_inset Quotes erd
17214 program for some illustrations of how all of these pieces go together or
17217 LIBDIR/examples/noweb2lyx.lyx.
17220 Interestingly, these three files show off the language-indepence of the
17221 LyX literate programming support since they are written in Python, C and
17225 \begin_layout Subsubsection
17229 \begin_layout Standard
17230 All the Literate Programming support is configured by the
17235 ools\SpecialChar \menuseparator
17243 \begin_inset Quotes eld
17247 \begin_inset Quotes erd
17251 The important parts are:
17254 \begin_layout Description
17257 \begin_inset Quotes eld
17261 \begin_inset Quotes erd
17265 format Set up via the Formats tab, this is where the Noweb-specific pieces
17275 , the file extension is set to
17280 This tells LyX to create a file with a
17284 extension in the first step of the conversion process.
17287 \begin_layout Description
17294 format This is an empty format whose sole purpose is to be the endpoint
17295 of a conversion (which then allows us to set up a converter for it).
17298 \begin_layout Description
17307 This converter performs the
17308 \begin_inset Quotes eld
17312 \begin_inset Quotes erd
17315 of the literate document.
17316 For Noweb, it is set to
17317 \begin_inset Quotes eld
17322 noweave -delay -index $$i > $$o
17325 \begin_inset Quotes erd
17331 \begin_layout Description
17341 \begin_inset Quotes eld
17345 \begin_inset Quotes erd
17349 As stated above, the Converter is set to
17350 \begin_inset Quotes eld
17358 \begin_inset Quotes erd
17361 , with Flags set to
17362 \begin_inset Quotes eld
17367 originaldir,parselog=listerrors
17370 \begin_inset Quotes erd
17376 \begin_layout Subsubsection
17380 \begin_layout Standard
17381 There is also a new function implemented in the LyX server, the
17382 \begin_inset Quotes eld
17385 server-goto-file-row" function, to be used with ddd/gdb or other debugger.
17389 \begin_layout Standard
17390 When debugging code with ddd/gdb, it is possible to invoke a text editor
17391 at the current execution position with a single key stroke.
17392 The default ddd configuration for that is shift-ctrl-V.
17393 It happens that you can define the editor command line invocation in ddd
17399 dit\SpecialChar \menuseparator
17404 references\SpecialChar \menuseparator
17411 dialog and changing the "Edit Sources" entry.
17414 \begin_layout Standard
17415 I take advantage of the new created LyX server function and this ddd feature,
17417 \begin_inset Quotes eld
17421 \begin_inset Quotes erd
17427 \begin_layout LyX-Code
17428 echo "LYXCMD:monitor:server-goto-file-row:@FILE@ @LINE@" >~/.lyxpipe.in
17431 \begin_layout Standard
17432 With this, whenever you are using ddd and find a point in the program that
17433 you want to edit, you just press shift-ctrl-V (in the ddd window), and
17434 ddd you forward this information to LyX through the LyX server and then
17435 the LyX window will show the same file with the cursor at the same position
17436 ddd was pointing to.
17437 No more guessing or long scrolling to locate a point in the program back
17441 \begin_layout Standard
17442 Note however that you must enable the LyX server to get this feature working
17443 (it is disabled by default).
17444 You can enable it in
17456 ) by entering in the
17461 \begin_inset Quotes eld
17466 /home/<your-home-directory>/.lyx/lyxpipe
17469 \begin_inset Quotes erd
17475 \begin_layout Standard
17476 Read the LyX server documentation in the
17478 Customization Manual
17480 for further information.
17483 \begin_layout Subsubsection
17487 \begin_layout Standard
17488 There are six new buttons that can be added to your LyX toolbar.
17489 Five of these buttons are short cuts to layout styles:
17510 The last one is a short cut to the
17511 \begin_inset Quotes eld
17515 \begin_inset Quotes erd
17522 \begin_layout Standard
17523 LyX has a range of buttons that are available for tool bar customization.
17524 In my toolbar I like to combine the six short cuts above with two more:
17532 \SpecialChar \menuseparator
17540 \SpecialChar \menuseparator
17553 iew\SpecialChar \menuseparator
17561 Here is how it looks like:
17564 \begin_layout LyX-Code
17568 \begin_layout LyX-Code
17572 \begin_layout LyX-Code
17573 Icon "layout Standard"
17576 \begin_layout LyX-Code
17577 Icon "layout Section"
17580 \begin_layout LyX-Code
17581 Icon "layout LaTeX"
17584 \begin_layout LyX-Code
17585 Icon "layout LyX-Code"
17588 \begin_layout LyX-Code
17589 Icon "layout Scrap"
17592 \begin_layout LyX-Code
17596 \begin_layout LyX-Code
17600 \begin_layout LyX-Code
17601 Icon "buffer-typeset"
17604 \begin_layout LyX-Code
17605 Icon "build-program"
17608 \begin_layout LyX-Code
17612 \begin_layout LyX-Code
17616 \begin_layout LyX-Code
17620 \begin_layout LyX-Code
17624 \begin_layout LyX-Code
17628 \begin_layout Subsubsection
17629 Colors customization
17632 \begin_layout Standard
17633 There are a number of colors in LyX that can be customized in
17638 One of the things that bothers people is the LaTeX font color.
17639 The default color is red, since the scraps uses LaTeX font, and there is
17640 a lot of scraps in literate documents, you may get tired of seeing everything
17642 You can change it by going to the tabs
17651 \begin_layout Standard
17652 The next thing is the visible presence of the newline character in the screen.
17653 You can choose the color of this particular character and make it blend
17655 I recommend you choosing a color that is close to the background but not
17656 equal, that way you still can see it is there, but it is not bothering
17661 \begin_layout Chapter
17662 Secrets of the LaTeX Masters
17663 \begin_inset LatexCommand label
17671 \begin_layout Standard
17672 Though LyX is a powerful tool, it cannot hope to support everything that
17673 can be done with pure TeX/LaTeX.
17674 However, many familiar dirty TeX and LaTeX tricks can be done within LyX,
17675 as long as you are not afraid to use that
17676 \begin_inset Quotes eld
17680 \begin_inset Quotes erd
17683 button on the toolbar or add things to the LaTeX preamble.
17684 This section lists some tips, tricks, and otherwise cool ideas to give
17685 your document that extra little flair.
17688 Do try this at home
17690 , just start with something a little smaller and less important than your
17694 \begin_layout Standard
17695 Most ideas in this section require less common files in your LaTeX installation.
17696 If you have a system like teTeX, most will already be available.
17697 A few, however, will need to be downloaded from one of the CTAN archives.
17698 Often, there are several ways to do something, or several LaTeX style files
17699 which do the same thing.
17700 We do not endorse one choice over another, we simply claim that we have
17701 done a particular task with a particular file.
17702 Put on your wizard hat, keep an eye out for dragons, and let us begin.
17705 \begin_layout Section
17709 \begin_layout Standard
17712 Lars Gullik Bjønnes
17715 \begin_layout Subsection
17719 \begin_layout Standard
17720 The aim for this chapter
17724 \begin_layout Standard
17725 Editor's note: Lars' original chapter was a masterful description of how
17731 However, it was too long to flow smoothly in this document.
17732 I have therefore chosen to excerpt the most important sections here (sorry,
17733 Lars); you can read the original chapter (and more of the story!) in the
17736 examples/multicol.lyx
17744 is to show how the LaTeX package
17748 can be used in a LyX document.
17749 As LyX doesn't support the
17753 package natively yet, we have to use some small hacks.
17754 By reading this section it should be obvious how to do this.
17757 \begin_layout Subsection
17761 \begin_layout Standard
17766 package allows switching between one and multicolumn format on the same
17768 Footnotes are handled correctly (for the most part), but will be placed
17769 at the bottom of the page and not under each column.
17770 LaTeX's float mechanism, however, is partly disabled in the current implementat
17772 At the moment only page-wide floats can be used within the scope of the
17776 \begin_layout Subsection
17780 \begin_layout Subsubsection
17784 \begin_layout Standard
17785 If you want to have two columns in your text, you have use LaTeX mode to
17790 begin{multicols}{2}
17792 at the point where you want the two column layout to start, and then
17798 where you want it to end.
17802 \begin_layout Standard
17806 \begin_layout Standard
17810 begin{multicols}{2}
17818 \begin_layout Standard
17823 The Adventure of the Empty House
17829 Sir Arthur Conan Doyle
17832 \begin_layout Standard
17835 It was in the spring of the year 1894 that all London was interested, and
17836 the fashionable world dismayed, by the murder of the Honourable Ronald
17837 Adair under most unusual and inexplicable circumstances.
17838 The public has already learned those particulars of the crime which came
17839 out in the police investigation, but a good deal was suppressed upon that
17840 occasion, since the case for the prosecution was so overwhelmingly strong
17841 that it was not necessary to bring forward all the facts.
17842 Only now, at the end of nearly ten years, am I allowed to supply those
17843 missing links which make up the whole of that remarkable chain.
17844 The crime was of interest in itself, but that interest was as nothing to
17845 me compared to the inconceivable sequel, which afforded me the greatest
17846 shock and surprise of any event in my adventurous life.
17847 Even now, after this long interval, I find myself thrilling as I think
17848 of it, and feeling once more that sudden flood of joy, amazement, and increduli
17849 ty which utterly submerged my mind.
17850 Let me say to that public, which has shown some interest in those glimpses
17851 which I have occasionally given them of the thoughts and actions of a very
17852 remarkable man, that they are not to blame me if I have not shared my knowledge
17853 with them, for I should have considered it my first duty to do so, had
17854 I not been barred by a positive prohibition from his own lips, which was
17855 only withdrawn upon the third of last month.
17858 \begin_layout Standard
17862 \begin_layout Standard
17874 \begin_layout Subsubsection
17878 \begin_layout Standard
17879 The same pattern is used when you want more than two columns:
17882 \begin_layout Standard
17886 \begin_layout Standard
17890 begin{multicols}{3}
17898 \begin_layout Standard
17901 It can be imagined that my close intimacy with Sherlock Holmes had interested
17902 me deeply in crime, and that after his disappearance I never failed to
17903 read with care the various problems which came before the public.
17904 And I even attempted, more than once, for my own private satisfaction,
17905 to employ his methods in their solution, though with indifferent success.
17906 There was none, however, which appealed to me like this tragedy of Ronald
17908 As I read the evidence at the inquest, which led up to a verdict of willful
17909 murder against some person or persons unknown, I realized more clearly
17910 than I had ever done the loss which the community had sustained by the
17911 death of Sherlock Holmes.
17912 There were points about this strange business which would, I was sure,
17913 have specially appealed to him, and the efforts of the police would have
17914 been supplemented, or more probably anticipated, by the trained observation
17915 and the alert mind of the first criminal agent in Europe.
17916 All day, as I drove upon my round, I turned over the case in my mind and
17917 found no explanation which appeared to me to be adequate.
17918 At the risk of telling a twice-told tale, I will recapitulate the facts
17919 as they were known to the public at the conclusion of the inquest.
17922 \begin_layout Standard
17926 \begin_layout Standard
17938 \begin_layout Standard
17939 You can have more than 3 columns if you want to, but that might not be very
17940 pleasant for the eye.
17943 \begin_layout Subsubsection
17944 Columns inside columns
17947 \begin_layout Standard
17948 You can even have columns inside columns:
17951 \begin_layout Standard
17955 \begin_layout Standard
17959 begin{multicols}{2}
17967 \begin_layout Standard
17970 The Honourable Ronald Adair was the second son of the Earl of Maynooth,
17971 at that time governor of one of the Australian colonies.
17972 Adair's mother had returned from Australia to undergo the operation for
17973 cataract, and she, her son Ronald, and her daughter Hilda were living together
17977 \begin_layout Standard
17981 \begin_layout Standard
17985 begin{multicols}{2}
17993 \begin_layout Standard
17996 The youth moved in the best society--had, so far as was known, no enemies
17997 and no particular vices.
17998 He had been engaged to Miss Edith Woodley, of Carstairs, but the engagement
17999 had been broken off by mutual consent some months before, and there was
18000 no sign that it had left any very profound feeling behind it.
18001 For the rest {sic} the man's life moved in a narrow and conventional circle,
18002 for his habits were quiet and his nature unemotional.
18003 Yet it was upon this easy-going young aristocrat that death came, in most
18004 strange and unexpected form, between the hours of ten and eleven-twenty
18005 on the night of March 30, 1894.
18008 \begin_layout Standard
18012 \begin_layout Standard
18024 \begin_layout Standard
18027 Ronald Adair was fond of cards--playing continually, but never for such
18028 stakes as would hurt him.
18029 He was a member of the Baldwin, the Cavendish, and the Bagatelle card clubs.
18030 It was shown that, after dinner on the day of his death, he had played
18031 a rubber of whist at the latter club.
18032 He had also played there in the afternoon.
18037 The evidence of those who had played with him-- Mr.
18038 Murray, Sir John Hardy, and Colonel Moran--showed that the game was whist,
18039 and that there was a fairly equal fall of the cards.
18040 Adair might have lost five pounds, but not more.
18041 His fortune was a considerable one, and such a loss could not in any way
18043 He had played nearly every day at one club or other, but he was a cautious
18044 player, and usually rose a winner.
18045 It came out in evidence that, in partnership with Colonel Moran, he had
18046 actually won as much as four hundred and twenty pounds in a sitting, some
18047 weeks before, from Godfrey Milner and Lord Balmoral.
18048 So much for his recent history as it came out at the inquest.
18051 \begin_layout Standard
18055 \begin_layout Standard
18067 \begin_layout Standard
18068 Please do read the file
18070 examples/multicol.lyx
18072 for more advanced examples including column and header spacing, vertical
18073 separator lines, and more.
18076 \begin_layout Section
18081 Paragraph Environment
18082 \begin_inset OptArg
18085 \begin_layout Standard
18086 Numbering in Enumerate
18094 \begin_layout Standard
18100 \begin_layout Standard
18101 \begin_inset VSpace bigskip
18107 \begin_layout Standard
18109 The default numbering for the
18113 paragraph environment begins with Arabic numbers and ends with uppercase
18115 Suppose, however, you wanted a different type of numbering scheme.
18116 Here's a quickie example of how to change the numbering scheme:
18119 \begin_layout LyX-Code
18129 \begin_layout LyX-Code
18139 \begin_layout LyX-Code
18149 \begin_layout LyX-Code
18159 \begin_layout Standard
18160 \SpecialChar \ldots{}
18161 which changes the numbering scheme to uppercase Roman numerals, uppercase
18162 letters, Arabic numbers, and lowercase letter.
18165 \begin_layout Standard
18166 Additionally, the previous example also adds a little bit extra to the numbering
18168 For example, the first level label actually looks like:
18169 \begin_inset Quotes eld
18173 \begin_inset Quotes erd
18177 For ease of reading, we'll describe what the numbering schemes look like
18178 using a notation something like this: <
18179 \begin_inset Quotes eld
18183 \begin_inset Quotes erd
18188 \begin_inset Quotes erd
18192 \begin_inset Quotes erd
18197 \begin_inset Quotes erd
18201 \begin_inset Quotes erd
18206 \begin_inset Quotes eld
18210 \begin_inset Quotes erd
18217 \begin_layout Standard
18218 As you can see in the example, there is a label command for each nesting
18225 \SpecialChar \ldots{}
18232 , as well as a counter,
18236 \SpecialChar \ldots{}
18242 There are also five
18243 \begin_inset Quotes eld
18247 \begin_inset Quotes erd
18280 , each of which take one counter as an argument.
18281 You can add characters before or after these, but there's no need to add
18285 \begin_layout Standard
18286 You can get really fancy with these.
18290 \begin_layout LyX-Code
18304 \begin_layout LyX-Code
18316 \begin_layout LyX-Code
18326 \begin_layout LyX-Code
18336 \begin_layout Standard
18337 produces the somewhat out of hand numbering scheme: <
18338 \begin_inset Quotes eld
18342 \begin_inset Quotes erd
18347 \begin_inset Quotes erd
18351 \begin_inset Quotes erd
18356 \begin_inset Quotes erd
18360 \begin_inset Quotes erd
18365 \begin_inset Quotes eld
18369 \begin_inset Quotes erd
18376 \begin_layout Standard
18380 \begin_layout Section
18384 \begin_layout Standard
18390 \begin_layout Standard
18391 \begin_inset VSpace bigskip
18397 \begin_layout Standard
18402 \begin_layout Standard
18408 tmpfont}{cmr17 scaled 2500}{
18420 \begin_layout Standard
18425 \begin_layout Standard
18436 hose of you who like the style of old books probably also like
18437 \begin_inset Quotes eld
18441 \begin_inset Quotes erd
18444 ---those large capital letters which begin each new chapter or section.
18445 Implementing them with plain LyX/LaTeX is straightforward (assuming you
18446 know some plain TeX!) but does require a lot of work and many iterations,
18447 as you can see by all the ugly TeX-mode stuff at the beginning of this
18451 \begin_layout Standard
18455 \begin_layout Standard
18461 bigdrop{-1em}{3}{ptmri}{T}+
18466 here is a much easier way of doing this, of course.
18475 ) package from CTAN allows a simple way to add such letters to your documents.
18476 Since this package is not a standard part of teTeX, I can't demonstrate
18477 it within this document, but if you copy this paragraph to a new document,
18479 \begin_inset Quotes eld
18489 \begin_inset Quotes erd
18492 and the pluses from the TeX code at the beginning of the paragraph, and
18497 usepackage{dropcaps}
18499 to your LaTeX preamble, you will get a nice Times Roman Italic
18500 \begin_inset Quotes eld
18504 \begin_inset Quotes erd
18507 , whose height is three lines of text and which protrudes 1 em into the
18509 (Make certain you have copied
18510 \begin_inset Quotes eld
18518 \begin_inset Quotes erd
18521 into a directory where TeX can see it.) The first argument is the amount
18522 of indentation; in this case the negative sign moves it into the margin.
18523 The second argument is the height of the letter in number of lines of text.
18524 The third argument is the font name: virtually anything which has a tfm
18525 file should work (wade through the
18527 .../texmf/fonts/tfm
18529 directory for possibilities).
18530 My personal favorite is
18531 \begin_inset Quotes eld
18539 \begin_inset Quotes erd
18542 , a fancy German font specifically designed for dropped capitals.
18543 The fourth argument is the letter (or letters) to be dropped.
18548 package also offers the
18554 command, as well as a slightly simplified
18563 \begin_layout Section
18564 Non-standard Paragraph Shapes
18567 \begin_layout Standard
18573 \begin_layout Standard
18574 \begin_inset VSpace bigskip
18580 \begin_layout Standard
18584 \begin_layout Standard
18596 \begin_layout Standard
18600 \begin_layout Standard
18609 \begin_layout Standard
18623 \begin_layout Standard
18628 \begin_layout Standard
18639 \begin_layout Standard
18648 \begin_layout Standard
18657 \begin_layout Standard
18666 \begin_layout Standard
18675 \begin_layout Standard
18684 \begin_layout Standard
18693 \begin_layout Standard
18702 \begin_layout Standard
18711 \begin_layout Standard
18720 \begin_layout Standard
18729 \begin_layout Standard
18738 \begin_layout Standard
18747 \begin_layout Standard
18756 \begin_layout Standard
18765 \begin_layout Standard
18774 \begin_layout Standard
18783 \begin_layout Standard
18792 \begin_layout Standard
18801 \begin_layout Standard
18807 There are times when the tyranny of rectangular paragraphs must be overthrown.
18808 In such situations, a call to the delightful plain TeX command
18815 As you can see, completely arbitrary shapes can be laid out with a suitable
18816 set of linelength definitions.
18817 While this parshape may look a bit silly and useless, one could conceive
18818 of situations such as finely tuned dropped capitals, word wrapping around
18819 non-rectangular graphics, etc.
18820 which will benefit from such handcrafting.
18823 \begin_layout Standard
18824 \begin_inset VSpace bigskip
18830 \begin_layout Standard
18835 parshape numlines #1indent #1length #2indent #2length \SpecialChar \ldots{}
18842 is the number of lines of text which define the paragraph.
18843 If there turn out to be fewer lines, the shape is truncated; if there are
18844 more, the excess lines have the same dimensions as the last line of the
18854 entries specify the indentation of the line from the left margin, and the
18855 length of the line as measured from that point.
18856 The shape applies only to the current paragraph; everything is reset to
18857 normal for the next paragraph.
18860 \begin_layout Standard
18864 \begin_layout Standard
18876 \begin_layout Section
18880 \begin_layout Standard
18881 As you can see, the examples in this section range from the useful to the
18883 While I don't expect that anyone will ever need the paragraph shape demonstrate
18884 d in the last section, the important point is that you can do almost anything
18885 you want in LyX if you are willing to figure out how to do it in TeX and
18887 TeX is a fantastically powerful typesetting system and all that power is
18888 available to you since LyX uses it as its backend.