我正在使用二十秒简历模板(https://it.overleaf.com/latex/templates/twenty-seconds-resume-slash-cv/mhyfwrmwjkbc)。
我有这样的环境:
\setlength{\tabcolsep}{0pt}
% New environment for the long list
\newenvironment{twenty}{%
\begin{tabular*}{\textwidth}{@{\extracolsep{\fill}}ll}
}{%
\end{tabular*}
}
\newcommand{\twentyitem}[4]{%
\scriptsize{#1}&\quad\parbox[t]{\textwidth}{%
\textbf{#2}%
\quad%
{\footnotesize#3}\\%
#4\vspace{\parsep}%
}\\
}
以及以下代码:
\begin{twenty} % Environment for a list with descriptions
\twentyitem{09/2016 - 03/2019}{AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA}{BBBBBB}{\emph{CCCCCCCCC}\\CCCCCCCC\\ CCCCCCCCCCCCCC}
\twentyitem{09/2017 - 03/2018}{DDDDDDDDDDDDDDDD}{EEEEEEEEEE}{\emph{FFFFFFFFFFFF}\\FFFFFFFFFFFFFFFFFF}
\twentyitem{09/2013 - 12/2016}{GGGGGGGGGGGGGGGGGGG}{HHHHH}{\emph{IIIIIIIIIIIIIII}\\IIIIIIIIIIIIII\\ IIIIIIIIIII}
\end{twenty}
我怎样才能正确对齐 BBB EEE 和 HHH 部分(的第三个参数\twentyitem
)???
答案1
tabular
我建议用真正的 来替换itemize
,它已经根据您的需要进行了定制。
\documentclass{article}
\usepackage[pass,showframe]{geometry}
\usepackage{enumitem}
\newenvironment{twenty}{\begin{itemize}[leftmargin=70pt]}{\end{itemize}}
\newcommand\twentyitem[4][]{\item[{\scriptsize[#1]}]\textbf{#2}\hfill
{\footnotesize#3}\\#4}
\begin{document}
\sffamily
\begin{twenty} % Environment for a list with descriptions
\twentyitem[09/2016 - 03/2019]{AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA}{BBBBBB}
{\emph{CCCCCCCCC}\\CCCCCCCC\\ CCCCCCCCCCCCCC}
\twentyitem[09/2017 - 03/2018]{DDDDDDDDDDDDDDDD}{EEEEEEEEEE}
{\emph{FFFFFFFFFFFF}\\FFFFFFFFFFFFFFFFFF}
\twentyitem[09/2013 - 12/2016]{GGGGGGGGGGGGGGGGGGG}{HHHHH}
{\emph{IIIIIIIIIIIIIII}\\IIIIIIIIIIIIII\\ IIIIIIIIIII}
\end{twenty}
\end{document}
答案2
也许和tabularx
?
\documentclass{article}
\usepackage{tabularx,array}
% New environment for the long list
\newenvironment{twenty}
{\par\noindent\tabularx{\textwidth}{@{}l@{}>{\raggedright}X@{}r@{}}}
{\endtabularx}
\newcommand{\twentyitem}[4]{%
{\scriptsize #1}\hspace*{1em} &
\textbf{#2}\\
#4 & {\footnotesize#3} \tabularnewline[\parsep]
}
\begin{document}
\begin{twenty} % Environment for a list with descriptions
\twentyitem{09/2016 - 03/2019}{AAAAAAAAAAAAAAAAAA}{BBBBBB}{\emph{CCCCCCCCC}\\CCCCCCCC\\ CCCCCCCCCCCCCC}
\twentyitem{09/2017 - 03/2018}{DDDDDDDDDDDDDDDD}{EEEEEEEEEE}{\emph{FFFFFFFFFFFF}\\FFFFFFFFFFFFFFFFFF}
\twentyitem{09/2013 - 12/2016}{GGGGGGGGGGGGGGGGGGG}{HHHHH}{\emph{IIIIIIIIIIIIIII}\\IIIIIIIIIIIIII\\ IIIIIIIIIII}
\end{twenty}
\end{document}