When does tabularx decide to break the cell entry instead of reducing the columns separation?Align cell height of the tabularx rowsSplit a tabularx cell at its diagonal when the X column specification is used?itemize within tabularx does not work when ltablex is loadedDifferent alignment on columns when the 'X' column wraps in tabularxhow to fit merged columns/rows content to the appropriate cell width (tabularx)?Text in tabularx does not stretch over merged cellReducing column separation between specific columnsBreak cell in last row into two equally spaced columnstabularx and colortbl: Cell Color When Using @ and Cell Height When Using German Umlaut (e. g. Ü)Misplaced noalign when centering tabularx cell
Checking if two expressions are related
Should homeowners insurance cover the cost of the home?
Is there a word that describes the unjustified use of a more complex word?
Nested loops to process groups of pictures
Why do people keep telling me that I am a bad photographer?
How to pass hash as password to ssh server
How to deal with employer who keeps me at work after working hours
Is the book wrong about the Nyquist Sampling Criterion?
Copy previous line to current line from text file
Is there an age requirement to play in Adventurers League?
Why do these characters still seem to be the same age after the events of Endgame?
Prove that a definite integral is an infinite sum
How do I, as a DM, handle a party that decides to set up an ambush in a dungeon?
What is a common way to tell if an academic is "above average," or outstanding in their field? Is their h-index (Hirsh index) one of them?
Why aren't nationalizations in Russia described as socialist?
A factorization game
Is an HNN extension of a virtually torsion-free group virtually torsion-free?
Are there terms in German for different skull shapes?
Where to draw the line between quantum mechanics theory and its interpretation(s)?
Notation: What does the tilde bellow of the Expectation mean?
How does the reduce() method work in Java 8?
Mug and wireframe entirely disappeared
Change in "can't be countered" wording
History of the kernel of a homomorphism?
When does tabularx decide to break the cell entry instead of reducing the columns separation?
Align cell height of the tabularx rowsSplit a tabularx cell at its diagonal when the X column specification is used?itemize within tabularx does not work when ltablex is loadedDifferent alignment on columns when the 'X' column wraps in tabularxhow to fit merged columns/rows content to the appropriate cell width (tabularx)?Text in tabularx does not stretch over merged cellReducing column separation between specific columnsBreak cell in last row into two equally spaced columnstabularx and colortbl: Cell Color When Using @ and Cell Height When Using German Umlaut (e. g. Ü)Misplaced noalign when centering tabularx cell
For the following, why did tabularx decide to break the second column cell entry instead of reducing the separation of the columns?
Additionally, how can I make rowstylebfseries
work to bold any cell content whether it is text or math?
documentclass[a4paper]article
usepackagebooktabs,tabularx,mathtools,siunitx,ragged2e
begindocument
newcolumntypeb>RaggedRighthsize=1.5hsize$X<$
newcommandheading[1]multicolumn1c#1
newcolumntypem>RaggedLefthsize=0.5hsizeX
newcommandrowstyle[1]gdefcurrentrowstyle#1#1ignorespaces
begintabularxlinewidth@bm*8%
S[table-format=2.2,round-precision=2,round-mode=places,
round-integer-to-decimal=true]%
@
toprule
rowstylebfseries
& $delta$ [deg] & heading5 & heading10 & heading15 & heading20 & heading25 & heading30 & heading35 & heading40 \
midrule
Gamma = x^2 & $beta$ [deg] & 1 & 1 & 1 & 18 & 21 & 46 & 72 & 63 \
bottomrule
endtabularx
enddocument
tables tabularx
add a comment |
For the following, why did tabularx decide to break the second column cell entry instead of reducing the separation of the columns?
Additionally, how can I make rowstylebfseries
work to bold any cell content whether it is text or math?
documentclass[a4paper]article
usepackagebooktabs,tabularx,mathtools,siunitx,ragged2e
begindocument
newcolumntypeb>RaggedRighthsize=1.5hsize$X<$
newcommandheading[1]multicolumn1c#1
newcolumntypem>RaggedLefthsize=0.5hsizeX
newcommandrowstyle[1]gdefcurrentrowstyle#1#1ignorespaces
begintabularxlinewidth@bm*8%
S[table-format=2.2,round-precision=2,round-mode=places,
round-integer-to-decimal=true]%
@
toprule
rowstylebfseries
& $delta$ [deg] & heading5 & heading10 & heading15 & heading20 & heading25 & heading30 & heading35 & heading40 \
midrule
Gamma = x^2 & $beta$ [deg] & 1 & 1 & 1 & 18 & 21 & 46 & 72 & 63 \
bottomrule
endtabularx
enddocument
tables tabularx
add a comment |
For the following, why did tabularx decide to break the second column cell entry instead of reducing the separation of the columns?
Additionally, how can I make rowstylebfseries
work to bold any cell content whether it is text or math?
documentclass[a4paper]article
usepackagebooktabs,tabularx,mathtools,siunitx,ragged2e
begindocument
newcolumntypeb>RaggedRighthsize=1.5hsize$X<$
newcommandheading[1]multicolumn1c#1
newcolumntypem>RaggedLefthsize=0.5hsizeX
newcommandrowstyle[1]gdefcurrentrowstyle#1#1ignorespaces
begintabularxlinewidth@bm*8%
S[table-format=2.2,round-precision=2,round-mode=places,
round-integer-to-decimal=true]%
@
toprule
rowstylebfseries
& $delta$ [deg] & heading5 & heading10 & heading15 & heading20 & heading25 & heading30 & heading35 & heading40 \
midrule
Gamma = x^2 & $beta$ [deg] & 1 & 1 & 1 & 18 & 21 & 46 & 72 & 63 \
bottomrule
endtabularx
enddocument
tables tabularx
For the following, why did tabularx decide to break the second column cell entry instead of reducing the separation of the columns?
Additionally, how can I make rowstylebfseries
work to bold any cell content whether it is text or math?
documentclass[a4paper]article
usepackagebooktabs,tabularx,mathtools,siunitx,ragged2e
begindocument
newcolumntypeb>RaggedRighthsize=1.5hsize$X<$
newcommandheading[1]multicolumn1c#1
newcolumntypem>RaggedLefthsize=0.5hsizeX
newcommandrowstyle[1]gdefcurrentrowstyle#1#1ignorespaces
begintabularxlinewidth@bm*8%
S[table-format=2.2,round-precision=2,round-mode=places,
round-integer-to-decimal=true]%
@
toprule
rowstylebfseries
& $delta$ [deg] & heading5 & heading10 & heading15 & heading20 & heading25 & heading30 & heading35 & heading40 \
midrule
Gamma = x^2 & $beta$ [deg] & 1 & 1 & 1 & 18 & 21 & 46 & 72 & 63 \
bottomrule
endtabularx
enddocument
tables tabularx
tables tabularx
edited 3 hours ago
Diaa
asked 4 hours ago
DiaaDiaa
2,84611857
2,84611857
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
tabularx
is completely unsuitable for numeric data tables really.
To answer your question it is important to realize that tabularx
never adjusts inter-column space (tabular*
does that) and never looks at the content of any cell in the table. It simply makes each X
column into a p...
column, choosing the value to use for ...
so the table ends up at the specified total width. As such the only thing tabularx
controls is the target width for line breaking within a cell, and in a table of numeric values there is no line breaking.
If you want adjustment of inter-columns space, and no line breaking then tabular8
is what you want:
documentclass[a4paper]article
usepackagebooktabs,tabularx,mathtools,siunitx,ragged2e
begindocument
newcolumntypeb>RaggedRighthsize=1.5hsize$X<$
newcommandheading[1]multicolumn1c#1
newcolumntypem>RaggedLefthsize=0.5hsizeX
newcommandrowstyle[1]gdefcurrentrowstyle#1#1ignorespaces
noindent
begintabular*linewidth
@extracolsep0pt plus 5pt minus 3pt
>$l<$
l
*8%
S[table-format=2.2,round-precision=2,round-mode=places,
round-integer-to-decimal=true]%
@
toprule
& $delta$ [deg] & heading5 & heading10 & heading15 & heading20 & heading25 & heading30 & heading35 & heading40 \
midrule
Gamma = x^2 & $beta$ [deg] & 1 & 1 & 1 & 18 & 21 & 46 & 72 & 63 \
bottomrule
endtabular*
enddocument
Many thanks for your explanation. I would be grateful if you could help me understand what@extracolsep0pt plus 5pt minus 3pt
means. Additionally, could you please give me a hint of whyrowstyle
fails in my code?
– Diaa
3 hours ago
1
@Diaa tabular* meets the target width by adding theextracolsep
space between columns, normally you can just usefill
but here the table is too wide so actually you want to add negative space. there I added a space with natural width 0pt that can stretch to 5pt or shrink to -3pt which allows the table to be squeezed up a bit and fit.
– David Carlisle
3 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%2f489040%2fwhen-does-tabularx-decide-to-break-the-cell-entry-instead-of-reducing-the-column%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
tabularx
is completely unsuitable for numeric data tables really.
To answer your question it is important to realize that tabularx
never adjusts inter-column space (tabular*
does that) and never looks at the content of any cell in the table. It simply makes each X
column into a p...
column, choosing the value to use for ...
so the table ends up at the specified total width. As such the only thing tabularx
controls is the target width for line breaking within a cell, and in a table of numeric values there is no line breaking.
If you want adjustment of inter-columns space, and no line breaking then tabular8
is what you want:
documentclass[a4paper]article
usepackagebooktabs,tabularx,mathtools,siunitx,ragged2e
begindocument
newcolumntypeb>RaggedRighthsize=1.5hsize$X<$
newcommandheading[1]multicolumn1c#1
newcolumntypem>RaggedLefthsize=0.5hsizeX
newcommandrowstyle[1]gdefcurrentrowstyle#1#1ignorespaces
noindent
begintabular*linewidth
@extracolsep0pt plus 5pt minus 3pt
>$l<$
l
*8%
S[table-format=2.2,round-precision=2,round-mode=places,
round-integer-to-decimal=true]%
@
toprule
& $delta$ [deg] & heading5 & heading10 & heading15 & heading20 & heading25 & heading30 & heading35 & heading40 \
midrule
Gamma = x^2 & $beta$ [deg] & 1 & 1 & 1 & 18 & 21 & 46 & 72 & 63 \
bottomrule
endtabular*
enddocument
Many thanks for your explanation. I would be grateful if you could help me understand what@extracolsep0pt plus 5pt minus 3pt
means. Additionally, could you please give me a hint of whyrowstyle
fails in my code?
– Diaa
3 hours ago
1
@Diaa tabular* meets the target width by adding theextracolsep
space between columns, normally you can just usefill
but here the table is too wide so actually you want to add negative space. there I added a space with natural width 0pt that can stretch to 5pt or shrink to -3pt which allows the table to be squeezed up a bit and fit.
– David Carlisle
3 hours ago
add a comment |
tabularx
is completely unsuitable for numeric data tables really.
To answer your question it is important to realize that tabularx
never adjusts inter-column space (tabular*
does that) and never looks at the content of any cell in the table. It simply makes each X
column into a p...
column, choosing the value to use for ...
so the table ends up at the specified total width. As such the only thing tabularx
controls is the target width for line breaking within a cell, and in a table of numeric values there is no line breaking.
If you want adjustment of inter-columns space, and no line breaking then tabular8
is what you want:
documentclass[a4paper]article
usepackagebooktabs,tabularx,mathtools,siunitx,ragged2e
begindocument
newcolumntypeb>RaggedRighthsize=1.5hsize$X<$
newcommandheading[1]multicolumn1c#1
newcolumntypem>RaggedLefthsize=0.5hsizeX
newcommandrowstyle[1]gdefcurrentrowstyle#1#1ignorespaces
noindent
begintabular*linewidth
@extracolsep0pt plus 5pt minus 3pt
>$l<$
l
*8%
S[table-format=2.2,round-precision=2,round-mode=places,
round-integer-to-decimal=true]%
@
toprule
& $delta$ [deg] & heading5 & heading10 & heading15 & heading20 & heading25 & heading30 & heading35 & heading40 \
midrule
Gamma = x^2 & $beta$ [deg] & 1 & 1 & 1 & 18 & 21 & 46 & 72 & 63 \
bottomrule
endtabular*
enddocument
Many thanks for your explanation. I would be grateful if you could help me understand what@extracolsep0pt plus 5pt minus 3pt
means. Additionally, could you please give me a hint of whyrowstyle
fails in my code?
– Diaa
3 hours ago
1
@Diaa tabular* meets the target width by adding theextracolsep
space between columns, normally you can just usefill
but here the table is too wide so actually you want to add negative space. there I added a space with natural width 0pt that can stretch to 5pt or shrink to -3pt which allows the table to be squeezed up a bit and fit.
– David Carlisle
3 hours ago
add a comment |
tabularx
is completely unsuitable for numeric data tables really.
To answer your question it is important to realize that tabularx
never adjusts inter-column space (tabular*
does that) and never looks at the content of any cell in the table. It simply makes each X
column into a p...
column, choosing the value to use for ...
so the table ends up at the specified total width. As such the only thing tabularx
controls is the target width for line breaking within a cell, and in a table of numeric values there is no line breaking.
If you want adjustment of inter-columns space, and no line breaking then tabular8
is what you want:
documentclass[a4paper]article
usepackagebooktabs,tabularx,mathtools,siunitx,ragged2e
begindocument
newcolumntypeb>RaggedRighthsize=1.5hsize$X<$
newcommandheading[1]multicolumn1c#1
newcolumntypem>RaggedLefthsize=0.5hsizeX
newcommandrowstyle[1]gdefcurrentrowstyle#1#1ignorespaces
noindent
begintabular*linewidth
@extracolsep0pt plus 5pt minus 3pt
>$l<$
l
*8%
S[table-format=2.2,round-precision=2,round-mode=places,
round-integer-to-decimal=true]%
@
toprule
& $delta$ [deg] & heading5 & heading10 & heading15 & heading20 & heading25 & heading30 & heading35 & heading40 \
midrule
Gamma = x^2 & $beta$ [deg] & 1 & 1 & 1 & 18 & 21 & 46 & 72 & 63 \
bottomrule
endtabular*
enddocument
tabularx
is completely unsuitable for numeric data tables really.
To answer your question it is important to realize that tabularx
never adjusts inter-column space (tabular*
does that) and never looks at the content of any cell in the table. It simply makes each X
column into a p...
column, choosing the value to use for ...
so the table ends up at the specified total width. As such the only thing tabularx
controls is the target width for line breaking within a cell, and in a table of numeric values there is no line breaking.
If you want adjustment of inter-columns space, and no line breaking then tabular8
is what you want:
documentclass[a4paper]article
usepackagebooktabs,tabularx,mathtools,siunitx,ragged2e
begindocument
newcolumntypeb>RaggedRighthsize=1.5hsize$X<$
newcommandheading[1]multicolumn1c#1
newcolumntypem>RaggedLefthsize=0.5hsizeX
newcommandrowstyle[1]gdefcurrentrowstyle#1#1ignorespaces
noindent
begintabular*linewidth
@extracolsep0pt plus 5pt minus 3pt
>$l<$
l
*8%
S[table-format=2.2,round-precision=2,round-mode=places,
round-integer-to-decimal=true]%
@
toprule
& $delta$ [deg] & heading5 & heading10 & heading15 & heading20 & heading25 & heading30 & heading35 & heading40 \
midrule
Gamma = x^2 & $beta$ [deg] & 1 & 1 & 1 & 18 & 21 & 46 & 72 & 63 \
bottomrule
endtabular*
enddocument
edited 3 hours ago
answered 4 hours ago
David CarlisleDavid Carlisle
503k4211491899
503k4211491899
Many thanks for your explanation. I would be grateful if you could help me understand what@extracolsep0pt plus 5pt minus 3pt
means. Additionally, could you please give me a hint of whyrowstyle
fails in my code?
– Diaa
3 hours ago
1
@Diaa tabular* meets the target width by adding theextracolsep
space between columns, normally you can just usefill
but here the table is too wide so actually you want to add negative space. there I added a space with natural width 0pt that can stretch to 5pt or shrink to -3pt which allows the table to be squeezed up a bit and fit.
– David Carlisle
3 hours ago
add a comment |
Many thanks for your explanation. I would be grateful if you could help me understand what@extracolsep0pt plus 5pt minus 3pt
means. Additionally, could you please give me a hint of whyrowstyle
fails in my code?
– Diaa
3 hours ago
1
@Diaa tabular* meets the target width by adding theextracolsep
space between columns, normally you can just usefill
but here the table is too wide so actually you want to add negative space. there I added a space with natural width 0pt that can stretch to 5pt or shrink to -3pt which allows the table to be squeezed up a bit and fit.
– David Carlisle
3 hours ago
Many thanks for your explanation. I would be grateful if you could help me understand what
@extracolsep0pt plus 5pt minus 3pt
means. Additionally, could you please give me a hint of why rowstyle
fails in my code?– Diaa
3 hours ago
Many thanks for your explanation. I would be grateful if you could help me understand what
@extracolsep0pt plus 5pt minus 3pt
means. Additionally, could you please give me a hint of why rowstyle
fails in my code?– Diaa
3 hours ago
1
1
@Diaa tabular* meets the target width by adding the
extracolsep
space between columns, normally you can just use fill
but here the table is too wide so actually you want to add negative space. there I added a space with natural width 0pt that can stretch to 5pt or shrink to -3pt which allows the table to be squeezed up a bit and fit.– David Carlisle
3 hours ago
@Diaa tabular* meets the target width by adding the
extracolsep
space between columns, normally you can just use fill
but here the table is too wide so actually you want to add negative space. there I added a space with natural width 0pt that can stretch to 5pt or shrink to -3pt which allows the table to be squeezed up a bit and fit.– David Carlisle
3 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%2f489040%2fwhen-does-tabularx-decide-to-break-the-cell-entry-instead-of-reducing-the-column%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