如何在不使用 multicols 环境的情况下创建 2 列?

如何在不使用 multicols 环境的情况下创建 2 列?

我想在论文中间分两列写三行,但我不想使用multicols环境。我想从每一行开始,在第二列中以距离行首特定的距离进行书写。例如:

(beginning of the first line)Hello People          (beginning at the 10cm distance from the beginning of the line)Hello People

(beginning of the second line)Hello People          (beginning at the 10cm distance from the beginning of the line)Hello People

(beginning of the third line)Hello People          (beginning at the 10cm distance from the beginning of the line)Hello People

我用过\hspace,但问题是\hspace会根据第二列单词的末尾而不是第二列单词的开头来确定与行尾的距离。

答案1

像这样?(它采用了两个并排的minipage环境,第一个环境的宽度minipage设置为10cm。)

在此处输入图片描述

\documentclass{article}

\newlength\mylength % width of second minipage calculated as a residual
\setlength\mylength\textwidth
\addtolength\mylength{-10cm}

\begin{document}
\hrule\smallskip % just to illustrate width of textblock

\noindent
\begin{minipage}[t]{10cm}
\raggedright
Hello People.

Hello People.

Hello People.
\end{minipage}% no space
\begin{minipage}[t]{\mylength}
\raggedright
Hello People.

Hello People.

Hello People.
\end{minipage}

\end{document}

相关内容