How do I make table cells that span more than one column or row?

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP











up vote
2
down vote

favorite
1












Picture of a book page with a table printed on it, as well as some text.



I tried this code but the border lines are not deleted:



begintabularp0.9in hline 
& & & $P_mot$ & \ hline
$P_batt$ & & S & M & H \ hline
& S & S & Z & VS \ hline
SOC & M & M & Z & H \ hline
& H & M & Z & H \ hline
endtabular


How do I delete the border of cells?










share|improve this question









New contributor




sreeramp96 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.















  • 4




    Why not use a different (better) representation? Something that uses booktabs. Something like this?
    – Werner
    Nov 20 at 6:17






  • 1




    You might have a use for tablesgenerator.com to generate your latex tables, I often use this tool.
    – Maxim
    Nov 20 at 9:19










  • Welcome to TeX.SX! Please make your code compilable (if possible), or at least complete it with documentclass..., the required usepackage's, begindocument, and enddocument. That may seem tedious to you, but think of the extra work it represents for TeX.SX users willing to give you a hand. Help them help you: remove that one hurdle between you and a solution to your problem.
    – Martin Schröder
    Nov 20 at 12:34














up vote
2
down vote

favorite
1












Picture of a book page with a table printed on it, as well as some text.



I tried this code but the border lines are not deleted:



begintabularp0.9in hline 
& & & $P_mot$ & \ hline
$P_batt$ & & S & M & H \ hline
& S & S & Z & VS \ hline
SOC & M & M & Z & H \ hline
& H & M & Z & H \ hline
endtabular


How do I delete the border of cells?










share|improve this question









New contributor




sreeramp96 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.















  • 4




    Why not use a different (better) representation? Something that uses booktabs. Something like this?
    – Werner
    Nov 20 at 6:17






  • 1




    You might have a use for tablesgenerator.com to generate your latex tables, I often use this tool.
    – Maxim
    Nov 20 at 9:19










  • Welcome to TeX.SX! Please make your code compilable (if possible), or at least complete it with documentclass..., the required usepackage's, begindocument, and enddocument. That may seem tedious to you, but think of the extra work it represents for TeX.SX users willing to give you a hand. Help them help you: remove that one hurdle between you and a solution to your problem.
    – Martin Schröder
    Nov 20 at 12:34












up vote
2
down vote

favorite
1









up vote
2
down vote

favorite
1






1





Picture of a book page with a table printed on it, as well as some text.



I tried this code but the border lines are not deleted:



begintabularp0.9in hline 
& & & $P_mot$ & \ hline
$P_batt$ & & S & M & H \ hline
& S & S & Z & VS \ hline
SOC & M & M & Z & H \ hline
& H & M & Z & H \ hline
endtabular


How do I delete the border of cells?










share|improve this question









New contributor




sreeramp96 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.











Picture of a book page with a table printed on it, as well as some text.



I tried this code but the border lines are not deleted:



begintabularp0.9in hline 
& & & $P_mot$ & \ hline
$P_batt$ & & S & M & H \ hline
& S & S & Z & VS \ hline
SOC & M & M & Z & H \ hline
& H & M & Z & H \ hline
endtabular


How do I delete the border of cells?







tables multicolumn






share|improve this question









New contributor




sreeramp96 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.











share|improve this question









New contributor




sreeramp96 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.









share|improve this question




share|improve this question








edited Nov 21 at 13:02





















New contributor




sreeramp96 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.









asked Nov 20 at 5:54









sreeramp96

145




145




New contributor




sreeramp96 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.





New contributor





sreeramp96 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.






sreeramp96 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.







  • 4




    Why not use a different (better) representation? Something that uses booktabs. Something like this?
    – Werner
    Nov 20 at 6:17






  • 1




    You might have a use for tablesgenerator.com to generate your latex tables, I often use this tool.
    – Maxim
    Nov 20 at 9:19










  • Welcome to TeX.SX! Please make your code compilable (if possible), or at least complete it with documentclass..., the required usepackage's, begindocument, and enddocument. That may seem tedious to you, but think of the extra work it represents for TeX.SX users willing to give you a hand. Help them help you: remove that one hurdle between you and a solution to your problem.
    – Martin Schröder
    Nov 20 at 12:34












  • 4




    Why not use a different (better) representation? Something that uses booktabs. Something like this?
    – Werner
    Nov 20 at 6:17






  • 1




    You might have a use for tablesgenerator.com to generate your latex tables, I often use this tool.
    – Maxim
    Nov 20 at 9:19










  • Welcome to TeX.SX! Please make your code compilable (if possible), or at least complete it with documentclass..., the required usepackage's, begindocument, and enddocument. That may seem tedious to you, but think of the extra work it represents for TeX.SX users willing to give you a hand. Help them help you: remove that one hurdle between you and a solution to your problem.
    – Martin Schröder
    Nov 20 at 12:34







4




4




Why not use a different (better) representation? Something that uses booktabs. Something like this?
– Werner
Nov 20 at 6:17




Why not use a different (better) representation? Something that uses booktabs. Something like this?
– Werner
Nov 20 at 6:17




1




1




You might have a use for tablesgenerator.com to generate your latex tables, I often use this tool.
– Maxim
Nov 20 at 9:19




You might have a use for tablesgenerator.com to generate your latex tables, I often use this tool.
– Maxim
Nov 20 at 9:19












Welcome to TeX.SX! Please make your code compilable (if possible), or at least complete it with documentclass..., the required usepackage's, begindocument, and enddocument. That may seem tedious to you, but think of the extra work it represents for TeX.SX users willing to give you a hand. Help them help you: remove that one hurdle between you and a solution to your problem.
– Martin Schröder
Nov 20 at 12:34




Welcome to TeX.SX! Please make your code compilable (if possible), or at least complete it with documentclass..., the required usepackage's, begindocument, and enddocument. That may seem tedious to you, but think of the extra work it represents for TeX.SX users willing to give you a hand. Help them help you: remove that one hurdle between you and a solution to your problem.
– Martin Schröder
Nov 20 at 12:34










3 Answers
3






active

oldest

votes

















up vote
10
down vote













With multirow and multicolumn you can reach what you need.



I have also created a new column type for centering the cell contents and redefined arraystretch to have more vertical space between rows.



However, I would suggest you to get rid of the vertical rules and use booktabs.



documentclassarticle
usepackagearray
newcolumntypeC[1]>centeringarraybackslashp#1
renewcommandarraystretch1.3
usepackagemultirow

usepackagebooktabs
begindocument
Your table:vspace10pt

begintabularC0.4in hline
multicolumn2multirow2*$P_batt$& multicolumn3c$P_mot$ \ cline3-5
multicolumn2 & S & M & H \ hline
& S & S & Z & VS \ cline2-5
SOC & M & M & Z & H \ cline2-5
& H & M & Z & H \ hline
endtabular

vspace10ptMy suggestion:vspace10pt

begintabularlc*3C1.5em
toprule
multicolumn2cmultirow2*$P_batt$& multicolumn3c$P_mot$ \ cmidrule3-5
multicolumn2c & S & M & H \ midrule
& S & S & Z & VS \ cmidrule(l)2-5
SOC & M & M & Z & H \ cmidrule(l)2-5
& H & M & Z & H \
bottomrule
endtabular
enddocument


enter image description here






share|improve this answer






















  • Am a beginner in latex, that's why. I don;t know about this booktabs. Anyway thanks for the suggestion, I will look through it.
    – sreeramp96
    Nov 20 at 7:27

















up vote
6
down vote













Welcome to TeX.SE! In order to merge rows or columns, you need to use multirow (which requires the multirow package) or multicolumn, respectively. And if you nest them, you need to do it in the right order.



documentclassarticle
usepackagemultirow
begindocument
begintabularp0.9in hline
multicolumn2multirow2*$P_mathrmbatt$ &
multicolumn3$P_mathrmmot$ \ cline3-5
multicolumn2 & S & M & H \ cline1-5
multirow3*SOC & S & S & Z & VS \ cline2-5
& M & M & Z & H \ cline2-5
& H & M & Z & H \ hline
endtabular
enddocument


enter image description here






share|improve this answer






















  • The initial | in multicolumn3$P_mathrmmot$ should be deleted, otherwise it is printed twice.
    – CarLaTeX
    Nov 20 at 6:47











  • Yeah am not aware of all the methods. Thanks for the solution.
    – sreeramp96
    Nov 20 at 7:29

















up vote
6
down vote













Whatever applies to each item in a column should go in the column header. Here's my proposal:



documentclass[twocolumn]article
usepackagearray,booktabs

usepackagelipsum % for context

begindocument

lipsum[2]

begintable[htp]
centering

begintabular @ *4wc3em @
toprule
$P_mathrmbatt$ & multicolumn3c$P_mathrmmot$ \
cmidrule(r)1-1 cmidrule(l)2-4
SOC & S & M & H \
midrule
S & S & Z & VS \
M & M & Z & H \
H & M & Z & H \
bottomrule
endtabular

captionRule based of fuzzy logic control

endtable

lipsum

enddocument


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',
    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
    );



    );






    sreeramp96 is a new contributor. Be nice, and check out our Code of Conduct.









     

    draft saved


    draft discarded


















    StackExchange.ready(
    function ()
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f460878%2fhow-do-i-make-table-cells-that-span-more-than-one-column-or-row%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








    up vote
    10
    down vote













    With multirow and multicolumn you can reach what you need.



    I have also created a new column type for centering the cell contents and redefined arraystretch to have more vertical space between rows.



    However, I would suggest you to get rid of the vertical rules and use booktabs.



    documentclassarticle
    usepackagearray
    newcolumntypeC[1]>centeringarraybackslashp#1
    renewcommandarraystretch1.3
    usepackagemultirow

    usepackagebooktabs
    begindocument
    Your table:vspace10pt

    begintabularC0.4in hline
    multicolumn2multirow2*$P_batt$& multicolumn3c$P_mot$ \ cline3-5
    multicolumn2 & S & M & H \ hline
    & S & S & Z & VS \ cline2-5
    SOC & M & M & Z & H \ cline2-5
    & H & M & Z & H \ hline
    endtabular

    vspace10ptMy suggestion:vspace10pt

    begintabularlc*3C1.5em
    toprule
    multicolumn2cmultirow2*$P_batt$& multicolumn3c$P_mot$ \ cmidrule3-5
    multicolumn2c & S & M & H \ midrule
    & S & S & Z & VS \ cmidrule(l)2-5
    SOC & M & M & Z & H \ cmidrule(l)2-5
    & H & M & Z & H \
    bottomrule
    endtabular
    enddocument


    enter image description here






    share|improve this answer






















    • Am a beginner in latex, that's why. I don;t know about this booktabs. Anyway thanks for the suggestion, I will look through it.
      – sreeramp96
      Nov 20 at 7:27














    up vote
    10
    down vote













    With multirow and multicolumn you can reach what you need.



    I have also created a new column type for centering the cell contents and redefined arraystretch to have more vertical space between rows.



    However, I would suggest you to get rid of the vertical rules and use booktabs.



    documentclassarticle
    usepackagearray
    newcolumntypeC[1]>centeringarraybackslashp#1
    renewcommandarraystretch1.3
    usepackagemultirow

    usepackagebooktabs
    begindocument
    Your table:vspace10pt

    begintabularC0.4in hline
    multicolumn2multirow2*$P_batt$& multicolumn3c$P_mot$ \ cline3-5
    multicolumn2 & S & M & H \ hline
    & S & S & Z & VS \ cline2-5
    SOC & M & M & Z & H \ cline2-5
    & H & M & Z & H \ hline
    endtabular

    vspace10ptMy suggestion:vspace10pt

    begintabularlc*3C1.5em
    toprule
    multicolumn2cmultirow2*$P_batt$& multicolumn3c$P_mot$ \ cmidrule3-5
    multicolumn2c & S & M & H \ midrule
    & S & S & Z & VS \ cmidrule(l)2-5
    SOC & M & M & Z & H \ cmidrule(l)2-5
    & H & M & Z & H \
    bottomrule
    endtabular
    enddocument


    enter image description here






    share|improve this answer






















    • Am a beginner in latex, that's why. I don;t know about this booktabs. Anyway thanks for the suggestion, I will look through it.
      – sreeramp96
      Nov 20 at 7:27












    up vote
    10
    down vote










    up vote
    10
    down vote









    With multirow and multicolumn you can reach what you need.



    I have also created a new column type for centering the cell contents and redefined arraystretch to have more vertical space between rows.



    However, I would suggest you to get rid of the vertical rules and use booktabs.



    documentclassarticle
    usepackagearray
    newcolumntypeC[1]>centeringarraybackslashp#1
    renewcommandarraystretch1.3
    usepackagemultirow

    usepackagebooktabs
    begindocument
    Your table:vspace10pt

    begintabularC0.4in hline
    multicolumn2multirow2*$P_batt$& multicolumn3c$P_mot$ \ cline3-5
    multicolumn2 & S & M & H \ hline
    & S & S & Z & VS \ cline2-5
    SOC & M & M & Z & H \ cline2-5
    & H & M & Z & H \ hline
    endtabular

    vspace10ptMy suggestion:vspace10pt

    begintabularlc*3C1.5em
    toprule
    multicolumn2cmultirow2*$P_batt$& multicolumn3c$P_mot$ \ cmidrule3-5
    multicolumn2c & S & M & H \ midrule
    & S & S & Z & VS \ cmidrule(l)2-5
    SOC & M & M & Z & H \ cmidrule(l)2-5
    & H & M & Z & H \
    bottomrule
    endtabular
    enddocument


    enter image description here






    share|improve this answer














    With multirow and multicolumn you can reach what you need.



    I have also created a new column type for centering the cell contents and redefined arraystretch to have more vertical space between rows.



    However, I would suggest you to get rid of the vertical rules and use booktabs.



    documentclassarticle
    usepackagearray
    newcolumntypeC[1]>centeringarraybackslashp#1
    renewcommandarraystretch1.3
    usepackagemultirow

    usepackagebooktabs
    begindocument
    Your table:vspace10pt

    begintabularC0.4in hline
    multicolumn2multirow2*$P_batt$& multicolumn3c$P_mot$ \ cline3-5
    multicolumn2 & S & M & H \ hline
    & S & S & Z & VS \ cline2-5
    SOC & M & M & Z & H \ cline2-5
    & H & M & Z & H \ hline
    endtabular

    vspace10ptMy suggestion:vspace10pt

    begintabularlc*3C1.5em
    toprule
    multicolumn2cmultirow2*$P_batt$& multicolumn3c$P_mot$ \ cmidrule3-5
    multicolumn2c & S & M & H \ midrule
    & S & S & Z & VS \ cmidrule(l)2-5
    SOC & M & M & Z & H \ cmidrule(l)2-5
    & H & M & Z & H \
    bottomrule
    endtabular
    enddocument


    enter image description here







    share|improve this answer














    share|improve this answer



    share|improve this answer








    edited Nov 20 at 6:40

























    answered Nov 20 at 6:12









    CarLaTeX

    27.5k445120




    27.5k445120











    • Am a beginner in latex, that's why. I don;t know about this booktabs. Anyway thanks for the suggestion, I will look through it.
      – sreeramp96
      Nov 20 at 7:27
















    • Am a beginner in latex, that's why. I don;t know about this booktabs. Anyway thanks for the suggestion, I will look through it.
      – sreeramp96
      Nov 20 at 7:27















    Am a beginner in latex, that's why. I don;t know about this booktabs. Anyway thanks for the suggestion, I will look through it.
    – sreeramp96
    Nov 20 at 7:27




    Am a beginner in latex, that's why. I don;t know about this booktabs. Anyway thanks for the suggestion, I will look through it.
    – sreeramp96
    Nov 20 at 7:27










    up vote
    6
    down vote













    Welcome to TeX.SE! In order to merge rows or columns, you need to use multirow (which requires the multirow package) or multicolumn, respectively. And if you nest them, you need to do it in the right order.



    documentclassarticle
    usepackagemultirow
    begindocument
    begintabularp0.9in hline
    multicolumn2multirow2*$P_mathrmbatt$ &
    multicolumn3$P_mathrmmot$ \ cline3-5
    multicolumn2 & S & M & H \ cline1-5
    multirow3*SOC & S & S & Z & VS \ cline2-5
    & M & M & Z & H \ cline2-5
    & H & M & Z & H \ hline
    endtabular
    enddocument


    enter image description here






    share|improve this answer






















    • The initial | in multicolumn3$P_mathrmmot$ should be deleted, otherwise it is printed twice.
      – CarLaTeX
      Nov 20 at 6:47











    • Yeah am not aware of all the methods. Thanks for the solution.
      – sreeramp96
      Nov 20 at 7:29














    up vote
    6
    down vote













    Welcome to TeX.SE! In order to merge rows or columns, you need to use multirow (which requires the multirow package) or multicolumn, respectively. And if you nest them, you need to do it in the right order.



    documentclassarticle
    usepackagemultirow
    begindocument
    begintabularp0.9in hline
    multicolumn2multirow2*$P_mathrmbatt$ &
    multicolumn3$P_mathrmmot$ \ cline3-5
    multicolumn2 & S & M & H \ cline1-5
    multirow3*SOC & S & S & Z & VS \ cline2-5
    & M & M & Z & H \ cline2-5
    & H & M & Z & H \ hline
    endtabular
    enddocument


    enter image description here






    share|improve this answer






















    • The initial | in multicolumn3$P_mathrmmot$ should be deleted, otherwise it is printed twice.
      – CarLaTeX
      Nov 20 at 6:47











    • Yeah am not aware of all the methods. Thanks for the solution.
      – sreeramp96
      Nov 20 at 7:29












    up vote
    6
    down vote










    up vote
    6
    down vote









    Welcome to TeX.SE! In order to merge rows or columns, you need to use multirow (which requires the multirow package) or multicolumn, respectively. And if you nest them, you need to do it in the right order.



    documentclassarticle
    usepackagemultirow
    begindocument
    begintabularp0.9in hline
    multicolumn2multirow2*$P_mathrmbatt$ &
    multicolumn3$P_mathrmmot$ \ cline3-5
    multicolumn2 & S & M & H \ cline1-5
    multirow3*SOC & S & S & Z & VS \ cline2-5
    & M & M & Z & H \ cline2-5
    & H & M & Z & H \ hline
    endtabular
    enddocument


    enter image description here






    share|improve this answer














    Welcome to TeX.SE! In order to merge rows or columns, you need to use multirow (which requires the multirow package) or multicolumn, respectively. And if you nest them, you need to do it in the right order.



    documentclassarticle
    usepackagemultirow
    begindocument
    begintabularp0.9in hline
    multicolumn2multirow2*$P_mathrmbatt$ &
    multicolumn3$P_mathrmmot$ \ cline3-5
    multicolumn2 & S & M & H \ cline1-5
    multirow3*SOC & S & S & Z & VS \ cline2-5
    & M & M & Z & H \ cline2-5
    & H & M & Z & H \ hline
    endtabular
    enddocument


    enter image description here







    share|improve this answer














    share|improve this answer



    share|improve this answer








    edited Nov 20 at 6:10

























    answered Nov 20 at 6:00









    marmot

    77.7k487166




    77.7k487166











    • The initial | in multicolumn3$P_mathrmmot$ should be deleted, otherwise it is printed twice.
      – CarLaTeX
      Nov 20 at 6:47











    • Yeah am not aware of all the methods. Thanks for the solution.
      – sreeramp96
      Nov 20 at 7:29
















    • The initial | in multicolumn3$P_mathrmmot$ should be deleted, otherwise it is printed twice.
      – CarLaTeX
      Nov 20 at 6:47











    • Yeah am not aware of all the methods. Thanks for the solution.
      – sreeramp96
      Nov 20 at 7:29















    The initial | in multicolumn3$P_mathrmmot$ should be deleted, otherwise it is printed twice.
    – CarLaTeX
    Nov 20 at 6:47





    The initial | in multicolumn3$P_mathrmmot$ should be deleted, otherwise it is printed twice.
    – CarLaTeX
    Nov 20 at 6:47













    Yeah am not aware of all the methods. Thanks for the solution.
    – sreeramp96
    Nov 20 at 7:29




    Yeah am not aware of all the methods. Thanks for the solution.
    – sreeramp96
    Nov 20 at 7:29










    up vote
    6
    down vote













    Whatever applies to each item in a column should go in the column header. Here's my proposal:



    documentclass[twocolumn]article
    usepackagearray,booktabs

    usepackagelipsum % for context

    begindocument

    lipsum[2]

    begintable[htp]
    centering

    begintabular @ *4wc3em @
    toprule
    $P_mathrmbatt$ & multicolumn3c$P_mathrmmot$ \
    cmidrule(r)1-1 cmidrule(l)2-4
    SOC & S & M & H \
    midrule
    S & S & Z & VS \
    M & M & Z & H \
    H & M & Z & H \
    bottomrule
    endtabular

    captionRule based of fuzzy logic control

    endtable

    lipsum

    enddocument


    enter image description here






    share|improve this answer
























      up vote
      6
      down vote













      Whatever applies to each item in a column should go in the column header. Here's my proposal:



      documentclass[twocolumn]article
      usepackagearray,booktabs

      usepackagelipsum % for context

      begindocument

      lipsum[2]

      begintable[htp]
      centering

      begintabular @ *4wc3em @
      toprule
      $P_mathrmbatt$ & multicolumn3c$P_mathrmmot$ \
      cmidrule(r)1-1 cmidrule(l)2-4
      SOC & S & M & H \
      midrule
      S & S & Z & VS \
      M & M & Z & H \
      H & M & Z & H \
      bottomrule
      endtabular

      captionRule based of fuzzy logic control

      endtable

      lipsum

      enddocument


      enter image description here






      share|improve this answer






















        up vote
        6
        down vote










        up vote
        6
        down vote









        Whatever applies to each item in a column should go in the column header. Here's my proposal:



        documentclass[twocolumn]article
        usepackagearray,booktabs

        usepackagelipsum % for context

        begindocument

        lipsum[2]

        begintable[htp]
        centering

        begintabular @ *4wc3em @
        toprule
        $P_mathrmbatt$ & multicolumn3c$P_mathrmmot$ \
        cmidrule(r)1-1 cmidrule(l)2-4
        SOC & S & M & H \
        midrule
        S & S & Z & VS \
        M & M & Z & H \
        H & M & Z & H \
        bottomrule
        endtabular

        captionRule based of fuzzy logic control

        endtable

        lipsum

        enddocument


        enter image description here






        share|improve this answer












        Whatever applies to each item in a column should go in the column header. Here's my proposal:



        documentclass[twocolumn]article
        usepackagearray,booktabs

        usepackagelipsum % for context

        begindocument

        lipsum[2]

        begintable[htp]
        centering

        begintabular @ *4wc3em @
        toprule
        $P_mathrmbatt$ & multicolumn3c$P_mathrmmot$ \
        cmidrule(r)1-1 cmidrule(l)2-4
        SOC & S & M & H \
        midrule
        S & S & Z & VS \
        M & M & Z & H \
        H & M & Z & H \
        bottomrule
        endtabular

        captionRule based of fuzzy logic control

        endtable

        lipsum

        enddocument


        enter image description here







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Nov 20 at 8:45









        egreg

        699k8518613132




        699k8518613132




















            sreeramp96 is a new contributor. Be nice, and check out our Code of Conduct.









             

            draft saved


            draft discarded


















            sreeramp96 is a new contributor. Be nice, and check out our Code of Conduct.












            sreeramp96 is a new contributor. Be nice, and check out our Code of Conduct.











            sreeramp96 is a new contributor. Be nice, and check out our Code of Conduct.













             


            draft saved


            draft discarded














            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f460878%2fhow-do-i-make-table-cells-that-span-more-than-one-column-or-row%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 check contact read email or not when send email to Individual?

            Displaying single band from multi-band raster using QGIS

            How many registers does an x86_64 CPU actually have?