]> git.lyx.org Git - lyx.git/blob - lib/layouts/jss.layout
20209f525a983f8bb90d4f9f7d405a0361b61ad2
[lyx.git] / lib / layouts / jss.layout
1 #% Do not delete the line below; configure depends on this      
2 #  \DeclareLaTeXClass[jss,ae.sty,color.sty,fancyvrb.sty,hyperref.sty,natbib.sty,upquote.sty]{Journal of Statistical Software (JSS) version 2}
3 #  \DeclareCategory{Articles}
4 # Journal of Statistical Software (JSS) article textclass definition file
5 # Author: Andreas Karlsson <andreas.karlsson@ltv.se>
6 #         Phil Chalmers <rphilip.chalmers@gmail.com>
7 #         Uwe Stöhr <uwestoehr@lyx.org>
8 # License: GNU GPL version 2 or later
9 # JSS LaTeX files can be downloaded from http://www.jstatsoft.org/downloads/JSSstyle.zip
10
11 Format 54
12
13 # Read the definitions from article.layout
14 Input article.layout
15
16 # The commented macro below is enough to prevent Sweave from loading
17 # Sweave.sty. This is needed because jss.cls already provides
18 # this package's functionality (see bug 7555).
19 AddToPreamble
20     %\usepackage{Sweave}
21 EndPreamble
22
23 Style Title
24         InPreamble                      1
25         Font
26           Size                          Huge
27         EndFont
28 End
29
30 Style "Plain Title"
31         CopyStyle                       Title
32         LatexName                       Plaintitle
33 End
34
35 Style Author
36         InPreamble                      1
37 End
38
39 Style "Plain Author"
40         CopyStyle                       Author
41         LatexName                       Plainauthor
42 End
43
44 Style Abstract
45         Category                        FrontMatter
46         LatexName                       Abstract
47         LatexType                       Command
48         InTitle                         1
49         InPreamble                      1
50         Margin                          Dynamic
51         LeftMargin                      MM
52         NextNoIndent            1
53         ParSkip                         0.4
54         BottomSep                       1.5
55         TopSep                          1.5
56         ParSep                          1.5
57         TopSep                          0.8
58         BottomSep                       0.8
59         AlignPossible           Block, Left, Right, Center
60         Labeltype                       Centered
61         LabelString                     "Abstract"
62         Labelsep                        M
63         LabelFont
64           Series                        Bold
65         EndFont
66 End
67
68 Style Address
69         CopyStyle                       Abstract
70         LatexName                       Address
71         LabelType                       Above
72         LabelString                     "Affiliation:"
73         Margin                          Static
74         LeftMargin                      M
75         Labelsep                        M
76         LabelFont
77           Size                          normal
78         EndFont
79 End
80
81 Style Keywords
82         CopyStyle                       Abstract        
83         LatexName                       Keywords
84         Font
85           Size                          Small
86         EndFont
87         Margin                          Dynamic
88         LeftMargin                      MMN
89         RightMargin                     MMN
90         Align                           Block
91         NextNoIndent            1
92         BottomSep                       0.5
93         ParSkip                         0.4
94         Labeltype                       Static
95         LabelString                     "Keywords:"
96         LabelFont
97           Shape                         Italic
98         EndFont
99 End
100
101 Style "Plain Keywords"
102         CopyStyle                       Keywords
103         LatexName                       Plainkeywords
104         LabelString                     "Plain Keywords:"
105 End
106
107 Style "Short Title"
108         CopyStyle                       Keywords
109         LatexName                       Shorttitle
110         LabelString                     "Short Title:"
111 End
112
113 InsetLayout "Flex:pkg"
114         LyxType                         custom
115         LabelString                     pkg
116         LatexType                       command
117         LatexName                       pkg
118         Font
119           Color                         foreground
120           Size                          Small
121           Family                        Roman
122           Shape                         Up
123           Series                        Medium
124           Misc                          No_Emph
125           Misc                          No_Noun
126           Misc                          No_Bar
127           Series                        Bold
128         EndFont
129         LabelFont
130           Color                         latex
131           Size                          Small
132         EndFont
133         InToc                           true
134         HTMLTag                         pkg
135         ResetsFont                      true
136         spellcheck                      false
137 End
138
139 InsetLayout "Flex:proglang"
140         CopyStyle                       "Flex:pkg"
141         LabelString                     proglang
142         LatexName                       proglang
143         Font
144           Family                        Typewriter
145           Series                        Medium
146         EndFont
147         LabelFont
148           Color                         latex
149           Size                          Small
150         EndFont
151         HTMLTag                         proglang
152 End
153
154 InsetLayout "Flex:code"
155         CopyStyle                       "Flex:proglang"
156         Spellcheck                      0
157         LabelString                     code
158         LatexName                       code
159         HTMLTag                         code
160 End
161
162 InsetLayout "Flex:E-mail"
163         CopyStyle                       "Flex:URL"
164         LabelString                     E-mail
165         LatexName                       email
166         HTMLTag                         email
167 End
168
169 Style "Code Chunk"
170         Category                        MainText
171         LatexType                       Environment
172         LatexName                       CodeChunk
173         Spellcheck                      0
174         NextNoIndent            1
175         ParbreakIsNewline       1
176         FreeSpacing                     1
177         PassThru                        1
178         KeepEmpty                       1
179         NewLine                         0
180         TopSep                          0.7
181         BottomSep                       0.7
182         Align                           Block
183         AlignPossible           Block
184         Labeltype                       Above
185         LabelString                     "Code Chunk"
186         Font
187           Family                        Typewriter
188         EndFont
189         LabelFont
190           Series                        Bold
191           Color                         Green
192         EndFont
193         HTMLTag                         <pre></pre>
194         HTMLItem                        p
195 End
196
197 Style "Standard Code"
198         CopyStyle                       "Code Chunk"
199         LatexName                       Code
200         LabelString                     "Code"
201         TopSep                          0
202         BottomSep                       0
203 End
204
205 Style "Code Input"
206         CopyStyle                       "Standard Code"
207         LatexName                       CodeInput
208         LabelString                     "Code Input"
209 End
210
211 Style "Code Output"
212         CopyStyle                       "Standard Code"
213         LatexName                       CodeOutput
214         LabelString                     "Code Output"
215 End
216
217 Style Appendix
218         LatexType                       Environment
219         LatexName                       appendix
220         Category                        BackMatter
221         TopSep                          0.6
222         BottomSep                       0.6
223         Margin                          First_Dynamic
224         Align                           Block
225         NextNoIndent            1
226         LabelType                       Above
227         LabelString                     "Appendix"
228         LabelSep                        M
229         LabelFont
230           Series                        Bold
231           Shape                         Up
232           Size                          large
233         EndFont
234 End