同时使用 longtable 和 enumerate

同时使用 longtable 和 enumerate

我正在准备我的简历。为了在我的出版物列表中添加一个部分,我尝试了以下内容,这些内容来自这里

\documentclass[letterpaper, 11pt]{article}
\usepackage{longtable, enumitem}
\usepackage[dvipsnames]{xcolor}
\usepackage[left=1in, right=1in, bottom=0.7in, top=0.7in]{geometry}

\begin{document}
\noindent ~~ {\color{Blue}{Publications}}
\vspace{1cm}
\begin{longtable}{p{0.0in}p{6.1in}}
&
\begin{enumerate}[topsep= 0pt, partopsep=0pt, before=\vspace*{-\baselineskip}, after=\vspace*{-\baselineskip}, series=TE]
\item[{\bf \large $2022$}]
\end{enumerate}\\
&
\begin{enumerate}[resume*=TE]
\item First Author, Second Author, Third Author, {\it Third Paper Title,} {\bf Journal Name} Volume pp. 1--24 (2022).
\end{enumerate}\\
&
\begin{enumerate}[resume*=TE]
\item[{\bf \large $2021$}]
\end{enumerate}\\
&
\begin{enumerate}[resume*=TE]
\item First Author, Second Author, {\it Second Paper Title,} {\bf Journal Name,} Volume pp. 1--20 (2021).
\end{enumerate}\\
&
\begin{enumerate}[resume*=TE]
\item[{\bf \large $2020$}]
\end{enumerate}\\
&
\begin{enumerate}[resume*=TE]
\item First Author, Second Author, Third Author, Fourth Author {\it First Paper Title,} {\bf Journal Name} Volume pp. 1--15 (2020).
\end{enumerate}
\end{longtable}

\end{document}

该命令[resume*=TE]用于恢复下一页的枚举项。

输出如下:

输出

2022 年(最左边)在正确的位置,但 2021 年和 2020 年则不然。如能提供任何帮助,我们将不胜感激。提前致谢。

答案1

使用长表格插入列表会在页面之间切换时带来很多麻烦,在我看来,使用\enumerate列表更简单:

\documentclass[letterpaper, 11pt]{article}
\usepackage[dvipsnames]{xcolor}
%--------------- show page layout. don't use in a real document!
\usepackage{showframe}
\renewcommand\ShowFrameLinethickness{0.15pt}
\renewcommand*\ShowFrameColor{\color{red}}
%---------------------------------------------------------------%
\usepackage{longtable, enumitem}
\usepackage[hmargin=1in, vmargin=0.7in]{geometry}

\begin{document}
\noindent\textcolor{Blue}{Publications}

\begin{enumerate}[align=right, leftmargin=3em]
\item[\large\textbf{2022}]
\item First Author, Second Author, Third Author, \textit{Third Paper Title}, \textbf{Journal Name} Volume pp. 1--24 (2022).
\item[\large\textbf{2021}]
\item First Author, Second Author, \textit{Second Paper Title}, \textbf{Journal Name}, Volume pp. 1--20 (2021).
\item[\large\textbf{2020}]
\item First Author, Second Author, Third Author, Fourth Author \textit{First Paper Title}, \textbf{Journal Name} Volume pp. 1--15 (2020).
\end{enumerate}

\end{document}

在此处输入图片描述

(红线表示页面布局)。

笔记:it在 LaTeX 中,和 的使用已弃用。您应该使用或\bf来代替它们,如上面的 MWE 和或一样。\itshape\textit˙{...}\bfseries\textbf{...}

相关内容