1 #LyX 1.6.0svn created this file. For more info see http://www.lyx.org/
\r
7 %the following commands are used only for articles and codesnippets
\r
9 \author{First Author\\Affiliation of the first author \And
\r
10 Second Author\\Affiliation of the second author \AND
\r
11 Third Author\\Affiliation of the third author}
\r
12 \title{Article About the Use of Package \pkg{foo} in \proglang{R}}
\r
14 % the same as above, without any formatting
\r
15 \Plainauthor{First Author, Second Author, Third author}
\r
16 \Plaintitle{Article About the Use of Package foo in R}
\r
17 %if necessary, provide a short title
\r
18 \Shorttitle{Package foo in R}
\r
20 \Abstract{This is the abstract of the article.}
\r
21 %at least one keyword is needed
\r
22 \Keywords{keyword 1, keyword 2, \pkg{foo}, \proglang{R}}
\r
23 %the same as above, without any formatting
\r
24 \Plainkeywords{keyword 1, keyword 2, foo, R}
\r
26 %the following commands are used only for book or software reviews
\r
28 %\Reviewer{Some Author\\University of Somewhere}
\r
29 %\Plainreviewer{Some Author}
\r
31 %the following commands are used only for book reviews
\r
32 %\Booktitle{LyX and \proglang{R}: Secrets of the LyX Master}
\r
33 %\Bookauthor{Book Author}
\r
35 %\ISBN{0-12345-678-9}
\r
38 %the following command is used only for software reviews
\r
39 %\Softwaretitle{\proglang{gretl 1.7.4}}
\r
41 %the following commands are used only for book or software reviews
\r
42 %\Publisher{LyX Publishing Inc.}
\r
43 %\Pubaddress{LyX City}
\r
44 %\Price{USD 59.95 (P), USD 99.95 (H)}
\r
45 %\URL{http://www.lyx.org/}
\r
47 %without any formatting
\r
48 %\Plaintitle{LyX and R: Secrets of the LyX Master}
\r
49 %\Shorttitle{LyX and R}
\r
51 %the following commands are used for articles, codesnippets, book reviews and software reviews
\r
53 %publication information
\r
54 %do not use these commands before the article has been accepted
\r
59 %\Submitdate{2000-00-00}
\r
60 %\Acceptdate{2000-00-00}
\r
62 %The address of at least one author should be given in the following format
\r
65 Department of Statistics\\
\r
66 University of Somewhere\\
\r
67 Somewhere, Somecountry\\
\r
68 E-mail: \email{first.author@lyx.org}\\
\r
69 URL: \url{http://www.lyx.org}
\r
71 %you can add a telephone and fax number before the e-mail in the format
\r
72 %Telephone: +12/3/4567-89
\r
75 %if you use Sweave, include the following line (with % symbols):
\r
76 %% need no \usepackage{Sweave.sty}
\r
83 \font_typewriter default
\r
84 \font_default_family default
\r
91 \paperfontsize default
\r
98 \cite_engine natbib_authoryear
\r
100 \paperorientation portrait
\r
103 \paragraph_separation indent
\r
105 \quotes_language english
\r
108 \paperpagestyle default
\r
109 \tracking_changes false
\r
110 \output_changes false
\r
117 \begin_layout Standard
\r
118 \begin_inset Note Note
\r
121 \begin_layout Plain Layout
\r
122 This is a template LyX file for an article written using the Journal of
\r
123 Statistical Software (JSS) LaTeX style file, which can be downloaded from
\r
124 http://www.jstatsoft.org/downloads/JSSstyle.zip.
\r
125 These files have to be installed before this template can be used.
\r
126 Consult chapter 5.1 in the LyX Customization manual.
\r
127 See also the documentation included with the JSS LaTeX style file.
\r
130 \begin_layout Plain Layout
\r
131 Note that title, author, address, abstract, keywords etc for this article
\r
132 style are written in the LaTeX preamble (accessed from Document\SpecialChar \menuseparator
\r
133 Settings...\SpecialChar \menuseparator
\r
139 \begin_layout Plain Layout
\r
140 To use the JSS codesnippet, bookreview or softwarereview styles, replace
\r
142 \begin_inset Quotes eld
\r
146 \begin_inset Quotes erd
\r
149 in Document\SpecialChar \menuseparator
\r
150 Settings...\SpecialChar \menuseparator
\r
151 Document Class\SpecialChar \menuseparator
\r
153 \begin_inset Quotes eld
\r
157 \begin_inset Quotes erd
\r
161 \begin_inset Quotes eld
\r
165 \begin_inset Quotes erd
\r
169 \begin_inset Quotes eld
\r
173 \begin_inset Quotes erd
\r
176 and remove/uncomment the relevant parts in the LaTeX Preamble.
\r
180 \begin_layout Plain Layout
\r
181 If you want to use this JSS article style for a non-JSS article, replace
\r
183 \begin_inset Quotes eld
\r
187 \begin_inset Quotes erd
\r
191 \begin_inset Quotes eld
\r
195 \begin_inset Quotes erd
\r
199 This will suppress the JSS-specic parts of the layout.
\r
202 \begin_layout Plain Layout
\r
203 To include the JSS-specific parts of the layout, the article has to be processed
\r
205 you cannot process it with DVI or PS.
\r
206 However, if the option
\r
207 \begin_inset Quotes eld
\r
211 \begin_inset Quotes erd
\r
214 is used, it can be processed with DVI or PS.
\r
222 \begin_layout Section
\r
223 \begin_inset Note Note
\r
226 \begin_layout Plain Layout
\r
227 The opt field provides bookmarks for PDF files
\r
233 \begin_inset OptArg
\r
236 \begin_layout Plain Layout
\r
237 About package foo in R
\r
246 \begin_layout Plain Layout
\r
259 \begin_layout Plain Layout
\r
270 \begin_layout Plain Layout
\r
281 \begin_layout Plain Layout
\r
294 \begin_layout Plain Layout
\r
305 \begin_layout Plain Layout
\r
315 \begin_layout Standard
\r
316 The special JSS style commands related to software and mathematical formulas
\r
317 are written as follows in LyX:
\r
321 \begin_layout Plain Layout
\r
334 \begin_layout Plain Layout
\r
347 \begin_layout Plain Layout
\r
354 for the names of programming languages,
\r
358 \begin_layout Plain Layout
\r
371 \begin_layout Plain Layout
\r
384 \begin_layout Plain Layout
\r
391 for software packages, and
\r
395 \begin_layout Plain Layout
\r
408 \begin_layout Plain Layout
\r
421 \begin_layout Plain Layout
\r
429 \begin_inset Formula $\E$
\r
433 \begin_inset Note Note
\r
436 \begin_layout Plain Layout
\r
445 \begin_inset Formula $\VAR$
\r
449 \begin_inset Note Note
\r
452 \begin_layout Plain Layout
\r
461 \begin_inset Formula $\COV$
\r
465 \begin_inset Note Note
\r
468 \begin_layout Plain Layout
\r
476 for covariances, and
\r
477 \begin_inset Formula $\Prob$
\r
481 \begin_inset Note Note
\r
484 \begin_layout Plain Layout
\r
495 \begin_layout Standard
\r
496 Writing several lines of code:
\r
499 \begin_layout Standard
\r
503 \begin_layout Plain Layout
\r
510 \begin_layout Plain Layout
\r
517 \begin_layout Plain Layout
\r
522 \begin_layout Plain Layout
\r
524 second line of code
\r
527 \begin_layout Plain Layout
\r
532 \begin_layout Plain Layout
\r
539 \begin_layout Plain Layout
\r
551 \begin_layout Standard
\r
552 Alternatively, you can distinguish between input and output code:
\r
555 \begin_layout Standard
\r
559 \begin_layout Plain Layout
\r
566 \begin_layout Plain Layout
\r
573 \begin_layout Plain Layout
\r
575 first line of input code
\r
578 \begin_layout Plain Layout
\r
580 second line of input code
\r
583 \begin_layout Plain Layout
\r
590 \begin_layout Plain Layout
\r
597 \begin_layout Plain Layout
\r
599 first line of output code
\r
602 \begin_layout Plain Layout
\r
604 second line of output code
\r
607 \begin_layout Plain Layout
\r
609 third line of output code
\r
612 \begin_layout Plain Layout
\r
619 \begin_layout Plain Layout
\r
631 \begin_layout Section*
\r
635 \begin_layout Standard
\r
636 Here you can write some acknowledgments.
\r