# How can I make a truth table?

For some questions and answers - I would have liked to make a truth table.

Is there a way to make a truth table OR generally any table?

Yes, tables are possible with MathJax. Here's an example, taken from Mathematics.SE:

$$\begin{array}{c|lcr} n & \text{Left} & \text{Center} & \text{Right} \\ \hline 1 & 0.24 & 1 & 125 \\ 2 & -1 & 189 & -8 \\ 3 & -20 & 2000 & 1+10i \end{array}$$

This table was created with the following MathJax code:

$$\begin{array}{c|lcr} n & \text{Left} & \text{Center} & \text{Right} \\ \hline 1 & 0.24 & 1 & 125 \\ 2 & -1 & 189 & -8 \\ 3 & -20 & 2000 & 1+10i \end{array}$$


So, here's a simple truth table example:

$$p \land q \\ \begin{array}{c|c} p & q & p \land q \\ \hline T & T & T \\ T & F & F \\ F & T & F \\ F & F & F \\ \end{array}$$

$$p \land q \\ \begin{array}{c|c} p & q & p \land q \\ \hline T & T & T \\ T & F & F \\ F & T & F \\ F & F & F \\ \end{array}$$

• Thanks a ton for clearing it up @Doorknob :) – pranav Jan 1 '15 at 4:34

Doorknob's answer is perfect, but I would like to point to an easy-alternative (useful in some cases): Use Windword/Excel/whatever to create your table. Do a quick screen-shot (CTRL + Print) and cut out the table from the image (to keep file-size small.) Then upload as an image.

(Disadvantages, of course, no copy&paste of the content for readers and not so easy to correct.)