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