使用该enumitem
包,是否可以自定义乳胶列表,如下所示?
答案1
最简单的方法是:
\documentclass[12pt]{article}
\usepackage{ebgaramond}
\usepackage[shortlabels]{enumitem}
\begin{document}
\begin{enumerate}[labelwidth = 0.3\linewidth, labelsep =1.5em, leftmargin = \labelwidth]
\item[Nonrestrictive: ] Grey, a popular colour this season, is not becoming me.
\item[Restrictive: ] The colour grey is not becoming me.
\item[Nonrestrictive: ] My archaeology teacher, who has spent years in Greece, claims that Δελφοί is the most interesting site.
\item[Restrictive: ] An archaeologist who has spent years in Greece claims that Δελφοί is the most interesting site.
\end{enumerate}
\end{document}
(出于一些琐碎的原因,此代码需要用 XeLaTeX 或 LuaLaTeX 进行编译)。
答案2
这里有一个paracol
执行:
\documentclass{article}
\usepackage{ebgaramond,paracol,lipsum}
\let\oldparacol\paracol
\renewcommand{\paracol}{%
\renewcommand{\Nonrestrictive}{%
\leavevmode\hfill Nonrestrictive:\switchcolumn\noindent% First use
\renewcommand{\Nonrestrictive}{%
\par\medskip\switchcolumn*\leavevmode\hfill Nonrestrictive: \switchcolumn\noindent}}% Subsequent use
\oldparacol}
\newcommand{\Nonrestrictive}{}
\newcommand{\Restrictive}{%
\par\medskip\switchcolumn*\leavevmode\hfill Restrictive: \switchcolumn\noindent}
\columnratio{0.3}
\begin{document}
\lipsum[1]
\begin{paracol}{2}
\Nonrestrictive
Gray, a popular colour for this season, is not becoming to me.
\Restrictive
The gray colour is not becoming to me.
\Nonrestrictive
My archaeology teacher, who has spent years in Greece, claims Delphi
is the most interesting site.
\Restrictive
An archaeologist who has spent years in Greece claims that Delphi
is the most interesting site.
\end{paracol}
\lipsum[3]
\end{document}
可以通过更改 来调整列间隙的位置\columnratio
(当前设置为 30%/70%)。使用宏\Nonrestrictive
和可以在列之间切换\Restrictive
。已尝试使用类似的用法,但第一次使用 时定义不同\Nonrestrictive
。