LaTeX写论文,公式后段落取消缩进方法:\noindent

本文介绍了如何在LaTeX文档中插入公式时避免公式后的段落自动缩进问题,通过使用 oindent命令实现精确格式控制。作者展示了如何在`equation`环境中插入公式,并演示了如何编号和引用这些公式。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

在论文的段落中,需要插入一个公式,按道理公式后应该紧接着是段落的文本内容,但如果直接写的话,编译得到的PDF中呈现出来的却是开头缩进的样子

如果需要取消公式后面的段落缩进,可以使用命令

\noindent

该命令的作用是取消下一个段落的缩进,从而让公式后面的段落不缩进。具体的使用方法是在公式或者公式环境后面加上\noindent命令,如下所示:

The simple display equation example shown below uses the ``equation'' environment. To number the equations, use the $\backslash${\tt{label}} macro to create an identifier for the equation. LaTeX will automatically number the equation for you.
\begin{equation}
\label{deqn_ex1}
x = \sum_{i=0}^{n} 2{i} Q.
\end{equation}

\noindent is coded as follows:
\begin{verbatim}
\begin{equation}
\label{deqn_ex1}
x = \sum_{i=0}^{n} 2{i} Q.
\end{equation}
\end{verbatim}

To reference this equation in the text use the $\backslash${\tt{ref}} macro. 

在上面的例子中,\noindent命令被放置在公式后面的段落文字之前,确保该段落不会缩进。

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

sagima_sdu

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值