Much like this question, I want to force a table to fit within the vertical page margins.
Any ideas?
Edit:
Margin size: \usepackage[left=3cm,right=3cm,textheight=23.5cm]{geometry}
Present situation:
lyxmarginstables
Much like this question, I want to force a table to fit within the vertical page margins.
Any ideas?
Edit:
Margin size: \usepackage[left=3cm,right=3cm,textheight=23.5cm]{geometry}
Present situation:
Best Answer
In my comment, I advocated something like:
where
scalefactor
is a number andyour table
is something like atabular
. In this illustrative example below, I first set the text height shorter (2.8") just so it is easier to see what is going on. The first thing I do I set a large tabular without any changes. Because it exceeds the length of page 1, it ends up on page 2, and you see that it stretches down to the page number.So, after clearing a page, I show how placing the table into a box and scaling it to a size smaller than unity can resolve the height issue (page 3). Of course, the font size is no longer uniform through the document.
On page 4, I show how this approach can be incorporated into a float, such as a table.
If the table to be scaled is not a float, but merely a
tabular
, it can be scaled exactly to the\textheight
using the\scaleto{object}{height}
feature of thescalerel
package: