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