Hi,

Attached is a layout developed by Herbert Voss, which allows you to use
most of the feature of the Elseveir class. This is for lyx-120 and above.
If you are using an older version, there is a layout file compatible with
version 1.1.6. They're online at
http://www.physics.usyd.edu.au/~matthewa/lyx/, or at least were awhile
ago.

Rod

On Wed, 28 Aug 2002, Luiz Tadeu Fernandes Eleno wrote:

> 
> I am writing a paper and want to follow the elsevier style. They have a 
> document class called elsart.cls. What must I do if I want to use the 
> elsart.cls document class?
> 
> I already installed the .layout file based on article.layout, following 
> the instructions on the lyx webpage, but, while running latex, it give 
> three error messages, which are in fact the same one, which says
> 
> \ifcase \@ptsize
> 
> The
> control sequence at the end of the top line
> of
> your error message was never \def'ed. If you have
> mispelled
> it (e.g. '\hobx'), type '|' and the correc
> spelling
> (e.g. '|\hobx'). Otherwiaw just continue,
> and
> I'll forget about whatever was undefined.
> 
> 
> Has anyone had already this problem?
> 
> Thanks,
> Luiz Eleno
> LCCMat - Computational Materials Science Lab,
> Metallurgical and Materials Engineering Dept
> Escola Politecnica da Universidade de Sao Paulo
> Sao Paulo, SP - Brazil
> 
> 
> 

_________________________________________________________________
rod   | "Beneath the waves, the waves / That's where I will be /
      |     I'm going to see the cow beneath the sea."
      |                 They Might Be Giants, Lincoln

#% Do not delete the line below; configure depends on this
#  \DeclareLaTeXClass[elsart]{Elsevier article style}
# Author: Rod Pinna <[EMAIL PROTECTED]>
# The Elsevier doc style also duplicates the theorem
# environments used by the AMS. The definitions here have been
# mainly taken from the amsmath.inc file, from lyx-1.0.2, by
# David L. Johnson and Jean-Marc Lasgouttes. Some modifications
# have been made.
#
# The Elsevier style *does not* implement the starred versions
# of these environments, so they are not supported by this layout.
# There are also a few AMS environments not impletemented by Elsevier,
# so they are not included either.
#
# Version 1.0   19990506 R. Pinna Inital version
# modified 2002-04-02   Herbert Voss <[EMAIL PROTECTED]>
#

# General textclass parameters
Columns         1
Sides           2
PageStyle       headings
MaxCounter      Counter_Subsection

ClassOptions
  FontSize      Default # controlled by class
End

DefaultFont
  Family        Roman
  Series        Medium
  Shape         Up
  Size          Normal
  Color         None
EndFont

Preamble
    \providecommand{\maketitle}{}
    \newcommand\beginELStitle{\begin{frontmatter}}
    \newcommand\makeELStitle{\end{frontmatter}}
EndPreamble


Style Standard
  LatexName     dummy
  LatexType     Paragraph
  Margin        Static
  ParIndent     MM
  ParSkip       0.4
  ParSep        0.4
  TopSep        1.0
  BottomSep     1.0
  Align         Block
  AlignPossible Block, Left, Right, Center
  LabelType     No_Label
End


Style StartTitlepage
  Margin                Static
  LatexType             Command
  LatexName             beginELStitle
  LeftMargin            xxxxxxxxxx::xx
  LabelSep              xx
  KeepEmpty             1  
  Align                 Left
  AlignPossible         Left
  LabelType             Static
  LabelString           "Start Titlepage"
  # label font definition
  LabelFont 
    Series              Bold
    Shape               Italic
    Color               Blue
  EndFont
End


Style EndTitlepage
  Margin                Static
  LatexType             Command
  LatexName             makeELStitle
  LeftMargin            xxxxxxxxxx::xx
  LabelSep              xx
  KeepEmpty             1  
  Align                 Left
  AlignPossible         Left
  LabelType             Static
  LabelString           "End Titlepage"
  # label font definition
  LabelFont 
    Series              Bold
    Shape               Italic
    Color               Blue
  EndFont
End

Style Keywords
  LatexName     keyword
  LatexType     Environment
  Margin        Static
  ParIndent     MM
  InTitle       1
  ParSkip       0.4
  ParSep        0.4
  TopSep        1.0
  BottomSep     1.0
  Align         Block
  AlignPossible Block, Left, Right, Center
  LabelType     No_Label
Font
    Color       blue
EndFont
End


# Load standard defs, as most of the
# Elsevier stuff seems the same.
Input stdsections.inc
Input stdstarsections.inc
Input stdlists.inc
Input stdstruct.inc
Input stdlayouts.inc


# Title style definition
Style Title
  Margin                Static
  LatexType             Command
  InTitle               1
  LatexName             title
  NextNoIndent          1
  ParSkip               0.4
  TopSep                1.3
  BottomSep             0.7
  ParSep                0.7
  Align                 Left
#  AlignPossible                Left
  LabelType             No_Label
#  Fill_Top             1
#  Fill_Bottom          1

  # standard font definition
  Font 
    Family              Sans
    Series              Bold
    Size                Largest
  EndFont
End

# Author style definition
Style Author
  Margin                Static
  LatexType             Command
  InTitle               1
  LatexName             author
  NextNoIndent          1
  ParSkip               0.4
  TopSep                0.7
  BottomSep             0.7
  ItemSep               0
  ParSep                0
  Align                 Center
  AlignPossible         Center

  # standard font definition
  Font 
    Series              Bold
  EndFont
End

# AuthorAdress
Style AuthorAddress
  Margin                Static
  LatexType             Command
  LatexName             address
  InTitle               1
  Align                 Center
  AlignPossible         Center
Font    
    Size                Small
    Shape               Italic
EndFont 
End

# thanks is like a footnote
Style Thanks
  Margin                Static
  LatexType             Command
  LatexName             thanks          
  InTitle               1

Font    
  Size                  Small
  Series                Typewriter
    Shape               Italic
EndFont 
End

# new Abstract style definition
Style Abstract 
  Margin                Static
  LatexType             Environment
  LatexName             abstract
  NextNoIndent          1
  InTitle               1
  LeftMargin            MMM
  RightMargin           MMM
  ParIndent             MM
  ItemSep               0
  TopSep                0.7
  BottomSep             0.7
  ParSep                0
  Align                 Block
  AlignPossible         Block
  LabelType             Centered_Top_Environment
  LabelString           Abstract
  LabelBottomSep        0.5

  # standard font definition
  Font 
    Size                Small
  EndFont

  # label font definition
  LabelFont 
    Series              Bold
    Size                Large
  EndFont
End 


# Theorm environments have been copied over from
# the amsmaths.inc file. It could not be inputfiled
# as it does some stuff which is incompatible with
# the Elsevier stlye, that is it redefines
# the theorem* environments in the preamble.



# The environments defined are :
# - Theorem
# - Corollary
# - Lemma
# - Proposition
# - Conjecture
# - Criterion
# - Algorithm
# - Definition
# - Example
# - Problem
# - Remark
# - Note
# - Claim
# - Summary
# - Acknowledgement
# - Case

# Theorem-numbered style declaration
Style Theorem
  Margin                First_Dynamic
  LatexType             Environment
  LatexName             thm
  NextNoIndent          1
  LabelSep              xx
  ParIndent             MMM  
  ParSkip               0.4
  ItemSep               0.2
  TopSep                0.7
  BottomSep             0.7
  ParSep                0.3
  Align                 Block
  AlignPossible         Block, Left
  LabelType             Static
  LabelString           "Theorem #."

  
  # standard font definition
  Font
    Shape               Italic
    Size                Normal
  EndFont

  # label font definition
  LabelFont
    Shape               Up
    Series              Bold
  EndFont

End  

# Lemma-numbered style declaration
Style Lemma
  CopyStyle             Theorem
  LatexName             lem
  LabelString           "Lemma #."

#  Preamble
#    \theoremstyle{plain}    
#    \newtheorem{lem}[thm]{Lemma} %%Delete [thm] to re-start numbering
#  EndPreamble
End

# Corollary-numbered style declaration
Style Corollary
  CopyStyle             Theorem
  LatexName             cor
  LabelString           "Corollary #."

#  Preamble
#    \theoremstyle{plain}    
#    \newtheorem{cor}[thm]{Corollary} %%Delete [thm] to re-start numbering
#  EndPreamble
End  

# Proposition-numbered style declaration
Style Proposition
  CopyStyle             Theorem
  LatexName             prop
  LabelString           "Proposition #."

#  Preamble
#    \theoremstyle{plain}    
#    \newtheorem{prop}[thm]{Proposition} %%Delete [thm] to re-start numbering
#  EndPreamble
End  

# Criterion-numbered style declaration
Style Criterion
  CopyStyle             Theorem
  LatexName             crit
  LabelString           "Criterion #."

#  Preamble
#    \theoremstyle{plain}    
#    \newtheorem{crit}[thm]{Criterion} %%Delete [thm] to re-start numbering
#  EndPreamble
End  

# Algorithm-numbered style declaration
Style Algorithm
  CopyStyle             Theorem
  LatexName             alg
  LabelString           "Algorithm #."

#  Preamble
#    \theoremstyle{plain}    
#    \newtheorem{alg}[thm]{Algorithm} %%Delete [thm] to re-start numbering
#  EndPreamble
End  

# Definition-numbered style declaration
Style Definition
  CopyStyle             Theorem
  LatexName             defn
  LabelString           "Definition #."
  
  # standard font definition
  Font
    Shape               Up
  EndFont

  # label font definition
  LabelFont
    Shape               Up
    Series              Bold
  EndFont
 
#  Preamble
#   \theoremstyle{definition}
#   \newtheorem{defn}[thm]{Definition}
#  EndPreamble
End  

# Conjecture-numbered style declaration
Style Conjecture
  CopyStyle             Theorem
  LatexName             conj
  LabelString           "Conjecture #."

#  Preamble
#    \theoremstyle{plain}    
#    \newtheorem{conj}[thm]{Conjecture} %%Delete [thm] to re-start numbering
#  EndPreamble
End

# Example-numbered style declaration
Style Example
  CopyStyle             Theorem
  LatexName             exmp
  LabelString           "Example #."

#  Preamble
#   \theoremstyle{definition}
#    \newtheorem{exmp}[thm]{Example}
#  EndPreamble
End  

# Problem-numbered style declaration
Style Problem
  CopyStyle             Theorem
  LatexName             prob
  LabelString           "Problem #."

#  Preamble
#   \theoremstyle{definition}
#    \newtheorem{prob}[thm]{Problem}
#  EndPreamble
End  

# Remark-numbered style declaration
Style Remark
  CopyStyle             Theorem
  LatexName             rem
  LabelString           "Remark #."

End  

# Note-numbered style declaration
Style Note
  CopyStyle             Theorem
  LatexName             note
  LabelString           "Note #."

End  

# Claim-numbered style declaration
Style Claim
  CopyStyle             Theorem
  LatexName             claim
  LabelString           "Claim #."

End  

# Summary-numbered style declaration
Style Summary
  CopyStyle             Theorem
  LatexName             summ
  LabelString           "Summary #."

End  

# Case-numbered style declaration
Style Case
  CopyStyle             Theorem
  LatexName             case
  LabelString           "Case #."

End  

# Acknowledgement-numbered style declaration
#Style Acknowledgement
#  CopyStyle            Theorem
#  LatexName            ack
#  LabelString          "Acknowledgement #."
#
#End  

# Acknowledgement style definition
# This is not taken from the AMS defs,
# so as to match the output of the
# stlye file.

Style Acknowledgement
  Margin                Static
  LatexType             environment
  LatexName             ack
  Labeltype             Top_Environment
  LabelBottomsep        1
  LabelString           "Acknowledgement #."
  parsep                0.3

LabelFont
  Size                  large
  Series                Bold
EndFont

End




#LyX 1.2 created this file. For more info see http://www.lyx.org/
\lyxformat 220
\textclass elsart
\language english
\inputencoding default
\fontscheme default
\graphics default
\paperfontsize default
\spacing single 
\papersize Default
\paperpackage a4
\use_geometry 0
\use_amsmath 0
\use_natbib 0
\use_numerical_citations 0
\paperorientation portrait
\secnumdepth 3
\tocdepth 3
\paragraph_separation indent
\defskip medskip
\quotes_language english
\quotes_times 2
\papercolumns 1
\papersides 2
\paperpagestyle default

\layout StartTitlepage

\layout Title

Introduction into the ELSART template
\layout Thanks

text to go as footnote to heading here
\layout Author

Rod Pinna
\layout AuthorAddress

Rod's address
\layout Thanks

First author thanks text
\layout Author

Herbert Voss
\layout AuthorAddress

Wasgenstr.
 21 D-14129 Berlin
\layout Thanks

Second author thanks text
\layout Abstract

Insert Abstract HereThis publication was typeset using LATEX TEX is a trademark
 of the American Mathematical SocietyCopyright cfl 1994 by Elsevier Science
 Publishers B.V.
 All rights reserved 
\layout Keywords

Put all Keywords here in the environment 
\series bold 
keyword
\series default 
.
 For example: 
\newline 
Radioactivity.
 (
\begin_inset Formula $\beta ^{+}$
\end_inset 

,EC) [from Pt(p, 
\begin_inset Formula $x$
\end_inset 

n)Au or ...
\layout EndTitlepage

\layout Section

Introduction
\layout Standard

This the first section
\the_end

Reply via email to