summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/beautybook/Beautybook-CN.cls
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2024-03-17 19:47:27 +0000
committerKarl Berry <karl@freefriends.org>2024-03-17 19:47:27 +0000
commitbaec0e743a16b0a97f725febabbc98d9b116e430 (patch)
treea32cbe244e7871845d0eba61c36c2c0db24d198c /Master/texmf-dist/tex/latex/beautybook/Beautybook-CN.cls
parent3cddb4a66cf2107181d72936bbd411267833a5b0 (diff)
beautybook (17mar24)
git-svn-id: svn://tug.org/texlive/trunk@70672 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/beautybook/Beautybook-CN.cls')
-rw-r--r--Master/texmf-dist/tex/latex/beautybook/Beautybook-CN.cls43
1 files changed, 33 insertions, 10 deletions
diff --git a/Master/texmf-dist/tex/latex/beautybook/Beautybook-CN.cls b/Master/texmf-dist/tex/latex/beautybook/Beautybook-CN.cls
index 32a3f4de852..d3ab12a333e 100644
--- a/Master/texmf-dist/tex/latex/beautybook/Beautybook-CN.cls
+++ b/Master/texmf-dist/tex/latex/beautybook/Beautybook-CN.cls
@@ -7,6 +7,8 @@
\RequirePackage[dvipsnames,svgnames,x11names,table]{xcolor}
\RequirePackage{cncolours}
\setmainfont{Times New Roman}
+\setsansfont{HONOR Sans}
+\setmonofont{Latin Modern Mono}
\colorlet{outermarginfgcolor}{DarkCyan} % foregroundcolor 较深
\colorlet{outermarginbgcolor}{DarkCyan!30} % backgroundcolor 较浅
\RequirePackage{bropd} % math 自适应数学括号命令 \br{} !!!
@@ -193,32 +195,53 @@ citecolor = purple, %%修改此处为你想要的颜色
\newcommand\boxednum[1]
{
\tcbsidebyside[sidebyside adapt=left,
-nobeforeafter,fontupper=\sffamily\large\bfseries,fontlower=\large\bfseries,colframe=white,colupper=white,colback=outermarginfgcolor!90,colbacklower=gray!10,frame hidden,width =\textwidth,
-top=0mm,bottom=0mm,right=0mm,left=2mm,before skip balanced=0em,after skip balanced=0em,arc=0pt,outer arc=0pt,bicolor,sidebyside gap=6mm,boxrule=0pt,sidebyside align=center,halign=center,halign lower=left,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},%下
+nobeforeafter,fontupper=\sffamily\large\bfseries,fontlower=\large,colframe=white,colupper=white,colback=outermarginfgcolor!90,colbacklower=gray!10,frame hidden,width =\textwidth,
+top=0mm,bottom=0mm,right=0mm,left=2mm,before skip balanced=0em,after skip balanced=0em,arc=0pt,outer arc=0pt,bicolor,sidebyside gap=6mm,boxrule=0pt,sidebyside align=center,halign=center,halign lower=left,fuzzy shadow={-0.4mm}{0.4mm}{0mm}{0.2mm}{white!50!gray},% 上
+fuzzy shadow={0.4mm}{-0.4mm}{0mm}{0.2mm}{fill=white!40!gray},%下
]{% left hand side % adjust from this side
\thecontentslabel
}{% right hand side
-#1 \hfill \bfseries\sffamily\thecontentspage
+\textbf{#1} \hfill \thecontentspage
}% end
}
\newcommand\boxednonum[1]
{
-\begin{tcolorbox}[nobeforeafter,fontupper=\large,fontlower=\large\bfseries,colframe=white,fontupper=\sffamily\bfseries,colupper=white,colback=outermarginfgcolor!90,colbacklower=gray!10,frame hidden,width = 1\textwidth,sidebyside gap=6mm,
-top=0mm,bottom=0mm,right=0cm,left=2mm,before skip balanced=0em,after skip balanced=0em,arc=0pt,outer arc=0pt,bicolor,sidebyside,boxrule=0pt,sidebyside align=center,halign=center,halign lower=left,lefthand width=3mm,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},%下
+\begin{tcolorbox}[nobeforeafter,fontupper=\large,fontlower=\large,colframe=white,fontupper=\sffamily\bfseries,colupper=white,colback=outermarginfgcolor!90,colbacklower=gray!10,frame hidden,width = \textwidth,sidebyside gap=6mm,
+top=0mm,bottom=0mm,right=0cm,left=2mm,before skip balanced=0em,after skip balanced=0em,arc=0pt,outer arc=0pt,bicolor,sidebyside,boxrule=0pt,sidebyside align=center,halign=center,halign lower=left,lefthand width=3mm,fuzzy shadow={-0.4mm}{0.4mm}{0mm}{0.2mm}{white!50!gray},% 上
+fuzzy shadow={0.4mm}{-0.4mm}{0mm}{0.2mm}{fill=white!40!gray},%下
]
-\tcblower #1\hfill \bfseries\sffamily\thecontentspage
+\tcblower \textbf{#1}\hfill \thecontentspage
\end{tcolorbox}
}
-
+%
\titlecontents{chapter}[0mm]
{\addvspace{-.5em}}
{\contentsmargin{0pt}\boxednum}
{\contentsmargin{0pt}\boxednonum}
{}
[\addvspace{-.5em}]
+%
+ \titlecontents{section}
+ [4.5em] % ie, 1.5em (chapter) + 2.3em
+ {}
+ {\hyperlink{section.\thecontentslabel}{\contentslabel{2.2em}}}
+ {\hspace*{-2.2em}}
+ {\titlerule*[1pc]{.}\contentspage\hspace*{1.5mm}}
+%
+ \titlecontents{subsection}
+ [7.3em] % ie, 1.5em (chapter) + 2.3em
+ {}
+ {\hyperlink{subsection.\thecontentslabel}{\contentslabel{2.7em}}}
+ {\hspace*{-2.7em}}
+ {\titlerule*[1pc]{.}\contentspage\hspace*{1.5mm}}
+%
+ \titlecontents{subsubsection}
+ [10.7em] % ie, 1.5em (chapter) + 2.3em
+ {}
+ {\hyperlink{subsubsection.\thecontentslabel}{\contentslabel{3.3em}}}
+ {\hspace*{-3.3em}}
+ {\titlerule*[1pc]{.}\contentspage\hspace*{1.5mm}}
% tcolorbox中插入图片或者tikz绘图方法
\newcommand\Figure[4]{%
@@ -1119,7 +1142,7 @@ anchor=west,rounded corners=3pt,font=\bfseries\normalsize] at ([xshift=0cm,yshif
bodyfont=\normalfont,
postheadspace=.5em,
headpunct={.},
- qed=$\blacksquare$,%\qedsymbol
+ qed=\color{cyan!40!black}$\blacksquare$,%\qedsymbol
]{Proofstyle}
\declaretheorem[style=Proofstyle,numbered=no,name={\itbf{Proof}}]{Proof}
\renewenvironment{proof}{\begin{Proof} }{\end{Proof}}