欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页

LaTeX段落缩进简介

程序员文章站 2022-06-01 11:34:17
...

首先,以下面示例开始。

\documentclass[12pt]{article}
% \usepackage{indentfirst} 
\begin{document}
\section{Paragraph Indentation 1}
LaTeX is a high-quality typesetting system; it includes features 
designed for the production of technical and scientific documentation. 
LaTeX is the de facto standard for the communication and publication of 
scientific documents. LaTeX is available as free software.

LaTeX is a high-quality typesetting system.

LaTeX is a high-quality typesetting system.

\section{Paragraph Indention 2}
\setlength\parindent{1em}

LaTeX is a high-quality typesetting system; it includes features 
designed for the production of technical and scientific documentation. 
LaTeX is the de facto standard for the communication and publication of 
scientific documents. LaTeX is available as free software.

\setlength\parindent{5em}
\noindent LaTeX is a high-quality typesetting system.

LaTeX is a high-quality typesetting system.

LaTeX is a high-quality typesetting system.

\setlength\parindent{3em}
LaTeX is a high-quality typesetting system.

\setlength\parindent{0em}
LaTeX is a high-quality typesetting system.

\end{document}

LaTeX段落缩进简介
缩进:在文章的段落中,为了让段落更加突出,将段落的首行向右移动,留出的一块空白。
根据上面的示例,我们可以有以下几个结论:

  1. 除每章节的第一段,所有的段落默认都有缩进;
  2. 通过\setlength\parindent{5em}可以设置段落的缩进距离;
  3. 以上的命令会影响其后所有的段落;
  4. 若要第一行也要缩进,可以使用\usepackage{indentfirst}
相关标签: Latex 段落缩进