全部版块 我的主页
论坛 计量经济学与统计论坛 五区 计量经济学与统计软件 LATEX论坛
17981 421
2016-04-04

By default, LATEX does not indent the first paragraph after a section command, but will indent all subsequent paragraphs.

You can, of course, add \indent to the start of each first paragraph. But that gets rather tedious after a while, and you might miss it if e.g. some time later, you addanother paragraph immediately after the sectioning command.

Fortunately, the indentfirst package will do this automatically for you — rejoice!

If you need to change the indent amount (for all paragraphs), you can set the\parindent length:

复制代码


The inevitable next question: “What if I need to have some space between the paragraphs?”

Rule: Please don’t use \\\\ to achieve “space between paragraphs”. Please. Don’t.

\\ is for line breaks. Paragraph breaks in LATEX are done by either leaving a blank line in the source code, or by using \par. Line breaks and paragraph breaks are two very, very distinct concepts in typesetting, and are handled differently in LATEX.

So the easiest way to achieve this is simply by writing \usepackage{parskip}. This avoids modifying the \parskip length directly, because \parskip has consequences for many other constructs, e.g. itemize and enumerate lists.

If you happen to be using one of the Koma-Script document classes, you may get a warning message when you try to load parskip. In that case, just pass parskip as a document class option, e.g. \documentclass[parskip]{scrbook}.

If memoir is the document class in use instead, you can write \nonzeroparskip or\abnormalparskip{\baselineskip}.

Just take note: it’s usually considered redundant to have both non-zero paragraph spacing and paragraph indents, so all paragraph indents are suppressed whenparskip is loaded. Having said that, if you do need the paragraphs to be indented as well (university thesis requirements), use the \setlength{\parindent}{2em} to force this.


二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

全部回复
2016-4-4 07:22:00
二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

2016-4-4 07:25:06
谢谢楼主
二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

2016-4-4 07:36:36
给楼主点个赞
二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

2016-4-4 07:38:17
不错不错,谢谢楼主分享
二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

2016-4-4 07:42:10
二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

点击查看更多内容…
相关推荐
栏目导航
热门文章
推荐文章

说点什么

分享

扫码加好友,拉您进群
各岗位、行业、专业交流群