我正在使用 writelatex.com 的简历模板。我想在描述中使用项目符号,而不是流动文本。但是,它会增加一点分隔线,如第 1 项所示。如何让分隔线的长度仅为分项文本的长度,类似于第 2 项?
队伍太长
线条恰到好处
\documentclass[a4paper,10pt]{article}
\usepackage{enumitem}
\setlist[itemize]{leftmargin=*,topsep=0ex,parsep=0pt}
\usepackage{marvosym}
\usepackage{fontspec} %for loading fonts
\usepackage{xunicode,xltxtra,url,parskip} %other packages for formatting
\RequirePackage{color,graphicx}
\usepackage[usenames,dvipsnames]{xcolor}
\usepackage[big]{layaureo} %better formatting of the A4 page
% an alternative to Layaureo can be ** \usepackage{fullpage} **
\usepackage{supertabular} %for Grades
\usepackage{titlesec} %custom \section
%Setup hyperref package, and colours for links
\usepackage{hyperref}
\definecolor{linkcolour}{rgb}{0,0.2,0.6}
\hypersetup{colorlinks,breaklinks,urlcolor=linkcolour, linkcolor=linkcolour}
\titleformat{\section}{\Large\scshape\raggedright}{}{0em}{}[\titlerule]
\titlespacing{\section}{0pt}{3pt}{3pt}
%--------------------BEGIN DOCUMENT----------------------
\begin{document}
\pagestyle{empty} % non-numbered pages
\font\fb=''[cmr10]'' %for use with \LaTeX command
%--------------------TITLE-------------
\par{\centering
{\Huge Adam \textsc{G}
}\bigskip\par}
%--------------------SECTIONS-----------------------------------
\section{Work Experience}
\begin{tabular}{r|p{11cm}}
\emph{Current - } & Research Assistant \\\textsc{June 2012}&\emph{Speech Lab @ Queens College}\\&
\footnotesize{
\begin{itemize}
\item DARPA-funded initiative to identify “cognitive fingerprints” (unique typing patterns) based on linguistic biometrics
\item Develop, test and implement a series of linguistic feature-sets, to create unique user profiles
\end{itemize}}\\\multicolumn{2}{c}{} \\
\textsc{Jul-Oct 2008} & 1\textsuperscript{st} year Analyst at \textsc{Lehman Brothers}, London \\&\emph{Commodities Structured Trading}\\&\footnotesize{Developed spreadsheets for risk analysis on exotic derivatives on a wide array of commodities (\textit{ags, oils, precious} and \textit{base metals}), managed blotter and secondary trades on structured notes, liaised with Middle Office, Sales and Structuring for bookkeeping.}\\\multicolumn{2}{c}{} \\
\end{tabular}
\end{document}
答案1
添加after=\vspace{-\baselineskip}
\setlist[itemize]{leftmargin=*,topsep=0ex,parsep=0pt}
代码:
\documentclass[a4paper,10pt]{article}
\usepackage{enumitem}
\setlist[itemize]{leftmargin=*,topsep=0ex,parsep=0pt,after=\vspace{-\baselineskip}}
\usepackage{marvosym}
\usepackage{fontspec} %for loading fonts
\usepackage{xunicode,xltxtra,url,parskip} %other packages for formatting
\RequirePackage{color,graphicx}
\usepackage[usenames,dvipsnames]{xcolor}
\usepackage[big]{layaureo} %better formatting of the A4 page
% an alternative to Layaureo can be ** \usepackage{fullpage} **
\usepackage{supertabular} %for Grades
\usepackage{titlesec} %custom \section
%Setup hyperref package, and colours for links
\usepackage{hyperref}
\definecolor{linkcolour}{rgb}{0,0.2,0.6}
\hypersetup{colorlinks,breaklinks,urlcolor=linkcolour, linkcolor=linkcolour}
\titleformat{\section}{\Large\scshape\raggedright}{}{0em}{}[\titlerule]
\titlespacing{\section}{0pt}{3pt}{3pt}
%--------------------BEGIN DOCUMENT----------------------
\begin{document}
\pagestyle{empty} % non-numbered pages
\font\fb=''[cmr10]'' %for use with \LaTeX command
%--------------------TITLE-------------
\par{\centering
{\Huge Adam \textsc{G}
}\bigskip\par}
%--------------------SECTIONS-----------------------------------
\section{Work Experience}
\begin{tabular}{r|p{11cm}}
\emph{Current - } & Research Assistant \\\textsc{June 2012}&\emph{Speech Lab @ Queens College}\\&
\footnotesize{
\begin{itemize}
\item DARPA-funded initiative to identify “cognitive fingerprints” (unique typing patterns) based on linguistic biometrics
\item Develop, test and implement a series of linguistic feature-sets, to create unique user profiles
\end{itemize}}\\\multicolumn{2}{c}{} \\
\textsc{Jul-Oct 2008} & 1\textsuperscript{st} year Analyst at \textsc{Lehman Brothers}, London \\&\emph{Commodities Structured Trading}\\&\footnotesize{Developed spreadsheets for risk analysis on exotic derivatives on a wide array of commodities (\textit{ags, oils, precious} and \textit{base metals}), managed blotter and secondary trades on structured notes, liaised with Middle Office, Sales and Structuring for bookkeeping.}\\\multicolumn{2}{c}{} \\
\end{tabular}
\end{document}
更好的设置是
\setlist[itemize]{leftmargin=*,nosep,after=\vspace{-\baselineskip},before=\vspace*{-0.75\baselineskip}}
如果要保留常规itemize
环境,请定义一个新列表:
\usepackage{enumitem}
\newlist{myitemize}{itemize}{1}
\setlist[myitemize]{label=\textbullet,leftmargin=*,topsep=0ex,
parsep=0pt,after=\vspace{-\baselineskip},before=\vspace{-0.75\baselineskip}}
并使用它:
\begin{myitemize}
\item DARPA-funded initiative to identify “cognitive fingerprints” (unique typing patterns) based on linguistic biometrics
\item Develop, test and implement a series of linguistic feature-sets, to create unique user profiles
\end{myitemize}}