1

I've written the following equation in a text, and something wierd happened to the height of the [] - they're not homogeneous as one would expect! The code is depicted below

\documentclass{amsart}
\usepackage{IEEEtran}

\begin{document}

\begin{IEEEeqnarray}{rCl}
    \label{eq:95}
\left[{\Gamma_{(J)}}^{2}\right]_{sym}&=& \Sigma _{g}^{+} + \Delta_{g} \nonumber \\
\left[{\Gamma_{(J)}}^{4}\right]_{sym}&=& \Sigma _{g}^{+} + \Delta_{g} + \Gamma_{g} \nonumber \\
\left[{\Gamma_{(J)}}^{6}\right]_{sym}&=& \Sigma _{g}^{+} + \Delta_{g} + \Gamma_{g} + I_{g}
\end{IEEEeqnarray}

\end{document}

The result of this code is the following:

enter image description here

Notice the weird height of the [ ] ? Any suggestions/advices on how to overcome this issue will be welcome!

12
  • Using the IEEEtran class on CTAN, instead of the amsart class plus IEEEtran package, I cannot recreate your problem. Nov 9, 2017 at 18:00
  • 1
    @StevenB.Segletes I think the package is called IEEEtrantools, but even with that I can't reproduce the problem either. Nov 9, 2017 at 18:11
  • 1
    I've already advised you that mathptmx is the wrong package to use: tex.stackexchange.com/a/400359/4427
    – egreg
    Nov 9, 2017 at 18:13
  • Please fix your example so that it produces the image shown. Nov 9, 2017 at 18:44
  • 1
    @Strelok I guess that the times option to \documentclass is the culprit.
    – egreg
    Nov 10, 2017 at 9:08

1 Answer 1

3

The package is called IEEEtrantools; but the issue can only be reproduced with mathptmx loaded, that's not really good for serious typesetting.

\documentclass{amsart}
\usepackage{IEEEtrantools}
\usepackage{mathptmx}

\begin{document}

\begin{IEEEeqnarray}{rCl}
    \label{eq:95}
\left[{\Gamma_{(J)}}^{2}\right]_{sym}&=& \Sigma _{g}^{+} + \Delta_{g} \nonumber \\
\left[{\Gamma_{(J)}}^{4}\right]_{sym}&=& \Sigma _{g}^{+} + \Delta_{g} + \Gamma_{g} \nonumber \\
\left[{\Gamma_{(J)}}^{6}\right]_{sym}&=& \Sigma _{g}^{+} + \Delta_{g} + \Gamma_{g} + I_{g} \nonumber \\
\left[{\Gamma_{(J)}}^{\smash{6}\vphantom{2}}\right]_{sym}&=& \Sigma _{g}^{+} + \Delta_{g} + \Gamma_{g} + I_{g}
\end{IEEEeqnarray}

6: \sbox0{$\scriptstyle6$}\the\ht0

2: \sbox0{$\scriptstyle2$}\the\ht0

\end{document}

enter image description here

As you see from the last two lines, the 6 is 0.13pt higher than the 2, thus triggering the next size.

You should not use \left and \right here, but if you want, the workaround is typing \smash{6}\vphantom{2} that hides the height of 6, replacing it with the height of 2.

With newtxtext and newtxmath the problem does not arise.

\documentclass{amsart}
\usepackage{IEEEtrantools}
\usepackage{newtxtext,newtxmath}

\begin{document}

\begin{IEEEeqnarray}{rCl}
    \label{eq:95}
\left[{\Gamma_{(J)}}^{2}\right]_{sym}&=& \Sigma _{g}^{+} + \Delta_{g} \nonumber \\
\left[{\Gamma_{(J)}}^{4}\right]_{sym}&=& \Sigma _{g}^{+} + \Delta_{g} + \Gamma_{g} \nonumber \\
\left[{\Gamma_{(J)}}^{6}\right]_{sym}&=& \Sigma _{g}^{+} + \Delta_{g} + \Gamma_{g} + I_{g}        
\end{IEEEeqnarray}

\end{document}

enter image description here

Without \left and \right, and also with align instead of IEEEeqnarray:

\documentclass[reqno]{amsart}
\usepackage{newtxtext,newtxmath}

\begin{document}

\begin{align}
[{\Gamma_{(J)}}^{2}]_{sym}&= \Sigma _{g}^{+} + \Delta_{g} \nonumber \\
[{\Gamma_{(J)}}^{4}]_{sym}&= \Sigma _{g}^{+} + \Delta_{g} + \Gamma_{g} \nonumber \\
[{\Gamma_{(J)}}^{6}]_{sym}&= \Sigma _{g}^{+} + \Delta_{g} + \Gamma_{g} + I_{g}
\label{eq:95}
\end{align}

\end{document}

enter image description here

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .