我想生成一个包含某些单元格内的枚举的表格。但是,枚举前后有一个垂直空间,看起来不太好。是否可以消除这个空间,以便枚举的开始和结束与枚举左右单元格中的文本在同一行上?如何做到这一点?
还有一个相关的问题:如何避免数字缩进?
目前,我正在使用以下代码:
\documentclass[a4paper, 12pt, oneside]{book}
\usepackage{subfiles}
\usepackage{import}
\usepackage[utf8]{inputenc}
%\usepackage{graphics}
\usepackage{epsfig}
%\usepackage{float}
%\usepackage{graphicx}
\usepackage{dcolumn}
\usepackage[T1]{fontenc}
\usepackage{geometry}
\geometry{a4paper, margin=1.2in}
\usepackage[english]{babel}
\usepackage{booktabs}
\usepackage{pdflscape}
\usepackage{graphicx}
\graphicspath{{images/}{../images/}}
\usepackage[export]{adjustbox}
\usepackage{caption}
\captionsetup{font=small,skip=10pt}
\usepackage{floatrow}
\floatsetup[table]{capposition=top}
\usepackage{longtable}
\usepackage[toc,page]{appendix}
\usepackage{pdflscape}
\usepackage[section]{placeins}
\usepackage{chngcntr}
\usepackage[flushleft]{threeparttable}
\newcolumntype{d}[1]{D{.}{.}{#1}}
\usepackage{tabu}
\usepackage{array}
\usepackage{enumitem}
\begin{document}
\begin{landscape}
\begin{table}[]
\small
\centering
\begin{tabular}{ p{4cm} p{5cm} p{6cm} p{6cm} }
\hline\hline
Construct & Nominal Definition & Empirical Indicators & Operationalization \\
\hline
Associational Solidarity & Frequency and patterns of interaction in various types of activities in which family members engage & \begin{enumerate}[nosep] \item Frequency of intergenerational interaction (i.e., face-to-face, telephone, mail) \item Types of common activities shared (i.e., recreation, special occasions, etc.) \end{enumerate} & About how many friends, other than members of your family, do you have who are younger than 30?
Which option best describes whether or not you can discuss personal issues such as feelings, beliefs or experiences with any of these friends?\\
\hline
Affectual Solidarity & Type and degree of positive sentiments held about family members, and the degree of reciprocity of these sentiments & \begin{enumerate}[nosep] \item Ratings of affection, warmth, close-ness, understanding, trust, respect, etc. for family members \item Ratings of perceived reciprocity in positive sentiments among family members \end{enumerate} & Tell me overall how negative or posi-tive you feel towards people in their 20s? \\
\hline
\end{tabular}
\caption{Caption}
\label{tab:my_label}
\end{table}
\end{landscape}
\end{document}
感谢帮助!
答案1
我尝试过这样的:
\begin{table}[]
\small
\centering
\begin{tabular}{ p{4cm} p{5cm} p{6cm} p{6cm} }
\hline\hline
Construct & Nominal Definition & Empirical Indicators & Operationalization \\
\hline
Associational Solidarity & Frequency and patterns of interaction in various types of activities in which family members engage &\begin{enumerate}[nosep,after=\vspace{-\baselineskip},before=\vspace{-\dimexpr\baselineskip/2\relax}] \item Frequency of intergenerational interaction (i.e., face-to-face, telephone, mail) \item Types of common activities shared (i.e., recreation, special occasions, etc.) \end{enumerate} & About how many friends, other than members of your family, do you have who are younger than 30?
Which option best describes whether or not you can discuss personal issues such as feelings, beliefs or experiences with any of these friends?\\
\hline
Affectual Solidarity & Type and degree of positive sentiments held about family members, and the degree of reciprocity of these sentiments &\begin{enumerate}[nosep,after=\vspace{-\baselineskip},before=\vspace{-\dimexpr\baselineskip/2\relax}] \item Ratings of affection, warmth, close-ness, understanding, trust, respect, etc. for family members \item Ratings of perceived reciprocity in positive sentiments among family members \end{enumerate} & Tell me overall how negative or posi-tive you feel towards people in their 20s? \\
\hline
\end{tabular}
\caption{Caption}
\label{tab:my_label}
\end{table}
并给出:
我真的不知道 \baselineskip/2 是否用于枚举的开始......它可能是“偶然”起作用的......但它在这里起作用。