\documentclass{book} \usepackage{lmodern} \usepackage{graphicx} \usepackage{xcolor} \usepackage{titlesec} \usepackage{microtype} \definecolor{myblue}{RGB}{0,82,155} \titleformat{\chapter}[display] {\normalfont\bfseries\color{myblue}} {\filleft\hspace*{-60pt}% \rotatebox[origin=c]{90}{% \normalfont\color{black}\Large% \textls[180]{\textsc{\chaptertitlename}}% }\hspace{10pt}% {\setlength\fboxsep{0pt}% \colorbox{myblue}{\parbox[c][3cm][c]{2.5cm}{% \centering\color{white}\fontsize{80}{90}\selectfont\thechapter}% }}% } {10pt} {\titlerule[2.5pt]\vskip3pt\titlerule\vskip4pt\LARGE\sffamily} \begin{document} \tableofcontents \chapter{Betratronic motion in a synchrotron} \end{document}
选自:http://tex.stackexchange.com/questions/169416/how-to-make-this-chapter-heading-style
发表评论 取消回复