Math & Science ⇒ amsmath | Conflict with non-standard Document Class
amsmath | Conflict with non-standard Document Class
Hi all,
I have an error "LaTeX Error: Command \equation* already defined" when I compile the .tex file which uses ws-ijcis.cls (attached to this post). However, when I comment out the line "\usepackage{amsmath}" the problem goes away.
But I need to use amsmath package for my math formulas.
Could you please advise what to do?
Thanks!
I have an error "LaTeX Error: Command \equation* already defined" when I compile the .tex file which uses ws-ijcis.cls (attached to this post). However, when I comment out the line "\usepackage{amsmath}" the problem goes away.
But I need to use amsmath package for my math formulas.
Could you please advise what to do?
Thanks!
- Attachments
-
- ws-ijcis.cls
- (39.24 KiB) Downloaded 643 times
Last edited by timur on Wed Sep 21, 2011 1:53 am, edited 1 time in total.
NEW: TikZ book now 40% off at Amazon.com for a short time.
Re: amsmath | Conflict with non-standard Document Class
The class you are using redefines the "equation" environment. So you cannot add "amsmath" after it.
I edited the class you provided and added \usepackage{amsmath} on the 20th line. Seems to be working fine, since this loads "amsmath" before the redefining process.
But if someone else wants to compile your file, you must send him the class file too.
Nikolay
I edited the class you provided and added \usepackage{amsmath} on the 20th line. Seems to be working fine, since this loads "amsmath" before the redefining process.
But if someone else wants to compile your file, you must send him the class file too.
Nikolay
Re: amsmath | Conflict with non-standard Document Class
Thanks a lot, Nicolay!
That worked just fine!
That worked just fine!
amsmath | Conflict with non-standard Document Class
Nikolay,
When I insert \footnotemark in the equation environment and place \footnotetext{...} just after the equation
it gives me an error:
When I insert \footnotemark in the equation environment and place \footnotetext{...} just after the equation
Code: Select all
\begin{equation*}
\left\{
\begin{aligned}
...,\\
...,\footnotemark,\\
\end{aligned}
\right\}
\end{equation*}
\footnotetext{...}
What could be the reason for that?\ijcis\1\ws-ijcis.tex(393): Error: ! Missing } inserted.
- localghost
- Site Moderator
- Posts: 9202
- Joined: Fri Feb 02, 2007 12:06 pm
amsmath | Conflict with non-standard Document Class
Try \text{\footnotemark} instead.
Thorsten
Thorsten
How to make a "Minimal Example"
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
Re: amsmath | Conflict with non-standard Document Class
Thanks localghost! It worked!
amsmath | Conflict with non-standard Document Class
Hi all, again!
I have another problem with the same class definition ws-ijcis.cls. I attach here too.
The error mainly with the lemma environment. I have
When I refer to this lemma by
it gives me the following error message:
I have another problem with the same class definition ws-ijcis.cls. I attach here too.
The error mainly with the lemma environment. I have
Code: Select all
\begin{lemma}\label{lemma_name}
...
\end{lemma}
Code: Select all
\ref{lemma_name}
Any ideas why?\ws-ijcis.tex(1115): Error: ! Undefined control sequence.
- Attachments
-
- ws-ijcis.cls
- (39.26 KiB) Downloaded 345 times
Re: amsmath | Conflict with non-standard Document Class
The class you use is very broken.
It has definitions for lemmas, theorems, but not for labels.
You should use a different class or write to the authors of it.
Nikolay
It has definitions for lemmas, theorems, but not for labels.
You should use a different class or write to the authors of it.
Nikolay
Re: amsmath | Conflict with non-standard Document Class
Thanks! I appreciate your help.