I'm writing a thesis in physics. I need to use the, so called, 3-J, 6-J and 9-J symbols (please feel free to google). Instead of typing in matrices in every equation, I define these commands for the 3-J, 6-J and 9-J symbols, respectively:
Code: Select all
\newcommand{\tj}[9]{ \begin{pmatrix}
#1 & #2 & #3 \\
#4 & #5 & #6
\end{pmatrix}}
\newcommand{\Gj}[6]{ \begin{Bmatrix}
#1 & #2 & #3 \\
#4 & #5 & #6
\end{Bmatrix}}
\newcommand{\gj}[9]{ \begin{Bmatrix}
#1 & #2 & #3 \\
#4 & #5 & #6 \\
#7 & #8 & #9
\end{Bmatrix}}
For example, this does not work:
Code: Select all
\begin{equation}
\gj{1}{2}{3}{4}{5}{6}{7}{8}{9} \tj{1}{2}{3}{4}{5}{6}
\end{equation}