]> git.lyx.org Git - features.git/blob - lib/layouts/RJournal.layout
RJournal: change 'Abstract' from a Flex to a Style
[features.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 InsetLayout "Flex:Address"
68         LabelString           "Address"
69         LatexType             Command
70         LaTexName             address
71         LyXType               Custom
72         LabelFont
73           Color               latex
74         EndFont
75 End
76
77 InsetLayout "Flex:Email"
78         LabelString           "Email"
79         LatexType             Command
80         LaTexName             email
81         LyXType               Custom
82         LabelFont
83           Color               latex
84         EndFont
85 End