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