Latex multicolumn problems
Posted
by midtiby
on Stack Overflow
See other posts from Stack Overflow
or by midtiby
Published on 2010-04-28T12:34:36Z
Indexed on
2010/04/28
12:43 UTC
Read the original article
Hit count: 298
latex
|multicolumn
Hi
I am trying to build a table in latex where five columns have a common title centered above the columns. But the generated table does not appear as expected. (the common title is left justified instead of centered above the columns)
The code looks like
\documentclass{article}
\begin{document}
\begin{table}
\centering
\begin{tabular}{|l|c|c|c|r|}
\multicolumn{5}{c}{Hydrotalcite} \\
\hline
kalhsdfsa & 1 asdf asf asfa &7as dfas fasdf as0 & 003 \\
kalhsdfsa & 1 asdf asf asfa &7as dfas fasdf as0 & 003 \\
kalhsdfsa & 1 asdf asf asfa &7as dfas fasdf as0 & 003
\end{tabular}
\caption{lala}
\label{tabTableRefereaSDasdnce}
\end{table}
\end{document}
And I'm running miktex 2.8 on Windows XP
© Stack Overflow or respective owner