latex2e icon indicating copy to clipboard operation
latex2e copied to clipboard

bm does not handle commands defned via \NewDocumentCommand

Open davidcarlisle opened this issue 3 years ago • 4 comments

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.

davidcarlisle avatar Jan 10 '22 14:01 davidcarlisle

This issue has been automatically marked as stale because it has not had recent activity.

stale[bot] avatar Apr 16 '22 02:04 stale[bot]

This issue has been automatically marked as stale because it has not had recent activity.

stale[bot] avatar Aug 13 '22 04:08 stale[bot]