Paul A. Rubin
Mon, 07 May 2007 15:17:21 -0700
Ken wrote:
Hi. I am currently using the document class "article (AMS)" which
provides
a list of styles such as Theorem, Proof, Definition, Claim, etc.
How could
I similarly create a section/style for "Assumption #.#"?
I tried googling this without much success. Any advice would be
greatly
appreciated!
Thanks so much,
Ken
1. Go to <wherever LyX lives>/Resources/layouts and copy the file
amsmaths.inc. Park the copy in <your home>/.lyx/layouts (I think,
maybe) if you're a Linux user or C:\Documents and Settings\<your id>
\Application Data\LyX1.4.x\layouts if you're a Windows user
(unless, of course, you're using 1.5.0svn). If you're a Mac user,
hit the funny looking key and Steve Jobs will stop by to do it for
you. ;-)
That could work, but if you want to play it safe, you can put it in
<your home>/Library/Application\ Support/LyX-1.5/layouts/
(where LyX-1.5 of course is LyX-1.4 if you run LyX 1.4, etc)
/Anders
2. Edit the new copy of amsmaths.inc in a text editor. Add the
following at the bottom:
Style Assumption
CopyStyle Theorem
LatexName assumption
LabelString "Assumption @[EMAIL PROTECTED]"
Preamble
\theoremstyle{plain}
\newtheorem{assumption}[thm]{Assumption}
EndPreamble
End
3. Cross your fingers (toes too if you're flexible) and start LyX.
HTH,
Paul