I think we need to avoid non-standard commands in general. Many people prefer to use different naming conventions for their $\LaTeX$ custom commands. For example I use double letter for blackboard bold fonts; f
prefix for Fraktur, c
for calligraphic, s
for script. So I would write \sF\subseteq\cP(\RR)\cap\fA
for $\mathscr F\subseteq\mathcal P(\mathbb R)\cap\mathfrak A$.
Forcing me to deviate from that and use \Z
, and equally appalling is forcing others to use my custom shortcuts is just wrong in my opinion.
As pointed out you can use the shorthand \Bbb{...}
for example $\Bbb{|R^N|=|R\setminus Q|=|N^N|}$ is just \Bbb{|R^N|=|R\setminus Q|=|N^N|}
.
For very long posts where you would use certain symbols often enough you can add \newcommand
at the top lines and use these in your post. Note that using that may cause ripple effects at any text using those commands below your redefined (or newly defined) commands.
$\Bbb Z$
yields $\Bbb Z$. $\endgroup$$\newcommand{\Z}{\mathbb Z}$
then you can use$\Z$
in the rest of your post. Like here: $\newcommand{\Z}{\mathbb Z}\Z$. This should be used carefully. You can have a look at other posts related to newcommand and def. $\endgroup$\newcommand
in my question. Then, if someone gets the Latex code of one of my formulas, can he just paste it into his answer? $\endgroup$