0

複数の行と列を使用して、オーバーリーフでこのようなテーブルを作成したいと考えています。これらのコマンドの使用方法がわかりません

ここに画像の説明を入力

4

2 に答える 2

0

これは、より良い間隔のソリューションです。また、表には小さいフォント ( footnotesize) を使用しました。

\documentclass{article}

\usepackage{tabularx}
\usepackage{booktabs}
\usepackage{multirow}
\usepackage[shortlabels]{enumitem}

% See https://tex.stackexchange.com/a/6454/113546
\newcommand\compress{\csname @minipagetrue\endcsname}
\newenvironment{smallenum}{\begin{enumerate}[(1), left=0pt, nosep]\compress}{\end{enumerate}}
\newcolumntype{q}[1]{>{\centering}p{#1}}
\newcolumntype{r}[1]{>{\centering}m{#1}}

\begin{document}

\begin{footnotesize}\noindent
  \begin{tabularx}{\textwidth}{@{}p{3cm} q{8mm} q{8mm} q{6mm} X}
    \toprule
    & \multicolumn{1}{r{8mm}}{Largest problem solved} & \multicolumn{1}{r{8mm}}{Com\-puter} & \multicolumn{1}{r{6mm}}{Time (min)} & 
    \multicolumn{1}{>{\centering}m{5cm}}{Remarks} \\
    \midrule Dynamic programming (Held and Karp) & 13 & 7090 & 0.98 &
    \begin{smallenum}
    \item  Storage limitations prevented the solution of larger problems
    \item Required computer time is deterministic
    \end{smallenum} \\
    Branch-and-Bound (Little, et al) & 40 & 7090 & 8.37 &
    \begin{smallenum}
      \item Time reported is the expected time and one might experience large deviations for a particular problem.
      \item Time reported refers to randomly selected, asymmetric $c_{ij}$. Considerable difficulty reported for Euclidean problems.
    \end{smallenum}\\
    \bottomrule
  \end{tabularx}
\end{footnotesize}

\end{document}

ここに画像の説明を入力

于 2021-12-15T16:58:10.480 に答える