Le 14/10/15 18:05, Weijie Chen a écrit :
Thank you for your response. Here is the layout file. This is the file I
created following the many instructions online on how to add a new document
class to lyx. I appreciate if you tell me how to change this file so that lyx
works properly.
Thank you again!
$ more sagej.layout
#% Do not delete the line below; configure depends on this
# \DeclareLaTeXClass[sagej]{article (sagej)}
# Input general definitions
Input stdclass.inc
Hello,
First please keep discussions on list. You never know when answers will
be useful to someone else.
The code you show above creates a class equivalent to the default
article class. Since this class does not contain any notion of keyword,
you don't have any either. The goal of the .layout file is to tell LyX
what features the cls file contains.
In this case, I would propose to add the following snippet (stolen from
jasatex.layout) to your layout file.
Hope this helps.
JMarc
Style Keywords
Margin Dynamic
LatexType Command
LatexName keywords
Category FrontMatter
InTitle 1
NextNoIndent 1
BottomSep 0.5
ParSkip 0.4
Align Block
AlignPossible Block
LabelSep xx
LabelType Static
LabelString "Keywords:"
LabelFont
Series Bold
EndFont
End