Wikiversity:Semantic templates/Tables/Latex
\newcommand{\tablefourfour}[4]{\par \bigskip \begin{tabular}{|c|c|c|c|} \hline #1 \\ \hline #2 \\ \hline #3 \\ \hline #4 \\ \hline \end{tabular}}
\newcommand{\tablefivefour}[5]{\par \bigskip \begin{tabular}{|c|c|c|c|c|} \hline #1 \\ \hline #2 \\ \hline #3 \\ \hline #4 \\ \hline #5 \\ \hline \end{tabular}}
% math. entries - no lead row
\newcommand{\mathtabletwofour}[5]{\begin{center} \begin{tabular}{|c|c|} \hline #2 \\ \hline #3 \\ \hline #4 \\ \hline #5 \\ \hline \end{tabular} \end{center} }
\newcommand{\mathtabletwofive}[6]{\begin{center} \begin{tabular}{|c|c|} \hline #2 \\ \hline #3 \\ \hline #4 \\ \hline #5 \\ \hline #6 \\ \hline \end{tabular} \end{center} }
\newcommand{\mathtabletwosix}[7]{\begin{center} \begin{tabular}{|c|c|} \hline #2 \\ \hline #3 \\ \hline #4 \\ \hline #5 \\ \hline #6 \\ \hline #7 \\ \hline \end{tabular} \end{center} }
\newcommand{\mathtabletwoseven}[8]{\begin{center} \begin{tabular}{|c|c|} \hline #2 \\ \hline #3 \\ \hline #4 \\ \hline #5 \\ \hline #6 \\ \hline #7 \\ \hline #8 \\ \hline \end{tabular} \end{center} }
% math. entries - lead row
\newcommand{\mathtableseventwelve}[3]{\begin{center} \begin{tabular}{|c||c|c|c|c|c|c|c|} \hline #1 \\ \hline \hline #2 \\ \hline #3 \\ \hline \end{tabular} \end{center} }
\newcommand{\mathtabletwelvetwelve}[3]{\begin{center} \begin{tabular}{|c||c|c|c|c|c|c|c|c|c|c|c|c|} \hline #1 \\ \hline \hline #2 \\ \hline #3 \\ \hline \end{tabular} \end{center} }
\newcommand{\mathtablethreenine}[5]{\begin{center} \begin{tabular}{|c|c|c|}\hline #1 \\ \hline #2 \\ \hline #3 \\ \hline #4 \\ \hline #5 \\ \hline \end{tabular} \end{center} }
\newcommand{\mathtablethreeten}[6]{\begin{center} \begin{tabular}{|c|c|c|}\hline #1 \\ \hline #2 \\ \hline #3 \\ \hline #4 \\ \hline #5 \\ \hline #6 \\ \hline \end{tabular} \end{center} }
\newcommand{\mathtablethreeeleven}[6]{\begin{center} \begin{tabular}{|c|c|c|}\hline #1 \\ \hline #2 \\ \hline #3 \\ \hline #4 \\ \hline #5 \\ \hline #6 \\ \hline \end{tabular} \end{center} }