首页>LaTeX>source

如果我有一个枚举,即类似下面的MwE

\documentclass{amsart}
\usepackage{enumerate}
\newtheorem{definition}{Definition}[section]
\begin{document}
    \begin{definition}
        \begin{enumerate}
            \item 
            \item
        \end{enumerate}
    \end{definition}
\end{document}

让"定义"所在的行为空的最佳方法是什么? 我的意思是我想留下一个空行,然后我想从第一个项目开始.目前我得到了这个:

最新回答
  • 2019-12-5
    1 #

    在此之后添加一些空白内容 \begin{definition} .这将强制将列表设置在新行上:

    \documentclass{amsart}
    \newtheorem{definition}{Definition}[section]
    \begin{document}
    \begin{definition}
      \mbox{}% ...or \leavevmode
      \begin{enumerate}
        \item
        \item
      \end{enumerate}
    \end{definition}
    \end{document}
    

  • 2019-12-5
    2 #

    更简单的解决方案是使用 \-   在 \begin{definition}之后   这迫使一条新线.这是一个MwE

    \documentclass{amsart}
        \newtheorem{definition}{Definition}[section]
        \begin{document}
            \begin{definition}\-        
            \begin{enumerate}
                    \item 
                    \item
                \end{enumerate}
            \end{definition}
    \end{document}
    

  • 定理前后的垂直空间和与thmtools的行缩进
  • LaTeX subfloats:将子图中的标题字体设置为与图相同