# Multirow and Two Lines in One Cell on Table

TeX - LaTeX Asked by Lis on December 4, 2020

I have problems here is table that I will rewrite.

Then I write code like this:

documentclass{article}
begin{document}
begin{tabular}{|c|c|c|c|c|}
hline
Tipe Opsi&CBBC&textit{Behavior}&textit{Payoff}& \
hline
multirow{8}{*}{Barrier textit{Call}}& multirow{2}{*}{textit{Bull}}&multirow{2}{*}{begin{tabular}{@{}[email protected]{}}textit{down-and-out} \ (textit{knock-out})end{tabular}}&multirow{2}{*}{$(S_T-K)^+mathbbm{1}_{biggl{minlimits_{0leq tleq T}S_t>Bbiggr}}$}&$Bleq K$\
cline{5}
&&&&$Bgeq K$\
cline{2-5}
&multirow{6}{*}{}&multirow{2}{*}{begin{tabular}{@{}[email protected]{}}textit{down-and-in}\(textit{knock-in})end{tabular}}&multirow{2}{*}{$(S_T-K)^+mathbbm{1}_{biggl{minlimits_{0leq tleq T}S_t<Bbiggr}}$}&$Bleq K$\
cline{5}
&&&&$Bgeq K$\
cline{3-5}
&&multirow{2}{*}{begin{tabular}{@{}[email protected]{}}textit{up-and-out}\(textit{knock-out})end{tabular}}&multirow{2}{*}{$(S_T-K)^+mathbbm{1}_{biggl{maxlimits_{0leq tleq T}S_t<Bbiggr}}$}&$Bleq K$\
cline{5}
&&&&$Bgeq K$\
cline{3-5}
&&multirow{2}{*}{begin{tabular}{@{}[email protected]{}}textit{up-and-in}\(textit{knock-in})end{tabular}}&multirow{2}{*}{$(S_T-K)^+mathbbm{1}_{biggl{maxlimits_{0leq tleq T}S_t>Bbiggr}}$}&$Bleq K$\
cline{5}
&&&&$Bgeq K$\
hline
end{tabular}
end{document}


What is the problem?

You're missing in cline command. It should be cline{5-5} instead of cline{5}. Your code become this.

documentclass{article}
usepackage{bbm}
usepackage{amsmath}
usepackage{multirow}
usepackage{comment}
begin{document}
begin{tabular}{|c|c|c|c|c|}
hline
Tipe Opsi&CBBC&textit{Behavior}&textit{Payoff}& \
hline
multirow{8}{*}{Barrier textit{Call}}& multirow{2}{*}{textit{Bull}}&multirow{2}{*}{begin{tabular}{@{}[email protected]{}}textit{down-and-out} \ (textit{knock-out})end{tabular}}&multirow{2}{*}{$(S_T-K)^+mathbbm{1}_{{minlimits_{0leq tleq T}S_t>B}}$}&$Bleq K$\
cline{5-5}
&&&&$Bgeq K$\
cline{2-5}
&multirow{6}{*}{}&multirow{2}{*}{begin{tabular}{@{}[email protected]{}}textit{down-and-in}\(textit{knock-in})end{tabular}}&multirow{2}{*}{$(S_T-K)^+mathbbm{1}_{{minlimits_{0leq tleq T}S_t<B}}$}&$Bleq K$\
cline{5-5}
&&&&$Bgeq K$\
cline{3-5}
&&multirow{2}{*}{begin{tabular}{@{}[email protected]{}}textit{up-and-out}\(textit{knock-out})end{tabular}}&multirow{2}{*}{$(S_T-K)^+mathbbm{1}_{{maxlimits_{0leq tleq T}S_t<B}}$}&$Bleq K$\
cline{5-5}
&&&&$Bgeq K$\
cline{3-5}
&&multirow{2}{*}{begin{tabular}{@{}[email protected]{}}textit{up-and-in}\(textit{knock-in})end{tabular}}&multirow{2}{*}{$(S_T-K)^+mathbbm{1}_{{maxlimits_{0leq tleq T}S_t>B}}$}&$Bleq K$\
cline{5-5}
&&&&$Bgeq K$\
hline
end{tabular}
end{document}


And the result as below.

Correct answer by Ongky Denny Wijaya on December 4, 2020

## Related Questions

### Correct approach to 10pt quote size?

1  Asked on May 21, 2021

### How to put a curvearrow around a letter?

4  Asked on May 21, 2021 by stiggystardust

### Missing number, treated as zero within simple parbox/spacebox macro

0  Asked on May 21, 2021 by xetniw

### Creating two columns in beamer

3  Asked on May 21, 2021 by user4437416

### Build and View as Ctrl/cmd+s instead of F5 in TeXStudio

0  Asked on May 21, 2021 by mathjoe

### tufte-book + biblatex error: biblatex incompatible with natbib?

1  Asked on May 21, 2021 by doron-behar

### Previously working code no longer working and giving errors

0  Asked on May 21, 2021

0  Asked on May 20, 2021 by sp1

### Change document font keeping accents

1  Asked on May 20, 2021

### Specifying bullet type when using itemize

5  Asked on May 20, 2021 by dragonlord74

### Chemical process flow sheets TikZ/PGF

4  Asked on May 20, 2021 by holene

### Error, Can’t locate TeXLive/TLConfig.pm in @INC, Am I missing a package?

0  Asked on May 20, 2021 by amir-zia

### Change dots from first line to the second line (List of Tables)

1  Asked on May 20, 2021

### How to start subequations with a known number?

1  Asked on May 20, 2021 by user3489173

### classicthesis + unnumbered chapters/sections: problem with linking

0  Asked on May 20, 2021

### How to draw this in latex – Diagrams and graph of functions

1  Asked on May 20, 2021

### Beamer total number not working and frametitle error

0  Asked on May 20, 2021 by user2987773

### Different output with normal environment & newenvironment when citing

1  Asked on May 20, 2021

### A special annulment (i.e., cancellation) of a stamp

1  Asked on May 20, 2021

### what do these commands do

2  Asked on May 20, 2021