I have a code that looks like this :
\[\Omega_\Lambda{}_0 = 0,6911 \tag {2}\]
in the pdf the (2) has round parentheses. I would like square brackets [] to figure instead : [2]
Can you give me the correct code. Thanks
I have a code that looks like this :
\[\Omega_\Lambda{}_0 = 0,6911 \tag {2}\]
in the pdf the (2) has round parentheses. I would like square brackets [] to figure instead : [2]
Can you give me the correct code. Thanks
I doubt the usefulness of \[...\] together with \tag but here you are, it's even in the mathtools documentation (from which I stole this ;-))
I also don't understand \Lambda{}_{0} but... -- well ;-)
\documentclass{book}
\usepackage{mathtools}
\newtagform{brackets}{[}{]}
\usetagform{brackets}
\begin{document}
\[\Omega_\Lambda{}_0 = 0,6911 \tag {2}\]
\end{document}
For a one-off tag assignment using square brackets, you could type \tag*{[2]} for the equation in question.
\documentclass{article}
\usepackage{amsmath}
\usepackage[textwidth=5cm]{geometry} % just for this example
\begin{document}
\[
a+b=c \tag*{[2]}
\]
\end{document}
\tag*method is the way to go -- and this method hasn't been mentioned (yet) in the earlier posting. – Mico Dec 08 '15 at 17:12