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 NoCounter chapter
NoStyle Chapter* NoStyle Chapter*
InsetLayout "Flex:Frontmatter"
Style BeginFrontmatter LyXType custom
Margin Dynamic LabelString "Frontmatter"
LatexType Command LatexType Environment
LatexName begin{frontmatter} LatexName frontmatter
Category FrontMatter Display true
KeepEmpty 1 Decoration Classic
ParSkip 0.4 KeepEmpty true
Align Block MultiPar true
LabelSep xx ResetsFont true
LabelType Static
LabelString "Begin frontmatter"
LabelFont LabelFont
Series Bold Series Bold
Color Green Color Green
EndFont EndFont
End End
Style EndFrontmatter
CopyStyle BeginFrontmatter
LatexName end{frontmatter}
LabelString "End frontmatter"
End
Style Title Style Title
Margin Static Margin Static
LatexType Command LatexType Command
@ -99,7 +89,6 @@ Style Title
HTMLTitle true HTMLTitle true
End End
InsetLayout "Flex:Titlenotemark" InsetLayout "Flex:Titlenotemark"
LyxType custom LyxType custom
LatexType command LatexType command

View File

@ -1,5 +1,5 @@
#LyX 2.3 created this file. For more info see http://www.lyx.org/ #LyX 2.4 created this file. For more info see https://www.lyx.org/
\lyxformat 544 \lyxformat 556
\begin_document \begin_document
\begin_header \begin_header
\save_transient_properties true \save_transient_properties true
@ -20,7 +20,7 @@ theorems-std
\language english \language english
\language_package default \language_package default
\inputencoding auto \inputencoding auto
\fontencoding global \fontencoding auto
\font_roman "default" "default" \font_roman "default" "default"
\font_sans "default" "default" \font_sans "default" "default"
\font_typewriter "default" "default" \font_typewriter "default" "default"
@ -38,6 +38,8 @@ theorems-std
\output_sync 0 \output_sync 0
\bibtex_command bibtex \bibtex_command bibtex
\index_command default \index_command default
\float_placement class
\float_alignment class
\paperfontsize default \paperfontsize default
\spacing single \spacing single
\use_hyperref false \use_hyperref false
@ -140,19 +142,10 @@ http://www.ctan.org/get/macros/latex/contrib/elsarticle/elsdoc.pdf
\end_layout \end_layout
\begin_layout BeginFrontmatter \begin_layout Standard
\begin_inset Note Note \begin_inset Flex Frontmatter
status open status open
\begin_layout Plain Layout
Keep this empty!
\end_layout
\end_inset
\end_layout
\begin_layout Title \begin_layout Title
This is a specimen title This is a specimen title
\begin_inset Flex Titlenotemark \begin_inset Flex Titlenotemark
@ -689,14 +682,6 @@ MSC
\end_layout \end_layout
\begin_layout EndFrontmatter
\begin_inset Note Note
status open
\begin_layout Plain Layout
Keep this empty!
\end_layout
\end_inset \end_inset