Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/vim/5.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Latex 乳胶:桌子溅到了右边的一页上_Latex_Margin_Longtable - Fatal编程技术网

Latex 乳胶:桌子溅到了右边的一页上

Latex 乳胶:桌子溅到了右边的一页上,latex,margin,longtable,Latex,Margin,Longtable,如何修复长表,使其不溢出右侧?对于table我使用\scalebox{0.9},但是scalebox似乎不能与longtable一起使用 \begin{longtable}{cccccccccc} \caption{This is a caption}\\ TABLE TABLE TABLE \end{longtable} 我的桌子有十列,因此两边的边距不是均匀的。有人知道如何将表格居中,使左右边距相等吗?找出哪些列给您带来的问题最多,然后将\begin{longtable}{cccc}

如何修复
长表
,使其不溢出右侧?对于
table
我使用
\scalebox{0.9}
,但是
scalebox
似乎不能与
longtable
一起使用

\begin{longtable}{cccccccccc}

\caption{This is a caption}\\

TABLE TABLE TABLE

\end{longtable}

我的桌子有十列,因此两边的边距不是均匀的。有人知道如何将表格居中,使左右边距相等吗?

找出哪些列给您带来的问题最多,然后将
\begin{longtable}{cccc}
更改为
\begin{longtable}{>{\raggedright}p{column width}cccc}

{\raggedright}
将告诉latex使单元格内容的右边缘参差不齐,而不是对齐


p{width of column}
将允许您指定列的宽度。

我不确定这是否有效,但您是否尝试过将整个内容包装在
\begin{minipage}{
中<代码>\end{minipage}?它可以编译,但似乎不会影响表(尝试了2in-12in)\begin{minipage}{2in}