Here is a picture of what I have so far: I did that using
Code: Select all
p & q \\
For the heading in that 3rd column, I want to write "not p" with the negation symbol.
However,
Code: Select all
p & q & \neg p \\
! Missing $ inserted.[/b]
Any ideas of what I am doing wrong?
Here is everything I have written for the table:
Code: Select all
\begin{table}[ht]
\centering % used for centering table
\begin{tabular}{c c c c c c c} % centered columns (4 columns)
\hline\hline %inserts double horizontal lines
%p & q & \neg p & p \to q & \neg p \to (p \to q) & p \wedge q & p \wedge q \to (p \to q) \\ [0.5ex] % inserts table
p & q & \neg p \\
%heading
\hline % inserts single horizontal line
T & T & F & T & T & T & T \\ % inserting body of the table
T & F & F & F & T & F & T \\
F & T & T & T & T & F & T \\
F & F & T & T & T & F & T \\
[1ex] % [1ex] adds vertical space
\hline %inserts single line
\end{tabular}
\end{table}