Math & Science ⇒ square brackets around equation numbers?
square brackets around equation numbers?
Is this possible? I've done a fair bit of searching and can't seem to figure out how to do this. Parentheses are the default, but I need brackets for a journal submission. Can anyone help?
square brackets around equation numbers?
Hi,
you can achieve that using the mathtools package; take a look at the package documentation (Section 3.2 COntrolling tags, pp. 8ff)
Supplement:
Of course the same modification can be done without the mathtools package. The next sample codes show how to proceed depending on whether or not the amsmath package has been loaded:
First, without loading amsmath:
Now, when amsmath has been loaded:
you can achieve that using the mathtools package; take a look at the package documentation (Section 3.2 COntrolling tags, pp. 8ff)
Supplement:
Of course the same modification can be done without the mathtools package. The next sample codes show how to proceed depending on whether or not the amsmath package has been loaded:
First, without loading amsmath:
Code: Select all
Code, edit and compile here:
\documentclass{article}%changing the tag appereance without loading amsmath\makeatletter\def\@eqnnum{{\normalfont \normalcolor [\theequation]}}\makeatother\begin{document}\begin{equation}a=b\end{equation}\end{document}
Code: Select all
Code, edit and compile here:
\documentclass{article}\usepackage{amsmath}%changing the tag appereance when amsmath has been loaded\makeatletter\def\tagform@#1{\maketag@@@{[#1]\@@italiccorr}}\makeatother\begin{document}\begin{equation}a=b\end{equation}\end{document}
1,1,2,3,5,8,13,21,34,55,89,144,233,...
Re: square brackets around equation numbers?
Thanks, that worked great! I am using the "leqno" option for the article class, and the first code (not dependent on amsmath) put the equation number back on the right. The amsmath version kept it on the left, however. Mathtools looks useful as well...