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

Is “snitty” a popular American English term? What is its origin?

How does summation index shifting work?

What was the first story to feature the plot "the monsters were human all along"?

getline() vs. fgets(): Control memory allocation

Why is my arithmetic with a long long int behaving this way?

Voltage Balun 1:1

Are sleeping system R-ratings additive?

Which US defense organization would respond to an invasion like this?

Prove that a definite integral is an infinite sum

When does tabularx decide to break the cell entry instead of reducing the columns separation?

Using Im[] and Re[] Correctly

Is there a word for food that's gone 'bad', but is still edible?

Copy previous line to current line from text file

Dangerous workplace travelling

Where are the "shires" in the UK?

Correct way of drawing empty, half-filled and fully filled circles?

Would you use "llamarse" for an animal's name?

Why am I receiving the identity insert error even after explicitly setting IDENTITY_INSERT ON and using a column list?

Nested loops to process groups of pictures

My first c++ game (snake console game)

Can you use "едать" and "игрывать" in the present and future tenses?

Is disk brake effectiveness mitigated by tyres losing traction under strong braking?

Why didn't this character get a funeral at the end of Avengers: Endgame?

Python 3 - simple temperature program



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













2















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


enter image description here










share|improve this question




























    2















    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


    enter image description here










    share|improve this question


























      2












      2








      2








      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


      enter image description here










      share|improve this question
















      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


      enter image description here







      tables tabularx






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited 4 hours ago







      Diaa

















      asked 4 hours ago









      DiaaDiaa

      2,84611857




      2,84611857




















          1 Answer
          1






          active

          oldest

          votes


















          5














          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 tabular* is what you want:



          enter image description here



          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





          share|improve this answer

























          • 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
            4 hours ago







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









          5














          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 tabular* is what you want:



          enter image description here



          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





          share|improve this answer

























          • 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
            4 hours ago







          • 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
            4 hours ago















          5














          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 tabular* is what you want:



          enter image description here



          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





          share|improve this answer

























          • 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
            4 hours ago







          • 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
            4 hours ago













          5












          5








          5







          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 tabular* is what you want:



          enter image description here



          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





          share|improve this answer















          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 tabular* is what you want:



          enter image description here



          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






          share|improve this answer














          share|improve this answer



          share|improve this answer








          edited 26 mins ago









          Mico

          289k32396784




          289k32396784










          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 why rowstyle fails in my code?

            – Diaa
            4 hours ago







          • 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
            4 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
            4 hours ago







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





















































          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

          Log på Navigationsmenu

          Wonderful Copenhagen (sang) Eksterne henvisninger | NavigationsmenurSide på frankloesser.comWonderful Copenhagen

          Detroit Tigers Spis treści Historia | Skład zespołu | Sukcesy | Członkowie Baseball Hall of Fame | Zastrzeżone numery | Przypisy | Menu nawigacyjneEncyclopedia of Detroit - Detroit TigersTigers Stadium, Detroit, MITigers Timeline 1900sDetroit Tigers Team History & EncyclopediaTigers Timeline 1910s1935 World Series1945 World Series1945 World Series1984 World SeriesComerica Park, Detroit, MI2006 World Series2012 World SeriesDetroit Tigers 40-Man RosterDetroit Tigers Coaching StaffTigers Hall of FamersTigers Retired Numberse