1) tabular
2) xypic
3) framebox
However, With tabular it seems only the width of the rightmost collumn is adjusted when adding a \multicolumn row in the table with a length longer than the sum length of the collumns its "merging".
Code: Select all
\framebox{
\xymatrix{
{
\begin{tabular}{|c|c|c|}
\hline
1 & 2 & 3 \\ \hline
\multicolumn{3}{|c|}{activity} \\ \hline
7 & 8 & 9 \\ \hline
\end{tabular}
} \ar[rd] \\ &
{
\begin{tabular}{|c|c|c|}
\hline
1 & 2 & 3 \tabularnewline \hline
\multicolumn{3}{|c|}{activity 2 with a longer line} \tabularnewline \hline
7 & 8 & 9 \tabularnewline \hline
\end{tabular}
}\ar@/^2cm/[ul]
}
}
Code: Select all
/documentclass[12pt,a4paper]{article}
\usepackage[left=2cm,top=1.5cm,right=3cm]{geometry}
\usepackage{xypic}
\usepackage{tabulary}
\begin{document} ...

I was wondering if there was a way of fixing this in tabular? And i want it to be automatically adjusting, not having to manually specify the width of all the collums

apologising for my inability to describe the problem in more detail, im fairly new to latex.