Math & Science ⇒ amsmath | Conflict with non-standard Document Class
amsmath | Conflict with non-standard Document Class
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 674 times
Learn LaTeX easily with newest books:
The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis
The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more
LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis
Re: amsmath | Conflict with non-standard Document Class
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
That worked just fine!
amsmath | Conflict with non-standard Document Class
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
Thorsten
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
Re: amsmath | Conflict with non-standard Document Class
amsmath | Conflict with non-standard Document Class
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 372 times
Re: amsmath | Conflict with non-standard Document Class
It has definitions for lemmas, theorems, but not for labels.
You should use a different class or write to the authors of it.
Nikolay