Math & Science ⇒ square brackets around equation numbers?
square brackets around equation numbers?
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
square brackets around equation numbers?
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
\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
\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}