What I want to do is to shorten this \newcommand with a \foreach since this is just a very little part of what I will use.
\newcommand{\CC}{{\mathbb C}} % the set of complex numbers
\newcommand{\NN}{{\mathbb N}} % the set of natural numbers
\newcommand{\QQ}{{\mathbb Q}} % the set of rational numbers
\newcommand{\ZZ}{{\mathbb Z}} % the set of integer numbers
\newcommand{\DD}{{\mathbb D}} % the unit disk
\newcommand{\RR}{{\mathbb R}} % the set of real numbers
\newcommand{\TT}{{\mathbb T}} % the unit circle (the one dimensional torus)
I tried this but it gives an error saying that command \x is already defined. Any suggestions?
\usepackage{amssymb}
\usepackage{pgffor}
\foreach \x in {C,N,Q,Z,D,R,T}
{
\newcommand{\x\x}{{\matbb{\x}}}
};

