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













3















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 farTable:



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.










share|improve this question



















  • 2





    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















3















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 farTable:



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.










share|improve this question



















  • 2





    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













3












3








3








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 farTable:



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.










share|improve this question
















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 farTable:



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






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited 9 hours ago









Mico

283k31388775




283k31388775










asked 9 hours ago









orientorient

1445




1445







  • 2





    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












  • 2





    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







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










2 Answers
2






active

oldest

votes


















5














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



enter image description here






share|improve this answer























  • Thanks, Denis. Your solution also works and is indeed using just the package booktabs.

    – orient
    8 hours ago


















3














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.



enter image description here



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





share|improve this answer























  • Thanks very much, Mico. Your idea does provide the solution.

    – orient
    8 hours ago










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%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









5














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



enter image description here






share|improve this answer























  • Thanks, Denis. Your solution also works and is indeed using just the package booktabs.

    – orient
    8 hours ago















5














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



enter image description here






share|improve this answer























  • Thanks, Denis. Your solution also works and is indeed using just the package booktabs.

    – orient
    8 hours ago













5












5








5







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



enter image description here






share|improve this answer













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



enter image description here







share|improve this answer












share|improve this answer



share|improve this answer










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

















  • 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











3














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.



enter image description here



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





share|improve this answer























  • Thanks very much, Mico. Your idea does provide the solution.

    – orient
    8 hours ago















3














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.



enter image description here



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





share|improve this answer























  • Thanks very much, Mico. Your idea does provide the solution.

    – orient
    8 hours ago













3












3








3







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.



enter image description here



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





share|improve this answer













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.



enter image description here



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






share|improve this answer












share|improve this answer



share|improve this answer










answered 9 hours ago









MicoMico

283k31388775




283k31388775












  • 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





Thanks very much, Mico. Your idea does provide the solution.

– orient
8 hours ago

















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%2f480296%2fcontrol-width-of-columns-in-a-tabular-environment%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

How to create a command for the “strange m” symbol in latex? Announcing the arrival of Valued Associate #679: Cesar Manara Planned maintenance scheduled April 23, 2019 at 23:30 UTC (7:30pm US/Eastern)How do you make your own symbol when Detexify fails?Writing bold small caps with mathpazo packageplus-minus symbol with parenthesis around the minus signGreek character in Beamer document titleHow to create dashed right arrow over symbol?Currency symbol: Turkish LiraDouble prec as a single symbol?Plus Sign Too Big; How to Call adfbullet?Is there a TeX macro for three-legged pi?How do I get my integral-like symbol to align like the integral?How to selectively substitute a letter with another symbol representing the same letterHow do I generate a less than symbol and vertical bar that are the same height?

Category:Tremithousa Media in category "Tremithousa"Navigation menuUpload media34° 49′ 02.7″ N, 32° 26′ 37.32″ EOpenStreetMapGoogle EarthProximityramaReasonatorScholiaStatisticsWikiShootMe

Dokschytsy (Steed) Kwelen | NawigatsjuunBelarus: Vitebsk Region, citypopulation.de