1 #LyX 2.0 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}
79 \use_default_options false
80 \maintain_unincluded_children false
82 \language_package default
87 \font_typewriter default
88 \font_default_family default
89 \use_non_tex_fonts false
96 \default_output_format default
98 \bibtex_command default
99 \index_command default
100 \paperfontsize default
109 \cite_engine natbib_authoryear
112 \paperorientation portrait
121 \paragraph_separation indent
122 \paragraph_indentation default
123 \quotes_language english
126 \paperpagestyle default
127 \tracking_changes false
128 \output_changes false
131 \html_be_strict false
136 \begin_layout Standard
137 \begin_inset Note Note
140 \begin_layout Plain Layout
141 This is a template LyX file for articles to be submitted to the Journal
142 of Statistical Software (JSS).
143 How to install the JSS LaTeX class to your LaTeX system is explained in
145 \begin_inset Flex URL
148 \begin_layout Plain Layout
150 http://wiki.lyx.org/Layouts/JSS
161 \begin_inset Note Note
164 \begin_layout Plain Layout
165 Note that title, author, address, abstract, keywords etc for this article
166 style are written in the LaTeX preamble (accessed from Document\SpecialChar \menuseparator
167 Settings...\SpecialChar \menuseparator
173 \begin_layout Plain Layout
174 To use the JSS codesnippet, bookreview or softwarereview styles, replace
176 \begin_inset Quotes eld
180 \begin_inset Quotes erd
183 in Document\SpecialChar \menuseparator
184 Settings...\SpecialChar \menuseparator
185 Document Class\SpecialChar \menuseparator
187 \begin_inset Quotes eld
191 \begin_inset Quotes erd
195 \begin_inset Quotes eld
199 \begin_inset Quotes erd
203 \begin_inset Quotes eld
207 \begin_inset Quotes erd
210 and remove/uncomment the relevant parts in the LaTeX Preamble.
214 \begin_layout Plain Layout
215 If you want to use this JSS article style for a non-JSS article, replace
217 \begin_inset Quotes eld
221 \begin_inset Quotes erd
225 \begin_inset Quotes eld
229 \begin_inset Quotes erd
233 This will suppress the JSS-specic parts of the layout.
236 \begin_layout Plain Layout
237 To include the JSS-specific parts of the layout, the article has to be processed
239 you cannot process it with DVI or PS.
240 However, if the option
241 \begin_inset Quotes eld
245 \begin_inset Quotes erd
248 is used, it can be processed with DVI or PS.
256 \begin_layout Section
257 \begin_inset Note Note
260 \begin_layout Plain Layout
261 The opt field provides bookmarks for PDF files
267 \begin_inset Argument
270 \begin_layout Plain Layout
271 About package foo in R
280 \begin_layout Plain Layout
293 \begin_layout Plain Layout
304 \begin_layout Plain Layout
315 \begin_layout Plain Layout
328 \begin_layout Plain Layout
339 \begin_layout Plain Layout
349 \begin_layout Standard
350 The special JSS style commands related to software and mathematical formulas
351 are written as follows in LyX:
355 \begin_layout Plain Layout
368 \begin_layout Plain Layout
381 \begin_layout Plain Layout
388 for the names of programming languages,
392 \begin_layout Plain Layout
405 \begin_layout Plain Layout
418 \begin_layout Plain Layout
425 for software packages, and
429 \begin_layout Plain Layout
442 \begin_layout Plain Layout
455 \begin_layout Plain Layout
463 \begin_inset Formula $\E$
467 \begin_inset Note Note
470 \begin_layout Plain Layout
479 \begin_inset Formula $\VAR$
483 \begin_inset Note Note
486 \begin_layout Plain Layout
495 \begin_inset Formula $\COV$
499 \begin_inset Note Note
502 \begin_layout Plain Layout
511 \begin_inset Formula $\Prob$
515 \begin_inset Note Note
518 \begin_layout Plain Layout
529 \begin_layout Standard
530 Writing several lines of code:
533 \begin_layout Standard
537 \begin_layout Plain Layout
544 \begin_layout Plain Layout
551 \begin_layout Plain Layout
556 \begin_layout Plain Layout
561 \begin_layout Plain Layout
566 \begin_layout Plain Layout
573 \begin_layout Plain Layout
585 \begin_layout Standard
586 Alternatively, you can distinguish between input and output code:
589 \begin_layout Standard
593 \begin_layout Plain Layout
600 \begin_layout Plain Layout
607 \begin_layout Plain Layout
609 first line of input code
612 \begin_layout Plain Layout
614 second line of input code
617 \begin_layout Plain Layout
624 \begin_layout Plain Layout
631 \begin_layout Plain Layout
633 first line of output code
636 \begin_layout Plain Layout
638 second line of output code
641 \begin_layout Plain Layout
643 third line of output code
646 \begin_layout Plain Layout
653 \begin_layout Plain Layout
665 \begin_layout Section*
669 \begin_layout Standard
670 Here you can write some acknowledgments.