I usually use \[ ... \] to typeset equations in latex and sometimes I come back and realize that I want to have an equation number and label. I have been coming back and editing it to \begin{equation} ... \end{equation} but this is annoying and time consuming. Is there a command to do something like \[ \addeqnumber{} \] which will work the same way as the equation environment? I am aware this probably isn't the best practice, but it would save me some annoyance.
|
|
||||
|
|
See also: Equation numbering question |
|||
|
|
|
Not answering your question but maybe solving your problem: |
||||
|
|
|
If you find yourself doing this for all equations I would use search & replace but if you’re reluctant you can do the following:
After that, You can also wrap this into a macro, and create another one to switch back so that you can switch between the two styles via two macros. |
|||||||||
|
|
As you're aware that this isn't best practice, I don't mind answering! The following seems to work:
Use it as:
The start of |
|||||||||||
|