\documentclass[
  class = book,
  scheme = chinese,
  zihao = -4,
  font = noto,
  paper = a4paper,
  openany
  ]{easybook}

\ctexset
  {
    style =
      {
        color = seaside,
        % color-all = 009393,
        % multoc = true,
        % withpart = true,
        footwith = page,
        notomath = true,
        rulewidth = 0.75pt,
        % uppercase = false,
        number-sep = {.}
      },
    link =
      {
        hyperlink = various,
        linkcolor = navyblue,
        linktoc = all
      },
    spread =
      {
        line = 1.355,
        table = 1.05,
        math = 1.05,
        caption = 1,
        footnote = 1
      },
    elsefont =
      {
        table-cap = \sffamily\zihao{5},
        figure-cap = \sffamily\zihao{5},
        listing-cap = \sffamily\zihao{5},
        footnote = \rmfamily,
        marginpar = \sffamily\zihao{-5}
      },
    thmset =
      {
        thmbox = true,
        within = chapter,
        bodyfont = \normalfont,
        headpunct = {.}
      },
    geoset =
      {
        vmargin = {2.54cm,2.54cm},
        hmargin = 3.17cm,
        headheight = 2.04cm,
        headsep = 0.5cm,
        ignorefoot
      },
    hdrset =
      {
        % headrule = {},
        head-foot =
          {
            \easyhead[EC]{\color{DarkOrchid}\kaishu\leftmark}
            \easyhead[OC]{\color{DarkOrchid}\kaishu\rightmark}
            \easyhead[EL,OR]{\color{DarkOrchid}\thepage}
          }
      },
    tocset =
      {
        hang = false,
        line-align = true,
        numsep-all = \ccwd,
        part =
          {
            format += \large,
            indent = 0\ccwd,
            rule = \tocrule{}[\bfseries]
          },
        chapter =
          {
            format = \addvspace{1pc}\sffamily\large,
            indent = 0\ccwd,
            rule = \tocrule[0.7pc](1.2){$\cdot$}[\bfseries]
          }
      },
    bibset =
      {
        bib-loadpkg = true,
        backend = bibtex,
        bib-style = numerical
      },
    % secnumdepth = 2,
    % tocdepth = 2
  }

\usepackage{lipsum,zhlipsum,bicaption,tasks,tcolorbox,imakeidx}

\begin{document}
\title{\sffamily easybook 文档类演示}
\author
  {
    瞿毅\thanks{quee123@foxmail.com.} \\
    \url{https://latexstudio.net} \\
    \url{https://gitee.com/texl3/easybook}\thanks{Gitee为项目的主要发布地址。}
  }
\date{2021/05/01\hskip\ccwd\relax v1.24y}

\frontmatter[roman]
\maketitle
\tableofcontents[book,multoc = false]
\listoffigures+[book,multoc = false,title = 图片列表]

\mainmatter*
\part{使用示例}
\listoftables[book,multoc = false,title = 表格列表]
\listoflistings+[book,multoc = false,title = 代码列表]
\include{chapter1}
\include{chapter2}
\include{chapter3}
\include{appendix}

\backmatter
\printbibliography+[book,multoc = false,title = 参考文献]
\printindex+[book,title = 索引]
\end{document}