]> git.lyx.org Git - lyx.git/blobdiff - lib/layouts/ijmpc.layout
Fix bug #11410.
[lyx.git] / lib / layouts / ijmpc.layout
index d4e6c3965702c1adf136860ad0ab6e985e55a224..7b2ebd3174f4256fb061ba02440e452885a30b95 100644 (file)
@@ -1,5 +1,6 @@
 #% Do not delete the line below; configure depends on this
-#  \DeclareLaTeXClass[ws-ijmpc,amsmath.sty,amssymb.sty,rotating.sty]{article (IJMPC)}
+#  \DeclareLaTeXClass[ws-ijmpc,amsmath.sty,amssymb.sty,rotating.sty]{Int. Journal of Modern Physics C}
+#  \DeclareCategory{Articles}
 #
 # Textclass definition file for ws-ijmpc.cls
 # For publications in the International Journal of Modern Physics C
@@ -11,7 +12,7 @@
 # Author: Uwe Stöhr (uwestoehr@web.de)
 
 
-Format 35
+Format 97
 
 Sides          1
 Columns                1
@@ -20,6 +21,7 @@ TocDepth      3
 DefaultStyle   Standard
 
 Style Standard
+  Category      MainText
   Margin       Static
   LatexType    Paragraph
   LatexName    dummy
@@ -28,6 +30,7 @@ Style Standard
   Align                Block
   AlignPossible        Block, Left, Right, Center
   LabelType    No_Label
+  DocBookTag para
 End
 
 Input stdcounters.inc
@@ -39,6 +42,18 @@ Input stdlayouts.inc
 Input lyxmacros.inc
 
 ProvidesModule theorems-std
+Input theorems-without-preamble.inc
+NoStyle Fact
+NoStyle Note
+NoStyle Problem
+NoStyle Solution
+NoStyle Prob
+NoStyle Sol
+NoStyle Exercise
+NoStyle Example
+NoStyle Definition
+NoStyle Case
+NoStyle Property
 
 NoStyle Chapter
 NoCounter chapter
@@ -54,6 +69,12 @@ Style MarkBoth
   Category     FrontMatter
   InTitle      1
   Align                Center
+  Argument 1
+    Mandatory  1
+    AutoInsert 1
+    LabelString        "Author Names"
+    Tooltip    "Author names that will appear in the header line"
+  EndArgument
   Font
     Size       Small
   EndFont
@@ -63,6 +84,9 @@ Style MarkBoth
   \DeclareRobustCommand{\foreign@language}[1]{%
     \lowercase{\oldforeign@language{#1}}}
   EndPreamble
+  DocBookTag    IGNORE
+  # TODO: a mix of titleabbrev and authorinitials... 
+  DocBookInInfo always
 End
 
 Style Catchline
@@ -80,8 +104,10 @@ Style Catchline
   LabelString  "Catchline"
   LabelFont
     Series     Bold
-    Color      Green
+    Color      textlabel2
   EndFont
+  DocBookTag    IGNORE
+  DocBookInInfo always
 End
 
 Style Title
@@ -90,7 +116,7 @@ Style Title
   LatexName    title
   Category     FrontMatter
   InTitle      1
-  OptionalArgs 0
+  ResetArgs     1
   ParSkip      0.4
   ItemSep      0
   TopSep       0
@@ -101,6 +127,9 @@ Style Title
   Font
     Size       Largest
   EndFont
+  DocBookTag      title
+  DocBookTagType  paragraph
+  DocBookInInfo   maybe
 End
 
 Style Author
@@ -108,7 +137,6 @@ Style Author
   LatexType    Command
   Category     FrontMatter
   InTitle      1
-  OptionalArgs 1
   LatexName    author
   LabelSep     xxx
   ParSkip      0.4
@@ -120,6 +148,11 @@ Style Author
   Font
     Size       Large
   EndFont
+  DocBookTag            personname
+  DocBookTagType        paragraph
+  DocBookWrapperTag     author
+  DocBookWrapperTagType inline
+  DocBookInInfo         always
 End
 
 Style Address
@@ -135,6 +168,12 @@ Style Address
    Shape       Italic
    Size        Normal
   EndFont
+  DocBookTag            address
+  DocBookTagType        paragraph
+  DocBookWrapperTag     author
+  DocBookWrapperTagType inline
+  DocBookWrapperMergeWithPrevious true
+  DocBookInInfo         always
 End
 
 Style History
@@ -149,6 +188,8 @@ Style History
   Font
     Size       Small
   EndFont
+  DocBookTag     releaseinfo
+  DocBookInInfo  always
 End
 
 InsetLayout Flex:Received
@@ -163,9 +204,14 @@ InsetLayout Flex:Received
     Misc       No_Bar
   EndFont
   LabelFont
-    Color      green
+    Color      textlabel2
     Size       Small
   EndFont
+  ResetsFont true
+  DocBookTag      date
+  DocBookAttr     role='received'
+  DocBookTagType  inline
+  DocBookNoFontInside   true
 End
 
 InsetLayout Flex:Revised
@@ -180,9 +226,14 @@ InsetLayout Flex:Revised
     Misc       No_Bar
   EndFont
   LabelFont
-    Color      green
+    Color      textlabel2
     Size       Small
   EndFont
+  ResetsFont true
+  DocBookTag      date
+  DocBookAttr     role='revised'
+  DocBookTagType  inline
+  DocBookNoFontInside   true
 End
 
 Style Abstract
@@ -196,6 +247,11 @@ Style Abstract
   Font
     Size       Small
   EndFont
+  DocBookAbstract       true
+  DocBookInInfo         always
+  DocBookWrapperTag     abstract
+  DocBookWrapperMergeWithPrevious    true
+  DocBookTag            para
 End
 
 InsetLayout Flex:Keywords
@@ -210,9 +266,14 @@ InsetLayout Flex:Keywords
     Misc       No_Bar
   EndFont
   LabelFont
-    Color      green
+    Color      textlabel2
     Size       Small
   EndFont
+  ResetsFont true
+  DocBookTag         keyword
+  DocBookTagType     paragraph
+  DocBookWrapperTag  keywordset
+  DocBookInInfo      always
 End
 
 Style Classification_Codes
@@ -234,9 +295,12 @@ InsetLayout Flex:TableCaption
     Misc       No_Bar
   EndFont
   LabelFont
-    Color      green
+    Color      textlabel2
     Size       Small
   EndFont
+  ResetsFont true
+  DocBookTag      caption
+  DocBookTagType  paragraph
 End
 
 InsetLayout Flex:Refcite
@@ -251,9 +315,10 @@ InsetLayout Flex:Refcite
     Misc       No_Bar
   EndFont
   LabelFont
-    Color      green
+    Color      textlabel2
     Size       Small
   EndFont
+  ResetsFont true
 End
 
 Style ItemList
@@ -261,7 +326,18 @@ Style ItemList
   Margin       Static
   LatexType    Item_Environment
   LatexName    itemlist
+  Argument listpreamble:1
+    LabelString    "List preamble"
+    MenuString     "List Preamble"
+    Tooltip        "LaTeX code to be inserted before the first item"
+    PassThru       1
+    Font
+      Family typewriter
+      Color latex
+    EndFont
+  EndArgument
   NextNoIndent 1
+  ToggleIndent Never
   LeftMargin   MMN
   LabelSep     xx
   ItemSep      0.2
@@ -271,10 +347,12 @@ Style ItemList
   Align                Block
   AlignPossible        Block, Left
   LabelType    Itemize
-  LabelString  "*"
   HTMLTag      ul
   HTMLItem     li
   HTMLLabel    NONE
+  DocBookTag            itemizedlist
+  DocBookItemTag        listitem
+  DocBookItemInnerTag   para
 End
 
 Style RomanList
@@ -282,7 +360,21 @@ Style RomanList
   Margin       Static
   LatexType    Item_Environment
   LatexName    romanlist
-  OptionalArgs 1
+  Argument 1
+    LabelString        "Numbering Scheme"
+    Tooltip    "Use the largest item number in your list, e.g. '(iv)' for 4 Roman numbered items"
+    PassThru   1
+  EndArgument
+  Argument listpreamble:1
+    LabelString    "List preamble"
+    MenuString     "List Preamble"
+    Tooltip        "LaTeX code to be inserted before the first item"
+    PassThru       1
+    Font
+      Family typewriter
+      Color latex
+    EndFont
+  EndArgument
   NextNoIndent 1
   LeftMargin   MMN
   LabelSep     xx
@@ -295,117 +387,117 @@ Style RomanList
   AlignPossible        Block, Left
   LabelType    Enumerate
   LabelCounter "enum"
+  HTMLClass     LyXRomanList
   HTMLTag      ol
   HTMLItem     li
   HTMLLabel    NONE
   RefPrefix    enu
-End
-
-Counter                theorem
-End
-Style Theorem
-  LatexType    Environment
-  LatexName    theorem
-  Category     Theorem
-  Margin       First_Dynamic
-  TopSep       0.6
-  BottomSep    0.6
-  Align                Block
-  NextNoIndent 1
-  LabelType    Counter
-  LabelCounter theorem
-  LabelString  "Theorem \thetheorem."
-  LabelSep     M
-  Font
-   Shape       Italic
-  EndFont
-  LabelFont
-   Series      Bold
-   Shape       Up
-  EndFont
+  DocBookTag            orderedlist
+  DocBookItemTag        listitem
+  DocBookItemInnerTag   para
+  HTMLStyle
+    ol.LyXRomanList { list-style-type: lower-roman; }
+  EndHTMLStyle
 End
 
 Style Proof
   LatexType    Environment
   LatexName    proof
-  Category     Theorem
+  Category     Reasoning
   Margin       First_Dynamic
   TopSep       0.6
   BottomSep    0.6
   Align        Block
   LabelType    Static
-  LabelString  "Proof."
+  LabelString  "Proof:"
   LabelSep     M
   LabelFont
    Series      Bold
   EndFont
+  LabelFont
+   Series      Bold
+  EndFont
   EndLabelType Box
+  DocBookTag            para
+  DocBookAttr           role='proof'
 End
 
-Counter corollary
+Style Theorem
+  ResetArgs      1
+  LabelString  "Theorem \thetheorem."
+  #Font
+   #Shape      Up
+  #EndFont
+  #LabelFont
+   #Series     Bold
+  #EndFont
+  DocBookTag            para
+  DocBookAttr           role='theorem'
+End
+
+Style Remark
+  LabelString  "Remark \theremark."
+  LabelFont
+   Series      Bold
+   Shape       Up
+  EndFont
 End
+
 Style Corollary
-  CopyStyle    Theorem
-  LatexName    corollary
-  LabelCounter corollary
   LabelString  "Corollary \thecorollary."
 End
 
-Counter lemma
-End
 Style Lemma
-  CopyStyle    Theorem
-  LatexName    lemma
-  LabelCounter lemma
   LabelString  "Lemma \thelemma."
 End
 
-Counter proposition
-End
 Style Proposition
-  CopyStyle    Theorem
-  LatexName    proposition
-  LabelCounter proposition
   LabelString  "Proposition \theproposition."
 End
 
-Counter prop
-End
-Style Prop
-  CopyStyle    Theorem
-  LatexName    prop
-  LabelCounter prop
-  LabelString  "Prop \theprop."
-End
-
-Counter question
-End
 Style Question
-  CopyStyle    Theorem
-  LatexName    question
-  LabelCounter question
   LabelString  "Question \thequestion."
+  LabelFont
+   Series      Bold
+   Shape       Up
+  EndFont
 End
 
 Counter claim
+       GuiName Claim
+  Within       section
 End
 Style Claim
-  CopyStyle    Theorem
-  LatexName    claim
   LabelCounter claim
   LabelString  "Claim \theclaim."
+  Font
+   Shape       Italic
+  EndFont
+  LabelFont
+   Series      Bold
+   Shape       Up
+  EndFont
 End
 
-Counter conjecture
-End
 Style Conjecture
-  CopyStyle    Theorem
-  LatexName    conjecture
-  LabelCounter conjecture
   LabelString  "Conjecture \theconjecture."
+  Font
+   Shape       Italic
+  EndFont
+  LabelFont
+   Series      Bold
+   Shape       Up
+  EndFont
+End
+
+Style Prop
+  LabelFont
+   Series      Bold
+  EndFont
 End
 
 Counter appendix
+       GuiName Appendix
 End
 Style Appendix
   LatexType    Command
@@ -416,7 +508,7 @@ Style Appendix
   Margin       First_Dynamic
   Align        Block
   NextNoIndent 1
-  LabelType    Counter
+  LabelType    Static
   LabelCounter appendix
   LabelString  "Appendix \Alph{appendix}."
   LabelSep     M
@@ -428,6 +520,9 @@ Style Appendix
   Font
    Series      Bold
   EndFont
+  DocBookTag      title
+  DocBookTagType  paragraph
+  DocBookSection  true
 End
 
 Style Bibliography
@@ -436,6 +531,7 @@ Style Bibliography
   LatexName    thebibliography
   Category     BackMatter
   NextNoIndent 1
+  ToggleIndent Never
   LeftMargin   MM
   ParSkip      0.4
   ItemSep      0
@@ -451,4 +547,16 @@ Style Bibliography
     Series     Bold
     Size       Larger
   EndFont
+  TocLevel      1
+  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