LaTex:表格溢出到右侧页面
如何修复 longtable
使其不溢出到右侧?对于 table
,我使用 \scalebox{0.9}
,但 scalebox
似乎不适用于 longtable
。
\begin{longtable}{cccccccccc}
\caption{This is a caption}\\
TABLE TABLE TABLE
\end{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 sides. Does anyone know how to center the table so the left and right margins are equal?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
找出哪些列给您带来的问题最多,然后将
\begin{longtable}{cccccccccc}
更改为\begin{longtable}{>{\raggedright}p{width-of- column}ccccccccc}
>{\raggedright}
将告诉 Latex 使单元格内容的右边缘参差不齐,而不是对齐,并且
p{width-of-column}
将允许您指定列的宽度。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 justifiedand
the
p{width-of-column}
will allow you to specify the width of your column.