chapstyleofcombridgepress代码如下:

\documentclass{book}
\usepackage[explicit]{titlesec}
\usepackage{tikz}
\usepackage{lipsum}

\titleformat{\chapter}[block]
  {\normalfont\huge\bfseries}
  {\tikz\node[
      font=\huge\bfseries\color{white},
      fill=gray!50,
      rounded corners=20pt,
      minimum height=1.6cm,
      text width=3em,
      align=center,
      inner xsep=0pt] {\parbox{1.5em}{\thechapter\hfill}};%
  }
  {-1em}
  {\tikz\node[
      fill=gray,
      font=\Large\sffamily\color{white},
      minimum height=1.6cm,
      text width=\the\dimexpr\textwidth-2em\relax,
      align=center,inner xsep=0pt] {#1};%
  }
\titleformat{name=\chapter,numberless}[block]
  {\normalfont\huge\bfseries}
  {\tikz\node[
      font=\huge\bfseries\color{white},
      fill=gray!50,
      rounded corners=20pt,
      minimum height=1.6cm,
      text width=3em,
      align=center,
      inner xsep=0pt] {\parbox{1.5em}{\mbox{}\hfill}};%
  }
  {-1em}
  {\tikz\node[
      fill=gray,
      font=\Large\sffamily\color{white},
      minimum height=1.6cm,
      text width=\the\dimexpr\textwidth-2em\relax,
      align=center,
      inner xsep=0pt] {#1};%
  }

\begin{document}

\tableofcontents
\chapter{Tomaras-Tsamis-Woodard Solution}
\lipsum[4]

\end{document}

选自:http://tex.stackexchange.com/questions/165161/chapter-heading-like-cambridge-university-press 

点赞(0)

评论列表 共有 0 条评论

暂无评论
立即
投稿

微信公众账号

微信扫一扫加关注

发表
评论
返回
顶部