- #1
Rajini
- 621
- 4
dear all..
I use the following code to generate a table...to my eyes i think no error..but still i get error..
But i can get the table only if i don't use the box brackets [ ] for the unit just below wavelength..when i make box bracket around the unit i always get error..
thanks
I use the following code to generate a table...to my eyes i think no error..but still i get error..
Code:
\begin{table}[h]
\caption{some fitting.}\label{tab:fit}
\vspace{3mm}
\centering
\begin{tabular}[width=1\linewidth]{llll}
\hline\hline
Wavenumber & FWHM & Area & Force constant\\
[cm$^{-1}$] & [cm$^{-1}$] & [cm$^{-2}$] & [N~m$^{-1}$]\\
\hline
19 & 1 & 1 & 5.9 \\
230 & 3 & 17 & 57.2 \\
2 & 1 & 23 & 7.8 \\
35 & 15 & 37 & 12.4 \\
314 & 30 & 3 & 121.2 \\
43 & 13.9 & 1 & 4.2 \\
\hline\hline
\end{tabular}
\end{table}
thanks