Control width of columns in a tabular environmentParagraph column in tabular working only in the first columnLatex: rowcolor in tabular not respecting table widthControl column width with left alignment in tabularKnow the cell width with tabular* or include a paragraph box without specifying its widthTable with variable-width columns, width decided based on row contentTwo tabular environments where the first columns are supposed to have the same widthProblem with toprule: sometimes not boldHow to center the footnote table?Confused about arguments given to tabular environmentAdd booktabs' toprule and bottomrule to (floating) enumerate
Not hide and seek
Are hand made posters acceptable in Academia?
Why is implicit conversion not ambiguous for non-primitive types?
Magnifying glass in hyperbolic space
What is the period/term used describe Giuseppe Arcimboldo's style of painting?
Writing in a Christian voice
What properties make a magic weapon befit a Rogue more than a DEX-based Fighter?
Reason why a kingside attack is not justified
Would this string work as string?
Why do Radio Buttons not fill the entire outer circle?
What is the meaning of "You've never met a graph you didn't like?"
C++ lambda syntax
New Order #2: Turn My Way
Why is "la Gestapo" feminine?
What 1968 Moog synthesizer was used in the Movie Apollo 11?
How can I, as DM, avoid the Conga Line of Death occurring when implementing some form of flanking rule?
What is it called when someone votes for an option that's not their first choice?
What should be the ideal length of sentences in a blog post for ease of reading?
Weird lines in Microsoft Word
How to test the sharpness of a knife?
How do you justify more code being written by following clean code practices?
python displays `n` instead of breaking a line
Why is participating in the European Parliamentary elections used as a threat?
Do I have to take mana from my deck or hand when tapping this card?
Control width of columns in a tabular environment
Paragraph column in tabular working only in the first columnLatex: rowcolor in tabular not respecting table widthControl column width with left alignment in tabularKnow the cell width with tabular* or include a paragraph box without specifying its widthTable with variable-width columns, width decided based on row contentTwo tabular environments where the first columns are supposed to have the same widthProblem with toprule: sometimes not boldHow to center the footnote table?Confused about arguments given to tabular environmentAdd booktabs' toprule and bottomrule to (floating) enumerate
I would like the pieces of texts in the right column to be closer to the pieces of text in the left column. At the same time, I want the table to accommodate long pieces of text nicely, as it does now. One way to achieve this result would be to restrict the width of the left column, augment the width of the right column, and move the left margin of the right column to the left. But I do not know how to do it.
Here is a MWE of what I got so far
:
documentclassarticle
usepackage[utf8]inputenc
usepackagebooktabs
begindocument
begintable
centering
begintabular*2p.425linewidth
toprule
first & second second second second second second second second second second\
midrule
third & fourth fourth fourth fourth fourth fourth fourth fourth fourth fourth \
bottomrule
endtabular
endtable
enddocument
Thanks for your help.
tables booktabs
add a comment |
I would like the pieces of texts in the right column to be closer to the pieces of text in the left column. At the same time, I want the table to accommodate long pieces of text nicely, as it does now. One way to achieve this result would be to restrict the width of the left column, augment the width of the right column, and move the left margin of the right column to the left. But I do not know how to do it.
Here is a MWE of what I got so far
:
documentclassarticle
usepackage[utf8]inputenc
usepackagebooktabs
begindocument
begintable
centering
begintabular*2p.425linewidth
toprule
first & second second second second second second second second second second\
midrule
third & fourth fourth fourth fourth fourth fourth fourth fourth fourth fourth \
bottomrule
endtabular
endtable
enddocument
Thanks for your help.
tables booktabs
2
You're probably looking for a setup likebegintabularxlinewidth l X...endtabularx(requiresusepackagetabularxin your preamble).
– Werner
9 hours ago
Thanks very much. This indeed achieves the goal.
– orient
8 hours ago
add a comment |
I would like the pieces of texts in the right column to be closer to the pieces of text in the left column. At the same time, I want the table to accommodate long pieces of text nicely, as it does now. One way to achieve this result would be to restrict the width of the left column, augment the width of the right column, and move the left margin of the right column to the left. But I do not know how to do it.
Here is a MWE of what I got so far
:
documentclassarticle
usepackage[utf8]inputenc
usepackagebooktabs
begindocument
begintable
centering
begintabular*2p.425linewidth
toprule
first & second second second second second second second second second second\
midrule
third & fourth fourth fourth fourth fourth fourth fourth fourth fourth fourth \
bottomrule
endtabular
endtable
enddocument
Thanks for your help.
tables booktabs
I would like the pieces of texts in the right column to be closer to the pieces of text in the left column. At the same time, I want the table to accommodate long pieces of text nicely, as it does now. One way to achieve this result would be to restrict the width of the left column, augment the width of the right column, and move the left margin of the right column to the left. But I do not know how to do it.
Here is a MWE of what I got so far
:
documentclassarticle
usepackage[utf8]inputenc
usepackagebooktabs
begindocument
begintable
centering
begintabular*2p.425linewidth
toprule
first & second second second second second second second second second second\
midrule
third & fourth fourth fourth fourth fourth fourth fourth fourth fourth fourth \
bottomrule
endtabular
endtable
enddocument
Thanks for your help.
tables booktabs
tables booktabs
edited 9 hours ago
Mico
283k31388775
283k31388775
asked 9 hours ago
orientorient
1445
1445
2
You're probably looking for a setup likebegintabularxlinewidth l X...endtabularx(requiresusepackagetabularxin your preamble).
– Werner
9 hours ago
Thanks very much. This indeed achieves the goal.
– orient
8 hours ago
add a comment |
2
You're probably looking for a setup likebegintabularxlinewidth l X...endtabularx(requiresusepackagetabularxin your preamble).
– Werner
9 hours ago
Thanks very much. This indeed achieves the goal.
– orient
8 hours ago
2
2
You're probably looking for a setup like
begintabularxlinewidth l X ... endtabularx (requires usepackagetabularx in your preamble).– Werner
9 hours ago
You're probably looking for a setup like
begintabularxlinewidth l X ... endtabularx (requires usepackagetabularx in your preamble).– Werner
9 hours ago
Thanks very much. This indeed achieves the goal.
– orient
8 hours ago
Thanks very much. This indeed achieves the goal.
– orient
8 hours ago
add a comment |
2 Answers
2
active
oldest
votes
As far as I understand the question, I would try
documentclassarticle
usepackage[utf8]inputenc
usepackagebooktabs
begindocument
begintable
centering
begintabularl p0.5linewidth
toprule
first & second second second second second second second second second second\
midrule
third & fourth fourth fourth fourth fourth fourth fourth fourth fourth fourth \
bottomrule
endtabular
endtable
enddocument
to obtain

Thanks, Denis. Your solution also works and is indeed using just the package booktabs.
– orient
8 hours ago
add a comment |
As @Werner has already pointed out in a comment, a good candidate solution for your formatting objective would be to load the tabularx package and to employ a tabularx environment (with overall width set to textwidth) instead of tabular. Then, change the first column specification from p... to l, and change the second column specification from p... to X.

documentclassarticle
usepackage[utf8]inputenc
usepackagebooktabs
usepackagetabularx % for "tabularx" env. and "X" column type
begindocument
begintable
begintabularxtextwidth@ l X @
toprule
first & second second second second second second second
second second second second second second second second \
midrule
third & fourth fourth fourth fourth fourth fourth fourth fourth
fourth fourth fourth fourth \
bottomrule
endtabularx
endtable
enddocument
Thanks very much, Mico. Your idea does provide the solution.
– orient
8 hours ago
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%2f480296%2fcontrol-width-of-columns-in-a-tabular-environment%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
As far as I understand the question, I would try
documentclassarticle
usepackage[utf8]inputenc
usepackagebooktabs
begindocument
begintable
centering
begintabularl p0.5linewidth
toprule
first & second second second second second second second second second second\
midrule
third & fourth fourth fourth fourth fourth fourth fourth fourth fourth fourth \
bottomrule
endtabular
endtable
enddocument
to obtain

Thanks, Denis. Your solution also works and is indeed using just the package booktabs.
– orient
8 hours ago
add a comment |
As far as I understand the question, I would try
documentclassarticle
usepackage[utf8]inputenc
usepackagebooktabs
begindocument
begintable
centering
begintabularl p0.5linewidth
toprule
first & second second second second second second second second second second\
midrule
third & fourth fourth fourth fourth fourth fourth fourth fourth fourth fourth \
bottomrule
endtabular
endtable
enddocument
to obtain

Thanks, Denis. Your solution also works and is indeed using just the package booktabs.
– orient
8 hours ago
add a comment |
As far as I understand the question, I would try
documentclassarticle
usepackage[utf8]inputenc
usepackagebooktabs
begindocument
begintable
centering
begintabularl p0.5linewidth
toprule
first & second second second second second second second second second second\
midrule
third & fourth fourth fourth fourth fourth fourth fourth fourth fourth fourth \
bottomrule
endtabular
endtable
enddocument
to obtain

As far as I understand the question, I would try
documentclassarticle
usepackage[utf8]inputenc
usepackagebooktabs
begindocument
begintable
centering
begintabularl p0.5linewidth
toprule
first & second second second second second second second second second second\
midrule
third & fourth fourth fourth fourth fourth fourth fourth fourth fourth fourth \
bottomrule
endtabular
endtable
enddocument
to obtain

answered 9 hours ago
DenisDenis
2,638520
2,638520
Thanks, Denis. Your solution also works and is indeed using just the package booktabs.
– orient
8 hours ago
add a comment |
Thanks, Denis. Your solution also works and is indeed using just the package booktabs.
– orient
8 hours ago
Thanks, Denis. Your solution also works and is indeed using just the package booktabs.
– orient
8 hours ago
Thanks, Denis. Your solution also works and is indeed using just the package booktabs.
– orient
8 hours ago
add a comment |
As @Werner has already pointed out in a comment, a good candidate solution for your formatting objective would be to load the tabularx package and to employ a tabularx environment (with overall width set to textwidth) instead of tabular. Then, change the first column specification from p... to l, and change the second column specification from p... to X.

documentclassarticle
usepackage[utf8]inputenc
usepackagebooktabs
usepackagetabularx % for "tabularx" env. and "X" column type
begindocument
begintable
begintabularxtextwidth@ l X @
toprule
first & second second second second second second second
second second second second second second second second \
midrule
third & fourth fourth fourth fourth fourth fourth fourth fourth
fourth fourth fourth fourth \
bottomrule
endtabularx
endtable
enddocument
Thanks very much, Mico. Your idea does provide the solution.
– orient
8 hours ago
add a comment |
As @Werner has already pointed out in a comment, a good candidate solution for your formatting objective would be to load the tabularx package and to employ a tabularx environment (with overall width set to textwidth) instead of tabular. Then, change the first column specification from p... to l, and change the second column specification from p... to X.

documentclassarticle
usepackage[utf8]inputenc
usepackagebooktabs
usepackagetabularx % for "tabularx" env. and "X" column type
begindocument
begintable
begintabularxtextwidth@ l X @
toprule
first & second second second second second second second
second second second second second second second second \
midrule
third & fourth fourth fourth fourth fourth fourth fourth fourth
fourth fourth fourth fourth \
bottomrule
endtabularx
endtable
enddocument
Thanks very much, Mico. Your idea does provide the solution.
– orient
8 hours ago
add a comment |
As @Werner has already pointed out in a comment, a good candidate solution for your formatting objective would be to load the tabularx package and to employ a tabularx environment (with overall width set to textwidth) instead of tabular. Then, change the first column specification from p... to l, and change the second column specification from p... to X.

documentclassarticle
usepackage[utf8]inputenc
usepackagebooktabs
usepackagetabularx % for "tabularx" env. and "X" column type
begindocument
begintable
begintabularxtextwidth@ l X @
toprule
first & second second second second second second second
second second second second second second second second \
midrule
third & fourth fourth fourth fourth fourth fourth fourth fourth
fourth fourth fourth fourth \
bottomrule
endtabularx
endtable
enddocument
As @Werner has already pointed out in a comment, a good candidate solution for your formatting objective would be to load the tabularx package and to employ a tabularx environment (with overall width set to textwidth) instead of tabular. Then, change the first column specification from p... to l, and change the second column specification from p... to X.

documentclassarticle
usepackage[utf8]inputenc
usepackagebooktabs
usepackagetabularx % for "tabularx" env. and "X" column type
begindocument
begintable
begintabularxtextwidth@ l X @
toprule
first & second second second second second second second
second second second second second second second second \
midrule
third & fourth fourth fourth fourth fourth fourth fourth fourth
fourth fourth fourth fourth \
bottomrule
endtabularx
endtable
enddocument
answered 9 hours ago
MicoMico
283k31388775
283k31388775
Thanks very much, Mico. Your idea does provide the solution.
– orient
8 hours ago
add a comment |
Thanks very much, Mico. Your idea does provide the solution.
– orient
8 hours ago
Thanks very much, Mico. Your idea does provide the solution.
– orient
8 hours ago
Thanks very much, Mico. Your idea does provide the solution.
– orient
8 hours ago
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%2f480296%2fcontrol-width-of-columns-in-a-tabular-environment%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
2
You're probably looking for a setup like
begintabularxlinewidth l X...endtabularx(requiresusepackagetabularxin your preamble).– Werner
9 hours ago
Thanks very much. This indeed achieves the goal.
– orient
8 hours ago