Table line is missing at the top right
up vote
3
down vote
favorite
begin{table}[htbp]
caption{Tool/technique for scope definition}
%begin{adjustbox}{width=1textwidth}
label{tab:fir}
centering
begin{adjustbox}{width=15cm, height=5.0cm}
begin{tabular}{|p{3.5cm}|p{2cm}|p{2.5cm}|p{2cm}|p{2cm}|p{2.5cm}|p{.5cm}|}
hline
multirow{2}{*}{textbf{Techniques/tools}} & multicolumn{6}{>{centering}p{1textwidth}}{textbf{Combination of different approaches used as monitoring and controlling newline methods in Software Project management}}\ cline{2-7}
&Monitoring & Quantification & Controlling & Visualizing&Completeness & Ref \
hline
Earn Value Management and Gantt Chart & $1$ & $0$ & $1$&$1$ & $0$ & cite{sillitti2011agile} \
hline
Earn Value Management and statistical Methods & $1$ & $0$ & $1$ & $0$& $0$ & cite{levin2009fundamentals} \
hline
Earn Value Management and Kanban & $1$ & $0$ & $0$ &$1$ & $0$ & cite{corral2011evolution}\
hline
Value Stream Mapping and Kanban & $1$ & $0$ & $0$ &$1$ &$0$ & cite{hans2013work}\
hline
Scrum and Kanban & $1$ & $0$ & $0$ &$1$ & $0$ & cite{wnuk2009feature} \
hline
Control charts & $1$ & $0$ & $1$ &$1$ & $0$ & cite{sanghera2008fundamentals} \
hline
PRINCE 2 and Balance Scored Method& $1$ & $0$ & $0$ &$0$ & $0$ & cite{sanghera2008fundamentals} \
hline
Cumulative Flow Diagram with some metrics&$1$ & $0$ & $1$&$1$ & $0$ & cite{sanghera2008fundamentals} \
hline
Earn Value Management and critical path method & $1$ & $1$ & $1$ &$1$ & $0$ & cite{sliger2008software} \
hline
EVM and Use Case Point& $1$ & $0$& $1$& $1$& $0$ & cite{wnuk2008visualization} \
hline
end{tabular}
end{adjustbox}
end{table}
Table line is missing at the top right corner, plzzz help
tables
New contributor
add a comment |
up vote
3
down vote
favorite
begin{table}[htbp]
caption{Tool/technique for scope definition}
%begin{adjustbox}{width=1textwidth}
label{tab:fir}
centering
begin{adjustbox}{width=15cm, height=5.0cm}
begin{tabular}{|p{3.5cm}|p{2cm}|p{2.5cm}|p{2cm}|p{2cm}|p{2.5cm}|p{.5cm}|}
hline
multirow{2}{*}{textbf{Techniques/tools}} & multicolumn{6}{>{centering}p{1textwidth}}{textbf{Combination of different approaches used as monitoring and controlling newline methods in Software Project management}}\ cline{2-7}
&Monitoring & Quantification & Controlling & Visualizing&Completeness & Ref \
hline
Earn Value Management and Gantt Chart & $1$ & $0$ & $1$&$1$ & $0$ & cite{sillitti2011agile} \
hline
Earn Value Management and statistical Methods & $1$ & $0$ & $1$ & $0$& $0$ & cite{levin2009fundamentals} \
hline
Earn Value Management and Kanban & $1$ & $0$ & $0$ &$1$ & $0$ & cite{corral2011evolution}\
hline
Value Stream Mapping and Kanban & $1$ & $0$ & $0$ &$1$ &$0$ & cite{hans2013work}\
hline
Scrum and Kanban & $1$ & $0$ & $0$ &$1$ & $0$ & cite{wnuk2009feature} \
hline
Control charts & $1$ & $0$ & $1$ &$1$ & $0$ & cite{sanghera2008fundamentals} \
hline
PRINCE 2 and Balance Scored Method& $1$ & $0$ & $0$ &$0$ & $0$ & cite{sanghera2008fundamentals} \
hline
Cumulative Flow Diagram with some metrics&$1$ & $0$ & $1$&$1$ & $0$ & cite{sanghera2008fundamentals} \
hline
Earn Value Management and critical path method & $1$ & $1$ & $1$ &$1$ & $0$ & cite{sliger2008software} \
hline
EVM and Use Case Point& $1$ & $0$& $1$& $1$& $0$ & cite{wnuk2008visualization} \
hline
end{tabular}
end{adjustbox}
end{table}
Table line is missing at the top right corner, plzzz help
tables
New contributor
Welcome to TeX.SE!. Please provide a minimal working example that reproduces your problem.
– Dũng Vũ
Nov 18 at 9:10
1
To fix the issue mentioned in the title of your posting, all you'll have to do is changemulticolumn{6}{>{centering}p{1textwidth}}{...}
tomulticolumn{6}{>{centering}p{1textwidth}|}{...}
. However, as I set forth in my answer, you should re-evaluate your entire approach to designing the table, say, with the help of atabularx
environment.
– Mico
Nov 18 at 9:33
add a comment |
up vote
3
down vote
favorite
up vote
3
down vote
favorite
begin{table}[htbp]
caption{Tool/technique for scope definition}
%begin{adjustbox}{width=1textwidth}
label{tab:fir}
centering
begin{adjustbox}{width=15cm, height=5.0cm}
begin{tabular}{|p{3.5cm}|p{2cm}|p{2.5cm}|p{2cm}|p{2cm}|p{2.5cm}|p{.5cm}|}
hline
multirow{2}{*}{textbf{Techniques/tools}} & multicolumn{6}{>{centering}p{1textwidth}}{textbf{Combination of different approaches used as monitoring and controlling newline methods in Software Project management}}\ cline{2-7}
&Monitoring & Quantification & Controlling & Visualizing&Completeness & Ref \
hline
Earn Value Management and Gantt Chart & $1$ & $0$ & $1$&$1$ & $0$ & cite{sillitti2011agile} \
hline
Earn Value Management and statistical Methods & $1$ & $0$ & $1$ & $0$& $0$ & cite{levin2009fundamentals} \
hline
Earn Value Management and Kanban & $1$ & $0$ & $0$ &$1$ & $0$ & cite{corral2011evolution}\
hline
Value Stream Mapping and Kanban & $1$ & $0$ & $0$ &$1$ &$0$ & cite{hans2013work}\
hline
Scrum and Kanban & $1$ & $0$ & $0$ &$1$ & $0$ & cite{wnuk2009feature} \
hline
Control charts & $1$ & $0$ & $1$ &$1$ & $0$ & cite{sanghera2008fundamentals} \
hline
PRINCE 2 and Balance Scored Method& $1$ & $0$ & $0$ &$0$ & $0$ & cite{sanghera2008fundamentals} \
hline
Cumulative Flow Diagram with some metrics&$1$ & $0$ & $1$&$1$ & $0$ & cite{sanghera2008fundamentals} \
hline
Earn Value Management and critical path method & $1$ & $1$ & $1$ &$1$ & $0$ & cite{sliger2008software} \
hline
EVM and Use Case Point& $1$ & $0$& $1$& $1$& $0$ & cite{wnuk2008visualization} \
hline
end{tabular}
end{adjustbox}
end{table}
Table line is missing at the top right corner, plzzz help
tables
New contributor
begin{table}[htbp]
caption{Tool/technique for scope definition}
%begin{adjustbox}{width=1textwidth}
label{tab:fir}
centering
begin{adjustbox}{width=15cm, height=5.0cm}
begin{tabular}{|p{3.5cm}|p{2cm}|p{2.5cm}|p{2cm}|p{2cm}|p{2.5cm}|p{.5cm}|}
hline
multirow{2}{*}{textbf{Techniques/tools}} & multicolumn{6}{>{centering}p{1textwidth}}{textbf{Combination of different approaches used as monitoring and controlling newline methods in Software Project management}}\ cline{2-7}
&Monitoring & Quantification & Controlling & Visualizing&Completeness & Ref \
hline
Earn Value Management and Gantt Chart & $1$ & $0$ & $1$&$1$ & $0$ & cite{sillitti2011agile} \
hline
Earn Value Management and statistical Methods & $1$ & $0$ & $1$ & $0$& $0$ & cite{levin2009fundamentals} \
hline
Earn Value Management and Kanban & $1$ & $0$ & $0$ &$1$ & $0$ & cite{corral2011evolution}\
hline
Value Stream Mapping and Kanban & $1$ & $0$ & $0$ &$1$ &$0$ & cite{hans2013work}\
hline
Scrum and Kanban & $1$ & $0$ & $0$ &$1$ & $0$ & cite{wnuk2009feature} \
hline
Control charts & $1$ & $0$ & $1$ &$1$ & $0$ & cite{sanghera2008fundamentals} \
hline
PRINCE 2 and Balance Scored Method& $1$ & $0$ & $0$ &$0$ & $0$ & cite{sanghera2008fundamentals} \
hline
Cumulative Flow Diagram with some metrics&$1$ & $0$ & $1$&$1$ & $0$ & cite{sanghera2008fundamentals} \
hline
Earn Value Management and critical path method & $1$ & $1$ & $1$ &$1$ & $0$ & cite{sliger2008software} \
hline
EVM and Use Case Point& $1$ & $0$& $1$& $1$& $0$ & cite{wnuk2008visualization} \
hline
end{tabular}
end{adjustbox}
end{table}
Table line is missing at the top right corner, plzzz help
tables
tables
New contributor
New contributor
edited Nov 18 at 8:56
Mico
269k30367751
269k30367751
New contributor
asked Nov 18 at 8:50
avais
232
232
New contributor
New contributor
Welcome to TeX.SE!. Please provide a minimal working example that reproduces your problem.
– Dũng Vũ
Nov 18 at 9:10
1
To fix the issue mentioned in the title of your posting, all you'll have to do is changemulticolumn{6}{>{centering}p{1textwidth}}{...}
tomulticolumn{6}{>{centering}p{1textwidth}|}{...}
. However, as I set forth in my answer, you should re-evaluate your entire approach to designing the table, say, with the help of atabularx
environment.
– Mico
Nov 18 at 9:33
add a comment |
Welcome to TeX.SE!. Please provide a minimal working example that reproduces your problem.
– Dũng Vũ
Nov 18 at 9:10
1
To fix the issue mentioned in the title of your posting, all you'll have to do is changemulticolumn{6}{>{centering}p{1textwidth}}{...}
tomulticolumn{6}{>{centering}p{1textwidth}|}{...}
. However, as I set forth in my answer, you should re-evaluate your entire approach to designing the table, say, with the help of atabularx
environment.
– Mico
Nov 18 at 9:33
Welcome to TeX.SE!. Please provide a minimal working example that reproduces your problem.
– Dũng Vũ
Nov 18 at 9:10
Welcome to TeX.SE!. Please provide a minimal working example that reproduces your problem.
– Dũng Vũ
Nov 18 at 9:10
1
1
To fix the issue mentioned in the title of your posting, all you'll have to do is change
multicolumn{6}{>{centering}p{1textwidth}}{...}
to multicolumn{6}{>{centering}p{1textwidth}|}{...}
. However, as I set forth in my answer, you should re-evaluate your entire approach to designing the table, say, with the help of a tabularx
environment.– Mico
Nov 18 at 9:33
To fix the issue mentioned in the title of your posting, all you'll have to do is change
multicolumn{6}{>{centering}p{1textwidth}}{...}
to multicolumn{6}{>{centering}p{1textwidth}|}{...}
. However, as I set forth in my answer, you should re-evaluate your entire approach to designing the table, say, with the help of a tabularx
environment.– Mico
Nov 18 at 9:33
add a comment |
2 Answers
2
active
oldest
votes
up vote
3
down vote
accepted
Using
multicolumn{6}{p{13.5cm}|}{centeringtextbf{Combination of different approaches used as monitoring and controlling methods in Software Project management}}
would fix the error and add the missing vertical line:
However, the resulting table looks distorted, due to the use of adjustbox
. To make the table fit onto the page, I'd suggest the usage of tabularx
. In order to save space, you could rotate the table column headings as follows. I have also shortened the text in the multirow, as I would try to add the information into the caption of the table. Additionally, I have removed vertical lines and replaced horizontal lines by booktabs
' rules:
documentclass{article}
usepackage{geometry}
usepackage{multirow}
usepackage{tabularx}
usepackage{booktabs}
usepackage{adjustbox}
usepackage{array}
newcolumntype{R}[2]{%
>{adjustbox{angle=#1,lap=width-(#2)}bgroup}%
l%
<{egroup}%
}
newcommand*rot{multicolumn{1}{R{45}{1em}}}
newcolumntype{Y}{>{centeringarraybackslash}X}
begin{document}
begin{table}[htbp]
caption{Tool/technique for scope definition}
label{tab:fir}
centering
begin{tabularx}{textwidth}{l*6{Y}}
toprule
multirow{2}{*}{textbf{Techniques/tools}} & multicolumn{6}{c}{textbf{Approaches}}
\ cmidrule{2-7}
&rot{Monitoring} & rot{Quantification} & rot{Controlling} & rot{Visualizing} & rot{Completeness} & rot{Ref} \
midrule
Earn Value Management and Gantt Chart & 1 & 0 & 1&1 & 0 & cite{sillitti2011agile} \
Earn Value Management and statistical Methods & 1 & 0 & 1 & 0& 0 & cite{levin2009fundamentals} \
Earn Value Management and Kanban & 1 & 0 & 0 &1 & 0 & cite{corral2011evolution}\
Value Stream Mapping and Kanban & 1 & 0 & 0 &1 &0 & cite{hans2013work}\
Scrum and Kanban & 1 & 0 & 0 &1 & 0 & cite{wnuk2009feature} \
Control charts & 1 & 0 & 1 &1 & 0 & cite{sanghera2008fundamentals} \
PRINCE 2 and Balance Scored Method& 1 & 0 & 0 &0 & 0 & cite{sanghera2008fundamentals} \
Cumulative Flow Diagram with some metrics&1 & 0 & 1&1 & 0 & cite{sanghera2008fundamentals} \
Earn Value Management and critical path method & 1 & 1 & 1 &1 & 0 & cite{sliger2008software} \
EVM and Use Case Point& 1 & 0& 1& 1& 0 & cite{wnuk2008visualization} \
bottomrule
end{tabularx}
end{table}
end{document}
The code for the rotated table headers is borrowed from here: https://tex.stackexchange.com/a/32690/134144
+1 for the second solution. Since it looks like you don't want to allow line breaks in the first column, you may want to assign thel
column type to it, and switch to using a centered version of theX
column type for the 6 data columns.
– Mico
Nov 18 at 9:54
A minor suggestion: Maybe replacemulticolumn{6}{p{4.5cm+10tabcolsep}}{centeringtextbf{Approaches}}
withmulticolumn{6}{c}{textbf{Approaches}}
?
– Mico
Nov 18 at 10:04
1
@Mico: Thanks a lot for your suggestions, that significantly simplify the code. I have incorporated them into my answer.
– leandriis
Nov 18 at 10:22
Don't forget to drop the surpluscentering
instruction. :-)
– Mico
Nov 18 at 10:35
add a comment |
up vote
3
down vote
Don't use adjustbox
to make tabular material fit inside the textblock, unless you really wish to risk making the font size so small as to make the material unreadable without a magnifying glass. Instead, load the tabularx
environment, set its width to textwidth
and allow line breaks in the five header cells.
For the following screenshot, I've set the variable textwidth
to 15cm
as that's the value you use in your code for the width of the adjustbox
.
documentclass{article}
usepackage[english]{babel}
usepackage[textwidth=15cm]{geometry}
usepackage{tabularx,ragged2e}
newcolumntype{C}{>{Centeringarraybackslashhspace{0pt}}X}
usepackage[skip=0.333baselineskip]{caption} % optional
begin{document}
begin{table}[htbp]
setlengthtabcolsep{4pt} % default: 6pt
setlengthextrarowheight{2pt} % for a more open "look"
caption{Tool/technique for scope definition}
label{tab:fir}
begin{tabularx}{textwidth}{| >{RaggedRight}p{4cm} | *{5}{C|} c |}
hline
Techniquesslash tools &
multicolumn{5}{>{hsize=dimexpr5hsize+8tabcolseprelax}C|}%
{Combination of different approaches used as monitoring
and controlling methods in Software Project management} & Ref. \
cline{2-6}
& Monitoring & Quantification & Controlling
& Visualizing & Completeness & \
hline
Earn Value Management and Gantt Chart
& $1$ & $0$ & $1$&$1$ & $0$ & cite{sillitti2011agile} \
hline
Earn Value Management and statistical Methods
& $1$ & $0$ & $1$ & $0$& $0$ & cite{levin2009fundamentals} \
hline
Earn Value Management and Kanban
& $1$ & $0$ & $0$ &$1$ & $0$ & cite{corral2011evolution}\
hline
Value Stream Mapping and Kanban
& $1$ & $0$ & $0$ &$1$ &$0$
& cite{hans2013work}\
hline
Scrum and Kanban
& $1$ & $0$ & $0$ &$1$ & $0$
& cite{wnuk2009feature} \
hline
Control charts
& $1$ & $0$ & $1$ &$1$ & $0$
& cite{sanghera2008fundamentals} \
hline
PRINCE 2 and Balance Scored Method
& $1$ & $0$ & $0$ &$0$ & $0$
& cite{sanghera2008fundamentals} \
hline
Cumulative Flow Diagram with some metrics
&$1$ & $0$ & $1$ & $1$ & $0$
& cite{sanghera2008fundamentals} \
hline
Earn Value Management and critical path method
& $1$ & $1$ & $1$ &$1$ & $0$
& cite{sliger2008software} \
hline
EVM and Use Case Point
& $1$ & $0$ & $1$& $1$ & $0$
& cite{wnuk2008visualization} \
hline
end{tabularx}
end{table}
end{document}
how can i write the headings of 5 multi column fully in the above code? e g. Monitoring, Quantification, controlling, visualizing, completeness .
– avais
Nov 18 at 9:41
@avais - please clarify what you mean by writing the 5 headers "fully". Do you mean "on a single line"?
– Mico
Nov 18 at 9:44
Thanks a lot. it helped me
– avais
Nov 18 at 9:51
add a comment |
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
3
down vote
accepted
Using
multicolumn{6}{p{13.5cm}|}{centeringtextbf{Combination of different approaches used as monitoring and controlling methods in Software Project management}}
would fix the error and add the missing vertical line:
However, the resulting table looks distorted, due to the use of adjustbox
. To make the table fit onto the page, I'd suggest the usage of tabularx
. In order to save space, you could rotate the table column headings as follows. I have also shortened the text in the multirow, as I would try to add the information into the caption of the table. Additionally, I have removed vertical lines and replaced horizontal lines by booktabs
' rules:
documentclass{article}
usepackage{geometry}
usepackage{multirow}
usepackage{tabularx}
usepackage{booktabs}
usepackage{adjustbox}
usepackage{array}
newcolumntype{R}[2]{%
>{adjustbox{angle=#1,lap=width-(#2)}bgroup}%
l%
<{egroup}%
}
newcommand*rot{multicolumn{1}{R{45}{1em}}}
newcolumntype{Y}{>{centeringarraybackslash}X}
begin{document}
begin{table}[htbp]
caption{Tool/technique for scope definition}
label{tab:fir}
centering
begin{tabularx}{textwidth}{l*6{Y}}
toprule
multirow{2}{*}{textbf{Techniques/tools}} & multicolumn{6}{c}{textbf{Approaches}}
\ cmidrule{2-7}
&rot{Monitoring} & rot{Quantification} & rot{Controlling} & rot{Visualizing} & rot{Completeness} & rot{Ref} \
midrule
Earn Value Management and Gantt Chart & 1 & 0 & 1&1 & 0 & cite{sillitti2011agile} \
Earn Value Management and statistical Methods & 1 & 0 & 1 & 0& 0 & cite{levin2009fundamentals} \
Earn Value Management and Kanban & 1 & 0 & 0 &1 & 0 & cite{corral2011evolution}\
Value Stream Mapping and Kanban & 1 & 0 & 0 &1 &0 & cite{hans2013work}\
Scrum and Kanban & 1 & 0 & 0 &1 & 0 & cite{wnuk2009feature} \
Control charts & 1 & 0 & 1 &1 & 0 & cite{sanghera2008fundamentals} \
PRINCE 2 and Balance Scored Method& 1 & 0 & 0 &0 & 0 & cite{sanghera2008fundamentals} \
Cumulative Flow Diagram with some metrics&1 & 0 & 1&1 & 0 & cite{sanghera2008fundamentals} \
Earn Value Management and critical path method & 1 & 1 & 1 &1 & 0 & cite{sliger2008software} \
EVM and Use Case Point& 1 & 0& 1& 1& 0 & cite{wnuk2008visualization} \
bottomrule
end{tabularx}
end{table}
end{document}
The code for the rotated table headers is borrowed from here: https://tex.stackexchange.com/a/32690/134144
+1 for the second solution. Since it looks like you don't want to allow line breaks in the first column, you may want to assign thel
column type to it, and switch to using a centered version of theX
column type for the 6 data columns.
– Mico
Nov 18 at 9:54
A minor suggestion: Maybe replacemulticolumn{6}{p{4.5cm+10tabcolsep}}{centeringtextbf{Approaches}}
withmulticolumn{6}{c}{textbf{Approaches}}
?
– Mico
Nov 18 at 10:04
1
@Mico: Thanks a lot for your suggestions, that significantly simplify the code. I have incorporated them into my answer.
– leandriis
Nov 18 at 10:22
Don't forget to drop the surpluscentering
instruction. :-)
– Mico
Nov 18 at 10:35
add a comment |
up vote
3
down vote
accepted
Using
multicolumn{6}{p{13.5cm}|}{centeringtextbf{Combination of different approaches used as monitoring and controlling methods in Software Project management}}
would fix the error and add the missing vertical line:
However, the resulting table looks distorted, due to the use of adjustbox
. To make the table fit onto the page, I'd suggest the usage of tabularx
. In order to save space, you could rotate the table column headings as follows. I have also shortened the text in the multirow, as I would try to add the information into the caption of the table. Additionally, I have removed vertical lines and replaced horizontal lines by booktabs
' rules:
documentclass{article}
usepackage{geometry}
usepackage{multirow}
usepackage{tabularx}
usepackage{booktabs}
usepackage{adjustbox}
usepackage{array}
newcolumntype{R}[2]{%
>{adjustbox{angle=#1,lap=width-(#2)}bgroup}%
l%
<{egroup}%
}
newcommand*rot{multicolumn{1}{R{45}{1em}}}
newcolumntype{Y}{>{centeringarraybackslash}X}
begin{document}
begin{table}[htbp]
caption{Tool/technique for scope definition}
label{tab:fir}
centering
begin{tabularx}{textwidth}{l*6{Y}}
toprule
multirow{2}{*}{textbf{Techniques/tools}} & multicolumn{6}{c}{textbf{Approaches}}
\ cmidrule{2-7}
&rot{Monitoring} & rot{Quantification} & rot{Controlling} & rot{Visualizing} & rot{Completeness} & rot{Ref} \
midrule
Earn Value Management and Gantt Chart & 1 & 0 & 1&1 & 0 & cite{sillitti2011agile} \
Earn Value Management and statistical Methods & 1 & 0 & 1 & 0& 0 & cite{levin2009fundamentals} \
Earn Value Management and Kanban & 1 & 0 & 0 &1 & 0 & cite{corral2011evolution}\
Value Stream Mapping and Kanban & 1 & 0 & 0 &1 &0 & cite{hans2013work}\
Scrum and Kanban & 1 & 0 & 0 &1 & 0 & cite{wnuk2009feature} \
Control charts & 1 & 0 & 1 &1 & 0 & cite{sanghera2008fundamentals} \
PRINCE 2 and Balance Scored Method& 1 & 0 & 0 &0 & 0 & cite{sanghera2008fundamentals} \
Cumulative Flow Diagram with some metrics&1 & 0 & 1&1 & 0 & cite{sanghera2008fundamentals} \
Earn Value Management and critical path method & 1 & 1 & 1 &1 & 0 & cite{sliger2008software} \
EVM and Use Case Point& 1 & 0& 1& 1& 0 & cite{wnuk2008visualization} \
bottomrule
end{tabularx}
end{table}
end{document}
The code for the rotated table headers is borrowed from here: https://tex.stackexchange.com/a/32690/134144
+1 for the second solution. Since it looks like you don't want to allow line breaks in the first column, you may want to assign thel
column type to it, and switch to using a centered version of theX
column type for the 6 data columns.
– Mico
Nov 18 at 9:54
A minor suggestion: Maybe replacemulticolumn{6}{p{4.5cm+10tabcolsep}}{centeringtextbf{Approaches}}
withmulticolumn{6}{c}{textbf{Approaches}}
?
– Mico
Nov 18 at 10:04
1
@Mico: Thanks a lot for your suggestions, that significantly simplify the code. I have incorporated them into my answer.
– leandriis
Nov 18 at 10:22
Don't forget to drop the surpluscentering
instruction. :-)
– Mico
Nov 18 at 10:35
add a comment |
up vote
3
down vote
accepted
up vote
3
down vote
accepted
Using
multicolumn{6}{p{13.5cm}|}{centeringtextbf{Combination of different approaches used as monitoring and controlling methods in Software Project management}}
would fix the error and add the missing vertical line:
However, the resulting table looks distorted, due to the use of adjustbox
. To make the table fit onto the page, I'd suggest the usage of tabularx
. In order to save space, you could rotate the table column headings as follows. I have also shortened the text in the multirow, as I would try to add the information into the caption of the table. Additionally, I have removed vertical lines and replaced horizontal lines by booktabs
' rules:
documentclass{article}
usepackage{geometry}
usepackage{multirow}
usepackage{tabularx}
usepackage{booktabs}
usepackage{adjustbox}
usepackage{array}
newcolumntype{R}[2]{%
>{adjustbox{angle=#1,lap=width-(#2)}bgroup}%
l%
<{egroup}%
}
newcommand*rot{multicolumn{1}{R{45}{1em}}}
newcolumntype{Y}{>{centeringarraybackslash}X}
begin{document}
begin{table}[htbp]
caption{Tool/technique for scope definition}
label{tab:fir}
centering
begin{tabularx}{textwidth}{l*6{Y}}
toprule
multirow{2}{*}{textbf{Techniques/tools}} & multicolumn{6}{c}{textbf{Approaches}}
\ cmidrule{2-7}
&rot{Monitoring} & rot{Quantification} & rot{Controlling} & rot{Visualizing} & rot{Completeness} & rot{Ref} \
midrule
Earn Value Management and Gantt Chart & 1 & 0 & 1&1 & 0 & cite{sillitti2011agile} \
Earn Value Management and statistical Methods & 1 & 0 & 1 & 0& 0 & cite{levin2009fundamentals} \
Earn Value Management and Kanban & 1 & 0 & 0 &1 & 0 & cite{corral2011evolution}\
Value Stream Mapping and Kanban & 1 & 0 & 0 &1 &0 & cite{hans2013work}\
Scrum and Kanban & 1 & 0 & 0 &1 & 0 & cite{wnuk2009feature} \
Control charts & 1 & 0 & 1 &1 & 0 & cite{sanghera2008fundamentals} \
PRINCE 2 and Balance Scored Method& 1 & 0 & 0 &0 & 0 & cite{sanghera2008fundamentals} \
Cumulative Flow Diagram with some metrics&1 & 0 & 1&1 & 0 & cite{sanghera2008fundamentals} \
Earn Value Management and critical path method & 1 & 1 & 1 &1 & 0 & cite{sliger2008software} \
EVM and Use Case Point& 1 & 0& 1& 1& 0 & cite{wnuk2008visualization} \
bottomrule
end{tabularx}
end{table}
end{document}
The code for the rotated table headers is borrowed from here: https://tex.stackexchange.com/a/32690/134144
Using
multicolumn{6}{p{13.5cm}|}{centeringtextbf{Combination of different approaches used as monitoring and controlling methods in Software Project management}}
would fix the error and add the missing vertical line:
However, the resulting table looks distorted, due to the use of adjustbox
. To make the table fit onto the page, I'd suggest the usage of tabularx
. In order to save space, you could rotate the table column headings as follows. I have also shortened the text in the multirow, as I would try to add the information into the caption of the table. Additionally, I have removed vertical lines and replaced horizontal lines by booktabs
' rules:
documentclass{article}
usepackage{geometry}
usepackage{multirow}
usepackage{tabularx}
usepackage{booktabs}
usepackage{adjustbox}
usepackage{array}
newcolumntype{R}[2]{%
>{adjustbox{angle=#1,lap=width-(#2)}bgroup}%
l%
<{egroup}%
}
newcommand*rot{multicolumn{1}{R{45}{1em}}}
newcolumntype{Y}{>{centeringarraybackslash}X}
begin{document}
begin{table}[htbp]
caption{Tool/technique for scope definition}
label{tab:fir}
centering
begin{tabularx}{textwidth}{l*6{Y}}
toprule
multirow{2}{*}{textbf{Techniques/tools}} & multicolumn{6}{c}{textbf{Approaches}}
\ cmidrule{2-7}
&rot{Monitoring} & rot{Quantification} & rot{Controlling} & rot{Visualizing} & rot{Completeness} & rot{Ref} \
midrule
Earn Value Management and Gantt Chart & 1 & 0 & 1&1 & 0 & cite{sillitti2011agile} \
Earn Value Management and statistical Methods & 1 & 0 & 1 & 0& 0 & cite{levin2009fundamentals} \
Earn Value Management and Kanban & 1 & 0 & 0 &1 & 0 & cite{corral2011evolution}\
Value Stream Mapping and Kanban & 1 & 0 & 0 &1 &0 & cite{hans2013work}\
Scrum and Kanban & 1 & 0 & 0 &1 & 0 & cite{wnuk2009feature} \
Control charts & 1 & 0 & 1 &1 & 0 & cite{sanghera2008fundamentals} \
PRINCE 2 and Balance Scored Method& 1 & 0 & 0 &0 & 0 & cite{sanghera2008fundamentals} \
Cumulative Flow Diagram with some metrics&1 & 0 & 1&1 & 0 & cite{sanghera2008fundamentals} \
Earn Value Management and critical path method & 1 & 1 & 1 &1 & 0 & cite{sliger2008software} \
EVM and Use Case Point& 1 & 0& 1& 1& 0 & cite{wnuk2008visualization} \
bottomrule
end{tabularx}
end{table}
end{document}
The code for the rotated table headers is borrowed from here: https://tex.stackexchange.com/a/32690/134144
edited Nov 18 at 10:53
answered Nov 18 at 9:36
leandriis
7,6721528
7,6721528
+1 for the second solution. Since it looks like you don't want to allow line breaks in the first column, you may want to assign thel
column type to it, and switch to using a centered version of theX
column type for the 6 data columns.
– Mico
Nov 18 at 9:54
A minor suggestion: Maybe replacemulticolumn{6}{p{4.5cm+10tabcolsep}}{centeringtextbf{Approaches}}
withmulticolumn{6}{c}{textbf{Approaches}}
?
– Mico
Nov 18 at 10:04
1
@Mico: Thanks a lot for your suggestions, that significantly simplify the code. I have incorporated them into my answer.
– leandriis
Nov 18 at 10:22
Don't forget to drop the surpluscentering
instruction. :-)
– Mico
Nov 18 at 10:35
add a comment |
+1 for the second solution. Since it looks like you don't want to allow line breaks in the first column, you may want to assign thel
column type to it, and switch to using a centered version of theX
column type for the 6 data columns.
– Mico
Nov 18 at 9:54
A minor suggestion: Maybe replacemulticolumn{6}{p{4.5cm+10tabcolsep}}{centeringtextbf{Approaches}}
withmulticolumn{6}{c}{textbf{Approaches}}
?
– Mico
Nov 18 at 10:04
1
@Mico: Thanks a lot for your suggestions, that significantly simplify the code. I have incorporated them into my answer.
– leandriis
Nov 18 at 10:22
Don't forget to drop the surpluscentering
instruction. :-)
– Mico
Nov 18 at 10:35
+1 for the second solution. Since it looks like you don't want to allow line breaks in the first column, you may want to assign the
l
column type to it, and switch to using a centered version of the X
column type for the 6 data columns.– Mico
Nov 18 at 9:54
+1 for the second solution. Since it looks like you don't want to allow line breaks in the first column, you may want to assign the
l
column type to it, and switch to using a centered version of the X
column type for the 6 data columns.– Mico
Nov 18 at 9:54
A minor suggestion: Maybe replace
multicolumn{6}{p{4.5cm+10tabcolsep}}{centeringtextbf{Approaches}}
with multicolumn{6}{c}{textbf{Approaches}}
?– Mico
Nov 18 at 10:04
A minor suggestion: Maybe replace
multicolumn{6}{p{4.5cm+10tabcolsep}}{centeringtextbf{Approaches}}
with multicolumn{6}{c}{textbf{Approaches}}
?– Mico
Nov 18 at 10:04
1
1
@Mico: Thanks a lot for your suggestions, that significantly simplify the code. I have incorporated them into my answer.
– leandriis
Nov 18 at 10:22
@Mico: Thanks a lot for your suggestions, that significantly simplify the code. I have incorporated them into my answer.
– leandriis
Nov 18 at 10:22
Don't forget to drop the surplus
centering
instruction. :-)– Mico
Nov 18 at 10:35
Don't forget to drop the surplus
centering
instruction. :-)– Mico
Nov 18 at 10:35
add a comment |
up vote
3
down vote
Don't use adjustbox
to make tabular material fit inside the textblock, unless you really wish to risk making the font size so small as to make the material unreadable without a magnifying glass. Instead, load the tabularx
environment, set its width to textwidth
and allow line breaks in the five header cells.
For the following screenshot, I've set the variable textwidth
to 15cm
as that's the value you use in your code for the width of the adjustbox
.
documentclass{article}
usepackage[english]{babel}
usepackage[textwidth=15cm]{geometry}
usepackage{tabularx,ragged2e}
newcolumntype{C}{>{Centeringarraybackslashhspace{0pt}}X}
usepackage[skip=0.333baselineskip]{caption} % optional
begin{document}
begin{table}[htbp]
setlengthtabcolsep{4pt} % default: 6pt
setlengthextrarowheight{2pt} % for a more open "look"
caption{Tool/technique for scope definition}
label{tab:fir}
begin{tabularx}{textwidth}{| >{RaggedRight}p{4cm} | *{5}{C|} c |}
hline
Techniquesslash tools &
multicolumn{5}{>{hsize=dimexpr5hsize+8tabcolseprelax}C|}%
{Combination of different approaches used as monitoring
and controlling methods in Software Project management} & Ref. \
cline{2-6}
& Monitoring & Quantification & Controlling
& Visualizing & Completeness & \
hline
Earn Value Management and Gantt Chart
& $1$ & $0$ & $1$&$1$ & $0$ & cite{sillitti2011agile} \
hline
Earn Value Management and statistical Methods
& $1$ & $0$ & $1$ & $0$& $0$ & cite{levin2009fundamentals} \
hline
Earn Value Management and Kanban
& $1$ & $0$ & $0$ &$1$ & $0$ & cite{corral2011evolution}\
hline
Value Stream Mapping and Kanban
& $1$ & $0$ & $0$ &$1$ &$0$
& cite{hans2013work}\
hline
Scrum and Kanban
& $1$ & $0$ & $0$ &$1$ & $0$
& cite{wnuk2009feature} \
hline
Control charts
& $1$ & $0$ & $1$ &$1$ & $0$
& cite{sanghera2008fundamentals} \
hline
PRINCE 2 and Balance Scored Method
& $1$ & $0$ & $0$ &$0$ & $0$
& cite{sanghera2008fundamentals} \
hline
Cumulative Flow Diagram with some metrics
&$1$ & $0$ & $1$ & $1$ & $0$
& cite{sanghera2008fundamentals} \
hline
Earn Value Management and critical path method
& $1$ & $1$ & $1$ &$1$ & $0$
& cite{sliger2008software} \
hline
EVM and Use Case Point
& $1$ & $0$ & $1$& $1$ & $0$
& cite{wnuk2008visualization} \
hline
end{tabularx}
end{table}
end{document}
how can i write the headings of 5 multi column fully in the above code? e g. Monitoring, Quantification, controlling, visualizing, completeness .
– avais
Nov 18 at 9:41
@avais - please clarify what you mean by writing the 5 headers "fully". Do you mean "on a single line"?
– Mico
Nov 18 at 9:44
Thanks a lot. it helped me
– avais
Nov 18 at 9:51
add a comment |
up vote
3
down vote
Don't use adjustbox
to make tabular material fit inside the textblock, unless you really wish to risk making the font size so small as to make the material unreadable without a magnifying glass. Instead, load the tabularx
environment, set its width to textwidth
and allow line breaks in the five header cells.
For the following screenshot, I've set the variable textwidth
to 15cm
as that's the value you use in your code for the width of the adjustbox
.
documentclass{article}
usepackage[english]{babel}
usepackage[textwidth=15cm]{geometry}
usepackage{tabularx,ragged2e}
newcolumntype{C}{>{Centeringarraybackslashhspace{0pt}}X}
usepackage[skip=0.333baselineskip]{caption} % optional
begin{document}
begin{table}[htbp]
setlengthtabcolsep{4pt} % default: 6pt
setlengthextrarowheight{2pt} % for a more open "look"
caption{Tool/technique for scope definition}
label{tab:fir}
begin{tabularx}{textwidth}{| >{RaggedRight}p{4cm} | *{5}{C|} c |}
hline
Techniquesslash tools &
multicolumn{5}{>{hsize=dimexpr5hsize+8tabcolseprelax}C|}%
{Combination of different approaches used as monitoring
and controlling methods in Software Project management} & Ref. \
cline{2-6}
& Monitoring & Quantification & Controlling
& Visualizing & Completeness & \
hline
Earn Value Management and Gantt Chart
& $1$ & $0$ & $1$&$1$ & $0$ & cite{sillitti2011agile} \
hline
Earn Value Management and statistical Methods
& $1$ & $0$ & $1$ & $0$& $0$ & cite{levin2009fundamentals} \
hline
Earn Value Management and Kanban
& $1$ & $0$ & $0$ &$1$ & $0$ & cite{corral2011evolution}\
hline
Value Stream Mapping and Kanban
& $1$ & $0$ & $0$ &$1$ &$0$
& cite{hans2013work}\
hline
Scrum and Kanban
& $1$ & $0$ & $0$ &$1$ & $0$
& cite{wnuk2009feature} \
hline
Control charts
& $1$ & $0$ & $1$ &$1$ & $0$
& cite{sanghera2008fundamentals} \
hline
PRINCE 2 and Balance Scored Method
& $1$ & $0$ & $0$ &$0$ & $0$
& cite{sanghera2008fundamentals} \
hline
Cumulative Flow Diagram with some metrics
&$1$ & $0$ & $1$ & $1$ & $0$
& cite{sanghera2008fundamentals} \
hline
Earn Value Management and critical path method
& $1$ & $1$ & $1$ &$1$ & $0$
& cite{sliger2008software} \
hline
EVM and Use Case Point
& $1$ & $0$ & $1$& $1$ & $0$
& cite{wnuk2008visualization} \
hline
end{tabularx}
end{table}
end{document}
how can i write the headings of 5 multi column fully in the above code? e g. Monitoring, Quantification, controlling, visualizing, completeness .
– avais
Nov 18 at 9:41
@avais - please clarify what you mean by writing the 5 headers "fully". Do you mean "on a single line"?
– Mico
Nov 18 at 9:44
Thanks a lot. it helped me
– avais
Nov 18 at 9:51
add a comment |
up vote
3
down vote
up vote
3
down vote
Don't use adjustbox
to make tabular material fit inside the textblock, unless you really wish to risk making the font size so small as to make the material unreadable without a magnifying glass. Instead, load the tabularx
environment, set its width to textwidth
and allow line breaks in the five header cells.
For the following screenshot, I've set the variable textwidth
to 15cm
as that's the value you use in your code for the width of the adjustbox
.
documentclass{article}
usepackage[english]{babel}
usepackage[textwidth=15cm]{geometry}
usepackage{tabularx,ragged2e}
newcolumntype{C}{>{Centeringarraybackslashhspace{0pt}}X}
usepackage[skip=0.333baselineskip]{caption} % optional
begin{document}
begin{table}[htbp]
setlengthtabcolsep{4pt} % default: 6pt
setlengthextrarowheight{2pt} % for a more open "look"
caption{Tool/technique for scope definition}
label{tab:fir}
begin{tabularx}{textwidth}{| >{RaggedRight}p{4cm} | *{5}{C|} c |}
hline
Techniquesslash tools &
multicolumn{5}{>{hsize=dimexpr5hsize+8tabcolseprelax}C|}%
{Combination of different approaches used as monitoring
and controlling methods in Software Project management} & Ref. \
cline{2-6}
& Monitoring & Quantification & Controlling
& Visualizing & Completeness & \
hline
Earn Value Management and Gantt Chart
& $1$ & $0$ & $1$&$1$ & $0$ & cite{sillitti2011agile} \
hline
Earn Value Management and statistical Methods
& $1$ & $0$ & $1$ & $0$& $0$ & cite{levin2009fundamentals} \
hline
Earn Value Management and Kanban
& $1$ & $0$ & $0$ &$1$ & $0$ & cite{corral2011evolution}\
hline
Value Stream Mapping and Kanban
& $1$ & $0$ & $0$ &$1$ &$0$
& cite{hans2013work}\
hline
Scrum and Kanban
& $1$ & $0$ & $0$ &$1$ & $0$
& cite{wnuk2009feature} \
hline
Control charts
& $1$ & $0$ & $1$ &$1$ & $0$
& cite{sanghera2008fundamentals} \
hline
PRINCE 2 and Balance Scored Method
& $1$ & $0$ & $0$ &$0$ & $0$
& cite{sanghera2008fundamentals} \
hline
Cumulative Flow Diagram with some metrics
&$1$ & $0$ & $1$ & $1$ & $0$
& cite{sanghera2008fundamentals} \
hline
Earn Value Management and critical path method
& $1$ & $1$ & $1$ &$1$ & $0$
& cite{sliger2008software} \
hline
EVM and Use Case Point
& $1$ & $0$ & $1$& $1$ & $0$
& cite{wnuk2008visualization} \
hline
end{tabularx}
end{table}
end{document}
Don't use adjustbox
to make tabular material fit inside the textblock, unless you really wish to risk making the font size so small as to make the material unreadable without a magnifying glass. Instead, load the tabularx
environment, set its width to textwidth
and allow line breaks in the five header cells.
For the following screenshot, I've set the variable textwidth
to 15cm
as that's the value you use in your code for the width of the adjustbox
.
documentclass{article}
usepackage[english]{babel}
usepackage[textwidth=15cm]{geometry}
usepackage{tabularx,ragged2e}
newcolumntype{C}{>{Centeringarraybackslashhspace{0pt}}X}
usepackage[skip=0.333baselineskip]{caption} % optional
begin{document}
begin{table}[htbp]
setlengthtabcolsep{4pt} % default: 6pt
setlengthextrarowheight{2pt} % for a more open "look"
caption{Tool/technique for scope definition}
label{tab:fir}
begin{tabularx}{textwidth}{| >{RaggedRight}p{4cm} | *{5}{C|} c |}
hline
Techniquesslash tools &
multicolumn{5}{>{hsize=dimexpr5hsize+8tabcolseprelax}C|}%
{Combination of different approaches used as monitoring
and controlling methods in Software Project management} & Ref. \
cline{2-6}
& Monitoring & Quantification & Controlling
& Visualizing & Completeness & \
hline
Earn Value Management and Gantt Chart
& $1$ & $0$ & $1$&$1$ & $0$ & cite{sillitti2011agile} \
hline
Earn Value Management and statistical Methods
& $1$ & $0$ & $1$ & $0$& $0$ & cite{levin2009fundamentals} \
hline
Earn Value Management and Kanban
& $1$ & $0$ & $0$ &$1$ & $0$ & cite{corral2011evolution}\
hline
Value Stream Mapping and Kanban
& $1$ & $0$ & $0$ &$1$ &$0$
& cite{hans2013work}\
hline
Scrum and Kanban
& $1$ & $0$ & $0$ &$1$ & $0$
& cite{wnuk2009feature} \
hline
Control charts
& $1$ & $0$ & $1$ &$1$ & $0$
& cite{sanghera2008fundamentals} \
hline
PRINCE 2 and Balance Scored Method
& $1$ & $0$ & $0$ &$0$ & $0$
& cite{sanghera2008fundamentals} \
hline
Cumulative Flow Diagram with some metrics
&$1$ & $0$ & $1$ & $1$ & $0$
& cite{sanghera2008fundamentals} \
hline
Earn Value Management and critical path method
& $1$ & $1$ & $1$ &$1$ & $0$
& cite{sliger2008software} \
hline
EVM and Use Case Point
& $1$ & $0$ & $1$& $1$ & $0$
& cite{wnuk2008visualization} \
hline
end{tabularx}
end{table}
end{document}
edited Nov 18 at 9:49
answered Nov 18 at 9:30
Mico
269k30367751
269k30367751
how can i write the headings of 5 multi column fully in the above code? e g. Monitoring, Quantification, controlling, visualizing, completeness .
– avais
Nov 18 at 9:41
@avais - please clarify what you mean by writing the 5 headers "fully". Do you mean "on a single line"?
– Mico
Nov 18 at 9:44
Thanks a lot. it helped me
– avais
Nov 18 at 9:51
add a comment |
how can i write the headings of 5 multi column fully in the above code? e g. Monitoring, Quantification, controlling, visualizing, completeness .
– avais
Nov 18 at 9:41
@avais - please clarify what you mean by writing the 5 headers "fully". Do you mean "on a single line"?
– Mico
Nov 18 at 9:44
Thanks a lot. it helped me
– avais
Nov 18 at 9:51
how can i write the headings of 5 multi column fully in the above code? e g. Monitoring, Quantification, controlling, visualizing, completeness .
– avais
Nov 18 at 9:41
how can i write the headings of 5 multi column fully in the above code? e g. Monitoring, Quantification, controlling, visualizing, completeness .
– avais
Nov 18 at 9:41
@avais - please clarify what you mean by writing the 5 headers "fully". Do you mean "on a single line"?
– Mico
Nov 18 at 9:44
@avais - please clarify what you mean by writing the 5 headers "fully". Do you mean "on a single line"?
– Mico
Nov 18 at 9:44
Thanks a lot. it helped me
– avais
Nov 18 at 9:51
Thanks a lot. it helped me
– avais
Nov 18 at 9:51
add a comment |
avais is a new contributor. Be nice, and check out our Code of Conduct.
avais is a new contributor. Be nice, and check out our Code of Conduct.
avais is a new contributor. Be nice, and check out our Code of Conduct.
avais is a new contributor. Be nice, and check out our Code of Conduct.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f460555%2ftable-line-is-missing-at-the-top-right%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Welcome to TeX.SE!. Please provide a minimal working example that reproduces your problem.
– Dũng Vũ
Nov 18 at 9:10
1
To fix the issue mentioned in the title of your posting, all you'll have to do is change
multicolumn{6}{>{centering}p{1textwidth}}{...}
tomulticolumn{6}{>{centering}p{1textwidth}|}{...}
. However, as I set forth in my answer, you should re-evaluate your entire approach to designing the table, say, with the help of atabularx
environment.– Mico
Nov 18 at 9:33