这个问题是配对项目以在两列中显示
我有代码
\documentclass{book}
\usepackage{multienum}
\begin{document}
\thispagestyle{empty}
\begin{multienumerate}
\mitemxx{This is the first sentence.}{This is the second sentence.}
\mitemxx{This is the third sentence.}{And this is the fourth sentence.}
\mitemxx{This is the fifth sentence.}{This is the last sentence in the MWE code.}
\end{multienumerate}
\end{document}
产生输出
我如何 (i) 删除标签 1.、2.、...、6.?(我知道使用enumitem
可以做到这一点\item[]
)但在这里行不通。此外,(ii) 我如何将标签修改为其他内容,例如 I.、II.、...III.?
答案1
要获得罗马数字,请使用
\renewcommand{\regularlisti}{\setcounter{multienumi}{0}%
\renewcommand{\labelenumi}{\addtocounter{multienumi}{1}\Roman{multienumi}.}}
要抑制项目编号,请插入
\renewcommand{\regularlisti}{\renewcommand{\labelenumi}{}}
\documentclass{book}
\usepackage{multienum}
\renewcommand{\regularlisti}{\setcounter{multienumi}{0}%
\renewcommand{\labelenumi}{\addtocounter{multienumi}{1}\Roman{multienumi}.}}
\begin{document}
\thispagestyle{empty}
\begin{multienumerate}
\mitemxx{This is the first sentence.}{This is the second sentence.}
\mitemxx{This is the third sentence.}{And this is the fourth sentence.}
\mitemxx{This is the fifth sentence.}{This is the last sentence in the MWE code.}
\end{multienumerate}
\bigskip
\renewcommand{\regularlisti}{\renewcommand{\labelenumi}{}}
\begin{multienumerate}
\mitemxx{This is the first sentence.}{This is the second sentence.}
\mitemxx{This is the third sentence.}{And this is the fourth sentence.}
\mitemxx{This is the fifth sentence.}{This is the last sentence in the MWE code.}
\end{multienumerate}
\end{document}
答案2
使用该task
软件包您可以做到这一点。
\documentclass[12pt]{book}
\usepackage{tasks}
\begin{document}
\begin{tasks}[label-width=4ex](2)%
\task This is the first sentence.
\task This is the second sentence.
\task This is the third sentence.
\task And this is the fourth sentence.
\task This is the fifth sentence.
\task This is the last sentence in the MWE code.
\end{tasks}
\begin{tasks}[label=(\roman*),label-width=4ex,item-indent=3em](2)%
\task This is the first sentence.
\task This is the second sentence.
\task This is the third sentence.
\task And this is the fourth sentence.
\task This is the fifth sentence.
\task This is the last sentence in the MWE code.
\end{tasks}
\begin{tasks}[label=\Roman*.,label-width=4ex,item-indent=3em](2)%
\task This is the first sentence.
\task This is the second sentence.
\task This is the third sentence.
\task And this is the fourth sentence.
\task This is the fifth sentence.
\task This is the last sentence in the MWE code.
\end{tasks}
\begin{tasks}[label=(\arabic*),label-width=4ex,item-indent=3em](2)%
\task This is the first sentence.
\task This is the second sentence.
\task This is the third sentence.
\task And this is the fourth sentence.
\task This is the fifth sentence.
\task This is the last sentence in the MWE code.
\end{tasks}
\begin{tasks}[label,label-width=4ex,item-indent=3em](2)%
\task This is the first sentence.
\task This is the second sentence.
\task This is the third sentence.
\task And this is the fourth sentence.
\task This is the fifth sentence.
\task This is the last sentence in the MWE code.
\end{tasks}
\end{document}
答案3
以下是满足两个查询的方法tasks
:
\documentclass{book}
\usepackage{multienum}
\usepackage{tasks}
\begin{document}
\thispagestyle{empty}
\begin{tasks}[label=\relax, label-offset=0.5em](2)
\task This is the first sentence.
\task This is the second sentence
\task This is the third sentence.
\task And this is the fourth sentence.
\task This is the fifth sentence.
\task This is the last sentence in the MWE code.
\end{tasks}
\begin{tasks}[label=\Roman*), label-offset=0.5em](2)
\task This is the first sentence.
\task This is the second sentence
\task This is the third sentence.
\task And this is the fourth sentence.
\task This is the fifth sentence.
\task This is the last sentence in the MWE code.
\end{tasks}
\end{document}