删除表格行之间的间距

删除表格行之间的间距

由于第一列的第一个单元格溢出超过一行,因此我需要删除表格行之间的空白。请参阅 pdf 当前排版的屏幕截图。

pdf 当前排版的屏幕截图。

因此,我需要删除下方单元格中粗体“曼彻斯特大学暑期实习”和正文“与 Terrance Wyatt 教授合作...”之间的空白。

这是我当前的代码:

\section{Work Experience}
\begin{tabular}{p{0.12\linewidth}p{0.85\linewidth}}
\textsc{June 2017 - Sep. 2017} & \textbf{Summer Placement at the University of 
Manchester} \\
& Worked with Professor Terrance Wyatt at the High Energy Particle (HEP) Group 
at the University of Manchester on a research project over the summer of 2017.\\

任何帮助将不胜感激。

答案1

这是使用 的版本\parbox。您真正的问题不是表格行之间的间距(这是正确的,因为您的左列有两行高),而是您将一些应该在同一行的内容用新行替代,而只是换了一行。

桌子

\documentclass{article}
\usepackage[margin=2cm]{geometry} % to make it nearly fit
\usepackage{adjustbox}

\begin{document}

\section{Work Experience}
\begin{tabular}{p{0.12\linewidth}p{0.85\linewidth}}
\textsc{June 2017 - Sep. 2017} & \adjustbox{valign=t}{\parbox{.85\linewidth}{\textbf{Summer Placement at the University of 
Manchester} \\
Worked with Professor Terrance Wyatt at the High Energy Particle (HEP) Group 
at the University of Manchester on a research project over the summer of 2017.}}\\
Test & Test
\end{tabular}

\end{document}

答案2

我建议采用以下三种布局之一,基于tabularx

\documentclass{article}
\usepackage[margin=2cm]{geometry} % to make it nearly fit
\usepackage{makecell, tabularx}
\renewcommand{\theadfont}{\normalsize\scshape}
\renewcommand{\theadalign}{tl}
\newcommand{\nl}{\newline}

\begin{document}

\section{Work Experience}

\begin{tabularx}{\linewidth}{@{}p{0.12\linewidth}X@{}}
\thead{June 2017\\--\,Sep. 2017} & \textbf{Summer Placement at the University of
Manchester} \nl
Worked with Professor Terrance Wyatt at the High Energy Particle (HEP) Group
at the University of Manchester on a research project over the summer of 2017.\\
Test & Test
\end{tabularx}
\vspace{1cm}

\noindent\begin{tabularx}{\linewidth}{@{}p{0.12\linewidth}X@{}}
\multicolumn{2}{l}{\textsc{June 2017\,--\,Sep. 2017}\qquad \textbf{Summer Placement at the University of
Manchester}} \\[1ex]
 & Worked with Professor Terrance Wyatt at the High Energy Particle (HEP) Group
at the University of Manchester on a research project over the summer of 2017.\\
Test & Test
\end{tabularx}
\vspace{1cm}

\noindent\begin{tabularx}{\linewidth}{@{}lX@{}}
\textsc{June 2017\,--\,Sep. 2017} & \textbf{Summer Placement at the University of
Manchester} \smallskip\nl
Worked with Professor Terrance Wyatt at the High Energy Particle (HEP) Group
at the University of Manchester on a research project over the summer of 2017.\\
Test & Test
\end{tabularx}

\end{document} 

在此处输入图片描述

答案3

文本应p与粗体行位于同一单元格,因此

\documentclass{article}
\usepackage[margin=2cm]{geometry} % to make it nearly fit


\begin{document}

\section{Work Experience}
\begin{tabular}{@{}p{\dimexpr.15\linewidth-2\tabcolsep}p{0.85\linewidth}@{}}
\textsc{June 2017 - Sep. 2017} &\textbf{Summer Placement at the University of 
Manchester}

Worked with Professor Terrance Wyatt at the High Energy Particle (HEP) Group 
at the University of Manchester on a research project over the summer of 2017.\\
Test & Test
\end{tabular}

\end{document}

相关内容