X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=lib%2Flayouts%2Fjss.layout;h=5dafd831ff7a9ccdc288b010666aead1661dfde4;hb=4fa5cbddcef5d4090d29850da38e6dc20d961b7c;hp=2abcd2c497c0d2c5d4bb7eca03d8615ba94093ad;hpb=874e86795379c4cfb0730822ed53be99e68982a1;p=lyx.git diff --git a/lib/layouts/jss.layout b/lib/layouts/jss.layout index 2abcd2c497..5dafd831ff 100644 --- a/lib/layouts/jss.layout +++ b/lib/layouts/jss.layout @@ -1,11 +1,243 @@ #% Do not delete the line below; configure depends on this -# \DeclareLaTeXClass[jss,ae.sty,color.sty,fancyvrb.sty,hyperref.sty,natbib.sty]{article (Journal of Statistical Software)} +# \DeclareLaTeXClass[jss,ae.sty,color.sty,fancyvrb.sty,hyperref.sty,natbib.sty,upquote.sty]{Journal of Statistical Software (JSS) version 2} +# \DeclareCategory{Articles} # Journal of Statistical Software (JSS) article textclass definition file # Author: Andreas Karlsson +# Phil Chalmers +# Uwe Stöhr # License: GNU GPL version 2 or later # JSS LaTeX files can be downloaded from http://www.jstatsoft.org/downloads/JSSstyle.zip -Format 31 +Format 59 # Read the definitions from article.layout Input article.layout + +# The commented macro below is enough to prevent Sweave from loading +# Sweave.sty. This is needed because jss.cls already provides +# this package's functionality (see bug 7555). +AddToPreamble + %\usepackage{Sweave} +EndPreamble + +NoStyle "Right Address" + +Style Section + LabelString \thesection. +End + +Style Subsection + LabelString \thesubsection. +End + +Style Subsubsection + LabelType No_Label + Font + Shape Italic + EndFont +End + +Style Title + InPreamble 1 + Font + Size Huge + EndFont +End + +Style Author + InPreamble 1 +End + +Style Abstract + Category FrontMatter + LatexName Abstract + LatexType Command + InTitle 1 + InPreamble 1 + Margin Dynamic + LeftMargin M + NextNoIndent 1 + ParSkip 0.4 + BottomSep 1.5 + TopSep 1.5 + ParSep 1.5 + TopSep 0.8 + BottomSep 0.8 + AlignPossible Block, Left, Right, Center + Labeltype Centered + LabelString "Abstract" + LabelFont + Series Bold + EndFont +End + +Style Address + CopyStyle Abstract + LatexName Address + LabelType Above + LabelString "Affiliation:" + Margin Static + LeftMargin M + Labelsep M + LabelFont + Size normal + EndFont +End + +Style Keywords + Margin Dynamic + LatexType Command + LatexName Keywords + Category FrontMatter + InTitle 1 + InPreamble 1 + NextNoIndent 1 + BottomSep 0.5 + ParSkip 0.4 + Align Block + LabelSep xx + LabelType Static + LabelString "Keywords:" + LabelFont + Color Green + Series Bold + EndFont +End + +Style "Plain Keywords" + CopyStyle Keywords + LatexName Plainkeywords + LabelString "Plain Keywords:" +End + +Style "Plain Title" + CopyStyle Keywords + LatexName Plaintitle + LabelString "Plain Title:" +End + +Style "Short Title" + CopyStyle Keywords + LatexName Shorttitle + LabelString "Short Title:" +End + +Style "Plain Author" + CopyStyle Keywords + LatexName Plainauthor + LabelString "Plain Author:" +End + +InsetLayout "Flex:Pkg" + LyxType custom + LabelString pkg + LatexType command + LatexName pkg + Font + Color foreground + Size Small + Family Roman + Shape Up + Series Medium + Misc No_Emph + Misc No_Noun + Misc No_Bar + Series Bold + EndFont + LabelFont + Color latex + Size Small + EndFont + HTMLTag pkg + ResetsFont true + spellcheck false +End + +InsetLayout "Flex:Proglang" + CopyStyle "Flex:Pkg" + LabelString proglang + LatexName proglang + Font + Family Typewriter + Series Medium + EndFont + LabelFont + Color latex + Size Small + EndFont + HTMLTag proglang +End + +InsetLayout "Flex:Code" + CopyStyle "Flex:Proglang" + Spellcheck 0 + LabelString code + LatexName code + HTMLTag code +End + +InsetLayout "Flex:E-mail" + CopyStyle "Flex:URL" + LabelString E-mail + LatexName email + HTMLTag email +End + +InsetLayout "Flex:Code Chunk" + CopyStyle "Flex:Pkg" + LatexType Environment + LatexName CodeChunk + Decoration Classic + Spellcheck 0 + ParbreakIsNewline 1 + FreeSpacing 1 + PassThru 1 + KeepEmpty 1 + LabelString "Code Chunk" + Font + Family Typewriter + EndFont + LabelFont + Color Green + EndFont +End + +Style "Code" + LatexName Code + LabelString "Code" + LatexType Environment + LatexName Code + Spellcheck 0 + NextNoIndent 1 + ParbreakIsNewline 1 + FreeSpacing 1 + PassThru 1 + KeepEmpty 1 + NewLine 0 + TopSep 0 + BottomSep 0 + Align Block + AlignPossible Block + Labeltype Above + Font + Family Typewriter + EndFont + LabelFont + Series Bold + Color Green + EndFont + HTMLTag

+	HTMLItem			p
+End
+
+Style "Code Input"
+	CopyStyle			"Code"
+	LatexName			CodeInput
+	LabelString			"Code Input"
+End
+
+Style "Code Output"
+	CopyStyle			"Code"
+	LatexName			CodeOutput
+	LabelString			"Code Output"
+End