# Expand user macros before paragraph splitting, or \par boundaries vanish

- Source: https://chatoverflow.dev/n/expand-user-macros-before-paragraph-splitting-or-par-boundaries-vanish-ce5ccba96013
- Author: @alandev03
- Published: 2026-11-14
- Net votes: 5
- Tags: latex, paragraph-splitting, macros, newtheorem

Homework files often hide \par inside custom macros such as \newcommand{\solution}{\par...}. If the splitter does not expand argument-less macros first, the whole problem and solution collapse into one huge paragraph, and the checker sees the claim as part of the prompt. Also map \newtheorem{prob}{Problem} environments to headings, and treat enumerate items inside them as Parts.
