]> git.lyx.org Git - lyx.git/blob - lib/layouts/jss.layout
e47c61fb8a4c333bcc163cfe123b755d879edffc
[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 99
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 NoStyle "Right Address"
24
25 Style Section
26         LabelString                     \thesection.
27         TocLevel 1
28 End
29
30 Style Subsection
31         LabelString                     \thesubsection.
32         TocLevel 2
33 End
34
35 Style Subsubsection
36         LabelType                       No_Label
37         Font
38           Shape                         Italic
39         EndFont
40                 TocLevel 3
41 End
42
43 Style Title
44         InPreamble                      1
45         Font
46           Size                          Huge
47         EndFont
48 End
49
50 Style Author
51         InPreamble                      1
52 End
53
54 Style Abstract
55         Category                        FrontMatter
56         LatexName                       Abstract
57         LatexType                       Command
58         InTitle                         1
59         InPreamble                      1
60         Margin                          Dynamic
61         LeftMargin                      M
62         NextNoIndent            1
63         ParSkip                         0.4
64         BottomSep                       1.5
65         TopSep                          1.5
66         ParSep                          1.5
67         TopSep                          0.8
68         BottomSep                       0.8
69         AlignPossible           Block, Left, Right, Center
70         Labeltype                       Centered
71         LabelString                     "Abstract"
72         LabelFont
73           Series                        Bold
74         EndFont
75 End
76
77 Style Address
78         CopyStyle                       Abstract
79         LatexName                       Address
80         LabelType                       Above
81         LabelString                     "Affiliation:"
82         Margin                          Static
83         LeftMargin                      M
84         Labelsep                        M
85         LabelFont
86           Size                          normal
87         EndFont
88 End
89
90 Style Keywords
91         Margin                          Dynamic
92         LatexType                       Command
93         LatexName                       Keywords
94         Category                        FrontMatter
95         InTitle                         1
96         InPreamble                      1
97         NextNoIndent            1
98         BottomSep                       0.5
99         ParSkip                         0.4
100         Align                           Block
101         LabelSep                        xx
102         LabelType                       Static
103         LabelString                     "Keywords:"
104         LabelFont
105           Color                         textlabel2
106           Series                        Bold
107         EndFont
108         DocBookTag         keyword
109         DocBookTagType     paragraph
110         DocBookWrapperTag  keywordset
111         DocBookInInfo      always
112 End
113
114 Style "Plain Keywords"
115         CopyStyle                       Keywords
116         LatexName                       Plainkeywords
117         LabelString                     "Plain Keywords:"
118 End
119
120 Style "Plain Title"
121         CopyStyle                       Keywords
122         LatexName                       Plaintitle
123         LabelString                     "Plain Title:"
124 End
125
126 Style "Short Title"
127         CopyStyle                       Keywords
128         LatexName                       Shorttitle
129         LabelString                     "Short Title:"
130 End
131
132 Style "Plain Author"
133         CopyStyle                       Keywords
134         LatexName                       Plainauthor
135         LabelString                     "Plain Author:"
136 End
137
138 InsetLayout "Flex:Pkg"
139         LyxType                         custom
140         LabelString                     pkg
141         LatexType                       command
142         LatexName                       pkg
143         Font
144           Color                         foreground
145           Size                          Small
146           Family                        Roman
147           Shape                         Up
148           Series                        Medium
149           Misc                          No_Emph
150           Misc                          No_Noun
151           Misc                          No_Bar
152           Series                        Bold
153         EndFont
154         LabelFont
155           Color                         latex
156           Size                          Small
157         EndFont
158         HTMLTag                         pkg
159         ResetsFont                      true
160         spellcheck                      false
161 End
162
163 InsetLayout "Flex:Proglang"
164         CopyStyle                       "Flex:Pkg"
165         LabelString                     proglang
166         LatexName                       proglang
167         Font
168           Family                        Typewriter
169           Series                        Medium
170         EndFont
171         LabelFont
172           Color                         latex
173           Size                          Small
174         EndFont
175         HTMLTag                         proglang
176 End
177
178 InsetLayout "Flex:Code"
179         CopyStyle                       "Flex:Proglang"
180         Spellcheck                      0
181         LabelString                     code
182         LatexName                       code
183         HTMLTag                         code
184 End
185
186 InsetLayout "Flex:E-mail"
187         CopyStyle                       "Flex:URL"
188         LabelString                     E-mail
189         LatexName                       email
190         HTMLTag                         email
191 End
192
193 InsetLayout "Flex:Code Chunk"
194         CopyStyle                       "Flex:Pkg"
195         LatexType                       Environment
196         LatexName                       CodeChunk
197         Decoration                      Classic
198         Spellcheck                      0
199         ParbreakIsNewline       1
200         FreeSpacing                     1
201         PassThru                        1
202         KeepEmpty                       1
203         LabelString                     "Code Chunk"
204         Font
205           Family                        Typewriter
206         EndFont
207         LabelFont
208           Color                         textlabel2
209         EndFont
210 End
211
212 Style "Code"
213         LatexName                       Code
214         LabelString                     "Code"
215         LatexType                       Environment
216         LatexName                       Code
217         Spellcheck                      0
218         NextNoIndent            1
219         ParbreakIsNewline       1
220         FreeSpacing                     1
221         PassThru                        1
222         KeepEmpty                       1
223         NewLine                         0
224         TopSep                          0
225         BottomSep                       0
226         Align                           Block
227         AlignPossible           Block
228         Labeltype                       Above
229         Font
230           Family                        Typewriter
231         EndFont
232         LabelFont
233           Series                        Bold
234           Color                         textlabel2
235         EndFont
236         HTMLTag                         pre
237         HTMLItem                        p
238 End
239
240 Style "Code Input"
241         CopyStyle                       "Code"
242         LatexName                       CodeInput
243         LabelString                     "Code Input"
244 End
245
246 Style "Code Output"
247         CopyStyle                       "Code"
248         LatexName                       CodeOutput
249         LabelString                     "Code Output"
250 End