* amsmaths.inc:

- better definition of cases environment, as suggested by Russ Woodroofe and Paul Rubin.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_5_X@25700 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Jürgen Spitzmüller 2008-07-18 07:56:40 +00:00
parent 48fefda58c
commit 0e6ac59a98
2 changed files with 16 additions and 2 deletions

View File

@ -615,11 +615,22 @@ Style Case
LatexName caseenv
LabelType Static
LeftMargin "MMMMMMN"
LabelString "Case #:"
LabelString "Case #."
LabelFont
Series Medium
Shape Italic
EndFont
Preamble
\newcounter{casectr}
\newenvironment{caseenv}
{\begin{list}{\bfseries\upshape Case \arabic{casectr}:}{}\setcounter{casectr}{0}\usecounter{casectr}}
{\begin{list}{{\itshape\ Case} \arabic{casectr}.}{%
\setlength{\leftmargin}{\labelwidth}
\addtolength{\leftmargin}{\parskip}
\setlength{\itemindent}{\listparindent}
\setlength{\itemsep}{\medskipamount}
\setlength{\topsep}{\itemsep}}
\setcounter{casectr}{0}
\usecounter{casectr}}
{\end{list}}
EndPreamble
End

View File

@ -52,6 +52,9 @@ What's new
- The A&A document class and template has been updated to conform to
version 6.0 of the A&A specification (bug 4928).
- The 'Case' environment in the AMS classes has been rewritten to produce
better output.
* USER INTERFACE