latest blog posts
 A Complete Travel Gui… Things to do after re… Step by step guide fo… Digital book free: st… Free digital book int… New start Writing A+ High Disti… 32 global reach free … Generous foreign aid … Generous foreign aid …
top 10 posters
 member posts sneaks 9243 H 5281 olivia 4141 404 4119 sylvester 4092 Walminskipeasu… 3963 Lara 3929 BilboBaggins 3744 Tricky 3395 chrisrolinski 3392

# Tables help in Latex

posted
11-Apr-18, 22:31
by maxipat
I am trying to compile my thesis in Latex and am getting multiple errors for my tables. The error I get says" Latex Error: Illegal character in array arg. My table look like the one below:

\begin{table}[h]
\centering
\begin{tabular}{||{2 cm}||{8 cm}||}
\hline
\multicolumn{2}{|c|}{Internal Combustion Engine Operating Speeds} \\
\hline
Number of Cylinders & Engine Speed\\
\hline
1 & 2500 rev/min \\
\hline
$>$ 1 & 1500 rev/min \\
\hline
\end{tabular}
\caption{Internal Combustion Engine Operating Speeds. }
\label{tab:Engine}
\end{table}

Thanks
Max
posted
12-Apr-18, 03:38
by pm133
You are missing a qualifer before {2 cm} and {8cm}.

I have used 'p' but 'm' also works. You'll need to play around with this because I don't really understand the formatting and frankly the latex documentation is dreadful.
The following will get your code to compile and display the table as a first step though.

\begin{table}[h]
\centering
\begin{tabular}{||p{2 cm}||p{8 cm}||}
\hline
\multicolumn{2}{|c|}{Internal Combustion Engine Operating Speeds} \\
\hline
Number of Cylinders & Engine Speed\\
\hline
1 & 2500 rev/min \\
\hline
$>$ 1 & 1500 rev/min \\
\hline
\end{tabular}
\caption{Internal Combustion Engine Operating Speeds. }
\label{tab:Engine}
\end{table}