]> git.lyx.org Git - lyx.git/commitdiff
Replace styles '(Begin|End)Frontmatter' with environment in elsarticle
authorKornel Benko <kornel@lyx.org>
Sat, 28 Jul 2018 12:30:25 +0000 (14:30 +0200)
committerKornel Benko <kornel@lyx.org>
Sat, 28 Jul 2018 12:30:25 +0000 (14:30 +0200)
No change in tex or pdf output.
This does not help in compiling, but still feels more natural.

lib/layouts/elsarticle.layout
lib/templates/elsarticle.lyx

index 0adadf190f0f2b3d2a22a9e7ab1cdd60603e6335..d2cef149339ceab7bcc0e8345ebcda37852efca9 100644 (file)
@@ -53,32 +53,22 @@ NoStyle                             Chapter
 NoCounter                      chapter
 NoStyle                                Chapter*
 
-
-Style BeginFrontmatter
-       Margin                  Dynamic
-       LatexType               Command
-       LatexName               begin{frontmatter}
-       Category                FrontMatter
-       KeepEmpty               1
-       ParSkip                 0.4
-       Align                   Block
-       LabelSep                xx
-       LabelType               Static
-       LabelString             "Begin frontmatter"
+InsetLayout "Flex:Frontmatter"
+       LyXType                 custom
+       LabelString             "Frontmatter"
+       LatexType               Environment
+       LatexName               frontmatter
+       Display                 true
+       Decoration              Classic
+       KeepEmpty               true
+       MultiPar                true
+       ResetsFont              true
        LabelFont
          Series                Bold
          Color                 Green
        EndFont
 End
 
-
-Style EndFrontmatter
-       CopyStyle               BeginFrontmatter
-       LatexName               end{frontmatter}
-       LabelString             "End frontmatter"
-End
-
-
 Style Title
        Margin                  Static
        LatexType               Command
@@ -99,7 +89,6 @@ Style Title
        HTMLTitle               true
 End
 
-
 InsetLayout "Flex:Titlenotemark"
        LyxType                 custom
        LatexType               command
index 9887cfdcc1a863c19d1ef7c71914da6f3a20b50d..1b8346e220392a9a2a4490b37d0c2100166d2371 100644 (file)
@@ -1,5 +1,5 @@
-#LyX 2.3 created this file. For more info see http://www.lyx.org/
-\lyxformat 544
+#LyX 2.4 created this file. For more info see https://www.lyx.org/
+\lyxformat 556
 \begin_document
 \begin_header
 \save_transient_properties true
@@ -20,7 +20,7 @@ theorems-std
 \language english
 \language_package default
 \inputencoding auto
-\fontencoding global
+\fontencoding auto
 \font_roman "default" "default"
 \font_sans "default" "default"
 \font_typewriter "default" "default"
@@ -38,6 +38,8 @@ theorems-std
 \output_sync 0
 \bibtex_command bibtex
 \index_command default
+\float_placement class
+\float_alignment class
 \paperfontsize default
 \spacing single
 \use_hyperref false
@@ -140,19 +142,10 @@ http://www.ctan.org/get/macros/latex/contrib/elsarticle/elsdoc.pdf
 
 \end_layout
 
-\begin_layout BeginFrontmatter
-\begin_inset Note Note
+\begin_layout Standard
+\begin_inset Flex Frontmatter
 status open
 
-\begin_layout Plain Layout
-Keep this empty!
-\end_layout
-
-\end_inset
-
-
-\end_layout
-
 \begin_layout Title
 This is a specimen title
 \begin_inset Flex Titlenotemark
@@ -689,14 +682,6 @@ MSC
 
 \end_layout
 
-\begin_layout EndFrontmatter
-\begin_inset Note Note
-status open
-
-\begin_layout Plain Layout
-Keep this empty!
-\end_layout
-
 \end_inset