我正在使用 res 类来制作简历(我知道它已经过时了;路径依赖)我想将所有日期都放在右侧的一列中(日期下方没有文本,如下例所示)。
请参阅下面的最小文档。我们如何才能让文本停止在“1985 年夏季”左侧 0.5 厘米处?
谢谢你!
% LaTeX file for resume
% This file uses the resume document class (res.cls)
\documentclass{res}
\textwidth=5.5in % increase textwidth to get smaller right margin
\newsectionwidth{5pt}
\begin{document}
{\bf Consultant,} National Money Bank USA, Melville, NY \hfill Summer 1985
\begin{itemize} \itemsep -2pt % reduce space between items
\item Created regression model to lower check volume
forecast errors Created model to lower check volume
forecast errors Created regression model to lower check volume
forecast errors
\end{itemize}
{\bf Consultant,} National Money Bank USA, Melville, NY \hfill Summer 1985
Created regression model to lower check volume
forecast errors Created regression model to lower check volume
forecast errors Created regression model to lower check volume
forecast errors
\end{document}
答案1
以下是获取所需输出的一个选项。无需更多有关其用法的信息,它应该足够了:
\documentclass{res}
\usepackage{tabularx}
% \newitem{<what>}{<where>}{<when>}{<description>}
\newcommand{\newitem}[4]{%
\noindent
\begin{tabularx}{\textwidth}{@{} X l @{}}
\textbf{#1}, #2 & #3 \\[.5\normalbaselineskip]
#4
\end{tabularx}}
\begin{document}
\newitem{Consultant}{National Money Bank USA, Melville, NY}{Summer 1985}{%
Created regression model to lower check volume forecast errors Created model to lower check volume
forecast errors Created regression model to lower check volume forecast errors
}
\newitem{Consultant}{National Money Bank USA, Melville, NY}{Summer 1985}{%
Created regression model to lower check volume forecast errors Created model to lower check volume
forecast errors Created regression model to lower check volume forecast errors
}
\end{document}