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}
can anyone help please
Thanks
Max
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}
PostgraduateForum Is a trading name of FindAUniversity Ltd
FindAUniversity Ltd, 77 Sidney St, Sheffield, S1 4RG, UK. Tel +44 (0) 114 268 4940 Fax: +44 (0) 114 268 5766
An active and supportive community.
Support and advice from your peers.
Your postgraduate questions answered.
Use your experience to help others.
Enter your email address below to get started with your forum account
Enter your username below to login to your account
An email has been sent to your email account along with instructions on how to reset your password. If you do not recieve your email, or have any futher problems accessing your account, then please contact our customer support.
or continue as guest
To ensure all features on our website work properly, your computer, tablet or mobile needs to accept cookies. Our cookies don’t store your personal information, but provide us with anonymous information about use of the website and help us recognise you so we can offer you services more relevant to you. For more information please read our privacy policy
Agree Agree