如何让 Itemize 不跳过第一行

如何让 Itemize 不跳过第一行

我的简历模板里有类似的内容,我试图在下面解释问题是什么。

\NewEntry{2000}{blah}

\Description{\MarginText{blah} \begin{itemize} \item With itemize
\item It starts lower
\end{itemize} }

%------------------------------------------------

\NewEntry{2000}{blah}

\Description{\MarginText{blah}\textbullet \ I would like the text to start here, on the same line as \emph{blah} \\
\textbullet \ But using itemize}

在此处输入图片描述

基本上,它归结为 \itemize 环境跳过第一行,但我不希望它这样做,因为我希望第一个 \item 与边距文本对齐。

有人知道如何实现这一点吗?非常感谢您的帮助。

答案1

我建议你改变定义解决方案,\MarginText而不是\marginpar使用\marginnotemarginnote包;现在只需将 \MarginText 移到第一个之后\item

\documentclass{scrartcl}
\reversemarginpar % Move the margin to the left of the page 
\usepackage{marginnote}

% Modified from the original to use \marginnote instead of \marginpar
% requires the marginnote package
\newcommand{\MarginText}[1]{\marginnote{\raggedleft\itshape\small#1}} % New command defining the margin text style

\usepackage[nochapters]{classicthesis} % Use the classicthesis style for the style of the document
\usepackage[LabelsAligned]{currvita} % Use the currvita style for the layout of the document

\renewcommand{\cvheadingfont}{\LARGE\color{Maroon}} % Font color of your name at the top

\usepackage{hyperref} % Required for adding links   and customizing them
\hypersetup{colorlinks, breaklinks, urlcolor=Maroon, linkcolor=Maroon} % Set link colors

\newlength{\datebox}\settowidth{\datebox}{Spring 2011} % Set the width of the date box in each block

\newcommand{\NewEntry}[3]{\noindent\hangindent=2em\hangafter=0 \parbox{\datebox}{\small \textit{#1}}\hspace{1.5em} #2 #3 % Define a command for each new block - change spacing and font sizes here: #1 is the left margin, #2 is the italic date field and #3 is the position/employer/location field
\vspace{0.5em}} % Add some white space after each new entry

\newcommand{\Description}[1]{\hangindent=2em\hangafter=0\noindent\raggedright\footnotesize{#1}\par\normalsize\vspace{1em}} % Define a command for descriptions of each entry - change spacing and font sizes here

%----------------------------------------------------------------------------------------

\begin{document}

\thispagestyle{empty} % Stop the page count at the bottom of the first page

%----------------------------------------------------------------------------------------
%   NAME AND CONTACT INFORMATION SECTION
%----------------------------------------------------------------------------------------

\begin{cv}{\spacedallcaps{John Smith}}\vspace{1.5em} % Your name

\noindent\spacedlowsmallcaps{Personal Information}\vspace{0.5em} % Personal information heading

\NewEntry{}{\textit{Born in Canada,}}{20 November 1987} % Birthplace and date

\NewEntry{email}{\href{mailto:[email protected]}{[email protected]}} % Email address

\NewEntry{website}{\href{http://www.johnsmith.com}{http://www.johnsmith.com}} % Personal website

\NewEntry{phone}{(H) +1 (000) 111 1111\ \ $\cdotp$\ \ (M) +1 (000) 111 1112} % Phone number(s)

\vspace{1em} % Extra white space between the personal information section and goal

\noindent\spacedlowsmallcaps{Goal}\vspace{1em} % Goal heading, could be used for a quotation or short profile instead

\Description{Gain fundamental experience in my area of interest and expertise.}\vspace{2em} % Goal text

%----------------------------------------------------------------------------------------
%   WORK EXPERIENCE
%----------------------------------------------------------------------------------------

\noindent\spacedlowsmallcaps{Work Experience}\vspace{1em}

\NewEntry{2012--Present}{1\textsuperscript{st} Year Analyst, \textsc{Lehman Brothers}}

\Description{\MarginText{Lehman Brothers}Developed spreadsheets for risk analysis on exotic derivatives on a wide array of commodities (ags, oils, precious and base metals), managed blotter and secondary trades on structured notes, liaised with Middle Office, Sales and Structuring for bookkeeping. \\ Reference: John \textsc{McDonald}\ \ $\cdotp$\ \ +1 (000) 111 1111\ \ $\cdotp$\ \ \href{mailto:[email protected]}{[email protected]}}

\Description{\begin{itemize}
\item \MarginText{Lehman Brothers}First.
\item Second.
\item Third.
\item Fourth.
\end{itemize}
}

\end{cv}

\end{document}

在此处输入图片描述

事实上,使用\marginnote比更有意义\marginpar(在我看来),因为后者是一种浮动,可能会结束在不想要的位置(不同的页面),而前者不会浮动。

相关内容