LaTex:表格溢出到右侧页面

发布于 2024-09-24 01:50:31 字数 323 浏览 2 评论 0原文

如何修复 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

你与昨日 2024-10-01 01:50:31

找出哪些列给您带来的问题最多,然后将 \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 justified

and

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

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文