2行目の開始位置を調整する

2行目の開始位置を調整する

ここに画像の説明を入力してください

質問:理想的な行間隔を乱すことなく、2 行目を 1 行目の開始位置と正確に一致するようにプッシュするにはどうすればよいでしょうか?

私のMWEは次のとおりです:

\documentclass[12pt, a4paper]{article}
\usepackage[top=0.7 in,bottom=0.5 in,left=0.6 in,right=0.6 in]{geometry}
\usepackage[utf8]{inputenc}
\usepackage{amsmath}
\usepackage{amsfonts}
\usepackage{amssymb}
\usepackage{parskip}
%line spacing
\renewcommand{\baselinestretch}{1.10} 
%reduce top margin
\addtolength{\headsep}{-0.45cm}

\begin{document}
(1)~This is the first line. This is the first line. This is the first line. This is the first line. This is the first line. This is the first line.


\end{document} 

答え1

@moewe のコメントを補足すると、enumerate環境を使用して行に番号を付けることができます。これにより、テキストが自動的に整列されます。デフォルトでは、番号は などとして表示されます。1.番号の外観を変更するにはいくつかの方法があります。簡単な方法は、次のようにオプションを指定してパッケージ2.を使用することです。enumitemshortlabelshttps://tex.stackexchange.com/a/2294/[(1)]、環境の開始時にラベルを指定しますenumerate。MWE:

\documentclass[12pt, a4paper]{article}
\usepackage[top=0.7 in,bottom=0.5 in,left=0.6 in,right=0.6 in]{geometry}
\usepackage[utf8]{inputenc}
\usepackage{amsmath}
\usepackage{amsfonts}
\usepackage{amssymb}
\usepackage{parskip}
\usepackage[shortlabels]{enumitem}
%line spacing
\renewcommand{\baselinestretch}{1.10} 
%reduce top margin
\addtolength{\headsep}{-0.45cm}

\begin{document}
\begin{enumerate}[(1)]
\item This is the first line. This is the first line. This is the first line. This is the first line. This is the first line. This is the first line.
\item This is the second line.
\end{enumerate}

\end{document}

結果:

ここに画像の説明を入力してください

編集: インデントが必要ない場合は、環境leftmarginのパラメータを変更できますenumerate。設定すると\labelwidth、余白は数字が印刷されるのに十分な大きさになり、インデントはなくなります。ただし、ラベルの幅は印刷された数字よりもわずかに大きいため、通常のテキストとは少しずれているように見えます。これは必ずしも印刷上悪いわけではありませんが、必要に応じて、ラベル幅を手動で設定して数字をさらに左に移動できます。

MWE:

\blindtext
\begin{enumerate}[(1),leftmargin=\labelwidth]
\item This is the first line. This is the first line. This is the first line. This is the first line. This is the first line. This is the first line.
\item This is the second line.
\end{enumerate}
\begin{enumerate}[(1),labelwidth=7.6mm,leftmargin=\labelwidth]
\item This is the first line. This is the first line. This is the first line. This is the first line. This is the first line. This is the first line.
\item This is the second line.
\end{enumerate}

結果:

ここに画像の説明を入力してください

答え2

従来のリストよりもさらに詳細なものが必要な場合、または非常に簡略化された構文が必要な場合は、 がありますlinguex。以下の例に示すように、項目と番号付けされていない段落の間に 1 行以上の空白行があるかどうかは重要であり、LaTeX ドキュメントのほとんどの状況では空白行の数 (= \par) は無関係であることに注意してください。

ムウェ

\documentclass{book}
\usepackage{linguex}
\usepackage{lipsum} % for nice dummy text (always "This is the first line" is boring ...)

\begin{document}

\lipsum[1][1-2]

\ex. \lipsum[1][3-4]

\ex. \lipsum[1][5-6]

\lipsum[6][1-3]

\ex. \lipsum[1][7-9]


\lipsum[2][1-3]

\ex. \lipsum[3][1-3]

\ex. \lipsum[4][1-3]

\lipsum[5][1-4]

\end{document}

関連情報