]> git.lyx.org Git - features.git/commitdiff
elsarticle.layout: force plain layout for some flex insets
authorUwe Stöhr <uwestoehr@lyx.org>
Sat, 9 Feb 2013 01:50:54 +0000 (02:50 +0100)
committerUwe Stöhr <uwestoehr@lyx.org>
Sat, 9 Feb 2013 01:50:54 +0000 (02:50 +0100)
- This prevents LaTeX errors because some commands don't allow to include commands.
- also simplified some code

lib/layouts/elsarticle.layout

index 812f210afce440c06f481cb5bf93fa156245d71a..45774d72d672c7d24d642b7127dd853554b6a94c 100644 (file)
@@ -103,6 +103,7 @@ End
 InsetLayout "Flex:Titlenotemark"
        LyxType         custom
        LatexType       command
+       ForcePlain      1
        LatexName       tnoteref
        LabelString     "Titlenote mark"
        Font
@@ -171,6 +172,7 @@ End
 InsetLayout "Flex:Authormark"
        LyxType         custom
        LatexType       command
+       ForcePlain      1
        LatexName       fnref
        LabelString     "Author mark"
        Font
@@ -202,23 +204,11 @@ End
 
 
 InsetLayout "Flex:CorAuthormark"
-       LyxType         custom
-       LatexType       command
+       CopyStyle       "Flex:Authormark"
        LatexName       corref
        LabelString     "CorAuthor mark"
-       Font
-         Color         foreground
-         Size          Small
-         Family        Roman
-         Shape         Up
-         Series        Medium
-         Misc          No_Emph
-         Misc          No_Noun
-         Misc          No_Bar
-       EndFont
        LabelFont
          Color         blue
-         Size          Small
        EndFont
 End