我正在尝试在环境中添加逐项列表tabular
,它确实有效,但是它在列表上方添加了不需要的空间......
这是代码...
\documentclass[10pt]{article}
% packages
\usepackage[T1]{fontenc}
\usepackage[margin=3cm]{geometry}
\usepackage{array, xcolor}
\usepackage{titling}
\usepackage{blindtext}
% rules
\definecolor{lightgray}{gray}{0.8}
\newcolumntype{L}{>{\raggedleft}p{0.14\textwidth}}
\newcolumntype{R}{p{0.8\textwidth}}
\newcommand\VRule{\color{lightgray}\vrule width 0.5pt}
\begin{document}
\maketitle
\thispagestyle{empty}
\pagestyle{empty}
\section*{Work Experience}
\begin{tabular}{L! {\VRule} R}
2010-2011 & {\bf Profession}\\
& Job Description\\
& \begin{itemize}
\item The first item
\item The second item
\item The third etc
\end{itemize} \\
\end{tabular}
\end{document}
结果就是这样...
有没有什么办法可以让逐项列表的开始和“职位描述”之间的换行更少?
答案1
一种方法是使用paralist
\documentclass[10pt]{article}
% packages
\usepackage[T1]{fontenc}
\usepackage[margin=3cm]{geometry}
\usepackage{array, xcolor}
\usepackage{titling}
\usepackage{blindtext}
\usepackage{paralist}
% rules
\definecolor{lightgray}{gray}{0.8}
\newcolumntype{L}{>{\raggedleft}p{0.14\textwidth}}
\newcolumntype{R}{p{0.8\textwidth}}
\newcommand\VRule{\color{lightgray}\vrule width 0.5pt}
\begin{document}
\thispagestyle{empty}
\pagestyle{empty}
\section*{Work Experience}
\begin{tabular}{L! {\VRule} R}
2010-2011 & {\bf Profession}\\
& Job Description\\
& \begin{compactitem}
\item The first item
\item The second item
\item The third etc
\end{compactitem} \\
\end{tabular}
\end{document}
这也消除了压痕。
答案2
您可以使用enumitem
并放置topsep=0pt
\documentclass[10pt]{article}
% packages
\usepackage[T1]{fontenc}
\usepackage[margin=3cm]{geometry}
\usepackage{array, xcolor}
\usepackage{titling,enumitem}
\usepackage{blindtext}
% rules
\definecolor{lightgray}{gray}{0.8}
\newcolumntype{L}{>{\raggedleft}p{0.14\textwidth}}
\newcolumntype{R}{p{0.8\textwidth}}
\newcommand\VRule{\color{lightgray}\vrule width 0.5pt}
\begin{document}
%
%\maketitle
\thispagestyle{empty}
\pagestyle{empty}
\section*{Work Experience}
\begin{tabular}{L! {\VRule} R}
2010-2011 & {\bf Profession}\\
& Job Description\\
& \begin{itemize}[parsep=0pt,topsep=0pt]
\item The first item
\item The second item
\item The third etc
\end{itemize} \\
\end{tabular}
\end{document}