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