How to force a table into page width?How to make table spanning textwidthMaking table width fit into text widthTable with tabular, column type p grabbing available spaceMaking widths of tables equal to width of textblocklatex tabular width the same as the textwidthMake tabular span textwidth exactlySet width of table to be the whole line or a given portion of itIs the tabu package obsolete?What is the difference between tabular, tabular* and tabularx environments?How can i set the width of a table?Making table width fit into text widthTabular and grid typesettingMake table use page widthTable exceeds page widthtable width automatically to page widthHow to shrink table to page widthForce table column to be zero widthTable width exceeds the page widthTable extending beyond the page widthforce longtable to text width

Is camera lens focus an exact point or a range?

why `nmap 192.168.1.97` returns less services than `nmap 127.0.0.1`?

Can the Supreme Court overturn an impeachment?

Database accidentally deleted with a bash script

When quoting, must I also copy hyphens used to divide words that continue on the next line?

Did US corporations pay demonstrators in the German demonstrations against article 13?

Some numbers are more equivalent than others

Diode in opposite direction?

Folder comparison

Is Asuka Langley-Soryu disgusted by Shinji?

Is there a conventional notation or name for the slip angle?

Freedom of speech and where it applies

Why don’t women say שלא עשני גויה and שפחה, according to Ashkenazim?

A Permanent Norse Presence in America

How do ground effect vehicles perform turns?

Why is it that I can sometimes guess the next note?

Query about absorption line spectra

Why did the EU agree to delay the Brexit deadline?

Filling the middle of a torus in Tikz

Greco-Roman egalitarianism

Can I sign legal documents with a smiley face?

Drawing a topological "handle" with Tikz

Why does Async/Await work properly when the loop is inside the async function and not the other way around?

Melting point of aspirin, contradicting sources



How to force a table into page width?


How to make table spanning textwidthMaking table width fit into text widthTable with tabular, column type p grabbing available spaceMaking widths of tables equal to width of textblocklatex tabular width the same as the textwidthMake tabular span textwidth exactlySet width of table to be the whole line or a given portion of itIs the tabu package obsolete?What is the difference between tabular, tabular* and tabularx environments?How can i set the width of a table?Making table width fit into text widthTabular and grid typesettingMake table use page widthTable exceeds page widthtable width automatically to page widthHow to shrink table to page widthForce table column to be zero widthTable width exceeds the page widthTable extending beyond the page widthforce longtable to text width













183















I have the following table:



begintable[htb]
begintikzpicture
node (table) [inner sep=0pt]
begintabular l
bf Symptom & bf Metric \
hline
Class that has many accessor methods and accesses a lot of external data & ATFD is more than a few\
Class that is large and complex & WMC is high\
Class that has a lot of methods that only operate on a proper subset of the instance variable set & TCC is low\
endtabular
;
draw [rounded corners=.5em] (table.north west) rectangle (table.south east);
endtikzpicture
captionGod class symptoms
labeltbl:god_class
endtable


Now I want to force the width of the table to be the same as the textwidth, either by linewrapping of table text or by scaling. How can I achieve that?










share|improve this question



















  • 15





    You should not use bf <text> but textbf<text> or bfseries instead! Same is true for it and tt or how they are called. They are all deprecated. Please see the l2tabu document for this and other things.

    – Martin Scharrer
    Feb 8 '11 at 0:16
















183















I have the following table:



begintable[htb]
begintikzpicture
node (table) [inner sep=0pt]
begintabular l
bf Symptom & bf Metric \
hline
Class that has many accessor methods and accesses a lot of external data & ATFD is more than a few\
Class that is large and complex & WMC is high\
Class that has a lot of methods that only operate on a proper subset of the instance variable set & TCC is low\
endtabular
;
draw [rounded corners=.5em] (table.north west) rectangle (table.south east);
endtikzpicture
captionGod class symptoms
labeltbl:god_class
endtable


Now I want to force the width of the table to be the same as the textwidth, either by linewrapping of table text or by scaling. How can I achieve that?










share|improve this question



















  • 15





    You should not use bf <text> but textbf<text> or bfseries instead! Same is true for it and tt or how they are called. They are all deprecated. Please see the l2tabu document for this and other things.

    – Martin Scharrer
    Feb 8 '11 at 0:16














183












183








183


70






I have the following table:



begintable[htb]
begintikzpicture
node (table) [inner sep=0pt]
begintabular l
bf Symptom & bf Metric \
hline
Class that has many accessor methods and accesses a lot of external data & ATFD is more than a few\
Class that is large and complex & WMC is high\
Class that has a lot of methods that only operate on a proper subset of the instance variable set & TCC is low\
endtabular
;
draw [rounded corners=.5em] (table.north west) rectangle (table.south east);
endtikzpicture
captionGod class symptoms
labeltbl:god_class
endtable


Now I want to force the width of the table to be the same as the textwidth, either by linewrapping of table text or by scaling. How can I achieve that?










share|improve this question
















I have the following table:



begintable[htb]
begintikzpicture
node (table) [inner sep=0pt]
begintabular l
bf Symptom & bf Metric \
hline
Class that has many accessor methods and accesses a lot of external data & ATFD is more than a few\
Class that is large and complex & WMC is high\
Class that has a lot of methods that only operate on a proper subset of the instance variable set & TCC is low\
endtabular
;
draw [rounded corners=.5em] (table.north west) rectangle (table.south east);
endtikzpicture
captionGod class symptoms
labeltbl:god_class
endtable


Now I want to force the width of the table to be the same as the textwidth, either by linewrapping of table text or by scaling. How can I achieve that?







tables margins






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Jul 15 '17 at 13:44









David Carlisle

495k4111411889




495k4111411889










asked Feb 7 '11 at 23:28









RoflcoptrExceptionRoflcoptrException

5,185185986




5,185185986







  • 15





    You should not use bf <text> but textbf<text> or bfseries instead! Same is true for it and tt or how they are called. They are all deprecated. Please see the l2tabu document for this and other things.

    – Martin Scharrer
    Feb 8 '11 at 0:16













  • 15





    You should not use bf <text> but textbf<text> or bfseries instead! Same is true for it and tt or how they are called. They are all deprecated. Please see the l2tabu document for this and other things.

    – Martin Scharrer
    Feb 8 '11 at 0:16








15




15





You should not use bf <text> but textbf<text> or bfseries instead! Same is true for it and tt or how they are called. They are all deprecated. Please see the l2tabu document for this and other things.

– Martin Scharrer
Feb 8 '11 at 0:16






You should not use bf <text> but textbf<text> or bfseries instead! Same is true for it and tt or how they are called. They are all deprecated. Please see the l2tabu document for this and other things.

– Martin Scharrer
Feb 8 '11 at 0:16











8 Answers
8






active

oldest

votes


















156














You can use the tabularx package. It allows you to set the width of the table and provides the X column type, which fills out the rest of the space. It can be used for several columns, which then share the rest of the width equally.



Example:



usepackagetabularx % in the preamble
% ....
begintabularxtextwidthl
textbfSymptom & textbfMetric \
hline
Class that has many accessor methods and accesses a lot of external data & ATFD is more than a few\
Class that is large and complex & WMC is high\
Class that has a lot of methods that only operate on a proper subset of the instance variable set & TCC is low\
endtabularx


In general it is also possible to set the width of a column using p<width> instead of l as column type. Then it will be formatted as a paragraph and can include line breaks. Replace <width> with the required width.






share|improve this answer




















  • 10





    If you're considering tabularx you might also consider its less well known (but sometimes better behaved) sibling tabulary

    – David Carlisle
    May 19 '12 at 17:03











  • How can we adjust the width of the columns?

    – prince
    Dec 9 '14 at 5:47







  • 13





    I think this method does work when the table is small and you need to adjust it to fit the text width. However, it does not work when you have a large table that is overflowing the margins and you need it to be compressed.

    – deps_stats
    Nov 14 '15 at 22:07











  • This does not work on two columns and exceeds the page. @Martin Scharrer♦

    – alper
    Feb 25 at 17:07


















104














Just to mention an additional method: the tabular* environment. Suppose you have a table with 6 center-aligned columns. You can force it to take up the full width of the textblock by setting it up as follows:



begintabular*textwidthc @extracolsepfill ccccc
...
endtabular*


Unlike the tabularx and tabulary environments, which work by expanding the width of the columns, the tabular* environment works by expanding the intercolumn whitespace.



Personally, I suspect it's the need to remember to insert the directive @extracolsepfill that has kept the popularity of this approach quite subdued...






share|improve this answer




















  • 2





    This answer is the most elegant one.

    – Jinhua Wang
    Nov 27 '18 at 14:14











  • @JinhuaWang - Many thanks for the compliment! :-)

    – Mico
    Nov 27 '18 at 20:50


















21














One can use tabu (e.g). It will set the table to a given width without needing to calc the ration by hand.



documentclassarticle

usepackagetabu
usepackagebooktabs% for better rules in the table

begindocument
begintabu to textwidth XXXX
toprule
xx & 1 & 2 & 3 \
bottomrule
endtabu
enddocument


tabu comes with the new column type X which sets it’s width automatically, it has an optional argument taking l, r, c to adjust the alignment inside the cell or a numer to set uneven widths of columns. For example two columns, the first on right, the second one left aligned and twice the width of the first one, will be X[r]X[2] (l and 1 will be set by default). The part between to and <cols> can be any width, and the full part can be omitted to, i.e. begintabu<cols>.



tabu is compatible with longtable with the new environment longtabu.




Adding showframeand some text (lipsum) to the above example shows that the table has exactly the width of the text. On may notic that a table without a float enviroment is set inline and gets indented as every normal text, too. Use nointend to prevent that.



table



documentclassarticle

usepackagetabu
usepackagebooktabs% for better rules in the table
usepackageshowframe,lipsum

begindocument
lipsum[4]

noindent
begintabu to textwidth XXXX
toprule
xx & 1 & 2 & 3 \
bottomrule
endtabu
enddocument





share|improve this answer




















  • 1





    Thanks! But I think the table is still somewhat wider than the text width of the page (compared with hrulefill)..

    – Håkon Hægland
    Oct 22 '13 at 9:06







  • 1





    @HåkonHægland: As you can see in my edit, the table has exactly the same width as the text …

    – Tobi
    Oct 22 '13 at 9:39






  • 1





    Indeed but read tex.stackexchange.com/q/121841/4918 before falling in love to deeply ;-)

    – Tobi
    Nov 1 '13 at 21:22












  • @HåkonHægland: 'hrulefill' doesn't have text width.

    – Spen
    Jun 30 '16 at 7:56


















10














Here is a simple way:



newlengthq
setlengthqdimexpr .5textwidth -2tabcolsep
noindentbegintabularpqpq
alfa & bravo \
charlie & delta
endtabular





share|improve this answer




















  • 2





    +1 for (a) subtracting 2tabcolsep from the column width parameter and (b) not including any vertical rules. :-)

    – Mico
    Oct 19 '16 at 4:48



















3














After trying the suggestions made in this stackexchange I found a different and fancy solution (without loading any other packages etc.). The key is define the width of each column.



 begintable[ht!]
centering
captionCaption text
begintabular
Text column 1 & long long long long long long long text that should break \
hline
endtabular
endtable





share|improve this answer


















  • 2





    So for the above example you'd need a text block that has width 5cm+9cm+(a bunch of other tabular measurements to make sure the table fits exactly)... you don't really specify this latter measurement. There is no real guarantee this will fit within the text block.

    – Werner
    Jan 26 '16 at 21:44


















2














You can also use the graphicx package - I found this solution from the following online Table generator: http://www.tablesgenerator.com/



You just need to add a "resizebox" command that rescales the tabular, see the following:



% Please add the following required packages to your document preamble:
% usepackagegraphicx

begintable[htb]
resizeboxtextwidth!% use resizebox with textwidth
begintabular l
bf Symptom & bf Metric \
hline
Class that has many accessor methods and accesses a lot of external data & ATFD is more than a few\
Class that is large and complex & WMC is high\
Class that has a lot of methods that only operate on a proper subset of the instance variable set & TCC is low\
endtabular% close resizebox



Note: that this will scale the whole table, including the font.






share|improve this answer




















  • 1





    use of resizebox is not recommended. using it you will lost control on the font size used in table.

    – Zarko
    Oct 4 '18 at 11:20











  • In the question it was said that scaling was accepted, so I think having a scaled font will be acceptable. Anyway, thanks for pointing this out, I will add a note to the answer :)

    – BlueCoder
    Oct 4 '18 at 11:56



















1














With ConTeXt, from the reference manual, section 16.5 TeX-figures (svnversion 329, September 27, 2013) :



startbuffer[table]
startTABLE
% fill your table here
stopTABLE
stopbuffer

placefigure[none]externalfigure[table.buffer][width=textwidth]





share|improve this answer






























    0














    I was having the same issue,



    This is how I got to fix it. You can use "m" for the middle, "b" for the bottom and "p" you will need to play a little to get the desired results.



    begintable
    caption
    begintabular
    hline
    textbf & textbf & textbf hline
    1 & 2 & 3 hline
    4 / 5 hline
    6 & 7 & 8 hline
    9 & 10 & 11 hline
    12 & 13 / 13 & 14 / 14 hline
    15 & 16 & 17 hline
    endtabular
    labeltable: xxxxx
    endtable





    share








    New contributor




    Alexander Vega is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
    Check out our Code of Conduct.



















      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%2f10535%2fhow-to-force-a-table-into-page-width%23new-answer', 'question_page');

      );

      Post as a guest















      Required, but never shown

























      8 Answers
      8






      active

      oldest

      votes








      8 Answers
      8






      active

      oldest

      votes









      active

      oldest

      votes






      active

      oldest

      votes









      156














      You can use the tabularx package. It allows you to set the width of the table and provides the X column type, which fills out the rest of the space. It can be used for several columns, which then share the rest of the width equally.



      Example:



      usepackagetabularx % in the preamble
      % ....
      begintabularxtextwidthl
      textbfSymptom & textbfMetric \
      hline
      Class that has many accessor methods and accesses a lot of external data & ATFD is more than a few\
      Class that is large and complex & WMC is high\
      Class that has a lot of methods that only operate on a proper subset of the instance variable set & TCC is low\
      endtabularx


      In general it is also possible to set the width of a column using p<width> instead of l as column type. Then it will be formatted as a paragraph and can include line breaks. Replace <width> with the required width.






      share|improve this answer




















      • 10





        If you're considering tabularx you might also consider its less well known (but sometimes better behaved) sibling tabulary

        – David Carlisle
        May 19 '12 at 17:03











      • How can we adjust the width of the columns?

        – prince
        Dec 9 '14 at 5:47







      • 13





        I think this method does work when the table is small and you need to adjust it to fit the text width. However, it does not work when you have a large table that is overflowing the margins and you need it to be compressed.

        – deps_stats
        Nov 14 '15 at 22:07











      • This does not work on two columns and exceeds the page. @Martin Scharrer♦

        – alper
        Feb 25 at 17:07















      156














      You can use the tabularx package. It allows you to set the width of the table and provides the X column type, which fills out the rest of the space. It can be used for several columns, which then share the rest of the width equally.



      Example:



      usepackagetabularx % in the preamble
      % ....
      begintabularxtextwidthl
      textbfSymptom & textbfMetric \
      hline
      Class that has many accessor methods and accesses a lot of external data & ATFD is more than a few\
      Class that is large and complex & WMC is high\
      Class that has a lot of methods that only operate on a proper subset of the instance variable set & TCC is low\
      endtabularx


      In general it is also possible to set the width of a column using p<width> instead of l as column type. Then it will be formatted as a paragraph and can include line breaks. Replace <width> with the required width.






      share|improve this answer




















      • 10





        If you're considering tabularx you might also consider its less well known (but sometimes better behaved) sibling tabulary

        – David Carlisle
        May 19 '12 at 17:03











      • How can we adjust the width of the columns?

        – prince
        Dec 9 '14 at 5:47







      • 13





        I think this method does work when the table is small and you need to adjust it to fit the text width. However, it does not work when you have a large table that is overflowing the margins and you need it to be compressed.

        – deps_stats
        Nov 14 '15 at 22:07











      • This does not work on two columns and exceeds the page. @Martin Scharrer♦

        – alper
        Feb 25 at 17:07













      156












      156








      156







      You can use the tabularx package. It allows you to set the width of the table and provides the X column type, which fills out the rest of the space. It can be used for several columns, which then share the rest of the width equally.



      Example:



      usepackagetabularx % in the preamble
      % ....
      begintabularxtextwidthl
      textbfSymptom & textbfMetric \
      hline
      Class that has many accessor methods and accesses a lot of external data & ATFD is more than a few\
      Class that is large and complex & WMC is high\
      Class that has a lot of methods that only operate on a proper subset of the instance variable set & TCC is low\
      endtabularx


      In general it is also possible to set the width of a column using p<width> instead of l as column type. Then it will be formatted as a paragraph and can include line breaks. Replace <width> with the required width.






      share|improve this answer















      You can use the tabularx package. It allows you to set the width of the table and provides the X column type, which fills out the rest of the space. It can be used for several columns, which then share the rest of the width equally.



      Example:



      usepackagetabularx % in the preamble
      % ....
      begintabularxtextwidthl
      textbfSymptom & textbfMetric \
      hline
      Class that has many accessor methods and accesses a lot of external data & ATFD is more than a few\
      Class that is large and complex & WMC is high\
      Class that has a lot of methods that only operate on a proper subset of the instance variable set & TCC is low\
      endtabularx


      In general it is also possible to set the width of a column using p<width> instead of l as column type. Then it will be formatted as a paragraph and can include line breaks. Replace <width> with the required width.







      share|improve this answer














      share|improve this answer



      share|improve this answer








      edited Jul 15 '17 at 13:44









      David Carlisle

      495k4111411889




      495k4111411889










      answered Feb 8 '11 at 0:09









      Martin ScharrerMartin Scharrer

      203k47651825




      203k47651825







      • 10





        If you're considering tabularx you might also consider its less well known (but sometimes better behaved) sibling tabulary

        – David Carlisle
        May 19 '12 at 17:03











      • How can we adjust the width of the columns?

        – prince
        Dec 9 '14 at 5:47







      • 13





        I think this method does work when the table is small and you need to adjust it to fit the text width. However, it does not work when you have a large table that is overflowing the margins and you need it to be compressed.

        – deps_stats
        Nov 14 '15 at 22:07











      • This does not work on two columns and exceeds the page. @Martin Scharrer♦

        – alper
        Feb 25 at 17:07












      • 10





        If you're considering tabularx you might also consider its less well known (but sometimes better behaved) sibling tabulary

        – David Carlisle
        May 19 '12 at 17:03











      • How can we adjust the width of the columns?

        – prince
        Dec 9 '14 at 5:47







      • 13





        I think this method does work when the table is small and you need to adjust it to fit the text width. However, it does not work when you have a large table that is overflowing the margins and you need it to be compressed.

        – deps_stats
        Nov 14 '15 at 22:07











      • This does not work on two columns and exceeds the page. @Martin Scharrer♦

        – alper
        Feb 25 at 17:07







      10




      10





      If you're considering tabularx you might also consider its less well known (but sometimes better behaved) sibling tabulary

      – David Carlisle
      May 19 '12 at 17:03





      If you're considering tabularx you might also consider its less well known (but sometimes better behaved) sibling tabulary

      – David Carlisle
      May 19 '12 at 17:03













      How can we adjust the width of the columns?

      – prince
      Dec 9 '14 at 5:47






      How can we adjust the width of the columns?

      – prince
      Dec 9 '14 at 5:47





      13




      13





      I think this method does work when the table is small and you need to adjust it to fit the text width. However, it does not work when you have a large table that is overflowing the margins and you need it to be compressed.

      – deps_stats
      Nov 14 '15 at 22:07





      I think this method does work when the table is small and you need to adjust it to fit the text width. However, it does not work when you have a large table that is overflowing the margins and you need it to be compressed.

      – deps_stats
      Nov 14 '15 at 22:07













      This does not work on two columns and exceeds the page. @Martin Scharrer♦

      – alper
      Feb 25 at 17:07





      This does not work on two columns and exceeds the page. @Martin Scharrer♦

      – alper
      Feb 25 at 17:07











      104














      Just to mention an additional method: the tabular* environment. Suppose you have a table with 6 center-aligned columns. You can force it to take up the full width of the textblock by setting it up as follows:



      begintabular*textwidthc @extracolsepfill ccccc
      ...
      endtabular*


      Unlike the tabularx and tabulary environments, which work by expanding the width of the columns, the tabular* environment works by expanding the intercolumn whitespace.



      Personally, I suspect it's the need to remember to insert the directive @extracolsepfill that has kept the popularity of this approach quite subdued...






      share|improve this answer




















      • 2





        This answer is the most elegant one.

        – Jinhua Wang
        Nov 27 '18 at 14:14











      • @JinhuaWang - Many thanks for the compliment! :-)

        – Mico
        Nov 27 '18 at 20:50















      104














      Just to mention an additional method: the tabular* environment. Suppose you have a table with 6 center-aligned columns. You can force it to take up the full width of the textblock by setting it up as follows:



      begintabular*textwidthc @extracolsepfill ccccc
      ...
      endtabular*


      Unlike the tabularx and tabulary environments, which work by expanding the width of the columns, the tabular* environment works by expanding the intercolumn whitespace.



      Personally, I suspect it's the need to remember to insert the directive @extracolsepfill that has kept the popularity of this approach quite subdued...






      share|improve this answer




















      • 2





        This answer is the most elegant one.

        – Jinhua Wang
        Nov 27 '18 at 14:14











      • @JinhuaWang - Many thanks for the compliment! :-)

        – Mico
        Nov 27 '18 at 20:50













      104












      104








      104







      Just to mention an additional method: the tabular* environment. Suppose you have a table with 6 center-aligned columns. You can force it to take up the full width of the textblock by setting it up as follows:



      begintabular*textwidthc @extracolsepfill ccccc
      ...
      endtabular*


      Unlike the tabularx and tabulary environments, which work by expanding the width of the columns, the tabular* environment works by expanding the intercolumn whitespace.



      Personally, I suspect it's the need to remember to insert the directive @extracolsepfill that has kept the popularity of this approach quite subdued...






      share|improve this answer















      Just to mention an additional method: the tabular* environment. Suppose you have a table with 6 center-aligned columns. You can force it to take up the full width of the textblock by setting it up as follows:



      begintabular*textwidthc @extracolsepfill ccccc
      ...
      endtabular*


      Unlike the tabularx and tabulary environments, which work by expanding the width of the columns, the tabular* environment works by expanding the intercolumn whitespace.



      Personally, I suspect it's the need to remember to insert the directive @extracolsepfill that has kept the popularity of this approach quite subdued...







      share|improve this answer














      share|improve this answer



      share|improve this answer








      edited Feb 26 '13 at 0:10

























      answered May 19 '12 at 22:46









      MicoMico

      284k31388778




      284k31388778







      • 2





        This answer is the most elegant one.

        – Jinhua Wang
        Nov 27 '18 at 14:14











      • @JinhuaWang - Many thanks for the compliment! :-)

        – Mico
        Nov 27 '18 at 20:50












      • 2





        This answer is the most elegant one.

        – Jinhua Wang
        Nov 27 '18 at 14:14











      • @JinhuaWang - Many thanks for the compliment! :-)

        – Mico
        Nov 27 '18 at 20:50







      2




      2





      This answer is the most elegant one.

      – Jinhua Wang
      Nov 27 '18 at 14:14





      This answer is the most elegant one.

      – Jinhua Wang
      Nov 27 '18 at 14:14













      @JinhuaWang - Many thanks for the compliment! :-)

      – Mico
      Nov 27 '18 at 20:50





      @JinhuaWang - Many thanks for the compliment! :-)

      – Mico
      Nov 27 '18 at 20:50











      21














      One can use tabu (e.g). It will set the table to a given width without needing to calc the ration by hand.



      documentclassarticle

      usepackagetabu
      usepackagebooktabs% for better rules in the table

      begindocument
      begintabu to textwidth XXXX
      toprule
      xx & 1 & 2 & 3 \
      bottomrule
      endtabu
      enddocument


      tabu comes with the new column type X which sets it’s width automatically, it has an optional argument taking l, r, c to adjust the alignment inside the cell or a numer to set uneven widths of columns. For example two columns, the first on right, the second one left aligned and twice the width of the first one, will be X[r]X[2] (l and 1 will be set by default). The part between to and <cols> can be any width, and the full part can be omitted to, i.e. begintabu<cols>.



      tabu is compatible with longtable with the new environment longtabu.




      Adding showframeand some text (lipsum) to the above example shows that the table has exactly the width of the text. On may notic that a table without a float enviroment is set inline and gets indented as every normal text, too. Use nointend to prevent that.



      table



      documentclassarticle

      usepackagetabu
      usepackagebooktabs% for better rules in the table
      usepackageshowframe,lipsum

      begindocument
      lipsum[4]

      noindent
      begintabu to textwidth XXXX
      toprule
      xx & 1 & 2 & 3 \
      bottomrule
      endtabu
      enddocument





      share|improve this answer




















      • 1





        Thanks! But I think the table is still somewhat wider than the text width of the page (compared with hrulefill)..

        – Håkon Hægland
        Oct 22 '13 at 9:06







      • 1





        @HåkonHægland: As you can see in my edit, the table has exactly the same width as the text …

        – Tobi
        Oct 22 '13 at 9:39






      • 1





        Indeed but read tex.stackexchange.com/q/121841/4918 before falling in love to deeply ;-)

        – Tobi
        Nov 1 '13 at 21:22












      • @HåkonHægland: 'hrulefill' doesn't have text width.

        – Spen
        Jun 30 '16 at 7:56















      21














      One can use tabu (e.g). It will set the table to a given width without needing to calc the ration by hand.



      documentclassarticle

      usepackagetabu
      usepackagebooktabs% for better rules in the table

      begindocument
      begintabu to textwidth XXXX
      toprule
      xx & 1 & 2 & 3 \
      bottomrule
      endtabu
      enddocument


      tabu comes with the new column type X which sets it’s width automatically, it has an optional argument taking l, r, c to adjust the alignment inside the cell or a numer to set uneven widths of columns. For example two columns, the first on right, the second one left aligned and twice the width of the first one, will be X[r]X[2] (l and 1 will be set by default). The part between to and <cols> can be any width, and the full part can be omitted to, i.e. begintabu<cols>.



      tabu is compatible with longtable with the new environment longtabu.




      Adding showframeand some text (lipsum) to the above example shows that the table has exactly the width of the text. On may notic that a table without a float enviroment is set inline and gets indented as every normal text, too. Use nointend to prevent that.



      table



      documentclassarticle

      usepackagetabu
      usepackagebooktabs% for better rules in the table
      usepackageshowframe,lipsum

      begindocument
      lipsum[4]

      noindent
      begintabu to textwidth XXXX
      toprule
      xx & 1 & 2 & 3 \
      bottomrule
      endtabu
      enddocument





      share|improve this answer




















      • 1





        Thanks! But I think the table is still somewhat wider than the text width of the page (compared with hrulefill)..

        – Håkon Hægland
        Oct 22 '13 at 9:06







      • 1





        @HåkonHægland: As you can see in my edit, the table has exactly the same width as the text …

        – Tobi
        Oct 22 '13 at 9:39






      • 1





        Indeed but read tex.stackexchange.com/q/121841/4918 before falling in love to deeply ;-)

        – Tobi
        Nov 1 '13 at 21:22












      • @HåkonHægland: 'hrulefill' doesn't have text width.

        – Spen
        Jun 30 '16 at 7:56













      21












      21








      21







      One can use tabu (e.g). It will set the table to a given width without needing to calc the ration by hand.



      documentclassarticle

      usepackagetabu
      usepackagebooktabs% for better rules in the table

      begindocument
      begintabu to textwidth XXXX
      toprule
      xx & 1 & 2 & 3 \
      bottomrule
      endtabu
      enddocument


      tabu comes with the new column type X which sets it’s width automatically, it has an optional argument taking l, r, c to adjust the alignment inside the cell or a numer to set uneven widths of columns. For example two columns, the first on right, the second one left aligned and twice the width of the first one, will be X[r]X[2] (l and 1 will be set by default). The part between to and <cols> can be any width, and the full part can be omitted to, i.e. begintabu<cols>.



      tabu is compatible with longtable with the new environment longtabu.




      Adding showframeand some text (lipsum) to the above example shows that the table has exactly the width of the text. On may notic that a table without a float enviroment is set inline and gets indented as every normal text, too. Use nointend to prevent that.



      table



      documentclassarticle

      usepackagetabu
      usepackagebooktabs% for better rules in the table
      usepackageshowframe,lipsum

      begindocument
      lipsum[4]

      noindent
      begintabu to textwidth XXXX
      toprule
      xx & 1 & 2 & 3 \
      bottomrule
      endtabu
      enddocument





      share|improve this answer















      One can use tabu (e.g). It will set the table to a given width without needing to calc the ration by hand.



      documentclassarticle

      usepackagetabu
      usepackagebooktabs% for better rules in the table

      begindocument
      begintabu to textwidth XXXX
      toprule
      xx & 1 & 2 & 3 \
      bottomrule
      endtabu
      enddocument


      tabu comes with the new column type X which sets it’s width automatically, it has an optional argument taking l, r, c to adjust the alignment inside the cell or a numer to set uneven widths of columns. For example two columns, the first on right, the second one left aligned and twice the width of the first one, will be X[r]X[2] (l and 1 will be set by default). The part between to and <cols> can be any width, and the full part can be omitted to, i.e. begintabu<cols>.



      tabu is compatible with longtable with the new environment longtabu.




      Adding showframeand some text (lipsum) to the above example shows that the table has exactly the width of the text. On may notic that a table without a float enviroment is set inline and gets indented as every normal text, too. Use nointend to prevent that.



      table



      documentclassarticle

      usepackagetabu
      usepackagebooktabs% for better rules in the table
      usepackageshowframe,lipsum

      begindocument
      lipsum[4]

      noindent
      begintabu to textwidth XXXX
      toprule
      xx & 1 & 2 & 3 \
      bottomrule
      endtabu
      enddocument






      share|improve this answer














      share|improve this answer



      share|improve this answer








      edited Jun 16 '17 at 0:23









      David Carlisle

      495k4111411889




      495k4111411889










      answered Oct 22 '13 at 8:57









      TobiTobi

      38.5k8131261




      38.5k8131261







      • 1





        Thanks! But I think the table is still somewhat wider than the text width of the page (compared with hrulefill)..

        – Håkon Hægland
        Oct 22 '13 at 9:06







      • 1





        @HåkonHægland: As you can see in my edit, the table has exactly the same width as the text …

        – Tobi
        Oct 22 '13 at 9:39






      • 1





        Indeed but read tex.stackexchange.com/q/121841/4918 before falling in love to deeply ;-)

        – Tobi
        Nov 1 '13 at 21:22












      • @HåkonHægland: 'hrulefill' doesn't have text width.

        – Spen
        Jun 30 '16 at 7:56












      • 1





        Thanks! But I think the table is still somewhat wider than the text width of the page (compared with hrulefill)..

        – Håkon Hægland
        Oct 22 '13 at 9:06







      • 1





        @HåkonHægland: As you can see in my edit, the table has exactly the same width as the text …

        – Tobi
        Oct 22 '13 at 9:39






      • 1





        Indeed but read tex.stackexchange.com/q/121841/4918 before falling in love to deeply ;-)

        – Tobi
        Nov 1 '13 at 21:22












      • @HåkonHægland: 'hrulefill' doesn't have text width.

        – Spen
        Jun 30 '16 at 7:56







      1




      1





      Thanks! But I think the table is still somewhat wider than the text width of the page (compared with hrulefill)..

      – Håkon Hægland
      Oct 22 '13 at 9:06






      Thanks! But I think the table is still somewhat wider than the text width of the page (compared with hrulefill)..

      – Håkon Hægland
      Oct 22 '13 at 9:06





      1




      1





      @HåkonHægland: As you can see in my edit, the table has exactly the same width as the text …

      – Tobi
      Oct 22 '13 at 9:39





      @HåkonHægland: As you can see in my edit, the table has exactly the same width as the text …

      – Tobi
      Oct 22 '13 at 9:39




      1




      1





      Indeed but read tex.stackexchange.com/q/121841/4918 before falling in love to deeply ;-)

      – Tobi
      Nov 1 '13 at 21:22






      Indeed but read tex.stackexchange.com/q/121841/4918 before falling in love to deeply ;-)

      – Tobi
      Nov 1 '13 at 21:22














      @HåkonHægland: 'hrulefill' doesn't have text width.

      – Spen
      Jun 30 '16 at 7:56





      @HåkonHægland: 'hrulefill' doesn't have text width.

      – Spen
      Jun 30 '16 at 7:56











      10














      Here is a simple way:



      newlengthq
      setlengthqdimexpr .5textwidth -2tabcolsep
      noindentbegintabularpqpq
      alfa & bravo \
      charlie & delta
      endtabular





      share|improve this answer




















      • 2





        +1 for (a) subtracting 2tabcolsep from the column width parameter and (b) not including any vertical rules. :-)

        – Mico
        Oct 19 '16 at 4:48
















      10














      Here is a simple way:



      newlengthq
      setlengthqdimexpr .5textwidth -2tabcolsep
      noindentbegintabularpqpq
      alfa & bravo \
      charlie & delta
      endtabular





      share|improve this answer




















      • 2





        +1 for (a) subtracting 2tabcolsep from the column width parameter and (b) not including any vertical rules. :-)

        – Mico
        Oct 19 '16 at 4:48














      10












      10








      10







      Here is a simple way:



      newlengthq
      setlengthqdimexpr .5textwidth -2tabcolsep
      noindentbegintabularpqpq
      alfa & bravo \
      charlie & delta
      endtabular





      share|improve this answer















      Here is a simple way:



      newlengthq
      setlengthqdimexpr .5textwidth -2tabcolsep
      noindentbegintabularpqpq
      alfa & bravo \
      charlie & delta
      endtabular






      share|improve this answer














      share|improve this answer



      share|improve this answer








      edited Mar 21 '16 at 3:43

























      answered Mar 20 '16 at 3:22









      Steven PennySteven Penny

      1




      1







      • 2





        +1 for (a) subtracting 2tabcolsep from the column width parameter and (b) not including any vertical rules. :-)

        – Mico
        Oct 19 '16 at 4:48













      • 2





        +1 for (a) subtracting 2tabcolsep from the column width parameter and (b) not including any vertical rules. :-)

        – Mico
        Oct 19 '16 at 4:48








      2




      2





      +1 for (a) subtracting 2tabcolsep from the column width parameter and (b) not including any vertical rules. :-)

      – Mico
      Oct 19 '16 at 4:48






      +1 for (a) subtracting 2tabcolsep from the column width parameter and (b) not including any vertical rules. :-)

      – Mico
      Oct 19 '16 at 4:48












      3














      After trying the suggestions made in this stackexchange I found a different and fancy solution (without loading any other packages etc.). The key is define the width of each column.



       begintable[ht!]
      centering
      captionCaption text
      begintabular
      Text column 1 & long long long long long long long text that should break \
      hline
      endtabular
      endtable





      share|improve this answer


















      • 2





        So for the above example you'd need a text block that has width 5cm+9cm+(a bunch of other tabular measurements to make sure the table fits exactly)... you don't really specify this latter measurement. There is no real guarantee this will fit within the text block.

        – Werner
        Jan 26 '16 at 21:44















      3














      After trying the suggestions made in this stackexchange I found a different and fancy solution (without loading any other packages etc.). The key is define the width of each column.



       begintable[ht!]
      centering
      captionCaption text
      begintabular
      Text column 1 & long long long long long long long text that should break \
      hline
      endtabular
      endtable





      share|improve this answer


















      • 2





        So for the above example you'd need a text block that has width 5cm+9cm+(a bunch of other tabular measurements to make sure the table fits exactly)... you don't really specify this latter measurement. There is no real guarantee this will fit within the text block.

        – Werner
        Jan 26 '16 at 21:44













      3












      3








      3







      After trying the suggestions made in this stackexchange I found a different and fancy solution (without loading any other packages etc.). The key is define the width of each column.



       begintable[ht!]
      centering
      captionCaption text
      begintabular
      Text column 1 & long long long long long long long text that should break \
      hline
      endtabular
      endtable





      share|improve this answer













      After trying the suggestions made in this stackexchange I found a different and fancy solution (without loading any other packages etc.). The key is define the width of each column.



       begintable[ht!]
      centering
      captionCaption text
      begintabular
      Text column 1 & long long long long long long long text that should break \
      hline
      endtabular
      endtable






      share|improve this answer












      share|improve this answer



      share|improve this answer










      answered Jan 26 '16 at 21:40









      R. KarakoyunR. Karakoyun

      411




      411







      • 2





        So for the above example you'd need a text block that has width 5cm+9cm+(a bunch of other tabular measurements to make sure the table fits exactly)... you don't really specify this latter measurement. There is no real guarantee this will fit within the text block.

        – Werner
        Jan 26 '16 at 21:44












      • 2





        So for the above example you'd need a text block that has width 5cm+9cm+(a bunch of other tabular measurements to make sure the table fits exactly)... you don't really specify this latter measurement. There is no real guarantee this will fit within the text block.

        – Werner
        Jan 26 '16 at 21:44







      2




      2





      So for the above example you'd need a text block that has width 5cm+9cm+(a bunch of other tabular measurements to make sure the table fits exactly)... you don't really specify this latter measurement. There is no real guarantee this will fit within the text block.

      – Werner
      Jan 26 '16 at 21:44





      So for the above example you'd need a text block that has width 5cm+9cm+(a bunch of other tabular measurements to make sure the table fits exactly)... you don't really specify this latter measurement. There is no real guarantee this will fit within the text block.

      – Werner
      Jan 26 '16 at 21:44











      2














      You can also use the graphicx package - I found this solution from the following online Table generator: http://www.tablesgenerator.com/



      You just need to add a "resizebox" command that rescales the tabular, see the following:



      % Please add the following required packages to your document preamble:
      % usepackagegraphicx

      begintable[htb]
      resizeboxtextwidth!% use resizebox with textwidth
      begintabular l
      bf Symptom & bf Metric \
      hline
      Class that has many accessor methods and accesses a lot of external data & ATFD is more than a few\
      Class that is large and complex & WMC is high\
      Class that has a lot of methods that only operate on a proper subset of the instance variable set & TCC is low\
      endtabular% close resizebox



      Note: that this will scale the whole table, including the font.






      share|improve this answer




















      • 1





        use of resizebox is not recommended. using it you will lost control on the font size used in table.

        – Zarko
        Oct 4 '18 at 11:20











      • In the question it was said that scaling was accepted, so I think having a scaled font will be acceptable. Anyway, thanks for pointing this out, I will add a note to the answer :)

        – BlueCoder
        Oct 4 '18 at 11:56
















      2














      You can also use the graphicx package - I found this solution from the following online Table generator: http://www.tablesgenerator.com/



      You just need to add a "resizebox" command that rescales the tabular, see the following:



      % Please add the following required packages to your document preamble:
      % usepackagegraphicx

      begintable[htb]
      resizeboxtextwidth!% use resizebox with textwidth
      begintabular l
      bf Symptom & bf Metric \
      hline
      Class that has many accessor methods and accesses a lot of external data & ATFD is more than a few\
      Class that is large and complex & WMC is high\
      Class that has a lot of methods that only operate on a proper subset of the instance variable set & TCC is low\
      endtabular% close resizebox



      Note: that this will scale the whole table, including the font.






      share|improve this answer




















      • 1





        use of resizebox is not recommended. using it you will lost control on the font size used in table.

        – Zarko
        Oct 4 '18 at 11:20











      • In the question it was said that scaling was accepted, so I think having a scaled font will be acceptable. Anyway, thanks for pointing this out, I will add a note to the answer :)

        – BlueCoder
        Oct 4 '18 at 11:56














      2












      2








      2







      You can also use the graphicx package - I found this solution from the following online Table generator: http://www.tablesgenerator.com/



      You just need to add a "resizebox" command that rescales the tabular, see the following:



      % Please add the following required packages to your document preamble:
      % usepackagegraphicx

      begintable[htb]
      resizeboxtextwidth!% use resizebox with textwidth
      begintabular l
      bf Symptom & bf Metric \
      hline
      Class that has many accessor methods and accesses a lot of external data & ATFD is more than a few\
      Class that is large and complex & WMC is high\
      Class that has a lot of methods that only operate on a proper subset of the instance variable set & TCC is low\
      endtabular% close resizebox



      Note: that this will scale the whole table, including the font.






      share|improve this answer















      You can also use the graphicx package - I found this solution from the following online Table generator: http://www.tablesgenerator.com/



      You just need to add a "resizebox" command that rescales the tabular, see the following:



      % Please add the following required packages to your document preamble:
      % usepackagegraphicx

      begintable[htb]
      resizeboxtextwidth!% use resizebox with textwidth
      begintabular l
      bf Symptom & bf Metric \
      hline
      Class that has many accessor methods and accesses a lot of external data & ATFD is more than a few\
      Class that is large and complex & WMC is high\
      Class that has a lot of methods that only operate on a proper subset of the instance variable set & TCC is low\
      endtabular% close resizebox



      Note: that this will scale the whole table, including the font.







      share|improve this answer














      share|improve this answer



      share|improve this answer








      edited Oct 4 '18 at 11:58

























      answered Oct 4 '18 at 10:42









      BlueCoderBlueCoder

      1535




      1535







      • 1





        use of resizebox is not recommended. using it you will lost control on the font size used in table.

        – Zarko
        Oct 4 '18 at 11:20











      • In the question it was said that scaling was accepted, so I think having a scaled font will be acceptable. Anyway, thanks for pointing this out, I will add a note to the answer :)

        – BlueCoder
        Oct 4 '18 at 11:56













      • 1





        use of resizebox is not recommended. using it you will lost control on the font size used in table.

        – Zarko
        Oct 4 '18 at 11:20











      • In the question it was said that scaling was accepted, so I think having a scaled font will be acceptable. Anyway, thanks for pointing this out, I will add a note to the answer :)

        – BlueCoder
        Oct 4 '18 at 11:56








      1




      1





      use of resizebox is not recommended. using it you will lost control on the font size used in table.

      – Zarko
      Oct 4 '18 at 11:20





      use of resizebox is not recommended. using it you will lost control on the font size used in table.

      – Zarko
      Oct 4 '18 at 11:20













      In the question it was said that scaling was accepted, so I think having a scaled font will be acceptable. Anyway, thanks for pointing this out, I will add a note to the answer :)

      – BlueCoder
      Oct 4 '18 at 11:56






      In the question it was said that scaling was accepted, so I think having a scaled font will be acceptable. Anyway, thanks for pointing this out, I will add a note to the answer :)

      – BlueCoder
      Oct 4 '18 at 11:56












      1














      With ConTeXt, from the reference manual, section 16.5 TeX-figures (svnversion 329, September 27, 2013) :



      startbuffer[table]
      startTABLE
      % fill your table here
      stopTABLE
      stopbuffer

      placefigure[none]externalfigure[table.buffer][width=textwidth]





      share|improve this answer



























        1














        With ConTeXt, from the reference manual, section 16.5 TeX-figures (svnversion 329, September 27, 2013) :



        startbuffer[table]
        startTABLE
        % fill your table here
        stopTABLE
        stopbuffer

        placefigure[none]externalfigure[table.buffer][width=textwidth]





        share|improve this answer

























          1












          1








          1







          With ConTeXt, from the reference manual, section 16.5 TeX-figures (svnversion 329, September 27, 2013) :



          startbuffer[table]
          startTABLE
          % fill your table here
          stopTABLE
          stopbuffer

          placefigure[none]externalfigure[table.buffer][width=textwidth]





          share|improve this answer













          With ConTeXt, from the reference manual, section 16.5 TeX-figures (svnversion 329, September 27, 2013) :



          startbuffer[table]
          startTABLE
          % fill your table here
          stopTABLE
          stopbuffer

          placefigure[none]externalfigure[table.buffer][width=textwidth]






          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Oct 26 '15 at 8:37









          Skippy le Grand GourouSkippy le Grand Gourou

          310211




          310211





















              0














              I was having the same issue,



              This is how I got to fix it. You can use "m" for the middle, "b" for the bottom and "p" you will need to play a little to get the desired results.



              begintable
              caption
              begintabular
              hline
              textbf & textbf & textbf hline
              1 & 2 & 3 hline
              4 / 5 hline
              6 & 7 & 8 hline
              9 & 10 & 11 hline
              12 & 13 / 13 & 14 / 14 hline
              15 & 16 & 17 hline
              endtabular
              labeltable: xxxxx
              endtable





              share








              New contributor




              Alexander Vega is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
              Check out our Code of Conduct.
























                0














                I was having the same issue,



                This is how I got to fix it. You can use "m" for the middle, "b" for the bottom and "p" you will need to play a little to get the desired results.



                begintable
                caption
                begintabular
                hline
                textbf & textbf & textbf hline
                1 & 2 & 3 hline
                4 / 5 hline
                6 & 7 & 8 hline
                9 & 10 & 11 hline
                12 & 13 / 13 & 14 / 14 hline
                15 & 16 & 17 hline
                endtabular
                labeltable: xxxxx
                endtable





                share








                New contributor




                Alexander Vega is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                Check out our Code of Conduct.






















                  0












                  0








                  0







                  I was having the same issue,



                  This is how I got to fix it. You can use "m" for the middle, "b" for the bottom and "p" you will need to play a little to get the desired results.



                  begintable
                  caption
                  begintabular
                  hline
                  textbf & textbf & textbf hline
                  1 & 2 & 3 hline
                  4 / 5 hline
                  6 & 7 & 8 hline
                  9 & 10 & 11 hline
                  12 & 13 / 13 & 14 / 14 hline
                  15 & 16 & 17 hline
                  endtabular
                  labeltable: xxxxx
                  endtable





                  share








                  New contributor




                  Alexander Vega is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                  Check out our Code of Conduct.










                  I was having the same issue,



                  This is how I got to fix it. You can use "m" for the middle, "b" for the bottom and "p" you will need to play a little to get the desired results.



                  begintable
                  caption
                  begintabular
                  hline
                  textbf & textbf & textbf hline
                  1 & 2 & 3 hline
                  4 / 5 hline
                  6 & 7 & 8 hline
                  9 & 10 & 11 hline
                  12 & 13 / 13 & 14 / 14 hline
                  15 & 16 & 17 hline
                  endtabular
                  labeltable: xxxxx
                  endtable






                  share








                  New contributor




                  Alexander Vega is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                  Check out our Code of Conduct.








                  share


                  share






                  New contributor




                  Alexander Vega is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                  Check out our Code of Conduct.









                  answered 2 mins ago









                  Alexander VegaAlexander Vega

                  1




                  1




                  New contributor




                  Alexander Vega is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                  Check out our Code of Conduct.





                  New contributor





                  Alexander Vega is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                  Check out our Code of Conduct.






                  Alexander Vega is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                  Check out our Code of Conduct.



























                      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%2f10535%2fhow-to-force-a-table-into-page-width%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

                      acmart: Multiple authors: all with same affiliation, one author an additional affiliationHow to Write Names of Multiple Authors with Shared Affiliation in ACM 2017 Template?Multiple authors with different primary affiliation, but same additional affiliationSame affiliation for all authors without extra packagesIOS-Book-Article.cls: one author with multiple affiliationacmart: Shared Author AffiliationMultiple authors with different primary affiliation, but same additional affiliationAuthor affiliation with only 1 authorAdding Multiple Authors with Different Affiliation in LaTeX ArticleLaTeX: Multiple authors stays on same lineHow to Label Multiple Authors with Same DescriptionHow to make two authors use the same affiliationTwo authors with same affiliation on finished front page

                      How to write “ä” and other umlauts and accented letters in bibliography?Accents in BibTeXSorting references with special characters alphabeticallyUse ae ligature in bibliographyEastern European nameInverted circumflex in BibTexBibTex, non-ascii initials and nameptr fproblems with accent in LatexHow to add a Ø to my bibliography from Jabref?References without accentsTroubles when trying to cite St“omer-Verlet in ”title" field of a bib entryComprehensive list of accented charactersHow to type the letter “i” with two dots (diaeresis) in math mode?Problem with glossary text and accented lettersSpecial character in bibliographyAccented letters, Unicode and LaTeX accentsHow to stop natbib from modifying bibliography styleCitation of a paper with non-standard characters by BibtexWrite accented characters to file using writeHow to group the bibliography alphabetically, if some surnames start with “accented” characters?How can I automatically capitalize significant words in my bibliography?

                      How to remove border form elements in the last row?Targeting flex items on the last rowHow to vertically wrap content with flexbox?Remove border from IFrameCSS3's border-radius property and border-collapse:collapse don't mix. How can I use border-radius to create a collapsed table with rounded corners?Div width 100% minus fixed amount of pixelsBorder around specific rows in a table?How to remove border (outline) around text/input boxes? (Chrome)How do I remove the space between inline-block elements?Flex-box: Align last row to gridRemove blue border from css custom-styled button in ChromeFill remaining vertical space with CSS using display:flexhow style elements in the last row of flexbox row layout with pure css without js