Math & Scienceamsmath | Conflict with non-standard Document Class

Information and discussion about LaTeX's math and science related features (e.g. formulas, graphs).
Post Reply
timur
Posts: 7
Joined: Tue Sep 20, 2011 10:42 am

amsmath | Conflict with non-standard Document Class

Post by timur »

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!
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.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

User avatar
justdeath
Posts: 69
Joined: Mon Sep 05, 2011 10:27 am

Re: amsmath | Conflict with non-standard Document Class

Post by justdeath »

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
timur
Posts: 7
Joined: Tue Sep 20, 2011 10:42 am

Re: amsmath | Conflict with non-standard Document Class

Post by timur »

Thanks a lot, Nicolay!

That worked just fine!
timur
Posts: 7
Joined: Tue Sep 20, 2011 10:42 am

amsmath | Conflict with non-standard Document Class

Post by timur »

Nikolay,

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{...}
it gives me an error:
\ijcis\1\ws-ijcis.tex(393): Error: ! Missing } inserted.
What could be the reason for that?
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

amsmath | Conflict with non-standard Document Class

Post by localghost »

Try \text{\footnotemark} instead.


Thorsten
timur
Posts: 7
Joined: Tue Sep 20, 2011 10:42 am

Re: amsmath | Conflict with non-standard Document Class

Post by timur »

Thanks localghost! It worked!
timur
Posts: 7
Joined: Tue Sep 20, 2011 10:42 am

amsmath | Conflict with non-standard Document Class

Post by timur »

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

Code: Select all

\begin{lemma}\label{lemma_name}
...
\end{lemma}
When I refer to this lemma by

Code: Select all

\ref{lemma_name}
it gives me the following error message:
\ws-ijcis.tex(1115): Error: ! Undefined control sequence.
Any ideas why?
Attachments
ws-ijcis.cls
(39.26 KiB) Downloaded 345 times
User avatar
justdeath
Posts: 69
Joined: Mon Sep 05, 2011 10:27 am

Re: amsmath | Conflict with non-standard Document Class

Post by justdeath »

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
timur
Posts: 7
Joined: Tue Sep 20, 2011 10:42 am

Re: amsmath | Conflict with non-standard Document Class

Post by timur »

Thanks! I appreciate your help.
Post Reply