]> git.lyx.org Git - lyx.git/blob - lib/templates/RJournal.lyx
Update a format
[lyx.git] / lib / templates / RJournal.lyx
1 #LyX 2.2 created this file. For more info see http://www.lyx.org/
2 \lyxformat 501
3 \begin_document
4 \begin_header
5 \origin /systemlyxdir/templates/
6 \textclass RJournal
7 \use_default_options true
8 \begin_modules
9 knitr
10 \end_modules
11 \maintain_unincluded_children false
12 \language english
13 \language_package none
14 \inputencoding auto
15 \fontencoding global
16 \font_roman "default" "default"
17 \font_sans "default" "default"
18 \font_typewriter "default" "default"
19 \font_math "auto" "auto"
20 \font_default_family default
21 \use_non_tex_fonts false
22 \font_sc false
23 \font_osf false
24 \font_sf_scale 100 100
25 \font_tt_scale 100 100
26 \graphics default
27 \default_output_format default
28 \output_sync 0
29 \bibtex_command bibtex
30 \index_command default
31 \paperfontsize default
32 \spacing single
33 \use_hyperref false
34 \papersize default
35 \use_geometry false
36 \use_package amsmath 1
37 \use_package amssymb 1
38 \use_package cancel 0
39 \use_package esint 1
40 \use_package mathdots 1
41 \use_package mathtools 0
42 \use_package mhchem 1
43 \use_package stackrel 0
44 \use_package stmaryrd 0
45 \use_package undertilde 0
46 \cite_engine natbib
47 \cite_engine_type authoryear
48 \biblio_style plainnat
49 \use_bibtopic false
50 \use_indices false
51 \paperorientation portrait
52 \suppress_date false
53 \justification true
54 \use_refstyle 1
55 \index Index
56 \shortcut idx
57 \color #008000
58 \end_index
59 \secnumdepth 3
60 \tocdepth 3
61 \paragraph_separation indent
62 \paragraph_indentation default
63 \quotes_language english
64 \papercolumns 1
65 \papersides 1
66 \paperpagestyle default
67 \tracking_changes false
68 \output_changes false
69 \html_math_output 0
70 \html_css_as_file 0
71 \html_be_strict false
72 \end_header
73
74 \begin_body
75
76 \begin_layout Standard
77 \begin_inset ERT
78 status open
79
80 \begin_layout Plain Layout
81
82 <<setup, include=FALSE>>=
83 \end_layout
84
85 \begin_layout Plain Layout
86
87 render_sweave() # use Schunk, Sinput and Soutput environments defined by
88  RJournal
89 \end_layout
90
91 \begin_layout Plain Layout
92
93 set_header(highlight = '') # no need for 
94 \backslash
95 usepackage{Sweave}
96 \end_layout
97
98 \begin_layout Plain Layout
99
100 @
101 \end_layout
102
103 \end_inset
104
105
106 \end_layout
107
108 \begin_layout Title
109 Capitalized Title Here
110 \end_layout
111
112 \begin_layout Author
113 by Author A and Author B
114 \end_layout
115
116 \begin_layout Abstract
117 An abstract of less than 150 words.
118 \end_layout
119
120 \begin_layout Section
121 Section title in sentence case
122 \end_layout
123
124 \begin_layout Standard
125 Write something here.
126  A sample citation is 
127 \begin_inset CommandInset citation
128 LatexCommand citet
129 key "article-minimal"
130
131 \end_inset
132
133 .
134 \end_layout
135
136 \begin_layout Section
137 R code chunks
138 \end_layout
139
140 \begin_layout Standard
141 Press 
142 \begin_inset Info
143 type  "shortcut"
144 arg   "ert-insert"
145 \end_inset
146
147  and input R code chunks which will be compiled with the 
148 \series bold
149 knitr
150 \series default
151  package (
152 \begin_inset Flex URL
153 status collapsed
154
155 \begin_layout Plain Layout
156
157 http://yihui.name/knitr/
158 \end_layout
159
160 \end_inset
161
162 ).
163 \end_layout
164
165 \begin_layout Standard
166 \begin_inset ERT
167 status open
168
169 \begin_layout Plain Layout
170
171 <<sample-chunk, echo=TRUE>>=
172 \end_layout
173
174 \begin_layout Plain Layout
175
176 x=1:10
177 \end_layout
178
179 \begin_layout Plain Layout
180
181 rev(x)
182 \end_layout
183
184 \begin_layout Plain Layout
185
186 summary(x)
187 \end_layout
188
189 \begin_layout Plain Layout
190
191 @
192 \end_layout
193
194 \end_inset
195
196
197 \end_layout
198
199 \begin_layout Standard
200 You can also plot your data; see Figure 
201 \begin_inset CommandInset ref
202 LatexCommand ref
203 reference "fig:sample-figure"
204
205 \end_inset
206
207  for example.
208 \end_layout
209
210 \begin_layout Standard
211 \begin_inset Float figure
212 placement tbph
213 wide false
214 sideways false
215 status open
216
217 \begin_layout Plain Layout
218 \begin_inset ERT
219 status open
220
221 \begin_layout Plain Layout
222
223 <<sample-figure, fig.width=5, fig.height=3, out.width='.4
224 \backslash
225
226 \backslash
227 linewidth', fig.align='center', dev=c('pdf','postscript')>>=
228 \end_layout
229
230 \begin_layout Plain Layout
231
232 par(mar = c(4,4,.1,.1))
233 \end_layout
234
235 \begin_layout Plain Layout
236
237 plot(x, pch=19, col=1:10)
238 \end_layout
239
240 \begin_layout Plain Layout
241
242 @
243 \end_layout
244
245 \end_inset
246
247
248 \end_layout
249
250 \begin_layout Plain Layout
251 \begin_inset Caption Standard
252
253 \begin_layout Plain Layout
254 A sample figure.
255 \begin_inset CommandInset label
256 LatexCommand label
257 name "fig:sample-figure"
258
259 \end_inset
260
261
262 \end_layout
263
264 \end_inset
265
266
267 \end_layout
268
269 \end_inset
270
271
272 \end_layout
273
274 \begin_layout Standard
275 \begin_inset Note Note
276 status open
277
278 \begin_layout Plain Layout
279 When you insert a Bib\SpecialCharNoPassThru TeX
280  bibliography here, do not use any bib styles.
281  The R Journal has declared the style to be 
282 \begin_inset Quotes eld
283 \end_inset
284
285 abbrvnat
286 \begin_inset Quotes erd
287 \end_inset
288
289 .
290 \end_layout
291
292 \end_inset
293
294
295 \end_layout
296
297 \begin_layout Standard
298 \begin_inset CommandInset bibtex
299 LatexCommand bibtex
300 bibfiles "xampl"
301
302 \end_inset
303
304
305 \end_layout
306
307 \begin_layout Address
308 Author A
309 \begin_inset Newline newline
310 \end_inset
311
312 Press 
313 \begin_inset Info
314 type  "shortcut"
315 arg   "newline-insert newline"
316 \end_inset
317
318  to input
319 \begin_inset Newline newline
320 \end_inset
321
322 address here
323 \begin_inset Newline newline
324 \end_inset
325
326
327 \begin_inset Flex Email
328 status open
329
330 \begin_layout Plain Layout
331 author.a@email
332 \end_layout
333
334 \end_inset
335
336
337 \end_layout
338
339 \begin_layout Address
340 Author B
341 \begin_inset Newline newline
342 \end_inset
343
344
345 \begin_inset Flex Email
346 status open
347
348 \begin_layout Plain Layout
349 author.b@email
350 \end_layout
351
352 \end_inset
353
354
355 \end_layout
356
357 \end_body
358 \end_document