有没有办法使用 enumitem 包在项目中间恢复列表,如本例所示:
\documentclass[a4paper,12pt]{article}
\usepackage[shortlabels]{enumitem}
\usepackage{expl3}
\ExplSyntaxOn
\cs_new_eq:NN \Repeat \prg_replicate:nn
\ExplSyntaxOff
%% From: https://tex.stackexchange.com/a/16192/4011
\usepackage{tikz}
\begin{document}
\begin{minipage}[t]{0.7\linewidth}
\begin{enumerate}[a),series=foo]
\item Item 1
\item \Repeat{30}{Some Text. }
\end{enumerate}
\end{minipage}
\raisebox{-\height}{
\begin{tikzpicture}
\draw (0,0) circle (0.15\linewidth);
\end{tikzpicture}
}
%\vspace*{1ex}
\begin{enumerate}[a),resume*=foo]
\Repeat{30}{Rest of Item 2. }
\item Item 3
\end{enumerate}
\end{document}
答案1
只需使用\item[]
:
\documentclass[a4paper,12pt]{article}
\usepackage[shortlabels]{enumitem}
\usepackage{expl3}
\ExplSyntaxOn
\cs_new_eq:NN \Repeat \prg_replicate:nn
\ExplSyntaxOff
%% From: https://tex.stackexchange.com/a/16192/4011
\usepackage{tikz}
\begin{document}
\begin{minipage}[t]{0.7\linewidth}
\begin{enumerate}[a),series=foo]
\item Item 1
\item \Repeat{30}{Some Text. }
\end{enumerate}
\end{minipage}
\raisebox{-\height}{
\begin{tikzpicture}
\draw (0,0) circle (0.15\linewidth);
\end{tikzpicture}
}
%\vspace*{1ex}
\begin{enumerate}[a),resume*=foo]
\item[]
\Repeat{30}{Rest of Item 2. }
\item Item 3
\end{enumerate}
\end{document}