章节标题下的文本没有空格

章节标题下的文本没有空格

我希望直接为节名下的所有文本/段落留出 1em 的间距,因为即使使用 \parindent 后也不会有任何变化。非常感谢您的帮助。

\documentclass{article}

%paragraph indentation
\setlength{\parindent}{1em} 

%paragraph spacing
\setlength{\parskip}{1em}

\begin{document}

\section{Test}
This is another paragraph, contains some text to test the paragraph interlining, paragraph indentation and some other features. Also, is easy to see how new paragraphs are defined by simply entering a double blank space.

This is another paragraph, contains some text to test the paragraph interlining, paragraph indentation and some other features. Also, is easy to see how new paragraphs are defined by simply entering a double blank space.

\end{document}

输出:

在此处输入图片描述

答案1

如果我正确理解了你的目标,我相信可以通过加载来实现先缩进包裹。

在此处输入图片描述

\documentclass{article}
\usepackage{indentfirst} % <-- new
\setlength{\parindent}{1em} 
\setlength{\parskip}{1em}

\begin{document}

\section{Test}

This is another paragraph, contains some text to test the paragraph interlining, paragraph indentation and some other features. Also, is easy to see how new paragraphs are defined by simply entering a double blank space.

This is another paragraph, contains some text to test the paragraph interlining, paragraph indentation and some other features. Also, is easy to see how new paragraphs are defined by simply entering a double blank space.

\end{document}

相关内容