]> git.lyx.org Git - lyx.git/blob - lib/layouts/RJournal.layout
e00d0e4381f77b305f9a52ba6ab49e6e4cc5e102
[lyx.git] / lib / layouts / RJournal.layout
1 #  \DeclareLaTeXClass[report,RJournal.sty,booktabs.sty,natbib.sty]{report (R Journal)}
2
3 Format 35
4
5 Input stdclass.inc
6
7 Provides natbib-internal 1
8
9 ClassOptions
10         Other             a4paper
11 End
12
13 DefaultModule   knitr
14
15 AddToPreamble
16         \usepackage{RJournal}
17         \usepackage[round]{natbib}
18         \bibliographystyle{abbrvnat}
19         \usepackage{booktabs}
20
21         % use Schunk, Sinput and Soutput environments defined by RJournal
22         <<include=FALSE>>=
23         render_sweave()
24         set_header(highlight = '')
25         knit_hooks$set(document = hook_rjournal)
26         @
27
28         \fancyhf{}
29         \fancyhead[LO,RE]{\textsc{Contributed Article}}
30         \fancyhead[RO,LE]{\thepage}
31         \fancyfoot[L]{The R Journal Vol. X/Y, Month, Year}
32         \fancyfoot[R]{ISSN 2073-4859}
33
34         \AtBeginDocument{%
35           \begin{article}
36         }
37
38         \AtEndDocument{%
39           \end{article}
40         }
41 EndPreamble
42
43 InsetLayout "Flex:Abstract"
44         LabelString           "Abstract"
45         LatexType             Command
46         LaTexName             abstract
47         LyXType               Custom
48         LabelFont
49           Color               latex
50         EndFont
51 End
52
53 InsetLayout "Flex:Address"
54         LabelString           "Address"
55         LatexType             Command
56         LaTexName             address
57         LyXType               Custom
58         LabelFont
59           Color               latex
60         EndFont
61 End
62
63 InsetLayout "Flex:Email"
64         LabelString           "Email"
65         LatexType             Command
66         LaTexName             email
67         LyXType               Custom
68         LabelFont
69           Color               latex
70         EndFont
71 End