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












2















resulting table



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}









share|improve this question

























  • your question is closely related to tex.stackexchange.com/questions/65231/…, actually, it is duplicate to it.

    – Zarko
    3 hours ago
















2















resulting table



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}









share|improve this question

























  • your question is closely related to tex.stackexchange.com/questions/65231/…, actually, it is duplicate to it.

    – Zarko
    3 hours ago














2












2








2


1






resulting table



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}









share|improve this question
















resulting table



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






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited 5 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
    3 hours ago



















  • your question is closely related to tex.stackexchange.com/questions/65231/…, actually, it is duplicate to it.

    – Zarko
    3 hours ago

















your question is closely related to tex.stackexchange.com/questions/65231/…, actually, it is duplicate to it.

– Zarko
3 hours ago





your question is closely related to tex.stackexchange.com/questions/65231/…, actually, it is duplicate to it.

– Zarko
3 hours ago










3 Answers
3






active

oldest

votes


















2














i would redesign your table as follows:



enter image description here



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}





share|improve this answer































    2














    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:



    enter image description here



    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:



    better table






    share|improve this answer


























    • it should be hhline{|~|-|-|-|-|-|-|}, not hhline{~|-|-|-|-|-|-|} :-)

      – Zarko
      5 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
      5 hours ago













    • @Zarko You are too fast for me or I am be to slow ;-) See changed code and screenshots.

      – Kurt
      5 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
      4 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
      4 hours ago





















    1














    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}


    enter image description here






    share|improve this answer

























      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
      });


      }
      });














      draft saved

      draft discarded


















      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









      2














      i would redesign your table as follows:



      enter image description here



      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}





      share|improve this answer




























        2














        i would redesign your table as follows:



        enter image description here



        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}





        share|improve this answer


























          2












          2








          2







          i would redesign your table as follows:



          enter image description here



          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}





          share|improve this answer













          i would redesign your table as follows:



          enter image description here



          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}






          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered 4 hours ago









          ZarkoZarko

          126k867164




          126k867164























              2














              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:



              enter image description here



              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:



              better table






              share|improve this answer


























              • it should be hhline{|~|-|-|-|-|-|-|}, not hhline{~|-|-|-|-|-|-|} :-)

                – Zarko
                5 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
                5 hours ago













              • @Zarko You are too fast for me or I am be to slow ;-) See changed code and screenshots.

                – Kurt
                5 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
                4 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
                4 hours ago


















              2














              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:



              enter image description here



              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:



              better table






              share|improve this answer


























              • it should be hhline{|~|-|-|-|-|-|-|}, not hhline{~|-|-|-|-|-|-|} :-)

                – Zarko
                5 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
                5 hours ago













              • @Zarko You are too fast for me or I am be to slow ;-) See changed code and screenshots.

                – Kurt
                5 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
                4 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
                4 hours ago
















              2












              2








              2







              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:



              enter image description here



              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:



              better table






              share|improve this answer















              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:



              enter image description here



              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:



              better table







              share|improve this answer














              share|improve this answer



              share|improve this answer








              edited 43 mins ago

























              answered 5 hours ago









              KurtKurt

              38.3k848162




              38.3k848162













              • it should be hhline{|~|-|-|-|-|-|-|}, not hhline{~|-|-|-|-|-|-|} :-)

                – Zarko
                5 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
                5 hours ago













              • @Zarko You are too fast for me or I am be to slow ;-) See changed code and screenshots.

                – Kurt
                5 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
                4 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
                4 hours ago





















              • it should be hhline{|~|-|-|-|-|-|-|}, not hhline{~|-|-|-|-|-|-|} :-)

                – Zarko
                5 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
                5 hours ago













              • @Zarko You are too fast for me or I am be to slow ;-) See changed code and screenshots.

                – Kurt
                5 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
                4 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
                4 hours ago



















              it should be hhline{|~|-|-|-|-|-|-|}, not hhline{~|-|-|-|-|-|-|} :-)

              – Zarko
              5 hours ago







              it should be hhline{|~|-|-|-|-|-|-|}, not hhline{~|-|-|-|-|-|-|} :-)

              – Zarko
              5 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
              5 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
              5 hours ago















              @Zarko You are too fast for me or I am be to slow ;-) See changed code and screenshots.

              – Kurt
              5 hours ago





              @Zarko You are too fast for me or I am be to slow ;-) See changed code and screenshots.

              – Kurt
              5 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
              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
              4 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
              4 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
              4 hours ago













              1














              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}


              enter image description here






              share|improve this answer






























                1














                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}


                enter image description here






                share|improve this answer




























                  1












                  1








                  1







                  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}


                  enter image description here






                  share|improve this answer















                  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}


                  enter image description here







                  share|improve this answer














                  share|improve this answer



                  share|improve this answer








                  edited 3 hours ago









                  leandriis

                  9,1971530




                  9,1971530










                  answered 4 hours ago









                  BernardBernard

                  171k775203




                  171k775203






























                      draft saved

                      draft discarded




















































                      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.




                      draft saved


                      draft discarded














                      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





















































                      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







                      Popular posts from this blog

                      How to label and detect the document text images

                      Vallis Paradisi

                      Tabula Rosettana