When combining multirow
and multicolumn
in the same cell of a table I am getting extra vertical lines:
\documentclass[plain]{article}
\usepackage{multirow}
\pagestyle{empty}
\begin{document}
\begin{tabular}{|l|l|l|l|}\hline
\multirow{10}{*}{numeric literals} & \multirow{5}{*}{integers} & in decimal & \verb|8743| \\ \cline{3-4}
& & \multirow{2}{*}{in octal} & \verb|0o7464| \\ \cline{4-4}
& & & \verb|0O103| \\ \cline{3-4}
& & \multirow{2}{*}{in hexadecimal} & \verb|0x5A0FF| \\ \cline{4-4}
& & & \verb|0xE0F2| \\ \cline{2-4}
& \multirow{5}{*}{fractionals} & \multirow{5}{*}{in decimal} & \verb|140.58| \\ \cline{4-4}
& & & \verb|8.04e7| \\ \cline{4-4}
& & & \verb|0.347E+12| \\ \cline{4-4}
& & & \verb|5.47E-12| \\ \cline{4-4}
& & & \verb|47e22| \\ \cline{1-4}
\multicolumn{3}{|l|}{\multirow{3}{*}{char literals}} & \verb|'H'| \\ \cline{4-4}
& & & \verb|'\n'| \\ \cline{4-4}
& & & \verb|'\x65'| \\ \cline{1-4}
\multicolumn{3}{|l|}{\multirow{2}{*}{string literals}} & \verb|"bom dia"| \\ \cline{4-4}
& & & \verb|"ouro preto\nmg"| \\ \cline{1-4}
\end{tabular}
\end{document}
Notice the vertical lines in the char literals
and string literals
cells (which should span three columns). How can they be avoided?