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