如何删除段落第一行的缩进

如何删除段落第一行的缩进

我正在使用我们大学提供的模板。我读过并尝试过许多方法来删除段落第一行的缩进。

我有以下段落:

\paragraph{1. Number of Sides (n)\\}
For each iteration, every segment of the figure from the previous iteration 
will be converted to four segments in the following iteration. Since we begin 
with three sides, the formula for the number of sides in the Koch curve is

它打印:

  1. 边数 (n)

     对于每次迭代,上一次迭代中图形的每一段都将在下一次迭代中转换为四段。由于我们从三条边开始,因此科赫曲线的边数公式为

在第一行的开头留一个空格。

我不想要这个缩进,我试过了\noindent\setlength\parindent{0pt}但是没有用。

我试过了\textit,它没有缩进第一行,但它缩进了“1. 边数(n)”本身。

我无法使用,\subsubsection因为它是的子项\subsubsection

如果您有可以执行此操作的命令,我将不胜感激。

答案1

您可以尝试使用

在此处输入图片描述

\paragraph{1. Number of Sides (n)\\}
For each iteration, every segment of the figure from the previous iteration 
will be converted to four segments in the following iteration. Since we begin 
with three sides, the formula for the number of sides in the Koch curve is

\paragraph{1. Number of Sides (n)} \mbox{}\par\nobreak
\noindent For each iteration, every segment of the figure from the previous iteration 
will be converted to four segments in the following iteration. Since we begin 
with three sides, the formula for the number of sides in the Koch curve is

上述代码从技术上完成了由 开启的段落\paragraph,插入一个空白框并开始一个新\par图表。\nobreak确保段落标题和后续段落保持在分页符附近,同时\noindent确保段落没有缩进。

有更好的方法可以做到这一点,但我不确定你会在多大程度上使用它,以及在包方面你可能还有哪些其他限制。此外,手动编号章节标题(\paragraph是一个章节单位)很容易出错。

相关内容