1

如何在乳胶中停止我的表格以不必要地从下一页开始,在前一页留下巨大的空间?我怎样才能在标题之后强制开始。这是我的代码:

我正在使用包:

\usepackage{tabularx,ragged2e,booktabs,caption},
\usepackage{float}

我的表的代码是:

\begin{table}[H]
\begin{tabular}{| l| l }
$.$ & Matches any character.\\ 
$*$ & Matches zero or more instances of the previous pattern item.\\
$+$ & Matches one or more instances of the previous pattern item.\\
$?$ & Matches zero or one instances of the previous pattern item.\\
$( )$ & Groups a subpattern. The repetition and alternation operators apply to the preceding subpattern.\\
$|$ & Alternation.\\
$[ ]$ & Delimit a set of characters. Ranges are specified as [x-y].\\
\textasciicircum & Anchor the pattern to the beginning of the string. Only when first.\\
\$ & Anchor the pattern to the end of the string. Only when last.\\
\end{tabular}
\end{table}

我试过了[!ht][!htp][htpb]没有任何办法,而是桌子消失了。

4

1 回答 1

0

不仅在您的表格太长而无法垂直放入页面的情况下(例如,在标题或某些文本段落下方),您可以从浮动方法切换到:

%\begin{center}
\begin{longtable}{|l|l}
    %
  \endfirsthead
    %
  \endhead
    %
  \endfoot
    %
  \endlastfoot
    $.$ & Matches any character.\\ 
    $*$ & Matches zero or more instances of the previous pattern item.\\
    $+$ & Matches one or more instances of the previous pattern item.\\
    $?$ & Matches zero or one instances of the previous pattern item.\\
    $( )$ & Groups a subpattern. The repetition and alternation operators apply to the preceding subpattern.\\
    $|$ & Alternation.\\
    $[ ]$ & Delimit a set of characters. Ranges are specified as [x-y].\\
    \textasciicircum & Anchor the pattern to the beginning of the string. Only when first.\\
    \$ & Anchor the pattern to the end of the string. Only when last.\\
\end{longtable}
%\end{center}

编译后,这看起来与您的 完全相同table,前提是您\usepackage{longtable}在序言中包含(并且longtables 不是浮点数,而tables 是)。

于 2015-06-19T19:35:17.130 回答