Jump to content

Wikiversity:Semantic templates/Value tables/Latex

From Wikiversity

\newcommand{\valuetablepreskip}{\par \bigskip}

\newcommand{\valuetablepostskip}{\par \bigskip}

\newcommand{\valuetableonefromsubrows}[4]{\valuetablepreskip \begin{tabular}{|c|c|} \hline #1 & #2 \\ \hline #3 & #4 \\ \hline \end{tabular} \valuetablepostskip }


\newcommand{\valuetabletwofromsubrows}[4]{\valuetablepreskip \begin{tabular}{|c|c|c|} \hline #1 & #2 \\ \hline #3 & #4 \\ \hline \end{tabular} \valuetablepostskip }


\newcommand{\valuetablethreefromsubrows}[4]{\valuetablepreskip \begin{tabular}{|c|c|c|c|} \hline #1 & #2 \\ \hline #3 & #4 \\ \hline \end{tabular} \valuetablepostskip }


\newcommand{\valuetablefourfromsubrows}[4]{\valuetablepreskip \begin{tabular}{|c|c|c|c|c|} \hline #1 & #2 \\ \hline #3 & #4 \\ \hline \end{tabular} \valuetablepostskip }


\newcommand{\valuetablefivefromsubrows}[4]{\valuetablepreskip \begin{tabular}{|c|c|c|c|c|c|} \hline #1 & #2 \\ \hline #3 & #4 \\ \hline \end{tabular} \valuetablepostskip }


\newcommand{\valuetablesixfromsubrows}[6]{\valuetablepreskip \begin{tabular}{|c|c|c|c|c|c|c|} \hline #1 & #2 & #3 \\ \hline #4 & #5 & #6 \\ \hline \end{tabular} \valuetablepostskip }


\newcommand{\valuetablesevenfromsubrows}[6]{\valuetablepreskip \begin{tabular}{|c|c|c|c|c|c|c|c|} \hline #1 & #2 & #3 \\ \hline #4 & #5 & #6 \\ \hline \end{tabular} \valuetablepostskip }


\newcommand{\valuetableeightfromsubrows}[6]{\valuetablepreskip \begin{tabular}{|c|c|c|c|c|c|c|c|c|} \hline #1 & #2 & #3 \\ \hline #4 & #5 & #6 \\ \hline \end{tabular} \valuetablepostskip }


\newcommand{\valuetableninefromsubrows}[6]{\valuetablepreskip \begin{tabular}{|c|c|c|c|c|c|c|c|c|c|} \hline #1 & #2 & #3 \\ \hline #4 & #5 & #6 \\ \hline \end{tabular} \valuetablepostskip }


\newcommand{\valuetabletenfromsubrows}[6]{\valuetablepreskip \begin{tabular}{|c|c|c|c|c|c|c|c|c|c|c|} \hline #1 & #2 & #3 \\ \hline #4 & #5 & #6 \\ \hline \end{tabular} \valuetablepostskip }

\newcommand{\valuetableelevenfromsubrows}[8]{\valuetablepreskip \begin{tabular}{|c|c|c|c|c|c|c|c|c|c|c|c|} \hline #1 & #2 & #3 & #4 \\ \hline #5 & #6 & #7 & #8 \\ \hline \end{tabular} \valuetablepostskip }