Table with different column widthsHow to create fixed width table columns with text raggedright/centered/raggedleft?Use column-separator & (ampersand) inside newenvironmentParagraph column in tabular working only in the first columnTable column widths disproportionate due to multicolumn cell being too longTable with cells of different widthstabu package - gaps in vertical linesHorizontal lines in nested tabular environmentScaling column widths with multicolumn and tabularxMulticolumn table with different column count in rowsHow to set longtable width to text width so that the text in cell wraps around automatically?Comparative table with vertical text in first row and column

If a person had control of every single cell of their body, would they be able to transform into another creature?

How can I find where certain bash function is defined?

How did early x86 BIOS programmers manage to program full blown TUIs given very few bytes of ROM/EPROM?

Would jet fuel for an F-16 or F-35 be producible during WW2?

Why do Russians call their women expensive ("дорогая")?

Why does the 6502 have the BIT instruction?

Where is the encrypted mask value?

Should I disclose a colleague's illness (that I should not know about) when others badmouth him

Geological aftereffects of an asteroid impact on a large mountain range?

Full horizontal justification in table

Why is desire the root of suffering?

How to plot an unstable attractor?

Employer demanding to see degree after poor code review

Is it ok to put a subplot to a story that is never meant to contribute to the development of the main plot?

Would the Geas spell work in a dead magic zone once you enter it?

Identifying an object pointer by generating and using a unique ID

Is there a general effective method to solve Smullyan style Knights and Knaves problems? Is the truth table method the most appropriate one?

How to capture more stars?

At what point in European history could a government build a printing press given a basic description?

Is there a way to make it so the cursor is included when I prtscr key?

Command to Search for Filenames Exceeding 143 Characters?

When do characters level up?

How do I subvert the tropes of a train heist?

Which noble houses were destroyed during the Game of Thrones?



Table with different column widths


How to create fixed width table columns with text raggedright/centered/raggedleft?Use column-separator & (ampersand) inside newenvironmentParagraph column in tabular working only in the first columnTable column widths disproportionate due to multicolumn cell being too longTable with cells of different widthstabu package - gaps in vertical linesHorizontal lines in nested tabular environmentScaling column widths with multicolumn and tabularxMulticolumn table with different column count in rowsHow to set longtable width to text width so that the text in cell wraps around automatically?Comparative table with vertical text in first row and column













4















I wish to create a table that has different row column size. How can i achieve something like that? enter image description here



EDIT #1:



I tried



begintabularp1cm hline
multicolumn4cimm[31:12] & rd & 0110111 & TEST \hline

endtabular


And the result is this



enter image description here










share|improve this question



















  • 1





    What have you tried? You can use m column type and multicolumn...

    – The old JouleV
    May 14 at 13:25











  • I assumed I have to define the maximum number of columns that are being used in anycase. So since the maximum number of columns is 6 and since I wish for one more column I defined it as : begintabularp1cm hline Now I added the first line as: multicolumn4cimm[31:12] & rd & 0110111 & TEST \hline but the result was a failure

    – Broxigar
    May 14 at 13:32












  • I see you edited your question. Please don't remove necessary information - that table is needed to answer your question :) I will rollback to the previous version.

    – The old JouleV
    May 15 at 10:29






  • 1





    This is not my document, and this is why I will blurr the contents if I cant remove the matrix.

    – Broxigar
    May 15 at 10:57















4















I wish to create a table that has different row column size. How can i achieve something like that? enter image description here



EDIT #1:



I tried



begintabularp1cm hline
multicolumn4cimm[31:12] & rd & 0110111 & TEST \hline

endtabular


And the result is this



enter image description here










share|improve this question



















  • 1





    What have you tried? You can use m column type and multicolumn...

    – The old JouleV
    May 14 at 13:25











  • I assumed I have to define the maximum number of columns that are being used in anycase. So since the maximum number of columns is 6 and since I wish for one more column I defined it as : begintabularp1cm hline Now I added the first line as: multicolumn4cimm[31:12] & rd & 0110111 & TEST \hline but the result was a failure

    – Broxigar
    May 14 at 13:32












  • I see you edited your question. Please don't remove necessary information - that table is needed to answer your question :) I will rollback to the previous version.

    – The old JouleV
    May 15 at 10:29






  • 1





    This is not my document, and this is why I will blurr the contents if I cant remove the matrix.

    – Broxigar
    May 15 at 10:57













4












4








4


0






I wish to create a table that has different row column size. How can i achieve something like that? enter image description here



EDIT #1:



I tried



begintabularp1cm hline
multicolumn4cimm[31:12] & rd & 0110111 & TEST \hline

endtabular


And the result is this



enter image description here










share|improve this question
















I wish to create a table that has different row column size. How can i achieve something like that? enter image description here



EDIT #1:



I tried



begintabularp1cm hline
multicolumn4cimm[31:12] & rd & 0110111 & TEST \hline

endtabular


And the result is this



enter image description here







tables






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited May 15 at 14:44









Zarko

135k872179




135k872179










asked May 14 at 13:01









BroxigarBroxigar

326




326







  • 1





    What have you tried? You can use m column type and multicolumn...

    – The old JouleV
    May 14 at 13:25











  • I assumed I have to define the maximum number of columns that are being used in anycase. So since the maximum number of columns is 6 and since I wish for one more column I defined it as : begintabularp1cm hline Now I added the first line as: multicolumn4cimm[31:12] & rd & 0110111 & TEST \hline but the result was a failure

    – Broxigar
    May 14 at 13:32












  • I see you edited your question. Please don't remove necessary information - that table is needed to answer your question :) I will rollback to the previous version.

    – The old JouleV
    May 15 at 10:29






  • 1





    This is not my document, and this is why I will blurr the contents if I cant remove the matrix.

    – Broxigar
    May 15 at 10:57












  • 1





    What have you tried? You can use m column type and multicolumn...

    – The old JouleV
    May 14 at 13:25











  • I assumed I have to define the maximum number of columns that are being used in anycase. So since the maximum number of columns is 6 and since I wish for one more column I defined it as : begintabularp1cm hline Now I added the first line as: multicolumn4cimm[31:12] & rd & 0110111 & TEST \hline but the result was a failure

    – Broxigar
    May 14 at 13:32












  • I see you edited your question. Please don't remove necessary information - that table is needed to answer your question :) I will rollback to the previous version.

    – The old JouleV
    May 15 at 10:29






  • 1





    This is not my document, and this is why I will blurr the contents if I cant remove the matrix.

    – Broxigar
    May 15 at 10:57







1




1





What have you tried? You can use m column type and multicolumn...

– The old JouleV
May 14 at 13:25





What have you tried? You can use m column type and multicolumn...

– The old JouleV
May 14 at 13:25













I assumed I have to define the maximum number of columns that are being used in anycase. So since the maximum number of columns is 6 and since I wish for one more column I defined it as : begintabularp1cm hline Now I added the first line as: multicolumn4cimm[31:12] & rd & 0110111 & TEST \hline but the result was a failure

– Broxigar
May 14 at 13:32






I assumed I have to define the maximum number of columns that are being used in anycase. So since the maximum number of columns is 6 and since I wish for one more column I defined it as : begintabularp1cm hline Now I added the first line as: multicolumn4cimm[31:12] & rd & 0110111 & TEST \hline but the result was a failure

– Broxigar
May 14 at 13:32














I see you edited your question. Please don't remove necessary information - that table is needed to answer your question :) I will rollback to the previous version.

– The old JouleV
May 15 at 10:29





I see you edited your question. Please don't remove necessary information - that table is needed to answer your question :) I will rollback to the previous version.

– The old JouleV
May 15 at 10:29




1




1





This is not my document, and this is why I will blurr the contents if I cant remove the matrix.

– Broxigar
May 15 at 10:57





This is not my document, and this is why I will blurr the contents if I cant remove the matrix.

– Broxigar
May 15 at 10:57










2 Answers
2






active

oldest

votes


















5














How about this? I try to reproduce the first five rows of your table.



documentclassarticle
usepackagearray
% https://tex.stackexchange.com/a/12712/156344
newcolumntypeC[1]>centeringletnewline\arraybackslashhspace0ptm#1
begindocument
begintable
captionSome caption for the table
begintabularC2cm hline
multicolumn4imm[31:12] & rd & 0110111 \hline
multicolumn4imm[31:12] & rd & 0010111 \hline
multicolumn4imm[20textbar10:1textbar11textbar19:12] & rd & 1101111 \hline
multicolumn2imm[11:0] & rs1 & 000 & rd & 1100111 \hline
imm[12textbar10:5] & rs2 & rs1 & 000 & imm[4:1textbar11] & 1100011\hline
endtabular
endtable
enddocument


enter image description here






share|improve this answer






























    4














    with use of the makecell package for more vertical space around cells' contents, defining two new commands for shorter table's code:



    documentclassarticle
    usepackagearray, makecell
    newcolumntypeC[1]>centeringarraybackslashp#1
    newcommandmcF[1]multicolumn4#1
    newcommandmcT[1]multicolumn2#1
    usepackage[skip=1ex]caption

    begindocument
    begintable
    setcellgapes3pt
    makegapedcells
    centering
    captionSome caption for the table
    begintabularC20mm
    hline
    mcFimm[31:12] & rd & 0110111 \ hline
    mcFimm[31:12] & rd & 0010111 \ hline
    mcTimm[11:0] & rs1 & 000 & rd & 1100111 \ hline
    imm[12textbar10:5] & rs2 & rs1 & 000 & imm[4:1textbar11] & 1100011 \ hline
    0000000 & shamt & rs1 & 001 & rd & 0010011 \
    hline
    endtabular
    endtable
    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',
      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%2f490795%2ftable-with-different-column-widths%23new-answer', 'question_page');

      );

      Post as a guest















      Required, but never shown

























      2 Answers
      2






      active

      oldest

      votes








      2 Answers
      2






      active

      oldest

      votes









      active

      oldest

      votes






      active

      oldest

      votes









      5














      How about this? I try to reproduce the first five rows of your table.



      documentclassarticle
      usepackagearray
      % https://tex.stackexchange.com/a/12712/156344
      newcolumntypeC[1]>centeringletnewline\arraybackslashhspace0ptm#1
      begindocument
      begintable
      captionSome caption for the table
      begintabularC2cm hline
      multicolumn4imm[31:12] & rd & 0110111 \hline
      multicolumn4imm[31:12] & rd & 0010111 \hline
      multicolumn4imm[20textbar10:1textbar11textbar19:12] & rd & 1101111 \hline
      multicolumn2imm[11:0] & rs1 & 000 & rd & 1100111 \hline
      imm[12textbar10:5] & rs2 & rs1 & 000 & imm[4:1textbar11] & 1100011\hline
      endtabular
      endtable
      enddocument


      enter image description here






      share|improve this answer



























        5














        How about this? I try to reproduce the first five rows of your table.



        documentclassarticle
        usepackagearray
        % https://tex.stackexchange.com/a/12712/156344
        newcolumntypeC[1]>centeringletnewline\arraybackslashhspace0ptm#1
        begindocument
        begintable
        captionSome caption for the table
        begintabularC2cm hline
        multicolumn4imm[31:12] & rd & 0110111 \hline
        multicolumn4imm[31:12] & rd & 0010111 \hline
        multicolumn4imm[20textbar10:1textbar11textbar19:12] & rd & 1101111 \hline
        multicolumn2imm[11:0] & rs1 & 000 & rd & 1100111 \hline
        imm[12textbar10:5] & rs2 & rs1 & 000 & imm[4:1textbar11] & 1100011\hline
        endtabular
        endtable
        enddocument


        enter image description here






        share|improve this answer

























          5












          5








          5







          How about this? I try to reproduce the first five rows of your table.



          documentclassarticle
          usepackagearray
          % https://tex.stackexchange.com/a/12712/156344
          newcolumntypeC[1]>centeringletnewline\arraybackslashhspace0ptm#1
          begindocument
          begintable
          captionSome caption for the table
          begintabularC2cm hline
          multicolumn4imm[31:12] & rd & 0110111 \hline
          multicolumn4imm[31:12] & rd & 0010111 \hline
          multicolumn4imm[20textbar10:1textbar11textbar19:12] & rd & 1101111 \hline
          multicolumn2imm[11:0] & rs1 & 000 & rd & 1100111 \hline
          imm[12textbar10:5] & rs2 & rs1 & 000 & imm[4:1textbar11] & 1100011\hline
          endtabular
          endtable
          enddocument


          enter image description here






          share|improve this answer













          How about this? I try to reproduce the first five rows of your table.



          documentclassarticle
          usepackagearray
          % https://tex.stackexchange.com/a/12712/156344
          newcolumntypeC[1]>centeringletnewline\arraybackslashhspace0ptm#1
          begindocument
          begintable
          captionSome caption for the table
          begintabularC2cm hline
          multicolumn4imm[31:12] & rd & 0110111 \hline
          multicolumn4imm[31:12] & rd & 0010111 \hline
          multicolumn4imm[20textbar10:1textbar11textbar19:12] & rd & 1101111 \hline
          multicolumn2imm[11:0] & rs1 & 000 & rd & 1100111 \hline
          imm[12textbar10:5] & rs2 & rs1 & 000 & imm[4:1textbar11] & 1100011\hline
          endtabular
          endtable
          enddocument


          enter image description here







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered May 14 at 14:30









          The old JouleVThe old JouleV

          19.5k33175




          19.5k33175





















              4














              with use of the makecell package for more vertical space around cells' contents, defining two new commands for shorter table's code:



              documentclassarticle
              usepackagearray, makecell
              newcolumntypeC[1]>centeringarraybackslashp#1
              newcommandmcF[1]multicolumn4#1
              newcommandmcT[1]multicolumn2#1
              usepackage[skip=1ex]caption

              begindocument
              begintable
              setcellgapes3pt
              makegapedcells
              centering
              captionSome caption for the table
              begintabularC20mm
              hline
              mcFimm[31:12] & rd & 0110111 \ hline
              mcFimm[31:12] & rd & 0010111 \ hline
              mcTimm[11:0] & rs1 & 000 & rd & 1100111 \ hline
              imm[12textbar10:5] & rs2 & rs1 & 000 & imm[4:1textbar11] & 1100011 \ hline
              0000000 & shamt & rs1 & 001 & rd & 0010011 \
              hline
              endtabular
              endtable
              enddocument


              enter image description here






              share|improve this answer



























                4














                with use of the makecell package for more vertical space around cells' contents, defining two new commands for shorter table's code:



                documentclassarticle
                usepackagearray, makecell
                newcolumntypeC[1]>centeringarraybackslashp#1
                newcommandmcF[1]multicolumn4#1
                newcommandmcT[1]multicolumn2#1
                usepackage[skip=1ex]caption

                begindocument
                begintable
                setcellgapes3pt
                makegapedcells
                centering
                captionSome caption for the table
                begintabularC20mm
                hline
                mcFimm[31:12] & rd & 0110111 \ hline
                mcFimm[31:12] & rd & 0010111 \ hline
                mcTimm[11:0] & rs1 & 000 & rd & 1100111 \ hline
                imm[12textbar10:5] & rs2 & rs1 & 000 & imm[4:1textbar11] & 1100011 \ hline
                0000000 & shamt & rs1 & 001 & rd & 0010011 \
                hline
                endtabular
                endtable
                enddocument


                enter image description here






                share|improve this answer

























                  4












                  4








                  4







                  with use of the makecell package for more vertical space around cells' contents, defining two new commands for shorter table's code:



                  documentclassarticle
                  usepackagearray, makecell
                  newcolumntypeC[1]>centeringarraybackslashp#1
                  newcommandmcF[1]multicolumn4#1
                  newcommandmcT[1]multicolumn2#1
                  usepackage[skip=1ex]caption

                  begindocument
                  begintable
                  setcellgapes3pt
                  makegapedcells
                  centering
                  captionSome caption for the table
                  begintabularC20mm
                  hline
                  mcFimm[31:12] & rd & 0110111 \ hline
                  mcFimm[31:12] & rd & 0010111 \ hline
                  mcTimm[11:0] & rs1 & 000 & rd & 1100111 \ hline
                  imm[12textbar10:5] & rs2 & rs1 & 000 & imm[4:1textbar11] & 1100011 \ hline
                  0000000 & shamt & rs1 & 001 & rd & 0010011 \
                  hline
                  endtabular
                  endtable
                  enddocument


                  enter image description here






                  share|improve this answer













                  with use of the makecell package for more vertical space around cells' contents, defining two new commands for shorter table's code:



                  documentclassarticle
                  usepackagearray, makecell
                  newcolumntypeC[1]>centeringarraybackslashp#1
                  newcommandmcF[1]multicolumn4#1
                  newcommandmcT[1]multicolumn2#1
                  usepackage[skip=1ex]caption

                  begindocument
                  begintable
                  setcellgapes3pt
                  makegapedcells
                  centering
                  captionSome caption for the table
                  begintabularC20mm
                  hline
                  mcFimm[31:12] & rd & 0110111 \ hline
                  mcFimm[31:12] & rd & 0010111 \ hline
                  mcTimm[11:0] & rs1 & 000 & rd & 1100111 \ hline
                  imm[12textbar10:5] & rs2 & rs1 & 000 & imm[4:1textbar11] & 1100011 \ hline
                  0000000 & shamt & rs1 & 001 & rd & 0010011 \
                  hline
                  endtabular
                  endtable
                  enddocument


                  enter image description here







                  share|improve this answer












                  share|improve this answer



                  share|improve this answer










                  answered May 14 at 14:58









                  ZarkoZarko

                  135k872179




                  135k872179



























                      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%2f490795%2ftable-with-different-column-widths%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

                      Wikipedia:Vital articles Мазмуну Biography - Өмүр баян Philosophy and psychology - Философия жана психология Religion - Дин Social sciences - Коомдук илимдер Language and literature - Тил жана адабият Science - Илим Technology - Технология Arts and recreation - Искусство жана эс алуу History and geography - Тарых жана география Навигация менюсу

                      Bruxelas-Capital Índice Historia | Composición | Situación lingüística | Clima | Cidades irmandadas | Notas | Véxase tamén | Menú de navegacióneO uso das linguas en Bruxelas e a situación do neerlandés"Rexión de Bruxelas Capital"o orixinalSitio da rexiónPáxina de Bruselas no sitio da Oficina de Promoción Turística de Valonia e BruxelasMapa Interactivo da Rexión de Bruxelas-CapitaleeWorldCat332144929079854441105155190212ID28008674080552-90000 0001 0666 3698n94104302ID540940339365017018237

                      What should I write in an apology letter, since I have decided not to join a company after accepting an offer letterShould I keep looking after accepting a job offer?What should I do when I've been verbally told I would get an offer letter, but still haven't gotten one after 4 weeks?Do I accept an offer from a company that I am not likely to join?New job hasn't confirmed starting date and I want to give current employer as much notice as possibleHow should I address my manager in my resignation letter?HR delayed background verification, now jobless as resignedNo email communication after accepting a formal written offer. How should I phrase the call?What should I do if after receiving a verbal offer letter I am informed that my written job offer is put on hold due to some internal issues?Should I inform the current employer that I am about to resign within 1-2 weeks since I have signed the offer letter and waiting for visa?What company will do, if I send their offer letter to another company