So I am trying to write some latex code to render a table but when I give the parameter of four columns (\begin{tabular}{|c|c|c|c|}) it renders all nice and fine.
But then I use 5 columns and it won't render.
Code:
$$
\begin{tabular}{ |c|c|c|c|c| }
\hline
& $(x-1)$ & $(3x+4)$ & $x^2+2x+5$ & \frac{x^2 + 2x + 5}{3x^2 - x - 4}\\
\hline
$-1<x<\frac{4}{3}$ & $-$ & $+$ & +\\
\hline
$x<-1$ & \\
\hline
$x=-1$ & 1\\
\hline
$x>\frac{4}{3}$ & 4\\
\hline
$x=\frac{4}{3}$ & 2\\
\hline
\end{tabular}
$$
tabular, use\begin{table} \centering ... \end{table}for that, it was designed specifically for this. – Gargantuar Jul 13 '23 at 21:03