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)整缺前。
-
Since the sectioning commands are rewritten, their behaviour could be somewhat different in some cases. ?
-
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. ?