Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for mqty (physics package) and similar latex3/xparse syntax #262

Open
LecrisUT opened this issue Mar 28, 2022 · 0 comments
Open

Comments

@LecrisUT
Copy link

The syntax for mqty is like \mqty(A&B\\C&D). The issue is that latexdiff incorrectly picks up the \\ as a breakline between math lines so we get something like \DiffADD{\mqty(A&B}\\\DiffADD{C&D)} which breaks compilation.

The correct behavior would be to allow for additional delimiter tokens beyond {} like ()[]<> etc. for a command declared by \declaredocumentcommand{ d<token1><token2> and similar latex3/xparse syntax. It would be excessive for the mqty case to handle individual subitems, so for this situation a mbox or similar protector would be sufficient.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant