开发者

LaTex: Table is spilling over page on right

开发者 https://www.devze.com 2023-01-17 05:17 出处:网络
How can I fix a longtable to not spill over on the right? With table I use \\scalebox{0.9}, but scalebox does not seem to work with longtable.

How can I fix a longtable to not spill over on the right? With table I use \scalebox{0.9}, but scalebox does not seem to work with longtable.

\begin{longtable}{cccccccccc}

\caption{This is a caption}\\

TABLE TABLE TABLE

\end{longtable}

My table has ten columns and therefore the margins are not even on both s开发者_如何学JAVAides. Does anyone know how to center the table so the left and right margins are equal?


figure out which columns are giving you the most problems, then change \begin{longtable}{cccccccccc} to \begin{longtable}{>{\raggedright}p{width-of-column}ccccccccc}

the >{\raggedright} will tell latex to make the cell content with ragged right edges instead of justified

and

the p{width-of-column} will allow you to specify the width of your column.

0

精彩评论

暂无评论...
验证码 换一张
取 消