]> git.lyx.org Git - lyx.git/blobdiff - lib/layouts/svcommon.inc
Revert "Update layouts"
[lyx.git] / lib / layouts / svcommon.inc
index 5f45ba4e22b5c64ae097f36fc2ed3a28403c9ea9..72941773762122804a79e84e14c2c8bf6dc5ca0e 100644 (file)
@@ -5,7 +5,7 @@
 #     Taken from initial LyX source code
 #     Author : Matthias Ettrich <ettrich@informatik.uni-tuebingen.de>
 #     Transposed by Pascal André <andre@via.ecp.fr>
-#     Heavily modified and enhanced by serveral developers.
+#     Heavily modified and enhanced by several developers.
 #     --------
 #     ejour2 made originally by Martin Vermeer based on article.layout.
 #     Modified for LyX 1.2 by Jean-Marc Lasgouttes and MV.
 #     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 104
 PageStyle              Plain
 
 
 Style Standard
+       Category        MainText
        Margin          Static
        LatexType       Paragraph
        LatexName       dummy
@@ -32,6 +33,7 @@ Style Standard
        Align           Block
        AlignPossible   Block, Left, Right, Center
        LabelType       No_Label
+       DocBookTag             para
 End
 
 Input stdcounters.inc
@@ -49,8 +51,6 @@ Input theorems-without-preamble.inc
 NoStyle Fact
 NoStyle Prop
 
-
-NoStyle Subparagraph
 NoCounter subparagraph
 NoStyle Subparagraph*
 
@@ -62,6 +62,9 @@ Style Title
          Family        Sans
          Series        Bold
        EndFont
+       DocBookTag            title
+       DocBookTagType        paragraph
+       DocBookInInfo         maybe
 End
 
 
@@ -71,7 +74,7 @@ Style Front_Matter
        LatexType       Command
        LatexName       frontmatter
        KeepEmpty       1
-       OptionalArgs    0
+       ResetArgs       1
        Margin          First_Dynamic
        NextNoIndent    1
        ParSkip         0
@@ -88,7 +91,7 @@ Style Front_Matter
          Family        Sans
          Series        Bold
          Size          Largest
-         Color         Blue
+         Color         textlabel1
        EndFont
 End
 
@@ -107,18 +110,23 @@ Style Back_Matter
 End
 
 Style Part
-      Margin           Static
-      Align            Right
+       Margin          Static
+       Align           Right
+       DocBookTag            title
+       DocBookTagType        paragraph
+       DocBookSectionTag     part
+       DocBookInInfo         maybe
+       DocBookForceAbstractTag partintro
 End
 
 ## The following is a variant of style Part.  It allows to place some
 ## text on the following page which would otherwise be blank.  
 
 Style PartBacktext
-       Category        Section
+       Category        Sectioning
        Margin          First_Dynamic
        LabelString     "Part \thepart"
-       LabelType       Counter
+       LabelType       Static
        TocLevel        0
        LabelCounter    part
        Labelsep        xx
@@ -131,62 +139,82 @@ 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"
+         IsTocCaption  1
+         DocBookTag    title
+       EndArgument
        Preamble
          \newenvironment{svmultpartbacktext}[1]{\begin{partbacktext}
          \part{#1}}{\end{partbacktext}}
        EndPreamble
        HTMLTag         h1
+       DocBookTag            NONE
+       DocBookSection        true
+       DocBookSectionTag     part
+       # A second paragraph of PartBacktext can only wreak havok: it should start a section, and nothing else (otherwise, it's a real nightmare to implement). This ought to be enough for now, even though the document cannot be valid.
 End
 
 Style Chapter
        Align           Left
+       DocBookTag            title
+       DocBookTagType        paragraph
+       DocBookInInfo         maybe
+       DocBookSectionTag     chapter
+       TocLevel 0
 End
 
 Style ChapSubtitle
-      LatexName                chapsubtitle
-      LatexType                Command
-      Category         Section
+       LatexName       chapsubtitle
+       LatexType       Command
+       Category        Sectioning
        TopSep          0.7
        Font
          Series        Bold
          Shape         Up
          Size          large
        EndFont
+       DocBookTag            subtitle
 
 End
 
 Style ChapAuthor
-      LatexName                chapauthor
-      LatexType                Command
-      Category         Section
-      TopSep           0.7
-      Font
+       LatexName       chapauthor
+       LatexType       Command
+       Category        Sectioning
+       TopSep          0.7
+       Font
          Series        Bold
          Shape         Up
          Size          normal
-      EndFont
+       EndFont
+       DocBookTag            personname
+       DocBookTagType        paragraph
+       DocBookWrapperTag     author
+       DocBookInInfo         always
 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        Sectioning
+       TopSep          0.7
+       BottomSep       0.7
+       Align           Left
+       LeftMargin      MMMMMMMMMMMM
+       Font
          Series        Medium
          Shape         Italic
          Size          normal
-      EndFont
+       EndFont
 End
 
 Style Section
@@ -227,6 +255,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
@@ -323,6 +363,9 @@ Style Subtitle
        Font
          Size          Large
        EndFont
+       DocBookTag            subtitle
+       DocBookTagType        paragraph
+       DocBookInInfo         maybe
 End
 
 Style Author
@@ -332,6 +375,11 @@ Style Author
          Series        Bold
          Shape         Italic
        EndFont
+       DocBookTag            personname
+       DocBookTagType        paragraph
+       DocBookWrapperTag     author
+       DocBookWrapperTagType inline
+       DocBookInInfo         always
 End
 
 Style Institute
@@ -339,16 +387,21 @@ 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         textlabel1
        EndFont
        Requires        url
        Align           Left
+       # TODO: should rather be merged with the list of authors, but this would require a lot of specific code...
+       DocBookTag            personname
+       DocBookTagType        paragraph
+       DocBookWrapperTag     author
+       DocBookInInfo         always
 End
 
 Style Date
@@ -364,42 +417,65 @@ 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
+         Color         textlabel1
        EndFont  
 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:"
+       DocBookTag            titleabbrev
+       DocBookTagType        paragraph
+       DocBookInInfo         maybe
 End
 
 Style Running_Author
        CopyStyle       Running_Title
        LatexName       authorrunning
-       LabelString     "Running Author:"
+       LabelString     "Running author:"
+       DocBookTag            personname
+       DocBookTagType        paragraph
+       DocBookWrapperTag     author
+       DocBookWrapperAttr    role='abbrev'
+       DocBookWrapperTagType block
+       DocBookInInfo         always
 End
-Style Author_Running
-      ObsoletedBy      Running_Author
+
+Style Running_Chapter
+       CopyStyle       Running_Title
+       Category        Sectioning
+       InTitle         0
+       LatexName       chaptermark
+       LabelString     "Running chapter:"
+       DocBookTag            titleabbrev
+       DocBookTagType        paragraph
+       DocBookInInfo         maybe
+       DocBookSection        false
+End
+
+Style Running_Section
+       CopyStyle       Running_Chapter
+       LatexName       sectionmark
+       LabelString     "Running section:"
+       DocBookTag            titleabbrev
+       DocBookTagType        paragraph
+       DocBookInInfo         maybe
 End
 
 Style Abstract
@@ -421,6 +497,11 @@ Style Abstract
        ParSep          0
        Align           Block
        AlignPossible   Block, Left
+       DocBookAbstract       true
+       DocBookInInfo         always
+       DocBookWrapperTag     abstract
+       DocBookWrapperMergeWithPrevious    true
+       DocBookTag            para
 End
 
 Style Abstract*
@@ -429,17 +510,24 @@ Style Abstract*
        LatexName       abstract*
        LabelString     "Abstract* (not printed)"
        LabelFont
-         Color         Blue
+         Color         textlabel1
        EndFont
        TextFont        
-         Color         Blue
+         Color         textlabel1
        EndFont
+       DocBookAbstract       true
+       DocBookInInfo         always
+       DocBookWrapperTag     abstract
+       DocBookWrapperAttr    role='not-printed'
+       DocBookWrapperMergeWithPrevious    true
+       DocBookTag            para
 End
 
 Style Keywords
        Margin          First_Dynamic
        LatexType       Command
        LatexName       keywords
+       Category        FrontMatter
        NextNoIndent    0
        ParIndent       MM
        LabelSep        xx
@@ -454,6 +542,10 @@ Style Keywords
        LabelFont
          Series        Bold
        EndFont
+       DocBookTag          keyword
+       DocBookTagType      paragraph
+       DocBookWrapperTag   keywordset
+       DocBookInInfo       always
 End
 
 Style Dedication
@@ -474,15 +566,21 @@ Style Dedication
          Shape         Italic
          Size          large
        EndFont
+       DocBookTag             para
+       DocBookTagType         paragraph
+       DocBookWrapperTag      dedication
+       DocBookWrapperTagType  block
+       DocBookWrapperMergeWithPrevious    true
+       DocBookInInfo          never
 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
@@ -492,20 +590,24 @@ 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
        EndFont
-       HTMLTag         h1
+       DocBookTag             title
+       DocBookTagType         paragraph
+       DocBookSection         true
+       DocBookSectionTag      preface
 End
 
 Style Preface
        CopyStyle       Foreword
-       Category        "For Authors"
+       Category        FrontMatter
        LatexName       preface
-       KeepEmpty       1
-       OptionalArgs    0
        InTitle         0
        Margin          First_Dynamic
        TopSep          4
@@ -514,9 +616,13 @@ Style Preface
        LabelString     "Preface"
        LabelSep        xx
        Align           Left
+       DocBookTag             title
+       DocBookTagType         paragraph
+       DocBookSection         true
+       DocBookSectionTag      preface
 End
 
-Style Acknowledgement
+Style Acknowledgment
        Category        BackMatter
        Margin          First_Dynamic
        LatexType       Environment
@@ -531,7 +637,7 @@ Style Acknowledgement
        Align           Block
        AlignPossible   Block, Left
        LabelType       Static
-       LabelString     "Acknowledgements"
+       LabelString     "Acknowledgments"
        Font
          Size          Small
        EndFont
@@ -540,10 +646,12 @@ Style Acknowledgement
          Shape         Up
          Size          Small
        EndFont
+       DocBookTag  para
+       DocBookWrapperTag  acknowledgements
 End
 
-Style Acknowledgements
-       CopyStyle       Acknowledgement
+Style Acknowledgments
+       CopyStyle       Acknowledgment
        LatexName       acknowledgements
 End
 
@@ -553,6 +661,7 @@ Style Bibliography
        LatexName       thebibliography
        Category        BackMatter
        NextNoIndent    1
+       ToggleIndent    Never
        LeftMargin      MM
        ParSkip         0.4
        ItemSep         0
@@ -567,13 +676,34 @@ Style Bibliography
        LabelFont
          Series        Bold
        EndFont
+       TocLevel        0
+       IsTocCaption    0
+       Argument listpreamble:1
+         LabelString    "Bib preamble"
+         MenuString     "Bibliography Preamble"
+         Tooltip        "LaTeX code to be inserted before the first bibliography item"
+         PassThru       1
+         Font
+           Family typewriter
+           Color latex
+         EndFont
+       EndArgument
 End
 
 Style Description
-       OptionalArgs    1
+       Argument 1
+         LabelString   "Longest Description Label"
+         Tooltip       "Longest description label"
+       EndArgument
        LabelFont
          Series        Medium
        EndFont
+       DocBookTag            variablelist
+       DocBookItemWrapperTag varlistentry
+       DocBookItemTag        listitem
+       DocBookItemInnerTag   para
+       DocBookItemLabelTag   term
+       DocBookItemLabelTagType   paragraph
 End
 
 Style Petit
@@ -607,13 +737,24 @@ Style Svgraybox
 End
 
 Style Proof
+       Category        Reasoning
+       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)}
+         \providecommand{\proofname}{_(Proof)}
        EndLangPreamble
        BabelPreamble
-               \addto\captions$$lang{\renewcommand{\proofname}{_(Proof)}}
+         \addto\captions$$lang{\renewcommand{\proofname}{_(Proof)}}
        EndBabelPreamble
 End
 
@@ -622,21 +763,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
@@ -655,24 +796,6 @@ InsetLayout Flex:Email
          Color         urltext
          Size          Small
        EndFont
+       ResetsFont true
 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