Am Montag, 13. August 2018 08:34:07 CEST schrieb Kornel Benko <kor...@lyx.org>:
> Am Montag, 13. August 2018 07:49:35 CEST schrieb Jürgen Spitzmüller 
> <sp...@lyx.org>:
> > Am Sonntag, den 12.08.2018, 21:49 +0200 schrieb Kornel Benko:
> > > According to LatexConfig.lyx, section 3.14, the class egs is
> > > obsolete.
> > > But the class copernicus needs layout and a template.
> > > 
> > > I tried to create them. The template, if compiled, shows the same
> > > pdf-output as the
> > > template.tex provided by the copernicus package.
> > > 
> > > Critics, comments or improvements are very appreciated.
> > 
> > Just two quick remarks:
> > 
> > Is it intentional that the InFrontmatter style has no LaTeXName? What
> > is its purpose?
> 
> It is used only as CopyStyle, disabled with NoStyle at end.
> 
> > For the appendix, I'd suggest a LaTeXName such as copappendix rather
> > than the German Anhang.
> 
> OK
> 
> > Jürgen
> > 

Added also appendix-counters for section, subsection and subsubsection.

        Kornel

Attachment: copernicus.lyx
Description: application/lyx

#% Do not delete the line below; configure depends on this
# \DeclareLaTeXClass[copernicus, manuscript.sty]{Copernicus Publications 
Manuscript Preparation}
# \DeclareCategory{Articles}

# Please do not edit this file unless you know what you are doing.
# At least make backup copies of all your project files!

Format          68

Provides        babel   1
Provides        inputenc 1
Provides        tabularx        1
Provides        cancel  1
Provides        multirow 1
Provides        supertabular    1
Provides        algorithmic     1
Provides        algorithm       1
Provides        amsthm  1
Provides        float   1
Provides        subfig  1
Provides        rotating        1
Provides        natbib  1

Input           stdclass.inc

TocDepth        2

ClassOptions
        FontSize        10,11,12
        Other           "journal abbreviation, manuscript"
End

Style Title
        Align           Left
        Font
                Series          Bold
                Size            Largest
        EndFont
End

Style InFrontmatter
        Category        FrontMatter
        Align           Left
        InTitle         1
        LatexType       Command
        LabelType       Static
        Margin          Dynamic
        LabelSep        xxx
        NextNoIndent    1
        LabelFont
                Series          Medium
                Shape           Italic
                Color           red
        EndFont
End

Style Author
        CopyStyle       InFrontmatter
        KeepEmpty       1
        LatexName       Author
        LabelString     "Author:"
        Argument 1
                LabelString     "Author affiliation"
                ToolTip         "Insert the affiliation number"
        EndArgument
        Argument 2
                LabelString     "Given name"
                Mandatory       1
        EndArgument
        Argument 3
                Mandatory       1
                LabelString     "Surname"
                ToolTip         "Surname"
        EndArgument
End

Style Affil
        CopyStyle       InFrontmatter
        LatexName       affil
        LabelString     "Affiliation:"
        Argument 1
                LabelString     "Affiliation Mark"
                ToolTip         "identify the author with the corresponding 
affiliation. 1, 2, 3, etc. should be inserted."
        EndArgument
End

Style Running_Title
        CopyStyle       InFrontmatter
        LatexName       runningtitle
        LabelString     "Running title:"
End

Style FirstPage
        LatexType       Command
        LatexName       firstpage
        LabelString     firstpage
        LabelType       Static
        Margin          Dynamic
        LabelSep        xx
        LabelFont
                Shape           Italic
                Color           Red
        EndFont
End

Style RunningAuthor
        CopyStyle       InFrontmatter
        LatexName       runningauthor
        LabelString     "Running author:"
End

Style Publications
        Margin          Dynamic
        KeepEmpty       1
        LatexType       Command
        NextNoIndent    1
        LabelSep        M
        ParSkip         0.4
        TopSep          1.3
        BottomSep       0.7
        ParSep          0.7
        Align           Left
        LabelType       Static
        Font
                Size            Small
                Series          Medium
        EndFont
        LabelFont
                Series          Bold
                Shape           Regular
                Color           Black
        EndFont
End

Style Correspondence
        CopyStyle       Publications
        LatexName       correspondence
        LabelString     "Correspondence:"
End

Style Received
        CopyStyle       Publications
        LatexName       received
        LabelString     "Received:"
End

Style Accepted
        CopyStyle       Publications
        LatexName       accepted
        LabelString     "Accepted:"
End

Style Pubdiscuss
        CopyStyle       Publications
        LatexName       pubdiscuss
        LabelString     "Pubdiscuss:"
End

Style Revised
        CopyStyle       Publications
        LatexName       revised
        LabelString     "Revised:"
End

Style Published
        CopyStyle       Publications
        LatexName       published
        LabelString     "Published:"
End

Style Abstract
        LatexType       Environment
        LatexName       abstract
        LabelType       Static
        LabelSep        xx
        LabelString     "Abstract."
        Margin          Dynamic
        NextNoIndent    1
        Align           Left
        LabelFont
                Size            Normal
                Series          Bold
        EndFont
        ParSkip         0.4
        TopSep          1.3
        BottomSep       0.7
        ParSep          0.7
End

Style Statements
        LabelType       Static
        LabelFont
                Shape           Italic
        EndFont
        LabelSep        xx
        LatexType       Command
        Margin          Dynamic
        KeepEmpty       0
End

Style Copyrightstatement
        CopyStyle       Statements
        LatexName       copyrightstatement
        LabelString     "Copyright:"
End

Style Introduction
        CopyStyle       Section
        LatexName       introduction
        LabelString     "\thesection Introduction"
        KeepEmpty       1
        LabelSep        ""
End

Style Conclusions
        CopyStyle       Section
        LatexName       conclusions
        LabelString     "\thesection Conclusions"
        KeepEmpty       1
        LabelSep        ""
End

Counter appendix
        Within  "none"
End

Style Section_Appendix
        CopyStyle Section
        Category        Appendix
        LabelCounter appendix
        LabelString "Appendix \Alph{appendix}:"
End

Counter subappendix
        Within  "appendix"
End

Style Subsection_Appendix
        CopyStyle       Subsection
        Category                Appendix
        LabelCounter    subappendix
        LabelString     "\Alph{appendix}\arabic{subappendix}"
End

Counter subsubappendix
        Within  subappendix
End

Style Subsubsection_Appendix
        CopyStyle       Subsubsection
        Category                Appendix
        LabelCounter    subsubappendix
        LabelString     
"\Alph{appendix}\arabic{subappendix}.\arabic{subsubappendix}"
End

InsetLayout Flex:Appendix
        LyXType         custom
        Margin          Dynamic
        LatexType       Environment
        LatexName       copappendix
        Decoration      Classic
        ParagraphGroup  1
        MultiPar        true
        NextNoIndent    1
        AutoNests
                "Section,SubSection,Standard"
        EndAutoNests
        Category        BackMatter
        TopSep          1.2
        ParSkip         0.4
        BottomSep       0.8
        Align           Left
        LabelType       Top_Environment
        LabelString     "[Appendix]"
        KeepEmpty       1
        Font
                Family          Roman
                Size            Normal
                Shape           Up
        EndFont
        Preamble
                \newenvironment{copappendix}
                {\appendix}
                {\noappendix}
        EndPreamble
End

Style CodeAvailability
        CopyStyle       Statements
        LabelString     "Code availability."
        LatexName       codeavailability
End

Style DataAvailability
        CopyStyle       Statements
        LabelString     "Data availability."
        LatexName       dataavailability
End

Style CodeAndDataAvailability
        CopyStyle       Statements
        LabelString     "Code and data availability."
        LatexName       codedataavailability
End

Style SampleAvailability
        CopyStyle       Statements
        LabelString     "Sample availability."
        LatexName       sampleavailability
End

Style Statements2
        CopyStyle       Statements
        ParSkip         0.4
        TopSep          1.3
        BottomSep       0.7
        ParSep          0.7
End

Style AuthorContribution
        CopyStyle       Statements2
        LabelString     "Author contributions."
        LatexName       authorcontribution
End

Style CompetingInterests
        CopyStyle       Statements2
        LatexName       competinginterests
        LabelString     "Competing Interests."
End

Style Disclaimer
        CopyStyle       Statements2
        LatexName       disclaimer
        LabelString     "Disclaimer."
End

Style Acknowledgements
        CopyStyle       Abstract
        LatexName       acknowledgements
        LabelString     "Acknowledgements."
        LabelFont
                Shape           Italic
                Series          Medium
        EndFont
End

Style Bibliography
        Margin          First_Dynamic
        LatexType       Bib_Environment
        LatexName       thebibliography
        Category        BackMatter
        NextNoIndent    1
        ToggleIndent    Never
        LeftMargin      MM
        ParSkip         0.4
        ItemSep         0
        TopSep          0.7
        BottomSep       0.7
        ParSep          0.5
        Align           Block
        AlignPossible   Block, Left
        LabelType       Bibliography
        LabelString     "References"
        LabelBottomSep  0.7
        LabelFont
                Series          Bold
        EndFont
        TocLevel        0
        IsTocCaption    0
End

NoStyle         Statements
NoStyle         Statements2
NoStyle         Publications
NoStyle         InFrontmatter
NoStyle         Chapter
NoStyle         Chapter*
NoStyle         Part
NoStyle         Part*

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

Reply via email to