如何在项目列表后使用`\newline`?

如何在项目列表后使用`\newline`?

具体来说,这就是我正在尝试做的事情:

\documentclass{article}



\begin{document}
\begin{itemize}
    \item This
    \item That
    \item Where
\end{itemize}
%if I put \newline or \\ here it does not work. Why? 
I am doing it here to test this.
\end{document}

在项目列表结束的地方,我想添加一些行距,但两者都不起作用\newline\\这是为什么?

答案1

基本上,问题是\\结束了一行,但是在之后itemize没有可以结束的行。

针对此类情况,我有一个非常简单的解决方案,即添加一个空格,然后添加换行符,这样就形成了一个“假行”。如下所示:

\begin{itemize}
  \item one
  \item two
\end{itemize}
\  \\

答案2

添加“空行”的正确方法是插入一些水平空间。

插入\bigskip你有相应的空间:

\begin{itemize}
    \item This
    \item That
    \item Where
\end{itemize}
\bigskip
I am doing it here to test this.

如果您还想开始一个新的(缩进的)段落,请添加一个空白行:

\begin{itemize}
    \item This
    \item That
    \item Where
\end{itemize}
\bigskip

I am doing it here to test this.

梅威瑟:

\documentclass{article}

\begin{document}
\begin{itemize}
    \item This
    \item That
    \item Where
\end{itemize}
\bigskip
I am doing it here to test this.

\begin{itemize}
    \item This
    \item That
    \item Where
\end{itemize}
\bigskip

I am doing it here to test this.
\end{document} 

输出:

在此处输入图片描述

答案3

以下是一些带解释的示例:

\documentclass{article}
\begin{document}
\begin{itemize}
    \item This
    \item That
    \item Where
\end{itemize}
I am doing it here to test this.

\begin{itemize}
    \item This
    \item That
    \item Where
\end{itemize}
Putting \verb|\newline| or \verb|\\| here will cause an error that there is `no line here to break`. This is because a new line has already been started by the ending of the list. Putting the same command here\\
will work because this is in the middle of a line.

\begin{itemize}
    \item This
    \item That
    \item Where
\end{itemize}

One way to get extra horizontal space is to start a new paragraph.

\begin{itemize}
    \item But you
    \item may \emph{just}
    \item want space\\
\end{itemize}
without a paragraph break.

\begin{itemize}
    \item If you
    \item want
    \item a little\\[-.5em]
\end{itemize}
less space
\begin{itemize}
    \item or you
    \item want
    \item a lot\\[5em]
\end{itemize}
more.

\end{document}

输出:

空间主题的变奏

相关内容