X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=lib%2Flayouts%2Fjss.layout;h=9fac9ccd917bf718a9118d41eadeeca8b3cb9a1b;hb=006f1cbe4386999ee33b9e2ed5e55d3e36fa785c;hp=20209f525a983f8bb90d4f9f7d405a0361b61ad2;hpb=30f2accf7774829ee35f8288dbf9d30db1f4427f;p=lyx.git diff --git a/lib/layouts/jss.layout b/lib/layouts/jss.layout index 20209f525a..9fac9ccd91 100644 --- a/lib/layouts/jss.layout +++ b/lib/layouts/jss.layout @@ -8,7 +8,7 @@ # License: GNU GPL version 2 or later # JSS LaTeX files can be downloaded from http://www.jstatsoft.org/downloads/JSSstyle.zip -Format 54 +Format 79 # Read the definitions from article.layout Input article.layout @@ -20,6 +20,23 @@ 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 @@ -27,20 +44,10 @@ Style Title EndFont End -Style "Plain Title" - CopyStyle Title - LatexName Plaintitle -End - Style Author InPreamble 1 End -Style "Plain Author" - CopyStyle Author - LatexName Plainauthor -End - Style Abstract Category FrontMatter LatexName Abstract @@ -48,7 +55,7 @@ Style Abstract InTitle 1 InPreamble 1 Margin Dynamic - LeftMargin MM + LeftMargin M NextNoIndent 1 ParSkip 0.4 BottomSep 1.5 @@ -59,7 +66,6 @@ Style Abstract AlignPossible Block, Left, Right, Center Labeltype Centered LabelString "Abstract" - Labelsep M LabelFont Series Bold EndFont @@ -79,22 +85,22 @@ Style Address End Style Keywords - CopyStyle Abstract - LatexName Keywords - Font - Size Small - EndFont Margin Dynamic - LeftMargin MMN - RightMargin MMN - Align Block + LatexType Command + LatexName Keywords + Category FrontMatter + InTitle 1 + InPreamble 1 NextNoIndent 1 BottomSep 0.5 ParSkip 0.4 - Labeltype Static + Align Block + LabelSep xx + LabelType Static LabelString "Keywords:" LabelFont - Shape Italic + Color Green + Series Bold EndFont End @@ -104,13 +110,25 @@ Style "Plain Keywords" 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 -InsetLayout "Flex:pkg" +Style "Plain Author" + CopyStyle Keywords + LatexName Plainauthor + LabelString "Plain Author:" +End + +InsetLayout "Flex:Pkg" LyxType custom LabelString pkg LatexType command @@ -130,14 +148,13 @@ InsetLayout "Flex:pkg" Color latex Size Small EndFont - InToc true HTMLTag pkg ResetsFont true spellcheck false End -InsetLayout "Flex:proglang" - CopyStyle "Flex:pkg" +InsetLayout "Flex:Proglang" + CopyStyle "Flex:Pkg" LabelString proglang LatexName proglang Font @@ -151,8 +168,8 @@ InsetLayout "Flex:proglang" HTMLTag proglang End -InsetLayout "Flex:code" - CopyStyle "Flex:proglang" +InsetLayout "Flex:Code" + CopyStyle "Flex:Proglang" Spellcheck 0 LabelString code LatexName code @@ -166,69 +183,61 @@ InsetLayout "Flex:E-mail" HTMLTag email End -Style "Code Chunk" - Category MainText +InsetLayout "Flex:Code Chunk" + CopyStyle "Flex:Pkg" LatexType Environment LatexName CodeChunk + Decoration Classic Spellcheck 0 - NextNoIndent 1 ParbreakIsNewline 1 FreeSpacing 1 PassThru 1 KeepEmpty 1 - NewLine 0 - TopSep 0.7 - BottomSep 0.7 - Align Block - AlignPossible Block - Labeltype Above LabelString "Code Chunk" Font Family Typewriter EndFont LabelFont - Series Bold Color Green EndFont - HTMLTag

-	HTMLItem			p
 End
 
-Style "Standard Code"
-	CopyStyle			"Code Chunk"
+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				pre
+	HTMLItem			p
 End
 
 Style "Code Input"
-	CopyStyle			"Standard Code"
+	CopyStyle			"Code"
 	LatexName			CodeInput
 	LabelString			"Code Input"
 End
 
 Style "Code Output"
-	CopyStyle			"Standard Code"
+	CopyStyle			"Code"
 	LatexName			CodeOutput
 	LabelString			"Code Output"
 End
-
-Style Appendix
-	LatexType			Environment
-	LatexName			appendix
-	Category			BackMatter
-	TopSep				0.6
-	BottomSep			0.6
-	Margin				First_Dynamic
-	Align				Block
-	NextNoIndent		1
-	LabelType			Above
-	LabelString			"Appendix"
-	LabelSep			M
-	LabelFont
-	  Series			Bold
-	  Shape				Up
-	  Size				large
-	EndFont
-End