楼主: oliyiyi
18650 421

【回复有奖】latex:Paragraph indents and spacing [推广有奖]

版主

已卖:2994份资源

泰斗

1%

还不是VIP/贵宾

-

TA的文库  其他...

计量文库

威望
7
论坛币
84105 个
通用积分
31671.0967
学术水平
1454 点
热心指数
1573 点
信用等级
1364 点
经验
384134 点
帖子
9629
精华
66
在线时间
5508 小时
注册时间
2007-5-21
最后登录
2025-7-8

初级学术勋章 初级热心勋章 初级信用勋章 中级信用勋章 中级学术勋章 中级热心勋章 高级热心勋章 高级学术勋章 高级信用勋章 特级热心勋章 特级学术勋章 特级信用勋章

楼主
oliyiyi 发表于 2016-4-4 07:13:49 |AI写论文

+2 论坛币
k人 参与回答

经管之家送您一份

应届毕业生专属福利!

求职就业群
赵安豆老师微信:zhaoandou666

经管之家联合CDA

送您一个全额奖学金名额~ !

感谢您参与论坛问题回答

经管之家送您两个论坛币!

+2 论坛币

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:

  1. \setlength{\parindent}{2em}
复制代码


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.


二维码

扫码加我 拉你入群

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

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

关键词:paragraph spacing GRAPH LaTeX SPAC subsequent default command package tedious

缺少币币的网友请访问有奖回帖集合
https://bbs.pinggu.org/thread-3990750-1-1.html

沙发
richardgu26 发表于 2016-4-4 07:22:00

藤椅
benji427 在职认证  发表于 2016-4-4 07:25:06
谢谢楼主

板凳
benji427 在职认证  发表于 2016-4-4 07:36:36
给楼主点个赞

报纸
陈信研究员 发表于 2016-4-4 07:38:17
不错不错,谢谢楼主分享

地板
pzh_hzp 发表于 2016-4-4 07:42:10

7
pzh_hzp 发表于 2016-4-4 07:46:22

8
pzh_hzp 发表于 2016-4-4 07:47:22

9
pzh_hzp 发表于 2016-4-4 07:48:03

10
pzh_hzp 发表于 2016-4-4 07:54:13

您需要登录后才可以回帖 登录 | 我要注册

本版微信群
加好友,备注jltj
拉您入交流群
GMT+8, 2025-12-26 05:02