Wikiversity:Semantic templates/Operation tables/Latex

\newcommand{\operationtableone}[2]{\begin{center} \begin{tabular}{|c||c|} \hline #1 \\ \hline \hline #2 \\ \hline \end{tabular} \end{center} }

\newcommand{\operationtabletwo}[3]{\begin{center} \begin{tabular}{|c||c|c|} \hline #1 \\ \hline \hline #2 \\ \hline #3 \\ \hline \end{tabular} \end{center} }

\newcommand{\operationtablethree}[4]{\begin{center} \begin{tabular}{|c||c|c|c|} \hline #1 \\ \hline \hline #2 \\ \hline #3 \\ \hline #4 \\ \hline \end{tabular} \end{center} }

\newcommand{\operationtablefour}[5]{\begin{center} \begin{tabular}{|c||c|c|c|c|} \hline #1 \\ \hline \hline #2 \\ \hline #3 \\ \hline #4 \\ \hline #5 \\ \hline \end{tabular} \end{center} }

\newcommand{\operationtablefive}[6]{\begin{center} \begin{tabular}{|c||c|c|c|c|c|} \hline #1 \\ \hline \hline #2 \\ \hline #3 \\ \hline #4 \\ \hline #5 \\ \hline #6 \\ \hline \end{tabular} \end{center} }

\newcommand{\operationtablesix}[7]{\begin{center} \begin{tabular}{|c||c|c|c|c|c|c|} \hline #1 \\ \hline \hline #2 \\ \hline #3 \\ \hline #4 \\ \hline #5 \\ \hline #6 \\ \hline #7 \\ \hline \end{tabular} \end{center} }

\newcommand{\operationtableseven}[8]{\begin{center} \begin{tabular}{|c||c|c|c|c|c|c|c|c|} \hline #1 \\ \hline \hline #2 \\ \hline #3 \\ \hline #4 \\ \hline #5 \\ \hline #6 \\ \hline #7 \\ \hline #8 \\ \hline \end{tabular} \end{center} }

\newcommand{\operationtableeight}[9]{\begin{center} \begin{tabular}{|c||c|c|c|c|c|c|c|c|} \hline #1 \\ \hline \hline #2 \\ \hline #3 \\ \hline #4 \\ \hline #5 \\ \hline #6 \\ \hline #7 \\ \hline #8 \\ \hline #9 \\ \hline \end{tabular} \end{center} }