Skip to content

Toggle between inline and display math when it's the last line of an environment. #3063

@gaoqiangks

Description

@gaoqiangks

Is your feature request related to a problem? Please describe it.

For example, I have the following code, and now I want to toggle the last display math equation to an inline equation, and I type ts$.

\begin{proof}
    This is the proof of Theorem 1.
    \begin{equation}
        1+1=2
    \end{equation}
\end{proof}

Now it becomes

\begin{proof}
    This is the proof of Theorem 1. $1+1=2$ \end{proof}

I think it's better to become

\begin{proof}
    This is the proof of Theorem 1. $1+1=2$ 
\end{proof}

Namely, keep the \end{proof} alone.

Describe the solution you'd like

Keep the \end command alone when toggling a display math equation to an inline equation.

Describe alternatives you've considered
No.

Additional context
No.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions