1 #LyX 1.5.5 created this file. For more info see http://www.lyx.org/
7 %the following commands are used only for articles and codesnippets
9 \author{First Author\\Affiliation of the first author \And
10 Second Author\\Affiliation of the second author \AND
11 Third Author\\Affiliation of the third author}
12 \title{Article About the Use of Package \pkg{foo} in \proglang{R}}
14 % the same as above, without any formatting
15 \Plainauthor{First Author, Second Author, Third author}
16 \Plaintitle{Article About the Use of Package foo in R}
17 %if necessary, provide a short title
18 \Shorttitle{Package foo in R}
20 \Abstract{This is the abstract of the article.}
21 %at least one keyword is needed
22 \Keywords{keyword 1, keyword 2, \pkg{foo}, \proglang{R}}
23 %the same as above, without any formatting
24 \Plainkeywords{keyword 1, keyword 2, foo, R}
26 %the following commands are used only for book or software reviews
28 %\Reviewer{Some Author\\University of Somewhere}
29 %\Plainreviewer{Some Author}
31 %the following commands are used only for book reviews
32 %\Booktitle{LyX and \proglang{R}: Secrets of the LyX Master}
33 %\Bookauthor{Book Author}
38 %the following command is used only for software reviews
39 %\Softwaretitle{\proglang{gretl 1.7.4}}
41 %the following commands are used only for book or software reviews
42 %\Publisher{LyX Publishing Inc.}
43 %\Pubaddress{LyX City}
44 %\Price{USD 59.95 (P), USD 99.95 (H)}
45 %\URL{http://www.lyx.org/}
47 %without any formatting
48 %\Plaintitle{LyX and R: Secrets of the LyX Master}
49 %\Shorttitle{LyX and R}
51 %the following commands are used for articles, codesnippets, book reviews and software reviews
53 %publication information
54 %do not use these commands before the article has been accepted
59 %\Submitdate{2000-00-00}
60 %\Acceptdate{2000-00-00}
62 %The address of at least one author should be given in the following format
65 Department of Statistics\\
66 University of Somewhere\\
67 Somewhere, Somecountry\\
68 E-mail: \email{first.author@lyx.org}\\
69 URL: \url{http://www.lyx.org}
71 %you can add a telephone and fax number before the e-mail in the format
72 %Telephone: +12/3/4567-89
75 %if you use Sweave, include the following line (with % symbols):
76 %% need no \usepackage{Sweave.sty}
83 \font_typewriter default
84 \font_default_family default
90 \paperfontsize default
96 \cite_engine natbib_authoryear
98 \paperorientation portrait
101 \paragraph_separation indent
103 \quotes_language english
106 \paperpagestyle default
107 \tracking_changes false
108 \output_changes false
115 \begin_layout Standard
116 \begin_inset Note Note
119 \begin_layout Standard
120 This is a template LyX file for an article written using the Journal of
121 Statistical Software (JSS) LaTeX style file, which can be downloaded from
122 http://www.jstatsoft.org/downloads/JSSstyle.zip.
123 These files have to be installed before this template can be used.
124 Consult chapter 5.1 in the LyX Customization manual.
125 See also the documentation included with the JSS LaTeX style file.
128 \begin_layout Standard
129 Note that title, author, address, abstract, keywords etc for this article
130 style are written in the LaTeX preamble (accessed from Document\SpecialChar \menuseparator
131 Settings...\SpecialChar \menuseparator
137 \begin_layout Standard
138 To use the JSS codesnippet, bookreview or softwarereview styles, replace
140 \begin_inset Quotes eld
144 \begin_inset Quotes erd
147 in Document\SpecialChar \menuseparator
148 Settings...\SpecialChar \menuseparator
149 Document Class\SpecialChar \menuseparator
151 \begin_inset Quotes eld
155 \begin_inset Quotes erd
159 \begin_inset Quotes eld
163 \begin_inset Quotes erd
167 \begin_inset Quotes eld
171 \begin_inset Quotes erd
174 and remove/uncomment the relevant parts in the LaTeX Preamble.
178 \begin_layout Standard
179 If you want to use this JSS article style for a non-JSS article, replace
181 \begin_inset Quotes eld
185 \begin_inset Quotes erd
189 \begin_inset Quotes eld
193 \begin_inset Quotes erd
197 This will suppress the JSS-specic parts of the layout.
200 \begin_layout Standard
201 To include the JSS-specific parts of the layout, the article has to be processed
203 you cannot process it with DVI or PS.
204 However, if the option
205 \begin_inset Quotes eld
209 \begin_inset Quotes erd
212 is used, it can be processed with DVI or PS.
220 \begin_layout Section
221 \begin_inset Note Note
224 \begin_layout Standard
225 The opt field provides bookmarks for PDF files
234 \begin_layout Standard
235 About package foo in R
244 \begin_layout Standard
257 \begin_layout Standard
268 \begin_layout Standard
279 \begin_layout Standard
292 \begin_layout Standard
303 \begin_layout Standard
313 \begin_layout Standard
314 The special JSS style commands related to software and mathematical formulas
315 are written as follows in LyX:
319 \begin_layout Standard
332 \begin_layout Standard
345 \begin_layout Standard
352 for the names of programming languages,
356 \begin_layout Standard
369 \begin_layout Standard
382 \begin_layout Standard
389 for software packages, and
393 \begin_layout Standard
406 \begin_layout Standard
419 \begin_layout Standard
427 \begin_inset Formula $\E$
431 \begin_inset Note Note
434 \begin_layout Standard
443 \begin_inset Formula $\VAR$
447 \begin_inset Note Note
450 \begin_layout Standard
459 \begin_inset Formula $\COV$
463 \begin_inset Note Note
466 \begin_layout Standard
475 \begin_inset Formula $\Prob$
479 \begin_inset Note Note
482 \begin_layout Standard
493 \begin_layout Standard
494 Writing several lines of code:
497 \begin_layout Standard
501 \begin_layout Standard
508 \begin_layout Standard
515 \begin_layout Standard
520 \begin_layout Standard
525 \begin_layout Standard
530 \begin_layout Standard
537 \begin_layout Standard
549 \begin_layout Standard
550 Alternatively, you can distinguish between input and output code:
553 \begin_layout Standard
557 \begin_layout Standard
564 \begin_layout Standard
571 \begin_layout Standard
573 first line of input code
576 \begin_layout Standard
578 second line of input code
581 \begin_layout Standard
588 \begin_layout Standard
595 \begin_layout Standard
597 first line of output code
600 \begin_layout Standard
602 second line of output code
605 \begin_layout Standard
607 third line of output code
610 \begin_layout Standard
617 \begin_layout Standard
629 \begin_layout Section*
633 \begin_layout Standard
634 Here you can write some acknowledgments.