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

示例一:

实现代码:

1 usepackage[Lenny]{fncychap}

示例二:



实现代码:

1 usepackage[avantgarde]{quotchap}
2 
enewcommandchapterheadstartvskip
3              {vspace*{-5aselineskip}}
4 % select Helvetica for title and quote
5 usepackage{helvet}
6 
enewcommandsectfont{sffamilyfseries}

示例三:



实现代码:

1 usepackage[sf,bf,tiny,center]{titlesec}
2 	itlelabel{	hetitle.enspace}

示例四:



实现代码:

1 usepackage[rm,it,raggedleft,tiny,compact]{titlesec}
2 	itleformat*{subsubsection}{scshapeMakeLowercase}

示例五:



实现代码:

1 usepackage{titlesec}
2 	itleformat{section}[runin]{
ormalfontscshape}
3      {S\,oldstylenums{	hesection}.}{.5em}{}[.quad]

示例六:



实现代码:

1 usepackage{titlesec}
2 	itleformat{section}[frame]{
ormalfont}
3     {footnotesize enspace SECTION 	hesection
4      enspace}{6pt}{largefseriesfilcenter}
5 	itlespacing*{section}{1pc}{*4}{*2.3}[1pc]

示例七



实现代码:

1 usepackage{titlesec}
2 
ewcommandsecformat[1]{%
3   parbox[b]{.5	extwidth}{filleftfseries #1}%
4   quad
ule[-12pt]{2pt}{70pt}quad
5   {fontsize{60}{60}selectfont	hesection}}
6 	itleformat{section}[block]
7   {filleft
ormalfontsffamily}{}{0pt}{secformat}
8 	itlespacing*{section}{0pt}{*3}{*2}[1pc]

示例八:



实现代码:

1 usepackage[noindentafter,calcwidth]{titlesec}
2 	itleformat{section}[display]
3   {filright
ormalfontfseriessffamily}
4   {	itleline[r]{Section Huge	hesection}}{1ex}
5   {	itleline*[l]{	itlerule[1pt]}vspace{1pt}%
6    	itleline*[l]{	itlerule[2pt]}vspace{2pt}}
7   [{	itleline*[l]{	itlerule*{	inyLaTeX}}}]
8 	itlespacing{section}{1pc}{*3}{*2}
原文地址:https://www.cnblogs.com/Eufisky/p/3801306.html