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