0

My table is going out of the page. Please give me a solution?

\begin{table}[] \centering \caption{My caption} \label{my-label} \begin{tabular}{|l|l|l|l|l|l|l|l|l|l|} \hline Ref & \multicolumn{6}{l|}{Model Used} & Approach & Limitation & Goal \\ \hline & MBTI & FFM & BFI & KTS & BTR & NEO-FFI & \multicolumn{3}{l|}{} \\ \hline {[}10{]} & & & & & & & Interactive personality profiling appraoch & \begin{tabular}[c]{@{}l@{}}Test were based on subjective evidences which\\ may lead to uncertainty.\end{tabular} & \begin{tabular}[c]{@{}l@{}}In order to propose a structure for effective\\ software team structure.\end{tabular} \\ \hline & & & & & & & & & \\ \hline \end{tabular} \end{table} 

1 Answer 1

3

You need to allow (more) line breaks in columns 8, 9, and 10. Instead of applying the line breaks by hand, use a tabularx environment and let LaTeX do the tedious job of finding and inserting suitable line breaks.

The following code and screenshot show two separate solutions. Both employ a tabularx environment. The former uses lots of vertical lines so mimic your appraoch; the second gives the table a more "open" look by omitting all vertical rules and using fewer, but well-spaced, horizontal rules.

enter image description here

\documentclass{article} \usepackage{geometry,tabularx,ragged2e,booktabs} \newcolumntype{L}{>{\RaggedRight\arraybackslash}X} \usepackage[skip=0.333\baselineskip]{caption} \begin{document} \begin{table}[htbp] \caption{Lots of vertical rules} \label{tab:a} \begin{tabularx}{\textwidth}{|*{7}{l|} *{3}{L|}} \hline Ref & \multicolumn{6}{c|}{Model Used} & Approach & Limitation & Goal \\ \hline & MBTI & FFM & BFI & KTS & BTR & NEO-FFI & \multicolumn{3}{l|}{} \\ \hline [10] & & & & & & & Interactive personality profiling approach & Test were based on subjective evidences which may lead to uncertainty. & In order to propose a structure for effective software team structure. \\ \hline & & & & & & & & & \\ \hline \end{tabularx} \vspace{1cm} \caption{No vertical rules} \label{tab:b} \begin{tabularx}{\textwidth}{@{} *{7}{l} *{3}{L} @{}} \toprule Ref & \multicolumn{6}{c}{Model Used} & Approach & Limitation & Goal \\ \cmidrule(lr){2-7} & MBTI & FFM & BFI & KTS & BTR & NEO-FFI \\ \midrule {[}10] & & & & & & & Interactive personality profiling approach & Tests were based on subjective evidence, which may lead to uncertainty & Propose a structure for effective software team structure \\ \addlinespace {[}11] \\ \bottomrule \end{tabularx} \end{table} \end{document} 
0

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.