描述环境中 itemize/enumerate 环境的缩进问题

描述环境中 itemize/enumerate 环境的缩进问题

我在描述环境中有一个逐项环境,它为第一个项目提供了更多的缩进。

\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} 

在此处输入图片描述

相关内容