How to remove extra black line coming in table due to hhlineCellcolor overwrites partial horizontal lines...
The weather forecast
Writing a character who is going through a civilizing process without overdoing it?
Roman Numerals equation 1
Intern applicant asking for compensation equivalent to that of permanent employee
Why zero tolerance on nudity in space?
What is the purpose of easy combat scenarios that don't need resource expenditure?
Why exactly do action photographers need high fps burst cameras?
Dilemma of explaining to interviewer that he is the reason for declining second interview
One Half of Ten; A Riddle
Advice for a new journal editor
Can a hotel cancel a confirmed reservation?
Is my visa status for all destinations in a flight with connections checked in the beginning or before each flight?
A starship is travelling at 0.9c and collides with a small rock. Will it leave a clean hole through, or will more happen?
It took me a lot of time to make this, pls like. (YouTube Comments #1)
Avoiding morning and evening handshakes
How to say "Brexit" in Latin?
awk + sum all numbers
Can I write a book of my D&D game?
Why is mind meld hard for T'pol in Star Trek: Enterprise?
What is the wife of a henpecked husband called?
How to prevent cleaner from hanging my lock screen in Ubuntu 16.04
Pronunciation of umlaut vowels in the history of German
Publishing research using outdated methods
Is it a fallacy if someone claims they need an explanation for every word of your argument to the point where they don't understand common terms?
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
1 hour 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 4 hours ago
ShiSShiS
307129
307129
your question is closely related to tex.stackexchange.com/questions/65231/…, actually, it is duplicate to it.
– Zarko
1 hour ago
add a comment |
your question is closely related to tex.stackexchange.com/questions/65231/…, actually, it is duplicate to it.
– Zarko
1 hour ago
your question is closely related to tex.stackexchange.com/questions/65231/…, actually, it is duplicate to it.
– Zarko
1 hour ago
your question is closely related to tex.stackexchange.com/questions/65231/…, actually, it is duplicate to it.
– Zarko
1 hour 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 1 more 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 |
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 1 more comment
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 1 more comment
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 1 more comment
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 1 more 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}
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 2 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
1 hour ago