Replace styles '(Begin|End)Frontmatter' with environment in elsarticle

No change in tex or pdf output.
This does not help in compiling, but still feels more natural.
This commit is contained in:
Kornel Benko 2018-07-28 14:30:25 +02:00
parent a8b0e64094
commit 3e92efd118
2 changed files with 17 additions and 43 deletions

View 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

View 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