I have a problem with the table below. I tried to fix it but it still gives the same error. I get this error:
! Missing $ inserted.<inserted text>$ \textbf{\rho (kg/m^{3})} and !
Extra }, or forgotten $.<recently read> \egroup \textbf{\rho
(kg/m^{3})}
Table:
\begin{center} \textbf{Table4-1: Parameters used}
\begin{tabular}{|c|c|c|c|c|c|}
\hline
\textbf{\rho (kg/m^{3})} & \textbf{W (m)} & \textbf{H (m)} & \textbf{L (m)} & \textbf{E (N/m^{2})} & \textbf{m (kg/m)} \\ \hline
2500 & 0.3 & 0.3 & 4 & 30x10^{9} & 225 \\ \hline
\end{tabular}
\end{center}
Best Answer
A solution with
makecell
andsiunitx
. The former allows for a common formatting of column heads anf gives tools for some vertical padding of rows. The latter has macros for a conistent formatting of numbers (num
command) and units (\si
command):