楼主: oliyiyi
12960 421

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

版主

泰斗

0%

还不是VIP/贵宾

-

TA的文库  其他...

计量文库

威望
7
论坛币
271996 个
通用积分
31269.4471
学术水平
1435 点
热心指数
1554 点
信用等级
1345 点
经验
383775 点
帖子
9598
精华
66
在线时间
5470 小时
注册时间
2007-5-21
最后登录
2024-4-30

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

+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 |只看作者 |坛友微信交流群
给楼主点个赞

使用道具

不错不错,谢谢楼主分享

使用道具

地板
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
拉您入交流群

京ICP备16021002-2号 京B2-20170662号 京公网安备 11010802022788号 论坛法律顾问:王进律师 知识产权保护声明   免责及隐私声明

GMT+8, 2024-5-4 23:19