帶有枚舉的表中的連續列線

帶有枚舉的表中的連續列線

我想獲得一些有關如何在枚舉後使這些列線連續的幫助?我的程式碼是

\begin{table}[!ht]
\footnotesize
\begin{center}
\begin{tabular}{|p{9cm} |p{0.12\textwidth} |p{0.10\textwidth} |p{0.05\textwidth}|}\hline
    \hline
 \textbf{a) Resource } & \CheckmarkBold & 1-5 & {}\\
 \begin{enumerate}[label=(\roman*)]
\item Divine 
\item  Nestled  
\item   Ministry 
 \end{enumerate}\\\hline 

 \textbf{a) Community} & \CheckmarkBold & 1-5 & {}\\
 \begin{enumerate}[label=(\roman*)]

\item  Life

 \end{enumerate}\\\hline 
\end{tabular}
\end{center}
\end{table}

一個可編譯的範例,儘管不是最小的:

\documentclass[preprint,review,12pt]{elsarticle}
\usepackage{amssymb}
\usepackage{amsmath}
\usepackage{hyphenat}
\usepackage{ragged2e}
\usepackage{float}
\usepackage{placeins}
\usepackage[margin=2cm]{geometry}
\usepackage{latexsym}
\usepackage{bm,array}
\usepackage{amsfonts}
\usepackage{pdflscape}
\usepackage{subfigure}
%\usepackage{lineno}
%\linenumbers
\usepackage{capt-of}
\usepackage{framed} % Framing content
\usepackage{multicol} % Multiple columns environment
\biboptions{sort&compress} %compresses numerical citations
\usepackage{multirow}
\usepackage{titlesec}
\usepackage{tikz}
%\def\checkmark{\tikz\fill[scale=0.4](0,.35) -- (.25,0) -- (1,.7) -- (.25,.15) -- cycle;} 

\usepackage{bbding}
\usepackage{pifont}
\usepackage{wasysym}
\usepackage{amssymb}
\usepackage{enumitem}
\usepackage{placeins}
\usepackage{fancyhdr} % to change header and footers
\usepackage{blindtext} % to quickly get a full document
\fancypagestyle{plain}{%
    \renewcommand{\footrulewidth}{0pt}%
    \fancyhf{}%
    \fancyfoot[R]{\thepage}%
 \rfoot{Page \thepage \hspace{1pt} of \pageref{LastPage}}   
}
\begin{document}
\begin{table}[!ht]
\footnotesize
\begin{center}
\begin{tabular}{|p{9cm} |p{0.12\textwidth} |p{0.10\textwidth} |p{0.05\textwidth}|}\hline
    \hline
 \textbf{a) Resource } & \CheckmarkBold & 1-5 & {}\\
 \begin{enumerate}[label=(\roman*)]
\item Divine 
\item  Nestled  
\item   Ministry 
 \end{enumerate}\\\hline 
 \textbf{a) Community} & \CheckmarkBold & 1-5 & {}\\
 \begin{enumerate}[label=(\roman*)]
\item  Life
 \end{enumerate}\\\hline 
\end{tabular}
\end{center}
\end{table}
\end{document}

答案1

只需&&&在每個 後面添加三列“虛無” \end{enumerate}

在此輸入影像描述

\documentclass[preprint,review,12pt]{elsarticle}
%%% I've trimmed the preamble down to the bare essentials
\usepackage[margin=2cm]{geometry}
\usepackage{bbding}
\usepackage{enumitem}
\usepackage{fancyhdr}
\fancypagestyle{plain}{%
    \renewcommand{\footrulewidth}{0pt}%
    \fancyhf{}%
    \fancyfoot[R]{\thepage}%
 \rfoot{Page \thepage \hspace{1pt} of \pageref{LastPage}}   
}
\begin{document}
\begin{table}[!ht]
\footnotesize
\centering % not "\begin{center}" and "\end{center}"
\begin{tabular}{|p{9cm} |p{0.12\textwidth} |
                 p{0.10\textwidth} |p{0.05\textwidth}|}
\hline
\textbf{a) Resource } & \CheckmarkBold & 1--5 & \\
\begin{enumerate}[label=(\roman*)]
\item Divine 
\item  Nestled  
\item   Ministry 
\end{enumerate} &&&\\ % <--- note "&&&"
\hline 
 \textbf{a) Community} & \CheckmarkBold & 1--5 & \\
 \begin{enumerate}[label=(\roman*)]
\item  Life
 \end{enumerate}&&&\\ % <--- note "&&&"
\hline 
\end{tabular}
\end{table}
\end{document}

相關內容