2.快速参考

2021-07-15  本文已影响0人  相思清狂

The easiest way to change the format is by means of a set of package options and a couple of commands. If you feel happy with the functionality provided by this set of tools, you need not go further in this manual. Just read this section and ignore the subsequent ones.
更改格式的最简方法是使用宏包提供的一系列选项和命令。如果您对这些工具提供的功能感到满意,则无需进一步阅读本手册。只需阅读本节,忽略后面的内容。

2.1. 格式

There are three option groups controlling font, size and align. You need not set all of these groups, since a default is provided for each one; however, you must use at least an option from them if you want this easy setup."
有三组选项用于控制字体、大小、对齐。并不需要设置所有选项,因为每组选项都设有默认值;尽管如此,如果你希望使用这种 “简单设置”,则至少要使用其中的一个选项。

2.2. 间距

2.3. 大写

2.4. 工具

2.5 示例

键入如下代码,其显示效果附后。

\documentclass[12pt,a4]{report}    % 文档类声明
\usepackage[]{titlesec}           %引入宏包
\begin{document}
\tableofcontents                %列出目录
\chapter{Advanced Interface}
    \section{Format}
    \section{Spacing}
    \section{Spacing related tools}
    \section{Rules}
\chapter{Advanced Interface}
    \section{Breaks}
    \section{Other Package}
    \section{Extended Settings}
    \section{Creating new levels}
\end{document} 

\usepackage{titlesec}命令加入选项,效果附后

\usepackage[sf,small,raggedleft,compact,uppercase]{titlesec}%引入宏包

加入\titleformat命令:
\usepackage[sf,small,raggedleft,compact,uppercase]{titlesec}%引入宏包
\titleformat{\section}{\LARGE\sffamily\slshape}
{\thesection.\quad}{1em}{}
上一篇 下一篇

猜你喜欢

热点阅读