1.简介

This package is essentially a replacement - partial or total - for the LATEX macros related with sections - namely titles, headers and contents. The goal is to provide new features unavailable in current LATEX; if you just want a more friendly interface than that of standard LATEX but without changing the way LATEX works you may consider using fancyhdr, by Piet van Oostrum, sectsty, by Rowland McDonnell, and tocloft, by Peter Wilson, which you can make pretty things with.
这个宏包本质上是为了部分或全部替换LATEX中与“章节”相关的宏包,包括:标题、页眉和内容。宏包的目的是提供现有 LATEX 不具备的新特性;如果你只是需要一个比标准 LATEX 更友好的接口,同时又不想改变 LATEX 的工作方式,那么你可以考虑使用 Piet van Oostrum 的 fancyhdr宏包, Rowland McDonnellis的sectsty宏包,以及 Peter Wilson 的tocloft宏包,使用这些宏包,你可以产生相当漂亮的文档[1]
Some of the new features provided are:
本宏包的一些新特性包括:

  • Different classes and "shapes" of titles, with tools for very fancy formats. You can define different formats for left and right pages, or numbered and unnumbered titles, measure the width of the title, add a new section level, use graphics, and many more. The Appendix shows a good deal of examples, so jump forward right now!
    不同类别和“形状”的标题,以及精美的格式工具。您可以为左侧和右侧页面定义不同的格式、为标题加上或去除编号、测量标题的宽度、添加新的章节级别、使用图形……附录展示了大量的例子,不妨现在就欣赏一下!
  • Headers and footers defined with no ...mark intermediates, and perhaps containing top, first and bot marks at the same time. Top marks correctly synchronized with titles, without incompatibilities with the float mechanism. Decorative elements easily added, including picture environments.
    不需要使用形如 ...mark 的中间形式来定义页眉和页脚以及顶部、首条和底部的标注。顶部标记可以与标题正确同步,而且不会和浮动体结构产生冲突。可以很轻松的添加装饰元素,甚至是图片环境。
  • Pretty free form contents, with the possibility of grouping entries of different levels in a paragraph or changing the format of entries in the middle of a document.
    形式自由的内容,可以将段落中不同级别的条目分组或更改文档中间的条目格式。

Titlesec works with the standard classes and with many others, including the AMS ones, and it runs smoothly with hyperref[2]. Unfortunately, it is not compatible with memoir, which provides its own tools with a limited subset of the features available in titlesec.
Titlesec与标准文档类和许多其他类(包括AMS类)一起工作,它与hyperref宏包无缝结合。不幸的是,它与memoir宏包不兼容,后者提供了自己的工具,但Titlesec中提供的功能有限。
As usual, load the package in the standard way with \usepackage. Then, redefine the sectioning commands with the simple, predefined settings (see section \Quick Reference") or with the provided commands if you want more elaborate formats (see section \Advanced Interface.") In the latter case, you only need to redefine the commands you’ll use. Both methods are available at the same time, but because \part is usually implemented in a non-standard way, it remains untouched by the simple settings and should be changed with the help of the \Advanced Interface."
通常,可以按照标准的方式加载这个宏包,即使用\usepackage命令。然后,使用简单的预定义设置(请参照 “快速指南”)重新定义节命令,或者使用提供的命令来定义你需要的更加详细的格式(参照 “高级接口”)。在第二种情况下,你只需要重新定义你要使用的命令。两种方法可以同时使用,但是因为 \part通常是以一种非标准的方式实现的,它不会受到简单设置的影响,如果需要,可以借助于 “高级接口” 来进行调整。


  1. Since the sectioning commands are rewritten, their behaviour could be somewhat different in some cases.

  2. However, be aware the AMS classes reimplement the original internal commands. These changes will be lost here. The compatibility with hyperref has been tested with dvips, dvipdfm and pdftex but it is an unsupported feature. Please, check your version of hyperref is compatible with titlesec.

©著作权归作者所有,转载或内容合作请联系作者
  • 序言:七十年代末,一起剥皮案震惊了整个滨河市,随后出现的几起案子,更是在滨河造成了极大的恐慌,老刑警刘岩,带你破解...
    沈念sama阅读 219,539评论 6 508
  • 序言:滨河连续发生了三起死亡事件,死亡现场离奇诡异,居然都是意外死亡,警方通过查阅死者的电脑和手机,发现死者居然都...
    沈念sama阅读 93,594评论 3 396
  • 文/潘晓璐 我一进店门,熙熙楼的掌柜王于贵愁眉苦脸地迎上来,“玉大人,你说我怎么就摊上这事。” “怎么了?”我有些...
    开封第一讲书人阅读 165,871评论 0 356
  • 文/不坏的土叔 我叫张陵,是天一观的道长。 经常有香客问我,道长,这世上最难降的妖魔是什么? 我笑而不...
    开封第一讲书人阅读 58,963评论 1 295
  • 正文 为了忘掉前任,我火速办了婚礼,结果婚礼上,老公的妹妹穿的比我还像新娘。我一直安慰自己,他们只是感情好,可当我...
    茶点故事阅读 67,984评论 6 393
  • 文/花漫 我一把揭开白布。 她就那样静静地躺着,像睡着了一般。 火红的嫁衣衬着肌肤如雪。 梳的纹丝不乱的头发上,一...
    开封第一讲书人阅读 51,763评论 1 307
  • 那天,我揣着相机与录音,去河边找鬼。 笑死,一个胖子当着我的面吹牛,可吹牛的内容都是我干的。 我是一名探鬼主播,决...
    沈念sama阅读 40,468评论 3 420
  • 文/苍兰香墨 我猛地睁开眼,长吁一口气:“原来是场噩梦啊……” “哼!你这毒妇竟也来了?” 一声冷哼从身侧响起,我...
    开封第一讲书人阅读 39,357评论 0 276
  • 序言:老挝万荣一对情侣失踪,失踪者是张志新(化名)和其女友刘颖,没想到半个月后,有当地人在树林里发现了一具尸体,经...
    沈念sama阅读 45,850评论 1 317
  • 正文 独居荒郊野岭守林人离奇死亡,尸身上长有42处带血的脓包…… 初始之章·张勋 以下内容为张勋视角 年9月15日...
    茶点故事阅读 38,002评论 3 338
  • 正文 我和宋清朗相恋三年,在试婚纱的时候发现自己被绿了。 大学时的朋友给我发了我未婚夫和他白月光在一起吃饭的照片。...
    茶点故事阅读 40,144评论 1 351
  • 序言:一个原本活蹦乱跳的男人离奇死亡,死状恐怖,灵堂内的尸体忽然破棺而出,到底是诈尸还是另有隐情,我是刑警宁泽,带...
    沈念sama阅读 35,823评论 5 346
  • 正文 年R本政府宣布,位于F岛的核电站,受9级特大地震影响,放射性物质发生泄漏。R本人自食恶果不足惜,却给世界环境...
    茶点故事阅读 41,483评论 3 331
  • 文/蒙蒙 一、第九天 我趴在偏房一处隐蔽的房顶上张望。 院中可真热闹,春花似锦、人声如沸。这庄子的主人今日做“春日...
    开封第一讲书人阅读 32,026评论 0 22
  • 文/苍兰香墨 我抬头看了看天上的太阳。三九已至,却和暖如春,着一层夹袄步出监牢的瞬间,已是汗流浃背。 一阵脚步声响...
    开封第一讲书人阅读 33,150评论 1 272
  • 我被黑心中介骗来泰国打工, 没想到刚下飞机就差点儿被人妖公主榨干…… 1. 我叫王不留,地道东北人。 一个月前我还...
    沈念sama阅读 48,415评论 3 373
  • 正文 我出身青楼,却偏偏与公主长得像,于是被迫代替她去往敌国和亲。 传闻我的和亲对象是个残疾皇子,可洞房花烛夜当晚...
    茶点故事阅读 45,092评论 2 355

推荐阅读更多精彩内容