1 #LyX 2.1.0svn 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}
81 \language_package default
85 \font_typewriter default
86 \font_default_family default
92 \paperfontsize default
101 \cite_engine natbib_authoryear
103 \paperorientation portrait
106 \paragraph_separation indent
108 \quotes_language english
111 \paperpagestyle default
112 \tracking_changes false
113 \output_changes false
121 \begin_layout Standard
122 \begin_inset Note Note
125 \begin_layout Plain Layout
126 This is a template LyX file for an article written using the Journal of
127 Statistical Software (JSS) LaTeX style file, which can be downloaded from
128 http://www.jstatsoft.org/downloads/JSSstyle.zip.
129 These files have to be installed before this template can be used.
130 Consult chapter 5.1 in the LyX Customization manual.
131 See also the documentation included with the JSS LaTeX style file.
134 \begin_layout Plain Layout
135 Note that title, author, address, abstract, keywords etc for this article
136 style are written in the LaTeX preamble (accessed from Document\SpecialChar \menuseparator
137 Settings...\SpecialChar \menuseparator
143 \begin_layout Plain Layout
144 To use the JSS codesnippet, bookreview or softwarereview styles, replace
146 \begin_inset Quotes eld
150 \begin_inset Quotes erd
153 in Document\SpecialChar \menuseparator
154 Settings...\SpecialChar \menuseparator
155 Document Class\SpecialChar \menuseparator
157 \begin_inset Quotes eld
161 \begin_inset Quotes erd
165 \begin_inset Quotes eld
169 \begin_inset Quotes erd
173 \begin_inset Quotes eld
177 \begin_inset Quotes erd
180 and remove/uncomment the relevant parts in the LaTeX Preamble.
184 \begin_layout Plain Layout
185 If you want to use this JSS article style for a non-JSS article, replace
187 \begin_inset Quotes eld
191 \begin_inset Quotes erd
195 \begin_inset Quotes eld
199 \begin_inset Quotes erd
203 This will suppress the JSS-specic parts of the layout.
206 \begin_layout Plain Layout
207 To include the JSS-specific parts of the layout, the article has to be processed
209 you cannot process it with DVI or PS.
210 However, if the option
211 \begin_inset Quotes eld
215 \begin_inset Quotes erd
218 is used, it can be processed with DVI or PS.
226 \begin_layout Section
227 \begin_inset Note Note
230 \begin_layout Plain Layout
231 The opt field provides bookmarks for PDF files
237 \begin_inset Argument
240 \begin_layout Plain Layout
241 About package foo in R
250 \begin_layout Plain Layout
263 \begin_layout Plain Layout
274 \begin_layout Plain Layout
285 \begin_layout Plain Layout
298 \begin_layout Plain Layout
309 \begin_layout Plain Layout
319 \begin_layout Standard
320 The special JSS style commands related to software and mathematical formulas
321 are written as follows in LyX:
325 \begin_layout Plain Layout
338 \begin_layout Plain Layout
351 \begin_layout Plain Layout
358 for the names of programming languages,
362 \begin_layout Plain Layout
375 \begin_layout Plain Layout
388 \begin_layout Plain Layout
395 for software packages, and
399 \begin_layout Plain Layout
412 \begin_layout Plain Layout
425 \begin_layout Plain Layout
433 \begin_inset Formula $\E$
437 \begin_inset Note Note
440 \begin_layout Plain Layout
449 \begin_inset Formula $\VAR$
453 \begin_inset Note Note
456 \begin_layout Plain Layout
465 \begin_inset Formula $\COV$
469 \begin_inset Note Note
472 \begin_layout Plain Layout
481 \begin_inset Formula $\Prob$
485 \begin_inset Note Note
488 \begin_layout Plain Layout
499 \begin_layout Standard
500 Writing several lines of code:
503 \begin_layout Standard
507 \begin_layout Plain Layout
514 \begin_layout Plain Layout
521 \begin_layout Plain Layout
526 \begin_layout Plain Layout
531 \begin_layout Plain Layout
536 \begin_layout Plain Layout
543 \begin_layout Plain Layout
555 \begin_layout Standard
556 Alternatively, you can distinguish between input and output code:
559 \begin_layout Standard
563 \begin_layout Plain Layout
570 \begin_layout Plain Layout
577 \begin_layout Plain Layout
579 first line of input code
582 \begin_layout Plain Layout
584 second line of input code
587 \begin_layout Plain Layout
594 \begin_layout Plain Layout
601 \begin_layout Plain Layout
603 first line of output code
606 \begin_layout Plain Layout
608 second line of output code
611 \begin_layout Plain Layout
613 third line of output code
616 \begin_layout Plain Layout
623 \begin_layout Plain Layout
635 \begin_layout Section*
639 \begin_layout Standard
640 Here you can write some acknowledgments.