Skip to content

Deeply nested lists abort the PDF build (LaTeX list-nesting limit) #98

Description

@asluk

Summary

A Markdown list nested beyond LaTeX's default limit (~4 levels) aborts the PDF build with LaTeX Error: Too deeply nested. Nothing in the Markdown signals to an author that they've exceeded a renderer limit, so the failure is surprising and the only recourse today is to restructure the prose.

Context

Hit while building the Geometry spec: a six-level bullet list in the Imageable section aborted the PDF build. It was worked around content-side (flattened to four levels), but the build itself should tolerate deeper nesting so authored content isn't silently constrained by the LaTeX renderer.

Suggested fix (direction, not yet validated)

Load enumitem in template/after-header-includes.latex and raise the list-nesting cap, e.g.:

\usepackage{enumitem}
\setlistdepth{9}
\renewlist{itemize}{itemize}{9}
\setlist[itemize]{label=\textbullet}
\renewlist{enumerate}{enumerate}{9}

(define per-level labels as desired). Validate that deep itemize/enumerate render, and check interaction with the existing titlesec setup.

Notes

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions