如何在行首插入两个空格

如何在行首插入两个空格

我想在行首插入两个空格。我该怎么做?我想要这样的

This is first line
  This is second line
This is third line
This is fourth line

答案1

如果希望空格与字符宽度一致Th,请执行以下操作:

\documentclass{article}
\setlength{\parindent}{0pt}
\begin{document}
This is first line\\
\phantom{Th}This is second line\\
This is third line\\
This is fourth line
\end{document}

在此处输入图片描述

我不明白你为什么要这样做,但这是一种方法。

或者你可以使用\hspace

\documentclass{article}
\setlength{\parindent}{0pt}
\begin{document}
This is first line

\hspace{1em}This is second line

This is third line

This is fourth line
\end{document}

在此处输入图片描述

相关内容