如何将此标题格式应用于无编号章节、目录、图表列表、摘要等

如何将此标题格式应用于无编号章节、目录、图表列表、摘要等
\documentclass[a4,12pt]{report}
\usepackage[utf8x]{inputenc}
\usepackage{tikz}
\usepackage{titlesec}
\usepackage{xcolor}
\usepackage{colortbl}
\usepackage[a4paper,bindingoffset=0.5in,%
            left=1in,right=1in,top=1in,bottom=1in,%
            footskip=.50in]{geometry}
\usepackage{lipsum}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 

%%%%%%%%%%%%%%%%%%%% fancy heading  \section %%%%%%%%%%%%%%%%%%%%%%

\usetikzlibrary{calc}
\usepackage{textpos}

\DeclareFixedFont{\chapternumberfont}{T1}{ppl}{}{}{1in}
\titleformat{\chapter}[display]{\Huge\bfseries\rmfamily\color{white}}{
\begin{tikzpicture}[overlay, remember picture]
        \path let \p1 = (current page.west), \p2 = (current page.east) in
              node[minimum width=\x2-\x1, minimum height=4cm, rectangle, fill=cyan, anchor=north west, align=left, text width=\x2-\x1] at ($(current page.north west)$) {
                \begin{textblock*}{5in}(\dimexpr\x2-4.5in,\dimexpr0.25\headheight-1in)
                    \tikz \node [white,text width=2in, align=right, font=\rmfamily] {{\includegraphics[scale=.27]{a}}\\[5pt] \raisebox{40pt}{{\large \chaptertitlename}} \raisebox{-10pt}{\chapternumberfont \thechapter}};
                \end{textblock*}
              };
        \path let \p1 = (current page.west), \p2 = (current page.east) in
              node[minimum width=\x2-\x1, minimum height=0.8in, rectangle, fill=cyan, anchor=south west, align=left, text width=\x2-\x1] at ($(current page.south west)$) {};
\end{tikzpicture}
} {-1.75in}{}[\vspace*{.1in}]
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\begin{document}

\tableofcontents

\chapter{Introduction}

\section{Hockey}
\lipsum[1]

\section{football}
\lipsum[1]
\chapter*{Research Statement}

\end{document}

在此处输入图片描述

答案1

只需再次使用\titleformat,并输入numberless密钥。这是您获得的结果(我不得不使用自己的图像……)并删除 \chaptername 和章节编号的任何代码。请注意,xtable使用该table选项加载更简单:它将colortbl自动加载,如果所有边距都相等,只需指定margin= …

\documentclass[a4,12pt]{report}
\usepackage[utf8x]{inputenc}
\usepackage{tikz}
\usepackage{titlesec}
\usepackage[table]{xcolor}
\usepackage[a4paper,bindingoffset=0.5in,%
            margin=1in, 
            footskip=.50in]{geometry}
\usepackage{lipsum}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

%%%%%%%%%%%%%%%%%%%% fancy heading \section %%%%%%%%%%%%%%%%%%%%%%

\usetikzlibrary{calc}
\usepackage{textpos}

\DeclareFixedFont{\chapternumberfont}{T1}{ppl}{}{}{1in}
\titleformat{\chapter}[display]{\Huge\bfseries\rmfamily\color{white}}{
\begin{tikzpicture}[overlay, remember picture]
        \path let \p1 = (current page.west), \p2 = (current page.east) in
              node[minimum width=\x2-\x1, minimum height=4cm, rectangle, fill=cyan, anchor=north west, align=left, text width=\x2-\x1] at ($(current page.north west)$) {
                \begin{textblock*}{5in}(\dimexpr\x2-4.5in,\dimexpr0.25\headheight-1in)
                    \tikz \node [white,text width=2in, align=right, font=\rmfamily] {{\includegraphics[scale=.27]{pepe-le-pew1}}\\[5pt] \raisebox{40pt}{{\large \chaptertitlename}} \raisebox{-10pt}{\chapternumberfont \thechapter}};
                \end{textblock*}
              };
        \path let \p1 = (current page.west), \p2 = (current page.east) in
              node[minimum width=\x2-\x1, minimum height=0.8in, rectangle, fill=cyan, anchor=south west, align=left, text width=\x2-\x1] at ($(current page.south west)$) {};
\end{tikzpicture}
} {-1.75in}{}[\vspace*{.1in}]
\titleformat{name=\chapter, numberless}[display]{\Huge\bfseries\rmfamily\color{white}}{
\begin{tikzpicture}[overlay, remember picture]
        \path let \p1 = (current page.west), \p2 = (current page.east) in
              node[minimum width=\x2-\x1, minimum height=4cm, rectangle, fill=cyan, anchor=north west, align=left, text width=\x2-\x1] at ($(current page.north west)$) {
                \begin{textblock*}{5in}(\dimexpr\x2-4.5in,\dimexpr0.25\headheight-1in)
                    \tikz \node [white,text width=2in, align=right, font=\rmfamily] {{\includegraphics[scale=.27]{pepe-le-pew1}}
                    };
                \end{textblock*}
              };
        \path let \p1 = (current page.west), \p2 = (current page.east) in
              node[minimum width=\x2-\x1, minimum height=0.8in, rectangle, fill=cyan, anchor=south west, align=left, text width=\x2-\x1] at ($(current page.south west)$) {};
\end{tikzpicture}
} {-1.75in}{}[\vspace*{.1in}]
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\begin{document}

\tableofcontents

\chapter*{Introduction}

\section{Hockey}
\lipsum[1]

\section{football}
\lipsum[1]
\chapter*{Research Statement}

\end{document} 

在此处输入图片描述

相关内容