]> git.lyx.org Git - lyx.git/blobdiff - lib/layouts/svcommon.inc
update argument labels for Springer classes
[lyx.git] / lib / layouts / svcommon.inc
index 3bafb9a20632546f6da6a09e53d251ee08ee210c..30f465035d8dcc3c6c8081c9cfa0877484c42824 100644 (file)
 #     Adapted for new svjour LaTeX2e classes published by Springer in 1999;
 #     work done by MV in 2000.
 #
-# Adapted for svmono, svmult,     2009/2007
-# by Marcus Kriele (mkriele@mac.com)
+# Adapted for svmono, svmult, and svjour3 2011
+# by Marcus Kriele (mkriele@mac.com) and Uwe Stöhr
 # see http://www.springer.com/authors for class files and further instructions
 
 
-Format 35
+Format 41
 PageStyle              Plain
 
 
@@ -49,8 +49,6 @@ Input theorems-without-preamble.inc
 NoStyle Fact
 NoStyle Prop
 
-
-NoStyle Subparagraph
 NoCounter subparagraph
 NoStyle Subparagraph*
 
@@ -71,7 +69,7 @@ Style Front_Matter
        LatexType       Command
        LatexName       frontmatter
        KeepEmpty       1
-       OptionalArgs    0
+       ResetArgs       1
        Margin          First_Dynamic
        NextNoIndent    1
        ParSkip         0
@@ -107,8 +105,8 @@ Style Back_Matter
 End
 
 Style Part
-      Margin           Static
-      Align            Right
+       Margin          Static
+       Align           Right
 End
 
 ## The following is a variant of style Part.  It allows to place some
@@ -131,13 +129,17 @@ Style PartBacktext
        LabelFont
          Series        Bold
          Size          Huge
-       EndLabelFont
+       EndFont
        TextFont
          Series        Medium
          Shape         Up
          Size          normal
-       EndTextFont
-       RequiredArgs    1
+       EndFont
+       Argument 1
+         Mandatory     1
+         LabelString   "Part Title"
+         Tooltip       "Title of this part"
+       EndArgument
        Preamble
          \newenvironment{svmultpartbacktext}[1]{\begin{partbacktext}
          \part{#1}}{\end{partbacktext}}
@@ -150,9 +152,9 @@ Style Chapter
 End
 
 Style ChapSubtitle
-      LatexName                chapsubtitle
-      LatexType                Command
-      Category         Section
+       LatexName       chapsubtitle
+       LatexType       Command
+       Category        Section
        TopSep          0.7
        Font
          Series        Bold
@@ -163,30 +165,30 @@ Style ChapSubtitle
 End
 
 Style ChapAuthor
-      LatexName                chapauthor
-      LatexType                Command
-      Category         Section
-      TopSep           0.7
-      Font
+       LatexName       chapauthor
+       LatexType       Command
+       Category        Section
+       TopSep          0.7
+       Font
          Series        Bold
          Shape         Up
          Size          normal
-      EndFont
+       EndFont
 End
 
 Style ChapMotto
-      LatexName                motto
-      LatexType                Command
-      Category         Section
-      TopSep           0.7
-      BottomSep                0.7
-      Align            Left
-      LeftMargin       MMMMMMMMMMMM
-      Font
+       LatexName       motto
+       LatexType       Command
+       Category        Section
+       TopSep          0.7
+       BottomSep       0.7
+       Align           Left
+       LeftMargin      MMMMMMMMMMMM
+       Font
          Series        Medium
          Shape         Italic
          Size          normal
-      EndFont
+       EndFont
 End
 
 Style Section
@@ -227,6 +229,18 @@ Style Paragraph
        TocLevel        4
 End
 
+Style Subparagraph
+       LeftMargin      ""
+       Font
+         Series        Medium
+         Shape         Italic
+         Size          Normal
+       EndFont
+       TopSep          0.7
+       BottomSep       0.4
+       TocLevel        4
+End
+
 Style Part*
       Margin           Static
       Align            Right
@@ -339,13 +353,13 @@ Style Institute
        LatexType       Command
        InTitle         1
        LatexName       institute
-       Margin          Static
-       LeftMargin      "Author data:xxx"
-       LabelSep        xxx
+       Margin          First_Dynamic
+       LabelSep        x
        LabelType       Static
-       LabelString     "Author data: "
+       LabelString     "Author data:"
        LabelFont
-         Shape         Italic
+         Family        Typewriter
+         Color         Blue
        EndFont
        Requires        url
        Align           Left
@@ -364,12 +378,12 @@ Style TOC_Title
        Align           Left
        LatexType       Command
        LatexName       toctitle
-       LeftMargin      xxx
+       LeftMargin      xx
        TopSep          0.4
        BottomSep       0.4
        LabelType       Static
        LabelSep        x
-       LabelString     "TOC Title:"
+       LabelString     "TOC title:"
        LabelFont
          Family        Typewriter
          Color         Blue
@@ -379,27 +393,34 @@ End
 Style TOC_Author
        CopyStyle       TOC_Title
        LatexName       tocauthor
-       LabelString     "TOC Author:"
+       LabelString     "TOC author:"
 End
 
 Style Running_Title
-       CopyStyle       TOC_Title
+       CopyStyle       TOC_Title
        LatexName       titlerunning
        InTitle         1
-       LabelString     "Running Title:"
-End
-
-Style Running_LaTeX_Title
-      ObsoletedBy      Running_Title
+       LabelString     "Running title:"
 End
 
 Style Running_Author
        CopyStyle       Running_Title
        LatexName       authorrunning
-       LabelString     "Running Author:"
+       LabelString     "Running author:"
+End
+
+Style Running_Chapter
+       CopyStyle       Running_Title
+       Category        Section
+       InTitle         0
+       LatexName       chaptermark
+       LabelString     "Running chapter:"
 End
-Style Author_Running
-      ObsoletedBy      Running_Author
+
+Style Running_Section
+       CopyStyle       Running_Chapter
+       LatexName       sectionmark
+       LabelString     "Running section:"
 End
 
 Style Abstract
@@ -408,7 +429,7 @@ Style Abstract
        LatexType       Environment
        LatexName       abstract
        LabelType       Static
-       LabelString     "Abstract."
+       LabelString     "Abstract"
        LabelFont
          Series        Bold
        EndFont
@@ -424,21 +445,23 @@ Style Abstract
 End
 
 Style Abstract*
-      CopyStyle                Abstract
+       CopyStyle       Abstract
+       LatexType       Command
        LatexName       abstract*
-       LabelString     "Abstract* (not printed)."
-       LabelFont
+       LabelString     "Abstract* (not printed)"
+       LabelFont
          Color         Blue
        EndFont
        TextFont        
-          Color                Blue
-         EndFont
+         Color         Blue
+       EndFont
 End
 
 Style Keywords
        Margin          First_Dynamic
        LatexType       Command
        LatexName       keywords
+       Category        FrontMatter
        NextNoIndent    0
        ParIndent       MM
        LabelSep        xx
@@ -478,10 +501,10 @@ End
 Style Foreword
        Margin          First_Dynamic
        Category        FrontMatter
-       LabelType       Static
-       LabelString     "Foreword"
+       LabelType       Static
+       LabelString     "Foreword"
        KeepEmpty       1
-       LatexName       foreword
+       LatexName       foreword
        TocLevel        0
        LatexType       Command
        NeedProtect     1
@@ -491,7 +514,10 @@ Style Foreword
        BottomSep       0.8
        ParSep          0.8
        Align           Block
-       OptionalArgs    1
+       Argument 1
+         LabelString   "Alternative Name"
+         Tooltip       "Alternative name"
+       EndArgument
        Font
          Series        Bold
          Size          Huge
@@ -501,10 +527,8 @@ End
 
 Style Preface
        CopyStyle       Foreword
-       Category        "For Authors"
+       Category        FrontMatter
        LatexName       preface
-       KeepEmpty       1
-       OptionalArgs    0
        InTitle         0
        Margin          First_Dynamic
        TopSep          4
@@ -530,7 +554,7 @@ Style Acknowledgement
        Align           Block
        AlignPossible   Block, Left
        LabelType       Static
-       LabelString     "Acknowledgements."
+       LabelString     "Acknowledgements"
        Font
          Size          Small
        EndFont
@@ -542,8 +566,8 @@ Style Acknowledgement
 End
 
 Style Acknowledgements
-      CopyStyle                Acknowledgement
-      LatexName                acknowledgements
+       CopyStyle       Acknowledgement
+       LatexName       acknowledgements
 End
 
 Style Bibliography
@@ -569,7 +593,10 @@ Style Bibliography
 End
 
 Style Description
-       OptionalArgs    1
+       Argument 1
+         LabelString   "Longest Description Label"
+         Tooltip       "Longest description label"
+       EndArgument
        LabelFont
          Series        Medium
        EndFont
@@ -605,10 +632,56 @@ Style Svgraybox
        EndFont
 End
 
+# overwrite the label for the optional argument defined in
+# theorems-without-preamble.inc
+Style Theorem
+       Argument 1
+         LabelString   "Name/Title"
+         Tooltip       "Name/Title"
+       EndArgument
+End
+
+Style Definition
+       Argument 1
+         LabelString   "Name/Title"
+         Tooltip       "Name/Title"
+       EndArgument
+End
+
+Style Problem
+       Argument 1
+         LabelString   "Name/Title"
+         Tooltip       "Name/Title"
+       EndArgument
+End
+
+Style Solution
+       Argument 1
+         LabelString   "Name/Title"
+         Tooltip       "Name/Title"
+       EndArgument
+End
+
 Style Proof
-       CopyStyle       Claim
+       Category        Theorem
+       LatexType       Environment
        LatexName       proof
-       LabelString     "Proof"
+       Margin          First_Dynamic
+       LeftMargin      xxx
+       TopSep          0.4
+       BottomSep       0.4
+       LabelType       Static
+       LabelSep        xx
+       LabelString     "Proof."
+       LabelFont
+         Shape         Italic
+       EndFont
+       LangPreamble
+         \providecommand{\proofname}{_(Proof)}
+       EndLangPreamble
+       BabelPreamble
+         \addto\captions$$lang{\renewcommand{\proofname}{_(Proof)}}
+       EndBabelPreamble
 End
 
 Style Proof(QED)
@@ -616,21 +689,21 @@ Style Proof(QED)
        LatexName       svmultproof
        EndLabelType    Box
        Preamble
-               \newenvironment{svmultproof}{\begin{proof}}{\qed\end{proof}}
+         \newenvironment{svmultproof}{\begin{proof}}{\qed\end{proof}}
        EndPreamble
 End
 
 Style Proof(smartQED)
        CopyStyle       Proof
        LatexName       svmultproof2
-       EndLabelType    Filled_Box
+       EndLabelType    Box
        Preamble
          \newenvironment{svmultproof2}{\begin{proof}}{\smartqed\qed\end{proof}}
        EndPreamble
 End
 
 InsetLayout Flex:Email
-           Decoration  Conglomerate
+       Decoration      Conglomerate
        LyxType         custom
        LatexType       command
        LatexName       email
@@ -651,22 +724,3 @@ InsetLayout Flex:Email
        EndFont
 End
 
-InsetLayout    Flex:and
-       ContentAsLabel  1
-       CustomPars      0
-       Decoration      Classic
-       LatexName       and
-       LatexType       Command
-       LabelString     "and"
-       LyxType         Custom
-       KeepEmpty       1
-End
-
-# InsetLayout  Flex:and
-#        CopyStyle     Flex:Email
-#        LatexName     and
-#        LabelString   "and"
-#        Font  
-#        EndFont
-#        KeepEmpty     1
-# End