admin 管理员组

文章数量: 1086019


2024年3月11日发(作者:可以制作表格的软件)

在LaTeX中,你可以使用``指令来插入一个空行。以下是一个

例子:

```latex

section{这是一个标题}

text here

begin{figure}[htbp]

centering

includegraphics[width=0.5textwidth]{example-image-a}

caption{这是一个图}

label{fig:example1}

end{figure}

[10pt] % 10pt的垂直距离

text here again

```

在上述代码中,`[10pt]`会在该位置插入一个空行,且与上一段

落的距离为10pt。你可以根据需要调整这个距离。

另一个插入空行的常见方式是在两个命令之间添加一个额外的

换行,例如:

```latex

section{这是一个标题}

text here

begin{figure}[htbp]

centering

includegraphics[width=0.5textwidth]{example-image-a}

caption{这是一个图}

label{fig:example1}

end{figure}

% 这是一个空行

text here again

```

在这个例子中,`% 这是一个空行`之前的文本和图形都出现在一

页上,而`% 这是一个空行`之后的文本出现在了新的一页上。


本文标签: 空行 插入 文本 表格 制作