删除单词之间的空格

删除单词之间的空格

有人可以帮我解决这个问题吗?当我在 TexMaker 中输入此命令时:

\hspace{15pt}Two things are infinite: the universe and human stupidity; and I'm not sure about the universe.

在pdf中是这样写的:在此处输入图片描述

我怎样才能删除这些空格?

答案1

你必须有相当于

\documentclass{article}

\begin{document}

\setlength\parfillskip{0pt}

\hspace{15pt}Two things are infinite: the universe and human stupidity; 
and I'm not sure about the universe.
\end{document}

这使得

在此处输入图片描述

如果你删除\hspace并删除指定段落\parfillskip最后一行必须到达右边距的设置,那么你会得到

\documentclass{article}

\begin{document}

Two things are infinite: the universe and human stupidity;
and I'm not sure about the universe.
\end{document}

在此处输入图片描述

答案2

\documentclass{article}

\begin{document}

Two things are infinite: the universe and human stupidity;
and I'm not sure about the universe.
\end{document}

相关内容