How to remove extra black line coming in table due to hhlineCellcolor overwrites partial horizontal lines...
Am I a Rude Number?
How do Chazal know that the descendants of a Mamzer may never marry into the general populace?
Can we use the stored gravitational potential energy of a building to produce power?
Eww, those bytes are gross
Can I become debt free or should I file bankruptcy ? How to manage my debt and finances?
Why avoid shared user accounts?
Early credit roll before the end of the film
How can I get my players to come to the game session after agreeing to a date?
Blindfold battle as a gladiatorial spectacle - what are the tactics and communication methods?
What is 6÷2×(1+2) =?
Why do no American passenger airlines still operate dedicated cargo flights?
How to count the characters of jar files by wc
One Half of Ten; A Riddle
Cookies - Should the toggles be on?
Why zero tolerance on nudity in space?
Why did the villain in the first Men in Black movie care about Earth's Cockroaches?
Normalization for two bulk RNA-Seq samples to enable reliable fold-change estimation between genes
What is the purpose of easy combat scenarios that don't need resource expenditure?
Why is mind meld hard for T'pol in Star Trek: Enterprise?
How to say "Brexit" in Latin?
Intern applicant asking for compensation equivalent to that of permanent employee
awk + sum all numbers
Why is working on the same position for more than 15 years not a red flag?
Porting Linux to another platform requirements
How to remove extra black line coming in table due to hhline
Cellcolor overwrites partial horizontal lines (cline)Tabular and grid typesettinghhline - one “missing” linetabu package - gaps in vertical linesProblem with horizontal line in table using hhlinecellcolor overwrites table lines (hhline)Gap under top border of table while using hhlineAre beamer, hhline, and [table]{xcolor} incompatible?How to remove dot in tabular rule when using hhline?hhline with || separation in coloured tablehhline: double vertical line with a partial horizontal line
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
your question is closely related to tex.stackexchange.com/questions/65231/…, actually, it is duplicate to it.
– Zarko
2 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 4 hours ago
ShiS
asked 5 hours ago
ShiSShiS
307129
307129
your question is closely related to tex.stackexchange.com/questions/65231/…, actually, it is duplicate to it.
– Zarko
2 hours ago
add a comment |
your question is closely related to tex.stackexchange.com/questions/65231/…, actually, it is duplicate to it.
– Zarko
2 hours ago
your question is closely related to tex.stackexchange.com/questions/65231/…, actually, it is duplicate to it.
– Zarko
2 hours ago
your question is closely related to tex.stackexchange.com/questions/65231/…, actually, it is duplicate to it.
– Zarko
2 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{|~|-|-|-|-|-|-|} % <==========================================
% 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}
results in the following table:
Because you do not want to get rid of the lines I deleted the second table.
To get the lines of hhline
colored you need to change the command hhline{|~|-|-|-|-|-|-|}
to
hhline{|>{arrayrulecolor{aliceblue}}->{arrayrulecolor{black}}|-|-|-|-|-|-|}
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}}|-|-|-|-|-|-|} % <==========================================
% 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}
you get the result:
it should behhline{|~|-|-|-|-|-|-|}
, nothhline{~|-|-|-|-|-|-|}
:-)
– Zarko
4 hours ago
Horizontal and vertical lines are necessary in this case for me. Yes, that white line should be removed. Either it should be no line or line color should merge with background so that it is not visible. How to do that
– ShiS
4 hours ago
@Zarko You are too fast for me or I am be to slow ;-) See changed code and screenshots.
– Kurt
4 hours ago
@ShiS To get thehhline
right colored (without withe line behind "Method") use commandhhline{|>{arrayrulecolor{aliceblue}}->{arrayrulecolor{black}}|-|-|-|-|-|-|}
. See updated answer.
– Kurt
3 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
3 hours ago
|
show 2 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{|~|-|-|-|-|-|-|} % <==========================================
% 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}
results in the following table:
Because you do not want to get rid of the lines I deleted the second table.
To get the lines of hhline
colored you need to change the command hhline{|~|-|-|-|-|-|-|}
to
hhline{|>{arrayrulecolor{aliceblue}}->{arrayrulecolor{black}}|-|-|-|-|-|-|}
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}}|-|-|-|-|-|-|} % <==========================================
% 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}
you get the result:
it should behhline{|~|-|-|-|-|-|-|}
, nothhline{~|-|-|-|-|-|-|}
:-)
– Zarko
4 hours ago
Horizontal and vertical lines are necessary in this case for me. Yes, that white line should be removed. Either it should be no line or line color should merge with background so that it is not visible. How to do that
– ShiS
4 hours ago
@Zarko You are too fast for me or I am be to slow ;-) See changed code and screenshots.
– Kurt
4 hours ago
@ShiS To get thehhline
right colored (without withe line behind "Method") use commandhhline{|>{arrayrulecolor{aliceblue}}->{arrayrulecolor{black}}|-|-|-|-|-|-|}
. See updated answer.
– Kurt
3 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
3 hours ago
|
show 2 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{|~|-|-|-|-|-|-|} % <==========================================
% 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}
results in the following table:
Because you do not want to get rid of the lines I deleted the second table.
To get the lines of hhline
colored you need to change the command hhline{|~|-|-|-|-|-|-|}
to
hhline{|>{arrayrulecolor{aliceblue}}->{arrayrulecolor{black}}|-|-|-|-|-|-|}
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}}|-|-|-|-|-|-|} % <==========================================
% 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}
you get the result:
it should behhline{|~|-|-|-|-|-|-|}
, nothhline{~|-|-|-|-|-|-|}
:-)
– Zarko
4 hours ago
Horizontal and vertical lines are necessary in this case for me. Yes, that white line should be removed. Either it should be no line or line color should merge with background so that it is not visible. How to do that
– ShiS
4 hours ago
@Zarko You are too fast for me or I am be to slow ;-) See changed code and screenshots.
– Kurt
4 hours ago
@ShiS To get thehhline
right colored (without withe line behind "Method") use commandhhline{|>{arrayrulecolor{aliceblue}}->{arrayrulecolor{black}}|-|-|-|-|-|-|}
. See updated answer.
– Kurt
3 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
3 hours ago
|
show 2 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{|~|-|-|-|-|-|-|} % <==========================================
% 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}
results in the following table:
Because you do not want to get rid of the lines I deleted the second table.
To get the lines of hhline
colored you need to change the command hhline{|~|-|-|-|-|-|-|}
to
hhline{|>{arrayrulecolor{aliceblue}}->{arrayrulecolor{black}}|-|-|-|-|-|-|}
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}}|-|-|-|-|-|-|} % <==========================================
% 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}
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{|~|-|-|-|-|-|-|} % <==========================================
% 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}
results in the following table:
Because you do not want to get rid of the lines I deleted the second table.
To get the lines of hhline
colored you need to change the command hhline{|~|-|-|-|-|-|-|}
to
hhline{|>{arrayrulecolor{aliceblue}}->{arrayrulecolor{black}}|-|-|-|-|-|-|}
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}}|-|-|-|-|-|-|} % <==========================================
% 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}
you get the result:
edited 3 hours ago
answered 4 hours ago
KurtKurt
38.3k848162
38.3k848162
it should behhline{|~|-|-|-|-|-|-|}
, nothhline{~|-|-|-|-|-|-|}
:-)
– Zarko
4 hours ago
Horizontal and vertical lines are necessary in this case for me. Yes, that white line should be removed. Either it should be no line or line color should merge with background so that it is not visible. How to do that
– ShiS
4 hours ago
@Zarko You are too fast for me or I am be to slow ;-) See changed code and screenshots.
– Kurt
4 hours ago
@ShiS To get thehhline
right colored (without withe line behind "Method") use commandhhline{|>{arrayrulecolor{aliceblue}}->{arrayrulecolor{black}}|-|-|-|-|-|-|}
. See updated answer.
– Kurt
3 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
3 hours ago
|
show 2 more comments
it should behhline{|~|-|-|-|-|-|-|}
, nothhline{~|-|-|-|-|-|-|}
:-)
– Zarko
4 hours ago
Horizontal and vertical lines are necessary in this case for me. Yes, that white line should be removed. Either it should be no line or line color should merge with background so that it is not visible. How to do that
– ShiS
4 hours ago
@Zarko You are too fast for me or I am be to slow ;-) See changed code and screenshots.
– Kurt
4 hours ago
@ShiS To get thehhline
right colored (without withe line behind "Method") use commandhhline{|>{arrayrulecolor{aliceblue}}->{arrayrulecolor{black}}|-|-|-|-|-|-|}
. See updated answer.
– Kurt
3 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
3 hours ago
it should be
hhline{|~|-|-|-|-|-|-|}
, not hhline{~|-|-|-|-|-|-|}
:-)– Zarko
4 hours ago
it should be
hhline{|~|-|-|-|-|-|-|}
, not hhline{~|-|-|-|-|-|-|}
:-)– Zarko
4 hours ago
Horizontal and vertical lines are necessary in this case for me. Yes, that white line should be removed. Either it should be no line or line color should merge with background so that it is not visible. How to do that
– ShiS
4 hours ago
Horizontal and vertical lines are necessary in this case for me. Yes, that white line should be removed. Either it should be no line or line color should merge with background so that it is not visible. How to do that
– ShiS
4 hours ago
@Zarko You are too fast for me or I am be to slow ;-) See changed code and screenshots.
– Kurt
4 hours ago
@Zarko You are too fast for me or I am be to slow ;-) See changed code and screenshots.
– Kurt
4 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
3 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
3 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
3 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
3 hours ago
|
show 2 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 3 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 2 hours ago
leandriis
9,1971530
9,1971530
answered 3 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
your question is closely related to tex.stackexchange.com/questions/65231/…, actually, it is duplicate to it.
– Zarko
2 hours ago