I would not be surprised if this has been asked before, but my searches did not yield any results. Neither would it surprise me if this is not possible without doing some really dangerous hacking of the TeX kernel or something. But allow me to ask anyway.
I use the following code as a shortcut for bold letters in math mode as recommended here:
\documentclass{memoir} \usepackage{amsmath,bm,amsfonts} \def\*#1{\bm{\mathrm{#1}}} \begin{document} Let $\*v$ be a vector in $\mathbb R^n$ with $A\*v = \*v$. \end{document} This is nice and handy in most contexts, but it sometimes gets tedious to write \*v inside the argument of other commands. For instance, I may want to write the derivative of \*v as \dot{\*v}. I wonder if there is a way to avoid having to write the {}s. Concretely, what I want is to redefine the command \* so that
$\dot\*v$ or even
$\dot\*{longvector}$ can be parsed correctly.
\*, but rather the definition of\dot, which takes 1 argument. Without braces, that argument is\*, which is not what you would desire.amsfontsmissing?\*before\dotand with the argument.\dot, but in general with commands taking only one argument.