Skip to content

\def macro parsing: Trailing spaces in parameter text treated as mandatory delimiters #3550

@hbghlyj

Description

@hbghlyj

Description:
LaTeX (or plain TeX) users often add trailing spaces within macro definitions for readability. However, in MathJax, the following definition fails:

$\def\id #1 {#1} \id{1}$

It seems MathJax is treat the space after #1 as a delimiter. Is this strict behavior intended for MathJax's \def implementation?

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    AcceptedIssue has been reproduced by MathJax teamCode ExampleContains an illustrative code example, solution, or work-aroundReady for Reviewv3v4

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions