General ⇒ Unable to compile
Unable to compile
\documentclass{article}
\begin{document}
\begin{table}
\begin{tabular}{•}
\begin{array}{|c |c|c|}
p & q & p \implies q\\
\hline
T & T & T
T & F & F
F & T & T
F & F & T
\end{array}
\end{tabular}
\end{document}
This results in the following error:
! LaTeX Error: Illegal character in array arg.
See the LaTeX manual or LaTeX Companion for explanation.
Type H <return> for immediate help.
...
l.4 \begin{tabular}{•}
?
Learn LaTeX easily with newest books:
The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis
The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more
LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis
- Ijon Tichy
- Posts: 640
- Joined: Mon Dec 24, 2018 10:12 am
Unable to compile
-
*
is not a valid column declaration fortabular
but a multiplier that expects two arguments. -
array
needs the math mode -
\implies
is undefined without package, that defines it - The array row ends are missing.
-
\begin{table}
without\end{table}
Code: Select all
\documentclass{article}
\usepackage{mathtools}
\begin{document}
\[
\begin{array}{|c|c|c|}
p & q & p \implies q\\
\hline
T & T & T \\
T & F & F \\
F & T & T \\
F & F & T \\
\end{array}
\]
\end{document}
table
environment, because table
without \caption
mostly does not make sense.Please read an introduction to LaTeX. You won't become happy with LaTeX without reading at least a short introduction but I would suggest to read a detailed one.
BTW: Vertical rules/lines in tabulars/tables are awful. See the manual of package booktabs for information how to make nice tabulars/tables.
