]> git.lyx.org Git - lyx.git/blob - lib/layouts/jss.layout
0aab2aedb06d06306567cc63a3953be07569ddf5
[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         InToc                           true
150         HTMLTag                         pkg
151         ResetsFont                      true
152         spellcheck                      false
153 End
154
155 InsetLayout "Flex:proglang"
156         CopyStyle                       "Flex:pkg"
157         LabelString                     proglang
158         LatexName                       proglang
159         Font
160           Family                        Typewriter
161           Series                        Medium
162         EndFont
163         LabelFont
164           Color                         latex
165           Size                          Small
166         EndFont
167         HTMLTag                         proglang
168 End
169
170 InsetLayout "Flex:code"
171         CopyStyle                       "Flex:proglang"
172         Spellcheck                      0
173         LabelString                     code
174         LatexName                       code
175         HTMLTag                         code
176 End
177
178 InsetLayout "Flex:E-mail"
179         CopyStyle                       "Flex:URL"
180         LabelString                     E-mail
181         LatexName                       email
182         HTMLTag                         email
183 End
184
185 Style "Code Chunk"
186         Category                        MainText
187         LatexType                       Environment
188         LatexName                       CodeChunk
189         Spellcheck                      0
190         NextNoIndent            1
191         ParbreakIsNewline       1
192         FreeSpacing                     1
193         PassThru                        1
194         KeepEmpty                       1
195         NewLine                         0
196         TopSep                          0.7
197         BottomSep                       0.7
198         Align                           Block
199         AlignPossible           Block
200         Labeltype                       Above
201         LabelString                     "Code Chunk"
202         Font
203           Family                        Typewriter
204         EndFont
205         LabelFont
206           Series                        Bold
207           Color                         Green
208         EndFont
209         HTMLTag                         <pre></pre>
210         HTMLItem                        p
211 End
212
213 Style "Standard Code"
214         CopyStyle                       "Code Chunk"
215         LatexName                       Code
216         LabelString                     "Code"
217         TopSep                          0
218         BottomSep                       0
219 End
220
221 Style "Code Input"
222         CopyStyle                       "Standard Code"
223         LatexName                       CodeInput
224         LabelString                     "Code Input"
225 End
226
227 Style "Code Output"
228         CopyStyle                       "Standard Code"
229         LatexName                       CodeOutput
230         LabelString                     "Code Output"
231 End