summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/easybook/easybook-demo.tex
blob: 91a0848dd08252330cd4de88147dbdd635e69b88 (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
\documentclass[zihao = -4,openany]{easybook}
\ctexset
  {
    style =
      {
        color = navygreen,
        % cite = authoryear,
        thmbox = true,
        % capdash = true,
        % multoc = true,
        % withpart = true,
        % perpart = true,
        perpage = true
      },
    link =
      {
        hyperlink = various,
        linkcolor = lightblue,
        linktopage = false
      },
    spread =
      {
        linespread = 1.355,
        tabspread = 1.05,
        mathspread = 1,
        capspread = 1,
        fnspread = 1
      },
    % secnumdepth = 2,
    % tocdepth = 2
  }

\AfterPreamble
  {
    \title{\sffamily easybook书籍文档类}
    \author
      {
        Qu Yi\thanks{texeasybook@foxmail.com.} \\
        \textcolor[HTML]{c71d23}{\faGit}~\url{https://gitee.com/TeX-doc/easybook}\thanks{Gitee为项目的主要发布地址。} \\
        \faGithub~\url{https://github.com/TeX-doc/easybook} \\
        \textcolor[HTML]{00c2ff}{\faEdge}~\url{https://latexstudio.net}
      }
    \date{2021/01/03\hskip\ccwd\relax v1.0}
  }

\begin{document}
\frontmatter
\maketitle
\subfile{pages/preface}
\tableofcontents

\mainmatter
\part{使用示例}
\subfile{pages/chapter1}
\subfile{pages/chapter2}
\subfile{pages/chapter3}
\subfile{pages/appendix}

\backmatter
\bibliography{ref/refs}
\listoffigures
\listoftables
\listoflistings
\printindex
\end{document}