josephwright / etoolbox

Tool-box for LaTeX programmers using e-TeX
LaTeX Project Public License v1.3c
41 stars 7 forks source link

\ifdefltxprotect takes wrong path for control symbols #12

Closed josephwright closed 7 years ago

josephwright commented 7 years ago

The \DeclareRobustCommand approach sets up control symbols differently from control words. The test used by \ifdefltxprotect will fail for the former so marks them as not using the LaTeX2e robustness mechanism. This has a knock-on effect on \robustify (see #9).