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.
這個宏包本質(zhì)上是為了部分或全部替換LATEX中與“章節(jié)”相關(guān)的宏包会钝,包括:標題、頁眉和內(nèi)容藻懒。宏包的目的是提供現(xiàn)有 LATEX 不具備的新特性镀琉;如果你只是需要一個比標準 LATEX 更友好的接口,同時又不想改變 LATEX 的工作方式院水,那么你可以考慮使用 Piet van Oostrum 的 fancyhdr宏包腊徙, Rowland McDonnellis的sectsty宏包,以及 Peter Wilson 的tocloft宏包檬某,使用這些宏包撬腾,你可以產(chǎn)生相當漂亮的文檔[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!
    不同類別和“形狀”的標題恢恼,以及精美的格式工具民傻。您可以為左側(cè)和右側(cè)頁面定義不同的格式、為標題加上或去除編號场斑、測量標題的寬度漓踢、添加新的章節(jié)級別、使用圖形……附錄展示了大量的例子漏隐,不妨現(xiàn)在就欣賞一下喧半!
  • 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 的中間形式來定義頁眉和頁腳以及頂部、首條和底部的標注青责。頂部標記可以與標題正確同步挺据,而且不會和浮動體結(jié)構(gòu)產(chǎn)生沖突取具。可以很輕松的添加裝飾元素吴菠,甚至是圖片環(huán)境者填。
  • 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.
    形式自由的內(nèi)容,可以將段落中不同級別的條目分組或更改文檔中間的條目格式做葵。

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宏包無縫結(jié)合。不幸的是酿矢,它與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命令策肝。然后肛捍,使用簡單的預定義設(shè)置(請參照 “快速指南”)重新定義節(jié)命令,或者使用提供的命令來定義你需要的更加詳細的格式(參照 “高級接口”)之众。在第二種情況下拙毫,你只需要重新定義你要使用的命令。兩種方法可以同時使用棺禾,但是因為 \part通常是以一種非標準的方式實現(xiàn)的缀蹄,它不會受到簡單設(shè)置的影響,如果需要膘婶,可以借助于 “高級接口” 來進行調(diào)整缺前。


  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. ?

?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請聯(lián)系作者
  • 序言:七十年代末,一起剝皮案震驚了整個濱河市悬襟,隨后出現(xiàn)的幾起案子衅码,更是在濱河造成了極大的恐慌,老刑警劉巖古胆,帶你破解...
    沈念sama閱讀 216,372評論 6 498
  • 序言:濱河連續(xù)發(fā)生了三起死亡事件肆良,死亡現(xiàn)場離奇詭異,居然都是意外死亡逸绎,警方通過查閱死者的電腦和手機,發(fā)現(xiàn)死者居然都...
    沈念sama閱讀 92,368評論 3 392
  • 文/潘曉璐 我一進店門夭谤,熙熙樓的掌柜王于貴愁眉苦臉地迎上來棺牧,“玉大人,你說我怎么就攤上這事朗儒〖粘耍” “怎么了参淹?”我有些...
    開封第一講書人閱讀 162,415評論 0 353
  • 文/不壞的土叔 我叫張陵,是天一觀的道長乏悄。 經(jīng)常有香客問我浙值,道長,這世上最難降的妖魔是什么檩小? 我笑而不...
    開封第一講書人閱讀 58,157評論 1 292
  • 正文 為了忘掉前任开呐,我火速辦了婚禮,結(jié)果婚禮上规求,老公的妹妹穿的比我還像新娘筐付。我一直安慰自己,他們只是感情好阻肿,可當我...
    茶點故事閱讀 67,171評論 6 388
  • 文/花漫 我一把揭開白布瓦戚。 她就那樣靜靜地躺著,像睡著了一般丛塌。 火紅的嫁衣襯著肌膚如雪较解。 梳的紋絲不亂的頭發(fā)上,一...
    開封第一講書人閱讀 51,125評論 1 297
  • 那天赴邻,我揣著相機與錄音印衔,去河邊找鬼。 笑死乍楚,一個胖子當著我的面吹牛当编,可吹牛的內(nèi)容都是我干的。 我是一名探鬼主播徒溪,決...
    沈念sama閱讀 40,028評論 3 417
  • 文/蒼蘭香墨 我猛地睜開眼忿偷,長吁一口氣:“原來是場噩夢啊……” “哼!你這毒婦竟也來了臊泌?” 一聲冷哼從身側(cè)響起鲤桥,我...
    開封第一講書人閱讀 38,887評論 0 274
  • 序言:老撾萬榮一對情侶失蹤,失蹤者是張志新(化名)和其女友劉穎渠概,沒想到半個月后茶凳,有當?shù)厝嗽跇淞掷锇l(fā)現(xiàn)了一具尸體,經(jīng)...
    沈念sama閱讀 45,310評論 1 310
  • 正文 獨居荒郊野嶺守林人離奇死亡播揪,尸身上長有42處帶血的膿包…… 初始之章·張勛 以下內(nèi)容為張勛視角 年9月15日...
    茶點故事閱讀 37,533評論 2 332
  • 正文 我和宋清朗相戀三年贮喧,在試婚紗的時候發(fā)現(xiàn)自己被綠了。 大學時的朋友給我發(fā)了我未婚夫和他白月光在一起吃飯的照片猪狈。...
    茶點故事閱讀 39,690評論 1 348
  • 序言:一個原本活蹦亂跳的男人離奇死亡箱沦,死狀恐怖,靈堂內(nèi)的尸體忽然破棺而出雇庙,到底是詐尸還是另有隱情谓形,我是刑警寧澤灶伊,帶...
    沈念sama閱讀 35,411評論 5 343
  • 正文 年R本政府宣布,位于F島的核電站寒跳,受9級特大地震影響聘萨,放射性物質(zhì)發(fā)生泄漏。R本人自食惡果不足惜童太,卻給世界環(huán)境...
    茶點故事閱讀 41,004評論 3 325
  • 文/蒙蒙 一米辐、第九天 我趴在偏房一處隱蔽的房頂上張望。 院中可真熱鬧康愤,春花似錦儡循、人聲如沸。這莊子的主人今日做“春日...
    開封第一講書人閱讀 31,659評論 0 22
  • 文/蒼蘭香墨 我抬頭看了看天上的太陽。三九已至检激,卻和暖如春肴捉,著一層夾襖步出監(jiān)牢的瞬間,已是汗流浹背叔收。 一陣腳步聲響...
    開封第一講書人閱讀 32,812評論 1 268
  • 我被黑心中介騙來泰國打工齿穗, 沒想到剛下飛機就差點兒被人妖公主榨干…… 1. 我叫王不留,地道東北人饺律。 一個月前我還...
    沈念sama閱讀 47,693評論 2 368
  • 正文 我出身青樓窃页,卻偏偏與公主長得像,于是被迫代替她去往敵國和親复濒。 傳聞我的和親對象是個殘疾皇子脖卖,可洞房花燭夜當晚...
    茶點故事閱讀 44,577評論 2 353

推薦閱讀更多精彩內(nèi)容