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