[Tex/LaTex] How to change the style of the braces around equation numbers in the align-environment

alignbracesformatting

I would like to change the braces in the align-environment from the normal braces ( ) to rectangular braces [ ],

align-environment with the standard ( )-braces.

Best Answer

You can do this on a one-off basis as follows.

\documentclass{article}
\usepackage{amsmath}
\newcommand\sqtag{\stepcounter{equation}\tag*{[\theequation]}}
\begin{document}
\begin{align} 
a &=b \sqtag \\
  &=c \sqtag 
\end{align}
\end{document}

Alternatively, try this if you want labels in square brackets for all equations throughout the document.

\documentclass{article}
\usepackage{amsmath}
\makeatletter
\renewcommand\tagform@[1]{\maketag@@@ {[\ignorespaces #1\unskip \@@italiccorr ]}}
\makeatother
\begin{document}
\begin{align}
a &=b \\       
  &= c
\end{align}
\end{document}