Am Samstag, den 28.07.2018, 14:33 +0200 schrieb Kornel Benko:
> commit 3e92efd118aa66d90cee8e1cd5b305ead0849925
> Author: Kornel Benko <kor...@lyx.org>
> Date:   Sat Jul 28 14:30:25 2018 +0200
> 
>     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 is a file format change. Please add the necessary change and
lyx2lyx routines.

Jürgen

> ---
>  lib/layouts/elsarticle.layout |   31 ++++++++++---------------------
>  lib/templates/elsarticle.lyx  |   29 +++++++----------------------
>  2 files changed, 17 insertions(+), 43 deletions(-)
> 
> diff --git a/lib/layouts/elsarticle.layout
> b/lib/layouts/elsarticle.layout
> index 0adadf1..d2cef14 100644
> --- a/lib/layouts/elsarticle.layout
> +++ b/lib/layouts/elsarticle.layout
> @@ -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
> diff --git a/lib/templates/elsarticle.lyx
> b/lib/templates/elsarticle.lyx
> index 9887cfd..1b8346e 100644
> --- a/lib/templates/elsarticle.lyx
> +++ b/lib/templates/elsarticle.lyx
> @@ -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
>  
>  

Attachment: signature.asc
Description: This is a digitally signed message part

Reply via email to