Skip to content

Instantly share code, notes, and snippets.

@vermiculus
Created December 12, 2014 14:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vermiculus/7f9b7a84351f1babc3bc to your computer and use it in GitHub Desktop.
Save vermiculus/7f9b7a84351f1babc3bc to your computer and use it in GitHub Desktop.
\usepackage{xparse}
\ExplSyntaxOn
\cs_new:Npn \dd_parse:nn #1, #2 \q_stop:
{
\frac { \mathrm {d} #1 }
{ \mathrm {d} #2 }
}
\NewDocumentCommand \dd { r[] }
{
\dd_parse:nn #1 \q_stop:
}
\ExplSyntaxOff
% This can be made much more clever with l3clist, but I do not have my reference in front of me.
@vermiculus
Copy link
Author

untested

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment