I want to draw a multicolumn table, such that for every row, the second and third columns are divided into two parts, and there is a dashed line separating the two parts. Currently, I have something like this:
\documentclass[a4paper]{paper}
\usepackage{multirow}
\usepackage{makecell}
\usepackage{arydshln}
\begin{document}
\begin{table}[h]
\centering
\begin{tabular}{|*{7}{c|}}
\hline
\multirowcell{2}{Function} & \multicolumn{1}{c|}{Input(s)} & \multicolumn{1}{c|}{Output(s)} & \multicolumn{4}{c|}{Operations} \\
\cdashline{2-3} \cline{4-7}
& Type(s) & Type(s) & M & S & a & I \\
\hline
$\mathtt{j\_inv}$ & $(A, C)$ \\ $K \times K$ & $j(E)$ \\ $K$ & 3 & 4 & 8 & 1 \\ \hline
\end{tabular}
\caption{Summary of functions}
\label{tab:functions}
\end{table}
\end{document}
The point is that the table header is exactly as I want, but then in the second row when I start to actually write the values, I do not know how to make the second and third column divided into two parts like their header, and divided by a dashed line. Simply, I put the newline symbol between the two parts, but it does not give the desired effect of course. Any ideas how to achieve what I want?
$(A, C)$ \\ $K
, how this should be displayed is that ` $(A, C)$` should be at the top, then a dashed line comes and then$K$
underneath the dashed line. Similar idea for the third column too. I achieve that for the headers, but don't know how to achieve that for the actual values. – pixel Apr 3 '18 at 15:54arydshln
needs to be loaded last. – pixel Apr 3 '18 at 15:58