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