I've not tried much with tables yet. What I would like to achieve is a heading spanning two columns with the line dividing columns below centered under this heading.
This is my minimum working example:
Code: Select all
\documentclass[]{article}
\usepackage{multicol}
\begin{document}
\begin{tabular}{c|c}
\multicolumn{2}{c}{Hello world,multicols}\\
6 & 7.4\\
5 & 5.3\\
3 & 3.5\\
\end{tabular}
\end{document}
I would like that column divider to be centered with the heading 'Hello world, multicols' and then the numbers to be centered with the space under the heading on either side of the column divider.
Can this be done easily?
Many thanks in advance,
Dicky