段落の最初の行のインデントを削除する方法

段落の最初の行のインデントを削除する方法

私は大学から提供されたテンプレートを使用しています。段落の最初の行からインデントを削除する方法をいろいろ読んで試しました。

以下にその段落を挙げます。

\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)

     各反復において、前の反復の図形の各セグメントは、次の反復で4つのセグメントに変換されます。3辺から始まるため、コッホ曲線の辺の数の式は次のようになります。

最初の行の先頭にスペースを残します。

このインデントは不要です。試してみましたが\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セクション単位) に手動で番号を付ける方法は、エラーが発生しやすくなります。

関連情報