1, the merged column, using \ {multicolumn format across columns} {} {} filling contents
\ documentclass [UTF8] {ctexart} \ the begin {the Document} after three prisoners were 300 experiments \ ldots \ ldots \ the begin {the Tabular} { | c | c | c | } \ hline pardoned prisoners & \ multicolumn { 2 {} | c | } {a guard told \\ name} \ hline $ a \ qquad 100 / 300 $ 50 B & times & C 50 times \\ \ hline $ B \ qquad 100 / 300 $ & \ multicolumn { 2 {} | C | } {100 times C \\} \ hline $ C \ qquad 100 / 300 $ & \ multicolumn { 2 } {| C | } {B 100 views \\} \ hline \} End {Tabular \end{document}
Results as shown:
2. Consolidated row. For merge row we are using \ cline command. This command is a bit like our \ hline this command. Both of them are used to draw horizontal lines of the table, but \ Cline can be used to specify start and end positions of the line drawing.
Key also use the command: multirow command.
First, reference packages in the preamble: \ usepackage} {MultiRow
Secondly, the command format: \ MultiRow} {the number of rows of cross-filling contents *} {
\ DocumentClass [the UTF8] {ctexart} \ usepackage {MultiRow} \ the begin {Document} \ the begin {Tabular} { | C | R & lt | R & lt | } \ hline \ MultiRow { 2 } * {name} & \ multicolumn { 2 } { c |} {\\ results} \ {Cline 2 - . 3 } & language & mathematical \\ \ hline Zhang & 87 & 100 \\ \ hline \ Tabular End {} \} End {Document
The following effects: