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