有没有办法根据这个例子修改每个项目的标签?
\documentclass[8pt,a4paper,dvipsnames]{article}
\usepackage[utf8]{inputenc}
\usepackage{enumitem}
\begin{document}
\begin{enumerate}[label=(\alph*)]
\item{One.} Here I would like keep both parentheses.
\item{Two.}
\begin{enumerate}[label*=(\roman*)]
\item Two.one; here, However, I would like remove parentheses between 'b' and 'i'
\item Two.two
\end{enumerate}
\end{enumerate}
\end{document}
答案1
除了使用之外,label*
您还可以使用
[label=(\alph{enumi}\,\roman*)]
笔记:
\,
我在b
和之间添加了一个小空间i
,但您可以根据需要进行调整。
代码:
\documentclass{article}
\usepackage{enumitem}
\begin{document}
\begin{enumerate}[label=(\alph*)]
\item{One.} Here I would like keep both parentheses.
\item{Two.}
\begin{enumerate}[label=(\alph{enumi}\,\roman*)]
\item Two.one; here, However, I would like remove parentheses between 'b' and 'i'
\item Two.two
\end{enumerate}
\end{enumerate}
\end{document}