]> git.lyx.org Git - lyx.git/blob - lib/templates/Articles/R_Journal.lyx
Do not throw away runparams settings of InsetText in InsetFoot::latex
[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 614
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_roman_osf false
25 \font_sans_osf false
26 \font_typewriter_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 \tablestyle default
78 \tracking_changes false
79 \output_changes false
80 \change_bars false
81 \postpone_fragile_content false
82 \html_math_output 0
83 \html_css_as_file 0
84 \html_be_strict false
85 \docbook_table_output 0
86 \docbook_mathml_prefix 1
87 \end_header
88
89 \begin_body
90
91 \begin_layout Standard
92 \begin_inset Note Note
93 status open
94
95 \begin_layout Plain Layout
96 This document requires the LaTeX style file 
97 \begin_inset Quotes eld
98 \end_inset
99
100 RJournal.sty
101 \begin_inset Quotes erd
102 \end_inset
103
104 .
105 \end_layout
106
107 \begin_layout Plain Layout
108 See 
109 \begin_inset Flex URL
110 status open
111
112 \begin_layout Plain Layout
113
114 https://journal.r-project.org/submissions.html
115 \end_layout
116
117 \end_inset
118
119
120 \end_layout
121
122 \end_inset
123
124
125 \begin_inset ERT
126 status open
127
128 \begin_layout Plain Layout
129
130 <<setup,
131  include=FALSE>>=
132 \end_layout
133
134 \begin_layout Plain Layout
135
136 render_sweave() # use Schunk,
137  Sinput and Soutput environments defined by RJournal
138 \end_layout
139
140 \begin_layout Plain Layout
141
142 set_header(highlight = '') # no need for 
143 \backslash
144 usepackage{Sweave}
145 \end_layout
146
147 \begin_layout Plain Layout
148
149 @
150 \end_layout
151
152 \end_inset
153
154
155 \end_layout
156
157 \begin_layout Title
158 Capitalized Title Here
159 \end_layout
160
161 \begin_layout Author
162 by Author A and Author B
163 \end_layout
164
165 \begin_layout Abstract
166 An abstract of less than 150 words.
167 \end_layout
168
169 \begin_layout Section
170 Section title in sentence case
171 \end_layout
172
173 \begin_layout Standard
174 Write something here.
175  A sample citation is 
176 \begin_inset CommandInset citation
177 LatexCommand citet
178 key "article-minimal"
179 literal "true"
180
181 \end_inset
182
183 .
184 \end_layout
185
186 \begin_layout Section
187 R code chunks
188 \end_layout
189
190 \begin_layout Standard
191 Press 
192 \begin_inset Info
193 type  "shortcut"
194 arg   "ert-insert"
195 \end_inset
196
197  and input R code chunks which will be compiled with the 
198 \series bold
199 knitr
200 \series default
201  package (
202 \begin_inset Flex URL
203 status collapsed
204
205 \begin_layout Plain Layout
206
207 http://yihui.name/knitr/
208 \end_layout
209
210 \end_inset
211
212 ).
213 \end_layout
214
215 \begin_layout Standard
216 \begin_inset ERT
217 status open
218
219 \begin_layout Plain Layout
220
221 <<sample-chunk,
222  echo=TRUE>>=
223 \end_layout
224
225 \begin_layout Plain Layout
226
227 x=1:10
228 \end_layout
229
230 \begin_layout Plain Layout
231
232 rev(x)
233 \end_layout
234
235 \begin_layout Plain Layout
236
237 summary(x)
238 \end_layout
239
240 \begin_layout Plain Layout
241
242 @
243 \end_layout
244
245 \end_inset
246
247
248 \end_layout
249
250 \begin_layout Standard
251 You can also plot your data;
252  see Figure 
253 \begin_inset CommandInset ref
254 LatexCommand ref
255 reference "fig:sample-figure"
256 nolink "false"
257
258 \end_inset
259
260  for example.
261 \end_layout
262
263 \begin_layout Standard
264 \begin_inset Float figure
265 placement tbph
266 alignment document
267 wide false
268 sideways false
269 status open
270
271 \begin_layout Plain Layout
272 \begin_inset ERT
273 status open
274
275 \begin_layout Plain Layout
276
277 <<sample-figure,
278  fig.width=5,
279  fig.height=3,
280  out.width='.4
281 \backslash
282
283 \backslash
284 linewidth',
285  fig.align='center',
286  dev=c('pdf','postscript')>>=
287 \end_layout
288
289 \begin_layout Plain Layout
290
291 par(mar = c(4,4,.1,.1))
292 \end_layout
293
294 \begin_layout Plain Layout
295
296 plot(x,
297  pch=19,
298  col=1:10)
299 \end_layout
300
301 \begin_layout Plain Layout
302
303 @
304 \end_layout
305
306 \end_inset
307
308
309 \end_layout
310
311 \begin_layout Plain Layout
312 \begin_inset Caption Standard
313
314 \begin_layout Plain Layout
315 A sample figure.
316 \begin_inset CommandInset label
317 LatexCommand label
318 name "fig:sample-figure"
319
320 \end_inset
321
322
323 \end_layout
324
325 \end_inset
326
327
328 \end_layout
329
330 \end_inset
331
332
333 \end_layout
334
335 \begin_layout Standard
336 \begin_inset Note Note
337 status open
338
339 \begin_layout Plain Layout
340 When you insert a Bib\SpecialChar TeX
341  bibliography here,
342  do not use any bib styles.
343  The R Journal has declared the style to be 
344 \begin_inset Quotes eld
345 \end_inset
346
347 abbrvnat
348 \begin_inset Quotes erd
349 \end_inset
350
351 .
352 \end_layout
353
354 \end_inset
355
356
357 \end_layout
358
359 \begin_layout Standard
360 \begin_inset CommandInset bibtex
361 LatexCommand bibtex
362 bibfiles "xampl"
363
364 \end_inset
365
366
367 \end_layout
368
369 \begin_layout Address
370 Author A
371 \begin_inset Newline newline
372 \end_inset
373
374 Press 
375 \begin_inset Info
376 type  "shortcut"
377 arg   "newline-insert newline"
378 \end_inset
379
380  to input
381 \begin_inset Newline newline
382 \end_inset
383
384 address here
385 \begin_inset Newline newline
386 \end_inset
387
388
389 \begin_inset Flex Email
390 status open
391
392 \begin_layout Plain Layout
393 author.a@email
394 \end_layout
395
396 \end_inset
397
398
399 \end_layout
400
401 \begin_layout Address
402 Author B
403 \begin_inset Newline newline
404 \end_inset
405
406
407 \begin_inset Flex Email
408 status open
409
410 \begin_layout Plain Layout
411 author.b@email
412 \end_layout
413
414 \end_inset
415
416
417 \end_layout
418
419 \end_body
420 \end_document