Skip to content

[bug?] Using $$ to delimit mathematics breaks line numbering in the enclosing environment. #263

@cdesaintguilhem

Description

@cdesaintguilhem

The following minimal code:

\documentclass[version=submission]{iacrcc}

\begin{document}

\begin{definition}
  This definition has line numbers as expected.
\end{definition}

\begin{definition}[test]
  However, if I write a long definition with an equation written with \verb|$$|
  delimiters such as this one:
  $$ 2 + 2 = 5, $$
  then the lines before the equation no longer have line numbers. But the ones
  afterwards do.
\end{definition}

\begin{itemize}
  \item It seems like it happens in other environments.
  \item The previous item didn't have maths using \verb|$$|.
    $$ 9.\dot{9} = 10 \implies 0 = 1 $$
    However this one does and the line number between the start of the item and
    the end of the maths have disappeared.
  \item On the other hand, this is not the case with \verb|\[ \]| delimiters.
    \[ \sum_{i=0}^{\infty} (-1)^{i} \frac{1}{2i + 1} = \frac{\pi}{4} \]
\end{itemize}

\end{document}

produces a PDF where some line numbers are missing.

I did a quick search for issues and PRs related to line numbering but couldn't find anything; my apologies if this is a duplicate.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions