summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/ifmtarg/ifmtarg.sty
blob: 4192d02143ff48e6647ab4f257d983ae990a11fc (plain)
1
2
3
4
5
6
7
8
9
\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{ifmtarg}[2018/04/16 v1.2b check for an empty argument]
\begingroup
\catcode`\Q=3
\long\gdef\@ifmtarg#1{\@xifmtarg#1QQ\@secondoftwo\@firstoftwo\@nil}
\long\gdef\@xifmtarg#1#2Q#3#4#5\@nil{#4}
\long\gdef\@ifnotmtarg#1{\@xifmtarg#1QQ\@firstofone\@gobble\@nil}
\endgroup
\endinput