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