latex2e
latex2e copied to clipboard
bm does not handle commands defned via \NewDocumentCommand
Brief outline of the enhancement
Minimal example
see also https://tex.stackexchange.com/a/629690
This example loops forever (other error conditions are possible depending on the argument signature specified)
\documentclass{article}
\usepackage{bm}
\NewDocumentCommand\zzvel{O{}}{\alpha}
\begin{document}
$\alpha+\zzvel+\bm{\alpha}+\bm{\zzvel}$
\end{document}
bm should really not loop here, it could probably expand out simple cases and make a bold form (this works already for the no argument case) or failing that it should drop back to the \boldsymbol
form by detecting the xparse argument grabbing handlers after the first expansion step.
This issue has been automatically marked as stale because it has not had recent activity.
This issue has been automatically marked as stale because it has not had recent activity.