Debian Codegraph @

texmf-dist/doc/latex/beautybook/beautybook-en.tex

raw
1 \documentclass[lang=en,12pt]{beautybook}
2 \RequirePackage[utf8]{inputenc}
3 \RequirePackage{times} % Times New Roman Font
4 \RequirePackage[T1]{fontenc}
5 \RequirePackage{microtype}
6 \RequirePackage{pgfplots}
7 \tikzset{>=Stealth}
8 \pgfplotsset{compat=1.18}
9 % ---------------------------------------------------------------------------- %
10 % The Cover Theme Chosen %
11 % ---------------------------------------------------------------------------- %
12 \definecolor{coverbgcolor}{HTML}{e0e0e0}
13 \definecolor{coverfgcolor}{HTML}{1f3134} % The color of the background
14 \definecolor{coverbar}{HTML}{7c9092} % The color of the left bar
15 \definecolor{bottomcolor}{HTML}{2c4f54}
16 \definecolor{nuanbai}{HTML}{f5f5f5}
17 \coverstyle={ % cover-keys
18 cover-choose=en, % cn ; en ; enfig ; birkar
19 }
20 % ---------------------------------------------------------------------------- %
21 % The Cover Theme Chosen %
22 % ---------------------------------------------------------------------------- %
23 \mathstyle={
24 math-font=plain, % plain; stix; mtpro2
25 }
26 \usepackage{bm}
27 \renewcommand*{\textfraction}{0.05}
28 \renewcommand*{\topfraction}{0.9}
29 \renewcommand*{\bottomfraction}{0.8}
30 \renewcommand*{\floatpagefraction}{0.85}
31
32 % \overfullrule=1pt
33 % \RequirePackage[fontsize=13.5pt]{fontsize}
34 %% First one
35 \mynewtheorem{
36 defi={\textbf{Definition}}[section]{interior style={left color=ReD!8,right color=ReD!5!CyaN!50}, borderline west={1.5mm}{0mm}{ReD}},
37 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}},
38 lem={\textbf{Lemma}}[section]{interior style={left color=BluE!8,right color=BluE!5!CyaN!50}, borderline west={1.5mm}{0mm}{BluE}},
39 prop={\textbf{Proposition}}[section]{interior style={left color=OrangE!8,right color=OrangE!5!CyaN!50}, borderline west={1.5mm}{0mm}{OrangE}},
40 exam={\textbf{Example}}[chapter]{interior style={left color=DarkGreen!8,right color=DarkGreen!5!CyaN!50}, borderline west={1.5mm}{0mm}{DarkGreen}},
41 cor={\textbf{Corollary}}[chapter]{interior style={left color=violet!8,right color=violet!5!CyaN!50}, borderline west={1.5mm}{0mm}{violet}},
42 }
43 \newtheorem*{remark}{\textbf{Remark}}
44 %% Second one
45 \makeatletter
46 \mynewtcbtheorem{
47 % theorem-environment
48 problem={
49 counter=tcbprob,
50 the counter=\thesection.\arabic{tcbprob},
51 name=Problem, % it will be saved in \theorem@name
52 thmcolor=绛紫,
53 autoref name=\bfseries Problem,
54 style={
55 arc=3pt,breakable,enhanced,interior style={top color=绛紫!9 ,middle color=绛紫!6, bottom color=绛紫!3},boxrule=0pt,top=8mm,
56 fuzzy shadow={-0.6mm}{0.6mm}{0mm}{0.3mm}{white!50!gray},% up
57 fuzzy shadow={0.6mm}{-0.6mm}{0mm}{0.3mm}{fill=white!40!gray},%down
58 opacityframe=0, opacityback=0.98,
59 fontupper=\itshape, step={tcbprob},
60 before pre=\smallskip, after app=\smallskip,
61 overlay unbroken=\my@theorem@overlay@unbroken{Problem\ \thetcbprob}{绛紫},
62 overlay first=\my@theorem@overlay@first{Problem\ \thetcbprob}{绛紫},
63 overlay last=\my@theorem@overlay@last{绛紫},
64 }
65 },
66 lemma={
67 counter=tcblem,
68 the counter=\thesection.\arabic{tcblem},
69 name=Lemma,
70 lemcolor=靛蓝,
71 autoref name=\bfseries Lemma,
72 style={
73 arc=0mm,breakable,enhanced,interior style={top color=靛蓝!9 ,middle color=靛蓝!6, bottom color=靛蓝!3},arc=3pt,boxrule=0pt,top=6mm,bottom=5mm,
74 fuzzy shadow={-0.6mm}{0.6mm}{0mm}{0.3mm}{white!50!gray},%
75 fuzzy shadow={0.6mm}{-0.6mm}{0mm}{0.3mm}{fill=white!40!gray},%
76 opacityframe=0, opacityback=0.98,
77 fontupper=\itshape,step={tcblem},
78 before pre=\smallskip, after app=\smallskip,
79 overlay unbroken=\my@lemma@overlay@unbroken{\lemma@name\ \thetcblem}{\lemma@lemcolor},
80 overlay first=\my@lemma@overlay@first{\lemma@name\ \thetcblem}{\lemma@lemcolor},
81 overlay last=\my@lemma@overlay@last{\lemma@lemcolor},
82 }
83 },
84 corollary={
85 counter=tcbcor,
86 the counter=\thesection.\arabic{tcbcor},
87 autoref name=\bfseries Corollary,
88 style={
89 arc=0mm,breakable,enhanced,interior style={top color=茶色!9 ,middle color=茶色!6, bottom color=茶色!3},arc=3pt,boxrule=0pt,top=6mm,bottom=5mm,
90 fuzzy shadow={-0.6mm}{0.6mm}{0mm}{0.3mm}{white!50!gray},%
91 fuzzy shadow={0.6mm}{-0.6mm}{0mm}{0.3mm}{fill=white!40!gray},%
92 opacityframe=0, opacityback=0.98,
93 fontupper=\itshape,step={tcbcor},
94 before pre=\smallskip, after app=\smallskip,
95 overlay unbroken=\my@lemma@overlay@unbroken{Corollary\ \thetcbcor}{茶色},
96 overlay first=\my@lemma@overlay@first{Corollary\ \thetcbcor}{茶色},
97 overlay last=\my@lemma@overlay@last{茶色},
98 }
99 },
100 proposition={
101 counter=tcbprop,
102 the counter=\thesection.\arabic{tcbprop},
103 autoref name=\bfseries Proposition,
104 style={
105 arc=0mm,breakable,enhanced,interior style={top color=黛绿!9 ,middle color=黛绿!6, bottom color=黛绿!3},arc=3pt,boxrule=0pt,top=6mm,bottom=5mm,
106 fuzzy shadow={-0.6mm}{0.6mm}{0mm}{0.3mm}{white!50!gray},%
107 fuzzy shadow={0.6mm}{-0.6mm}{0mm}{0.3mm}{fill=white!40!gray},%
108 opacityframe=0, opacityback=0.98,
109 fontupper=\itshape,step={tcbprop},
110 before pre=\smallskip, after app=\smallskip,
111 overlay unbroken=\my@lemma@overlay@unbroken{Proposition\ \thetcbprop}{黛绿},
112 overlay first=\my@lemma@overlay@first{Proposition\ \thetcbprop}{黛绿},
113 overlay last=\my@lemma@overlay@last{黛绿},
114 }
115 },
116 definition={
117 counter=tcbdefi,
118 the counter=\thesection.\arabic{tcbdefi},
119 autoref name=\bfseries Definition,
120 style={
121 arc=0mm,breakable,enhanced,interior style={top color=茜色!9 ,middle color=茜色!6, bottom color=茜色!3},arc=3pt,boxrule=0pt,top=6mm,bottom=5mm,
122 fuzzy shadow={-0.6mm}{0.6mm}{0mm}{0.3mm}{white!50!gray},%
123 fuzzy shadow={0.6mm}{-0.6mm}{0mm}{0.3mm}{fill=white!40!gray},%
124 opacityframe=0, opacityback=0.98,
125 fontupper=\normalsize,step={tcbdefi},
126 before pre=\smallskip, after app=\smallskip,
127 overlay unbroken=\my@lemma@overlay@unbroken{Definition\ \thetcbdefi}{茜色},
128 overlay first=\my@lemma@overlay@first{Definition\ \thetcbdefi}{茜色},
129 overlay last=\my@lemma@overlay@last{茜色},
130 }
131 },
132 example={
133 counter=tcbexam,
134 the counter=\thesection.\arabic{tcbexam},
135 autoref name=\bfseries Example,
136 style={
137 arc=0mm,breakable,enhanced,interior style={top color=黛绿!9 ,middle color=黛绿!6, bottom color=黛绿!3},arc=3pt,boxrule=0pt,top=6mm,bottom=5mm,
138 fuzzy shadow={-0.6mm}{0.6mm}{0mm}{0.3mm}{white!50!gray},%
139 fuzzy shadow={0.6mm}{-0.6mm}{0mm}{0.3mm}{fill=white!40!gray},%
140 opacityframe=0, opacityback=0.98,
141 fontupper=\normalsize,step={tcbexam},
142 before pre=\smallskip, after app=\smallskip,
143 overlay unbroken=\my@lemma@overlay@unbroken{Example\ \thetcbexam}{黛绿},
144 overlay first=\my@lemma@overlay@first{Example\ \thetcbexam}{黛绿},
145 overlay last=\my@lemma@overlay@last{黛绿},
146 }
147 },
148 Exercise={
149 counter=tcbexer,
150 the counter=\thechapter.\arabic{tcbexer},
151 autoref name=\bfseries Exercise,
152 style={
153 arc=0mm,breakable,enhanced,interior style={top color=绛紫!9 ,middle color=绛紫!6, bottom color=绛紫!3},arc=3pt,boxrule=0pt,top=6mm,bottom=5mm,
154 fuzzy shadow={-0.6mm}{0.6mm}{0mm}{0.3mm}{white!50!gray},%
155 fuzzy shadow={0.6mm}{-0.6mm}{0mm}{0.3mm}{fill=white!40!gray},%
156 opacityframe=0, opacityback=0.9,
157 fontupper=\normalsize,step={tcbexer},
158 before pre=\smallskip, after app=\smallskip,
159 overlay unbroken=\my@lemma@overlay@unbroken{Exercise\ \thetcbexer}{绛紫},
160 overlay first=\my@lemma@overlay@first{Exercise\ \thetcbexer}{绛紫},
161 overlay last=\my@lemma@overlay@last{绛紫},
162 }
163 },
164 theorem={
165 counter=tcbthm,
166 the counter=\thesection.\arabic{tcbthm},
167 autoref name=\bfseries Theorem,
168 style={
169 arc=0mm,breakable,enhanced,interior style={top color=黛绿!9 ,middle color=黛绿!6, bottom color=黛绿!3},arc=3pt,boxrule=0pt,top=6mm,bottom=5mm,
170 fuzzy shadow={-0.6mm}{0.6mm}{0mm}{0.3mm}{white!50!gray},%
171 fuzzy shadow={0.6mm}{-0.6mm}{0mm}{0.3mm}{fill=white!40!gray},%
172 opacityframe=0, opacityback=0.98,
173 fontupper=\itshape,step={tcbthm},
174 before pre=\smallskip, after app=\smallskip,
175 overlay unbroken=\my@lemma@overlay@unbroken{Theorem\ \thetcbthm}{黛绿},
176 overlay first=\my@lemma@overlay@first{Theorem\ \thetcbthm}{黛绿},
177 overlay last=\my@lemma@overlay@last{黛绿},
178 }
179 },
180 conjecture={
181 counter=tcbconj,
182 the counter=\thesection.\arabic{tcbconj},
183 name=Conjecture,
184 lemcolor=靛蓝,
185 autoref name=\bfseries Conjecture,
186 style={
187 arc=0mm,breakable,enhanced,interior style={top color=靛蓝!9 ,middle color=靛蓝!6, bottom color=靛蓝!3},arc=3pt,boxrule=0pt,top=6mm,bottom=5mm,
188 fuzzy shadow={-0.6mm}{0.6mm}{0mm}{0.3mm}{white!50!gray},%
189 fuzzy shadow={0.6mm}{-0.6mm}{0mm}{0.3mm}{fill=white!40!gray},%
190 opacityframe=0, opacityback=0.98,
191 fontupper=\itshape,step={tcbconj},
192 before pre=\smallskip, after app=\smallskip,
193 overlay unbroken=\my@lemma@overlay@unbroken{Conjecture\ \thetcblem}{靛蓝},
194 overlay first=\my@lemma@overlay@first{Conjecture\ \thetcblem}{靛蓝},
195 overlay last=\my@lemma@overlay@last{靛蓝},
196 }
197 },
198 }
199 \makeatother
200 %
201
202
203 %% --------reference
204 \RequirePackage[
205 backend=biber,
206 style=numeric,
207 sorting=nty
208 ]{biblatex}
209 \addbibresource{ref.bib}
210
211 \indexsetup{level=\chapter*,noclearpage}
212 \makeindex[title={\sffamily References},columns=3,columnsep=15pt,columnseprule]
213 \makeindex
214
215 \usepackage{listings}
216 \lstset{
217 basicstyle=\small\ttfamily,
218 keywordstyle=\color{NavyBlue},
219 commentstyle=\color{gray!50!black!50},
220 stringstyle=\rmfamily\slshape\color{red},
221 backgroundcolor=\color{gray!5},
222 frame=leftline,
223 framerule=0.5pt,rulecolor=\color{gray!80},
224 numbers=left,
225 numberstyle=\footnotesize,
226 firstnumber=1,
227 stepnumber=1,
228 numbersep=7pt,
229 aboveskip=.25em,
230 showspaces=false,
231 showstringspaces=false,
232 keepspaces=true,
233 showtabs=false,
234 tabsize=2,
235 captionpos=b,
236 flexiblecolumns=true,
237 breaklines=true,
238 breakatwhitespace=false,
239 breakautoindent=true,
240 breakindent=1em,
241 title=\lstname,
242 escapeinside=``,
243 xleftmargin=1em, xrightmargin=1em,
244 aboveskip=1ex, belowskip=1ex,
245 framextopmargin=1pt, framexbottommargin=1pt,
246 abovecaptionskip=-2pt,belowcaptionskip=3pt,
247 extendedchars=false, columns=flexible, mathescape=true,
248 texcl=true,
249 fontadjust
250 }%
251
252 \begin{document}
253 \thispagestyle{empty}
254 \title{An Introduction to beautybook template}
255 \subtitle{A subtitle here}
256 \edition{First Edition}
257 \bookseries{Ilustrated by Ethan Lu}
258 \author{Ethan Lu}
259 \pressname{beautybook}
260 \presslogo{inner_pics/beautybook-logo.png}
261 \coverimage{inner_pics/coverimage.jpg}%ivy-ge998908f8_1280.jpg
262 \makecover
263
264 \makeatletter
265 % ---------------------------------------------------------------------------- %
266 % The Sidebar Theme Chosen %
267 % ---------------------------------------------------------------------------- %
268 \definecolor{bg}{HTML}{e0e0e0}
269 \definecolor{fg}{HTML}{2c4f54}
270 \colorlet{outermarginbgcolor}{bg}
271 \colorlet{outermarginfgcolor}{fg}
272 % set the contents of the outer margin on even and odd pages for scrheadings, plain and scth
273 \oddoutermargin{\sffamily \leftmark} % Odd
274 \evenoutermargin{\sffamily\@title} % Even
275 % ---------------------------------------------------------------------------- %
276 % The Sidebar Theme Chosen %
277 % ---------------------------------------------------------------------------- %
278
279 % ---------------------------------------------------------------------------- %
280 % The images used in the title %
281 % ---------------------------------------------------------------------------- %
282 \titleimage{
283 chapteroddimage={odd1,odd2,odd3,odd4,odd5,odd6,odd7,odd8,odd9,odd10,odd11,odd12,odd13,odd14,odd15,mid1,mid2,mid3,mid4,mid5,mid6,mid7,mid8,mid9,mid10,mid11},
284 %
285 partoddimage={odd1,odd2,odd3,odd4,odd5,odd6,odd7,odd8,odd9,odd10,odd11,odd12,odd13,odd14,odd15,mid1,mid2,mid3,mid4,mid5,mid6,mid7,mid8,mid9,mid10,mid11},
286 %
287 chapterevenimage={songeven,even1,even2,even3,even4,mid1,mid2,mid3,mid4,mid5,mid6,mid7,mid8,mid9,mid10,mid11},
288 %
289 partevenimage={songeven,even1,even2,even3,even4,mid1,mid2,mid3,mid4,mid5,mid6,mid7,mid8,mid9,mid10,mid11},
290 }
291 \chapimage{\beautybook@chapterimagename}
292 \partimage{\beautybook@partimagename}
293 \makeatother
294 % ---------------------------------------------------------------------------- %
295 % The images used in the title %
296 % ---------------------------------------------------------------------------- %
297
298 % ---------------------------------------------------------------------------- %
299 % The Color Chosen for The Magic Box %
300 % ---------------------------------------------------------------------------- %
301 \colorlet{framegolden}{fg} % The line color of the magic box
302 \colorlet{framegray}{bg!50} % The background color of the magic box
303 % ---------------------------------------------------------------------------- %
304 % The Color Chosen for The Magic Box %
305 % ---------------------------------------------------------------------------- %
306
307 \frontmatter
308 \pagenumbering{Roman}
309
310 {% Preface
311 \thispagestyle{empty}
312 % \addcontentsline{toc}{chapter}{Preface}
313 \chapter*{Preface}
314 An introduction to the beautybook template.
315
316
317 \hfill
318 \begin{tabular}{lr}
319 &-- Ethan Lu\\
320 & 2024-06-30
321 \end{tabular}
322 \clearpage}
323 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
324
325 \thispagestyle{empty}
326 \tableofcontents\let\cleardoublepage\clearpage
327
328
329 \mainmatter
330 \pagenumbering{arabic}
331
332 \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.}
333 \part{The template usage introduction of \textbf{beautybook}}
334
335 \chapter{A short introduction of \textbf{beautybook}}
336
337 \section{Introduction}
338
339 The Beauty\LaTeX{} collection is a series of templates authored by a humble, unknown individual. In fact, there are only two series, one is the custom book template \textbf{fancybook } , which is dedicated to the fresh and elegant style, the other is my flagship product-\textbf{ beautybook } ! Why did I choose such an unusual name? My answer is, originally I wanted to name it elegantboook, but there is already the famous elegantbook template. Inspired by the old poem "There is a jade-like beauty waiting for you in the book", the template is named ``beautybook", which means a beautiful woman in your arms and the fragrance of a book overflowing! Therefore, this is the origin of the name \textbf{beautybook } !
340
341
342 I am committed to creating a series of beautiful, elegant, simple template to facilitate the use of users and myself. 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 download it and try it yourself!
343
344
345 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
346 \href{https://github.com/BeautyLaTeX/latex-template/issues}{issues} or \href{[email protected]}{163 mail} or QQ mail \href{[email protected]}{QQ mail}.
347
348
349 The Project Addresses are the following.
350 \begin{itemize}
351 \item GitHub repository: \href{https://github.com/BeautyLaTeX/latex-template}{https://github.com/BeautyLaTeX/latex-template},
352 \item Texpage : \href{https://www.texpage.com/template/8dc933fc-6579-44c9-b660-ea58409d193b}{https://www.texpage.com/template/8dc933fc-6579-44c9-b660-ea58409d193b}
353 \item Download Release: \href{https://github.com/BeautyLaTeX/latex-template/releases}{Official release},
354 \item User QQ Group: 809237593. (!If you are not in China, please e-mail me at \href{[email protected]}{outlook-email}.)
355 \end{itemize}
356
357 \textit{This work is released under the LaTeX Project Public License, v1.3c or later.}
358
359 \section{Installation and Maintenance of Template}
360
361 There are two ways you can use this template. The first method is trivial that just download the zip of template from above channel, and then unzip and compile the main file in the archive (i.e. a file with a name like ``beautybook-xx. tex"). The second way is uploading the zip of template to \texttt{overleaf} to comply.
362
363 Note that if you choose the second way, you must write \lstinline{math-font=plain} in the premble of the main file!
364
365 It is worth noting that when you download the template from CTAN, then the English version of it does not use any third-party fonts, so that one can be compiled using \texttt{pdflatex}. This is an exception to the rule under which all other files must be compiled using the \texttt{XeLaTeX} engine.
366
367 \subsection{Local Installation}
368
369 To install locally, follow above steps to download the latest version from GitHub, CTAN or the QQ group.
370
371 The following is an example of a minimal work:
372
373 \begin{lstlisting}
374 \documentclass[lang=en,12pt]{beautybook}
375 \RequirePackage[utf8]{inputenc}
376 \RequirePackage{times} % Times New Roman Font
377 \RequirePackage[T1]{fontenc}
378 \RequirePackage{microtype}
379 \RequirePackage{pgfplots}
380 \tikzset{>=Stealth}
381 \pgfplotsset{compat=1.18}
382 % ------------------------------------------------- %
383 % The Cover Theme Chosen %
384 % ------------------------------------------------- %
385 \definecolor{coverbgcolor}{HTML}{e0e0e0}
386 \definecolor{coverfgcolor}{HTML}{1f3134} % The color of the background
387 \definecolor{coverbar}{HTML}{7c9092} % The color of the left bar
388 \definecolor{bottomcolor}{HTML}{2c4f54}
389 \definecolor{nuanbai}{HTML}{f5f5f5}
390 \coverstyle={ % cover-keys
391 cover-choose=cn, % cn ; en ; enfig ; birkar
392 }
393 % ---------------------------------------------------------------------------- %
394 % The Cover Theme Chosen %
395 % ---------------------------------------------------------------------------- %
396 \mathstyle={
397 math-font=plain, % plain; stix; mtpro2
398 }
399 %% First one
400 \mynewtheorem{
401 defi={\textbf{Definition}}[section]{interior style={left color=ReD!8,right color=ReD!5!CyaN!50}, borderline west={1.5mm}{0mm}{ReD}},
402 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}},
403 lem={\textbf{Lemma}}[section]{interior style={left color=BluE!8,right color=BluE!5!CyaN!50}, borderline west={1.5mm}{0mm}{BluE}},
404 prop={\textbf{Proposition}}[section]{interior style={left color=OrangE!8,right color=OrangE!5!CyaN!50}, borderline west={1.5mm}{0mm}{OrangE}},
405 exam={\textbf{Example}}[chapter]{interior style={left color=DarkGreen!8,right color=DarkGreen!5!CyaN!50}, borderline west={1.5mm}{0mm}{DarkGreen}},
406 cor={\textbf{Corollary}}[chapter]{interior style={left color=violet!8,right color=violet!5!CyaN!50}, borderline west={1.5mm}{0mm}{violet}},
407 }
408 \newtheorem*{remark}{\textbf{Remark}}
409 %% Second one
410 \makeatletter
411 \mynewtcbtheorem{
412 % theorem environment
413 problem={
414 counter=tcbprob,
415 the counter=\thesection.\arabic{tcbprob},
416 name=Problem,
417 thmcolor=purple,
418 autoref name=\bfseries Problem,
419 style={
420 arc=3pt,breakable,enhanced,interior style={top color=purplepurplepurplegreen!9 ,middle color=purplepurplepurplegreen!6, bottom color=purplepurplepurplegreen!3},boxrule=0pt,top=8mm,
421 fuzzy shadow={-0.6mm}{0.6mm}{0mm}{0.3mm}{white!50!gray},% up
422 fuzzy shadow={0.6mm}{-0.6mm}{0mm}{0.3mm}{fill=white!40!gray},%down
423 opacityframe=0, opacityback=0.98,
424 fontupper=\itshape, step={tcbprob},
425 before pre=\smallskip, after app=\smallskip,
426 overlay unbroken=\my@theorem@overlay@unbroken{Problem\ \thetcbprob}{purplepurplepurplegreen},
427 overlay first=\my@theorem@overlay@first{Problem\ \thetcbprob}{purplepurplepurplegreen},
428 overlay last=\my@theorem@overlay@last{purplepurplepurplegreen},
429 }
430 },
431 lemma={
432 counter=tcblem,
433 the counter=\thesection.\arabic{tcblem},
434 name=Lemma,
435 lemcolor=purplepurplegreen,
436 autoref name=\bfseries Lemma,
437 style={
438 arc=0mm,breakable,enhanced,interior style={top color=purplepurplegreen!9 ,middle color=purplepurplegreen!6, bottom color=purplepurplegreen!3},arc=3pt,boxrule=0pt,top=6mm,bottom=5mm,
439 fuzzy shadow={-0.6mm}{0.6mm}{0mm}{0.3mm}{white!50!gray},%
440 fuzzy shadow={0.6mm}{-0.6mm}{0mm}{0.3mm}{fill=white!40!gray},%
441 opacityframe=0, opacityback=0.98,
442 fontupper=\itshape,step={tcblem},
443 before pre=\smallskip, after app=\smallskip,
444 overlay unbroken=\my@lemma@overlay@unbroken{\lemma@name\ \thetcblem}{\lemma@lemcolor},
445 overlay first=\my@lemma@overlay@first{\lemma@name\ \thetcblem}{\lemma@lemcolor},
446 overlay last=\my@lemma@overlay@last{\lemma@lemcolor},
447 }
448 },
449 corollary={
450 counter=tcbcor,
451 the counter=\thesection.\arabic{tcbcor},
452 autoref name=\bfseries Corollary,
453 style={
454 arc=0mm,breakable,enhanced,interior style={top color=purplegreen!9 ,middle color=purplegreen!6, bottom color=purplegreen!3},arc=3pt,boxrule=0pt,top=6mm,bottom=5mm,
455 fuzzy shadow={-0.6mm}{0.6mm}{0mm}{0.3mm}{white!50!gray},%
456 fuzzy shadow={0.6mm}{-0.6mm}{0mm}{0.3mm}{fill=white!40!gray},%
457 opacityframe=0, opacityback=0.98,
458 fontupper=\itshape,step={tcbcor},
459 before pre=\smallskip, after app=\smallskip,
460 overlay unbroken=\my@lemma@overlay@unbroken{Corollary\ \thetcbcor}{purplegreen},
461 overlay first=\my@lemma@overlay@first{Corollary\ \thetcbcor}{purplegreen},
462 overlay last=\my@lemma@overlay@last{purplegreen},
463 }
464 },
465 proposition={
466 counter=tcbprop,
467 the counter=\thesection.\arabic{tcbprop},
468 autoref name=\bfseries Proposition,
469 style={
470 arc=0mm,breakable,enhanced,interior style={top color=green!9 ,middle color=green!6, bottom color=green!3},arc=3pt,boxrule=0pt,top=6mm,bottom=5mm,
471 fuzzy shadow={-0.6mm}{0.6mm}{0mm}{0.3mm}{white!50!gray},%
472 fuzzy shadow={0.6mm}{-0.6mm}{0mm}{0.3mm}{fill=white!40!gray},%
473 opacityframe=0, opacityback=0.98,
474 fontupper=\itshape,step={tcbprop},purplered
475 before pre=\smallskip, after app=\smallskip,
476 overlay unbroken=\my@lemma@overlay@unbroken{Proposition\ \thetcbprop}{green},
477 overlay first=\my@lemma@overlay@first{Proposition\ \thetcbprop}{green},
478 overlay last=\my@lemma@overlay@last{green},
479 }
480 },
481 definition={
482 counter=tcbdefi,
483 the counter=\thesection.\arabic{tcbdefi},
484 autoref name=\bfseries Definition,
485 style={
486 arc=0mm,breakable,enhanced,interior style={top color=purplered!9 ,middle color=purplered!6, bottom color=purplered!3},arc=3pt,boxrule=0pt,top=6mm,bottom=5mm,
487 fuzzy shadow={-0.6mm}{0.6mm}{0mm}{0.3mm}{white!50!gray},%
488 fuzzy shadow={0.6mm}{-0.6mm}{0mm}{0.3mm}{fill=white!40!gray},%
489 opacityframe=0, opacityback=0.98,
490 fontupper=\normalsize,step={tcbdefi},
491 before pre=\smallskip, after app=\smallskip,
492 overlay unbroken=\my@lemma@overlay@unbroken{Definition\ \thetcbdefi}{purplered},
493 overlay first=\my@lemma@overlay@first{Definition\ \thetcbdefi}{purplered},
494 overlay last=\my@lemma@overlay@last{purplered},
495 }
496 },
497 example={
498 counter=tcbexam,
499 the counter=\thesection.\arabic{tcbexam},
500 autoref name=\bfseries Example,
501 style={
502 arc=0mm,breakable,enhanced,interior style={top color=red!9 ,middle color=red!6, bottom color=red!3},arc=3pt,boxrule=0pt,top=6mm,bottom=5mm,
503 fuzzy shadow={-0.6mm}{0.6mm}{0mm}{0.3mm}{white!50!gray},%
504 fuzzy shadow={0.6mm}{-0.6mm}{0mm}{0.3mm}{fill=white!40!gray},%
505 opacityframe=0, opacityback=0.98,
506 fontupper=\normalsize,step={tcbexam},redpurple
507 before pre=\smallskip, after app=\smallskip,
508 overlay unbroken=\my@lemma@overlay@unbroken{Example\ \thetcbexam}{red},
509 overlay first=\my@lemma@overlay@first{Example\ \thetcbexam}{red},
510 overlay last=\my@lemma@overlay@last{red},
511 }
512 },
513 Exercise={
514 counter=tcbexer,
515 the counter=\thechapter.\arabic{tcbexer},
516 autoref name=\bfseries Exercise,
517 style={
518 arc=0mm,breakable,enhanced,interior style={top color=redpurple!9 ,middle color=redpurple!6, bottom color=redpurple!3},arc=3pt,boxrule=0pt,top=6mm,bottom=5mm,
519 fuzzy shadow={-0.6mm}{0.6mm}{0mm}{0.3mm}{white!50!gray},%
520 fuzzy shadow={0.6mm}{-0.6mm}{0mm}{0.3mm}{fill=white!40!gray},%
521 opacityframe=0, opacityback=0.9,
522 fontupper=\normalsize,step={tcbexer},
523 before pre=\smallskip, after app=\smallskip,
524 overlay unbroken=\my@lemma@overlay@unbroken{Exercise\ \thetcbexer}{redpurple},
525 overlay first=\my@lemma@overlay@first{Exercise\ \thetcbexer}{redpurple},
526 overlay last=\my@lemma@overlay@last{redpurple},
527 }
528 },
529 theorem={
530 counter=tcbthm,
531 the counter=\thesection.\arabic{tcbthm},
532 autoref name=\bfseries Theorem,
533 style={
534 arc=0mm,breakable,enhanced,interior style={top color=purple!9 ,middle color=purple!6, bottom color=purple!3},arc=3pt,boxrule=0pt,top=6mm,bottom=5mm,
535 fuzzy shadow={-0.6mm}{0.6mm}{0mm}{0.3mm}{white!50!gray},%
536 fuzzy shadow={0.6mm}{-0.6mm}{0mm}{0.3mm}{fill=white!40!gray},%
537 opacityframe=0, opacityback=0.98,
538 fontupper=\itshape,step={tcbthm},
539 before pre=\smallskip, after app=\smallskip,
540 overlay unbroken=\my@lemma@overlay@unbroken{Theorem\ \thetcbthm}{purple},
541 overlay first=\my@lemma@overlay@first{Theorem\ \thetcbthm}{purple},
542 overlay last=\my@lemma@overlay@last{purple},
543 }
544 },
545 conjecture={
546 counter=tcbconj,
547 the counter=\thesection.\arabic{tcbconj},
548 name=Conjecture,
549 lemcolor=purple,
550 autoref name=\bfseries Conjecture,
551 style={
552 arc=0mm,breakable,enhanced,interior style={top color=purple!9 ,middle color=purple!6, bottom color=purple!3},arc=3pt,boxrule=0pt,top=6mm,bottom=5mm,
553 fuzzy shadow={-0.6mm}{0.6mm}{0mm}{0.3mm}{white!50!gray},%
554 fuzzy shadow={0.6mm}{-0.6mm}{0mm}{0.3mm}{fill=white!40!gray},%
555 opacityframe=0, opacityback=0.98,
556 fontupper=\itshape,step={tcbconj},
557 before pre=\smallskip, after app=\smallskip,
558 overlay unbroken=\my@lemma@overlay@unbroken{Conjecture\ \thetcblem}{purple},
559 overlay first=\my@lemma@overlay@first{Conjecture\ \thetcblem}{purple},
560 overlay last=\my@lemma@overlay@last{purple},
561 }
562 },
563 }
564 \makeatother
565 %
566
567
568 \RequirePackage[
569 backend=biber,
570 style=numeric,
571 sorting=nty
572 ]{biblatex}
573 \addbibresource{ref.bib}
574
575 \indexsetup{level=\chapter*,noclearpage}
576 \makeindex[title={\sffamily References},columns=3,columnsep=15pt,columnseprule]
577 \makeindex
578
579 \usepackage{listings}
580 \lstset{
581 basicstyle=\small\ttfamily,
582 keywordstyle=\color{NavyBlue},
583 commentstyle=\color{gray!50!black!50},
584 stringstyle=\rmfamily\slshape\color{red},
585 backgroundcolor=\color{gray!5},
586 frame=leftline,
587 framerule=0.5pt,rulecolor=\color{gray!80},
588 numbers=left,
589 numberstyle=\footnotesize,
590 firstnumber=1,
591 stepnumber=1,
592 numbersep=7pt,
593 aboveskip=.25em,
594 showspaces=false,
595 showstringspaces=false,
596 keepspaces=true,
597 showtabs=false,
598 tabsize=2,
599 captionpos=b,
600 flexiblecolumns=true,
601 breaklines=true,
602 breakatwhitespace=false,
603 breakautoindent=true,
604 breakindent=1em,
605 title=\lstname,
606 escapeinside=``,
607 xleftmargin=1em, xrightmargin=1em,
608 aboveskip=1ex, belowskip=1ex,
609 framextopmargin=1pt, framexbottommargin=1pt,
610 abovecaptionskip=-2pt,belowcaptionskip=3pt,
611 extendedchars=false, columns=flexible, mathescape=true,
612 texcl=true,
613 fontadjust
614 }%
615
616 \begin{document}
617 \thispagestyle{empty}
618 \title{Your title}
619 \subtitle{}
620 \edition{The Edition}
621 \bookseries{Illustrated by author}
622 \author{author}
623 \pressname{beautybook}
624 \presslogo{inner_pics/beautybook-logo.png}
625 \coverimage{inner_pics/coverimage.jpg}%ivy-ge998908f8_1280.jpg
626 \makecover
627
628 \makeatletter
629 % ---------------------------------------------------------------------------- %
630 % The Sidebar Theme Chosen %
631 % ---------------------------------------------------------------------------- %
632 \definecolor{bg}{HTML}{e0e0e0}
633 \definecolor{fg}{HTML}{2c4f54}
634 \colorlet{outermarginbgcolor}{bg}
635 \colorlet{outermarginfgcolor}{fg}
636 % set the contents of the outer margin on even and odd pages for scrheadings, plain and scth
637 \oddoutermargin{\sffamily \leftmark} % Odd sidebar text
638 \evenoutermargin{\sffamily\@title} % Even sidebar text
639 % ---------------------------------------------------------------------------- %
640 % The Sidebar Theme Chosen %
641 % ---------------------------------------------------------------------------- %
642
643 % ---------------------------------------------------------------------------- %
644 % The images used in the title %
645 % ---------------------------------------------------------------------------- %
646 \titleimage{
647 chapteroddimage={odd1,odd2,odd3,odd4,odd5,odd6,odd7,odd8,odd9,odd10,odd11,odd12,odd13,odd14,odd15,mid1,mid2,mid3,mid4,mid5,mid6,mid7,mid8,mid9,mid10,mid11},
648 %
649 partoddimage={odd1,odd2,odd3,odd4,odd5,odd6,odd7,odd8,odd9,odd10,odd11,odd12,odd13,odd14,odd15,mid1,mid2,mid3,mid4,mid5,mid6,mid7,mid8,mid9,mid10,mid11},
650 %
651 chapterevenimage={songeven,even1,even2,even3,even4,mid1,mid2,mid3,mid4,mid5,mid6,mid7,mid8,mid9,mid10,mid11},
652 %
653 partevenimage={songeven,even1,even2,even3,even4,mid1,mid2,mid3,mid4,mid5,mid6,mid7,mid8,mid9,mid10,mid11},
654 }
655 \chapimage{\beautybook@chapterimagename}
656 \partimage{\beautybook@partimagename}
657 \makeatother
658 % ---------------------------------------------------------------------------- %
659 % The images used in the title %
660 % ---------------------------------------------------------------------------- %
661
662 % ---------------------------------------------------------------------------- %
663 % The Color Chosen for The Magic Box %
664 % ---------------------------------------------------------------------------- %
665 \colorlet{framegolden}{fg} % The line color of the magic box
666 \colorlet{framegray}{bg!50} % The background color of the magic box
667 % ---------------------------------------------------------------------------- %
668 % The Color Chosen for The Magic Box %
669 % ---------------------------------------------------------------------------- %
670
671 \frontmatter
672 \pagenumbering{Roman}
673
674 {% Preface
675 \thispagestyle{empty}
676 % \addcontentsline{toc}{chapter}{Preface}
677 \chapter*{Preface}
678 An introduction to the beautybook template.
679
680
681 \hfill
682 \begin{tabular}{lr}
683 &-- author\\
684 & 2024-06-30
685 \end{tabular}
686 \clearpage}
687 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
688
689 \thispagestyle{empty}
690 \tableofcontents\let\cleardoublepage\clearpage
691
692
693 \mainmatter
694 \pagenumbering{arabic}
695
696 \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.}
697 \part{Part}
698
699 \chapter{Chapter}
700
701 \section{Section}
702
703 % your main contents here!
704
705
706 \printindex\thispagestyle{empty}
707 \bottomimage{inner_pics/coverimage.jpg}
708 \ISBNcode{\EANisbn[ISBN=978-80-7340-097-2]} %
709 \summary{Summary.}
710 \makebottomcover
711 \end{document}
712 \end{lstlisting}
713
714 \subsection{Release installation and updates}
715
716 The test environment for this template is
717 \begin{enumerate}
718 \item Win11 23H2 + \TeX{} Live 2024;
719 \end{enumerate}
720
721 For the installation of \TeX Live/Mac\TeX{} , please refer to articles online, which is omitted here.
722
723 After installing \TeX{} Live, it is recommended to upgrade all macro packages after installation, upgrade methods: 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
724
725 \begin{lstlisting}
726 tlmgr update --self
727 tlmgr update --all
728 tlmgr update --self --all --reinstall-forcibly-removed
729 \end{lstlisting}
730
731 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.
732
733 \chapter{The setting of beautybook Template}
734
735 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.
736
737 \section{Language Mode}
738
739 This template includes two basic locales: Chinese and English. Changing the locales alters the headings (including figures and tables) of the chart title, the article formatting (such as table of contents and references), and the language used for theorem contexts (such as Theorem, Lemma, etc.). You can switch between these language modes using the following instructions in the top of the premble:
740
741 \begin{lstlisting}
742 \documentclass[lang=cn,zihao=-4,a4paper,fontset=windows]{beautybook} % chinese
743 \documentclass[lang=en,12pt]{beautybook} % english
744 \end{lstlisting}
745
746 In addition to the two language settings that come with the template, if you need to use another language, you can do so by modifying the \texttt{.cls} file as follows
747
748 \begin{enumerate}
749 \item Change the name of the part environment \lstinline{Part\ \thepart} to \lstinline{(translation of part in your language)\ \thepart}
750 \item Theorem environment guide words in premble, such as Theorem.
751 \end{enumerate}
752
753 \section{Theme Color}
754
755 The colors of this template can be configured according to personal preferences in the following way :
756
757 \begin{lstlisting}
758 \definecolor{bg}{HTML}{e0e0e0} % Overall style background color % i.e. theme light color
759 \definecolor{fg}{HTML}{455a64} % Overall style foreground color % i.e. theme dark color
760 %% The colors below are in the stys/bottompage.sty file
761 \definecolor{coverbgcolor}{HTML}{f9b868} % Cover and bottom page background color
762 \definecolor{coverfgcolor}{HTML}{503D4B} % foreground color on the front and back covers
763 \definecolor{coverbar}{HTML}{BF8E6F} % cover bar color
764 \definecolor{bottomcolor}{HTML}{B3686A} % The theme color of bottom page
765 %%%%%%%%%%%%%%%%%%%%%%%%
766 \colorlet{framegolden}{fg} % Antique box's line color
767 \colorlet{framegray}{Dilu!5} % Antique box's background color
768 \end{lstlisting}
769
770 In the preamble of the main file, certain theorem environments' colors can be set. This will be further explained in the upcoming section on mathematical environments.
771
772 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.
773
774
775 \section{Choice of Cover}
776 \subsection{How to choose your favorite cover?}
777
778 This template has multiple sets of covers that can be used at will, and the use of them is as follows:
779
780 \begin{enumerate}
781 \item Chinese classic cover (Chinese default) --corresponding macro package \lstinline{cover-choose=cn} ,
782 \item Springer Classic Cover 1 (English default) --corresponding to the macro package \lstinline{cover-choose=en} ,
783 \item Springer Classic Cover 2 (image background) --corresponding to macro package \lstinline{cover-choose=enfig} ,
784 \item Springer Classic cover 3 (Geometric style) --corresponding to the macro package \lstinline{cover-choose=birkar} .
785
786 Note that the information corresponding to the cover is not the same, look at the above example, just follow the requirements.
787 \end{enumerate}
788
789 \begin{table}[htbp]
790 \centering
791 \caption{cover element information}
792 \begin{tabular}{cccccc}
793 \hline
794 Information & Commands & Information & Commands & Information & Commands \\
795 \hline
796 Title & \lstinline|\title| & subtitle & \lstinline|\subtitle| & author & \lstinline|\author| \\
797 Publisher & \lstinline|\pressname| & Version & \lstinline|\edition| & cover image & \lstinline|\coverimage|\\
798 Logo & \lstinline|\presslogo| &&&&\\
799 \hline
800 \end{tabular}
801 \end{table}
802
803 \subsection{Logo}
804
805 You can search and obtain the publisher's logo yourself. To avoid copyright infringement, please ensure to choose a proper and lawful image when replacing the current one.
806
807 \subsection{Custom Cover}
808
809 Moreover, in case you opt for a personalized cover, say an A4 PDF file created through Adobe Illustrator or any other software, comment out the \lstinline{\makecover} command, and subsequently include the custom cover using the \lstinline{pdfpages} macro package. Likewise, if you utilize the \lstinline{titlepage} environment.
810
811 \section{Title Style}
812
813 This template is fully customized for section headings, if this is not to your liking, you can comment them out to restore the default style.
814
815 \section{Introduction to the Mathematical Environments}
816
817 Our template includes four distinct theorem environments. These consist of the default theorem style provided by ``amsthm" in simple mode, as well as a custom style provided by ``thmtools." Additionally, we offer a color emphasis box style, an exquisite box style that I developed, and an ancient style box provided by Mr. Wuyue, which can also be used as a theorem box.
818
819 \subsection{Usage of theorem environments}
820
821 Here is the effect of the theorem environment provided by amsthm.
822 \subsubsection{amsthm}
823
824 \begin{remark}
825 This is an amsthm-based annotation environment
826 \end{remark}
827
828 \subsubsection{thmtools}
829
830 \begin{proof}[description of proof]
831 Proof environment
832 \end{proof}
833
834 \begin{solution}[description of solution]
835 Solution environment
836 \end{solution}
837
838 \subsubsection{Color emphasis box style}
839
840 \begin{defi}[name of the definition]\label{defi:def test}
841 The first defines the environment
842 \end{defi}
843
844 \begin{thm}[name of the thm]\label{thm:thm test}
845 The first theorem environment
846 \end{thm}
847
848 \begin{cor}[name of the corollary]\label{cor:cor test}
849 The first inference environment
850 \end{cor}
851
852 \begin{prop}[name of the prop]\label{prop:prop test}
853 The first propositional environment
854 \end{prop}
855
856 \begin{exam}[name of the example]\label{exam:exam test}
857 The first example problem environment
858 \end{exam}
859
860 \begin{lem}[name of the lem]\label{lem:lem test}
861 The first lemma environment
862 \end{lem}
863
864 % \clearpage
865
866 \section{Two exquisite theorem boxes crafted by the author!}
867
868 \begin{definition}[][Name][def label]
869 Here are the guidelines for using these two boxes.
870
871 \begin{itemize}
872 \item If the theorem name and label are both empty, you can write it like this :
873 \begin{lstlisting}
874 \begin{definition}
875 Define the environment content
876 \end{definition}
877 \end{lstlisting}
878 \item If you don't have a label but have a name, use it as
879 \begin{lstlisting}
880 \begin{definition}[][Name]
881 Define the environment content
882 \end{definition}
883 \end{lstlisting}
884 \item If you have a tag, then whether or not it has a name, use it as
885 \begin{lstlisting}
886 \begin{definition}[][Yes, fill in, no blank][Tag]
887 Define the environment content
888 \end{definition}
889 \end{lstlisting}
890 \item If you want to change some setting options of the box, such as bordering, etc., use it as
891 \begin{lstlisting}
892 \begin{definition}[tcolorbox options][If so, write the name, if not, delete it along with the outside brackets.][tag (Here is where the label is written, if there is no label should be deleted together with the outside brackets.)]
893 Define the environment content
894 \end{definition}
895 \end{lstlisting}
896 \end{itemize}
897
898 \end{definition}
899
900 \begin{theorem}
901 The usage is the same as above, refer to the tag \ref{def label} below or you can use \autoref{def label}.
902 \end{theorem}
903
904 \begin{lemma}
905 The usage is the same as above, refer to the tag \ref{def label} below or you can use \autoref{def label}.
906 \end{lemma}
907
908 \begin{corollary}
909 The usage is the same as above, refer to the tag \ref{def label} below or you can use \autoref{def label}.
910 \end{corollary}
911 \newpage
912 \begin{example}
913 The usage is the same as above, refer to the tag \ref{def label} below or you can use \autoref{def label}.
914 \end{example}
915 \subsection*{Ancient style box}
916 \begin{fancybox}
917 Test ancient style box , you can use it to nest outside of other environments arbitrarily!
918 \end{fancybox}
919
920 \subsection{Theorem counter adjustment}
921
922 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.
923
924 \subsection{How to define a new theorem environment?}
925
926 There are four ways in which users can define their own theorem environments. Among them amsthm and thmtools can be learned through their macro package documentations. The latter two theorems are defined in the following way.
927
928 For example, in premble of the main file, you can write it as
929 \begin{lstlisting}
930 % This is the first one.
931 \mynewtheorem{
932 defi={\textbf{Definition}}[section]{interior style={left color=ReD!8,right color=ReD!5!CyaN!50}, borderline west={1.5mm}{0mm}{ReD}}, % It is a example of the first one, then you can mimic it to build the theorem setting you need.
933 }
934
935 % This is the second one.
936 <environment name>={
937 counter=tcb<theorem counter>,
938 the counter=\thesection.\arabic{tcb<theorem counter>},
939 autoref name=\bfseries <environment name>,
940 style={
941 arc=3pt,breakable,enhanced,interior style={top color=<your color>!12 ,middle color=<your color>!9, bottom color=<your color>!6},boxrule=0pt,top=8mm,
942 fuzzy shadow={-0.6mm}{0.6mm}{0mm}{0.3mm}{white!50!gray},
943 fuzzy shadow={0.6mm}{-0.6mm}{0mm}{0.3mm}{fill=white!40!gray},
944 opacityframe=0, opacityback=0.98,
945 fontupper=\itshape, step={tcb<theorem counter>},
946 before pre=\smallskip, after app=\smallskip,
947 overlay unbroken=\my@theorem@overlay@unbroken{<environment name>\ \thetcb<theorem counter>}{<your color>},
948 overlay first=\my@theorem@overlay@first{<environment name>\ \thetcb<theorem counter>}{<your color>},
949 overlay last=\my@theorem@overlay@last{<your color>},
950 }
951 },
952 <environment name>={
953 counter=tcb<theorem counter>,
954 the counter=\thesection.\arabic{tcb<theorem counter>},
955 autoref name=\bfseries <environment name>,
956 style={
957 arc=0mm,breakable,enhanced,interior style={top color=<your color>!12 ,middle color=<your color>!9, bottom color=<your color>!6},arc=3pt,boxrule=0pt,top=7mm,bottom=5mm,
958 fuzzy shadow={-0.6mm}{0.6mm}{0mm}{0.3mm}{white!50!gray},
959 fuzzy shadow={0.6mm}{-0.6mm}{0mm}{0.3mm}{fill=white!40!gray},
960 opacityframe=0, opacityback=0.98,
961 fontupper=\normalsize,step={tcb<theorem counter>},
962 before pre=\smallskip, after app=\smallskip,
963 overlay unbroken=\my@lemma@overlay@unbroken{<environment name>\ \thetcb<theorem counter>}{<your color>},
964 overlay first=\my@lemma@overlay@first{<environment name>\ \thetcb<theorem counter>}{<your color>},
965 overlay last=\my@lemma@overlay@last{<your color>},
966 }
967 },
968 }
969 \end{lstlisting}
970
971 \begin{remark}
972 Change the folllowing parts :
973 \begin{center}
974 \begin{tabular}{ccc}\hline
975 <environment name> & $\to$ & your new defined theorem name \\
976 <theorem counter > & $\to$ & your new defined theorem counter \\
977 <your color> & $\to$ & your new defined theorem color \\ \hline
978 \end{tabular}
979 \end{center}
980 \end{remark}
981
982 \section{list environment}
983 This template is customizable with the help of \lstinline{enumitem}, see the enumitem macro package documentation. Here are two examples.\\[2ex]
984 \begin{minipage}[b]{0.49\textwidth}
985 \begin{itemize}[label=$\bigodot $]
986 \item first item of nesti;
987 \item second item of nesti;
988 \begin{itemize}
989 \item first item of nestii;
990 \item second item of nestii;
991 \begin{itemize}
992 \item first item of nestiii;
993 \item second item of nestiii.
994 \end{itemize}
995 \end{itemize}
996 \end{itemize}
997 \end{minipage}
998 \begin{minipage}[b]{0.49\textwidth}
999 \begin{enumerate}[label=\arabic*)]
1000 \item first item of nesti;
1001 \item second item of nesti;
1002 \begin{enumerate}
1003 \item first item of nestii;
1004 \item second item of nestii;
1005 \begin{enumerate}
1006 \item first item of nestiii;
1007 \item second item of nestiii.
1008 \end{enumerate}
1009 \end{enumerate}
1010 \end{enumerate}
1011 \end{minipage}
1012
1013 \section{References}
1014
1015 \subsection{print reference}
1016
1017 \lstinline{ref.bib} is a file stored in the reference and needs to be placed in the working folder.
1018
1019 \subsection{modify reference format}
1020
1021 In addition, this template calls the Biblatex macro package and provides Biber engine to compile references. Of course, you can also directly delete the Biblatex macro package in cls file (the last few lines of cls) to use Bibtex.
1022
1023 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.
1024
1025 The default reference style used by the template is ``numeric".
1026
1027 \begin{lstlisting}
1028 \usepackage[
1029 backend=biber, % It can be changed to bibtex.
1030 style=numeric, % It can be changed to others, cf the documentation of biblatex.
1031 sorting=nty
1032 ]{biblatex}
1033 \addbibresource{ref.bib}
1034 \end{lstlisting}
1035
1036
1037 \printindex\thispagestyle{empty}
1038 \bottomimage{inner_pics/coverimage.jpg}
1039 \ISBNcode{\EANisbn[ISBN=978-80-7340-097-2]} %
1040 \summary{A Research Notes Series For papers.}
1041 \makebottomcover
1042 \end{document}