- #1
SeM
Hi, this message "You can't use `\eqno' in math mode." appears frequently in a sharelatex document I am working on. How can it be fixed?
Thanks!
Thanks!
The command `\eqno' is used to manually assign equation numbers in LaTeX. However, in math mode, equation numbers are automatically generated by the `\begin{equation}' and `\end{equation}' commands. Therefore, using `\eqno' in math mode is redundant and will result in an error.
Yes, you can use the `\label' and `\ref' commands to label and reference equations in math mode. These commands work in the same way as in regular text mode.
The `\eqno' command is used to manually assign equation numbers, while `\label' is used to label equations for later referencing. `\eqno' is typically used when you want to override the automatic numbering system, while `\label' is used for cross-referencing equations in the document.
No, `\eqno' is specifically designed for use in math mode and will not work in any other environment. If you want to manually assign numbers to equations in other environments, you can use the `\tag' command instead.
To fix this error, simply remove the `\eqno' command from your math mode environment. If you want to manually assign an equation number, use the `\tag' command instead. Otherwise, you can remove the command and let LaTeX automatically generate the equation numbers for you.