由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
TeX版 - 怎样 undefine 一个 newcommand
相关主题
newcommand参数重用?请问lemma,remark之类的,如果不想用斜体
Footnote in latex请教一下 Figure S1
如何把显示的定理、定义变成正体、粗体格式?tex问题
求救:reference list不按照作者名字排序请教 latex导入bibtex后的页码问题
格式问题求教请问如何生成这样的矩阵
algorithm2e请问一个简单问题
公式编号前面怎么加入一个字母?latex algorithm2e
数学证明的结尾符号是啥?Bibliography和Reference字样同时出现怎么删除其中一个?
相关话题的讨论汇总
话题: algorithm话题: undefine话题: newcommand话题: already
进入TeX版参与讨论
1 (共1页)
s**9
发帖数: 207
1
documentclass 用了一个指定的模板, 里面定义了algorithm:
\newtheorem{algorithm}[theorem]{Algorithm}.
正文里又需要用algorithm2e的algorithm. 于是就提示说command algorithm already
defined.
有没有什么办法把模板里的algorithm给"undefine"掉?
s*****g
发帖数: 5159
2
comment that line out in the sty file.

already

【在 s**9 的大作中提到】
: documentclass 用了一个指定的模板, 里面定义了algorithm:
: \newtheorem{algorithm}[theorem]{Algorithm}.
: 正文里又需要用algorithm2e的algorithm. 于是就提示说command algorithm already
: defined.
: 有没有什么办法把模板里的algorithm给"undefine"掉?

s**9
发帖数: 207
3
The editors will use standard cls and sty files. When they compile my tex
source, there will be problems.

【在 s*****g 的大作中提到】
: comment that line out in the sty file.
:
: already

t***s
发帖数: 4666
4
why don't you call your algorithm something else, such as myalgo.

already

【在 s**9 的大作中提到】
: documentclass 用了一个指定的模板, 里面定义了algorithm:
: \newtheorem{algorithm}[theorem]{Algorithm}.
: 正文里又需要用algorithm2e的algorithm. 于是就提示说command algorithm already
: defined.
: 有没有什么办法把模板里的algorithm给"undefine"掉?

s**9
发帖数: 207
5
I used the algorith2e package, which defines the algorithm.

【在 t***s 的大作中提到】
: why don't you call your algorithm something else, such as myalgo.
:
: already

s*****g
发帖数: 5159
6
看看algorith2e有没有[]里面的option选项,不行的话只能回到你原来的模版里巴
algorithm注释掉了。不过journal编委的模版可未必注释掉,建议你还是忍忍用提供的
algorithm吧。

【在 s**9 的大作中提到】
: I used the algorith2e package, which defines the algorithm.
s*****g
发帖数: 5159
7
go to the template to algorithm2e, change \newcommand{algorithm} to \
renewcommand{algorithm}
good luck.

already

【在 s**9 的大作中提到】
: documentclass 用了一个指定的模板, 里面定义了algorithm:
: \newtheorem{algorithm}[theorem]{Algorithm}.
: 正文里又需要用algorithm2e的algorithm. 于是就提示说command algorithm already
: defined.
: 有没有什么办法把模板里的algorithm给"undefine"掉?

1 (共1页)
进入TeX版参与讨论
相关主题
Bibliography和Reference字样同时出现怎么删除其中一个?格式问题求教
怎么能让每个 section 另起一页?algorithm2e
Table在页面中间的位置公式编号前面怎么加入一个字母?
有没有办法在文章某一段缩小行间距数学证明的结尾符号是啥?
newcommand参数重用?请问lemma,remark之类的,如果不想用斜体
Footnote in latex请教一下 Figure S1
如何把显示的定理、定义变成正体、粗体格式?tex问题
求救:reference list不按照作者名字排序请教 latex导入bibtex后的页码问题
相关话题的讨论汇总
话题: algorithm话题: undefine话题: newcommand话题: already