【问题标题】:Fitting a very wide longtable into the page width将一个非常宽的长表放入页面宽度
【发布时间】:2018-04-19 10:36:31
【问题描述】:

我想为我的附录创建一个长表,列出我在整个研究过程中进行的所有实验。但是它很宽,我想把它适应我的页面宽度。

\usepackage{longtable}

\centering
\begin{longtable}{ccccccccccc}
    Date                                     & Encoding & \begin{tabular}[c]{@{}c@{}}Model\\Architecture\end{tabular}                                                                                                                           & \begin{tabular}[c]{@{}c@{}}LSTM\\Units\end{tabular} & \begin{tabular}[c]{@{}c@{}}Batch\\Size\end{tabular} & \begin{tabular}[c]{@{}c@{}}Embedding\\Vector\\Length\end{tabular} & Optimizer                   & Ratio & Epochs & Accuracy  \\
    15/02/2018                               & Integer  & \begin{tabular}[c]{@{}c@{}}1 LSTM Layer\\w/ 0.5 surrounding Dropout\end{tabular}                                                                                                      & 100                                                 & 64                                                  & 32                                                                & RMSprop                     & 80/20 & 300    & 86.87     \\
    17/02/2018                               & Integer  & \begin{tabular}[c]{@{}c@{}}1 LSTM Layer\\w/ 0.29 LSTM dropout\\w/ 0.33 LSTM recurrent dropout\end{tabular}                                                                            & 100                                                 & 64                                                  & 32                                                                & RMSprop                     & 80/20 & 300    & 83.43     \\
    18/02/2018                               & Integer  & \begin{tabular}[c]{@{}c@{}}{1 LSTM Layer}\\w/ 0.5 surrounding Dropout\\w/ 0.2 LSTM dropout\\w/ 0.2 LSTM recurrent dropout\end{tabular}                    & 100                                                 & 64                                                  & 32                                                                & RMSprop                     & 80/20 & 500    & 87.34     \\
    18/02/2018 & Integer  & \begin{tabular}[c]{@{}c@{}}{1 LSTM Layer}\\w/ 0.5 surrounding Dropout\\w/ 0.3 LSTM dropout\\w/ 0.3 LSTM recurrent dropout\end{tabular}                    & 100                                                 & 64                                                  & 32                                                                & RMSprop                     & 80/20 & 500    & 87.6      \\
    17/02/2018                               & Integer  & \begin{tabular}[c]{@{}c@{}}{1 LSTM Layer}\\w/ 0.5 surrounding Dropout\\w/ 0.1 LSTM dropout\\w/ 0.1 LSTM recurrent dropout\end{tabular}                    & 100                                                 & 64                                                  & 32                                                                & RMSprop                     & 80/20 & 500    & 87.7      \\
    18/02/2018 & Integer  & \begin{tabular}[c]{@{}c@{}}{1 LSTM Layer}\\w/ 0.5 surrounding Dropout\\w/ 0.25 LSTM dropout\\w/ 0.25 LSTM recurrent dropout\end{tabular}                  & 100                                                 & 64                                                  & 32                                                                & RMSprop                     & 80/20 & 500    & 87.91     \\
    16/02/2018                               & Integer  & \begin{tabular}[c]{@{}c@{}}1 LSTM Layer\\w/ 0.3 LSTM dropout\\w/ 0.3 LSTM recurrent dropout\end{tabular}                                                                              & 100                                                 & 64                                                  & 32                                                                & \multicolumn{1}{l}{RMSprop} & 80/20 & 500    & 86.57     \\
    21/02/2018                               & Integer  & \begin{tabular}[c]{@{}c@{}}{1 LSTM Layer}\\w/ 0.5 surrounding Dropout\\w/ 0.5 LSTM dropout\\w/ 0.5 LSTM recurrent dropout\end{tabular}                    & 100                                                 & 64                                                  & 64                                                                & adam                        & 80/20 & 700    & 87.67     \\
    19/02/2018                               & Integer  & \begin{tabular}[c]{@{}c@{}}{1 LSTM Layer}\\w/ 0.5 surrounding Dropout\\w/ 0.225 LSTM dropout\\w/ 0.225 LSTM recurrent dropout\end{tabular}                & 100                                                 & 64                                                  & 32                                                                & RMSprop                     & 80/20 & 700    & 86.97     \\
    19/02/2018                               & Integer  & \begin{tabular}[c]{@{}c@{}}{1 LSTM Layer}\\w/ 0.5 surrounding Dropout\\w/ 0.275 LSTM dropout\\w/ 0.275 LSTM recurrent dropout\end{tabular}                & 100                                                 & 64                                                  & 32                                                                & RMSprop                     & 80/20 & 700    & 86.5      \\
    21/02/2018                               & Integer  & \begin{tabular}[c]{@{}c@{}}{1 LSTM Layer}\\w/ 0.5 surrounding Dropout\\w/ 0.25 LSTM dropout\\w/ 0.25 LSTM recurrent dropout\end{tabular}                  & 100                                                 & 64                                                  & 64                                                                & RMSprop                     & 80/20 & 700    & 88.21     \\
    20/02/2018                               & Integer  & \begin{tabular}[c]{@{}c@{}}{1 LSTM Layer}\\w/ 0.5 surrounding Dropout\\w/ 0.25 LSTM dropout\\w/ 0.1 LSTM recurrent dropout\end{tabular}                   & 100                                                 & 64                                                  & 32                                                                & RMSprop                     & 80/20 & 700    & 87.94     \\
    21/02/2018                               & Integer  & \begin{tabular}[c]{@{}c@{}}{1 LSTM Layer}\\w/ 0.4 surrounding Dropout\\w/ 0.25 LSTM dropout\\w/ 0.25 LSTM recurrent dropout\end{tabular}                  & 100                                                 & 64                                                  & 32                                                                & RMSprop                     & 80/20 & 1000   & 87.44     \\
    20/02/2018                               & Integer  & \begin{tabular}[c]{@{}c@{}}{1 LSTM Layer}\\w/ 0.5 surrounding Dropout\\w/ 0.24 LSTM dropout\\w/ 0.24 LSTM recurrent dropout\end{tabular}                  & 100                                                 & 64                                                  & 32                                                                & RMSprop                     & 80/20 & 1000   & 88.07     \\
    25/02/2018                               & Integer  & \begin{tabular}[c]{@{}c@{}}{1 LSTM Layer}\\w/ 0.5 surrounding Dropout\\w/ 0.255 LSTM dropout\\w/ 0.255 LSTM recurrent dropout\end{tabular}                & 200                                                 & 64                                                  & 64                                                                & RMSprop                     & 90/10 & 300    & 88.77     \\
    25/02/2018                               & Integer  & \begin{tabular}[c]{@{}c@{}}{1 LSTM Layer}\\w/ 0.5 surrounding Dropout\\w/ 0.26 LSTM dropout\\w/ 0.26 LSTM recurrent dropout\end{tabular}                  & 100                                                 & 64                                                  & 64                                                                & RMSprop                     & 90/10 & 600    & 89.64     \\
    22/02/2018                               & Integer  & \begin{tabular}[c]{@{}c@{}}{1 LSTM Layer}\\w/ 0.5 surrounding Dropout\\w/ 0.25 LSTM dropout\\w/ 0.25 LSTM recurrent dropout\end{tabular}                  & 100                                                 & 64                                                  & 64                                                                & RMSprop                     & 90/10 & 800    & 88.37     \\
    25/02/2018                               & Integer  & \begin{tabular}[c]{@{}c@{}}{1 LSTM Layer}\\w/ 0.5 surrounding Dropout\\w/ 0.265 LSTM dropout\\w/ 0.265 LSTM recurrent dropout\end{tabular}                & 100                                                 & 64                                                  & 64                                                                & RMSprop                     & 90/10 & 1000   & 89.71     \\
    01/03/2018                               & Integer  & \begin{tabular}[c]{@{}c@{}}{1 LSTM Layer}\\w/ 0.5 surrounding Dropout\\w/ 0.26 LSTM dropout\\w/ 0.26 LSTM recurrent dropout\\w/ Class Weight\end{tabular} & 100                                                 & 64                                                  & 64                                                                & RMSprop                     & 90/10 & 1000   & 89.91     \\
    22/02/2018                               & Integer  & \begin{tabular}[c]{@{}c@{}}{1 LSTM Layer}\\w/ 0.5 surrounding Dropout\\w/ 0.25 LSTM dropout\\w/ 0.25 LSTM recurrent dropout\end{tabular}                  & 200                                                 & 64                                                  & 64                                                                & RMSprop                     & 80/20 & 800    & 87.77     \\
    23/02/2018                               & Integer  & \begin{tabular}[c]{@{}c@{}}1 LSTM Layer\\w/ 0.3 LSTM dropout\\w/ 0.3 LSTM recurrent dropout\end{tabular}                                                                              & 200                                                 & 64                                                  & 64                                                                & RMSprop                     & 80/20 & 400    & 87.47     \\
    23/02/2018                               & Integer  & 1 LSTM Layer                                                                                                                                                                          & 200                                                 & 64                                                  & 64                                                                & RMSprop                     & 80/20 & 200    & 87.4        
\end{longtable}

这会产生:

【问题讨论】:

标签: latex pdflatex latex-environment


【解决方案1】:

您可以尝试指定列的大小并找到您需要的最佳平衡,如以下命令:

    \begin{longtable}{|p{1cm}|p{3cm}|...|p{3cm}|}

【讨论】:

  • 请在发布答案之前注意正确的格式。您的意思是使用 {} 而不是
猜你喜欢
  • 2014-04-03
  • 2012-12-31
  • 2012-02-18
  • 1970-01-01
  • 1970-01-01
  • 2017-08-29
  • 1970-01-01
  • 2011-03-24
  • 1970-01-01
相关资源
最近更新 更多