How to merge row in the first column in LaTeXHow to get multiple multirows in a table?How do I prevent cellcolor from over effect of hlinetabu package - gaps in vertical linesTable without caption seems weirdInexplicable table error — 'extra alignment tab' but I definitely have the right # columns; also overfull hboxHorizontal lines in nested tabular environmentAligning top row of a table with the item label in a listCannot make table in Texmaker 5.02Center align vertically and horizontally in table with multicolumn and multirowExtra alignment tab has been changed to cr. <recently read> endtemplate…nothing written in error line

Why using two cd commands in bash script does not execute the second command

Bash: What does "masking return values" mean?

How could a scammer know the apps on my phone / iTunes account?

Brexit - No Deal Rejection

My adviser wants to be the first author

Making a sword in the stone, in a medieval world without magic

I need to drive a 7/16" nut but am unsure how to use the socket I bought for my screwdriver

Professor being mistaken for a grad student

Do I need life insurance if I can cover my own funeral costs?

Does the statement `int val = (++i > ++j) ? ++i : ++j;` invoke undefined behavior?

How do anti-virus programs start at Windows boot?

It's a yearly task, alright

Is it possible that AIC = BIC?

Good allowance savings plan?

Counting certain elements in lists

Can hydraulic brake levers get hot when brakes overheat?

What is this large pipe coming out of my roof?

Humanity loses the vast majority of its technology, information, and population in the year 2122. How long does it take to rebuild itself?

Am I not good enough for you?

Theorems like the Lovász Local Lemma?

What is IP squat space

What is the greatest age difference between a married couple in Tanach?

Russian cases: A few examples, I'm really confused

What does it mean to make a bootable LiveUSB?



How to merge row in the first column in LaTeX


How to get multiple multirows in a table?How do I prevent cellcolor from over effect of hlinetabu package - gaps in vertical linesTable without caption seems weirdInexplicable table error — 'extra alignment tab' but I definitely have the right # columns; also overfull hboxHorizontal lines in nested tabular environmentAligning top row of a table with the item label in a listCannot make table in Texmaker 5.02Center align vertically and horizontally in table with multicolumn and multirowExtra alignment tab has been changed to cr. <recently read> endtemplate…nothing written in error line













6















I want to create table like this in Latex.



enter image description here



This is my script for create table.



begintable
centering
captionTable
begintabularc hline
multirow3*DEF&multicolumn3 ABC \ hline
A&B&C\ hline
1& 4 & 7 \ hline
2& 5 & 8 \ hline
3& 6 & 9 \ hline
endtabular
endtable


When I run this script it show error like this.



! Extra alignment tab has been changed to cr.<template> endtemplate ...row3DEF&multicolumn3 ABC


How to create table like this picture?










share|improve this question

















  • 1





    Hey, and welcome to tex.SX. Please provide compilable code (i.e. with begindocument. This will make it easier for us to help you

    – sheß
    Mar 6 at 17:51















6















I want to create table like this in Latex.



enter image description here



This is my script for create table.



begintable
centering
captionTable
begintabularc hline
multirow3*DEF&multicolumn3 ABC \ hline
A&B&C\ hline
1& 4 & 7 \ hline
2& 5 & 8 \ hline
3& 6 & 9 \ hline
endtabular
endtable


When I run this script it show error like this.



! Extra alignment tab has been changed to cr.<template> endtemplate ...row3DEF&multicolumn3 ABC


How to create table like this picture?










share|improve this question

















  • 1





    Hey, and welcome to tex.SX. Please provide compilable code (i.e. with begindocument. This will make it easier for us to help you

    – sheß
    Mar 6 at 17:51













6












6








6








I want to create table like this in Latex.



enter image description here



This is my script for create table.



begintable
centering
captionTable
begintabularc hline
multirow3*DEF&multicolumn3 ABC \ hline
A&B&C\ hline
1& 4 & 7 \ hline
2& 5 & 8 \ hline
3& 6 & 9 \ hline
endtabular
endtable


When I run this script it show error like this.



! Extra alignment tab has been changed to cr.<template> endtemplate ...row3DEF&multicolumn3 ABC


How to create table like this picture?










share|improve this question














I want to create table like this in Latex.



enter image description here



This is my script for create table.



begintable
centering
captionTable
begintabularc hline
multirow3*DEF&multicolumn3 ABC \ hline
A&B&C\ hline
1& 4 & 7 \ hline
2& 5 & 8 \ hline
3& 6 & 9 \ hline
endtabular
endtable


When I run this script it show error like this.



! Extra alignment tab has been changed to cr.<template> endtemplate ...row3DEF&multicolumn3 ABC


How to create table like this picture?







tables multirow






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Mar 6 at 17:44









user58519user58519

332




332







  • 1





    Hey, and welcome to tex.SX. Please provide compilable code (i.e. with begindocument. This will make it easier for us to help you

    – sheß
    Mar 6 at 17:51












  • 1





    Hey, and welcome to tex.SX. Please provide compilable code (i.e. with begindocument. This will make it easier for us to help you

    – sheß
    Mar 6 at 17:51







1




1





Hey, and welcome to tex.SX. Please provide compilable code (i.e. with begindocument. This will make it easier for us to help you

– sheß
Mar 6 at 17:51





Hey, and welcome to tex.SX. Please provide compilable code (i.e. with begindocument. This will make it easier for us to help you

– sheß
Mar 6 at 17:51










3 Answers
3






active

oldest

votes


















3














You can decipher the following template.



documentclass[preview,border=12pt,12pt]standalone
usepackagearray,multirow

letmc=multicolumn
letmr=multirow
letcl=cline

begindocument
begintabular*6l
cl3-6
mc2mr2*empty & mc4Primes \cl3-6
mc2 & 2 & 3 & 5 & 7 \cl1-6
mr2*Powers & 504 & 3 & 2 & 0 & 1 \cl2-6
& 540 & 2 & 3 & 1 & 0 \cl1-6
mr2*Powers & HCF & 2 & 2 & 0 & 0 & min \cl2-6
& LCM & 3 & 3 & 1 & 1 & max \cl1-6
endtabular
enddocument


enter image description here



Warning



mr can be nested in mc but the reverse is not possible!



References



My code above was inspired by an example from Wikipedia as follows.



begintabularc
cline3-6
& & multicolumn4 cPrimes \ cline3-6
& & 2 & 3 & 5 & 7 \ cline1-6
multicolumn1 multirow2*Powers &
multicolumn1c504 & 3 & 2 & 0 & 1 & \ cline2-6
multicolumn1 &
multicolumn1c540 & 2 & 3 & 1 & 0 & \ cline1-6
multicolumn1 multirow2*Powers &
multicolumn1cgcd & 2 & 2 & 0 & 0 & min \ cline2-6
multicolumn1 &
multicolumn1clcm & 3 & 3 & 1 & 1 & max \ cline1-6
endtabular


However, as you can see and compare, my code is much much simpler and well refactored yet still readable, right?






share|improve this answer
































    3














    What you try to do can be done with this:



    documentclassstandalone
    usepackagemultirow
    begindocument
    begintabularc hline
    & & multicolumn3 ABC \ hline
    & & A&B&C\ hline
    multirow3*DEF & D &1& 4 & 7 \ cline2-5
    &E& 2& 5 & 8 \ cline2-5
    &F& 3& 6 & 9 \ cline2-5
    endtabular
    enddocument


    But! LaTeX can make tables that are much nicer that this Excel-style layout. Consider doing something like this, which still nice to look at if you have more than 3 columns.



    enter image description here



    documentclassstandalone
    usepackagemultirow
    usepackagebooktabs
    begindocument
    begintabularlcccccc
    toprule
    & multicolumn3c ABC & multicolumn3c ABC \cmidrule(lr)2-4 cmidrule(lr)5-7
    & A&B&C & A2&B2&C2\ midrule
    DEF:\
    ;D &1& 4 & 7 &1& 4 & 7 \
    ;E& 2& 5 & 8 &1& 4 & 7 \
    ;F& 3& 6 & 9 &1& 4 & 7 \
    XYZ:\
    ;X &1& 4 & 7 &1& 4 & 7 \
    ;Y& 2& 5 & 8 &1& 4 & 7 \
    ;Z& 3& 6 & 9 &1& 4 & 7 \ bottomrule
    endtabular
    enddocument





    share|improve this answer
































      2














      multirow command, needs to be act on its own column...
      So you need to add an extra column on the left side in each column and thus an extra & needed on each left side of every row of your table and an extra columntype (lets say c) at the beginning of your tabular's arguments.



      Also, multicolumn in your example will should be 3 rows tall and should start from the row (1,4,7). But then an hline on one of this or the next rows, would add a line in the "multirowed" cell too, and this is not wanted. So, we have to change some hlines with cline2-4 that is a line from column 2 to column 4 and not from 1st to last.



      Finally, you can add empty multicolumn1 as first element of your first two rows, in order to change their behavior from |c| to c| and remove this way the unwanted vertical line from their left side:



      documentclassarticle
      usepackagemultirow
      begindocument
      begintable
      centering
      captionTable
      begintabularl cline2-4
      multicolumn1&multicolumn3 ABC \ cline2-4
      multicolumn1&A&B&C\ hline
      multirow3*DEF&1& 4 & 7 \ cline2-4
      &2& 5 & 8 \ cline2-4
      &3& 6 & 9 \ hline
      endtabular
      endtable
      enddocument


      PS: Tried to show you what was your mistakes and not to find a way to show your table more beautiful.



      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%2f478062%2fhow-to-merge-row-in-the-first-column-in-latex%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









        3














        You can decipher the following template.



        documentclass[preview,border=12pt,12pt]standalone
        usepackagearray,multirow

        letmc=multicolumn
        letmr=multirow
        letcl=cline

        begindocument
        begintabular*6l
        cl3-6
        mc2mr2*empty & mc4Primes \cl3-6
        mc2 & 2 & 3 & 5 & 7 \cl1-6
        mr2*Powers & 504 & 3 & 2 & 0 & 1 \cl2-6
        & 540 & 2 & 3 & 1 & 0 \cl1-6
        mr2*Powers & HCF & 2 & 2 & 0 & 0 & min \cl2-6
        & LCM & 3 & 3 & 1 & 1 & max \cl1-6
        endtabular
        enddocument


        enter image description here



        Warning



        mr can be nested in mc but the reverse is not possible!



        References



        My code above was inspired by an example from Wikipedia as follows.



        begintabularc
        cline3-6
        & & multicolumn4 cPrimes \ cline3-6
        & & 2 & 3 & 5 & 7 \ cline1-6
        multicolumn1 multirow2*Powers &
        multicolumn1c504 & 3 & 2 & 0 & 1 & \ cline2-6
        multicolumn1 &
        multicolumn1c540 & 2 & 3 & 1 & 0 & \ cline1-6
        multicolumn1 multirow2*Powers &
        multicolumn1cgcd & 2 & 2 & 0 & 0 & min \ cline2-6
        multicolumn1 &
        multicolumn1clcm & 3 & 3 & 1 & 1 & max \ cline1-6
        endtabular


        However, as you can see and compare, my code is much much simpler and well refactored yet still readable, right?






        share|improve this answer





























          3














          You can decipher the following template.



          documentclass[preview,border=12pt,12pt]standalone
          usepackagearray,multirow

          letmc=multicolumn
          letmr=multirow
          letcl=cline

          begindocument
          begintabular*6l
          cl3-6
          mc2mr2*empty & mc4Primes \cl3-6
          mc2 & 2 & 3 & 5 & 7 \cl1-6
          mr2*Powers & 504 & 3 & 2 & 0 & 1 \cl2-6
          & 540 & 2 & 3 & 1 & 0 \cl1-6
          mr2*Powers & HCF & 2 & 2 & 0 & 0 & min \cl2-6
          & LCM & 3 & 3 & 1 & 1 & max \cl1-6
          endtabular
          enddocument


          enter image description here



          Warning



          mr can be nested in mc but the reverse is not possible!



          References



          My code above was inspired by an example from Wikipedia as follows.



          begintabularc
          cline3-6
          & & multicolumn4 cPrimes \ cline3-6
          & & 2 & 3 & 5 & 7 \ cline1-6
          multicolumn1 multirow2*Powers &
          multicolumn1c504 & 3 & 2 & 0 & 1 & \ cline2-6
          multicolumn1 &
          multicolumn1c540 & 2 & 3 & 1 & 0 & \ cline1-6
          multicolumn1 multirow2*Powers &
          multicolumn1cgcd & 2 & 2 & 0 & 0 & min \ cline2-6
          multicolumn1 &
          multicolumn1clcm & 3 & 3 & 1 & 1 & max \ cline1-6
          endtabular


          However, as you can see and compare, my code is much much simpler and well refactored yet still readable, right?






          share|improve this answer



























            3












            3








            3







            You can decipher the following template.



            documentclass[preview,border=12pt,12pt]standalone
            usepackagearray,multirow

            letmc=multicolumn
            letmr=multirow
            letcl=cline

            begindocument
            begintabular*6l
            cl3-6
            mc2mr2*empty & mc4Primes \cl3-6
            mc2 & 2 & 3 & 5 & 7 \cl1-6
            mr2*Powers & 504 & 3 & 2 & 0 & 1 \cl2-6
            & 540 & 2 & 3 & 1 & 0 \cl1-6
            mr2*Powers & HCF & 2 & 2 & 0 & 0 & min \cl2-6
            & LCM & 3 & 3 & 1 & 1 & max \cl1-6
            endtabular
            enddocument


            enter image description here



            Warning



            mr can be nested in mc but the reverse is not possible!



            References



            My code above was inspired by an example from Wikipedia as follows.



            begintabularc
            cline3-6
            & & multicolumn4 cPrimes \ cline3-6
            & & 2 & 3 & 5 & 7 \ cline1-6
            multicolumn1 multirow2*Powers &
            multicolumn1c504 & 3 & 2 & 0 & 1 & \ cline2-6
            multicolumn1 &
            multicolumn1c540 & 2 & 3 & 1 & 0 & \ cline1-6
            multicolumn1 multirow2*Powers &
            multicolumn1cgcd & 2 & 2 & 0 & 0 & min \ cline2-6
            multicolumn1 &
            multicolumn1clcm & 3 & 3 & 1 & 1 & max \ cline1-6
            endtabular


            However, as you can see and compare, my code is much much simpler and well refactored yet still readable, right?






            share|improve this answer















            You can decipher the following template.



            documentclass[preview,border=12pt,12pt]standalone
            usepackagearray,multirow

            letmc=multicolumn
            letmr=multirow
            letcl=cline

            begindocument
            begintabular*6l
            cl3-6
            mc2mr2*empty & mc4Primes \cl3-6
            mc2 & 2 & 3 & 5 & 7 \cl1-6
            mr2*Powers & 504 & 3 & 2 & 0 & 1 \cl2-6
            & 540 & 2 & 3 & 1 & 0 \cl1-6
            mr2*Powers & HCF & 2 & 2 & 0 & 0 & min \cl2-6
            & LCM & 3 & 3 & 1 & 1 & max \cl1-6
            endtabular
            enddocument


            enter image description here



            Warning



            mr can be nested in mc but the reverse is not possible!



            References



            My code above was inspired by an example from Wikipedia as follows.



            begintabularc
            cline3-6
            & & multicolumn4 cPrimes \ cline3-6
            & & 2 & 3 & 5 & 7 \ cline1-6
            multicolumn1 multirow2*Powers &
            multicolumn1c504 & 3 & 2 & 0 & 1 & \ cline2-6
            multicolumn1 &
            multicolumn1c540 & 2 & 3 & 1 & 0 & \ cline1-6
            multicolumn1 multirow2*Powers &
            multicolumn1cgcd & 2 & 2 & 0 & 0 & min \ cline2-6
            multicolumn1 &
            multicolumn1clcm & 3 & 3 & 1 & 1 & max \ cline1-6
            endtabular


            However, as you can see and compare, my code is much much simpler and well refactored yet still readable, right?







            share|improve this answer














            share|improve this answer



            share|improve this answer








            edited Mar 6 at 18:39

























            answered Mar 6 at 17:54









            The Inventor of GodThe Inventor of God

            4,79611042




            4,79611042





















                3














                What you try to do can be done with this:



                documentclassstandalone
                usepackagemultirow
                begindocument
                begintabularc hline
                & & multicolumn3 ABC \ hline
                & & A&B&C\ hline
                multirow3*DEF & D &1& 4 & 7 \ cline2-5
                &E& 2& 5 & 8 \ cline2-5
                &F& 3& 6 & 9 \ cline2-5
                endtabular
                enddocument


                But! LaTeX can make tables that are much nicer that this Excel-style layout. Consider doing something like this, which still nice to look at if you have more than 3 columns.



                enter image description here



                documentclassstandalone
                usepackagemultirow
                usepackagebooktabs
                begindocument
                begintabularlcccccc
                toprule
                & multicolumn3c ABC & multicolumn3c ABC \cmidrule(lr)2-4 cmidrule(lr)5-7
                & A&B&C & A2&B2&C2\ midrule
                DEF:\
                ;D &1& 4 & 7 &1& 4 & 7 \
                ;E& 2& 5 & 8 &1& 4 & 7 \
                ;F& 3& 6 & 9 &1& 4 & 7 \
                XYZ:\
                ;X &1& 4 & 7 &1& 4 & 7 \
                ;Y& 2& 5 & 8 &1& 4 & 7 \
                ;Z& 3& 6 & 9 &1& 4 & 7 \ bottomrule
                endtabular
                enddocument





                share|improve this answer





























                  3














                  What you try to do can be done with this:



                  documentclassstandalone
                  usepackagemultirow
                  begindocument
                  begintabularc hline
                  & & multicolumn3 ABC \ hline
                  & & A&B&C\ hline
                  multirow3*DEF & D &1& 4 & 7 \ cline2-5
                  &E& 2& 5 & 8 \ cline2-5
                  &F& 3& 6 & 9 \ cline2-5
                  endtabular
                  enddocument


                  But! LaTeX can make tables that are much nicer that this Excel-style layout. Consider doing something like this, which still nice to look at if you have more than 3 columns.



                  enter image description here



                  documentclassstandalone
                  usepackagemultirow
                  usepackagebooktabs
                  begindocument
                  begintabularlcccccc
                  toprule
                  & multicolumn3c ABC & multicolumn3c ABC \cmidrule(lr)2-4 cmidrule(lr)5-7
                  & A&B&C & A2&B2&C2\ midrule
                  DEF:\
                  ;D &1& 4 & 7 &1& 4 & 7 \
                  ;E& 2& 5 & 8 &1& 4 & 7 \
                  ;F& 3& 6 & 9 &1& 4 & 7 \
                  XYZ:\
                  ;X &1& 4 & 7 &1& 4 & 7 \
                  ;Y& 2& 5 & 8 &1& 4 & 7 \
                  ;Z& 3& 6 & 9 &1& 4 & 7 \ bottomrule
                  endtabular
                  enddocument





                  share|improve this answer



























                    3












                    3








                    3







                    What you try to do can be done with this:



                    documentclassstandalone
                    usepackagemultirow
                    begindocument
                    begintabularc hline
                    & & multicolumn3 ABC \ hline
                    & & A&B&C\ hline
                    multirow3*DEF & D &1& 4 & 7 \ cline2-5
                    &E& 2& 5 & 8 \ cline2-5
                    &F& 3& 6 & 9 \ cline2-5
                    endtabular
                    enddocument


                    But! LaTeX can make tables that are much nicer that this Excel-style layout. Consider doing something like this, which still nice to look at if you have more than 3 columns.



                    enter image description here



                    documentclassstandalone
                    usepackagemultirow
                    usepackagebooktabs
                    begindocument
                    begintabularlcccccc
                    toprule
                    & multicolumn3c ABC & multicolumn3c ABC \cmidrule(lr)2-4 cmidrule(lr)5-7
                    & A&B&C & A2&B2&C2\ midrule
                    DEF:\
                    ;D &1& 4 & 7 &1& 4 & 7 \
                    ;E& 2& 5 & 8 &1& 4 & 7 \
                    ;F& 3& 6 & 9 &1& 4 & 7 \
                    XYZ:\
                    ;X &1& 4 & 7 &1& 4 & 7 \
                    ;Y& 2& 5 & 8 &1& 4 & 7 \
                    ;Z& 3& 6 & 9 &1& 4 & 7 \ bottomrule
                    endtabular
                    enddocument





                    share|improve this answer















                    What you try to do can be done with this:



                    documentclassstandalone
                    usepackagemultirow
                    begindocument
                    begintabularc hline
                    & & multicolumn3 ABC \ hline
                    & & A&B&C\ hline
                    multirow3*DEF & D &1& 4 & 7 \ cline2-5
                    &E& 2& 5 & 8 \ cline2-5
                    &F& 3& 6 & 9 \ cline2-5
                    endtabular
                    enddocument


                    But! LaTeX can make tables that are much nicer that this Excel-style layout. Consider doing something like this, which still nice to look at if you have more than 3 columns.



                    enter image description here



                    documentclassstandalone
                    usepackagemultirow
                    usepackagebooktabs
                    begindocument
                    begintabularlcccccc
                    toprule
                    & multicolumn3c ABC & multicolumn3c ABC \cmidrule(lr)2-4 cmidrule(lr)5-7
                    & A&B&C & A2&B2&C2\ midrule
                    DEF:\
                    ;D &1& 4 & 7 &1& 4 & 7 \
                    ;E& 2& 5 & 8 &1& 4 & 7 \
                    ;F& 3& 6 & 9 &1& 4 & 7 \
                    XYZ:\
                    ;X &1& 4 & 7 &1& 4 & 7 \
                    ;Y& 2& 5 & 8 &1& 4 & 7 \
                    ;Z& 3& 6 & 9 &1& 4 & 7 \ bottomrule
                    endtabular
                    enddocument






                    share|improve this answer














                    share|improve this answer



                    share|improve this answer








                    edited Mar 6 at 18:13

























                    answered Mar 6 at 18:03









                    sheßsheß

                    2,20311435




                    2,20311435





















                        2














                        multirow command, needs to be act on its own column...
                        So you need to add an extra column on the left side in each column and thus an extra & needed on each left side of every row of your table and an extra columntype (lets say c) at the beginning of your tabular's arguments.



                        Also, multicolumn in your example will should be 3 rows tall and should start from the row (1,4,7). But then an hline on one of this or the next rows, would add a line in the "multirowed" cell too, and this is not wanted. So, we have to change some hlines with cline2-4 that is a line from column 2 to column 4 and not from 1st to last.



                        Finally, you can add empty multicolumn1 as first element of your first two rows, in order to change their behavior from |c| to c| and remove this way the unwanted vertical line from their left side:



                        documentclassarticle
                        usepackagemultirow
                        begindocument
                        begintable
                        centering
                        captionTable
                        begintabularl cline2-4
                        multicolumn1&multicolumn3 ABC \ cline2-4
                        multicolumn1&A&B&C\ hline
                        multirow3*DEF&1& 4 & 7 \ cline2-4
                        &2& 5 & 8 \ cline2-4
                        &3& 6 & 9 \ hline
                        endtabular
                        endtable
                        enddocument


                        PS: Tried to show you what was your mistakes and not to find a way to show your table more beautiful.



                        enter image description here






                        share|improve this answer



























                          2














                          multirow command, needs to be act on its own column...
                          So you need to add an extra column on the left side in each column and thus an extra & needed on each left side of every row of your table and an extra columntype (lets say c) at the beginning of your tabular's arguments.



                          Also, multicolumn in your example will should be 3 rows tall and should start from the row (1,4,7). But then an hline on one of this or the next rows, would add a line in the "multirowed" cell too, and this is not wanted. So, we have to change some hlines with cline2-4 that is a line from column 2 to column 4 and not from 1st to last.



                          Finally, you can add empty multicolumn1 as first element of your first two rows, in order to change their behavior from |c| to c| and remove this way the unwanted vertical line from their left side:



                          documentclassarticle
                          usepackagemultirow
                          begindocument
                          begintable
                          centering
                          captionTable
                          begintabularl cline2-4
                          multicolumn1&multicolumn3 ABC \ cline2-4
                          multicolumn1&A&B&C\ hline
                          multirow3*DEF&1& 4 & 7 \ cline2-4
                          &2& 5 & 8 \ cline2-4
                          &3& 6 & 9 \ hline
                          endtabular
                          endtable
                          enddocument


                          PS: Tried to show you what was your mistakes and not to find a way to show your table more beautiful.



                          enter image description here






                          share|improve this answer

























                            2












                            2








                            2







                            multirow command, needs to be act on its own column...
                            So you need to add an extra column on the left side in each column and thus an extra & needed on each left side of every row of your table and an extra columntype (lets say c) at the beginning of your tabular's arguments.



                            Also, multicolumn in your example will should be 3 rows tall and should start from the row (1,4,7). But then an hline on one of this or the next rows, would add a line in the "multirowed" cell too, and this is not wanted. So, we have to change some hlines with cline2-4 that is a line from column 2 to column 4 and not from 1st to last.



                            Finally, you can add empty multicolumn1 as first element of your first two rows, in order to change their behavior from |c| to c| and remove this way the unwanted vertical line from their left side:



                            documentclassarticle
                            usepackagemultirow
                            begindocument
                            begintable
                            centering
                            captionTable
                            begintabularl cline2-4
                            multicolumn1&multicolumn3 ABC \ cline2-4
                            multicolumn1&A&B&C\ hline
                            multirow3*DEF&1& 4 & 7 \ cline2-4
                            &2& 5 & 8 \ cline2-4
                            &3& 6 & 9 \ hline
                            endtabular
                            endtable
                            enddocument


                            PS: Tried to show you what was your mistakes and not to find a way to show your table more beautiful.



                            enter image description here






                            share|improve this answer













                            multirow command, needs to be act on its own column...
                            So you need to add an extra column on the left side in each column and thus an extra & needed on each left side of every row of your table and an extra columntype (lets say c) at the beginning of your tabular's arguments.



                            Also, multicolumn in your example will should be 3 rows tall and should start from the row (1,4,7). But then an hline on one of this or the next rows, would add a line in the "multirowed" cell too, and this is not wanted. So, we have to change some hlines with cline2-4 that is a line from column 2 to column 4 and not from 1st to last.



                            Finally, you can add empty multicolumn1 as first element of your first two rows, in order to change their behavior from |c| to c| and remove this way the unwanted vertical line from their left side:



                            documentclassarticle
                            usepackagemultirow
                            begindocument
                            begintable
                            centering
                            captionTable
                            begintabularl cline2-4
                            multicolumn1&multicolumn3 ABC \ cline2-4
                            multicolumn1&A&B&C\ hline
                            multirow3*DEF&1& 4 & 7 \ cline2-4
                            &2& 5 & 8 \ cline2-4
                            &3& 6 & 9 \ hline
                            endtabular
                            endtable
                            enddocument


                            PS: Tried to show you what was your mistakes and not to find a way to show your table more beautiful.



                            enter image description here







                            share|improve this answer












                            share|improve this answer



                            share|improve this answer










                            answered Mar 6 at 18:13









                            koleygrkoleygr

                            12.6k11038




                            12.6k11038



























                                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%2f478062%2fhow-to-merge-row-in-the-first-column-in-latex%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

                                1928 у кіно

                                Захаров Федір Захарович

                                Ель Греко