Skip to content

Indentation change when double dollar display math occurs inside itemize environment #795

@alexanderperlis

Description

@alexanderperlis

[This report concerns LaTeX2e <2025-06-01> pre-release-1 (develop 2025-2-4 branch) L3 programming layer <2025-01-18>. The indentation change reported here occurs with both pdflatex-dev and lualatex-dev.]

I came across the following type of situation in a document:

%\DocumentMetadata{testphase=latest}
\documentclass{article}

\begin{document}

This is a long paragraph spanning multiple lines to
show indentation, followed by an itemize:

\begin{itemize}

\item First item with double-dollar display math $$x=y$$ to consider.

\item Second item should remain aligned with the first.

\end{itemize}

This is a long paragraph spanning multiple lines to
again show indentation, this time following the itemize.

\end{document}

Without testphase=latest, the bullets are aligned as expected.

Image

With testphase=latest, all itemize material after the display loses its indentation.

Image

The workaround for authors is simple: use \[...\] instead of $$...$$. Reporting here in case there is interest in the possibility of preserving the ability for authors to use $$...$$ for unlabeled displays inside itemize.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions