我应该使用 \\ 来结束一行或一个段落吗?

我应该使用 \\ 来结束一行或一个段落吗?

我对如何处理以下问题有些困惑。

我的论文中有很多文本,我想使用换行符和段落对其进行分组。

到目前为止,我一直使用\\这样的方法来结束一行并强制开始新的一行:

some text that is the end of the line want.\\
End than the next line starts at the line below. etc

完全不用担心。

但是,如果我想在段落结尾处有一些空白,则可以\\在我的“代码”中使用后跟白线。

这产生了所需的结果,但是我在编译时有很多未满的垂直框。A. 这与我的使用有关吗\\?B. 结束/开始一个段落的正确方法是什么?

我已经阅读过有关该\par命令的信息,但我不确定如何应用它......

我使用报告文档类并且正在处理一份 200 页的文档,所以我想把这件事做好。

我尝试在现有帖子中寻找答案,但没有成功。

答案1

在纯文本中,输入文件中的段落应该用空行分隔。要在输出中保留特定段落之间的空格,可以使用\smallskip\medskip\bigskip,或者替代项\smallbreak\medbreak\bigbreak,以鼓励在这些位置进行分页。

示例输出

\documentclass{article}

\begin{document}

Hello, here is some text without a meaning.  This text should show
what a printed text will look like at this place. If you read this
text, you will get no information. Really? Is there no information?
Is there a difference between this text and some nonsense like
‘‘Huardest gefburn’’? Kjift -- not at all! A blind text like this
gives you information about the selected font, how the letters are
written and an impression of the look.

Hello, here is some text without a meaning.  This text should show
what a printed text will look like at this place. If you read this
text, you will get no information. Really? Is there no information?
Is there a difference between this text and some nonsense like
‘‘Huardest gefburn’’? Kjift -- not at all! A blind text like this
gives you information about the selected font, how the letters are
written and an impression of the look.

\medbreak
Hello, here is some text without a meaning.  This text should show
what a printed text will look like at this place. If you read this
text, you will get no information. Really? Is there no information?
Is there a difference between this text and some nonsense like
‘‘Huardest gefburn’’? Kjift -- not at all! A blind text like this
gives you information about the selected font, how the letters are
written and an impression of the look.

\end{document}

如果您希望所有段落之间都有空格并且不缩进段落,那么您可以使用该parskip包:

parskip 输出示例

\documentclass{article}

\usepackage{parskip}

\begin{document}

Hello, here is some text without a meaning.  This text should show
what a printed text will look like at this place. If you read this
text, you will get no information. Really? Is there no information?
Is there a difference between this text and some nonsense like
‘‘Huardest gefburn’’? Kjift -- not at all! A blind text like this
gives you information about the selected font, how the letters are
written and an impression of the look.

Hello, here is some text without a meaning.  This text should show
what a printed text will look like at this place. If you read this
text, you will get no information. Really? Is there no information?
Is there a difference between this text and some nonsense like
‘‘Huardest gefburn’’? Kjift -- not at all! A blind text like this
gives you information about the selected font, how the letters are
written and an impression of the look.

\end{document}

在纯文本中使用\\它几乎总是错误的,参见何时使用 \par 以及何时使用 \\ 或空行

相关内容