LaTeX double superscript error resolution: Double superscript...

The problem is as follows:
Minimal environment:
wrong display, and will report an error Double Super Script...
insert image description here
The correct display result after modification
insert image description here

original code

\documentclass{
    
    IEEEtran}
\usepackage{
    
    amsmath}
\begin{
    
    document}
\begin{
    
    equation}
{
    
    \tilde{
    
    \boldsymbol{
    
    \theta}}^{
    
    t}}^{
    
    \mathrm{
    
    H}}
\end{
    
    equation}
\end{
    
    document}

modified code

\documentclass{
    
    IEEEtran}
\usepackage{
    
    amsmath}
\begin{
    
    document}
\begin{
    
    equation}
{
    
    {
    
    }\tilde{
    
    \boldsymbol{
    
    \theta}}^{
    
    t}}^{
    
    \mathrm{
    
    H}}
\end{
    
    equation}
\end{
    
    document}

The difference is that {} is added inside

I am not sure why this modification is correct, and I will check the manual further to confirm

Guess you like

Origin blog.csdn.net/qq_45542321/article/details/130795894