From: Kornel Benko Date: Fri, 1 Mar 2013 14:32:58 +0000 (+0100) Subject: Remove latex-nameclash between X-Git-Tag: 2.1.0beta1~589 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=cc0c3d0427bcffada1e4b989b69d54df539e21fd;p=features.git Remove latex-nameclash between \newfloat{algorithm} ... and \newtheorem{algorithm}... --- diff --git a/lib/layouts/theorems-ams-extended-bytype.module b/lib/layouts/theorems-ams-extended-bytype.module index 672ee4c5d1..e08c737e47 100644 --- a/lib/layouts/theorems-ams-extended-bytype.module +++ b/lib/layouts/theorems-ams-extended-bytype.module @@ -93,11 +93,11 @@ End Style Algorithm CopyStyle Theorem - LatexName algorithm + LatexName lyxalgorithm LabelString "Algorithm \thealgorithm." Preamble \theoremstyle{plain} - \newtheorem{algorithm}{\protect\algorithmname} + \newtheorem{lyxalgorithm}{\protect\algorithmname} EndPreamble LangPreamble \providecommand{\algorithmname}{_(Algorithm)} @@ -111,11 +111,11 @@ End Style Algorithm* CopyStyle Theorem* - LatexName algorithm* + LatexName lyxalgorithm* LabelString "Algorithm." Preamble \theoremstyle{plain} - \newtheorem*{algorithm*}{\protect\algorithmname} + \newtheorem*{lyxalgorithm*}{\protect\algorithmname} EndPreamble LangPreamble \providecommand{\algorithmname}{_(Algorithm)} diff --git a/lib/layouts/theorems-ams-extended.module b/lib/layouts/theorems-ams-extended.module index 7b5903301f..09c430c111 100644 --- a/lib/layouts/theorems-ams-extended.module +++ b/lib/layouts/theorems-ams-extended.module @@ -70,11 +70,11 @@ End Style Algorithm CopyStyle Theorem DependsOn Theorem - LatexName algorithm + LatexName lyxalgorithm LabelString "Algorithm \thetheorem." Preamble \theoremstyle{plain} - \newtheorem{algorithm}[thm]{\protect\algorithmname} + \newtheorem{lyxalgorithm}[thm]{\protect\algorithmname} EndPreamble LangPreamble \providecommand{\algorithmname}{_(Algorithm)} @@ -87,11 +87,11 @@ End Style Algorithm* CopyStyle Theorem* - LatexName algorithm* + LatexName lyxalgorithm* LabelString "Algorithm." Preamble \theoremstyle{plain} - \newtheorem*{algorithm*}{\protect\algorithmname} + \newtheorem*{lyxalgorithm*}{\protect\algorithmname} EndPreamble LangPreamble \providecommand{\algorithmname}{_(Algorithm)}