考虑以下代码:
\documentclass[a4paper,10pt]{memoir}
\usepackage{enumitem}
\usepackage{lipsum}
\usepackage{xcolor}
\begin{document}
\chapter{Chapter1}
\section{Section1.1}
\lipsum[1]
\begin{enumerate}
\item item 1
{\color{blue!60} Next line for explanation}
\item item 1
{\color{blue!60} Next line for explanation}
\item item 1
{\color{blue!60} Next line for explanation}
\end{enumerate}
\subsection{Subsection1.1.1}
\lipsum[1]
\begin{enumerate}
\item item 1
Next line for explanation 1
\item item 2
Next line for explanation 2
\item item 3
Next line for explanation 3
\end{enumerate}
\chapter{Chapter2}
\section{Section2.1}
\lipsum[1]
\begin{enumerate}
\item item 1
Next line for explanation 1
\item item 2
Next line for explanation 2
\item item 3
Next line for explanation 3
\end{enumerate}
\section{Section2.2}
\lipsum[1]
\begin{enumerate}
\item item 1
Next line for explanation 1
\item item 2
Next line for explanation 2
\item item 3
Next line for explanation 3
\end{enumerate}
\subsection{Subsection2.2.1}
\lipsum[1]
\begin{enumerate}
\item item 1
Next line for explanation 1
\item item 2
Next line for explanation 2
\item item 3
Next line for explanation 3
\end{enumerate}
\chapter{Chapter3}
\section{Section3.1}
\lipsum[1]
\begin{enumerate}
\item item 1
Next line for explanation 1
\item item 2
Next line for explanation 2
\item item 3
Next line for explanation 3
\end{enumerate}
\subsection{Subsection3.1.1}
\lipsum[1]
\begin{enumerate}
\item item 1
Next line for explanation 1
\item item 2
Next line for explanation 2
\item item 3
Next line for explanation 3
\end{enumerate}
\end{document}
我将下一行(的项目enumitem
)涂成蓝色以显示一些解释,如图所示。
对于列表来说没问题。但是我的文档中有很多列表,正如您在代码中看到的那样。我如何使用宏或命令自动执行此操作来制作(颜色为蓝色)下一行enumitem
可以轻松管理。
说清楚点,我希望所有的线条Next line for explanation 1/2/3
都是蓝色的。