summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2023-06-17 19:58:57 +0000
committerKarl Berry <karl@freefriends.org>2023-06-17 19:58:57 +0000
commit1ab635f20aac813a05cacf534d3ca5712a0a0f47 (patch)
tree288239ef9cb3646eab1052e272ace46609c08709
parentebced8cc3f15c064aea238ccb0f6f2019373e866 (diff)
beautybook (17jun23)
git-svn-id: svn://tug.org/texlive/trunk@67391 c570f23f-e606-0410-a88d-b1316a301751
-rw-r--r--Master/texmf-dist/doc/latex/beautybook/Beautybook-introduction-chinese.pdfbin7027460 -> 7027462 bytes
-rw-r--r--Master/texmf-dist/doc/latex/beautybook/Beautybook-introduction-chinese.tex2
-rw-r--r--Master/texmf-dist/doc/latex/beautybook/Beautybook-introduction-english.pdfbin6163387 -> 4128046 bytes
-rw-r--r--Master/texmf-dist/doc/latex/beautybook/Beautybook-introduction-english.tex452
-rw-r--r--Master/texmf-dist/doc/latex/beautybook/README.md4
-rw-r--r--Master/texmf-dist/tex/latex/beautybook/Beautybook-CN.cls (renamed from Master/texmf-dist/tex/latex/beautybook/Beautybook-V6.1-CN.cls)2
-rw-r--r--Master/texmf-dist/tex/latex/beautybook/Beautybook-EN.cls (renamed from Master/texmf-dist/tex/latex/beautybook/Beautybook-V6.1-EN.cls)45
7 files changed, 345 insertions, 160 deletions
diff --git a/Master/texmf-dist/doc/latex/beautybook/Beautybook-introduction-chinese.pdf b/Master/texmf-dist/doc/latex/beautybook/Beautybook-introduction-chinese.pdf
index 4504ef36d96..5555dcddf77 100644
--- a/Master/texmf-dist/doc/latex/beautybook/Beautybook-introduction-chinese.pdf
+++ b/Master/texmf-dist/doc/latex/beautybook/Beautybook-introduction-chinese.pdf
Binary files differ
diff --git a/Master/texmf-dist/doc/latex/beautybook/Beautybook-introduction-chinese.tex b/Master/texmf-dist/doc/latex/beautybook/Beautybook-introduction-chinese.tex
index 2357391c394..dc2e3d7af59 100644
--- a/Master/texmf-dist/doc/latex/beautybook/Beautybook-introduction-chinese.tex
+++ b/Master/texmf-dist/doc/latex/beautybook/Beautybook-introduction-chinese.tex
@@ -1,7 +1,7 @@
%% This work is released under the LaTeX Project Public License, v1.3c or later.
% This template is made by Ethan Lu.
% Please use XeLaTeX engine!
-\documentclass[zihao=-4,fontset=windows]{Beautybook-V6.1-CN}
+\documentclass[zihao=-4,fontset=windows]{Beautybook-CN}
\coverstyle={ % 封面键值列表
cover-choose=cn, % cn (需新增项\entitle{#}); en ; enfig ; birkar
}
diff --git a/Master/texmf-dist/doc/latex/beautybook/Beautybook-introduction-english.pdf b/Master/texmf-dist/doc/latex/beautybook/Beautybook-introduction-english.pdf
index 48c2a402d04..3d159d085d8 100644
--- a/Master/texmf-dist/doc/latex/beautybook/Beautybook-introduction-english.pdf
+++ b/Master/texmf-dist/doc/latex/beautybook/Beautybook-introduction-english.pdf
Binary files differ
diff --git a/Master/texmf-dist/doc/latex/beautybook/Beautybook-introduction-english.tex b/Master/texmf-dist/doc/latex/beautybook/Beautybook-introduction-english.tex
index 2f83a3a3a51..65367f3a78b 100644
--- a/Master/texmf-dist/doc/latex/beautybook/Beautybook-introduction-english.tex
+++ b/Master/texmf-dist/doc/latex/beautybook/Beautybook-introduction-english.tex
@@ -1,7 +1,7 @@
%% 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}
+\documentclass{Beautybook-EN}
\coverstyle={
cover-choose=en, % cn (Need \entitle{#}); en ; enfig ; birkar
}
@@ -150,7 +150,7 @@
%
\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);}
+% \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}}
@@ -194,10 +194,10 @@
}%
\begin{document}
\thispagestyle{empty}
-\title{An Introduction to Complex Geometry}
+\title{An Introduction to Beautybook template}
\subtitle{}
\edition{First Edition}
-\bookseries{UniversiText}
+\bookseries{Illustrated by Ethan Lu}
\author{Ethan Lu}
\pressname{logo}
\presslogo{inner_pics/logo.png}
@@ -243,55 +243,199 @@ As my first english book, i'm happy.
\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!
+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 } !
+
+
+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!
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
+
+The Project Addresses are the following.
\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.
+ \item GitHub repository: \href{https://github.com/BeautyLaTeX/latex-template}{https://github.com/BeautyLaTeX/latex-template},
+ \item Download Release: \href{https://github.com/BeautyLaTeX/latex-template/releases}{Official release},
+ \item User QQ Group: 809237593. (!If you are not in China, please e-mail me at \href{h1479840692@outlook.com}{outlook-email}.)
\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) .
+\section{Installation and Maintenance of Template}
-\subsection{Use template online}
+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.
-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!
+Note that if you choose the second way, you must write \lstinline{math-font=plain} in the premble of the main file!
+
+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.
\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.
+To install locally, follow these steps: download the latest version from GitHub, CTAN or the QQ group. Then place the template files in your working directory and copy these folders synchronously: \texttt{fonts}, \texttt{stys}, \texttt{figures}, \texttt{inner\_pics}, and \texttt{frontmatter}, in order to utilize them. (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:
+The following is an example of a 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!
+ \documentclass[zihao=-4,fontset=none]{Beautybook-CN} %If english, change it to Beautybook-EN%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}
+ % Some commands to control the layout of floating elements.
+ \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/}}
+ %=======================Theorem Setting Area===============================%
+ \mynewtheorem{ % The amsthm package offers theorem environments, and a tcolorbox is utilized on the exterior. %
+ 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}}
+ % Two exquisite theorem boxes crafted by the author!
+ \makeatletter
+ \mynewtcbtheorem{
+ theorem={ % Christmas gift box style
+ 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={ % same as above.
+ 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},
+ }
+ },
+ % Another box style.
+ lemma={ % Silk ribbon style.
+ 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={ % same as above.
+ 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
+ %
\begin{document}
\thispagestyle{empty}
- \entitle{entitle,only when you use cncover} % cn
+ %\entitle{entitle,only when you use cncover} % Use only in "cn".
\title{Title here}
- \subtitle{XX}
+ \subtitle{Subtitle here}
\edition{First Edition}
- \bookseries{Series}
+ \bookseries{Series here}
\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}
+ \presslogo{inner_pics/logo.png}
+ %\coverimage{inner_pics/coverimage.jpg} % Use only in "cn".
+ \coverimage{inner_pics/ivy-ge998908f8_1280.jpg}
\makecover %
% Theme color
@@ -302,26 +446,46 @@ The following are examples of minimal work:
\colorlet{framegolden}{fg}
\colorlet{framegray}{red!15}
%
- \input{frontmatter/titlepage-cn} % Titlepage
+ %\input{frontmatter/titlepage-cn} % Titlepage % If you are download from CTAN, it is no use.
%
\frontmatter
\pagenumbering{Roman}
- \input{frontmatter/preface-cn} % preface
+ %\input{frontmatter/preface-cn} % preface % If you are download from CTAN, it is no use.
+ % 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} % 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
+ \partimage{inner_pics/part.png} % Part Pictures is needed, which is only need to write once.
+ \partabstract{\hspace{2em} Part introduction.} % If you don't want to write, it can be left blank.
+ \part{Part title}
+ % \input{<filename>}
+
+
+
+ \appendix % Appendix here
%
- \normalem
+ \normalem % It is needed in XeLaTeX!
\printbibliography[
heading=bibintoc,
title={Reference}
@@ -329,19 +493,22 @@ The following are examples of minimal work:
\printindex
\thispagestyle{empty}
\bottomimage{inner_pics/ivy-ge998908f8_1280.jpg}
- \ISBNcode{\EANisbn[ISBN=ISBN Number here]} %
+ \ISBNcode{\EANisbn[ISBN=ISBN Number here]} % It can be left blank or just delete it!
\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
+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
\begin{lstlisting}
tlmgr update --self
@@ -353,53 +520,57 @@ Please refer to \href{https://tex.stackexchange.com/questions/55437/how-do-i-upd
\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.
+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:
+This template includes two basic locales: \lstinline{Beautybook-CN.cls} in Chinese and \lstinline{Beautybook-EN.cls} in 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:
+
\begin{lstlisting}
-\documentclass{Beautybook-V6.1-CN} % chinese
-\documentclass{Beautybook-V6.1-EN} % english
+\documentclass{Beautybook-CN} % chinese
+\documentclass{Beautybook-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
+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
\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}.
+ \item Theorem environment guide words in premble, such as Theorem.
+ \item Please remember that only Asian languages can be modified based on \lstinline{Beautybook-CN.cls}, other foreign languages need to be modified based on \lstinline{Beautybook-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:
+\section{Theme Color}
+
+The colors of this template can be configured according to personal preferences in the following way :
\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
+ \definecolor{bg}{HTML}{e0e0e0} % Overall style background color % i.e. theme light color
+ \definecolor{fg}{HTML}{455a64} % Overall style foreground color % i.e. theme dark color
%% 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
+ \definecolor{coverbgcolor}{HTML}{f9b868} % Cover and bottom page 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 theme color of bottom page
%%%%%%%%%%%%%%%%%%%%%%%%
- \colorlet{framegolden}{fg} % Antique box line color
- \colorlet{framegray}{Dilu!5} % Antique box background color
+ \colorlet{framegolden}{fg} % Antique box's line color
+ \colorlet{framegray}{Dilu!5} % Antique box's 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.
+
+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.
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}
+\section{Choice of Cover}
+\subsection{How to choose your favorite cover?}
+
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).
+ \item Chinese classic cover (Chinese default) --corresponding macro package \lstinline{cover-choose=cn} ,
+ \item Springer Classic Cover No. 1 (English default) --corresponding to the macro package \lstinline{cover-choose=en} ,
+ \item Springer Classic Cover No. 2 (image background) --corresponding to macro package \lstinline{cover-choose=enfig} ,
+ \item Springer Classic cover No. 3 (Geometric style) --corresponding to the macro package \lstinline{cover-choose=birkar} .
Note that the information corresponding to the cover is not the same, look at the above example, just follow the requirements.
\end{enumerate}
@@ -418,39 +589,43 @@ This template has multiple sets of covers that can be used at will, and the use
\end{tabular}
\end{table}
-\subsection{cover image}
-The cover image can be found by yourself.
+\subsection{Logo}
-\subsection{logo}
+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.
-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}
-\subsection{custom cover}
+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.
-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{Title Style}
-\section{chapter title}
+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.
-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 Environments}
-\section{Introduction to the Mathematical Environment}
+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.
+
+\subsection{Usage of theorem environments}
+
+Here is the effect of the theorem environment provided by amsthm.
+\subsubsection{amsthm}
-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.]
+\begin{solution}[description of solution]
Solution environment
\end{solution}
-\subsubsection{color accent box}
+
+\subsubsection{Color emphasis box style}
+
\begin{defi}[name of the definition]\label{defi:def test}
The first defines the environment
\end{defi}
@@ -474,31 +649,36 @@ subsubsection{amsthm}
\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}
+
+% \clearpage
+
+\section{Two exquisite theorem boxes crafted by the author!}
\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
+ Here are the guidelines for using these two boxes.
\begin{itemize}
- \item If you don't have a name and label, use it as \begin{lstlisting}
+ \item If the theorem name and label are both empty, you can write it like this :
+ \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}
+ \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}
+ \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
+ \item If you want to change some setting options of the box, such as bordering, etc., use it as
\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)]
+ \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.)]
Define the environment content
\end{definition}
\end{lstlisting}
@@ -522,70 +702,75 @@ subsubsection{amsthm}
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
+\paragraph*{Ancient style box}
\begin{fancybox}
-Antique box test, you can nest other environments arbitrarily!
+ Test ancient style box , you can use it to nest outside of other environments arbitrarily!
\end{fancybox}
-\subsection{modify counter}
+\subsection{Theorem counter adjustment}
+
+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.
-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.
+\subsection{How to define a new theorem environment?}
-For example, in the introduction to this document:
+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.
+
+For example, in premble of the main file, you can write it as
\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}},
+ 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.
}
% 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,
+ <environment name>={
+ counter=tcb<theorem counter>,
+ the counter=\thesection.\arabic{tcb<theorem counter>},
+ autoref name=\bfseries <environment name>,
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
+ 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,
+ 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={tcbthm},
+ fontupper=\itshape, step={tcb<theorem counter>},
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},
+ overlay unbroken=\my@theorem@overlay@unbroken{<environment name>\ \thetcb<theorem counter>}{<your color>},
+ overlay first=\my@theorem@overlay@first{<environment name>\ \thetcb<theorem counter>}{<your color>},
+ overlay last=\my@theorem@overlay@last{<your color>},
}
},
- lemma={ % Ribbon style
- counter=tcblem,
- the counter=\thesection.\arabic{tcblem},
- name=Lemma,
- lemcolor=(color),
- autoref name=\bfseries Lemma,
+ <environment name>={
+ counter=tcb<theorem counter>,
+ the counter=\thesection.\arabic{tcb<theorem counter>},
+ autoref name=\bfseries <environment name>,
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
+ 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,
+ 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},
+ fontupper=\normalsize,step={tcb<theorem counter>},
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},
+ overlay unbroken=\my@lemma@overlay@unbroken{<environment name>\ \thetcb<theorem counter>}{<your color>},
+ overlay first=\my@lemma@overlay@first{<environment name>\ \thetcb<theorem counter>}{<your color>},
+ overlay last=\my@lemma@overlay@last{<your color>},
}
},
}
\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.
+ Change the folllowing parts :
+ \begin{center}
+ \begin{tabular}{ccc}\hline
+ <environment name> & $\to$ & your new defined theorem name \\
+ <theorem counter > & $\to$ & your new defined theorem counter \\
+ <your color> & $\to$ & your new defined theorem color \\ \hline
+ \end{tabular}
+ \end{center}
\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]
+This template is customizable with the help of \lstinline{enumitem}, see the enumitem macro package documentation. Here are two examples.\\[2ex]
\begin{minipage}[b]{0.49\textwidth}
\begin{itemize}[label=$\bigodot $]
\item first item of nesti;
@@ -614,21 +799,23 @@ This template is customizable with the help of lstinline{enumitem}, see the enum
\end{enumerate}
\end{enumerate}
\end{minipage}
+
\section{References}
-\subsection{print document}
+\subsection{print reference}
-\lstinline{ref.bib} is a file stored in the reference and needs to be placed in the project folder.
+\lstinline{ref.bib} is a file stored in the reference and needs to be placed in the working folder.
-\subsection{modify document format}
+\subsection{modify reference 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.
+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.
-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.
+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}.
+The default reference style used by the template is ``GB7714-2015". There is a simple reference example. \cite{Huybrechts2010Complex}
+
+If you need to set to a numeric style, you need to change the ``GB7714-2015" in the biblatex macro package option to ``numerical".
-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)
@@ -638,10 +825,12 @@ sorting=nty
\addbibresource{ref.bib}
\end{lstlisting}
-\chapter{font options}
+\chapter{Font options (Chinese users only, English users please do not omit the contents of this chapter.)}
+
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:
+This template uses ctexbook class, so the fontset is consistent with it. The default option is \lstinline{fontset=windows}. If not necessary, the font should not be changed. If you do have a need for third-party fonts, then you can set them up as follows.
+
\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}
@@ -654,10 +843,7 @@ This template uses the fonts provided by Ctex's Windows options by default, if n
-\appendix
-\chapter{cover effect display}
-\section{cover en as shown in this document}
-\section{See attachment in folder for other covers}
+%\appendix
diff --git a/Master/texmf-dist/doc/latex/beautybook/README.md b/Master/texmf-dist/doc/latex/beautybook/README.md
index 7d494cc5819..d610d61877d 100644
--- a/Master/texmf-dist/doc/latex/beautybook/README.md
+++ b/Master/texmf-dist/doc/latex/beautybook/README.md
@@ -14,6 +14,10 @@ Beautybook is designed for writing books, created by [Ethan Lu](https://github.c
If you are an English user, then please use a cls file with the "-EN" suffix and compile the english tex file with pdfLaTeX, and conversely, if you are a Chinese user, then remember, use a cls file with the "-CN" suffix and compile the chinese tex file with the XeLaTeX engine!
+## Version
+
+Release 2023-06-17.
+
## License
This work is released under the LaTeX Project Public License, v1.3c or later.
diff --git a/Master/texmf-dist/tex/latex/beautybook/Beautybook-V6.1-CN.cls b/Master/texmf-dist/tex/latex/beautybook/Beautybook-CN.cls
index 4e2f170d623..22bdb8248cc 100644
--- a/Master/texmf-dist/tex/latex/beautybook/Beautybook-V6.1-CN.cls
+++ b/Master/texmf-dist/tex/latex/beautybook/Beautybook-CN.cls
@@ -1,6 +1,6 @@
%This Class is based on the default book class and options will be passed
\NeedsTeXFormat{LaTeX2e}
-\ProvidesClass{Beautybook-V6.1-CN}[01-05-2023 V6.1 Beautybook Class]
+\ProvidesClass{Beautybook-CN}[17-06-2023 Beautybook Class]
\DeclareOption*{\PassOptionsToClass{\CurrentOption}{ctexbook}}
\ProcessOptions\relax
\LoadClass[twoside]{ctexbook}
diff --git a/Master/texmf-dist/tex/latex/beautybook/Beautybook-V6.1-EN.cls b/Master/texmf-dist/tex/latex/beautybook/Beautybook-EN.cls
index 9efc7992952..5f2652d7533 100644
--- a/Master/texmf-dist/tex/latex/beautybook/Beautybook-V6.1-EN.cls
+++ b/Master/texmf-dist/tex/latex/beautybook/Beautybook-EN.cls
@@ -1,6 +1,6 @@
%This Class is based on the default book class and options will be passed
\NeedsTeXFormat{LaTeX2e}
-\ProvidesClass{Beautybook-V6.1-EN}[01-05-2023 V6.1 Beautybook Class]
+\ProvidesClass{Beautybook-EN}[17-06-2023 Beautybook Class]
\DeclareOption*{\PassOptionsToClass{\CurrentOption}{book}}
\ProcessOptions\relax
\LoadClass[twoside]{book}
@@ -8,22 +8,20 @@
\RequirePackage[fontsize=13.5pt]{fontsize}
\linespread{1.05}
\RequirePackage[dvipsnames,svgnames,x11names,table]{xcolor}
-\colorlet{outermarginfgcolor}{DarkCyan} % foregroundcolor 较深
-\colorlet{outermarginbgcolor}{DarkCyan!30} % backgroundcolor 较浅
-\definecolor{高粱红}{HTML}{951c48}
+\colorlet{outermarginfgcolor}{DarkCyan} % foregroundcolor
+\colorlet{outermarginbgcolor}{DarkCyan!30} % backgroundcolor
\RequirePackage{cncolours}
-\RequirePackage{bropd} % math 自适应数学括号命令 \br{} !!!
-\RequirePackage{tikz-imagelabels} % tikz图像标注
-\RequirePackage{epigraph-keys} % 名言引用
-\RequirePackage{fitbox} % 图像自适应
+\RequirePackage{bropd}
+\RequirePackage{tikz-imagelabels}
+\RequirePackage{epigraph-keys}
+\RequirePackage{fitbox}
\RequirePackage{pgfornament-han}
\RequirePackage{tikz}
\usetikzlibrary{calc,shadows,hobby,intersections, decorations.markings, decorations.pathreplacing,spy,arrows,shapes,fadings,trees,mindmap,patterns,shapes.arrows,shapes.symbols,tikzmark,shapes.geometric,graphs, quotes, angles,decorations.pathmorphing,through,shadings,backgrounds,positioning,fit,arrows.meta,shapes.misc,decorations.shapes}
-\RequirePackage{pgfplots} %画图 %%页面样式设计核心包 %提供\pgfonlayer命令以及下列图层指令
+\RequirePackage{pgfplots}
\pgfplotsset{compat=1.18}
%
\ExplSyntaxOn
-% 封面切换程序 (LaTeX3)!
\keys_define:nn {Beautybook/coverstyle}
{
cover-choose.choice:,
@@ -32,7 +30,7 @@
cover-choose/en.code:n = {\RequirePackage{stys/Beautybook-en}},
cover-choose/enfig.code:n = {\RequirePackage{stys/Beautybook-enfig}},
cover-choose/birkar.code:n = {\RequirePackage{stys/Beautybook-birkar}},
- %cover-choose .initial:n = en , % 设置 en 为初始值
+ %cover-choose .initial:n = en ,
}
\newtoks \l__Beautybook_tmpa_toks
\cs_new_protected:Npn \coverstyle
@@ -65,7 +63,7 @@
}{}
\renewcommand{\partial}{{\text{\usefont{U}{nxlmi}{m}{it}\symbol{64}}\mspace{1mu}}}
},
- %cover-choose .initial:n = plain , % 设置 en 为初始值
+ %cover-choose .initial:n = plain ,
}
\cs_new_protected:Npn \mathstyle
{
@@ -80,7 +78,7 @@
%
\RequirePackage{amssymb,amsfonts}
\RequirePackage{makeidx}
-\RequirePackage{etoolbox} % 判断函数
+\RequirePackage{etoolbox}
\RequirePackage{paracol}
\RequirePackage{tikz-cd}
\RequirePackage{imakeidx}
@@ -89,30 +87,27 @@
\RequirePackage{xkeyval,ifthen}
\RequirePackage[backgroundcolor=yellow!40!cyan!20,bordercolor=yellow!40!cyan!20,linecolor=DarkCyan]{todonotes}
\RequirePackage{varwidth}
-\RequirePackage[colorlinks,linkcolor = purple, %%修改此处为你想要的颜色
-anchorcolor = purple, %%修改此处为你想要的颜色
-urlcolor = purple, %%修改此处为你想要的颜色
-citecolor = purple, %%修改此处为你想要的颜色
+\RequirePackage[colorlinks,linkcolor = purple,
+anchorcolor = purple,
+urlcolor = purple,
+citecolor = purple,
]{hyperref}
\setcounter{tocdepth}{3}
-\setcounter{secnumdepth}{3}%增加编号深度
+\setcounter{secnumdepth}{3}
\RequirePackage{dashrule}
\newlength\outermarginwidth
\setlength\outermarginwidth{1.5cm}
\newlength\covershift
\setlength\covershift{5cm}
\RequirePackage{caption}
-% 图注与表注格式
-\colorlet{captioncolor}{outermarginfgcolor} % 图片和表格题注文字颜色
+\colorlet{captioncolor}{outermarginfgcolor}
\makeatletter
-%%----------------------------------封面信息定义--------------------------------------------------------%%
\newcommand\bookseries[1]{\def\@bookseries{#1}}
\newcommand\subtitle[1]{\def\@subtitle{#1}}
\newcommand\edition[1]{\def\@edition{#1}}
\newcommand\presslogo[1]{\def\@presslogo{#1}}
\newcommand\pressname[1]{\def\@pressname{#1}}
\newcommand\coverimage[1]{\def\@coverimage{#1}}
-%%----------------------------------封面信息定义--------------------------------------------------------%%
\makeatother
\RequirePackage{indentfirst}
\RequirePackage{physics}
@@ -120,7 +115,7 @@ citecolor = purple, %%修改此处为你想要的颜色
\pagecolor{nuanbai}
\RequirePackage{amsmath}
\RequirePackage{zhlipsum}
-\RequirePackage{times}
+\RequirePackage{stix}
\RequirePackage[left=2cm,right=2cm,top=.6cm,bottom=2.2cm]{geometry}
\RequirePackage{xpatch}%修正章节编号
\RequirePackage[automark]{scrlayer-scrpage}%页面设置宏包,隶属于koma-script文档类
@@ -236,7 +231,7 @@ citecolor = purple, %%修改此处为你想要的颜色
% ([yshift=2cm]chapnum.north west) rectangle (chapnum.south east);
\fill [outermarginfgcolor,path fading=fade up,rounded corners=5pt]%
([yshift=2cm]chapnum.north west) rectangle (chapnum.south east);
- \node[above left,font=\fontsize{25}{25}\selectfont\bfseries,align=center] (contents name) at ([shift={(0cm,-4.45cm)}]current page.north east) {\begin{varwidth}{.7\linewidth}\baselineskip=2ex #1\end{varwidth}};
+ \node[above left,font=\fontsize{25}{25}\selectfont\bfseries,align=center] (contents name) at ([shift={(0cm,-4.45cm)}]current page.north east) {\begin{varwidth}{.7\linewidth}\baselineskip=2.3ex #1\end{varwidth}};
\end{pgfonlayer}
\begin{pgfonlayer}{bottom}
\node[right] (image) at ([shift={(-0.5cm,-2.8cm)}]current page.north west) {\includegraphics[width=7cm]{inner_pics/song2.png}};
@@ -249,7 +244,7 @@ citecolor = purple, %%修改此处为你想要的颜色
% ([yshift=2cm]chapnum.north west) rectangle (chapnum.south east);
\fill [outermarginfgcolor,path fading=fade up,rounded corners=5pt]%
([yshift=2cm]chapnum.north west) rectangle (chapnum.south east);
- \node[above right,font=\fontsize{25}{25}\selectfont\bfseries,align=center] (contents name) at ([shift={(0cm,-4.45cm)}]current page.north west) {\begin{varwidth}{.7\linewidth}\baselineskip=2ex #1\end{varwidth}};
+ \node[above right,font=\fontsize{25}{25}\selectfont\bfseries,align=center] (contents name) at ([shift={(0cm,-4.45cm)}]current page.north west) {\begin{varwidth}{.7\linewidth}\baselineskip=2.3ex #1\end{varwidth}};
\end{pgfonlayer}
\begin{pgfonlayer}{bottom}
\node[left] (image) at ([shift={(0.5cm,-2.8cm)}]current page.north east) {\includegraphics[width=7cm]{inner_pics/song.png}};