样例实现代码如下:

\documentclass{book}
\usepackage{xcolor}
\usepackage{titlesec}
\usepackage{hyperref}
\usepackage{graphicx}
\usepackage[percent]{overpic}
\usepackage{fix-cm}
\usepackage{lipsum}

% formats: \chapter
\newcommand\ctformatchapter[1]{%
    \parbox[b][6cm][b]{\dimexpr.5\textwidth\relax}{%
        \raggedright%
        \textcolor{cyan!50!blue}{\textsf{#1}}%
    }%
}


\titleformat{\chapter}[display]%
{\fontsize{20pt}{20pt}\bfseries\selectfont}%
{%
    \raggedleft{%
        \begin{overpic}[width=0.5\textwidth]{ctanlion}
            \put (30,42) {\rotatebox{-20}{\fontsize{60pt}{60pt}\selectfont\textsf{\Roman{chapter}}}}
            \put (20,50) {\textcolor{cyan!50!blue}{\textsf{Chapter}}}
        \end{overpic}
    }%
}%
{-6.5cm}%
{\ctformatchapter}%
[\phantomsection]

\begin{document}
    \chapter{Introduction}
    \lipsum
\end{document}

选自:https://tex.stackexchange.com/questions/298046/custom-chapter-heading/320411

点赞(2)

评论列表 共有 0 条评论

暂无评论
立即
投稿

微信公众账号

微信扫一扫加关注

发表
评论
返回
顶部