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