]> git.lyx.org Git - lyx.git/blob - lib/layouts/RJournal.layout
943c70f4d4767a507027470a9532481b613bcb9e
[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 Style Abstract
44         Margin                First_Dynamic
45         LatexType             Command
46         InTitle               0
47         LatexName             abstract
48         LeftMargin            MMM
49         LabelIndent           MMM
50         RightMargin           MMM
51         ParIndent             MM
52         TopSep                0.7
53         BottomSep             0.7
54         Align                 Block
55         LabelType             Static
56         LabelString           "Abstract."
57         LabelSep              M
58         Font
59           Size                Small
60         EndFont
61         LabelFont
62           Shape               Smallcaps
63           Color               latex
64         EndFont
65 End
66
67 Style Address
68         Category              FrontMatter
69         Margin                Static
70         LatexType             Command
71         LatexName             address
72         ParSkip               0.4
73         BottomSep             1.5
74         ParSep                1.5
75         Align                 Left
76         AlignPossible         Block, Left, Right, Center
77         LabelType             No_Label
78 End
79
80 InsetLayout "Flex:Email"
81         LabelString           "Email"
82         LatexType             Command
83         LaTexName             email
84         LyXType               Custom
85         ForcePlain            1
86         LabelFont
87           Color               latex
88         EndFont
89 End