Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

inconsistent output for equation environment with respect to paragraphs #191

Open
pkra opened this issue Jan 31, 2024 · 0 comments
Open
Labels
bug Something isn't working

Comments

@pkra
Copy link
Member

pkra commented Jan 31, 2024

I noticed the following in one of our downstream tests

\begin{theorem}
  Some ref-range equations inside a theorem.
  \begin{equation}
    x \tag{1}\label{refrange:thm:1}
    \end{equation}
    \begin{equation}
    y \tag{2}\label{refrange:thm:2}
    \end{equation}
    \begin{equation}
    z \tag{3}\label{refrange:thm:3}
    \end{equation}
  \end{theorem}

comes out as

<statement content-type="theorem theorem" id="ltxid66" style="thmplain">
            <label>Theorem 10</label>
            <p content-type="noindent">Some ref-range equations inside a theorem.</p>
            <disp-formula content-type="math/tex">
              <tex-math>\begin{equation}
 x  <target id="texmlid17"><tag parens="yes">1</tag></target>
\end{equation}</tex-math>
            </disp-formula>
            <p>
              <disp-formula content-type="math/tex">
                <tex-math>\begin{equation}
 y  <target id="texmlid23"><tag parens="yes">2</tag></target>
\end{equation}</tex-math>
              </disp-formula>
            </p>
            <disp-formula content-type="math/tex">
              <tex-math>\begin{equation}
 z  <target id="texmlid18"><tag parens="yes">3</tag></target>
\end{equation}</tex-math>
            </disp-formula>
</statement>

Note how only the middle one is wrapped in a p tag.

@pkra pkra added the bug Something isn't working label Jan 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant