Use \newcommand with variable math environment
8649
How can I write a macro which enters math mode when called in text mode but when called in mathmode doesn't break?
3320
newcommand for index inserts unwanted spaces when using {}
97205
Using \newcommand with ellipse in tikz
117166
How to declare an operator with automatic argument bracketing
94841
How can I compare a dynamic variable with a literal in Mathematica?
20731
Can command substitution be nested in variable substitution?
134667
How can I set an environment variable which contains newline characters?
130838
Perform floating point arithmetic in shell script variable definitions
77749
Settting PGFplots axis environment options by means of \newcommand and {\newlength,\setlength}
46768
\newcommand and spacing
33467
How to redefine a command using \DeclareMathOperator
141549
Automatically numbering constants
118593
Which command should I use for textual subscripts in math mode?
57604
Set variable conditionally on command line
32002
Providing command key-value arguments with commas in value
47308
Is there a script that reads a TeX file and replaces every instance of a \newcommand?
5647
Command to display and execute code (math formulae)