I am trying to get square brackets to fit "nicely" around a number (for denoting the equivalence class containing that number). Using the following,
\begin{document}
\renewcommand{\arraystretch}{2}
\renewcommand{\tabcolsep}{0.3cm}
\begin{tabular}{|c|ccc|}
\hline
$[0]$ & $[0]$ & $[1]$ & $[2]$ \\
$[1]$ & $[1]$ & $[2]$ & $[3]$ \\
\hline
\end{tabular}
\end{document}
I get
There is superfluous whitespace under the numbers inside the brackets, which looks a bit jarring in a large table containing a lot of expressions like these. I would prefer something like this:
Notice how there is no superfluous whitespace under the numbers inside the brackets. I know that brackets can be made taller with \bigl and such. Is there a similar way to make brackets shorter, or fit nicely around a number?
I used the default Computer Modern font. The ssecond example comes from a textbook typeset in Latex with the Gyre Schola font.



\leftand\rightare wrong here and[1]is correct, however, that's just good general advice,[1]won't make any difference when it comes to your problem – Au101 Jul 23 '18 at 22:45\chi", as well as operator symbols centered vertically on the math axis. it's a different requirement. – barbara beeton Jul 27 '18 at 18:34