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