Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • M MathJax
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 304
    • Issues 304
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 15
    • Merge requests 15
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • MathJax
  • MathJax
  • Issues
  • #1568
Closed
Open
Issue created Jul 27, 2016 by Davide P. Cervone@dpvcContributor

Parsing problems with \def with templates

Currently, a template can match in the middle of a control sequence name. For example

\def\x#1b#2.{\texttt{#1}}
\x\abc.

will output \a since the b matches in the middle of the \abc.

Also, the code

\def\x#1\a#2.{\texttt{[#1][#2]}}
\x abc \abc abc \a def .

will output [abc ][bc abc \a def] rather than the expected [abc \abc abc ][ def ].

Assignee
Assign to
Time tracking