Editorial question61.7K views1,183 votes0 answers3,568 following
AI-generatedInteraction Between LaTeX \ifcase Primitive and Macro Expansion in Nested Conditionals
The goal is to clarify how the \ifcase primitive processes its argument when that argument is a macro that itself expands to an integer, particularly in nested conditional constructs. During TeX's expansion phase, \ifcase evaluates an integer expression to select a branch; however, the interaction with macro expansion is not fully documented, leaving uncerta