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
I wish to create a table that has different row column size. How can i achieve something like that?
EDIT #1:
I tried
begintabularp1cm hline
multicolumn4cimm[31:12] & rd & 0110111 & TEST \hline
endtabular
And the result is this
tables
add a comment |
I wish to create a table that has different row column size. How can i achieve something like that?
EDIT #1:
I tried
begintabularp1cm hline
multicolumn4cimm[31:12] & rd & 0110111 & TEST \hline
endtabular
And the result is this
tables
1
What have you tried? You can usem
column type andmulticolumn
...
– 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
add a comment |
I wish to create a table that has different row column size. How can i achieve something like that?
EDIT #1:
I tried
begintabularp1cm hline
multicolumn4cimm[31:12] & rd & 0110111 & TEST \hline
endtabular
And the result is this
tables
I wish to create a table that has different row column size. How can i achieve something like that?
EDIT #1:
I tried
begintabularp1cm hline
multicolumn4cimm[31:12] & rd & 0110111 & TEST \hline
endtabular
And the result is this
tables
tables
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 usem
column type andmulticolumn
...
– 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
add a comment |
1
What have you tried? You can usem
column type andmulticolumn
...
– 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
add a comment |
2 Answers
2
active
oldest
votes
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
add a comment |
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
add a comment |
Your Answer
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "85"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%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
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
add a comment |
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
add a comment |
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
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
answered May 14 at 14:30
The old JouleVThe old JouleV
19.5k33175
19.5k33175
add a comment |
add a comment |
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
add a comment |
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
add a comment |
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
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
answered May 14 at 14:58
ZarkoZarko
135k872179
135k872179
add a comment |
add a comment |
Thanks for contributing an answer to TeX - LaTeX Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f490795%2ftable-with-different-column-widths%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
1
What have you tried? You can use
m
column type andmulticolumn
...– 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