]> git.lyx.org Git - lyx.git/blob - lib/templates/JSS-article.lyx
2978ff2f57286b3def720bf81ca6733a2ddd30c0
[lyx.git] / lib / templates / JSS-article.lyx
1 #LyX 1.5.5 created this file. For more info see http://www.lyx.org/
2 \lyxformat 276
3 \begin_document
4 \begin_header
5 \textclass jss
6 \begin_preamble
7 %the following commands are used only for articles and codesnippets
8
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}}
13
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} 
19
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} 
25
26 %the following commands are used only for book or software reviews
27
28 %\Reviewer{Some Author\\University of Somewhere}
29 %\Plainreviewer{Some Author}
30
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}
34 %\Pubyear{2008}
35 %\ISBN{0-12345-678-9}
36 %\Pages{500}
37
38 %the following command is used only for software reviews
39 %\Softwaretitle{\proglang{gretl 1.7.4}}
40
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/}
46
47 %without any formatting
48 %\Plaintitle{LyX and R: Secrets of the LyX Master}
49 %\Shorttitle{LyX and R}
50
51 %the following commands are used for articles, codesnippets, book reviews and software reviews
52
53 %publication information
54 %do not use these commands before the article has been accepted
55 %\Volume{00}
56 %\Issue{0}
57 %\Month{Month}
58 %\Year{2000}
59 %\Submitdate{2000-00-00}
60 %\Acceptdate{2000-00-00}
61
62 %The address of at least one author should be given in the following format
63 \Address{
64   First Author\\
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}
70 }
71 %you can add a telephone and fax number before the e-mail in the format
72 %Telephone: +12/3/4567-89
73 %Fax: +12/3/4567-89
74
75 %if you use Sweave,  include the following line (with % symbols):
76 %% need no \usepackage{Sweave.sty}
77 \end_preamble
78 \options article
79 \language english
80 \inputencoding auto
81 \font_roman default
82 \font_sans default
83 \font_typewriter default
84 \font_default_family default
85 \font_sc false
86 \font_osf false
87 \font_sf_scale 100
88 \font_tt_scale 100
89 \graphics default
90 \paperfontsize default
91 \spacing single
92 \papersize default
93 \use_geometry false
94 \use_amsmath 0
95 \use_esint 0
96 \cite_engine natbib_authoryear
97 \use_bibtopic false
98 \paperorientation portrait
99 \secnumdepth 3
100 \tocdepth 3
101 \paragraph_separation indent
102 \defskip medskip
103 \quotes_language english
104 \papercolumns 1
105 \papersides 1
106 \paperpagestyle default
107 \tracking_changes false
108 \output_changes false
109 \author "" 
110 \author "" 
111 \end_header
112
113 \begin_body
114
115 \begin_layout Standard
116 \begin_inset Note Note
117 status open
118
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.
126 \end_layout
127
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
132 LaTeX
133  Preamble).
134  
135 \end_layout
136
137 \begin_layout Standard
138 To use the JSS codesnippet, bookreview or softwarereview styles, replace
139  the option 
140 \begin_inset Quotes eld
141 \end_inset
142
143 article
144 \begin_inset Quotes erd
145 \end_inset
146
147  in Document\SpecialChar \menuseparator
148 Settings...\SpecialChar \menuseparator
149 Document Class\SpecialChar \menuseparator
150 Options with 
151 \begin_inset Quotes eld
152 \end_inset
153
154 codesnippet
155 \begin_inset Quotes erd
156 \end_inset
157
158
159 \begin_inset Quotes eld
160 \end_inset
161
162 bookreview
163 \begin_inset Quotes erd
164 \end_inset
165
166  or 
167 \begin_inset Quotes eld
168 \end_inset
169
170 softwarereview
171 \begin_inset Quotes erd
172 \end_inset
173
174  and remove/uncomment the relevant parts in the LaTeX Preamble.
175  
176 \end_layout
177
178 \begin_layout Standard
179 If you want to use this JSS article style for a non-JSS article, replace
180  the option 
181 \begin_inset Quotes eld
182 \end_inset
183
184 article
185 \begin_inset Quotes erd
186 \end_inset
187
188  with 
189 \begin_inset Quotes eld
190 \end_inset
191
192 nojss
193 \begin_inset Quotes erd
194 \end_inset
195
196 .
197  This will suppress the JSS-specic parts of the layout.
198 \end_layout
199
200 \begin_layout Standard
201 To include the JSS-specific parts of the layout, the article has to be processed
202  with PDF, i.e.
203  you cannot process it with DVI or PS.
204  However, if the option 
205 \begin_inset Quotes eld
206 \end_inset
207
208 nojss
209 \begin_inset Quotes erd
210 \end_inset
211
212  is used, it can be processed with DVI or PS.
213 \end_layout
214
215 \end_inset
216
217
218 \end_layout
219
220 \begin_layout Section
221 \begin_inset Note Note
222 status collapsed
223
224 \begin_layout Standard
225 The opt field provides bookmarks for PDF files
226 \end_layout
227
228 \end_inset
229
230
231 \begin_inset OptArg
232 status collapsed
233
234 \begin_layout Standard
235 About package foo in R
236 \end_layout
237
238 \end_inset
239
240 About package 
241 \begin_inset ERT
242 status collapsed
243
244 \begin_layout Standard
245
246
247 \backslash
248 pkg
249 \end_layout
250
251 \end_inset
252
253
254 \begin_inset ERT
255 status collapsed
256
257 \begin_layout Standard
258
259 {
260 \end_layout
261
262 \end_inset
263
264 foo
265 \begin_inset ERT
266 status collapsed
267
268 \begin_layout Standard
269
270 }
271 \end_layout
272
273 \end_inset
274
275  in 
276 \begin_inset ERT
277 status collapsed
278
279 \begin_layout Standard
280
281
282 \backslash
283 proglang
284 \end_layout
285
286 \end_inset
287
288
289 \begin_inset ERT
290 status collapsed
291
292 \begin_layout Standard
293
294 {
295 \end_layout
296
297 \end_inset
298
299 R
300 \begin_inset ERT
301 status collapsed
302
303 \begin_layout Standard
304
305 }
306 \end_layout
307
308 \end_inset
309
310
311 \end_layout
312
313 \begin_layout Standard
314 The special JSS style commands related to software and mathematical formulas
315  are written as follows in LyX: 
316 \begin_inset ERT
317 status open
318
319 \begin_layout Standard
320
321
322 \backslash
323 proglang{R}
324 \end_layout
325
326 \end_inset
327
328  or 
329 \begin_inset ERT
330 status collapsed
331
332 \begin_layout Standard
333
334
335 \backslash
336 proglang{
337 \end_layout
338
339 \end_inset
340
341 R
342 \begin_inset ERT
343 status collapsed
344
345 \begin_layout Standard
346
347 }
348 \end_layout
349
350 \end_inset
351
352  for the names of programming languages, 
353 \begin_inset ERT
354 status open
355
356 \begin_layout Standard
357
358
359 \backslash
360 pkg{foo}
361 \end_layout
362
363 \end_inset
364
365  or 
366 \begin_inset ERT
367 status collapsed
368
369 \begin_layout Standard
370
371
372 \backslash
373 pkg{
374 \end_layout
375
376 \end_inset
377
378 foo
379 \begin_inset ERT
380 status collapsed
381
382 \begin_layout Standard
383
384 }
385 \end_layout
386
387 \end_inset
388
389  for software packages, and 
390 \begin_inset ERT
391 status open
392
393 \begin_layout Standard
394
395
396 \backslash
397 code{some code}
398 \end_layout
399
400 \end_inset
401
402  or 
403 \begin_inset ERT
404 status collapsed
405
406 \begin_layout Standard
407
408
409 \backslash
410 pkg{
411 \end_layout
412
413 \end_inset
414
415 some code
416 \begin_inset ERT
417 status collapsed
418
419 \begin_layout Standard
420
421 }
422 \end_layout
423
424 \end_inset
425
426  for code; 
427 \begin_inset Formula $\E$
428 \end_inset
429
430  
431 \begin_inset Note Note
432 status open
433
434 \begin_layout Standard
435 written as 
436 \backslash
437 E
438 \end_layout
439
440 \end_inset
441
442  for expectations, 
443 \begin_inset Formula $\VAR$
444 \end_inset
445
446  
447 \begin_inset Note Note
448 status open
449
450 \begin_layout Standard
451 written as 
452 \backslash
453 VAR
454 \end_layout
455
456 \end_inset
457
458  for variances, 
459 \begin_inset Formula $\COV$
460 \end_inset
461
462  
463 \begin_inset Note Note
464 status open
465
466 \begin_layout Standard
467 written as 
468 \backslash
469 COV
470 \end_layout
471
472 \end_inset
473
474  for covariances, and 
475 \begin_inset Formula $\Prob$
476 \end_inset
477
478  
479 \begin_inset Note Note
480 status open
481
482 \begin_layout Standard
483 written as 
484 \backslash
485 Prob
486 \end_layout
487
488 \end_inset
489
490  for probabilities.
491 \end_layout
492
493 \begin_layout Standard
494 Writing several lines of code: 
495 \end_layout
496
497 \begin_layout Standard
498 \begin_inset ERT
499 status open
500
501 \begin_layout Standard
502
503
504 \backslash
505 begin{CodeChunk}
506 \end_layout
507
508 \begin_layout Standard
509
510
511 \backslash
512 begin{Code}
513 \end_layout
514
515 \begin_layout Standard
516
517 first line of code
518 \end_layout
519
520 \begin_layout Standard
521
522 second line of code
523 \end_layout
524
525 \begin_layout Standard
526
527 third line of code
528 \end_layout
529
530 \begin_layout Standard
531
532
533 \backslash
534 end{Code}
535 \end_layout
536
537 \begin_layout Standard
538
539
540 \backslash
541 end{CodeChunk}
542 \end_layout
543
544 \end_inset
545
546
547 \end_layout
548
549 \begin_layout Standard
550 Alternatively, you can distinguish between input and output code:
551 \end_layout
552
553 \begin_layout Standard
554 \begin_inset ERT
555 status open
556
557 \begin_layout Standard
558
559
560 \backslash
561 begin{CodeChunk}
562 \end_layout
563
564 \begin_layout Standard
565
566
567 \backslash
568 begin{CodeInput}
569 \end_layout
570
571 \begin_layout Standard
572
573 first line of input code
574 \end_layout
575
576 \begin_layout Standard
577
578 second line of input code
579 \end_layout
580
581 \begin_layout Standard
582
583
584 \backslash
585 end{CodeInput}
586 \end_layout
587
588 \begin_layout Standard
589
590
591 \backslash
592 begin{CodeOutput}
593 \end_layout
594
595 \begin_layout Standard
596
597 first line of output code
598 \end_layout
599
600 \begin_layout Standard
601
602 second line of output code
603 \end_layout
604
605 \begin_layout Standard
606
607 third line of output code
608 \end_layout
609
610 \begin_layout Standard
611
612
613 \backslash
614 end{CodeOutput}
615 \end_layout
616
617 \begin_layout Standard
618
619
620 \backslash
621 end{CodeChunk}
622 \end_layout
623
624 \end_inset
625
626
627 \end_layout
628
629 \begin_layout Section*
630 Acknowledgments
631 \end_layout
632
633 \begin_layout Standard
634 Here you can write some acknowledgments.
635 \end_layout
636
637 \end_body
638 \end_document