Shrinking a table in LaTeX


Results 1 to 6 of 6

Thread: Shrinking a table in LaTeX

  1. #1
    Join Date
    Jan 2003
    Location
    Kitchener, Canada
    Posts
    710

    Shrinking a table in LaTeX

    Hey,

    I need to shrink a table in LaTeX. It is just slightly too wide and is spilling over into the right margin of my document. Is there a way to tell LaTeX to force it to stay withing the page margins and scale the height accordingly?

    I have tried using \fontsize{3}{3}, but it is only affecting a small subset of the cells in the table.

    Does anyone have any ideas?
    :wq

  2. #2
    Join Date
    Jul 2002
    Location
    Tallahassee, FL
    Posts
    512
    There are many ways to do tables in LaTeX; which particular method are you using? You can use the tabular* (note the asterisk) environment and define the width manually. Here's more info:
    http://www-h.eng.cam.ac.uk/help/tpl/...ml/ltx-68.html
    Registered Linux User No. 321,742

    "At Harvard they have this policy where if you pass too many classes they ask you to leave."
    ---Richard M. Stallman

  3. #3
    Join Date
    Jan 2003
    Location
    Kitchener, Canada
    Posts
    710
    Quote Originally Posted by paj12
    There are many ways to do tables in LaTeX; which particular method are you using? You can use the tabular* (note the asterisk) environment and define the width manually. Here's more info:
    http://www-h.eng.cam.ac.uk/help/tpl/...ml/ltx-68.html
    using tabular* and specifying a width relative to the text width is properly scaling the \hline elements, but the text is still overflowing. Any more ideas?
    :wq

  4. #4
    Join Date
    Jul 2002
    Location
    Tallahassee, FL
    Posts
    512
    using tabular* and specifying a width relative to the text width is properly scaling the \hline elements, but the text is still overflowing. Any more ideas?
    I dunno, manually inserting line breaks in the text of the offending cell? I think you can do this without starting a new row if the text is enclosed in brackets like:
    Code:
    {foo \\ bar}
    But I might be way off base. You might have better luck on a forum specific to TeX like this one:
    http://www.cqf.info/forum/viewforum.php?f=4

    Hope you find a solution.
    Registered Linux User No. 321,742

    "At Harvard they have this policy where if you pass too many classes they ask you to leave."
    ---Richard M. Stallman

  5. #5
    Join Date
    Jul 2002
    Location
    Tallahassee, FL
    Posts
    512
    Scratch that last post. It doesn't work. However, you can use the \multirow command to break the text across multiple lines. Here is a more comprehensive tutorial about the tabular environment. The \multirow command is covered in the last section called, "Columns spanning multiple rows."

    http://www.andy-roberts.net/misc/lat...tutorial4.html

    Hope this helps.
    Registered Linux User No. 321,742

    "At Harvard they have this policy where if you pass too many classes they ask you to leave."
    ---Richard M. Stallman

  6. #6
    Join Date
    Jan 2001
    Posts
    517
    If you were using lyx, this might help:

    http://wiki.lyx.org/LyX/Tables

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •