summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/beautybook/Beautybook-introduction-english.tex
blob: 2f83a3a3a510b89511d716b85f9483f0af3ff5b2 (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
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
%% This work is released under the LaTeX Project Public License, v1.3c or later.
% This template is made by Ethan Lu.
% Please use pdfLaTeX engine!
\documentclass{Beautybook-V6.1-EN}
\coverstyle={
    cover-choose=en, % cn (Need \entitle{#}); en ; enfig ; birkar
}
\mathstyle={
    math-font=plain, % plain; mtpro2
}
\usepackage{rotating}
\tikzset{>=Stealth}
\setlist{nosep,font=\upshape} 
\renewcommand*{\textfraction}{0.05}
\renewcommand*{\topfraction}{0.9}
\renewcommand*{\bottomfraction}{0.8}
\renewcommand*{\floatpagefraction}{0.85}
\DeclareGraphicsExtensions{.pdf,.eps,.jpg,.png}
\graphicspath{{figures/}{figure/}{pictures/}{picture/}{pic/}{pics/}{image/}{images/}}
\usepackage{amsfonts}
\mynewtheorem{
    defi={\textbf{Definition}}[section]{interior style={left color=ReD!8,right color=ReD!5!CyaN!50}, borderline west={1.5mm}{0mm}{ReD}},
    thm={\textbf{Theorem}}[section]{interior style={left color=CyaN!80!black!20,right color=CyaN!80!black!15!CyaN!50}, borderline west={1.5mm}{0mm}{CyaN!80!black}},
    lem={\textbf{Lemma}}[section]{interior style={left color=BluE!8,right color=BluE!5!CyaN!50}, borderline west={1.5mm}{0mm}{BluE}},
    prop={\textbf{Proposition}}[section]{interior style={left color=OrangE!8,right color=OrangE!5!CyaN!50}, borderline west={1.5mm}{0mm}{OrangE}},
    exam={\textbf{Example}}[chapter]{interior style={left color=DarkGreen!8,right color=DarkGreen!5!CyaN!50}, borderline west={1.5mm}{0mm}{DarkGreen}},
    cor={\textbf{Corollary}}[chapter]{interior style={left color=violet!8,right color=violet!5!CyaN!50}, borderline west={1.5mm}{0mm}{violet}},
}
\newtheorem*{remark}{\textbf{Remark}}
\makeatletter
\mynewtcbtheorem{
    theorem={
        counter=tcbthm, 
        the counter=\thesection.\arabic{tcbthm}, 
        name=Theorem,
        thmcolor=purple,
        autoref name=\bfseries Theorem, 
        style={
        arc=3pt,breakable,enhanced,interior style={top color=purple!12 ,middle color=purple!9, bottom color=purple!6},boxrule=0pt,top=8mm,
        fuzzy shadow={-0.6mm}{0.6mm}{0mm}{0.3mm}{white!50!gray},% up
        fuzzy shadow={0.6mm}{-0.6mm}{0mm}{0.3mm}{fill=white!40!gray},% down
        opacityframe=0, opacityback=0.98,
        fontupper=\itshape, step={tcbthm},
        before pre=\smallskip, after app=\smallskip,
        overlay unbroken=\my@theorem@overlay@unbroken{\theorem@name\ \thetcbthm}{\theorem@thmcolor},
        overlay first=\my@theorem@overlay@first{\theorem@name\ \thetcbthm}{\theorem@thmcolor},
        overlay last=\my@theorem@overlay@last,
        }
    },
    proposition={
        counter=tcbprop, 
        the counter=\thesection.\arabic{tcbprop}, 
        autoref name=\bfseries Proposition, 
        style={
        arc=3pt,breakable,enhanced,interior style={top color=purple!12 ,middle color=purple!9, bottom color=purple!6},boxrule=0pt,top=8mm,
        fuzzy shadow={-0.6mm}{0.6mm}{0mm}{0.3mm}{white!50!gray},
        fuzzy shadow={0.6mm}{-0.6mm}{0mm}{0.3mm}{fill=white!40!gray},
        opacityframe=0, opacityback=0.98,
        fontupper=\itshape, step={tcbprop},
        before pre=\smallskip, after app=\smallskip,
        overlay unbroken=\my@theorem@overlay@unbroken{Proposition\ \thetcbprop}{purple},
        overlay first=\my@theorem@overlay@first{Proposition\ \thetcbprop}{purple},
        overlay last=\my@theorem@overlay@last{purple},
        }
    },
    definition={
        counter=tcbdefi, 
        the counter=\thesection.\arabic{tcbdefi}, 
        autoref name=\bfseries Definition, 
        style={
        arc=3pt,breakable,enhanced,interior style={top color=blue!12 ,middle color=blue!9, bottom color=blue!6},boxrule=0pt,top=8mm,
        fuzzy shadow={-0.6mm}{0.6mm}{0mm}{0.3mm}{white!50!gray},
        fuzzy shadow={0.6mm}{-0.6mm}{0mm}{0.3mm}{fill=white!40!gray},
        opacityframe=0, opacityback=0.98,
        fontupper=\itshape, step={tcbdefi},
        before pre=\smallskip, after app=\smallskip,
        overlay unbroken=\my@theorem@overlay@unbroken{Definition\ \thetcbdefi}{blue},
        overlay first=\my@theorem@overlay@first{Definition\ \thetcbdefi}{blue},
        overlay last=\my@theorem@overlay@last{blue},
        }
    },
    lemma={
        counter=tcblem,
        the counter=\thesection.\arabic{tcblem},
        name=Lemma, 
        lemcolor=DarkCyan,
        autoref name=\bfseries Lemma,
        style={
        arc=0mm,breakable,enhanced,interior style={top color=DarkCyan!12 ,middle color=DarkCyan!9, bottom color=DarkCyan!6},arc=3pt,boxrule=0pt,top=7mm,bottom=5mm,
        fuzzy shadow={-0.6mm}{0.6mm}{0mm}{0.3mm}{white!50!gray},
        fuzzy shadow={0.6mm}{-0.6mm}{0mm}{0.3mm}{fill=white!40!gray},
        opacityframe=0, opacityback=0.98,
        fontupper=\normalsize,step={tcblem},
        before pre=\smallskip, after app=\smallskip,
        overlay unbroken=\my@lemma@overlay@unbroken{\lemma@name\ \thetcblem}{\lemma@lemcolor},
        overlay first=\my@lemma@overlay@first{\lemma@name\ \thetcblem}{\lemma@lemcolor},
        overlay last=\my@lemma@overlay@last{\lemma@lemcolor},
        }
    },
    corollary={
        counter=tcbcor,
        the counter=\thesection.\arabic{tcbcor},
        autoref name=\bfseries Corollary,
        style={
        arc=0mm,breakable,enhanced,interior style={top color=orange!12 ,middle color=orange!9, bottom color=orange!6},arc=3pt,boxrule=0pt,top=7mm,bottom=5mm,
        fuzzy shadow={-0.6mm}{0.6mm}{0mm}{0.3mm}{white!50!gray},
        fuzzy shadow={0.6mm}{-0.6mm}{0mm}{0.3mm}{fill=white!40!gray},
        opacityframe=0, opacityback=0.98,
        fontupper=\normalsize,step={tcbcor},
        before pre=\smallskip, after app=\smallskip,
        overlay unbroken=\my@lemma@overlay@unbroken{Corollary\ \thetcbcor}{orange},
        overlay first=\my@lemma@overlay@first{Corollary\ \thetcbcor}{orange},
        overlay last=\my@lemma@overlay@last{orange},
        }
    },
    example={
        counter=tcbexam,
        the counter=\thesection.\arabic{tcbexam},
        autoref name=\bfseries Example,
        style={
        arc=0mm,breakable,enhanced,interior style={top color=cyan!12 ,middle color=cyan!9, bottom color=cyan!6},arc=3pt,boxrule=0pt,top=7mm,bottom=5mm,
        fuzzy shadow={-0.6mm}{0.6mm}{0mm}{0.3mm}{white!50!gray},
        fuzzy shadow={0.6mm}{-0.6mm}{0mm}{0.3mm}{fill=white!40!gray},
        opacityframe=0, opacityback=0.98,
        fontupper=\normalsize,step={tcbexam},
        before pre=\smallskip, after app=\smallskip,
        overlay unbroken=\my@lemma@overlay@unbroken{Example\ \thetcbexam}{cyan},
        overlay first=\my@lemma@overlay@first{Example\ \thetcbexam}{cyan},
        overlay last=\my@lemma@overlay@last{cyan},
        }
    },
    Exercise={
        counter=tcbexer,
        the counter=\thechapter.\arabic{tcbexer},
        autoref name=\bfseries Exercise,
        style={
        arc=0mm,breakable,enhanced,interior style={top color=red!12 ,middle color=red!9, bottom color=red!6},arc=3pt,boxrule=0pt,top=7mm,bottom=5mm,
        fuzzy shadow={-0.6mm}{0.6mm}{0mm}{0.3mm}{white!50!gray},
        fuzzy shadow={0.6mm}{-0.6mm}{0mm}{0.3mm}{fill=white!40!gray},
        opacityframe=0, opacityback=0.9,
        fontupper=\normalsize,step={tcbexer},
        before pre=\smallskip, after app=\smallskip,
        overlay unbroken=\my@lemma@overlay@unbroken{Exercise\ \thetcbexer}{red},
        overlay first=\my@lemma@overlay@first{Exercise\ \thetcbexer}{red},
        overlay last=\my@lemma@overlay@last{red},
        }
    },
}
\makeatother
%
\newenvironment{note}[1][\bf Note:]{\par\Line\uuline{#1} }{\par\Line}
\renewcommand{\Line}{\noindent\tikz\draw[line width=0.65pt,gray!80,dashed] (0,0)--++(.99\linewidth,0);\par}
\newcommand{\Wedge}[1][]{\tikz\path [draw,line width=1pt] (0,0)--++(4pt,12pt) node[right,font=\scriptsize] {#1} --++(4pt,-12pt);}
\newenvironment{key}[1]{\begin{fancybox}{#1}\ }{\end{fancybox}}
\newcommand{\pr}{^\prime}
\newcommand{\prr}{^{\prime\prime}}
\newcommand{\itbf}[1]{\textit{\textbf{#1}}}
\usepackage{listings}
\lstset{
	basicstyle=\small\ttfamily,	
		keywordstyle=\color{NavyBlue}, 
		commentstyle=\color{gray!50!black!50},   	
		stringstyle=\rmfamily\slshape\color{red}, 	
	backgroundcolor=\color{gray!5},     
	frame=leftline,						
	framerule=12pt,%
		rulecolor=\color{gray!90},      
	numbers=left,				
		numberstyle=\footnotesize\itshape,	
		firstnumber=1,
		stepnumber=1,                  	
		numbersep=7pt,               	
	aboveskip=.25em, 			
	showspaces=false,               	
	showstringspaces=false,        
	keepspaces=true, 					
	showtabs=false,                 	
	tabsize=2,                     		
	captionpos=b,                   	
	flexiblecolumns=true, 			
	breaklines=true,                	
	breakatwhitespace=false,        	
	breakautoindent=true,			
	breakindent=1em, 			
	title=\lstname,				
	escapeinside=``,  		
	xleftmargin=1em,  xrightmargin=1em,     
	aboveskip=1ex, belowskip=1ex,
	framextopmargin=1pt, framexbottommargin=1pt,
        abovecaptionskip=-2pt,belowcaptionskip=3pt,
	extendedchars=false, columns=flexible, mathescape=true,
	texcl=true,
	fontadjust
}%
\begin{document}
\thispagestyle{empty}
\title{An Introduction to Complex Geometry}
\subtitle{}
\edition{First Edition}
\bookseries{UniversiText}
\author{Ethan Lu}
\pressname{logo}
\presslogo{inner_pics/logo.png}
\coverimage{inner_pics/ivy-ge998908f8_1280.jpg}
\makecover

\definecolor{bg}{HTML}{e0e0e0}
\definecolor{fg}{HTML}{203A43}
\colorlet{outermarginbgcolor}{bg}
\colorlet{outermarginfgcolor}{fg}
\colorlet{framegolden}{fg}
\colorlet{framegray}{bg!50}
%
\thispagestyle{empty}\newpage % left blank
\frontmatter
\pagenumbering{Roman}
% preface
\thispagestyle{empty}
\addcontentsline{toc}{chapter}{Preface}
\chapter*{Preface}
As my first english book, i'm happy.

\hfill
\begin{tabular}{lr}
    &----- Ethan Lu\\ 
    &2023-01-11
\end{tabular}

\begin{center}
    \vfill
    \thepage
\end{center}
\let\cleardoublepage\clearpage
%
\thispagestyle{empty}
\tableofcontents\let\cleardoublepage\clearpage


\mainmatter
\pagenumbering{arabic}

\partimage{inner_pics/part.png}
\partabstract{\hspace*{2em} Here is the introduction area of each part, where you can write a concise overview of the part, of course, if there is nothing to say, you can leave it blank.}
\part{The template usage introduction of \textbf{Beautybook}}
\chapter{A short introduction of \textbf{Beautybook}}
Beauty \LaTeX{} series of templates is a book series made by me, an unknown little person. In fact, there are only two series, one is the custom book template \textbf{fancybook } , which is dedicated to the fresh and elegant style. (this has been changed permanently, because of my aesthetic problem, I prefer “Beauty”, forgive me!) , the other is my flagship product-\textbf{ Beautybook } ! About why they have such strange names? My answer is, originally I wanted to name it elegantboook, but there is already the famous elegantbook series, so I can only settle for the next best thing and name it a combination of a noun and a book with the same meaning of beauty, the Ancients Cloud: the book has its own Yan Ruyu, this is not, the beauty with books, is not beautiful! Therefore, this is the origin of \textbf{beauty book } !

I am committed to creating a series of beautiful, elegant, simple template to facilitate the use of users and myself (mainly for their own, but can not stand the appreciation of everyone, I would like to introduce myself, please understand!) . Version changes frequently, please pay attention to version information, before starting to use templates, it is recommended to choose the latest official version! The latest test version will usually be released in the QQ Group, you can take it, after taking it is to stay at will.But unfortunately, I will be on July 5 in 2023  to stop maintenance and updates, so I can no longer solve the problem for you in the Q Group, Sorry!


This article covers some of the setup and basic usage of this template. If you have any other questions, suggestions or comments, feel free to submit them to me on GitHub
\href{https://github.com/BeautyLaTeX/latex-template/issues}{issues} or \href{h1479840692@163.com}{163 mail} or QQ mail \href{1479840692@qq.com}{QQ mail}. 

The template address are
\begin{itemize}
  \item GitHub address: \href{https://github.com/BeautyLaTeX/latex-template}{https://github.com/BeautyLaTeX/latex-template},
  \item Download frome here: \href{https://github.com/BeautyLaTeX/latex-template/releases}{Official release},
  \item User QQ Group: 809237593.
\end{itemize}
\textit{This work is released under the LaTeX Project Public License, v1.3c or later.}
\section{Template Installation and Update}

You will need to use this template by downloading it and compiling it. Only use it locally (within a folder) .

\subsection{Use template online}

This template can be uploaded directly to overleaf for use, but note that you need to write \lstinline{math-font=plain} in the premble and compile with the XeLaTeX engine!

\subsection{Local Installation}

\textbf{Local Installation} use the following method: download the latest version from GitHub or QQ group, strictly need only class file \lstinline {.cls} and some folders. Then place the template files in your working directory and synchronously copy these folders: \texttt{fonts}, \texttt{stys}, \texttt{figures}, and \texttt{inner\_pics}, \texttt{frontmatter} to use. (If you are a chinese user, you can choose to copy the chinesefonts folder.) The advantage of this is that you can install \texttt{mtpro2} font to achieve a more elegant effect than if you were using it online. Of course, the choice is left to the users, and I won't comment here.

The following are examples of minimal work:
\begin{lstlisting}
    \documentclass[zihao=-4,fontset=none]{Beautybook-V6.1-CN} % Instead of using a custom font, change it to fontset = Windows/Mac/Ubuntu and comment out stys/Settings-CN. Chinese font settings at the end of this sty! If you want to learn to use third-party fonts, you can also refer to their own configuration!
    \coverstyle={ % List of covers key values
        cover-choose=cn, % cn (A new entry is required \entitle{#}); en ; enfig ; birkar
    }
    \mathstyle={ % List of math fonts key values
        math-font=mtpro2, %plain (Default mathematical font); mtpro2 % !! Do not use the key value if the mtpro2 font isn't installed!
    }
    \usepackage{stys/settings-CN}
    \begin{document}
    \thispagestyle{empty}
    \entitle{entitle,only when you use cncover} % cn
    \title{Title here}
    \subtitle{XX}
    \edition{First Edition}
    \bookseries{Series}
    \author{your name here}
    \pressname{press name}
    \presslogo{inner_pics/Springer-logo.png}
    \coverimage{inner_pics/coverimage.jpg} % cn
    %\coverimage{inner_pics/ivy-ge998908f8_1280.jpg}
    \makecover %
    
    % Theme color
    \definecolor{bg}{HTML}{e0e0e0}
    \definecolor{fg}{HTML}{203A43}
    \colorlet{outermarginbgcolor}{bg}
    \colorlet{outermarginfgcolor}{fg}
    \colorlet{framegolden}{fg}
    \colorlet{framegray}{red!15}
    %
    \input{frontmatter/titlepage-cn} % Titlepage
    %
    \frontmatter 
    \pagenumbering{Roman}
    \input{frontmatter/preface-cn} % preface
    \thispagestyle{empty}
    \tableofcontents\let\cleardoublepage\clearpage 
    
    \mainmatter 
    \pagenumbering{arabic} 
    \partimage{inner_pics/part.png} % Part Pictures is needed,which is only need to write once.
    \partabstract{\hspace{2em} XX} % Part introduction. If you don't want to write, it can be left blank.
    \part{XX}
    % \input{XX}
    \backmatter
    \appendix 
    %
    
    
    \normalem
    \printbibliography[
    heading=bibintoc,
    title={Reference}
    ]
    \printindex
    \thispagestyle{empty}
    \bottomimage{inner_pics/ivy-ge998908f8_1280.jpg}
    \ISBNcode{\EANisbn[ISBN=ISBN Number here]} %
    \summary{Bottom Information}
    \makebottomcover
    \end{document} 
\end{lstlisting}
\subsection{Release installation and updates}
The test environment for this template is
\begin{enumerate}
\item Win11 22H2 + \TeX{} Live 2023;
\end{enumerate}
For the installation of \TeX Live/Mac\TeX{} , please refer to articles online, which is omitted here.

After installing \TeX{} Live, it is recommended to upgrade all macro packages after installation, upgrade method: use cmd or terminal to run \lstinline{tlmgr update --all}, if tlmgr needs to be updated, use cmd to run \lstinline{tlmgr update --self}, if there is a break in the update process, please use \lstinline{tlmgr update -- self --all --reinstall-forcibly-removed} update, that is

\begin{lstlisting}
tlmgr update --self 
tlmgr update --all
tlmgr update --self --all --reinstall-forcibly-removed
\end{lstlisting}

Please refer to \href{https://tex.stackexchange.com/questions/55437/how-do-i-update-my-tex-distribution}{How do I update my \TeX{} distribution?} for more information.

\chapter{The setting of Beautybook Template}

The English version of this template is based on the basic book class, and the Chinese version is based on the ctexbook class, so the option of book or ctexBook is also valid for this template. The default encoding is \texttt{UTF-8}, and it is recommended to compile with \TeX{} Live.

\section{Language Mode}

This template contains two basic locales, \lstinline{Beautybook-V6.1.cls} in Chinese and \lstinline{Beautybook-V6.1-EN.cls} in English. Changing the locales will change the leading words (include figures, tables) of the chart title, the structure of the article (e.g. table of contents, references, etc.), and the leading words in the context of the theorem (e.g. Theorem, lemma, etc.). The different language modes are enabled as follows:
\begin{lstlisting}
\documentclass{Beautybook-V6.1-CN} % chinese
\documentclass{Beautybook-V6.1-EN} % english
\end{lstlisting}

In addition to the two sets of language settings that come with the template, if you need to use other languages, you can solve these problems by changing the \texttt{.cls} file

\begin{enumerate}
    \item Change the name of the part environment \lstinline{Part\ \thepart} to \lstinline{(translation of part in your language)\ \thepart}
    \item Main file, which is the theorem guide word in the introduction area of the current file
    \item Change the name of the part in the chapter environment as shown in the first article
    \item Keep in mind that only Asian locales can use the ctexbook class, i.e. based on \lstinline{Beautybook-V6.1-CN.cls} changes, other Spanish environments need to be changed based on \lstinline{Beautybook-V6.1-EN.cls}.
\end{enumerate}
\section{Color Theme}

The color of this template is freely configurable, and the color parameters that can be configured are as follows:

\begin{lstlisting}
    \definecolor{bg}{HTML}{e0e0e0} % Overall style background color % i.e. light color
    \definecolor{fg}{HTML}{455a64} % Overall style foreground color % i.e. dark
    %% The colors below are in the stys/bottompage.sty file
    \definecolor{coverbgcolor}{HTML}{f9b868} % Cover and back cover background color
    \definecolor{coverfgcolor}{HTML}{503D4B} % foreground color on the front and back covers
    \definecolor{coverbar}{HTML}{BF8E6F} % cover bar color
    \definecolor{bottomcolor}{HTML}{B3686A} % The back cover indicates the background color
    %%%%%%%%%%%%%%%%%%%%%%%%
    \colorlet{framegolden}{fg} % Antique box line color
    \colorlet{framegray}{Dilu!5} % Antique box background color
\end{lstlisting}
There are also theorem environment colors that can be set in the introduction area of this file, which will be expanded on in the following section on the mathematical environment.

Here it is recommended to use the color configuration of the cncolours macro package developed by Lin Lianzhi, and you can select the appropriate color for comparison. 


\section{Cover}
\subsection{Cover personalization}
This template has multiple sets of covers that can be used at will, and the use of them is as follows:
\begin{enumerate}
    \item Springer classic cover --corresponding macro package \lstinline{cover-choose=cn} (Chinese default),
    \item Springer Classic Cover 2 - corresponding to the macro package \lstinline{cover-choose=en} (English default),
    \item Springer Classic Cover No. 3 - corresponding to macro package \lstinline{cover-choose=enfig} (image background),
    \item Chinese classic cover of the book - corresponding to the macro package \lstinline{cover-choose=birkar} (triangular geometric wind).
    
    Note that the information corresponding to the cover is not the same, look at the above example, just follow the requirements.
\end{enumerate}

\begin{table}[htbp]
  \centering
  \caption{cover element information}
  \begin{tabular}{cccccc}
    \hline
    Information & Commands & Information & Commands & Information & Commands \\
    \hline
    Title & \lstinline|\title| & subtitle & \lstinline|\subtitle| & author & \lstinline|\author| \\
    Publisher & \lstinline|\pressname| & Version & \lstinline|\edition| & cover image & \lstinline|\coverimage|\\
    Logo & \lstinline|\presslogo| & English title (cn)&\lstinline|\entitle|&&\\
    \hline
  \end{tabular}
\end{table}

\subsection{cover image}
The cover image can be found by yourself. 

\subsection{logo}

The logo used in this article is the springer classic horse logo that the wiki finds at random, you can query and download the publisher logo by yourself, in order to avoid infringement, please choose a suitable and legal picture to replace when replacing the picture.

\subsection{custom cover}

In addition, if you use a custom cover, such as an A4 PDF document made by Adobe illustror or other software, comment out \lstinline{makecover}, and then insert the custom cover with the help of the \lstinline{pdfpages} macro package. It is similar if you use the \lstinline{titlepage} environment.

\section{chapter title}

This template customizes a set of heading styles, mainly Part, Chapter, Section three headings, see CLS for specific code. It may not suit everyone's aesthetic, and commenting it out will return to the default ctexbook heading style.

\section{Introduction to the Mathematical Environment}

In our template, we have defined four different theorem modes, including simple mode (default theorem style amsthm), a little custom thmtools, a color emphasis box, and an exclusive copyright box developed by me, of course, the ancient style box customized by Mr. Kirigetsu You can also use it as a theorem box, just add lstinline{ys style} to the first theorem style in the introduction area of this document. 
\subsection{Use of theorem class environment}
The following is a demonstration of the use effect
subsubsection{amsthm}
\begin{remark}
    This is an amsthm-based annotation environment
\end{remark}
\subsubsection{thmtools}
\begin{proof}[description of proof]
    Proof environment
\end{proof}

\begin{solution}[test sol.]
    Solution environment
\end{solution}
\subsubsection{color accent box}
\begin{defi}[name of the definition]\label{defi:def test}
    The first defines the environment
\end{defi}

\begin{thm}[name of the thm]\label{thm:thm test}
    The first theorem environment
\end{thm}

\begin{cor}[name of the corollary]\label{cor:cor test}
    The first inference environment
\end{cor}

\begin{prop}[name of the prop]\label{prop:prop test}
    The first propositional environment
\end{prop}

\begin{exam}[name of the example]\label{exam:exam test}
    The first example problem environment
\end{exam}

\begin{lem}[name of the lem]\label{lem:lem test}
    The first lemma environment
\end{lem}
\clearpage
\subsubsection{There are two types of boxes for personal copyright}

\begin{definition}[][Name][def label] 
    This is a custom box custom theorem environment, which is an example of where the environment is defined. Note: Use as follows

\begin{itemize}
        \item If you don't have a name and label, use it as \begin{lstlisting}
        \begin{definition}
            Define the environment content
        \end{definition}
    \end{lstlisting}
        \item If you don't have a label but have a name, use it as \begin{lstlisting}
            \begin{definition}[][Name]
                Define the environment content
            \end{definition}
        \end{lstlisting}
        \item If you have a tag, then whether or not it has a name, use it as \begin{lstlisting}
            \begin{definition}[][Yes, fill in, no blank][Tag]
                Define the environment content
            \end{definition}
        \end{lstlisting}
        \item If you want to change some setting options of the box, such as bordering, etc., use it
        \begin{lstlisting}
            \begin{definition}[tcolorbox option][write the name if it has, delete it with the outer parentheses if it does not][tag (there is a tag under the tag, there is no tag can delete the label with the outer parentheses)]
                Define the environment content
            \end{definition}
        \end{lstlisting}
    \end{itemize}

\end{definition}

\begin{theorem}
    The usage is the same as above, refer to the tag \ref{def label} below or you can \autoref{def label}.
\end{theorem}

\begin{lemma}
    The usage is the same as above, refer to the tag \ref{def label} below or you can \autoref{def label}.
\end{lemma}

\begin{corollary}
    The usage is the same as above, refer to the tag \ref{def label} below or you can \autoref{def label}.
\end{corollary}

\begin{example}
    The usage is the same as above, refer to the tag \ref{def label} below or you can \autoref{def label}.
\end{example}

Antique box 
\begin{fancybox}
Antique box test, you can nest other environments arbitrarily!
\end{fancybox}

\subsection{modify counter}

If you want to modify the theorem environment to count by section, you can modify the \lstinline{chapter} in the counter option \lstinline{ counter/.code}, the available options are \lstinline{chapter} (default) and \lstinline{section}, \lstinline{subsection}, etc
\subsection{custom theorem class environment}
Users can define their own theorem environment in four ways, namely amsthm and thmtools, which can be seen in the macro package documentation; The latter two theorems are defined in the following way.

For example, in the introduction to this document:
\begin{lstlisting}
    % This is the first one.
    \mynewtheorem{
        defi={\textbf{Definition}}[section]{interior style={left color=ReD!8,right color=ReD!5!CyaN!50}, borderline west={1.5mm}{0mm}{ReD}}, 
    }

    % This is the second one.
    \mynewtcbtheorem{
    theorem={ % Christmas gift box style
        counter=tcbthm, 
        the counter=\thesection.\arabic{tcbthm}, 
        name=Theorem, % It is saved to \theorem@name.
        thmcolor=purple5,
        autoref name=\bfseries Theorem, 
        style={
        arc=3pt,breakable,enhanced,interior style={top color=purple5!5 ,middle color=purple5!1!nuanbai, bottom color=nuanbai},boxrule=0pt,top=8mm,
        fuzzy shadow={-0.6mm}{0.6mm}{0mm}{0.3mm}{white!50!gray},% shadow up
        fuzzy shadow={0.6mm}{-0.6mm}{0mm}{0.3mm}{fill=white!40!gray},% shadow down
        opacityframe=0, opacityback=0.98,
        fontupper=\itshape, step={tcbthm},
        before pre=\smallskip, after app=\smallskip,
        overlay unbroken=\my@theorem@overlay@unbroken{\theorem@name\ \thetcbthm}{\theorem@thmcolor},
        overlay first=\my@theorem@overlay@first{\theorem@name\ \thetcbthm}{\theorem@thmcolor},
        overlay last=\my@theorem@overlay@last{\theorem@thmcolor},
        }
    },
    lemma={ %  Ribbon style
        counter=tcblem,
        the counter=\thesection.\arabic{tcblem},
        name=Lemma, 
        lemcolor=(color), 
        autoref name=\bfseries Lemma,
        style={
        arc=0mm,breakable,enhanced,interior style={top color=(color)!5 ,middle color=(color)!1!nuanbai, bottom color=nuanbai},arc=3pt,boxrule=0pt,top=7mm,bottom=5mm,
        fuzzy shadow={-0.6mm}{0.6mm}{0mm}{0.3mm}{white!50!gray},% shadow up
        fuzzy shadow={0.6mm}{-0.6mm}{0mm}{0.3mm}{fill=white!40!gray},%shadow down
        opacityframe=0, opacityback=0.98,
        fontupper=\normalsize,step={tcblem},
        before pre=\smallskip, after app=\smallskip,
        overlay unbroken=\my@lemma@overlay@unbroken{\lemma@name\ \thetcblem}{\lemma@lemcolor},
        overlay first=\my@lemma@overlay@first{\lemma@name\ \thetcblem}{\lemma@lemcolor},
        overlay last=\my@lemma@overlay@last{\lemma@lemcolor},
        }
    },
}
\end{lstlisting}
\begin{remark}
    To explain, the overlay part needs to be changed Chinese seen, the theorem name is changed to what you want, and the color is also, and then don't forget to change the outermost environment name such as example to yours, such as axiom and the like, and the counter name of tcbexam should be replaced with your new definition, such as tcbaxiom and the like, and the rest does not need to be moved. As for the first theorem style, look at the above example, I believe you can learn.
\end{remark}

\section{list environment}
This template is customizable with the help of lstinline{enumitem}, see the enumitem macro package documentation, here the example is as follows\\[2ex]
\begin{minipage}[b]{0.49\textwidth}
  \begin{itemize}[label=$\bigodot $]
    \item first item of nesti;
    \item second item of nesti;
      \begin{itemize}
        \item first item of nestii;
        \item second item of nestii;
        \begin{itemize}
          \item first item of nestiii;
          \item second item of nestiii.
        \end{itemize}   
      \end{itemize}
  \end{itemize}
\end{minipage}
\begin{minipage}[b]{0.49\textwidth}
  \begin{enumerate}[label=\arabic*)]
    \item first item of nesti;
    \item second item of nesti;
      \begin{enumerate}
        \item first item of nestii;
        \item second item of nestii;
        \begin{enumerate}
          \item first item of nestiii;
          \item second item of nestiii.
        \end{enumerate}   
      \end{enumerate}
  \end{enumerate}
\end{minipage}
\section{References}

\subsection{print document}

\lstinline{ref.bib} is a file stored in the reference and needs to be placed in the project folder.

\subsection{modify document format}

In addition, this template calls the Biblatex macro package and provides Biber engine compilation references, of course, you can also directly delete the Biblatex macro package in cls file (the last few lines of cls) to use Bibtex.

For bib items, you can pick them up in Google Scholar, Mendeley, Endnote and add them to lstinline{ref.bib}. When quoting in the text, just quote their bib key.

The document style defaults to GB GB7714-2015, reference example: \cite{Huybrechts2010Complex}.

If you need to set to a numeric style, you need to change the GB in the biblatex macro package option to numerical.
\begin{lstlisting}
\usepackage[
backend=biber, % can be changed to bibtex (or simply delete bibtex)
style=GB7714-2015, % can be changed to numerical
sorting=nty
]{biblatex}
\addbibresource{ref.bib}
\end{lstlisting}

\chapter{font options}
The reason why the font options are independent is that we hope that users of this template care about the fonts used by the template, know the fonts they use and encounter font-related problems more easily to find answers.

This template uses the fonts provided by Ctex's Windows options by default, if not necessary, the font should not be changed, of course, if you really need to, you can follow the following code:
\begin{lstlisting}
    \setCJKmainfont[Path=fonts/,BoldFont={XX.TTF},ItalicFont={YY.TTF},SlantedFont = {ZZ.TTF} , SlantedFeatures = {FakeSlant}]{WW.TTF}
    \setCJKsansfont[Path=fonts/,BoldFont={XX.TTF},ItalicFont={XX.TTF}]{XX.TTF}
    \setCJKmonofont[Path=fonts/,BoldFont={XX.TTF},ItalicFont={XX.TTF}]{XX.TTF}
    % Setting new CJK font family
    \newCJKfontfamily[song]\songti{XX.TTF}[Path=fonts/]
    % Setting new font family
    \newfontfamily\largetitlestyle[Path=fonts/]{XX.TTF}
\end{lstlisting}



\appendix 
\chapter{cover effect display}
\section{cover en as shown in this document}
\section{See attachment in folder for other covers}



\normalem
\printbibliography[
heading=bibintoc,
title={References}
]
\printindex
\thispagestyle{empty}
\bottomimage{inner_pics/ivy-ge998908f8_1280.jpg}
\ISBNcode{\EANisbn[ISBN=978-80-7340-097-2]} %
\summary{This is the area of the bottom information!}
\makebottomcover
\end{document}