summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/latex/easybook/easybook-demo.tex
blob: cb06db92dc8852ca44b011d4baa59e2c6fb6a61b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
\documentclass[
  class = book,
  zihao = -4,
  font = noto,
  paper = a4paper,
  openany
  ]{easybook}

\ctexset
  {
    style =
      {
        color = seaside,
        % multoc = true,
        % withpart = true,
        footwith = page,
        notomath = true,
        rulewidth = 0.75pt,
        % uppercase = false,
        number-sep = {.}
      },
    link =
      {
        hyperlink = various,
        linkcolor = skyblue,
        linktopage = false
      },
    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 =
      {
        head-foot =
          {
            \easyhead[EC]{\color{SeaGreen}\kaishu\leftmark}
            \easyhead[OC]{\color{SeaGreen}\kaishu\rightmark}
            \easyhead[EL,OR]{\color{SeaGreen}\thepage}
          }
      },
    tocset =
      {
        part =
          {
            format = \addvspace{1pc}\sffamily\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 =
      {
        backend = bibtex,
        bib-style = numerical
      },
    % secnumdepth = 2,
    % tocdepth = 2
  }

\usepackage{zhlipsum,bicaption,tcolorbox}

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

\frontmatter[roman]
\maketitle
\tableofcontents[book,multoc = false]

\mainmatter*
\part{使用示例}
\include{chapter1}
\include{chapter2}
\include{chapter3}
\include{appendix}

\backmatter
\printbibliography[book,multoc = false]
\listoffigures[book,multoc = false]
\listoftables[book,multoc = false]
\listoflistings[book,multoc = false]
\printindex
\end{document}