我的简历使用longtable
每个“经验”块,例如“工作经验”是一个长表,“研究经验”是另一个。我现在需要写几行描述来详细说明一些经验,我想使用itemize
项目符号。我无论如何都无法在第一个\item
消失之前获得顶部空间。尝试了enuitem
,,array
其他一些我只是复制但并没有真正理解的疯狂的东西。我可以\vspace{-0.35cm}
在每个itemize
列表前使用笨重的本地来获得我想要的结果,但这让我想开枪自杀。我显然是一个 TeX 菜鸟,除非是简单的更改,否则我不想彻底改变我的简历结构。显然需要 MWE:
\documentclass[letter,10pt]{article}
\RequirePackage[top=0.8in,bottom=0.8in,left=0.6in,right=0.7in]{geometry}
\usepackage{longtable}
\usepackage{titlesec}
\titleformat{\section}{\bf\large\scshape\raggedright}{}{0em}{}[]
\usepackage{enumitem} \setlist[itemize]{topsep=0cm, leftmargin=*}
\begin{document}
\moveleft.5\hoffset\centerline{Name}
\moveleft.5\hoffset\centerline{Address}
etc.
\section{Work Experience}
\begin{longtable}{lp{16cm}}
2013 & \textsc{University}, Location, NY \\
& \textit{Position}, sub-center. \\ &
\begin{itemize}
\item Conduct research.
\item Manage people.
\end{itemize} \\
2013 & \textsc{University}, Location, NY \\
& \textit{Position}, sub-center. \\ &
\vspace{-0.6cm}
\begin{itemize}
\item Do stuff.
\end{itemize} \\
\end{longtable}
\end{document}
我的本地\vspace
解决方法很有效,但很笨重,而且我不想总是复制和粘贴它。
我该如何通过全局编辑让愚蠢的 topsep 空格消失?为什么不起作用enumitem
???
答案1
应\setlist
声明长度单位,例如:
\setlist[itemize]{topsep=3pt, parsep=0pt, leftmargin=1em}
为了减少itemize
与前一行文本之间的垂直空间,您可以\vspace{-\baselineskip}
在上一行插入以 itemize 开头的内容:
\usepackage{enumitem}
\setlist[itemize]{topsep=3pt, parsep=0pt, leftmargin=1em}
\begin{document}
\begin{longtable}{lp{16cm}}
2013 & \textsc{University}, Location, NY \\
& \textit{Position}, sub-center.
\begin{itemize}
\item Conduct research.
\item Manage people.
\end{itemize} \\
2013 & \textsc{University}, Location, NY \\
& \textit{Position}, sub-center.
\begin{itemize}
\item Do stuff.
\end{itemize}
\end{longtable}
\end{document}
longtable
如果你使用description
列表,那么遇到的问题就会少得多:
\documentclass[letter,10pt]{article}
\usepackage[top=0.8in,bottom=0.8in,left=0.6in,right=0.7in]{geometry}
%\usepackage{titlesec}
%\titleformat{\section}{\bf\large\scshape\raggedright}{}{0em}{}[]
\usepackage{enumitem}
\setlist[itemize]{topsep=0pt, parsep=0pt, leftmargin=*}
\setlist[description]{labelwidth=*, leftmargin=4em}
\begin{document}
\section{Work Experience}
\begin{description}
\item[2013] \textsc{University}, Location, NY \\
\textit{Position}, sub-center.
\begin{itemize}
\item Conduct research.
\item Manage people.
\end{itemize}
\item[2013] \textsc{University}, Location, NY \\
\textit{Position}, sub-center.
\begin{itemize}
\item Do stuff.
\end{itemize}
\end{description}
\end{document}
这使:
答案2
将 itemize 放入 parbox:
\documentclass[letter,10pt]{article}
\RequirePackage[top=0.8in,bottom=0.8in,left=0.6in,right=0.7in]{geometry}
\usepackage{longtable}
\usepackage{titlesec}
\titleformat{\section}{\bf\large\scshape\raggedright}{}{0em}{}[]
\usepackage{enumitem} \setlist[itemize]{topsep=0cm, leftmargin=*}
\begin{document}
\moveleft.5\hoffset\centerline{Name}
\moveleft.5\hoffset\centerline{Address}
etc.
\section{Work Experience}
\begin{longtable}{lp{16cm}}
2013 & \textsc{University}, Location, NY \\
& \textit{Position}, sub-center. \\ &
\parbox{16cm}{%
\begin{itemize}[nosep]
\item Conduct research.
\item Manage people.
\end{itemize}} \\
2013 & \textsc{University}, Location, NY \\
& \textit{Position}, sub-center. \\ &
\parbox{16cm}{%
\begin{itemize}[nosep]
\item Do stuff.
\end{itemize}}\\
\end{longtable}
\end{document}
答案3
\documentclass[letterpaper,10pt]{article}
\RequirePackage[top=0.8in,bottom=0.8in,left=0.6in,right=0.7in]{geometry}
\usepackage{longtable,setspace}
\usepackage{titlesec}
\titleformat{\section}{\bf\large\scshape\raggedright}{}{0em}{}[]
\usepackage{enumitem}
\setlist[itemize]{nosep,leftmargin=*}
\begin{document}
\singlespacing
\moveleft.5\hoffset\centerline{Name}
\moveleft.5\hoffset\centerline{Address}
etc.
\section{Work Experience}
\begin{longtable}{lp{16cm}}
2013 & \textsc{University}, Location, NY \\ % new row
& \textit{Position}, sub-center.%
\begin{itemize}
\item Conduct research.
\item Manage people.
\end{itemize} \\ % new row
2013 & \textsc{University}, Location, NY \\ % new row
& \textit{Position}, sub-center.
\begin{itemize}
\item Do stuff
\end{itemize}
\end{longtable}
\end{document}
使用letterpaper
和测量单位topsep = 0
厘米或者只是简单nosep
。
事情是这样的,每次你开始itemize
环境时,都会提供一个新队在当前行的&
. 之后(根据我的观察)。
因此,另一个解决方案是取消为所述环境添加额外的行,而是在之后插入\textit{Position}, sub-center.
我们有同样的问题,不需要的 vspace 是无法克服的!但如果我有答案,我会告诉你。我会调查这个问题。
目前,这个想法我可以帮到你。希望这能有所帮助。
问候,詹弗兰科