![描述环境中 itemize/enumerate 环境的缩进问题](https://linux22.com/image/329351/%E6%8F%8F%E8%BF%B0%E7%8E%AF%E5%A2%83%E4%B8%AD%20itemize%2Fenumerate%20%E7%8E%AF%E5%A2%83%E7%9A%84%E7%BC%A9%E8%BF%9B%E9%97%AE%E9%A2%98.png)
我在描述环境中有一个逐项环境,它为第一个项目提供了更多的缩进。
\documentclass[12pt]{article}
\begin{document}
\section{Acronym rules}
\begin{description}
\item [KISS] Keep it simple and stupid.
\item [SIPI]
\begin{itemize}
\item Simple over Easy
\item Idea over Facts
\item Process over Product
\item Internalization over Experience
\end{itemize}
\end{description}
\begin{description}
\item [Feynman's problem solving technique]
\begin{enumerate}
\item Write down the problem.
\item Solve the problem.
\item Write down the answer.
\end{enumerate}
\end{description}
\end{document}
我该如何修复此问题?
答案1
解决方案是enumitem
。对于第二个描述,对我来说似乎没问题,除非您想itemize
从下一行开始。:
\documentclass[12pt]{article}
\usepackage{enumitem}
\begin{document}
\section{Acronym rules}
\begin{description}
\item [KISS] Keep it simple and stupid.
\item [SIPI]
\begin{itemize}[wide=0.6em, before=\leavevmode\vspace{\dimexpr-2\topsep-\baselineskip\relax} ]
\item Simple over Easy
\item Idea over Facts
\item Process over Product
\item Internalization over Experience
\end{itemize}
\end{description}
\begin{description}
\item [Feynman's problem solving technique]
\begin{enumerate}
\item Write down the problem.
\item Solve the problem.
\item Write down the answer.
\end{enumerate}
\end{description}
\end{document}