Projekt:Semantische Vorlagen/Wahrheitstabellen/Latex
\newcommand{\tabellenzeiledrei}[3]{ #1 & #2 & #3 } \newcommand{\tabellenzeilevier}[4]{ #1 & #2 & #3 & #4 } \newcommand{\tabellenzeilefuenf}[5]{ #1 & #2 & #3 & #4 & #5} \newcommand{\tabellenzeilesechs}[6]{ #1 & #2 & #3 & #4 & #5 & #6 } \newcommand{\tabellenzeilesieben}[7]{ #1 & #2 & #3 & #4 & #5 & #6 & #7 } \newcommand{\tabellenzeileacht}[8]{ #1 & #2 & #3 & #4 & #5 & #6 & #7 & #8} \newcommand{\tabellenzeileneun}[9]{ #1 & #2 & #3 & #4 & #5 & #6 & #7 & #8 & #9 }
\newcommand{\tabellendoppelzeilevier}[8]{ #1 & #2 & #3 & #4 \\ \hline #5 & #6 & #7 & #8}
\newcommand{\wahrheitstabelleeins}[4]{
\begin{center}
\begin{tabular}{|c|c|}
\multicolumn{2}{l}{\textbf{#1}}\\
\hline
$p$ & $#2$\\ \hline
w & #3 \\ \hline
f & #4\\ \hline
\end{tabular}
\end{center} }
\newcommand{\wahrheitstabelleeinszwei}[7]{ \begin{center} \begin{tabular}{|c|c|c|} \multicolumn{3}{l}{\textbf{#1}}\\ \hline $p$ & $#2$ & $#5$ \\ \hline w & #3 & #4 \\ \hline f & #6 & #7 \\ \hline \end{tabular} \end{center} }
\newcommand{\wahrheitstabelleeinsdrei}[4]{ \begin{center} \begin{tabular}{|c|c|c|c|} \multicolumn{4}{l}{\textbf{#1}} \\ \hline #2 \\ \hline #3 \\ \hline #4 \\ \hline \end{tabular} \end{center} }
%Wahrheitstabellen mit zwei Variablen p und q
\newcommand{\wahrheitstabellezweieins}[6]{ \begin{center} \begin{tabular}{|c|c|c|} \multicolumn{3}{l}{\textbf{#1}} \\ \hline #2 \\ \hline #3 \\ \hline #4 \\ \hline #5 \\ \hline #6 \\ \hline \end{tabular} \end{center} }
\newcommand{\wahrheitstabellezweizwei}[6]{ \begin{center} \begin{tabular}{|c|c|c|c|} \multicolumn{4}{l}{\textbf{#1}} \\ \hline #2 \\ \hline #3 \\ \hline #4 \\ \hline #5 \\ \hline #6 \\ \hline\end{tabular} \end{center} }
\newcommand{\wahrheitstabellezweidrei}[6]{ \begin{center} \begin{tabular}{|c|c|c|c|c|} \multicolumn{5}{l}{\textbf{#1}} \\ \hline #2 \\ \hline #3 \\ \hline #4 \\ \hline #5 \\ \hline #6 \\ \hline \end{tabular} \end{center} }
\newcommand{\wahrheitstabellezweivier}[6]{ \begin{center} \begin{tabular}{|c|c|c|c|c|c|} \multicolumn{6}{l}{\textbf{#1}} \\ \hline #2 \\ \hline #3 \\ \hline #4 \\ \hline #5 \\ \hline #6 \\ \hline \end{tabular} \end{center} }
\newcommand{\wahrheitstabellezweifuenf}[6]{ \begin{center} \begin{tabular}{|c|c|c|c|c|c|c|} \multicolumn{7}{l}{\textbf{#1}} \\ \hline #2 \\ \hline #3 \\ \hline #4 \\ \hline #5 \\ \hline #6 \\ \hline \end{tabular} \end{center} }
%Wahrheitstabellen mit drei Variablen p,q,r
\newcommand{\wahrheitstabelledreieins}[6]{ \begin{center} \begin{tabular}{|c|c|c|c||} \multicolumn{4}{l}{\textbf{#1}} \\ \hline #2 \\ \hline #3 \\ \hline #4 \\ \hline #5 \\ \hline #6 \\ \hline
\end{tabular} \end{center} }