LaTeX技巧005:定制自己炫酷的章节样式实例

示例一:

实现代码:

1 \usepackage[Lenny]{fncychap}

 

示例二:



实现代码:

1 \usepackage[avantgarde]{quotchap}
2 \renewcommand\chapterheadstartvskip
3              {\vspace*{-5\baselineskip}}
4 % select Helvetica for title and quote
5 \usepackage{helvet}
6 \renewcommand\sectfont{\sffamily\bfseries}

 

示例三:



实现代码:

1 \usepackage[sf,bf,tiny,center]{titlesec}
2 \titlelabel{\thetitle.\enspace}

 

示例四:



实现代码:

1 \usepackage[rm,it,raggedleft,tiny,compact]{titlesec}
2 \titleformat*{\subsubsection}{\scshape\MakeLowercase}

 

示例五:



实现代码:

1 \usepackage{titlesec}
2 \titleformat{\section}[runin]{\normalfont\scshape}
3      {\S\,\oldstylenums{\thesection}.}{.5em}{}[.\quad]

示例六:



实现代码:

1 \usepackage{titlesec}
2 \titleformat{\section}[frame]{\normalfont}
3     {\footnotesize \enspace SECTION \thesection
4      \enspace}{6pt}{\large\bfseries\filcenter}
5 \titlespacing*{\section}{1pc}{*4}{*2.3}[1pc]

 

示例七



实现代码:

1 \usepackage{titlesec}
2 \newcommand\secformat[1]{%
3   \parbox[b]{.5\textwidth}{\filleft\bfseries #1}%
4   \quad\rule[-12pt]{2pt}{70pt}\quad
5   {\fontsize{60}{60}\selectfont\thesection}}
6 \titleformat{\section}[block]
7   {\filleft\normalfont\sffamily}{}{0pt}{\secformat}
8 \titlespacing*{\section}{0pt}{*3}{*2}[1pc]

 

示例八:



实现代码:

1 \usepackage[noindentafter,calcwidth]{titlesec}
2 \titleformat{\section}[display]
3   {\filright\normalfont\bfseries\sffamily}
4   {\titleline[r]{Section \Huge\thesection}}{1ex}
5   {\titleline*[l]{\titlerule[1pt]}\vspace{1pt}%
6    \titleline*[l]{\titlerule[2pt]}\vspace{2pt}}
7   [{\titleline*[l]{\titlerule*{\tiny\LaTeX}}}]
8 \titlespacing{\section}{1pc}{*3}{*2}

posted on 2014-06-21 19:01  Eufisky  阅读(2124)  评论(0编辑  收藏  举报

导航