How to remove extra black line coming in table due to hhline

Using the code given below, I am getting a black line over the word "Methods" due to hhline. How shall I remove this black line or make it of same color as the background color so that it is not visible?
documentclass{article}
usepackage{hhline}
usepackage[table]{xcolor}
usepackage{array}
usepackage{hhline}
usepackage{multirow}
definecolor{babyblue}{rgb}{0.54, 0.81, 0.94}
definecolor{aliceblue}{rgb}{0.94, 0.97, 1.0}
begin{document}
begin{table}
centering
setlengtharrayrulewidth{1.3pt}
footnotesizesetlength{tabcolsep}{2.7 pt}
renewcommand{arraystretch}{1.4}
begin{tabular}{|c|c|c|c|c|c|c|}
hline
cellcolor{aliceblue} & multicolumn{2}{c|}{cellcolor{babyblue}ISE} & multicolumn{2}{c|}{cellcolor{babyblue}IAE} & multicolumn{2}{c|}{cellcolor{babyblue}ITAE} \ hhline{-|-|-|-|-|-|-|} cline{2-7}
multirow{-2}{*}{cellcolor{aliceblue} Methods}
& cellcolor{aliceblue}-20% & cellcolor{aliceblue}+20% & cellcolor{aliceblue}-20% & cellcolor{aliceblue}+20% & cellcolor{aliceblue}-20% & cellcolor{aliceblue}+20% \ hhline{-|*6-}
rowcolor{babyblue}ABC & 0.5645 & 0.63 & 1.8 & 1.8 & 6.1 & 6.6 \ hhline{-|*6-}
rowcolor{aliceblue}XYZ & 2.1 & 2.3 & 0.881 & 9.82 & 9.2 & 28.9 \ hhline{-|*6-}
rowcolor{babyblue}MNO & 0.68 & 0.97 & 1.62 & 1.61 & 8.9 & 8.2 \ hhline{-|*6-}
rowcolor{aliceblue} PQR & 0.65 & 0.753 & 2.064 & 2.231 & 28.04 & 28.56 \ hhline{-|*6-}
end{tabular}
end{table}
end{document}
tables hhline
add a comment |

Using the code given below, I am getting a black line over the word "Methods" due to hhline. How shall I remove this black line or make it of same color as the background color so that it is not visible?
documentclass{article}
usepackage{hhline}
usepackage[table]{xcolor}
usepackage{array}
usepackage{hhline}
usepackage{multirow}
definecolor{babyblue}{rgb}{0.54, 0.81, 0.94}
definecolor{aliceblue}{rgb}{0.94, 0.97, 1.0}
begin{document}
begin{table}
centering
setlengtharrayrulewidth{1.3pt}
footnotesizesetlength{tabcolsep}{2.7 pt}
renewcommand{arraystretch}{1.4}
begin{tabular}{|c|c|c|c|c|c|c|}
hline
cellcolor{aliceblue} & multicolumn{2}{c|}{cellcolor{babyblue}ISE} & multicolumn{2}{c|}{cellcolor{babyblue}IAE} & multicolumn{2}{c|}{cellcolor{babyblue}ITAE} \ hhline{-|-|-|-|-|-|-|} cline{2-7}
multirow{-2}{*}{cellcolor{aliceblue} Methods}
& cellcolor{aliceblue}-20% & cellcolor{aliceblue}+20% & cellcolor{aliceblue}-20% & cellcolor{aliceblue}+20% & cellcolor{aliceblue}-20% & cellcolor{aliceblue}+20% \ hhline{-|*6-}
rowcolor{babyblue}ABC & 0.5645 & 0.63 & 1.8 & 1.8 & 6.1 & 6.6 \ hhline{-|*6-}
rowcolor{aliceblue}XYZ & 2.1 & 2.3 & 0.881 & 9.82 & 9.2 & 28.9 \ hhline{-|*6-}
rowcolor{babyblue}MNO & 0.68 & 0.97 & 1.62 & 1.61 & 8.9 & 8.2 \ hhline{-|*6-}
rowcolor{aliceblue} PQR & 0.65 & 0.753 & 2.064 & 2.231 & 28.04 & 28.56 \ hhline{-|*6-}
end{tabular}
end{table}
end{document}
tables hhline
1
your question is closely related to tex.stackexchange.com/questions/65231/…, actually, it is duplicate to it.
– Zarko
4 hours ago
add a comment |

Using the code given below, I am getting a black line over the word "Methods" due to hhline. How shall I remove this black line or make it of same color as the background color so that it is not visible?
documentclass{article}
usepackage{hhline}
usepackage[table]{xcolor}
usepackage{array}
usepackage{hhline}
usepackage{multirow}
definecolor{babyblue}{rgb}{0.54, 0.81, 0.94}
definecolor{aliceblue}{rgb}{0.94, 0.97, 1.0}
begin{document}
begin{table}
centering
setlengtharrayrulewidth{1.3pt}
footnotesizesetlength{tabcolsep}{2.7 pt}
renewcommand{arraystretch}{1.4}
begin{tabular}{|c|c|c|c|c|c|c|}
hline
cellcolor{aliceblue} & multicolumn{2}{c|}{cellcolor{babyblue}ISE} & multicolumn{2}{c|}{cellcolor{babyblue}IAE} & multicolumn{2}{c|}{cellcolor{babyblue}ITAE} \ hhline{-|-|-|-|-|-|-|} cline{2-7}
multirow{-2}{*}{cellcolor{aliceblue} Methods}
& cellcolor{aliceblue}-20% & cellcolor{aliceblue}+20% & cellcolor{aliceblue}-20% & cellcolor{aliceblue}+20% & cellcolor{aliceblue}-20% & cellcolor{aliceblue}+20% \ hhline{-|*6-}
rowcolor{babyblue}ABC & 0.5645 & 0.63 & 1.8 & 1.8 & 6.1 & 6.6 \ hhline{-|*6-}
rowcolor{aliceblue}XYZ & 2.1 & 2.3 & 0.881 & 9.82 & 9.2 & 28.9 \ hhline{-|*6-}
rowcolor{babyblue}MNO & 0.68 & 0.97 & 1.62 & 1.61 & 8.9 & 8.2 \ hhline{-|*6-}
rowcolor{aliceblue} PQR & 0.65 & 0.753 & 2.064 & 2.231 & 28.04 & 28.56 \ hhline{-|*6-}
end{tabular}
end{table}
end{document}
tables hhline

Using the code given below, I am getting a black line over the word "Methods" due to hhline. How shall I remove this black line or make it of same color as the background color so that it is not visible?
documentclass{article}
usepackage{hhline}
usepackage[table]{xcolor}
usepackage{array}
usepackage{hhline}
usepackage{multirow}
definecolor{babyblue}{rgb}{0.54, 0.81, 0.94}
definecolor{aliceblue}{rgb}{0.94, 0.97, 1.0}
begin{document}
begin{table}
centering
setlengtharrayrulewidth{1.3pt}
footnotesizesetlength{tabcolsep}{2.7 pt}
renewcommand{arraystretch}{1.4}
begin{tabular}{|c|c|c|c|c|c|c|}
hline
cellcolor{aliceblue} & multicolumn{2}{c|}{cellcolor{babyblue}ISE} & multicolumn{2}{c|}{cellcolor{babyblue}IAE} & multicolumn{2}{c|}{cellcolor{babyblue}ITAE} \ hhline{-|-|-|-|-|-|-|} cline{2-7}
multirow{-2}{*}{cellcolor{aliceblue} Methods}
& cellcolor{aliceblue}-20% & cellcolor{aliceblue}+20% & cellcolor{aliceblue}-20% & cellcolor{aliceblue}+20% & cellcolor{aliceblue}-20% & cellcolor{aliceblue}+20% \ hhline{-|*6-}
rowcolor{babyblue}ABC & 0.5645 & 0.63 & 1.8 & 1.8 & 6.1 & 6.6 \ hhline{-|*6-}
rowcolor{aliceblue}XYZ & 2.1 & 2.3 & 0.881 & 9.82 & 9.2 & 28.9 \ hhline{-|*6-}
rowcolor{babyblue}MNO & 0.68 & 0.97 & 1.62 & 1.61 & 8.9 & 8.2 \ hhline{-|*6-}
rowcolor{aliceblue} PQR & 0.65 & 0.753 & 2.064 & 2.231 & 28.04 & 28.56 \ hhline{-|*6-}
end{tabular}
end{table}
end{document}
tables hhline
tables hhline
edited 7 hours ago
ShiS
asked 7 hours ago
ShiSShiS
309129
309129
1
your question is closely related to tex.stackexchange.com/questions/65231/…, actually, it is duplicate to it.
– Zarko
4 hours ago
add a comment |
1
your question is closely related to tex.stackexchange.com/questions/65231/…, actually, it is duplicate to it.
– Zarko
4 hours ago
1
1
your question is closely related to tex.stackexchange.com/questions/65231/…, actually, it is duplicate to it.
– Zarko
4 hours ago
your question is closely related to tex.stackexchange.com/questions/65231/…, actually, it is duplicate to it.
– Zarko
4 hours ago
add a comment |
3 Answers
3
active
oldest
votes
You need to change your used command hhline{-|-|-|-|-|-|-|} to hhline{|~|-|-|-|-|-|-|} (see the ~ at the first position marking there should be no line).
So the following MWE
documentclass{article}
usepackage{hhline}
usepackage[table]{xcolor}
usepackage{array}
usepackage{multirow}
definecolor{babyblue}{rgb}{0.54, 0.81, 0.94}
definecolor{aliceblue}{rgb}{0.94, 0.97, 1.0}
begin{document}
begin{table}
centering
setlengtharrayrulewidth{1.3pt}
footnotesizesetlength{tabcolsep}{2.7 pt}
renewcommand{arraystretch}{1.4}
begin{tabular}{|c|c|c|c|c|c|c|}
hline
cellcolor{aliceblue} & multicolumn{2}{c|}{cellcolor{babyblue}ISE} & multicolumn{2}{c|}{cellcolor{babyblue}IAE} & multicolumn{2}{c|}{cellcolor{babyblue}ITAE} \
hhline{|~|-|-|-|-|-|-|} % <==========================================
multirow{-2}{*}{cellcolor{aliceblue}Methods}
& cellcolor{aliceblue}-20% & cellcolor{aliceblue}+20% & cellcolor{aliceblue}-20% & cellcolor{aliceblue}+20% & cellcolor{aliceblue}-20% & cellcolor{aliceblue}+20% \ hhline{-|*6-}
rowcolor{babyblue}ABC & 0.5645 & 0.63 & 1.8 & 1.8 & 6.1 & 6.6 \ hhline{-|*6-}
rowcolor{aliceblue}XYZ & 2.1 & 2.3 & 0.881 & 9.82 & 9.2 & 28.9 \ hhline{-|*6-}
rowcolor{babyblue}MNO & 0.68 & 0.97 & 1.62 & 1.61 & 8.9 & 8.2 \ hhline{-|*6-}
rowcolor{aliceblue} PQR & 0.65 & 0.753 & 2.064 & 2.231 & 28.04 & 28.56 \ hhline{-|*6-}
end{tabular}
end{table}
end{document}
results in the following table:

Because you do not want to get rid of the lines I deleted the second table.
To get rid of the underlaying white line under text "Method" you need to change the command hhline{|~|-|-|-|-|-|-|} to
hhline{|>{arrayrulecolor{aliceblue}}->{arrayrulecolor{black}}|-|-|-|-|-|-|}
Please see that this code prints the first part of line (marked with - again; ~ adds the white line!) and colored it in the same color the background has.
With the following MWE
documentclass{article}
usepackage{hhline}
usepackage[table]{xcolor}
usepackage{array}
usepackage{multirow}
usepackage{booktabs}
definecolor{babyblue}{rgb}{0.54, 0.81, 0.94}
definecolor{aliceblue}{rgb}{0.94, 0.97, 1.0}
begin{document}
begin{table}[ht]
centering
setlengtharrayrulewidth{1.3pt}
footnotesizesetlength{tabcolsep}{2.7 pt}
renewcommand{arraystretch}{1.4}
begin{tabular}{|c|c|c|c|c|c|c|}
hline
cellcolor{aliceblue} & multicolumn{2}{c|}{cellcolor{babyblue}ISE} & multicolumn{2}{c|}{cellcolor{babyblue}IAE} & multicolumn{2}{c|}{cellcolor{babyblue}ITAE} \
hhline{|>{arrayrulecolor{aliceblue}}->{arrayrulecolor{black}}|-|-|-|-|-|-|} % <==========================================
multirow{-2}{*}{cellcolor{aliceblue}Methods}
& cellcolor{aliceblue}-20% & cellcolor{aliceblue}+20% & cellcolor{aliceblue}-20% & cellcolor{aliceblue}+20% & cellcolor{aliceblue}-20% & cellcolor{aliceblue}+20% \ hhline{-|*6-}
rowcolor{babyblue}ABC & 0.5645 & 0.63 & 1.8 & 1.8 & 6.1 & 6.6 \ hhline{-|*6-}
rowcolor{aliceblue}XYZ & 2.1 & 2.3 & 0.881 & 9.82 & 9.2 & 28.9 \ hhline{-|*6-}
rowcolor{babyblue}MNO & 0.68 & 0.97 & 1.62 & 1.61 & 8.9 & 8.2 \ hhline{-|*6-}
rowcolor{aliceblue} PQR & 0.65 & 0.753 & 2.064 & 2.231 & 28.04 & 28.56 \ hhline{-|*6-}
end{tabular}
end{table}
end{document}
you get the result:

1
@ShiS To get thehhlineright colored (without withe line behind "Method") use commandhhline{|>{arrayrulecolor{aliceblue}}->{arrayrulecolor{black}}|-|-|-|-|-|-|}. See updated answer.
– Kurt
6 hours ago
1
+1 for answer. however, i would prefer table without colored rows, or exceptional only in table body but without vertical and horizontal lines. well people have different taste (fortunately :-) )
– Zarko
5 hours ago
1
@Zarko I thought about using the color for the columns instead the vertical lines. Different taste :-)
– Kurt
5 hours ago
1
@Kurt -- "Methods" isn't quite centered in the first column. Should be fixable either by removing the space that precedes it in the input or by adding a matching space after it.
– barbara beeton
2 hours ago
1
@barbarabeeton thanks, I changed it.
– Kurt
1 hour ago
|
show 3 more comments
i would redesign your table as follows:

documentclass{article}
usepackage{siunitx}
usepackage[table]{xcolor}
definecolor{babyblue}{rgb}{0.54, 0.81, 0.94}
definecolor{aliceblue}{rgb}{0.94, 0.97, 1.0}
usepackage{booktabs, multirow}
newcommandmcc[1]{multicolumn{2}{c}{#1}}
begin{document}
begin{table}[htb]
centering
renewcommandarraystretch{1.2}
rowcolors{2}{white}{aliceblue}
begin{tabular}{c *{6}{S} }
toprule
& mcc{ISE} & mcc{IAE} & mcc{ITAE} \
cmidrule(lr){2-3}cmidrule(lr){4-5}cmidrule(lr){6-7}
multirow{-2.3}{*}{Methods}
& {$-20%$} & {$+20%$}
& {$-20%$} & {$+20%$}
& {$$-20%$} & {$+20%$} \
hline
ABC & 0.5645 & 0.63 & 1.8 & 1.8 & 6.1 & 6.6 \
XYZ & 2.1 & 2.3 & 0.881 & 9.82 & 9.2 & 28.9 \
MNO & 0.68 & 0.97 & 1.62 & 1.61 & 8.9 & 8.2 \
PQR & 0.65 & 0.753 & 2.064 & 2.231 & 28.04 & 28.56 \
bottomrule
end{tabular}
end{table}
end{document}
add a comment |
Here is a solution for the white line in the multirow. intead of using hhline{~|-|-|-|-|-|-|}, I use a full width hhline , but make the first segment coloured with the background colour of the multirow.
I also took the liberty to simplify your code, and use the AliceBlue colour from svgnames, as it doesn't seem different from your aliceblue.
documentclass{article}
usepackage{hhline}
usepackage[table, svgnames]{xcolor}
usepackage{array}
usepackage{multirow}
usepackage{booktabs}
definecolor{babyblue}{rgb}{0.54, 0.81, 0.94}
begin{document}
begin{table}[ht]
centering
setlengtharrayrulewidth{1.3pt}
footnotesizesetlength{tabcolsep}{2.7 pt}
renewcommand{arraystretch}{1.4}
begin{tabular}{|c|c|c|c|c|c|c|}
hline
cellcolor{aliceblue} & multicolumn{2}{c|}{cellcolor{babyblue}ISE} & multicolumn{2}{c|}{cellcolor{babyblue}IAE} & multicolumn{2}{c|}{cellcolor{babyblue}ITAE} \
hhline{|>{arrayrulecolor{AliceBlue}}->{arrayrulecolor{black}}|*6{-}} % <==========================================
rowcolor{AliceBlue} multirow{-2}{*}{Methods}
&$ - $20% & +20% & $ - $20% & +20% & $ - $20% & +20% \ hhline{-|*6-}
rowcolor{babyblue}ABC & 0.5645 & 0.63 & 1.8 & 1.8 & 6.1 & 6.6 \ hhline{-|*6-}
rowcolor{AliceBlue}XYZ & 2.1 & 2.3 & 0.881 & 9.82 & 9.2 & 28.9 \ hhline{-|*6-}
rowcolor{babyblue}MNO & 0.68 & 0.97 & 1.62 & 1.61 & 8.9 & 8.2 \ hhline{-|*6-}
rowcolor{AliceBlue} PQR & 0.65 & 0.753 & 2.064 & 2.231 & 28.04 & 28.56 \ hhline{-|*6-}
end{tabular}
end{table}
end{document}

add a comment |
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "85"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
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%2f477205%2fhow-to-remove-extra-black-line-coming-in-table-due-to-hhline%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
3 Answers
3
active
oldest
votes
3 Answers
3
active
oldest
votes
active
oldest
votes
active
oldest
votes
You need to change your used command hhline{-|-|-|-|-|-|-|} to hhline{|~|-|-|-|-|-|-|} (see the ~ at the first position marking there should be no line).
So the following MWE
documentclass{article}
usepackage{hhline}
usepackage[table]{xcolor}
usepackage{array}
usepackage{multirow}
definecolor{babyblue}{rgb}{0.54, 0.81, 0.94}
definecolor{aliceblue}{rgb}{0.94, 0.97, 1.0}
begin{document}
begin{table}
centering
setlengtharrayrulewidth{1.3pt}
footnotesizesetlength{tabcolsep}{2.7 pt}
renewcommand{arraystretch}{1.4}
begin{tabular}{|c|c|c|c|c|c|c|}
hline
cellcolor{aliceblue} & multicolumn{2}{c|}{cellcolor{babyblue}ISE} & multicolumn{2}{c|}{cellcolor{babyblue}IAE} & multicolumn{2}{c|}{cellcolor{babyblue}ITAE} \
hhline{|~|-|-|-|-|-|-|} % <==========================================
multirow{-2}{*}{cellcolor{aliceblue}Methods}
& cellcolor{aliceblue}-20% & cellcolor{aliceblue}+20% & cellcolor{aliceblue}-20% & cellcolor{aliceblue}+20% & cellcolor{aliceblue}-20% & cellcolor{aliceblue}+20% \ hhline{-|*6-}
rowcolor{babyblue}ABC & 0.5645 & 0.63 & 1.8 & 1.8 & 6.1 & 6.6 \ hhline{-|*6-}
rowcolor{aliceblue}XYZ & 2.1 & 2.3 & 0.881 & 9.82 & 9.2 & 28.9 \ hhline{-|*6-}
rowcolor{babyblue}MNO & 0.68 & 0.97 & 1.62 & 1.61 & 8.9 & 8.2 \ hhline{-|*6-}
rowcolor{aliceblue} PQR & 0.65 & 0.753 & 2.064 & 2.231 & 28.04 & 28.56 \ hhline{-|*6-}
end{tabular}
end{table}
end{document}
results in the following table:

Because you do not want to get rid of the lines I deleted the second table.
To get rid of the underlaying white line under text "Method" you need to change the command hhline{|~|-|-|-|-|-|-|} to
hhline{|>{arrayrulecolor{aliceblue}}->{arrayrulecolor{black}}|-|-|-|-|-|-|}
Please see that this code prints the first part of line (marked with - again; ~ adds the white line!) and colored it in the same color the background has.
With the following MWE
documentclass{article}
usepackage{hhline}
usepackage[table]{xcolor}
usepackage{array}
usepackage{multirow}
usepackage{booktabs}
definecolor{babyblue}{rgb}{0.54, 0.81, 0.94}
definecolor{aliceblue}{rgb}{0.94, 0.97, 1.0}
begin{document}
begin{table}[ht]
centering
setlengtharrayrulewidth{1.3pt}
footnotesizesetlength{tabcolsep}{2.7 pt}
renewcommand{arraystretch}{1.4}
begin{tabular}{|c|c|c|c|c|c|c|}
hline
cellcolor{aliceblue} & multicolumn{2}{c|}{cellcolor{babyblue}ISE} & multicolumn{2}{c|}{cellcolor{babyblue}IAE} & multicolumn{2}{c|}{cellcolor{babyblue}ITAE} \
hhline{|>{arrayrulecolor{aliceblue}}->{arrayrulecolor{black}}|-|-|-|-|-|-|} % <==========================================
multirow{-2}{*}{cellcolor{aliceblue}Methods}
& cellcolor{aliceblue}-20% & cellcolor{aliceblue}+20% & cellcolor{aliceblue}-20% & cellcolor{aliceblue}+20% & cellcolor{aliceblue}-20% & cellcolor{aliceblue}+20% \ hhline{-|*6-}
rowcolor{babyblue}ABC & 0.5645 & 0.63 & 1.8 & 1.8 & 6.1 & 6.6 \ hhline{-|*6-}
rowcolor{aliceblue}XYZ & 2.1 & 2.3 & 0.881 & 9.82 & 9.2 & 28.9 \ hhline{-|*6-}
rowcolor{babyblue}MNO & 0.68 & 0.97 & 1.62 & 1.61 & 8.9 & 8.2 \ hhline{-|*6-}
rowcolor{aliceblue} PQR & 0.65 & 0.753 & 2.064 & 2.231 & 28.04 & 28.56 \ hhline{-|*6-}
end{tabular}
end{table}
end{document}
you get the result:

1
@ShiS To get thehhlineright colored (without withe line behind "Method") use commandhhline{|>{arrayrulecolor{aliceblue}}->{arrayrulecolor{black}}|-|-|-|-|-|-|}. See updated answer.
– Kurt
6 hours ago
1
+1 for answer. however, i would prefer table without colored rows, or exceptional only in table body but without vertical and horizontal lines. well people have different taste (fortunately :-) )
– Zarko
5 hours ago
1
@Zarko I thought about using the color for the columns instead the vertical lines. Different taste :-)
– Kurt
5 hours ago
1
@Kurt -- "Methods" isn't quite centered in the first column. Should be fixable either by removing the space that precedes it in the input or by adding a matching space after it.
– barbara beeton
2 hours ago
1
@barbarabeeton thanks, I changed it.
– Kurt
1 hour ago
|
show 3 more comments
You need to change your used command hhline{-|-|-|-|-|-|-|} to hhline{|~|-|-|-|-|-|-|} (see the ~ at the first position marking there should be no line).
So the following MWE
documentclass{article}
usepackage{hhline}
usepackage[table]{xcolor}
usepackage{array}
usepackage{multirow}
definecolor{babyblue}{rgb}{0.54, 0.81, 0.94}
definecolor{aliceblue}{rgb}{0.94, 0.97, 1.0}
begin{document}
begin{table}
centering
setlengtharrayrulewidth{1.3pt}
footnotesizesetlength{tabcolsep}{2.7 pt}
renewcommand{arraystretch}{1.4}
begin{tabular}{|c|c|c|c|c|c|c|}
hline
cellcolor{aliceblue} & multicolumn{2}{c|}{cellcolor{babyblue}ISE} & multicolumn{2}{c|}{cellcolor{babyblue}IAE} & multicolumn{2}{c|}{cellcolor{babyblue}ITAE} \
hhline{|~|-|-|-|-|-|-|} % <==========================================
multirow{-2}{*}{cellcolor{aliceblue}Methods}
& cellcolor{aliceblue}-20% & cellcolor{aliceblue}+20% & cellcolor{aliceblue}-20% & cellcolor{aliceblue}+20% & cellcolor{aliceblue}-20% & cellcolor{aliceblue}+20% \ hhline{-|*6-}
rowcolor{babyblue}ABC & 0.5645 & 0.63 & 1.8 & 1.8 & 6.1 & 6.6 \ hhline{-|*6-}
rowcolor{aliceblue}XYZ & 2.1 & 2.3 & 0.881 & 9.82 & 9.2 & 28.9 \ hhline{-|*6-}
rowcolor{babyblue}MNO & 0.68 & 0.97 & 1.62 & 1.61 & 8.9 & 8.2 \ hhline{-|*6-}
rowcolor{aliceblue} PQR & 0.65 & 0.753 & 2.064 & 2.231 & 28.04 & 28.56 \ hhline{-|*6-}
end{tabular}
end{table}
end{document}
results in the following table:

Because you do not want to get rid of the lines I deleted the second table.
To get rid of the underlaying white line under text "Method" you need to change the command hhline{|~|-|-|-|-|-|-|} to
hhline{|>{arrayrulecolor{aliceblue}}->{arrayrulecolor{black}}|-|-|-|-|-|-|}
Please see that this code prints the first part of line (marked with - again; ~ adds the white line!) and colored it in the same color the background has.
With the following MWE
documentclass{article}
usepackage{hhline}
usepackage[table]{xcolor}
usepackage{array}
usepackage{multirow}
usepackage{booktabs}
definecolor{babyblue}{rgb}{0.54, 0.81, 0.94}
definecolor{aliceblue}{rgb}{0.94, 0.97, 1.0}
begin{document}
begin{table}[ht]
centering
setlengtharrayrulewidth{1.3pt}
footnotesizesetlength{tabcolsep}{2.7 pt}
renewcommand{arraystretch}{1.4}
begin{tabular}{|c|c|c|c|c|c|c|}
hline
cellcolor{aliceblue} & multicolumn{2}{c|}{cellcolor{babyblue}ISE} & multicolumn{2}{c|}{cellcolor{babyblue}IAE} & multicolumn{2}{c|}{cellcolor{babyblue}ITAE} \
hhline{|>{arrayrulecolor{aliceblue}}->{arrayrulecolor{black}}|-|-|-|-|-|-|} % <==========================================
multirow{-2}{*}{cellcolor{aliceblue}Methods}
& cellcolor{aliceblue}-20% & cellcolor{aliceblue}+20% & cellcolor{aliceblue}-20% & cellcolor{aliceblue}+20% & cellcolor{aliceblue}-20% & cellcolor{aliceblue}+20% \ hhline{-|*6-}
rowcolor{babyblue}ABC & 0.5645 & 0.63 & 1.8 & 1.8 & 6.1 & 6.6 \ hhline{-|*6-}
rowcolor{aliceblue}XYZ & 2.1 & 2.3 & 0.881 & 9.82 & 9.2 & 28.9 \ hhline{-|*6-}
rowcolor{babyblue}MNO & 0.68 & 0.97 & 1.62 & 1.61 & 8.9 & 8.2 \ hhline{-|*6-}
rowcolor{aliceblue} PQR & 0.65 & 0.753 & 2.064 & 2.231 & 28.04 & 28.56 \ hhline{-|*6-}
end{tabular}
end{table}
end{document}
you get the result:

1
@ShiS To get thehhlineright colored (without withe line behind "Method") use commandhhline{|>{arrayrulecolor{aliceblue}}->{arrayrulecolor{black}}|-|-|-|-|-|-|}. See updated answer.
– Kurt
6 hours ago
1
+1 for answer. however, i would prefer table without colored rows, or exceptional only in table body but without vertical and horizontal lines. well people have different taste (fortunately :-) )
– Zarko
5 hours ago
1
@Zarko I thought about using the color for the columns instead the vertical lines. Different taste :-)
– Kurt
5 hours ago
1
@Kurt -- "Methods" isn't quite centered in the first column. Should be fixable either by removing the space that precedes it in the input or by adding a matching space after it.
– barbara beeton
2 hours ago
1
@barbarabeeton thanks, I changed it.
– Kurt
1 hour ago
|
show 3 more comments
You need to change your used command hhline{-|-|-|-|-|-|-|} to hhline{|~|-|-|-|-|-|-|} (see the ~ at the first position marking there should be no line).
So the following MWE
documentclass{article}
usepackage{hhline}
usepackage[table]{xcolor}
usepackage{array}
usepackage{multirow}
definecolor{babyblue}{rgb}{0.54, 0.81, 0.94}
definecolor{aliceblue}{rgb}{0.94, 0.97, 1.0}
begin{document}
begin{table}
centering
setlengtharrayrulewidth{1.3pt}
footnotesizesetlength{tabcolsep}{2.7 pt}
renewcommand{arraystretch}{1.4}
begin{tabular}{|c|c|c|c|c|c|c|}
hline
cellcolor{aliceblue} & multicolumn{2}{c|}{cellcolor{babyblue}ISE} & multicolumn{2}{c|}{cellcolor{babyblue}IAE} & multicolumn{2}{c|}{cellcolor{babyblue}ITAE} \
hhline{|~|-|-|-|-|-|-|} % <==========================================
multirow{-2}{*}{cellcolor{aliceblue}Methods}
& cellcolor{aliceblue}-20% & cellcolor{aliceblue}+20% & cellcolor{aliceblue}-20% & cellcolor{aliceblue}+20% & cellcolor{aliceblue}-20% & cellcolor{aliceblue}+20% \ hhline{-|*6-}
rowcolor{babyblue}ABC & 0.5645 & 0.63 & 1.8 & 1.8 & 6.1 & 6.6 \ hhline{-|*6-}
rowcolor{aliceblue}XYZ & 2.1 & 2.3 & 0.881 & 9.82 & 9.2 & 28.9 \ hhline{-|*6-}
rowcolor{babyblue}MNO & 0.68 & 0.97 & 1.62 & 1.61 & 8.9 & 8.2 \ hhline{-|*6-}
rowcolor{aliceblue} PQR & 0.65 & 0.753 & 2.064 & 2.231 & 28.04 & 28.56 \ hhline{-|*6-}
end{tabular}
end{table}
end{document}
results in the following table:

Because you do not want to get rid of the lines I deleted the second table.
To get rid of the underlaying white line under text "Method" you need to change the command hhline{|~|-|-|-|-|-|-|} to
hhline{|>{arrayrulecolor{aliceblue}}->{arrayrulecolor{black}}|-|-|-|-|-|-|}
Please see that this code prints the first part of line (marked with - again; ~ adds the white line!) and colored it in the same color the background has.
With the following MWE
documentclass{article}
usepackage{hhline}
usepackage[table]{xcolor}
usepackage{array}
usepackage{multirow}
usepackage{booktabs}
definecolor{babyblue}{rgb}{0.54, 0.81, 0.94}
definecolor{aliceblue}{rgb}{0.94, 0.97, 1.0}
begin{document}
begin{table}[ht]
centering
setlengtharrayrulewidth{1.3pt}
footnotesizesetlength{tabcolsep}{2.7 pt}
renewcommand{arraystretch}{1.4}
begin{tabular}{|c|c|c|c|c|c|c|}
hline
cellcolor{aliceblue} & multicolumn{2}{c|}{cellcolor{babyblue}ISE} & multicolumn{2}{c|}{cellcolor{babyblue}IAE} & multicolumn{2}{c|}{cellcolor{babyblue}ITAE} \
hhline{|>{arrayrulecolor{aliceblue}}->{arrayrulecolor{black}}|-|-|-|-|-|-|} % <==========================================
multirow{-2}{*}{cellcolor{aliceblue}Methods}
& cellcolor{aliceblue}-20% & cellcolor{aliceblue}+20% & cellcolor{aliceblue}-20% & cellcolor{aliceblue}+20% & cellcolor{aliceblue}-20% & cellcolor{aliceblue}+20% \ hhline{-|*6-}
rowcolor{babyblue}ABC & 0.5645 & 0.63 & 1.8 & 1.8 & 6.1 & 6.6 \ hhline{-|*6-}
rowcolor{aliceblue}XYZ & 2.1 & 2.3 & 0.881 & 9.82 & 9.2 & 28.9 \ hhline{-|*6-}
rowcolor{babyblue}MNO & 0.68 & 0.97 & 1.62 & 1.61 & 8.9 & 8.2 \ hhline{-|*6-}
rowcolor{aliceblue} PQR & 0.65 & 0.753 & 2.064 & 2.231 & 28.04 & 28.56 \ hhline{-|*6-}
end{tabular}
end{table}
end{document}
you get the result:

You need to change your used command hhline{-|-|-|-|-|-|-|} to hhline{|~|-|-|-|-|-|-|} (see the ~ at the first position marking there should be no line).
So the following MWE
documentclass{article}
usepackage{hhline}
usepackage[table]{xcolor}
usepackage{array}
usepackage{multirow}
definecolor{babyblue}{rgb}{0.54, 0.81, 0.94}
definecolor{aliceblue}{rgb}{0.94, 0.97, 1.0}
begin{document}
begin{table}
centering
setlengtharrayrulewidth{1.3pt}
footnotesizesetlength{tabcolsep}{2.7 pt}
renewcommand{arraystretch}{1.4}
begin{tabular}{|c|c|c|c|c|c|c|}
hline
cellcolor{aliceblue} & multicolumn{2}{c|}{cellcolor{babyblue}ISE} & multicolumn{2}{c|}{cellcolor{babyblue}IAE} & multicolumn{2}{c|}{cellcolor{babyblue}ITAE} \
hhline{|~|-|-|-|-|-|-|} % <==========================================
multirow{-2}{*}{cellcolor{aliceblue}Methods}
& cellcolor{aliceblue}-20% & cellcolor{aliceblue}+20% & cellcolor{aliceblue}-20% & cellcolor{aliceblue}+20% & cellcolor{aliceblue}-20% & cellcolor{aliceblue}+20% \ hhline{-|*6-}
rowcolor{babyblue}ABC & 0.5645 & 0.63 & 1.8 & 1.8 & 6.1 & 6.6 \ hhline{-|*6-}
rowcolor{aliceblue}XYZ & 2.1 & 2.3 & 0.881 & 9.82 & 9.2 & 28.9 \ hhline{-|*6-}
rowcolor{babyblue}MNO & 0.68 & 0.97 & 1.62 & 1.61 & 8.9 & 8.2 \ hhline{-|*6-}
rowcolor{aliceblue} PQR & 0.65 & 0.753 & 2.064 & 2.231 & 28.04 & 28.56 \ hhline{-|*6-}
end{tabular}
end{table}
end{document}
results in the following table:

Because you do not want to get rid of the lines I deleted the second table.
To get rid of the underlaying white line under text "Method" you need to change the command hhline{|~|-|-|-|-|-|-|} to
hhline{|>{arrayrulecolor{aliceblue}}->{arrayrulecolor{black}}|-|-|-|-|-|-|}
Please see that this code prints the first part of line (marked with - again; ~ adds the white line!) and colored it in the same color the background has.
With the following MWE
documentclass{article}
usepackage{hhline}
usepackage[table]{xcolor}
usepackage{array}
usepackage{multirow}
usepackage{booktabs}
definecolor{babyblue}{rgb}{0.54, 0.81, 0.94}
definecolor{aliceblue}{rgb}{0.94, 0.97, 1.0}
begin{document}
begin{table}[ht]
centering
setlengtharrayrulewidth{1.3pt}
footnotesizesetlength{tabcolsep}{2.7 pt}
renewcommand{arraystretch}{1.4}
begin{tabular}{|c|c|c|c|c|c|c|}
hline
cellcolor{aliceblue} & multicolumn{2}{c|}{cellcolor{babyblue}ISE} & multicolumn{2}{c|}{cellcolor{babyblue}IAE} & multicolumn{2}{c|}{cellcolor{babyblue}ITAE} \
hhline{|>{arrayrulecolor{aliceblue}}->{arrayrulecolor{black}}|-|-|-|-|-|-|} % <==========================================
multirow{-2}{*}{cellcolor{aliceblue}Methods}
& cellcolor{aliceblue}-20% & cellcolor{aliceblue}+20% & cellcolor{aliceblue}-20% & cellcolor{aliceblue}+20% & cellcolor{aliceblue}-20% & cellcolor{aliceblue}+20% \ hhline{-|*6-}
rowcolor{babyblue}ABC & 0.5645 & 0.63 & 1.8 & 1.8 & 6.1 & 6.6 \ hhline{-|*6-}
rowcolor{aliceblue}XYZ & 2.1 & 2.3 & 0.881 & 9.82 & 9.2 & 28.9 \ hhline{-|*6-}
rowcolor{babyblue}MNO & 0.68 & 0.97 & 1.62 & 1.61 & 8.9 & 8.2 \ hhline{-|*6-}
rowcolor{aliceblue} PQR & 0.65 & 0.753 & 2.064 & 2.231 & 28.04 & 28.56 \ hhline{-|*6-}
end{tabular}
end{table}
end{document}
you get the result:

edited 2 hours ago
answered 6 hours ago
KurtKurt
38.4k848162
38.4k848162
1
@ShiS To get thehhlineright colored (without withe line behind "Method") use commandhhline{|>{arrayrulecolor{aliceblue}}->{arrayrulecolor{black}}|-|-|-|-|-|-|}. See updated answer.
– Kurt
6 hours ago
1
+1 for answer. however, i would prefer table without colored rows, or exceptional only in table body but without vertical and horizontal lines. well people have different taste (fortunately :-) )
– Zarko
5 hours ago
1
@Zarko I thought about using the color for the columns instead the vertical lines. Different taste :-)
– Kurt
5 hours ago
1
@Kurt -- "Methods" isn't quite centered in the first column. Should be fixable either by removing the space that precedes it in the input or by adding a matching space after it.
– barbara beeton
2 hours ago
1
@barbarabeeton thanks, I changed it.
– Kurt
1 hour ago
|
show 3 more comments
1
@ShiS To get thehhlineright colored (without withe line behind "Method") use commandhhline{|>{arrayrulecolor{aliceblue}}->{arrayrulecolor{black}}|-|-|-|-|-|-|}. See updated answer.
– Kurt
6 hours ago
1
+1 for answer. however, i would prefer table without colored rows, or exceptional only in table body but without vertical and horizontal lines. well people have different taste (fortunately :-) )
– Zarko
5 hours ago
1
@Zarko I thought about using the color for the columns instead the vertical lines. Different taste :-)
– Kurt
5 hours ago
1
@Kurt -- "Methods" isn't quite centered in the first column. Should be fixable either by removing the space that precedes it in the input or by adding a matching space after it.
– barbara beeton
2 hours ago
1
@barbarabeeton thanks, I changed it.
– Kurt
1 hour ago
1
1
@ShiS To get the
hhline right colored (without withe line behind "Method") use command hhline{|>{arrayrulecolor{aliceblue}}->{arrayrulecolor{black}}|-|-|-|-|-|-|}. See updated answer.– Kurt
6 hours ago
@ShiS To get the
hhline right colored (without withe line behind "Method") use command hhline{|>{arrayrulecolor{aliceblue}}->{arrayrulecolor{black}}|-|-|-|-|-|-|}. See updated answer.– Kurt
6 hours ago
1
1
+1 for answer. however, i would prefer table without colored rows, or exceptional only in table body but without vertical and horizontal lines. well people have different taste (fortunately :-) )
– Zarko
5 hours ago
+1 for answer. however, i would prefer table without colored rows, or exceptional only in table body but without vertical and horizontal lines. well people have different taste (fortunately :-) )
– Zarko
5 hours ago
1
1
@Zarko I thought about using the color for the columns instead the vertical lines. Different taste :-)
– Kurt
5 hours ago
@Zarko I thought about using the color for the columns instead the vertical lines. Different taste :-)
– Kurt
5 hours ago
1
1
@Kurt -- "Methods" isn't quite centered in the first column. Should be fixable either by removing the space that precedes it in the input or by adding a matching space after it.
– barbara beeton
2 hours ago
@Kurt -- "Methods" isn't quite centered in the first column. Should be fixable either by removing the space that precedes it in the input or by adding a matching space after it.
– barbara beeton
2 hours ago
1
1
@barbarabeeton thanks, I changed it.
– Kurt
1 hour ago
@barbarabeeton thanks, I changed it.
– Kurt
1 hour ago
|
show 3 more comments
i would redesign your table as follows:

documentclass{article}
usepackage{siunitx}
usepackage[table]{xcolor}
definecolor{babyblue}{rgb}{0.54, 0.81, 0.94}
definecolor{aliceblue}{rgb}{0.94, 0.97, 1.0}
usepackage{booktabs, multirow}
newcommandmcc[1]{multicolumn{2}{c}{#1}}
begin{document}
begin{table}[htb]
centering
renewcommandarraystretch{1.2}
rowcolors{2}{white}{aliceblue}
begin{tabular}{c *{6}{S} }
toprule
& mcc{ISE} & mcc{IAE} & mcc{ITAE} \
cmidrule(lr){2-3}cmidrule(lr){4-5}cmidrule(lr){6-7}
multirow{-2.3}{*}{Methods}
& {$-20%$} & {$+20%$}
& {$-20%$} & {$+20%$}
& {$$-20%$} & {$+20%$} \
hline
ABC & 0.5645 & 0.63 & 1.8 & 1.8 & 6.1 & 6.6 \
XYZ & 2.1 & 2.3 & 0.881 & 9.82 & 9.2 & 28.9 \
MNO & 0.68 & 0.97 & 1.62 & 1.61 & 8.9 & 8.2 \
PQR & 0.65 & 0.753 & 2.064 & 2.231 & 28.04 & 28.56 \
bottomrule
end{tabular}
end{table}
end{document}
add a comment |
i would redesign your table as follows:

documentclass{article}
usepackage{siunitx}
usepackage[table]{xcolor}
definecolor{babyblue}{rgb}{0.54, 0.81, 0.94}
definecolor{aliceblue}{rgb}{0.94, 0.97, 1.0}
usepackage{booktabs, multirow}
newcommandmcc[1]{multicolumn{2}{c}{#1}}
begin{document}
begin{table}[htb]
centering
renewcommandarraystretch{1.2}
rowcolors{2}{white}{aliceblue}
begin{tabular}{c *{6}{S} }
toprule
& mcc{ISE} & mcc{IAE} & mcc{ITAE} \
cmidrule(lr){2-3}cmidrule(lr){4-5}cmidrule(lr){6-7}
multirow{-2.3}{*}{Methods}
& {$-20%$} & {$+20%$}
& {$-20%$} & {$+20%$}
& {$$-20%$} & {$+20%$} \
hline
ABC & 0.5645 & 0.63 & 1.8 & 1.8 & 6.1 & 6.6 \
XYZ & 2.1 & 2.3 & 0.881 & 9.82 & 9.2 & 28.9 \
MNO & 0.68 & 0.97 & 1.62 & 1.61 & 8.9 & 8.2 \
PQR & 0.65 & 0.753 & 2.064 & 2.231 & 28.04 & 28.56 \
bottomrule
end{tabular}
end{table}
end{document}
add a comment |
i would redesign your table as follows:

documentclass{article}
usepackage{siunitx}
usepackage[table]{xcolor}
definecolor{babyblue}{rgb}{0.54, 0.81, 0.94}
definecolor{aliceblue}{rgb}{0.94, 0.97, 1.0}
usepackage{booktabs, multirow}
newcommandmcc[1]{multicolumn{2}{c}{#1}}
begin{document}
begin{table}[htb]
centering
renewcommandarraystretch{1.2}
rowcolors{2}{white}{aliceblue}
begin{tabular}{c *{6}{S} }
toprule
& mcc{ISE} & mcc{IAE} & mcc{ITAE} \
cmidrule(lr){2-3}cmidrule(lr){4-5}cmidrule(lr){6-7}
multirow{-2.3}{*}{Methods}
& {$-20%$} & {$+20%$}
& {$-20%$} & {$+20%$}
& {$$-20%$} & {$+20%$} \
hline
ABC & 0.5645 & 0.63 & 1.8 & 1.8 & 6.1 & 6.6 \
XYZ & 2.1 & 2.3 & 0.881 & 9.82 & 9.2 & 28.9 \
MNO & 0.68 & 0.97 & 1.62 & 1.61 & 8.9 & 8.2 \
PQR & 0.65 & 0.753 & 2.064 & 2.231 & 28.04 & 28.56 \
bottomrule
end{tabular}
end{table}
end{document}
i would redesign your table as follows:

documentclass{article}
usepackage{siunitx}
usepackage[table]{xcolor}
definecolor{babyblue}{rgb}{0.54, 0.81, 0.94}
definecolor{aliceblue}{rgb}{0.94, 0.97, 1.0}
usepackage{booktabs, multirow}
newcommandmcc[1]{multicolumn{2}{c}{#1}}
begin{document}
begin{table}[htb]
centering
renewcommandarraystretch{1.2}
rowcolors{2}{white}{aliceblue}
begin{tabular}{c *{6}{S} }
toprule
& mcc{ISE} & mcc{IAE} & mcc{ITAE} \
cmidrule(lr){2-3}cmidrule(lr){4-5}cmidrule(lr){6-7}
multirow{-2.3}{*}{Methods}
& {$-20%$} & {$+20%$}
& {$-20%$} & {$+20%$}
& {$$-20%$} & {$+20%$} \
hline
ABC & 0.5645 & 0.63 & 1.8 & 1.8 & 6.1 & 6.6 \
XYZ & 2.1 & 2.3 & 0.881 & 9.82 & 9.2 & 28.9 \
MNO & 0.68 & 0.97 & 1.62 & 1.61 & 8.9 & 8.2 \
PQR & 0.65 & 0.753 & 2.064 & 2.231 & 28.04 & 28.56 \
bottomrule
end{tabular}
end{table}
end{document}
answered 5 hours ago
ZarkoZarko
126k867164
126k867164
add a comment |
add a comment |
Here is a solution for the white line in the multirow. intead of using hhline{~|-|-|-|-|-|-|}, I use a full width hhline , but make the first segment coloured with the background colour of the multirow.
I also took the liberty to simplify your code, and use the AliceBlue colour from svgnames, as it doesn't seem different from your aliceblue.
documentclass{article}
usepackage{hhline}
usepackage[table, svgnames]{xcolor}
usepackage{array}
usepackage{multirow}
usepackage{booktabs}
definecolor{babyblue}{rgb}{0.54, 0.81, 0.94}
begin{document}
begin{table}[ht]
centering
setlengtharrayrulewidth{1.3pt}
footnotesizesetlength{tabcolsep}{2.7 pt}
renewcommand{arraystretch}{1.4}
begin{tabular}{|c|c|c|c|c|c|c|}
hline
cellcolor{aliceblue} & multicolumn{2}{c|}{cellcolor{babyblue}ISE} & multicolumn{2}{c|}{cellcolor{babyblue}IAE} & multicolumn{2}{c|}{cellcolor{babyblue}ITAE} \
hhline{|>{arrayrulecolor{AliceBlue}}->{arrayrulecolor{black}}|*6{-}} % <==========================================
rowcolor{AliceBlue} multirow{-2}{*}{Methods}
&$ - $20% & +20% & $ - $20% & +20% & $ - $20% & +20% \ hhline{-|*6-}
rowcolor{babyblue}ABC & 0.5645 & 0.63 & 1.8 & 1.8 & 6.1 & 6.6 \ hhline{-|*6-}
rowcolor{AliceBlue}XYZ & 2.1 & 2.3 & 0.881 & 9.82 & 9.2 & 28.9 \ hhline{-|*6-}
rowcolor{babyblue}MNO & 0.68 & 0.97 & 1.62 & 1.61 & 8.9 & 8.2 \ hhline{-|*6-}
rowcolor{AliceBlue} PQR & 0.65 & 0.753 & 2.064 & 2.231 & 28.04 & 28.56 \ hhline{-|*6-}
end{tabular}
end{table}
end{document}

add a comment |
Here is a solution for the white line in the multirow. intead of using hhline{~|-|-|-|-|-|-|}, I use a full width hhline , but make the first segment coloured with the background colour of the multirow.
I also took the liberty to simplify your code, and use the AliceBlue colour from svgnames, as it doesn't seem different from your aliceblue.
documentclass{article}
usepackage{hhline}
usepackage[table, svgnames]{xcolor}
usepackage{array}
usepackage{multirow}
usepackage{booktabs}
definecolor{babyblue}{rgb}{0.54, 0.81, 0.94}
begin{document}
begin{table}[ht]
centering
setlengtharrayrulewidth{1.3pt}
footnotesizesetlength{tabcolsep}{2.7 pt}
renewcommand{arraystretch}{1.4}
begin{tabular}{|c|c|c|c|c|c|c|}
hline
cellcolor{aliceblue} & multicolumn{2}{c|}{cellcolor{babyblue}ISE} & multicolumn{2}{c|}{cellcolor{babyblue}IAE} & multicolumn{2}{c|}{cellcolor{babyblue}ITAE} \
hhline{|>{arrayrulecolor{AliceBlue}}->{arrayrulecolor{black}}|*6{-}} % <==========================================
rowcolor{AliceBlue} multirow{-2}{*}{Methods}
&$ - $20% & +20% & $ - $20% & +20% & $ - $20% & +20% \ hhline{-|*6-}
rowcolor{babyblue}ABC & 0.5645 & 0.63 & 1.8 & 1.8 & 6.1 & 6.6 \ hhline{-|*6-}
rowcolor{AliceBlue}XYZ & 2.1 & 2.3 & 0.881 & 9.82 & 9.2 & 28.9 \ hhline{-|*6-}
rowcolor{babyblue}MNO & 0.68 & 0.97 & 1.62 & 1.61 & 8.9 & 8.2 \ hhline{-|*6-}
rowcolor{AliceBlue} PQR & 0.65 & 0.753 & 2.064 & 2.231 & 28.04 & 28.56 \ hhline{-|*6-}
end{tabular}
end{table}
end{document}

add a comment |
Here is a solution for the white line in the multirow. intead of using hhline{~|-|-|-|-|-|-|}, I use a full width hhline , but make the first segment coloured with the background colour of the multirow.
I also took the liberty to simplify your code, and use the AliceBlue colour from svgnames, as it doesn't seem different from your aliceblue.
documentclass{article}
usepackage{hhline}
usepackage[table, svgnames]{xcolor}
usepackage{array}
usepackage{multirow}
usepackage{booktabs}
definecolor{babyblue}{rgb}{0.54, 0.81, 0.94}
begin{document}
begin{table}[ht]
centering
setlengtharrayrulewidth{1.3pt}
footnotesizesetlength{tabcolsep}{2.7 pt}
renewcommand{arraystretch}{1.4}
begin{tabular}{|c|c|c|c|c|c|c|}
hline
cellcolor{aliceblue} & multicolumn{2}{c|}{cellcolor{babyblue}ISE} & multicolumn{2}{c|}{cellcolor{babyblue}IAE} & multicolumn{2}{c|}{cellcolor{babyblue}ITAE} \
hhline{|>{arrayrulecolor{AliceBlue}}->{arrayrulecolor{black}}|*6{-}} % <==========================================
rowcolor{AliceBlue} multirow{-2}{*}{Methods}
&$ - $20% & +20% & $ - $20% & +20% & $ - $20% & +20% \ hhline{-|*6-}
rowcolor{babyblue}ABC & 0.5645 & 0.63 & 1.8 & 1.8 & 6.1 & 6.6 \ hhline{-|*6-}
rowcolor{AliceBlue}XYZ & 2.1 & 2.3 & 0.881 & 9.82 & 9.2 & 28.9 \ hhline{-|*6-}
rowcolor{babyblue}MNO & 0.68 & 0.97 & 1.62 & 1.61 & 8.9 & 8.2 \ hhline{-|*6-}
rowcolor{AliceBlue} PQR & 0.65 & 0.753 & 2.064 & 2.231 & 28.04 & 28.56 \ hhline{-|*6-}
end{tabular}
end{table}
end{document}

Here is a solution for the white line in the multirow. intead of using hhline{~|-|-|-|-|-|-|}, I use a full width hhline , but make the first segment coloured with the background colour of the multirow.
I also took the liberty to simplify your code, and use the AliceBlue colour from svgnames, as it doesn't seem different from your aliceblue.
documentclass{article}
usepackage{hhline}
usepackage[table, svgnames]{xcolor}
usepackage{array}
usepackage{multirow}
usepackage{booktabs}
definecolor{babyblue}{rgb}{0.54, 0.81, 0.94}
begin{document}
begin{table}[ht]
centering
setlengtharrayrulewidth{1.3pt}
footnotesizesetlength{tabcolsep}{2.7 pt}
renewcommand{arraystretch}{1.4}
begin{tabular}{|c|c|c|c|c|c|c|}
hline
cellcolor{aliceblue} & multicolumn{2}{c|}{cellcolor{babyblue}ISE} & multicolumn{2}{c|}{cellcolor{babyblue}IAE} & multicolumn{2}{c|}{cellcolor{babyblue}ITAE} \
hhline{|>{arrayrulecolor{AliceBlue}}->{arrayrulecolor{black}}|*6{-}} % <==========================================
rowcolor{AliceBlue} multirow{-2}{*}{Methods}
&$ - $20% & +20% & $ - $20% & +20% & $ - $20% & +20% \ hhline{-|*6-}
rowcolor{babyblue}ABC & 0.5645 & 0.63 & 1.8 & 1.8 & 6.1 & 6.6 \ hhline{-|*6-}
rowcolor{AliceBlue}XYZ & 2.1 & 2.3 & 0.881 & 9.82 & 9.2 & 28.9 \ hhline{-|*6-}
rowcolor{babyblue}MNO & 0.68 & 0.97 & 1.62 & 1.61 & 8.9 & 8.2 \ hhline{-|*6-}
rowcolor{AliceBlue} PQR & 0.65 & 0.753 & 2.064 & 2.231 & 28.04 & 28.56 \ hhline{-|*6-}
end{tabular}
end{table}
end{document}

edited 5 hours ago
leandriis
9,1971530
9,1971530
answered 5 hours ago
BernardBernard
171k775203
171k775203
add a comment |
add a comment |
Thanks for contributing an answer to TeX - LaTeX Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
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%2f477205%2fhow-to-remove-extra-black-line-coming-in-table-due-to-hhline%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
1
your question is closely related to tex.stackexchange.com/questions/65231/…, actually, it is duplicate to it.
– Zarko
4 hours ago