texlive[68438] Master/texmf-dist: beautybook (2oct23)
commits+karl at tug.org
commits+karl at tug.org
Mon Oct 2 21:47:00 CEST 2023
Revision: 68438
https://tug.org/svn/texlive?view=revision&revision=68438
Author: karl
Date: 2023-10-02 21:46:59 +0200 (Mon, 02 Oct 2023)
Log Message:
-----------
beautybook (2oct23)
Modified Paths:
--------------
trunk/Master/texmf-dist/doc/latex/beautybook/README.md
trunk/Master/texmf-dist/doc/latex/beautybook/ref.bib
trunk/Master/texmf-dist/tex/latex/beautybook/Beautybook-CN.cls
trunk/Master/texmf-dist/tex/latex/beautybook/Beautybook-EN.cls
trunk/Master/texmf-dist/tex/latex/beautybook/stys/Beautybook-bottompage.sty
Added Paths:
-----------
trunk/Master/texmf-dist/doc/latex/beautybook/Beautybook-cn.pdf
trunk/Master/texmf-dist/doc/latex/beautybook/Beautybook-cn.tex
trunk/Master/texmf-dist/doc/latex/beautybook/beautybook-en.pdf
trunk/Master/texmf-dist/doc/latex/beautybook/beautybook-en.tex
trunk/Master/texmf-dist/doc/latex/beautybook/inner_pics/titleimages/
trunk/Master/texmf-dist/doc/latex/beautybook/inner_pics/titleimages/even1.png
trunk/Master/texmf-dist/doc/latex/beautybook/inner_pics/titleimages/even2.png
trunk/Master/texmf-dist/doc/latex/beautybook/inner_pics/titleimages/even3.png
trunk/Master/texmf-dist/doc/latex/beautybook/inner_pics/titleimages/even4.png
trunk/Master/texmf-dist/doc/latex/beautybook/inner_pics/titleimages/mid1.png
trunk/Master/texmf-dist/doc/latex/beautybook/inner_pics/titleimages/mid10.png
trunk/Master/texmf-dist/doc/latex/beautybook/inner_pics/titleimages/mid11.png
trunk/Master/texmf-dist/doc/latex/beautybook/inner_pics/titleimages/mid2.png
trunk/Master/texmf-dist/doc/latex/beautybook/inner_pics/titleimages/mid3.png
trunk/Master/texmf-dist/doc/latex/beautybook/inner_pics/titleimages/mid4.png
trunk/Master/texmf-dist/doc/latex/beautybook/inner_pics/titleimages/mid5.png
trunk/Master/texmf-dist/doc/latex/beautybook/inner_pics/titleimages/mid6.png
trunk/Master/texmf-dist/doc/latex/beautybook/inner_pics/titleimages/mid7.png
trunk/Master/texmf-dist/doc/latex/beautybook/inner_pics/titleimages/mid8.png
trunk/Master/texmf-dist/doc/latex/beautybook/inner_pics/titleimages/mid9.png
trunk/Master/texmf-dist/doc/latex/beautybook/inner_pics/titleimages/odd1.png
trunk/Master/texmf-dist/doc/latex/beautybook/inner_pics/titleimages/odd10.png
trunk/Master/texmf-dist/doc/latex/beautybook/inner_pics/titleimages/odd11.png
trunk/Master/texmf-dist/doc/latex/beautybook/inner_pics/titleimages/odd12.png
trunk/Master/texmf-dist/doc/latex/beautybook/inner_pics/titleimages/odd13.png
trunk/Master/texmf-dist/doc/latex/beautybook/inner_pics/titleimages/odd14.png
trunk/Master/texmf-dist/doc/latex/beautybook/inner_pics/titleimages/odd15.png
trunk/Master/texmf-dist/doc/latex/beautybook/inner_pics/titleimages/odd2.png
trunk/Master/texmf-dist/doc/latex/beautybook/inner_pics/titleimages/odd3.png
trunk/Master/texmf-dist/doc/latex/beautybook/inner_pics/titleimages/odd4.png
trunk/Master/texmf-dist/doc/latex/beautybook/inner_pics/titleimages/odd5.png
trunk/Master/texmf-dist/doc/latex/beautybook/inner_pics/titleimages/odd6.png
trunk/Master/texmf-dist/doc/latex/beautybook/inner_pics/titleimages/odd7.png
trunk/Master/texmf-dist/doc/latex/beautybook/inner_pics/titleimages/odd8.png
trunk/Master/texmf-dist/doc/latex/beautybook/inner_pics/titleimages/odd9.png
trunk/Master/texmf-dist/doc/latex/beautybook/inner_pics/titleimages/songeven.png
trunk/Master/texmf-dist/doc/latex/beautybook/inner_pics/titleimages/songodd.png
trunk/Master/texmf-dist/tex/latex/beautybook/stys/Beautybook-cover-birkar.sty
trunk/Master/texmf-dist/tex/latex/beautybook/stys/Beautybook-cover-cn.sty
trunk/Master/texmf-dist/tex/latex/beautybook/stys/Beautybook-cover-en.sty
trunk/Master/texmf-dist/tex/latex/beautybook/stys/Beautybook-cover-enfig.sty
Removed Paths:
-------------
trunk/Master/texmf-dist/doc/latex/beautybook/Beautybook-introduction-chinese.pdf
trunk/Master/texmf-dist/doc/latex/beautybook/Beautybook-introduction-chinese.tex
trunk/Master/texmf-dist/doc/latex/beautybook/Beautybook-introduction-english.pdf
trunk/Master/texmf-dist/doc/latex/beautybook/Beautybook-introduction-english.tex
trunk/Master/texmf-dist/doc/latex/beautybook/inner_pics/part.png
trunk/Master/texmf-dist/doc/latex/beautybook/inner_pics/songeven.png
trunk/Master/texmf-dist/doc/latex/beautybook/inner_pics/songodd.png
trunk/Master/texmf-dist/tex/latex/beautybook/stys/Beautybook-birkar.sty
trunk/Master/texmf-dist/tex/latex/beautybook/stys/Beautybook-cn.sty
trunk/Master/texmf-dist/tex/latex/beautybook/stys/Beautybook-en.sty
trunk/Master/texmf-dist/tex/latex/beautybook/stys/Beautybook-enfig.sty
Added: trunk/Master/texmf-dist/doc/latex/beautybook/Beautybook-cn.pdf
===================================================================
(Binary files differ)
Index: trunk/Master/texmf-dist/doc/latex/beautybook/Beautybook-cn.pdf
===================================================================
--- trunk/Master/texmf-dist/doc/latex/beautybook/Beautybook-cn.pdf 2023-10-02 19:45:53 UTC (rev 68437)
+++ trunk/Master/texmf-dist/doc/latex/beautybook/Beautybook-cn.pdf 2023-10-02 19:46:59 UTC (rev 68438)
Property changes on: trunk/Master/texmf-dist/doc/latex/beautybook/Beautybook-cn.pdf
___________________________________________________________________
Added: svn:mime-type
## -0,0 +1 ##
+application/pdf
\ No newline at end of property
Added: trunk/Master/texmf-dist/doc/latex/beautybook/Beautybook-cn.tex
===================================================================
--- trunk/Master/texmf-dist/doc/latex/beautybook/Beautybook-cn.tex (rev 0)
+++ trunk/Master/texmf-dist/doc/latex/beautybook/Beautybook-cn.tex 2023-10-02 19:46:59 UTC (rev 68438)
@@ -0,0 +1,888 @@
+%% 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-CN}
+\coverstyle={ % 封面键值列表
+ cover-choose=cn, % cn (需新增项\entitle{#}); en ; enfig ; birkar
+}
+\mathstyle={ % 数学字体键值列表
+ math-font=plain, %plain (默认数学字体); stix; mtpro2
+}
+%% 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}},
+ 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}}
+%% Second one
+\makeatletter
+\mynewtcbtheorem{
+ % 这个 theorem 是环境名
+ problem={
+ counter=tcbprob,
+ the counter=\thesection.\arabic{tcbprob},
+ name=Problem, % 它保存到 \theorem at name 里
+ thmcolor=绛紫,
+ autoref name=\bfseries Problem,
+ style={
+ arc=3pt,breakable,enhanced,interior style={top color=绛紫!9 ,middle color=绛紫!6, bottom color=绛紫!3},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={tcbprob},
+ before pre=\smallskip, after app=\smallskip,
+ overlay unbroken=\my at theorem@overlay at unbroken{Problem\ \thetcbprob}{绛紫},
+ overlay first=\my at theorem@overlay at first{Problem\ \thetcbprob}{绛紫},
+ overlay last=\my at theorem@overlay at last{绛紫},
+ }
+ },
+ lemma={
+ counter=tcblem,
+ the counter=\thesection.\arabic{tcblem},
+ name=Lemma,
+ lemcolor=靛蓝,
+ autoref name=\bfseries Lemma,
+ style={
+ arc=0mm,breakable,enhanced,interior style={top color=靛蓝!9 ,middle color=靛蓝!6, bottom color=靛蓝!3},arc=3pt,boxrule=0pt,top=6mm,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=\itshape,step={tcblem},
+ before pre=\smallskip, after app=\smallskip,
+ overlay unbroken=\my at lemma@overlay at unbroken{\lemma at name\ \thetcblem}{\lemma at lemcolor},
+ overlay first=\my at lemma@overlay at first{\lemma at name\ \thetcblem}{\lemma at lemcolor},
+ overlay last=\my at lemma@overlay at last{\lemma at lemcolor},
+ }
+ },
+ corollary={
+ counter=tcbcor,
+ the counter=\thesection.\arabic{tcbcor},
+ autoref name=\bfseries Corollary,
+ style={
+ arc=0mm,breakable,enhanced,interior style={top color=茶色!9 ,middle color=茶色!6, bottom color=茶色!3},arc=3pt,boxrule=0pt,top=6mm,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=\itshape,step={tcbcor},
+ before pre=\smallskip, after app=\smallskip,
+ overlay unbroken=\my at lemma@overlay at unbroken{Corollary\ \thetcbcor}{茶色},
+ overlay first=\my at lemma@overlay at first{Corollary\ \thetcbcor}{茶色},
+ overlay last=\my at lemma@overlay at last{茶色},
+ }
+ },
+ proposition={
+ counter=tcbprop,
+ the counter=\thesection.\arabic{tcbprop},
+ autoref name=\bfseries Proposition,
+ style={
+ arc=0mm,breakable,enhanced,interior style={top color=黛绿!9 ,middle color=黛绿!6, bottom color=黛绿!3},arc=3pt,boxrule=0pt,top=6mm,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=\itshape,step={tcbprop},
+ before pre=\smallskip, after app=\smallskip,
+ overlay unbroken=\my at lemma@overlay at unbroken{Proposition\ \thetcbprop}{黛绿},
+ overlay first=\my at lemma@overlay at first{Proposition\ \thetcbprop}{黛绿},
+ overlay last=\my at lemma@overlay at last{黛绿},
+ }
+ },
+ definition={
+ counter=tcbdefi,
+ the counter=\thesection.\arabic{tcbdefi},
+ autoref name=\bfseries Definition,
+ style={
+ arc=0mm,breakable,enhanced,interior style={top color=茜色!9 ,middle color=茜色!6, bottom color=茜色!3},arc=3pt,boxrule=0pt,top=6mm,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={tcbdefi},
+ before pre=\smallskip, after app=\smallskip,
+ overlay unbroken=\my at lemma@overlay at unbroken{Definition\ \thetcbdefi}{茜色},
+ overlay first=\my at lemma@overlay at first{Definition\ \thetcbdefi}{茜色},
+ overlay last=\my at lemma@overlay at last{茜色},
+ }
+ },
+ example={
+ counter=tcbexam,
+ the counter=\thesection.\arabic{tcbexam},
+ autoref name=\bfseries Example,
+ style={
+ arc=0mm,breakable,enhanced,interior style={top color=黛绿!9 ,middle color=黛绿!6, bottom color=黛绿!3},arc=3pt,boxrule=0pt,top=6mm,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 at lemma@overlay at unbroken{Example\ \thetcbexam}{黛绿},
+ overlay first=\my at lemma@overlay at first{Example\ \thetcbexam}{黛绿},
+ overlay last=\my at lemma@overlay at last{黛绿},
+ }
+ },
+ Exercise={
+ counter=tcbexer,
+ the counter=\thechapter.\arabic{tcbexer},
+ autoref name=\bfseries Exercise,
+ style={
+ arc=0mm,breakable,enhanced,interior style={top color=绛紫!9 ,middle color=绛紫!6, bottom color=绛紫!3},arc=3pt,boxrule=0pt,top=6mm,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 at lemma@overlay at unbroken{Exercise\ \thetcbexer}{绛紫},
+ overlay first=\my at lemma@overlay at first{Exercise\ \thetcbexer}{绛紫},
+ overlay last=\my at lemma@overlay at last{绛紫},
+ }
+ },
+ theorem={
+ counter=tcbthm,
+ the counter=\thesection.\arabic{tcbthm},
+ autoref name=\bfseries Theorem,
+ style={
+ arc=0mm,breakable,enhanced,interior style={top color=黛绿!9 ,middle color=黛绿!6, bottom color=黛绿!3},arc=3pt,boxrule=0pt,top=6mm,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=\itshape,step={tcbthm},
+ before pre=\smallskip, after app=\smallskip,
+ overlay unbroken=\my at lemma@overlay at unbroken{Theorem\ \thetcbthm}{黛绿},
+ overlay first=\my at lemma@overlay at first{Theorem\ \thetcbthm}{黛绿},
+ overlay last=\my at lemma@overlay at last{黛绿},
+ }
+ },
+ conjecture={
+ counter=tcbconj,
+ the counter=\thesection.\arabic{tcbconj},
+ name=Conjecture,
+ lemcolor=靛蓝,
+ autoref name=\bfseries Conjecture,
+ style={
+ arc=0mm,breakable,enhanced,interior style={top color=靛蓝!9 ,middle color=靛蓝!6, bottom color=靛蓝!3},arc=3pt,boxrule=0pt,top=6mm,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=\itshape,step={tcbconj},
+ before pre=\smallskip, after app=\smallskip,
+ overlay unbroken=\my at lemma@overlay at unbroken{Conjecture\ \thetcblem}{靛蓝},
+ overlay first=\my at lemma@overlay at first{Conjecture\ \thetcblem}{靛蓝},
+ overlay last=\my at lemma@overlay at last{靛蓝},
+ }
+ },
+}
+\makeatother
+
+%% --------参考文献
+\RequirePackage[
+backend=biber,
+style=numeric,
+sorting=nty
+]{biblatex}
+\addbibresource{ref.bib}
+
+\indexsetup{level=\chapter*,noclearpage}
+\makeindex[title={\sffamily References},columns=3,columnsep=15pt,columnseprule]
+\makeindex
+
+\newcommand{\pr}{^\prime}
+\newcommand{\prr}{^{\prime\prime}}
+\newcommand{\bd}{\partial}
+\newcommand{\bdd}{\overline{\partial}}
+\newcommand{\Dif}[2]{\frac{\dd #1}{\dd #2}}
+\newcommand{\Diff}[2][]{\frac{\partial #1}{\partial #2}}
+\usepackage{shadowtext}\shadowoffset{.65pt}
+\newcommand*{\circledd}[1]{\lower.7ex\hbox{\tikz\draw (0pt, 0pt)%
+ circle (.5em) node {\makebox[1em][c]{\small #1}};}}
+ \usepackage{listings}
+ \lstset{
+ basicstyle=\small\ttfamily,
+ keywordstyle=\color{NavyBlue},
+ commentstyle=\color{gray!50!black!50},
+ stringstyle=\rmfamily\slshape\color{red},
+ backgroundcolor=\color{gray!5},
+ frame=leftline,
+ framerule=0.5pt,rulecolor=\color{gray!80},
+ numbers=left,
+ numberstyle=\footnotesize,
+ firstnumber=1,
+ stepnumber=1,
+ numbersep=7pt,
+ aboveskip=.25em,
+ showspaces=false,
+ showstringspaces=false,
+ keepspaces=true,
+ showtabs=false,
+ tabsize=2,
+ captionpos=b,
+ flexiblecolumns=true,
+ breaklines=true,
+ breakatwhitespace=false,
+ breakautoindent=true,
+ breakindent=1em,
+ title=\lstname,
+ escapeinside=``,
+ xleftmargin=1em, xrightmargin=1em,
+ aboveskip=1ex, belowskip=1ex,
+ framextopmargin=1pt, framexbottommargin=1pt,
+ abovecaptionskip=-2pt,belowcaptionskip=3pt,
+ extendedchars=false, columns=flexible, mathescape=true,
+ texcl=true,
+ fontadjust
+ }%
+
+\begin{document}
+\thispagestyle{empty}
+\title{Beautybook模板简介}
+\subtitle{}
+\edition{First Edition}
+\bookseries{Illustrated by Ethan Lu}
+\author{Ethan Lu}
+\pressname{Beautybook}
+\presslogo{inner_pics/logo.png}
+\coverimage{inner_pics/coverimage.jpg}%ivy-ge998908f8_1280.jpg
+\makecover
+
+
+\definecolor{bg}{HTML}{e0e0e0}
+\definecolor{fg}{HTML}{2c4f54}
+\colorlet{outermarginbgcolor}{bg}
+\colorlet{outermarginfgcolor}{fg}
+\colorlet{framegolden}{fg}
+\colorlet{framegray}{bg!50}
+
+\makeatletter
+% set the contents of the outer margin on even and odd pages for scrheadings, plain and scth
+\oddoutermargin{\sffamily Vanishing Theorems on Vector Bundles with Semidefinite Curvature} % Odd 奇数页
+\evenoutermargin{\sffamily\@title} % Even 偶数页
+%
+\titleimage{
+ 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},
+%
+ 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},
+%
+ chapterevenimage={songeven,even1,even2,even3,even4,mid1,mid2,mid3,mid4,mid5,mid6,mid7,mid8,mid9,mid10,mid11},
+%
+ partevenimage={songeven,even1,even2,even3,even4,mid1,mid2,mid3,mid4,mid5,mid6,mid7,mid8,mid9,mid10,mid11},
+}
+\chapimage{\Beautybook at chapterimagename} % 会自动改变
+\partimage{\Beautybook at partimagename} % 会自动改变
+\makeatother
+%
+\frontmatter
+\pagenumbering{Roman}
+
+{% Preface
+\thispagestyle{empty}
+% \addcontentsline{toc}{chapter}{Preface}
+\chapter*{Preface}
+Introduction to Beatybook template.
+
+
+\hfill
+\begin{tabular}{lr}
+ &----- Ethan Lu\\
+ &2023-09-01
+\end{tabular}
+\clearpage}
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+
+\thispagestyle{empty}
+\tableofcontents\let\cleardoublepage\clearpage
+
+
+\mainmatter
+\pagenumbering{arabic}
+
+\partabstract{\hspace*{2em} \textbf{Beautybook} 模板的使用说明,这里是每一个部分 (Part) 的简介区域, 您可以在此处书写下您对该部分的一个简明扼要的概述, 当然,倘若无话可说,此处可以留空.}
+\part{\textbf{Beautybook} 模板使用说明}
+
+\chapter{Beautybook模板的简要介绍}
+
+\section{简介}
+
+Beauty\LaTeX{} 系列模板是由我所做的书籍模板系列, 名叫\textbf{Beautybook}! 关于为何起这么奇怪的名字? 我的答案是, 本来我是想起名elegantboook的,但是奈何已经有了大名鼎鼎的elegantbook系列, 所以鄙人只能退而求其次,命名为同样是美丽意思的名词与书籍相组合,古人云:书中自有颜如玉,这不, 美女配书籍,岂不美哉! 故而,这就是 \textbf{Beautybook} 的由来!
+
+本人致力于打造一系列美观、优雅、简便的模板以方便用户和我自己 (主要是服务于自己的,但是耐不住大伙的赏识,遂毛遂自荐一番,望谅解!) 使用。版本经常有所更迭,请关注版本信息,在未开始使用模板前,建议直接选择最新正式版本!最新测试版通常会发布在QQ群内,诸君可自取, 取完后是留是去随意.
+
+
+本文将介绍本模板的一些设置内容以及基本使用方法。如果您有其他问题,建议或者意见,欢迎在 GitHub 上给我提交 \href{https://github.com/BeautyLaTeX/latex-template/issues}{issues} 或者邮件\href{h1479840692 at 163.com}{163邮箱}或者\href{1479840692 at qq.com}{qq邮箱}联系我。我的联系方式如下,建议加入用户 QQ 群提问,这样能更快获得准确的反馈,加群时请备注 \LaTeX{} 或者 Beauty\LaTeX{} 相关内容。
+\begin{itemize}
+ \item GitHub 地址:\href{https://github.com/BeautyLaTeX/latex-template}{https://github.com/BeautyLaTeX/latex-template}
+ \item 下载地址:\href{https://github.com/BeautyLaTeX/latex-template/releases}{正式发行版}
+ \item 用户 QQ 群:809237593
+ \item 我的outlook邮箱:\href{https://h1479840692@outlook.com}{Outlook Email}
+\end{itemize}
+\textbf{This work is released under the LaTeX Project Public License, v1.3c or later.}
+
+\section{模板安装与更新}
+
+你需要通过下载然后编译的方式使用本模板,仅有本地(文件夹内)使用一种方式。
+
+\subsection{在线使用模板}
+本模板可以直接上传到overleaf上使用,但需要注意的是, 需要使用 math-font=plain 键值, 并使用XeLaTeX或者lualatex编译!
+
+\subsection{本地安装使用}
+
+\textbf{本地安装}使用方法如下:从 GitHub 或者 QQ群下载最新版, 然后将模板文件放在你的工作目录下并且同步复制这几个文件夹: \textit{chinesefonts}, \textit{fonts}, \textit{stys}, \textit{inner\_pics}, 即可使用。这样使用的好处是,相比在线使用,可以通过自行安装mtpro2字体实现更加精美的效果,当然如何选择交给用户本身,此处不作评价.
+
+以下是最小工作示例:
+\begin{lstlisting}
+\documentclass[zihao=-4,fontset=windows]{Beautybook-CN}
+\coverstyle={
+ cover-choose=enfig, % cn (en ; enfig ; birkar)
+}
+\mathstyle={
+ math-font=plain, % plain; stix; mtpro2
+}
+\usepackage{bm}
+% \overfullrule=1pt
+% \RequirePackage[fontsize=13.5pt]{fontsize}
+%% 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}},
+ 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}}
+%% Second one
+\makeatletter
+\mynewtcbtheorem{
+ % Theorems
+ problem={
+ counter=tcbprob,
+ the counter=\thesection.\arabic{tcbprob},
+ name=Problem,
+ thmcolor=purple,
+ autoref name=\bfseries Problem,
+ style={
+ arc=3pt,breakable,enhanced,interior style={top color=purple!9 ,middle color=purple!6, bottom color=purple!3},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={tcbprob},
+ before pre=\smallskip, after app=\smallskip,
+ overlay unbroken=\my at theorem@overlay at unbroken{Problem\ \thetcbprob}{purple},
+ overlay first=\my at theorem@overlay at first{Problem\ \thetcbprob}{purple},
+ overlay last=\my at theorem@overlay at last{purple},
+ }
+ },
+ lemma={
+ counter=tcblem,
+ the counter=\thesection.\arabic{tcblem},
+ name=Lemma,
+ lemcolor=blue,
+ autoref name=\bfseries Lemma,
+ style={
+ arc=0mm,breakable,enhanced,interior style={top color=blue!9 ,middle color=blue!6, bottom color=blue!3},arc=3pt,boxrule=0pt,top=6mm,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=\itshape,step={tcblem},
+ before pre=\smallskip, after app=\smallskip,
+ overlay unbroken=\my at lemma@overlay at unbroken{\lemma at name\ \thetcblem}{\lemma at lemcolor},
+ overlay first=\my at lemma@overlay at first{\lemma at name\ \thetcblem}{\lemma at lemcolor},
+ overlay last=\my at lemma@overlay at last{\lemma at lemcolor},
+ }
+ },
+}
+\makeatother
+%
+
+
+%% --------References
+\RequirePackage[
+backend=biber,
+style=numeric,
+sorting=nty
+]{biblatex}
+\addbibresource{ref.bib}
+
+\indexsetup{level=\chapter*,noclearpage}
+\makeindex[title={\sffamily References},columns=3,columnsep=15pt,columnseprule]
+\makeindex
+
+\newcommand{\pr}{^\prime}
+\newcommand{\prr}{^{\prime\prime}}
+\newcommand{\bd}{\partial}
+\newcommand{\bdd}{\overline{\partial}}
+\newcommand{\Dif}[2]{\frac{\dd #1}{\dd #2}}
+\newcommand{\Diff}[2][]{\frac{\partial #1}{\partial #2}}
+\usepackage{shadowtext}\shadowoffset{.65pt}
+\newcommand*{\circledd}[1]{\lower.7ex\hbox{\tikz\draw (0pt, 0pt)%
+ circle (.5em) node {\makebox[1em][c]{\small #1}};}}
+ \usepackage{listings}
+ \lstset{
+ basicstyle=\small\ttfamily,
+ keywordstyle=\color{NavyBlue},
+ commentstyle=\color{gray!50!black!50},
+ stringstyle=\rmfamily\slshape\color{red},
+ backgroundcolor=\color{gray!5},
+ frame=leftline,
+ framerule=12pt,%
+ rulecolor=\color{gray!90},
+ numbers=left,
+ numberstyle=\footnotesize\itshape,
+ firstnumber=1,
+ stepnumber=1,
+ numbersep=7pt,
+ aboveskip=.25em,
+ showspaces=false,
+ showstringspaces=false,
+ keepspaces=true,
+ showtabs=false,
+ tabsize=2,
+ captionpos=b,
+ flexiblecolumns=true,
+ breaklines=true,
+ breakatwhitespace=false,
+ breakautoindent=true,
+ breakindent=1em,
+ title=\lstname,
+ escapeinside=``,
+ xleftmargin=1em, xrightmargin=1em,
+ aboveskip=1ex, belowskip=1ex,
+ framextopmargin=1pt, framexbottommargin=1pt,
+ abovecaptionskip=-2pt,belowcaptionskip=3pt,
+ extendedchars=false, columns=flexible, mathescape=true,
+ texcl=true,
+ fontadjust
+ }%
+
+\begin{document}
+\thispagestyle{empty}
+\title{An Introduction to Beautybook template}
+\subtitle{}
+\edition{First Edition}
+\bookseries{Illustrated by Ethan Lu}
+\author{Ethan Lu}
+\pressname{Springer}
+\presslogo{inner_pics/logo.png}
+\coverimage{inner_pics/coverimage.jpg}%ivy-ge998908f8_1280.jpg
+\makecover
+
+
+\definecolor{bg}{HTML}{e0e0e0}
+\definecolor{fg}{HTML}{2c4f54}
+\colorlet{outermarginbgcolor}{bg}
+\colorlet{outermarginfgcolor}{fg}
+\colorlet{framegolden}{fg}
+\colorlet{framegray}{bg!50}
+
+\makeatletter
+% set the contents of the outer margin on even and odd pages for scrheadings, plain and scth
+\oddoutermargin{\sffamily Vanishing Theorems on Vector Bundles with Semidefinite Curvature} % Odd pages
+\evenoutermargin{\sffamily\@title} % Even pages
+%
+\titleimage{
+ 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},
+%
+ 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},
+%
+ chapterevenimage={songeven,even1,even2,even3,even4,mid1,mid2,mid3,mid4,mid5,mid6,mid7,mid8,mid9,mid10,mid11},
+%
+ partevenimage={songeven,even1,even2,even3,even4,mid1,mid2,mid3,mid4,mid5,mid6,mid7,mid8,mid9,mid10,mid11},
+}
+\chapimage{\Beautybook at chapterimagename} % Changing automatically.
+\partimage{\Beautybook at partimagename} % Changing automatically.
+\makeatother
+%
+\frontmatter
+\pagenumbering{Roman}
+
+{% Preface
+\thispagestyle{empty}
+% \addcontentsline{toc}{chapter}{Preface}
+\chapter*{Preface}
+Your words here.
+
+
+\hfill
+\begin{tabular}{lr}
+ &----- author\\
+ & 2023-09-01
+\end{tabular}
+\clearpage}
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+
+\thispagestyle{empty}
+\tableofcontents\let\cleardoublepage\clearpage
+
+
+\mainmatter
+\pagenumbering{arabic}
+
+\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}}
+
+\section{Section}
+
+% your main contents here!
+
+
+\printindex\thispagestyle{empty}
+\bottomimage{inner_pics/coverimage.jpg}
+\ISBNcode{\EANisbn[ISBN=978-80-7340-097-2]} %
+\summary{Summary.}
+\makebottomcover
+\end{document}
+\end{lstlisting}
+\subsection{发行版安装与更新}
+
+本模板测试环境为
+\begin{enumerate}
+\item Win11 22H2 + \TeX{} Live 2023;
+\end{enumerate}
+
+\TeX Live/Mac\TeX{} 的安装请参考知乎的文章,此处略过。
+
+安装 \TeX{} Live 之后,安装后建议升级全部宏包,升级方法:使用 cmd 或 terminal 运行 \lstinline{tlmgr update --all},如果 tlmgr 需要更新,请使用 cmd 运行 \lstinline{tlmgr update --self},如果更新过程中出现了中断,请改用 \lstinline{tlmgr update --self --all --reinstall-forcibly-removed} 更新,也即
+
+\begin{lstlisting}
+tlmgr update --self
+tlmgr update --all
+tlmgr update --self --all --reinstall-forcibly-removed
+\end{lstlisting}
+
+更多的内容请参考 \href{https://tex.stackexchange.com/questions/55437/how-do-i-update-my-tex-distribution}{How do I update my \TeX{} distribution?}
+
+\subsection{其他发行版本}
+
+由于宏包版本问题,本模板不支持 C\TeX{} 套装,请务必安装 TeX Live/Mac\TeX{}。更多关于 \TeX{} Live 的安装使用以及 C\TeX{} 与 \TeX{} Live 的兼容、系统路径问题,请参考官方文档以及啸行的\href{https://github.com/OsbertWang/install-latex-guide-zh-cn/releases/}{一份简短的关于安装 \LaTeX{} 安装的介绍}。
+
+
+
+\chapter{Beautybook 设置说明}
+
+本模板英文版基于基础的 book 文类, 中文版则基于ctexbook文类,所以 book或者ctexbook 的选项对于本模板也是有效的。默认编码为 UTF-8,推荐使用 \TeX{} Live 编译。
+
+\section{语言模式}
+本模板内含两套基础语言环境, 分别为 中文的\lstinline{Beautybook-CN.cls}、英文的\lstinline{Beautybook-EN.cls}。改变语言环境会改变图表标题的引导词(图,表),文章结构词(比如目录,参考文献等),以及定理环境中的引导词(比如定理,引理等)。不同语言模式的启用如下:
+\begin{lstlisting}
+\documentclass{Beautybook-CN} % 中文
+\documentclass{Beautybook-EN} % 英文
+\end{lstlisting}
+
+除模板自带的两套语言设定之外,如果您需要使用其他语言, 可以通过更改cls文件中这几处解决, 分别为
+
+\begin{enumerate}
+ \item 更改 part环境的名称 \lstinline{Part \thepart}为 \lstinline{(你的语言中part的翻译) \thepart}
+ \item 主文件,即当前文件导言区中的定理引导词
+ \item 更改chapter环境中的part名称如第一条所示
+ \item 记住, 仅有亚洲语言环境可以使用ctexbook文类, 即基于\lstinline{Beautybook-CN.cls}更改, 其他西语环境需要基于\lstinline{Beautybook-EN.cls}更改.
+\end{enumerate}
+
+
+\section{颜色主题}
+
+本模板的颜色是可以自由配置的,可以配置的颜色参数如下:
+\begin{lstlisting}
+ \definecolor{bg}{HTML}{e0e0e0} % 整体风格的背景色 % 即浅色
+ \definecolor{fg}{HTML}{455a64} % 整体风格的前景色 % 即深色
+ %% 下面颜色位于 stys/bottompage.sty文件中
+ \definecolor{coverbgcolor}{HTML}{f9b868} % 封面及封底背景色
+ \definecolor{coverfgcolor}{HTML}{503D4B} % 封面及封底前景色
+ \definecolor{coverbar}{HTML}{BF8E6F} % 封面竖条颜色
+ \definecolor{bottomcolor}{HTML}{B3686A} % 封底说明背景颜色
+ %%%%%%%%%%%%%%%%%%%%%%%%
+ \colorlet{framegolden}{fg} % 古风盒子线条颜色
+ \colorlet{framegray}{黛绿!5} % 古风盒子背景色
+\end{lstlisting}
+还有定理环境颜色可以在此文件的导言区设置,下面数学环境部分会展开讲.
+
+这里推荐使用林莲枝开发的cncolours宏包的颜色配置,可以对照选取适合的颜色.
+
+\section{封面}
+
+\subsection{封面个性化}
+
+本模板拥有多套封面可随意取用, 其中使用方法如下:
+\begin{enumerate}
+ \item Springer经典封面--对应宏包 \lstinline{cover-choose=cn} (中文默认),
+ \item Springer经典封面之二--对应宏包 \lstinline{cover-choose=en} (英文默认),
+ \item Springer经典封面之三--对应宏包 \lstinline{cover-choose=enfig} (图片背景),
+ \item 中文书籍经典封面--对应宏包\lstinline{cover-choose=birkar} (三角几何风)。
+ 注意, 使用该封面所对应的信息不太一样, 看好上面的示例,按照要求操作即可。
+\end{enumerate}
+
+\begin{table}[htbp]
+ \centering
+ \caption{封面元素信息}
+ \begin{tabular}{cccccc}
+ \hline
+ 信息 & 命令 & 信息 & 命令 & 信息 & 命令 \\
+ \hline
+ 标题 & \lstinline|\title| & 副标题 & \lstinline|\subtitle| & 作者 & \lstinline|\author| \\
+ 出版社 & \lstinline|\pressname| & 版本 & \lstinline|\edition| & 封面图 & \lstinline|\coverimage|\\
+ 徽标 & \lstinline|\presslogo| & 英文标题(cn)&\lstinline|\entitle|&&\\
+ \hline
+ \end{tabular}
+\end{table}
+
+
+\subsection{封面图}
+封面图片可以自行去找.
+
+\subsection{徽标}
+
+本文用到的 Logo 为wiki随意找的springer经典马标, 可以自己查询下载出版社logo, 为免侵权,在更换图片的时候请选择合适合法的图片进行替换。
+
+\subsection{自定义封面}
+
+另外,如果使用自定义的封面,比如 Adobe illustrator 或者其他软件制作的 A4 PDF 文档,请把 \lstinline{\makecover} 注释掉,然后借助 \lstinline{pdfpages} 宏包将自制封面插入即可。如果使用 \lstinline{titlepage} 环境,也是类似。
+
+\section{章标题}
+
+本模板自定义了一套标题样式, 主要是 part、chapter、section 这三个标题,具体代码见cls。可能不适合所有人的审美,可以注释掉就会回归默认ctexbook的标题样式。
+
+\section{数学环境简介}
+
+在我们这个模板中,我们定义了四种不同的定理模式,包括简单模式(默认的定理样式amsthm) 、有点自定义的thmtools、彩色强调盒子、以及本人开发的专有版权盒子,当然,由雾月老师给我定制的古风盒子您也可以是用来作为定理盒子,只需要在本文件导言区第一种定理样式里面加上\lstinline{ys style}即可.
+
+
+\subsection{定理类环境的使用}
+以下是使用效果展示
+\subsubsection{amsthm}
+\begin{remark}
+ 这是基于amsthm的注释环境
+\end{remark}
+\subsubsection{thmtools}
+\begin{proof}[证明的说明]
+ 证明环境
+\end{proof}
+
+\begin{solution}[解的说明]
+ 解环境
+\end{solution}
+\subsubsection{彩色强调盒子}
+\begin{defi}[名称]\label{defi:def test}
+ 第一种定义环境
+\end{defi}
+
+\begin{thm}[名称]\label{thm:thm test}
+ 第一种定理环境
+\end{thm}
+
+\begin{cor}[名称]\label{cor:cor test}
+ 第一种推论环境
+\end{cor}
+
+\begin{prop}[名称]\label{prop:prop test}
+ 第一种命题环境
+\end{prop}
+
+\begin{exam}[名称]\label{exam:exam test}
+ 第一种例题环境
+\end{exam}
+
+\begin{lem}[名称]\label{lem:lem test}
+ 第一种引理环境
+\end{lem}
+\clearpage
+\subsubsection{个人版权的盒子共两种}
+
+\begin{definition}[][名称][def label]
+ 这是个人定制的盒子定制的定理环境,这是其中定义环境示例。注意:使用方法如下
+
+ \begin{itemize}
+ \item 如果你没有名称和标签,使用方法为
+ \begin{lstlisting}
+ \begin{definition}
+ 定义环境内容
+ \end{definition}
+ \end{lstlisting}
+ \item 如果你没有标签但有名称,使用方法为
+ \begin{lstlisting}
+ \begin{definition}[][名称]
+ 定义环境内容
+ \end{definition}
+ \end{lstlisting}
+ \item 如果你有标签,那么无论是否有名称,使用方法为
+ \begin{lstlisting}
+ \begin{definition}[][有就填,没有空着][标签]
+ 定义环境内容
+ \end{definition}
+ \end{lstlisting}
+ \item 如果你想更改盒子的一些设定选项,比如加框线等之类的,使用方法为
+ \begin{lstlisting}
+ \begin{definition}[tcolorbox选项][名称有就写,没有就连带外面括号删掉][标签 (有标签下就这样子,没有标签可以把这个标签连带外面的括号删掉)]
+ 定义环境内容
+ \end{definition}
+ \end{lstlisting}
+ \end{itemize}
+
+\end{definition}
+
+\begin{theorem}
+ 用法同上,引用下上面的标签 \ref{def label}或者可以\autoref{def label}.
+\end{theorem}
+
+\begin{lemma}
+ 用法同上,引用下上面的标签 \ref{def label}或者可以\autoref{def label}.
+\end{lemma}
+
+\begin{corollary}
+ 用法同上,引用下上面的标签 \ref{def label}或者可以\autoref{def label}.
+\end{corollary}
+
+\begin{example}
+ 用法同上,引用下上面的标签 \ref{def label}或者可以\autoref{def label}.
+\end{example}
+
+古风盒子
+\begin{fancybox}
+古风盒子测试,可以任意嵌套其他环境!
+\end{fancybox}
+
+\subsection{修改计数器}
+
+当前定理等环境计数器按章计数,如果想修改定理类环境按节计数,可以修改计数器选项 \lstinline{ counter/.code}中的\lstinline{chapter},可用选项为 \lstinline{chapter} (默认)与 \lstinline{section}、 \lstinline{subsection}等
+
+\subsection{自定义定理类环境}
+用户可以采用四种方式定义自己的定理环境,分别为amsthm与thmtools, 这两种看宏包说明文档即可; 后面两种定理的定义方式为
+如本文件导言区:
+\begin{lstlisting}
+ % 这是第一种
+ \mynewtheorem{
+ defi={\textbf{定义}}[section]{interior style={left color=ReD!8,right color=ReD!5!CyaN!50}, borderline west={1.5mm}{0mm}{ReD}}, % 类似模仿即可
+ }
+
+ % 下面是第二种
+ \mynewtcbtheorem{
+ % 这个 theorem 是环境名
+ theorem={ % 第一种 : 圣诞礼盒风格
+ counter=tcbthm,
+ the counter=\thesection.\arabic{tcbthm},
+ name=定理, % 它保存到 \theorem at name 里
+ thmcolor=purple5,
+ autoref name=\bfseries 定理,
+ 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},% 上
+ fuzzy shadow={0.6mm}{-0.6mm}{0mm}{0.3mm}{fill=white!40!gray},%下
+ opacityframe=0, opacityback=0.98,
+ fontupper=\itshape, step={tcbthm},
+ before pre=\smallskip, after app=\smallskip,
+ overlay unbroken=\my at theorem@overlay at unbroken{\theorem at name\ \thetcbthm}{\theorem at thmcolor},
+ overlay first=\my at theorem@overlay at first{\theorem at name\ \thetcbthm}{\theorem at thmcolor},
+ overlay last=\my at theorem@overlay at last{\theorem at thmcolor},
+ }
+ },
+ lemma={ % 第二种 : 丝带风格
+ counter=tcblem,
+ the counter=\thesection.\arabic{tcblem},
+ name=引理,
+ lemcolor=靛蓝,
+ autoref name=\bfseries 引理,
+ style={
+ arc=0mm,breakable,enhanced,interior style={top color=靛蓝!5 ,middle 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},% 上
+ 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 at lemma@overlay at unbroken{\lemma at name\ \thetcblem}{\lemma at lemcolor},
+ overlay first=\my at lemma@overlay at first{\lemma at name\ \thetcblem}{\lemma at lemcolor},
+ overlay last=\my at lemma@overlay at last{\lemma at lemcolor},
+ }
+ },
+}
+\end{lstlisting}
+\begin{remark}
+ 解释一下, 其中的overlay部分更改需要看中文修改,定理名称改成你想要的,颜色也是,然后别忘了给最外面的example之类的环境名改成你的,比如axiom之类,还有就是tcbexam这个计数器名称要换成你新定义的,如tcbaxiom之类,其他就不用动了。至于说第一种定理样式看上面例子相信您能学会的。
+\end{remark}
+
+\section{列表环境}
+本模板借助于 \lstinline{enumitem} 实现了可定制化,具体见enumitem宏包说明文档,这里示例如下\\[2ex]
+\begin{minipage}[b]{0.49\textwidth}
+ \begin{itemize}[label=$\bigodot $]
+ \item first item of nesti;
+ \item second item of nesti;
+ \begin{itemize}
+ \item first item of nestii;
+ \item second item of nestii;
+ \begin{itemize}
+ \item first item of nestiii;
+ \item second item of nestiii.
+ \end{itemize}
+ \end{itemize}
+ \end{itemize}
+\end{minipage}
+\begin{minipage}[b]{0.49\textwidth}
+ \begin{enumerate}[label=\arabic*)]
+ \item first item of nesti;
+ \item second item of nesti;
+ \begin{enumerate}
+ \item first item of nestii;
+ \item second item of nestii;
+ \begin{enumerate}
+ \item first item of nestiii;
+ \item second item of nestiii.
+ \end{enumerate}
+ \end{enumerate}
+ \end{enumerate}
+\end{minipage}
+
+\section{参考文献}
+
+\subsection{打印文献}
+
+\lstinline{ref.bib} 为参考文献存放的文件,需要放在项目文件夹下。
+
+\subsection{修改文献格式}
+
+此外,本模板调用了 biblatex 宏包,并提供了 biber引擎编译参考文献,当然您也可以直接删除cls中的biblatex宏包(cls最后几行)来使用bibtex.
+
+关于文献条目(bib item),你可以在谷歌学术,Mendeley,Endnote 中取,然后把它们添加到 \lstinline{ref.bib} 中。在文中引用的时候,引用它们的键值(bib key)即可。
+
+文献样式默认为国标 GB7714-2015, 参考文献示例:\cite{Huybrechts2010Complex}。
+
+如果需要设置为数字样式,需要将biblatex宏包选项中的国标改为numerical.
+\begin{lstlisting}
+\usepackage[
+backend=biber, % 可改为bibtex (或者直接删掉就是bibtex)
+style=gb7714-2015, % 可改为 numerical
+sorting=nty
+]{biblatex}
+\addbibresource{ref.bib}
+\end{lstlisting}
+
+\chapter{字体选项}
+字体选项独立成章的原因是,我们希望本模板的用户关心模板使用的字体,知晓自己使用的字体以及遇到字体相关的问题能更加便捷地找到答案。
+
+本模板默认使用ctex的windows选项提供的字体, 如非必要,字体不应改动,当然,如果确实需要,可按照下面代码操作:
+\begin{lstlisting}
+ \setCJKmainfont[Path=fonts/,BoldFont={XX.TTF},ItalicFont={YY.TTF},SlantedFont = {ZZ.TTF} , SlantedFeatures = {FakeSlant}]{WW.TTF}
+ \setCJKsansfont[Path=fonts/,BoldFont={XX.TTF},ItalicFont={XX.TTF}]{XX.TTF}
+ \setCJKmonofont[Path=fonts/,BoldFont={XX.TTF},ItalicFont={XX.TTF}]{XX.TTF}
+ %设置新的中文字体命令
+ \newCJKfontfamily[song]\songti{XX.TTF}[Path=fonts/] %宋体
+ %设置新的英文字体命令
+ \newfontfamily\largetitlestyle[Path=fonts/]{XX.TTF}
+\end{lstlisting}
+!必须全部使用英文字体名称进行导入,否则报错找不到的!!切记!!
+
+\section{数学字体选项}
+本模板使用的是mtpro2字体,需要用户自行安装,安装教程见\href{https://www.latexstudio.net/archives/51742.html}{mtpro2字体安装教程}。当然也可以删除本文件导言区的mtpro2字体换回默认数学字体,诸君随意。
+
+
+{\normalem
+\printbibliography[
+heading=bibintoc,
+title={参考文献}
+]
+\printindex
+\thispagestyle{empty}}
+%-------------------封底 ---------------%
+\bottomimage{inner_pics/ivy-ge998908f8_1280.jpg}
+\ISBNcode{\EANisbn[ISBN=978-80-7340-097-2]} %
+\summary{封底信息.}
+\makebottomcover
+\end{document}
\ No newline at end of file
Property changes on: trunk/Master/texmf-dist/doc/latex/beautybook/Beautybook-cn.tex
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Deleted: trunk/Master/texmf-dist/doc/latex/beautybook/Beautybook-introduction-chinese.pdf
===================================================================
(Binary files differ)
Deleted: trunk/Master/texmf-dist/doc/latex/beautybook/Beautybook-introduction-chinese.tex
===================================================================
--- trunk/Master/texmf-dist/doc/latex/beautybook/Beautybook-introduction-chinese.tex 2023-10-02 19:45:53 UTC (rev 68437)
+++ trunk/Master/texmf-dist/doc/latex/beautybook/Beautybook-introduction-chinese.tex 2023-10-02 19:46:59 UTC (rev 68438)
@@ -1,810 +0,0 @@
-%% 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-CN}
-\coverstyle={ % 封面键值列表
- cover-choose=cn, % cn (需新增项\entitle{#}); en ; enfig ; birkar
-}
-\mathstyle={ % 数学字体键值列表
- math-font=plain, %plain (默认数学字体); mtpro2
-}
-%% 定义第一种定理
-\mynewtheorem{
- defi={\textbf{定义}}[section]{interior style={left color=ReD!8,right color=ReD!5!CyaN!50}, borderline west={1.5mm}{0mm}{ReD}},
- thm={\textbf{定理}}[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{引理}}[section]{interior style={left color=BluE!8,right color=BluE!5!CyaN!50}, borderline west={1.5mm}{0mm}{BluE}},
- prop={\textbf{命题}}[section]{interior style={left color=OrangE!8,right color=OrangE!5!CyaN!50}, borderline west={1.5mm}{0mm}{OrangE}},
- exam={\textbf{题}}[chapter]{interior style={left color=DarkGreen!8,right color=DarkGreen!5!CyaN!50}, borderline west={1.5mm}{0mm}{DarkGreen}},
- cor={\textbf{推论}}[chapter]{interior style={left color=violet!8,right color=violet!5!CyaN!50}, borderline west={1.5mm}{0mm}{violet}},
-}
-\newtheorem*{remark}{\textbf{注}}
-%% 定义第二种定理
-% overlay unbroken=\my at theorem@overlay at unbroken{\theorem at name\ \thetcbthm}{额外的选项}
-% overlay first=\my at theorem@overlay at first{\theorem at name\ \thetcbthm}{额外的选项}
-%% 用户接口区
-\definecolor{examback}{HTML}{e3e6e8}
-\makeatletter
-\mynewtcbtheorem{
- % 这个 theorem 是环境名
- theorem={
- counter=tcbthm,
- the counter=\thesection.\arabic{tcbthm},
- name=定理, % 它保存到 \theorem at name 里
- thmcolor=高粱红,
- autoref name=\bfseries 定理,
- style={
- arc=3pt,breakable,enhanced,interior style={top color=高粱红!12 ,middle color=高粱红!9, bottom 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},
- before pre=\smallskip, after app=\smallskip,
- overlay unbroken=\my at theorem@overlay at unbroken{\theorem at name\ \thetcbthm}{\theorem at thmcolor},
- overlay first=\my at theorem@overlay at first{\theorem at name\ \thetcbthm}{\theorem at thmcolor},
- overlay last=\my at theorem@overlay at last{\theorem at thmcolor},
- }
- },
- proposition={
- counter=tcbprop,
- the counter=\thesection.\arabic{tcbprop},
- autoref name=\bfseries 命题,
- style={
- arc=3pt,breakable,enhanced,interior style={top color=高粱红!12 ,middle color=高粱红!9, bottom 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={tcbprop},
- before pre=\smallskip, after app=\smallskip,
- overlay unbroken=\my at theorem@overlay at unbroken{命题\ \thetcbprop}{高粱红},
- overlay first=\my at theorem@overlay at first{命题\ \thetcbprop}{高粱红},
- overlay last=\my at theorem@overlay at last{高粱红},
- }
- },
- definition={
- counter=tcbdefi,
- the counter=\thesection.\arabic{tcbdefi},
- autoref name=\bfseries 定义,
- style={
- arc=3pt,breakable,enhanced,interior style={top color=紫棠!12 ,middle color=紫棠!9, bottom 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={tcbdefi},
- before pre=\smallskip, after app=\smallskip,
- overlay unbroken=\my at theorem@overlay at unbroken{定义\ \thetcbdefi}{紫棠},
- overlay first=\my at theorem@overlay at first{定义\ \thetcbdefi}{紫棠},
- overlay last=\my at theorem@overlay at last{紫棠},
- }
- },
- lemma={
- counter=tcblem,
- the counter=\thesection.\arabic{tcblem},
- name=引理,
- lemcolor=靛蓝,
- autoref name=\bfseries 引理,
- style={
- arc=0mm,breakable,enhanced,interior style={top color=靛蓝!12 ,middle color=靛蓝!9, bottom 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},
- before pre=\smallskip, after app=\smallskip,
- overlay unbroken=\my at lemma@overlay at unbroken{\lemma at name\ \thetcblem}{\lemma at lemcolor},
- overlay first=\my at lemma@overlay at first{\lemma at name\ \thetcblem}{\lemma at lemcolor},
- overlay last=\my at lemma@overlay at last{\lemma at lemcolor},
- }
- },
- corollary={
- counter=tcbcor,
- the counter=\thesection.\arabic{tcbcor},
- autoref name=\bfseries 推论,
- style={
- arc=0mm,breakable,enhanced,interior style={top color=茶色!12 ,middle color=茶色!9, bottom 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={tcbcor},
- before pre=\smallskip, after app=\smallskip,
- overlay unbroken=\my at lemma@overlay at unbroken{推论\ \thetcbcor}{茶色},
- overlay first=\my at lemma@overlay at first{推论\ \thetcbcor}{茶色},
- overlay last=\my at lemma@overlay at last{茶色},
- }
- },
- example={
- counter=tcbexam,
- the counter=\thesection.\arabic{tcbexam},
- autoref name=\bfseries 例题,
- style={
- arc=0mm,breakable,enhanced,interior style={top color=黛绿!12 ,middle color=黛绿!9, bottom 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={tcbexam},
- before pre=\smallskip, after app=\smallskip,
- overlay unbroken=\my at lemma@overlay at unbroken{例题\ \thetcbexam}{黛绿},
- overlay first=\my at lemma@overlay at first{例题\ \thetcbexam}{黛绿},
- overlay last=\my at lemma@overlay at last{黛绿},
- }
- },
-}
-\makeatother
-% \newenvironment{note}[1][\bf 笔记:]{\Line\uuline{#1} }{\Line}
-% \renewcommand{\Line}{\noindent\\\tikz\draw[line width=0.65pt,gray!80,dashed] (0,0)--++(.99\linewidth,0);\par}
-% \newenvironment{key}[1][]{\begin{fancybox}{#1}}{\end{fancybox}}
-% \newcommand{\Diff}[2][]{\frac{\partial #1}{\partial #2}}
-% \newcommand{\Dif}[2]{\frac{\dd #1}{\dd #2}}
-% \newcommand{\pr}{^\prime}
-\usepackage{extarrows}
-\usetikzlibrary{tikzmark}
-% \arrowname{super-script}
-% \arrowname[sub-script]{super-script}
-\usepackage{appendix} % 附录
-% 代码环境
-\usepackage{listings}
-\lstset{
- basicstyle=\small\ttfamily, % 基本样式
- keywordstyle=\color{NavyBlue}, % 关键词样式
- commentstyle=\color{gray!50!black!50}, % 注释样式
- stringstyle=\rmfamily\slshape\color{red}, % 字符串样式
- backgroundcolor=\color{gray!5}, % 代码块背景颜色
- frame=leftline, % 代码框形状
- framerule=12pt,%
- rulecolor=\color{gray!90}, % 代码框颜色
- numbers=left, % 左侧显示行号往左靠, 还可以为right ,或none,即不加行号
- numberstyle=\footnotesize\itshape, % 行号的样式
- firstnumber=1,
- stepnumber=1, % 若设置为2,则显示行号为1,3,5
- numbersep=7pt, % 行号与代码之间的间距
- aboveskip=.25em, % 代码块边框
- showspaces=false, % 显示添加特定下划线的空格
- showstringspaces=false, % 不显示代码字符串中间的空格标记
- keepspaces=true,
- showtabs=false, % 在字符串中显示制表符
- tabsize=2, % 默认缩进2个字符
- captionpos=b, % 将标题位置设置为底部
- flexiblecolumns=true, %
- breaklines=true, % 设置自动断行
- breakatwhitespace=false, % 设置自动中断是否只发生在空格处
- breakautoindent=true, %
- breakindent=1em, %
- title=\lstname, %
- escapeinside=``, % 在``里显示中文
- xleftmargin=1em, xrightmargin=1em, % 设定listing左右的空白
- aboveskip=1ex, belowskip=1ex,
- framextopmargin=1pt, framexbottommargin=1pt,
- abovecaptionskip=-2pt,belowcaptionskip=3pt,
- % 设定中文冲突,断行,列模式,数学环境输入,listing数字的样式
- extendedchars=false, columns=flexible, mathescape=true,
- texcl=true,
- fontadjust
-}%
-\begin{document}
-\thispagestyle{empty}
-\entitle{The introduction to Beautybook Template} % cncover专用
-\title{Beautybook 说明文档}
-\subtitle{Beautybook 说明文档}
-\edition{First Edition}
-\bookseries{Illustrated by Ethan Lu}
-\author{Ethan Lu}
-\pressname{logo}
-\presslogo{inner_pics/logo.png}
-\coverimage{inner_pics/coverimage.jpg} % cncover专用
-%\coverimage{inner_pics/ivy-ge998908f8_1280.jpg}
-\makecover % 封面生成命令
-
-% 主题色调
-\definecolor{bg}{HTML}{e0e0e0}
-\definecolor{fg}{HTML}{203A43}
-\colorlet{outermarginbgcolor}{bg}
-\colorlet{outermarginfgcolor}{fg}
-\colorlet{framegolden}{fg}
-\colorlet{framegray}{黛绿!5}
-\chapoddimage{inner_pics/songodd.png}
-\chapevenimage{inner_pics/songeven.png}
-%
-\thispagestyle{empty}\newpage % left blank
-%
-\frontmatter % 前置材料
-\pagenumbering{Roman}
-% preface
-\thispagestyle{empty}
-\addcontentsline{toc}{chapter}{前言}
-\chapter*{前言}
-怀着复杂的心情写下了这本不算是笔记的笔记,大差不离就是抄写本吧!
-
-
-\hfill
-\begin{tabular}{lr}
- &----- 作者\\
-&2023年 01月 11日
-\end{tabular}
-
-\let\cleardoublepage\clearpage
-%
-\thispagestyle{empty}
-\tableofcontents\let\cleardoublepage\clearpage % 目录
-
-\mainmatter % 正文
-\pagenumbering{arabic}
-\partimage{inner_pics/part.png}
-\partabstract{\hspace*{2em} \textbf{Beautybook} 模板的使用说明,这里是每一个部分 (Part) 的简介区域, 您可以在此处书写下您对该部分的一个简明扼要的概述, 当然,倘若无话可说,此处可以留空.}
-\part{\textbf{Beautybook} 模板使用说明}
-
-\chapter{Beautybook模板的简要介绍}
-Beauty\LaTeX{} 系列模板是由我所做的书籍模板系列, 名叫\textbf{Beautybook}! 关于为何起这么奇怪的名字? 我的答案是, 本来我是想起名elegantboook的,但是奈何已经有了大名鼎鼎的elegantbook系列, 所以鄙人只能退而求其次,命名为同样是美丽意思的名词与书籍相组合,古人云:书中自有颜如玉,这不, 美女配书籍,岂不美哉! 故而,这就是 \textbf{Beautybook} 的由来!
-
-本人致力于打造一系列美观、优雅、简便的模板以方便用户和我自己 (主要是服务于自己的,但是耐不住大伙的赏识,遂毛遂自荐一番,望谅解!) 使用。版本经常有所更迭,请关注版本信息,在未开始使用模板前,建议直接选择最新正式版本!最新测试版通常会发布在QQ群内,诸君可自取, 取完后是留是去随意.
-
-
-本文将介绍本模板的一些设置内容以及基本使用方法。如果您有其他问题,建议或者意见,欢迎在 GitHub 上给我提交 \href{https://github.com/BeautyLaTeX/latex-template/issues}{issues} 或者邮件\href{h1479840692 at 163.com}{163邮箱}或者\href{1479840692 at qq.com}{qq邮箱}联系我。我的联系方式如下,建议加入用户 QQ 群提问,这样能更快获得准确的反馈,加群时请备注 \LaTeX{} 或者 Beauty\LaTeX{} 相关内容。
-\begin{itemize}
- \item GitHub 地址:\href{https://github.com/BeautyLaTeX/latex-template}{https://github.com/BeautyLaTeX/latex-template}
- \item 下载地址:\href{https://github.com/BeautyLaTeX/latex-template/releases}{正式发行版}
- \item 用户 QQ 群:809237593
- \item 我的outlook邮箱:\href{https://h1479840692@outlook.com}{Outlook Email}
-\end{itemize}
-\textbf{This work is released under the LaTeX Project Public License, v1.3c or later.}
-
-\section{模板安装与更新}
-
-你需要通过下载然后编译的方式使用本模板,仅有本地(文件夹内)使用一种方式。
-
-\subsection{在线使用模板}
-本模板可以直接上传到overleaf上使用,但需要注意的是, 需要使用 math-font=plain 键值, 并使用XeLaTeX或者lualatex编译!
-
-\subsection{本地安装使用}
-
-\textbf{本地安装}使用方法如下:从 GitHub 或者 QQ群下载最新版, 然后将模板文件放在你的工作目录下并且同步复制这几个文件夹: \textit{chinesefonts}, \textit{fonts}, \textit{stys}, \textit{inner\_pics}, 即可使用。这样使用的好处是,相比在线使用,可以通过自行安装mtpro2字体实现更加精美的效果,当然如何选择交给用户本身,此处不作评价.
-
-以下是最小工作示例:
-\begin{lstlisting}
- \documentclass[zihao=-4,fontset=windows]{Beautybook-CN}
- \coverstyle={ % 封面键值列表
- cover-choose=cn, % cn (需新增项\entitle{#}); en ; enfig ; birkar
- }
- \mathstyle={ % 数学字体键值列表
- math-font=plain, %plain (默认数学字体); mtpro2
- }
- \graphicspath{{E:/texlive/2023/texmf-dist/doc/latex/beautybook/}} % 这里改为您的texlive安装位置,记住
- %% 定义第一种定理
- \mynewtheorem{
- defi={\textbf{定义}}[section]{interior style={left color=ReD!8,right color=ReD!5!CyaN!50}, borderline west={1.5mm}{0mm}{ReD}},
- thm={\textbf{定理}}[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{引理}}[section]{interior style={left color=BluE!8,right color=BluE!5!CyaN!50}, borderline west={1.5mm}{0mm}{BluE}},
- prop={\textbf{命题}}[section]{interior style={left color=OrangE!8,right color=OrangE!5!CyaN!50}, borderline west={1.5mm}{0mm}{OrangE}},
- exam={\textbf{题}}[chapter]{interior style={left color=DarkGreen!8,right color=DarkGreen!5!CyaN!50}, borderline west={1.5mm}{0mm}{DarkGreen}},
- cor={\textbf{推论}}[chapter]{interior style={left color=violet!8,right color=violet!5!CyaN!50}, borderline west={1.5mm}{0mm}{violet}},
- }
- \newtheorem*{remark}{\textbf{注}}
- %% 定义第二种定理
- % overlay unbroken=\my at theorem@overlay at unbroken{\theorem at name\ \thetcbthm}{额外的选项}
- % overlay first=\my at theorem@overlay at first{\theorem at name\ \thetcbthm}{额外的选项}
- %% 用户接口区
- \definecolor{examback}{HTML}{e3e6e8}
- \makeatletter
- \mynewtcbtheorem{
- % 这个 theorem 是环境名
- theorem={
- counter=tcbthm,
- the counter=\thesection.\arabic{tcbthm},
- name=定理, % 它保存到 \theorem at name 里
- thmcolor=高粱红,
- autoref name=\bfseries 定理,
- style={
- arc=3pt,breakable,enhanced,interior style={top color=高粱红!12 ,middle color=高粱红!9, bottom 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},
- before pre=\smallskip, after app=\smallskip,
- overlay unbroken=\my at theorem@overlay at unbroken{\theorem at name\ \thetcbthm}{\theorem at thmcolor},
- overlay first=\my at theorem@overlay at first{\theorem at name\ \thetcbthm}{\theorem at thmcolor},
- overlay last=\my at theorem@overlay at last{\theorem at thmcolor},
- }
- },
- proposition={
- counter=tcbprop,
- the counter=\thesection.\arabic{tcbprop},
- autoref name=\bfseries 命题,
- style={
- arc=3pt,breakable,enhanced,interior style={top color=高粱红!12 ,middle color=高粱红!9, bottom 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={tcbprop},
- before pre=\smallskip, after app=\smallskip,
- overlay unbroken=\my at theorem@overlay at unbroken{命题\ \thetcbprop}{高粱红},
- overlay first=\my at theorem@overlay at first{命题\ \thetcbprop}{高粱红},
- overlay last=\my at theorem@overlay at last{高粱红},
- }
- },
- definition={
- counter=tcbdefi,
- the counter=\thesection.\arabic{tcbdefi},
- autoref name=\bfseries 定义,
- style={
- arc=3pt,breakable,enhanced,interior style={top color=紫棠!12 ,middle color=紫棠!9, bottom 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={tcbdefi},
- before pre=\smallskip, after app=\smallskip,
- overlay unbroken=\my at theorem@overlay at unbroken{定义\ \thetcbdefi}{紫棠},
- overlay first=\my at theorem@overlay at first{定义\ \thetcbdefi}{紫棠},
- overlay last=\my at theorem@overlay at last{紫棠},
- }
- },
- lemma={
- counter=tcblem,
- the counter=\thesection.\arabic{tcblem},
- name=引理,
- lemcolor=靛蓝,
- autoref name=\bfseries 引理,
- style={
- arc=0mm,breakable,enhanced,interior style={top color=靛蓝!12 ,middle color=靛蓝!9, bottom 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},
- before pre=\smallskip, after app=\smallskip,
- overlay unbroken=\my at lemma@overlay at unbroken{\lemma at name\ \thetcblem}{\lemma at lemcolor},
- overlay first=\my at lemma@overlay at first{\lemma at name\ \thetcblem}{\lemma at lemcolor},
- overlay last=\my at lemma@overlay at last{\lemma at lemcolor},
- }
- },
- corollary={
- counter=tcbcor,
- the counter=\thesection.\arabic{tcbcor},
- autoref name=\bfseries 推论,
- style={
- arc=0mm,breakable,enhanced,interior style={top color=茶色!12 ,middle color=茶色!9, bottom 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={tcbcor},
- before pre=\smallskip, after app=\smallskip,
- overlay unbroken=\my at lemma@overlay at unbroken{推论\ \thetcbcor}{茶色},
- overlay first=\my at lemma@overlay at first{推论\ \thetcbcor}{茶色},
- overlay last=\my at lemma@overlay at last{茶色},
- }
- },
- example={
- counter=tcbexam,
- the counter=\thesection.\arabic{tcbexam},
- autoref name=\bfseries 例题,
- style={
- arc=0mm,breakable,enhanced,interior style={top color=黛绿!12 ,middle color=黛绿!9, bottom 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={tcbexam},
- before pre=\smallskip, after app=\smallskip,
- overlay unbroken=\my at lemma@overlay at unbroken{例题\ \thetcbexam}{黛绿},
- overlay first=\my at lemma@overlay at first{例题\ \thetcbexam}{黛绿},
- overlay last=\my at lemma@overlay at last{黛绿},
- }
- },
- }
- \makeatother
- \begin{document}
- \thispagestyle{empty}
- \entitle{The introduction to Beautybook Template} % cncover专用
- \title{Beautybook 说明文档}
- \subtitle{Beautybook 说明文档}
- \edition{First Edition}
- \bookseries{Illustrated by Ethan Lu}
- \author{Ethan Lu}
- \pressname{logo}
- \presslogo{inner_pics/logo.png}
- \coverimage{inner_pics/coverimage.jpg} % cncover专用
- %\coverimage{inner_pics/ivy-ge998908f8_1280.jpg}
- \makecover % 封面生成命令
-
- % 主题色调
- \definecolor{bg}{HTML}{e0e0e0}
- \definecolor{fg}{HTML}{203A43}
- \colorlet{outermarginbgcolor}{bg}
- \colorlet{outermarginfgcolor}{fg}
- \colorlet{framegolden}{fg}
- \colorlet{framegray}{黛绿!5}
- \chapoddimage{inner_pics/songodd.png}
- \chapevenimage{inner_pics/songeven.png}
- %
- \thispagestyle{empty}\newpage % left blank
- %
- \frontmatter % 前置材料
- \pagenumbering{Roman}
- % preface
- \thispagestyle{empty}
- \addcontentsline{toc}{chapter}{前言}
- \chapter*{前言}
- 怀着复杂的心情写下了这本不算是笔记的笔记,大差不离就是抄写本吧!
-
-
- \hfill
- \begin{tabular}{lr}
- &----- 作者\\
- &2023年 01月 11日
- \end{tabular}
-
- \let\cleardoublepage\clearpage
- %
- \thispagestyle{empty}
- \tableofcontents\let\cleardoublepage\clearpage % 目录
-
- \mainmatter % 正文
- \pagenumbering{arabic}
- \partimage{inner_pics/part.png}
- \partabstract{\hspace*{2em} \textbf{Beautybook} 模板的使用说明,这里是每一个部分 (Part) 的简介区域, 您可以在此处书写下您对该部分的一个简明扼要的概述, 当然,倘若无话可说,此处可以留空.}
- \part{\textbf{Beautybook} 模板使用说明}
-
- \chapter{Beautybook模板的简要介绍}
-
-
-
- {\normalem
- \printbibliography[
- heading=bibintoc,
- title={参考文献}
- ]
- \printindex
- \thispagestyle{empty}}
- %------------ 封底 ----------------%
- \bottomimage{inner_pics/ivy-ge998908f8_1280.jpg}
- %\ISBNcode{\EANisbn[ISBN=您的书对应的ISBN号]} %
- \summary{封底信息}
- \makebottomcover
- \end{document}
-\end{lstlisting}
-\subsection{发行版安装与更新}
-
-本模板测试环境为
-\begin{enumerate}
-\item Win11 22H2 + \TeX{} Live 2023;
-\end{enumerate}
-
-\TeX Live/Mac\TeX{} 的安装请参考知乎的文章,此处略过。
-
-安装 \TeX{} Live 之后,安装后建议升级全部宏包,升级方法:使用 cmd 或 terminal 运行 \lstinline{tlmgr update --all},如果 tlmgr 需要更新,请使用 cmd 运行 \lstinline{tlmgr update --self},如果更新过程中出现了中断,请改用 \lstinline{tlmgr update --self --all --reinstall-forcibly-removed} 更新,也即
-
-\begin{lstlisting}
-tlmgr update --self
-tlmgr update --all
-tlmgr update --self --all --reinstall-forcibly-removed
-\end{lstlisting}
-
-更多的内容请参考 \href{https://tex.stackexchange.com/questions/55437/how-do-i-update-my-tex-distribution}{How do I update my \TeX{} distribution?}
-
-\subsection{其他发行版本}
-
-由于宏包版本问题,本模板不支持 C\TeX{} 套装,请务必安装 TeX Live/Mac\TeX{}。更多关于 \TeX{} Live 的安装使用以及 C\TeX{} 与 \TeX{} Live 的兼容、系统路径问题,请参考官方文档以及啸行的\href{https://github.com/OsbertWang/install-latex-guide-zh-cn/releases/}{一份简短的关于安装 \LaTeX{} 安装的介绍}。
-
-
-
-\chapter{Beautybook 设置说明}
-
-本模板英文版基于基础的 book 文类, 中文版则基于ctexbook文类,所以 book或者ctexbook 的选项对于本模板也是有效的。默认编码为 UTF-8,推荐使用 \TeX{} Live 编译。
-
-\section{语言模式}
-本模板内含两套基础语言环境, 分别为 中文的\lstinline{Beautybook-CN.cls}、英文的\lstinline{Beautybook-EN.cls}。改变语言环境会改变图表标题的引导词(图,表),文章结构词(比如目录,参考文献等),以及定理环境中的引导词(比如定理,引理等)。不同语言模式的启用如下:
-\begin{lstlisting}
-\documentclass{Beautybook-CN} % 中文
-\documentclass{Beautybook-EN} % 英文
-\end{lstlisting}
-
-除模板自带的两套语言设定之外,如果您需要使用其他语言, 可以通过更改cls文件中这几处解决, 分别为
-
-\begin{enumerate}
- \item 更改 part环境的名称 \lstinline{Part \thepart}为 \lstinline{(你的语言中part的翻译) \thepart}
- \item 主文件,即当前文件导言区中的定理引导词
- \item 更改chapter环境中的part名称如第一条所示
- \item 记住, 仅有亚洲语言环境可以使用ctexbook文类, 即基于\lstinline{Beautybook-CN.cls}更改, 其他西语环境需要基于\lstinline{Beautybook-EN.cls}更改.
-\end{enumerate}
-
-
-\section{颜色主题}
-
-本模板的颜色是可以自由配置的,可以配置的颜色参数如下:
-\begin{lstlisting}
- \definecolor{bg}{HTML}{e0e0e0} % 整体风格的背景色 % 即浅色
- \definecolor{fg}{HTML}{455a64} % 整体风格的前景色 % 即深色
- %% 下面颜色位于 stys/bottompage.sty文件中
- \definecolor{coverbgcolor}{HTML}{f9b868} % 封面及封底背景色
- \definecolor{coverfgcolor}{HTML}{503D4B} % 封面及封底前景色
- \definecolor{coverbar}{HTML}{BF8E6F} % 封面竖条颜色
- \definecolor{bottomcolor}{HTML}{B3686A} % 封底说明背景颜色
- %%%%%%%%%%%%%%%%%%%%%%%%
- \colorlet{framegolden}{fg} % 古风盒子线条颜色
- \colorlet{framegray}{黛绿!5} % 古风盒子背景色
-\end{lstlisting}
-还有定理环境颜色可以在此文件的导言区设置,下面数学环境部分会展开讲.
-
-这里推荐使用林莲枝开发的cncolours宏包的颜色配置,可以对照选取适合的颜色.
-
-\section{封面}
-
-\subsection{封面个性化}
-
-本模板拥有多套封面可随意取用, 其中使用方法如下:
-\begin{enumerate}
- \item Springer经典封面--对应宏包 \lstinline{cover-choose=cn} (中文默认),
- \item Springer经典封面之二--对应宏包 \lstinline{cover-choose=en} (英文默认),
- \item Springer经典封面之三--对应宏包 \lstinline{cover-choose=enfig} (图片背景),
- \item 中文书籍经典封面--对应宏包\lstinline{cover-choose=birkar} (三角几何风)。
- 注意, 使用该封面所对应的信息不太一样, 看好上面的示例,按照要求操作即可。
-\end{enumerate}
-
-\begin{table}[htbp]
- \centering
- \caption{封面元素信息}
- \begin{tabular}{cccccc}
- \hline
- 信息 & 命令 & 信息 & 命令 & 信息 & 命令 \\
- \hline
- 标题 & \lstinline|\title| & 副标题 & \lstinline|\subtitle| & 作者 & \lstinline|\author| \\
- 出版社 & \lstinline|\pressname| & 版本 & \lstinline|\edition| & 封面图 & \lstinline|\coverimage|\\
- 徽标 & \lstinline|\presslogo| & 英文标题(cn)&\lstinline|\entitle|&&\\
- \hline
- \end{tabular}
-\end{table}
-
-
-\subsection{封面图}
-封面图片可以自行去找.
-
-\subsection{徽标}
-
-本文用到的 Logo 为wiki随意找的springer经典马标, 可以自己查询下载出版社logo, 为免侵权,在更换图片的时候请选择合适合法的图片进行替换。
-
-\subsection{自定义封面}
-
-另外,如果使用自定义的封面,比如 Adobe illustrator 或者其他软件制作的 A4 PDF 文档,请把 \lstinline{\makecover} 注释掉,然后借助 \lstinline{pdfpages} 宏包将自制封面插入即可。如果使用 \lstinline{titlepage} 环境,也是类似。
-
-\section{章标题}
-
-本模板自定义了一套标题样式, 主要是 part、chapter、section 这三个标题,具体代码见cls。可能不适合所有人的审美,可以注释掉就会回归默认ctexbook的标题样式。
-
-\section{数学环境简介}
-
-在我们这个模板中,我们定义了四种不同的定理模式,包括简单模式(默认的定理样式amsthm) 、有点自定义的thmtools、彩色强调盒子、以及本人开发的专有版权盒子,当然,由雾月老师给我定制的古风盒子您也可以是用来作为定理盒子,只需要在本文件导言区第一种定理样式里面加上\lstinline{ys style}即可.
-
-
-\subsection{定理类环境的使用}
-以下是使用效果展示
-\subsubsection{amsthm}
-\begin{remark}
- 这是基于amsthm的注释环境
-\end{remark}
-\subsubsection{thmtools}
-\begin{proof}[证明的说明]
- 证明环境
-\end{proof}
-
-\begin{solution}[解的说明]
- 解环境
-\end{solution}
-\subsubsection{彩色强调盒子}
-\begin{defi}[名称]\label{defi:def test}
- 第一种定义环境
-\end{defi}
-
-\begin{thm}[名称]\label{thm:thm test}
- 第一种定理环境
-\end{thm}
-
-\begin{cor}[名称]\label{cor:cor test}
- 第一种推论环境
-\end{cor}
-
-\begin{prop}[名称]\label{prop:prop test}
- 第一种命题环境
-\end{prop}
-
-\begin{exam}[名称]\label{exam:exam test}
- 第一种例题环境
-\end{exam}
-
-\begin{lem}[名称]\label{lem:lem test}
- 第一种引理环境
-\end{lem}
-\clearpage
-\subsubsection{个人版权的盒子共两种}
-
-\begin{definition}[][名称][def label]
- 这是个人定制的盒子定制的定理环境,这是其中定义环境示例。注意:使用方法如下
-
- \begin{itemize}
- \item 如果你没有名称和标签,使用方法为
- \begin{lstlisting}
- \begin{definition}
- 定义环境内容
- \end{definition}
- \end{lstlisting}
- \item 如果你没有标签但有名称,使用方法为
- \begin{lstlisting}
- \begin{definition}[][名称]
- 定义环境内容
- \end{definition}
- \end{lstlisting}
- \item 如果你有标签,那么无论是否有名称,使用方法为
- \begin{lstlisting}
- \begin{definition}[][有就填,没有空着][标签]
- 定义环境内容
- \end{definition}
- \end{lstlisting}
- \item 如果你想更改盒子的一些设定选项,比如加框线等之类的,使用方法为
- \begin{lstlisting}
- \begin{definition}[tcolorbox选项][名称有就写,没有就连带外面括号删掉][标签 (有标签下就这样子,没有标签可以把这个标签连带外面的括号删掉)]
- 定义环境内容
- \end{definition}
- \end{lstlisting}
- \end{itemize}
-
-\end{definition}
-
-\begin{theorem}
- 用法同上,引用下上面的标签 \ref{def label}或者可以\autoref{def label}.
-\end{theorem}
-
-\begin{lemma}
- 用法同上,引用下上面的标签 \ref{def label}或者可以\autoref{def label}.
-\end{lemma}
-
-\begin{corollary}
- 用法同上,引用下上面的标签 \ref{def label}或者可以\autoref{def label}.
-\end{corollary}
-
-\begin{example}
- 用法同上,引用下上面的标签 \ref{def label}或者可以\autoref{def label}.
-\end{example}
-
-古风盒子
-\begin{fancybox}
-古风盒子测试,可以任意嵌套其他环境!
-\end{fancybox}
-
-\subsection{修改计数器}
-
-当前定理等环境计数器按章计数,如果想修改定理类环境按节计数,可以修改计数器选项 \lstinline{ counter/.code}中的\lstinline{chapter},可用选项为 \lstinline{chapter} (默认)与 \lstinline{section}、 \lstinline{subsection}等
-
-\subsection{自定义定理类环境}
-用户可以采用四种方式定义自己的定理环境,分别为amsthm与thmtools, 这两种看宏包说明文档即可; 后面两种定理的定义方式为
-如本文件导言区:
-\begin{lstlisting}
- % 这是第一种
- \mynewtheorem{
- defi={\textbf{定义}}[section]{interior style={left color=ReD!8,right color=ReD!5!CyaN!50}, borderline west={1.5mm}{0mm}{ReD}}, % 类似模仿即可
- }
-
- % 下面是第二种
- \mynewtcbtheorem{
- % 这个 theorem 是环境名
- theorem={ % 第一种 : 圣诞礼盒风格
- counter=tcbthm,
- the counter=\thesection.\arabic{tcbthm},
- name=定理, % 它保存到 \theorem at name 里
- thmcolor=purple5,
- autoref name=\bfseries 定理,
- 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},% 上
- fuzzy shadow={0.6mm}{-0.6mm}{0mm}{0.3mm}{fill=white!40!gray},%下
- opacityframe=0, opacityback=0.98,
- fontupper=\itshape, step={tcbthm},
- before pre=\smallskip, after app=\smallskip,
- overlay unbroken=\my at theorem@overlay at unbroken{\theorem at name\ \thetcbthm}{\theorem at thmcolor},
- overlay first=\my at theorem@overlay at first{\theorem at name\ \thetcbthm}{\theorem at thmcolor},
- overlay last=\my at theorem@overlay at last{\theorem at thmcolor},
- }
- },
- lemma={ % 第二种 : 丝带风格
- counter=tcblem,
- the counter=\thesection.\arabic{tcblem},
- name=引理,
- lemcolor=靛蓝,
- autoref name=\bfseries 引理,
- style={
- arc=0mm,breakable,enhanced,interior style={top color=靛蓝!5 ,middle 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},% 上
- 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 at lemma@overlay at unbroken{\lemma at name\ \thetcblem}{\lemma at lemcolor},
- overlay first=\my at lemma@overlay at first{\lemma at name\ \thetcblem}{\lemma at lemcolor},
- overlay last=\my at lemma@overlay at last{\lemma at lemcolor},
- }
- },
-}
-\end{lstlisting}
-\begin{remark}
- 解释一下, 其中的overlay部分更改需要看中文修改,定理名称改成你想要的,颜色也是,然后别忘了给最外面的example之类的环境名改成你的,比如axiom之类,还有就是tcbexam这个计数器名称要换成你新定义的,如tcbaxiom之类,其他就不用动了。至于说第一种定理样式看上面例子相信您能学会的。
-\end{remark}
-
-\section{列表环境}
-本模板借助于 \lstinline{enumitem} 实现了可定制化,具体见enumitem宏包说明文档,这里示例如下\\[2ex]
-\begin{minipage}[b]{0.49\textwidth}
- \begin{itemize}[label=$\bigodot $]
- \item first item of nesti;
- \item second item of nesti;
- \begin{itemize}
- \item first item of nestii;
- \item second item of nestii;
- \begin{itemize}
- \item first item of nestiii;
- \item second item of nestiii.
- \end{itemize}
- \end{itemize}
- \end{itemize}
-\end{minipage}
-\begin{minipage}[b]{0.49\textwidth}
- \begin{enumerate}[label=\arabic*)]
- \item first item of nesti;
- \item second item of nesti;
- \begin{enumerate}
- \item first item of nestii;
- \item second item of nestii;
- \begin{enumerate}
- \item first item of nestiii;
- \item second item of nestiii.
- \end{enumerate}
- \end{enumerate}
- \end{enumerate}
-\end{minipage}
-
-\section{参考文献}
-
-\subsection{打印文献}
-
-\lstinline{ref.bib} 为参考文献存放的文件,需要放在项目文件夹下。
-
-\subsection{修改文献格式}
-
-此外,本模板调用了 biblatex 宏包,并提供了 biber引擎编译参考文献,当然您也可以直接删除cls中的biblatex宏包(cls最后几行)来使用bibtex.
-
-关于文献条目(bib item),你可以在谷歌学术,Mendeley,Endnote 中取,然后把它们添加到 \lstinline{ref.bib} 中。在文中引用的时候,引用它们的键值(bib key)即可。
-
-文献样式默认为国标 GB7714-2015, 参考文献示例:\cite{Huybrechts2010Complex}。
-
-如果需要设置为数字样式,需要将biblatex宏包选项中的国标改为numerical.
-\begin{lstlisting}
-\usepackage[
-backend=biber, % 可改为bibtex (或者直接删掉就是bibtex)
-style=gb7714-2015, % 可改为 numerical
-sorting=nty
-]{biblatex}
-\addbibresource{ref.bib}
-\end{lstlisting}
-
-\chapter{字体选项}
-字体选项独立成章的原因是,我们希望本模板的用户关心模板使用的字体,知晓自己使用的字体以及遇到字体相关的问题能更加便捷地找到答案。
-
-本模板默认使用ctex的windows选项提供的字体, 如非必要,字体不应改动,当然,如果确实需要,可按照下面代码操作:
-\begin{lstlisting}
- \setCJKmainfont[Path=fonts/,BoldFont={XX.TTF},ItalicFont={YY.TTF},SlantedFont = {ZZ.TTF} , SlantedFeatures = {FakeSlant}]{WW.TTF}
- \setCJKsansfont[Path=fonts/,BoldFont={XX.TTF},ItalicFont={XX.TTF}]{XX.TTF}
- \setCJKmonofont[Path=fonts/,BoldFont={XX.TTF},ItalicFont={XX.TTF}]{XX.TTF}
- %设置新的中文字体命令
- \newCJKfontfamily[song]\songti{XX.TTF}[Path=fonts/] %宋体
- %设置新的英文字体命令
- \newfontfamily\largetitlestyle[Path=fonts/]{XX.TTF}
-\end{lstlisting}
-!必须全部使用英文字体名称进行导入,否则报错找不到的!!切记!!
-
-\section{数学字体选项}
-本模板使用的是mtpro2字体,需要用户自行安装,安装教程见\href{https://www.latexstudio.net/archives/51742.html}{mtpro2字体安装教程}。当然也可以删除本文件导言区的mtpro2字体换回默认数学字体,诸君随意。
-
-
-{\normalem
-\printbibliography[
-heading=bibintoc,
-title={参考文献}
-]
-\printindex
-\thispagestyle{empty}}
-%-------------------封底 ---------------%
-\bottomimage{inner_pics/ivy-ge998908f8_1280.jpg}
-\ISBNcode{\EANisbn[ISBN=978-80-7340-097-2]} %
-\summary{封底信息.}
-\makebottomcover
-\end{document}
\ No newline at end of file
Deleted: trunk/Master/texmf-dist/doc/latex/beautybook/Beautybook-introduction-english.pdf
===================================================================
(Binary files differ)
Deleted: trunk/Master/texmf-dist/doc/latex/beautybook/Beautybook-introduction-english.tex
===================================================================
--- trunk/Master/texmf-dist/doc/latex/beautybook/Beautybook-introduction-english.tex 2023-10-02 19:45:53 UTC (rev 68437)
+++ trunk/Master/texmf-dist/doc/latex/beautybook/Beautybook-introduction-english.tex 2023-10-02 19:46:59 UTC (rev 68438)
@@ -1,839 +0,0 @@
-%% 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-EN}
-\coverstyle={
- cover-choose=en, % cn (Need \entitle{#}); en ; enfig ; birkar
-}
-\mathstyle={
- math-font=plain, % plain; mtpro2
-}
-%
-\mynewtheorem{
- defi={\textbf{Definition}}[section]{interior style={left color=ReD!8,right color=ReD!5!CyaN!50}, borderline west={1.5mm}{0mm}{ReD}},
- thm={\textbf{Theorem}}[section]{interior style={left color=CyaN!80!black!20,right color=CyaN!80!black!15!CyaN!50}, borderline west={1.5mm}{0mm}{CyaN!80!black}},
- lem={\textbf{Lemma}}[section]{interior style={left color=BluE!8,right color=BluE!5!CyaN!50}, borderline west={1.5mm}{0mm}{BluE}},
- prop={\textbf{Proposition}}[section]{interior style={left color=OrangE!8,right color=OrangE!5!CyaN!50}, borderline west={1.5mm}{0mm}{OrangE}},
- exam={\textbf{Example}}[chapter]{interior style={left color=DarkGreen!8,right color=DarkGreen!5!CyaN!50}, borderline west={1.5mm}{0mm}{DarkGreen}},
- cor={\textbf{Corollary}}[chapter]{interior style={left color=violet!8,right color=violet!5!CyaN!50}, borderline west={1.5mm}{0mm}{violet}},
-}
-\newtheorem*{remark}{\textbf{Remark}}
-\makeatletter
-\mynewtcbtheorem{
- theorem={
- counter=tcbthm,
- the counter=\thesection.\arabic{tcbthm},
- name=Theorem,
- thmcolor=purple,
- autoref name=\bfseries Theorem,
- style={
- arc=3pt,breakable,enhanced,interior style={top color=purple!12 ,middle color=purple!9, bottom color=purple!6},boxrule=0pt,top=8mm,
- fuzzy shadow={-0.6mm}{0.6mm}{0mm}{0.3mm}{white!50!gray},% up
- fuzzy shadow={0.6mm}{-0.6mm}{0mm}{0.3mm}{fill=white!40!gray},% down
- opacityframe=0, opacityback=0.98,
- fontupper=\itshape, step={tcbthm},
- before pre=\smallskip, after app=\smallskip,
- overlay unbroken=\my at theorem@overlay at unbroken{\theorem at name\ \thetcbthm}{\theorem at thmcolor},
- overlay first=\my at theorem@overlay at first{\theorem at name\ \thetcbthm}{\theorem at thmcolor},
- overlay last=\my at theorem@overlay at last,
- }
- },
- proposition={
- counter=tcbprop,
- the counter=\thesection.\arabic{tcbprop},
- autoref name=\bfseries Proposition,
- style={
- arc=3pt,breakable,enhanced,interior style={top color=purple!12 ,middle color=purple!9, bottom color=purple!6},boxrule=0pt,top=8mm,
- fuzzy shadow={-0.6mm}{0.6mm}{0mm}{0.3mm}{white!50!gray},
- fuzzy shadow={0.6mm}{-0.6mm}{0mm}{0.3mm}{fill=white!40!gray},
- opacityframe=0, opacityback=0.98,
- fontupper=\itshape, step={tcbprop},
- before pre=\smallskip, after app=\smallskip,
- overlay unbroken=\my at theorem@overlay at unbroken{Proposition\ \thetcbprop}{purple},
- overlay first=\my at theorem@overlay at first{Proposition\ \thetcbprop}{purple},
- overlay last=\my at theorem@overlay at 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 at theorem@overlay at unbroken{Definition\ \thetcbdefi}{blue},
- overlay first=\my at theorem@overlay at first{Definition\ \thetcbdefi}{blue},
- overlay last=\my at theorem@overlay at last{blue},
- }
- },
- lemma={
- counter=tcblem,
- the counter=\thesection.\arabic{tcblem},
- name=Lemma,
- lemcolor=DarkCyan,
- autoref name=\bfseries Lemma,
- style={
- arc=0mm,breakable,enhanced,interior style={top color=DarkCyan!12 ,middle color=DarkCyan!9, bottom color=DarkCyan!6},arc=3pt,boxrule=0pt,top=7mm,bottom=5mm,
- fuzzy shadow={-0.6mm}{0.6mm}{0mm}{0.3mm}{white!50!gray},
- fuzzy shadow={0.6mm}{-0.6mm}{0mm}{0.3mm}{fill=white!40!gray},
- opacityframe=0, opacityback=0.98,
- fontupper=\normalsize,step={tcblem},
- before pre=\smallskip, after app=\smallskip,
- overlay unbroken=\my at lemma@overlay at unbroken{\lemma at name\ \thetcblem}{\lemma at lemcolor},
- overlay first=\my at lemma@overlay at first{\lemma at name\ \thetcblem}{\lemma at lemcolor},
- overlay last=\my at lemma@overlay at last{\lemma at lemcolor},
- }
- },
- corollary={
- counter=tcbcor,
- the counter=\thesection.\arabic{tcbcor},
- autoref name=\bfseries Corollary,
- style={
- arc=0mm,breakable,enhanced,interior style={top color=orange!12 ,middle color=orange!9, bottom color=orange!6},arc=3pt,boxrule=0pt,top=7mm,bottom=5mm,
- fuzzy shadow={-0.6mm}{0.6mm}{0mm}{0.3mm}{white!50!gray},
- fuzzy shadow={0.6mm}{-0.6mm}{0mm}{0.3mm}{fill=white!40!gray},
- opacityframe=0, opacityback=0.98,
- fontupper=\normalsize,step={tcbcor},
- before pre=\smallskip, after app=\smallskip,
- overlay unbroken=\my at lemma@overlay at unbroken{Corollary\ \thetcbcor}{orange},
- overlay first=\my at lemma@overlay at first{Corollary\ \thetcbcor}{orange},
- overlay last=\my at lemma@overlay at 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 at lemma@overlay at unbroken{Example\ \thetcbexam}{cyan},
- overlay first=\my at lemma@overlay at first{Example\ \thetcbexam}{cyan},
- overlay last=\my at lemma@overlay at 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 at lemma@overlay at unbroken{Exercise\ \thetcbexer}{red},
- overlay first=\my at lemma@overlay at first{Exercise\ \thetcbexer}{red},
- overlay last=\my at lemma@overlay at last{red},
- }
- },
-}
-\makeatother
-%
-% \newenvironment{note}[1][\bf Note:]{\par\Line\uuline{#1} }{\par\Line}
-% \renewcommand{\Line}{\noindent\tikz\draw[line width=0.65pt,gray!80,dashed] (0,0)--++(.99\linewidth,0);\par}
-% % \newcommand{\Wedge}[1][]{\tikz\path [draw,line width=1pt] (0,0)--++(4pt,12pt) node[right,font=\scriptsize] {#1} --++(4pt,-12pt);}
-% \newenvironment{key}[1]{\begin{fancybox}{#1}\ }{\end{fancybox}}
-% \newcommand{\pr}{^\prime}
-% \newcommand{\prr}{^{\prime\prime}}
-% \newcommand{\itbf}[1]{\textit{\textbf{#1}}}
-\usepackage{listings}
-\lstset{
- basicstyle=\small\ttfamily,
- keywordstyle=\color{NavyBlue},
- commentstyle=\color{gray!50!black!50},
- stringstyle=\rmfamily\slshape\color{red},
- backgroundcolor=\color{gray!5},
- frame=leftline,
- framerule=12pt,%
- rulecolor=\color{gray!90},
- numbers=left,
- numberstyle=\footnotesize\itshape,
- firstnumber=1,
- stepnumber=1,
- numbersep=7pt,
- aboveskip=.25em,
- showspaces=false,
- showstringspaces=false,
- keepspaces=true,
- showtabs=false,
- tabsize=2,
- captionpos=b,
- flexiblecolumns=true,
- breaklines=true,
- breakatwhitespace=false,
- breakautoindent=true,
- breakindent=1em,
- title=\lstname,
- escapeinside=``,
- xleftmargin=1em, xrightmargin=1em,
- aboveskip=1ex, belowskip=1ex,
- framextopmargin=1pt, framexbottommargin=1pt,
- abovecaptionskip=-2pt,belowcaptionskip=3pt,
- extendedchars=false, columns=flexible, mathescape=true,
- texcl=true,
- fontadjust
-}%
-
-\begin{document}
-%------------ Cover ----------------%
-\thispagestyle{empty}
-\title{An Introduction to Beautybook template}
-\subtitle{}
-\edition{First Edition}
-\bookseries{Illustrated by Ethan Lu}
-\author{Ethan Lu}
-\pressname{logo}
-\presslogo{inner_pics/logo.png}
-\coverimage{inner_pics/ivy-ge998908f8_1280.jpg}
-\makecover
-% Theme color
-\definecolor{bg}{HTML}{e0e0e0}
-\definecolor{fg}{HTML}{203A43}
-\colorlet{outermarginbgcolor}{bg}
-\colorlet{outermarginfgcolor}{fg}
-\colorlet{framegolden}{fg}
-\colorlet{framegray}{bg!50}
-\chapoddimage{inner_pics/songodd.png}
-\chapevenimage{inner_pics/songeven.png}
-%
-\thispagestyle{empty}\newpage % left blank
-\frontmatter
-\pagenumbering{Roman}
-% preface
-\thispagestyle{empty}
-\addcontentsline{toc}{chapter}{Preface}
-\chapter*{Preface}
-As my first english book, i'm happy.
-
-\hfill
-\begin{tabular}{lr}
- &----- Ethan Lu\\
- &2023-01-11
-\end{tabular}
-
-\let\cleardoublepage\clearpage
-%
-\thispagestyle{empty}
-\tableofcontents\let\cleardoublepage\clearpage
-
-
-\mainmatter
-\pagenumbering{arabic}
-
-\partimage{inner_pics/part.png}
-\partabstract{\hspace*{2em} Here is the introduction area of each part, where you can write a concise overview of the part, of course, if there is nothing to say, you can leave it blank.}
-\part{The template usage introduction of \textbf{Beautybook}}
-\chapter{A short introduction of \textbf{Beautybook}}
-
-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 at 163.com}{163 mail} or QQ mail \href{1479840692 at qq.com}{QQ mail}.
-
-
-The Project Addresses are the following.
-\begin{itemize}
- \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 at outlook.com}{outlook-email}.)
-\end{itemize}
-
-\textit{This work is released under the LaTeX Project Public License, v1.3c or later.}
-
-\section{Installation and Maintenance of Template}
-
-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.
-
-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}
-
-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 is an example of a minimal work:
-\begin{lstlisting}
- \documentclass{Beautybook-EN}
- \coverstyle={
- cover-choose=en, % cn (Need \entitle{#}); en ; enfig ; birkar
- }
- \mathstyle={
- math-font=plain, % plain; mtpro2
- }
-\graphicspath{{E:/texlive/2023/texmf-dist/doc/latex/beautybook/}} % You must change it to your texlive installation address!!
-%
- \mynewtheorem{
- defi={\textbf{Definition}}[section]{interior style={left color=ReD!8,right color=ReD!5!CyaN!50}, borderline west={1.5mm}{0mm}{ReD}},
- thm={\textbf{Theorem}}[section]{interior style={left color=CyaN!80!black!20,right color=CyaN!80!black!15!CyaN!50}, borderline west={1.5mm}{0mm}{CyaN!80!black}},
- lem={\textbf{Lemma}}[section]{interior style={left color=BluE!8,right color=BluE!5!CyaN!50}, borderline west={1.5mm}{0mm}{BluE}},
- prop={\textbf{Proposition}}[section]{interior style={left color=OrangE!8,right color=OrangE!5!CyaN!50}, borderline west={1.5mm}{0mm}{OrangE}},
- exam={\textbf{Example}}[chapter]{interior style={left color=DarkGreen!8,right color=DarkGreen!5!CyaN!50}, borderline west={1.5mm}{0mm}{DarkGreen}},
- cor={\textbf{Corollary}}[chapter]{interior style={left color=violet!8,right color=violet!5!CyaN!50}, borderline west={1.5mm}{0mm}{violet}},
- }
- \newtheorem*{remark}{\textbf{Remark}}
- \makeatletter
- \mynewtcbtheorem{
- theorem={
- counter=tcbthm,
- the counter=\thesection.\arabic{tcbthm},
- name=Theorem,
- thmcolor=purple,
- autoref name=\bfseries Theorem,
- style={
- arc=3pt,breakable,enhanced,interior style={top color=purple!12 ,middle color=purple!9, bottom color=purple!6},boxrule=0pt,top=8mm,
- fuzzy shadow={-0.6mm}{0.6mm}{0mm}{0.3mm}{white!50!gray},% up
- fuzzy shadow={0.6mm}{-0.6mm}{0mm}{0.3mm}{fill=white!40!gray},% down
- opacityframe=0, opacityback=0.98,
- fontupper=\itshape, step={tcbthm},
- before pre=\smallskip, after app=\smallskip,
- overlay unbroken=\my at theorem@overlay at unbroken{\theorem at name\ \thetcbthm}{\theorem at thmcolor},
- overlay first=\my at theorem@overlay at first{\theorem at name\ \thetcbthm}{\theorem at thmcolor},
- overlay last=\my at theorem@overlay at last,
- }
- },
- proposition={
- counter=tcbprop,
- the counter=\thesection.\arabic{tcbprop},
- autoref name=\bfseries Proposition,
- style={
- arc=3pt,breakable,enhanced,interior style={top color=purple!12 ,middle color=purple!9, bottom color=purple!6},boxrule=0pt,top=8mm,
- fuzzy shadow={-0.6mm}{0.6mm}{0mm}{0.3mm}{white!50!gray},
- fuzzy shadow={0.6mm}{-0.6mm}{0mm}{0.3mm}{fill=white!40!gray},
- opacityframe=0, opacityback=0.98,
- fontupper=\itshape, step={tcbprop},
- before pre=\smallskip, after app=\smallskip,
- overlay unbroken=\my at theorem@overlay at unbroken{Proposition\ \thetcbprop}{purple},
- overlay first=\my at theorem@overlay at first{Proposition\ \thetcbprop}{purple},
- overlay last=\my at theorem@overlay at 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 at theorem@overlay at unbroken{Definition\ \thetcbdefi}{blue},
- overlay first=\my at theorem@overlay at first{Definition\ \thetcbdefi}{blue},
- overlay last=\my at theorem@overlay at last{blue},
- }
- },
- lemma={
- counter=tcblem,
- the counter=\thesection.\arabic{tcblem},
- name=Lemma,
- lemcolor=DarkCyan,
- autoref name=\bfseries Lemma,
- style={
- arc=0mm,breakable,enhanced,interior style={top color=DarkCyan!12 ,middle color=DarkCyan!9, bottom color=DarkCyan!6},arc=3pt,boxrule=0pt,top=7mm,bottom=5mm,
- fuzzy shadow={-0.6mm}{0.6mm}{0mm}{0.3mm}{white!50!gray},
- fuzzy shadow={0.6mm}{-0.6mm}{0mm}{0.3mm}{fill=white!40!gray},
- opacityframe=0, opacityback=0.98,
- fontupper=\normalsize,step={tcblem},
- before pre=\smallskip, after app=\smallskip,
- overlay unbroken=\my at lemma@overlay at unbroken{\lemma at name\ \thetcblem}{\lemma at lemcolor},
- overlay first=\my at lemma@overlay at first{\lemma at name\ \thetcblem}{\lemma at lemcolor},
- overlay last=\my at lemma@overlay at last{\lemma at lemcolor},
- }
- },
- corollary={
- counter=tcbcor,
- the counter=\thesection.\arabic{tcbcor},
- autoref name=\bfseries Corollary,
- style={
- arc=0mm,breakable,enhanced,interior style={top color=orange!12 ,middle color=orange!9, bottom color=orange!6},arc=3pt,boxrule=0pt,top=7mm,bottom=5mm,
- fuzzy shadow={-0.6mm}{0.6mm}{0mm}{0.3mm}{white!50!gray},
- fuzzy shadow={0.6mm}{-0.6mm}{0mm}{0.3mm}{fill=white!40!gray},
- opacityframe=0, opacityback=0.98,
- fontupper=\normalsize,step={tcbcor},
- before pre=\smallskip, after app=\smallskip,
- overlay unbroken=\my at lemma@overlay at unbroken{Corollary\ \thetcbcor}{orange},
- overlay first=\my at lemma@overlay at first{Corollary\ \thetcbcor}{orange},
- overlay last=\my at lemma@overlay at 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 at lemma@overlay at unbroken{Example\ \thetcbexam}{cyan},
- overlay first=\my at lemma@overlay at first{Example\ \thetcbexam}{cyan},
- overlay last=\my at lemma@overlay at 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 at lemma@overlay at unbroken{Exercise\ \thetcbexer}{red},
- overlay first=\my at lemma@overlay at first{Exercise\ \thetcbexer}{red},
- overlay last=\my at lemma@overlay at last{red},
- }
- },
- }
- \makeatother
- %
-
-\begin{document}
-%------------ Cover ----------------%
-\thispagestyle{empty}
-\title{An Introduction to Beautybook template}
-\subtitle{}
-\edition{First Edition}
-\bookseries{Illustrated by Ethan Lu}
-\author{Ethan Lu}
-\pressname{logo}
-\presslogo{inner_pics/logo.png}
-\coverimage{inner_pics/ivy-ge998908f8_1280.jpg}
-\makecover
-% Theme color
-\definecolor{bg}{HTML}{e0e0e0}
-\definecolor{fg}{HTML}{203A43}
-\colorlet{outermarginbgcolor}{bg}
-\colorlet{outermarginfgcolor}{fg}
-\colorlet{framegolden}{fg}
-\colorlet{framegray}{bg!50}
-\chapoddimage{inner_pics/songodd.png}
-\chapevenimage{inner_pics/songeven.png}
-%
-\thispagestyle{empty}\newpage % left blank
-\frontmatter
-\pagenumbering{Roman}
-% preface
-\thispagestyle{empty}
-\addcontentsline{toc}{chapter}{Preface}
-\chapter*{Preface}
-As my first english book, i'm happy.
-
-\hfill
-\begin{tabular}{lr}
- &----- Ethan Lu\\
- &2023-01-11
-\end{tabular}
-
-\begin{center}
- \vfill
- \thepage
-\end{center}
-\let\cleardoublepage\clearpage
-%
-\thispagestyle{empty}
-\tableofcontents\let\cleardoublepage\clearpage
-
-
-\mainmatter
-\pagenumbering{arabic}
-
-\partimage{inner_pics/part.png}
-\partabstract{\hspace*{2em} Here is the introduction area of each part, where you can write a concise overview of the part, of course, if there is nothing to say, you can leave it blank.}
-\part{part title}
-\chapter{chap title}
-% your main contents here!
-
-{\printbibliography[
-heading=bibintoc,
-title={References}
-]
-\printindex
-\thispagestyle{empty}}
-%--------- Bottom page -------%
-\bottomimage{inner_pics/ivy-ge998908f8_1280.jpg}
-\ISBNcode{\EANisbn[ISBN=978-80-7340-097-2]} %If no use, delete this line!
-\summary{This is the area of the 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 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
-tlmgr update --all
-tlmgr update --self --all --reinstall-forcibly-removed
-\end{lstlisting}
-
-Please refer to \href{https://tex.stackexchange.com/questions/55437/how-do-i-update-my-tex-distribution}{How do I update my \TeX{} distribution?} for more information.
-
-\chapter{The setting of Beautybook Template}
-
-The English version of this template is based on the basic ``book" class, and the Chinese version is based on the ``ctexbook" class, so the option of book or ctexbook is also valid for this template. The default encoding is \texttt{UTF-8}, and it is recommended to compile with \TeX{} Live.
-
-\section{Language Mode}
-
-This template 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-CN} % chinese
-\documentclass{Beautybook-EN} % english
-\end{lstlisting}
-
-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 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{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. 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 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's line color
- \colorlet{framegray}{Dilu!5} % Antique box's background color
-\end{lstlisting}
-
-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{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 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}
-
-\begin{table}[htbp]
- \centering
- \caption{cover element information}
- \begin{tabular}{cccccc}
- \hline
- Information & Commands & Information & Commands & Information & Commands \\
- \hline
- Title & \lstinline|\title| & subtitle & \lstinline|\subtitle| & author & \lstinline|\author| \\
- Publisher & \lstinline|\pressname| & Version & \lstinline|\edition| & cover image & \lstinline|\coverimage|\\
- Logo & \lstinline|\presslogo| & English title (cn)&\lstinline|\entitle|&&\\
- \hline
- \end{tabular}
-\end{table}
-
-\subsection{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.
-
-\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.
-
-\section{Title Style}
-
-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.
-
-\section{Introduction to the Mathematical Environments}
-
-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}
-
-\begin{remark}
- This is an amsthm-based annotation environment
-\end{remark}
-
-\subsubsection{thmtools}
-
-\begin{proof}[description of proof]
- Proof environment
-\end{proof}
-
-\begin{solution}[description of solution]
- Solution environment
-\end{solution}
-
-\subsubsection{Color emphasis box style}
-
-\begin{defi}[name of the definition]\label{defi:def test}
- The first defines the environment
-\end{defi}
-
-\begin{thm}[name of the thm]\label{thm:thm test}
- The first theorem environment
-\end{thm}
-
-\begin{cor}[name of the corollary]\label{cor:cor test}
- The first inference environment
-\end{cor}
-
-\begin{prop}[name of the prop]\label{prop:prop test}
- The first propositional environment
-\end{prop}
-
-\begin{exam}[name of the example]\label{exam:exam test}
- The first example problem environment
-\end{exam}
-
-\begin{lem}[name of the lem]\label{lem:lem test}
- The first lemma environment
-\end{lem}
-
-% \clearpage
-
-\section{Two exquisite theorem boxes crafted by the author!}
-
-\begin{definition}[][Name][def label]
- Here are the guidelines for using these two boxes.
-
-\begin{itemize}
- \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}
- \begin{definition}[][Name]
- Define the environment content
- \end{definition}
- \end{lstlisting}
- \item If you have a tag, then whether or not it has a name, use it as
- \begin{lstlisting}
- \begin{definition}[][Yes, fill in, no blank][Tag]
- Define the environment content
- \end{definition}
- \end{lstlisting}
- \item If you want to change some setting options of the box, such as bordering, etc., use it as
- \begin{lstlisting}
- \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}
- \end{itemize}
-
-\end{definition}
-
-\begin{theorem}
- The usage is the same as above, refer to the tag \ref{def label} below or you can \autoref{def label}.
-\end{theorem}
-
-\begin{lemma}
- The usage is the same as above, refer to the tag \ref{def label} below or you can \autoref{def label}.
-\end{lemma}
-
-\begin{corollary}
- The usage is the same as above, refer to the tag \ref{def label} below or you can \autoref{def label}.
-\end{corollary}
-
-\begin{example}
- The usage is the same as above, refer to the tag \ref{def label} below or you can \autoref{def label}.
-\end{example}
-
-\paragraph*{Ancient style box}
-\begin{fancybox}
- Test ancient style box , you can use it to nest outside of other environments arbitrarily!
-\end{fancybox}
-
-\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.
-
-\subsection{How to define a new theorem environment?}
-
-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}}, % 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.
- <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=<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={tcb<theorem counter>},
- before pre=\smallskip, after app=\smallskip,
- overlay unbroken=\my at theorem@overlay at unbroken{<environment name>\ \thetcb<theorem counter>}{<your color>},
- overlay first=\my at theorem@overlay at first{<environment name>\ \thetcb<theorem counter>}{<your color>},
- overlay last=\my at theorem@overlay at last{<your color>},
- }
- },
- <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=<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={tcb<theorem counter>},
- before pre=\smallskip, after app=\smallskip,
- overlay unbroken=\my at lemma@overlay at unbroken{<environment name>\ \thetcb<theorem counter>}{<your color>},
- overlay first=\my at lemma@overlay at first{<environment name>\ \thetcb<theorem counter>}{<your color>},
- overlay last=\my at lemma@overlay at last{<your color>},
- }
- },
-}
-\end{lstlisting}
-
-\begin{remark}
- 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 are two examples.\\[2ex]
-\begin{minipage}[b]{0.49\textwidth}
- \begin{itemize}[label=$\bigodot $]
- \item first item of nesti;
- \item second item of nesti;
- \begin{itemize}
- \item first item of nestii;
- \item second item of nestii;
- \begin{itemize}
- \item first item of nestiii;
- \item second item of nestiii.
- \end{itemize}
- \end{itemize}
- \end{itemize}
-\end{minipage}
-\begin{minipage}[b]{0.49\textwidth}
- \begin{enumerate}[label=\arabic*)]
- \item first item of nesti;
- \item second item of nesti;
- \begin{enumerate}
- \item first item of nestii;
- \item second item of nestii;
- \begin{enumerate}
- \item first item of nestiii;
- \item second item of nestiii.
- \end{enumerate}
- \end{enumerate}
- \end{enumerate}
-\end{minipage}
-
-\section{References}
-
-\subsection{print reference}
-
-\lstinline{ref.bib} is a file stored in the reference and needs to be placed in the working folder.
-
-\subsection{modify reference format}
-
-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.
-
-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".
-
-\begin{lstlisting}
-\usepackage[
-backend=biber, % can be changed to bibtex (or simply delete bibtex)
-style=GB7714-2015, % can be changed to numerical
-sorting=nty
-]{biblatex}
-\addbibresource{ref.bib}
-\end{lstlisting}
-
-\chapter{Font options (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 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}
- \setCJKmonofont[Path=fonts/,BoldFont={XX.TTF},ItalicFont={XX.TTF}]{XX.TTF}
- % Setting new CJK font family
- \newCJKfontfamily[song]\songti{XX.TTF}[Path=fonts/]
- % Setting new font family
- \newfontfamily\largetitlestyle[Path=fonts/]{XX.TTF}
-\end{lstlisting}
-
-
-
-%\appendix
-
-
-
-{\printbibliography[
-heading=bibintoc,
-title={References}
-]
-\printindex
-\thispagestyle{empty}}
-\bottomimage{inner_pics/ivy-ge998908f8_1280.jpg}
-\ISBNcode{\EANisbn[ISBN=978-80-7340-097-2]} %
-\summary{This is the area of the bottom information!}
-\makebottomcover
-\end{document}
\ No newline at end of file
Modified: trunk/Master/texmf-dist/doc/latex/beautybook/README.md
===================================================================
--- trunk/Master/texmf-dist/doc/latex/beautybook/README.md 2023-10-02 19:45:53 UTC (rev 68437)
+++ trunk/Master/texmf-dist/doc/latex/beautybook/README.md 2023-10-02 19:46:59 UTC (rev 68438)
@@ -17,7 +17,7 @@
---
## Version
-Release 2023-06-27.
+Release 2023-10-02.
---
## License
Added: trunk/Master/texmf-dist/doc/latex/beautybook/beautybook-en.pdf
===================================================================
(Binary files differ)
Index: trunk/Master/texmf-dist/doc/latex/beautybook/beautybook-en.pdf
===================================================================
--- trunk/Master/texmf-dist/doc/latex/beautybook/beautybook-en.pdf 2023-10-02 19:45:53 UTC (rev 68437)
+++ trunk/Master/texmf-dist/doc/latex/beautybook/beautybook-en.pdf 2023-10-02 19:46:59 UTC (rev 68438)
Property changes on: trunk/Master/texmf-dist/doc/latex/beautybook/beautybook-en.pdf
___________________________________________________________________
Added: svn:mime-type
## -0,0 +1 ##
+application/pdf
\ No newline at end of property
Added: trunk/Master/texmf-dist/doc/latex/beautybook/beautybook-en.tex
===================================================================
--- trunk/Master/texmf-dist/doc/latex/beautybook/beautybook-en.tex (rev 0)
+++ trunk/Master/texmf-dist/doc/latex/beautybook/beautybook-en.tex 2023-10-02 19:46:59 UTC (rev 68438)
@@ -0,0 +1,878 @@
+\documentclass[12pt]{Beautybook-EN}
+\coverstyle={
+ cover-choose=enfig, % cn (en ; enfig ; birkar)
+}
+\mathstyle={
+ math-font=plain, % plain; stix; mtpro2
+}
+\usepackage{bm}
+% \overfullrule=1pt
+% \RequirePackage[fontsize=13.5pt]{fontsize}
+%% 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}},
+ 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}}
+%% Second one
+\makeatletter
+\mynewtcbtheorem{
+ % 这个 theorem 是环境名
+ problem={
+ counter=tcbprob,
+ the counter=\thesection.\arabic{tcbprob},
+ name=Problem, % 它保存到 \theorem at name 里
+ thmcolor=绛紫,
+ autoref name=\bfseries Problem,
+ style={
+ arc=3pt,breakable,enhanced,interior style={top color=绛紫!9 ,middle color=绛紫!6, bottom color=绛紫!3},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={tcbprob},
+ before pre=\smallskip, after app=\smallskip,
+ overlay unbroken=\my at theorem@overlay at unbroken{Problem\ \thetcbprob}{绛紫},
+ overlay first=\my at theorem@overlay at first{Problem\ \thetcbprob}{绛紫},
+ overlay last=\my at theorem@overlay at last{绛紫},
+ }
+ },
+ lemma={
+ counter=tcblem,
+ the counter=\thesection.\arabic{tcblem},
+ name=Lemma,
+ lemcolor=靛蓝,
+ autoref name=\bfseries Lemma,
+ style={
+ arc=0mm,breakable,enhanced,interior style={top color=靛蓝!9 ,middle color=靛蓝!6, bottom color=靛蓝!3},arc=3pt,boxrule=0pt,top=6mm,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=\itshape,step={tcblem},
+ before pre=\smallskip, after app=\smallskip,
+ overlay unbroken=\my at lemma@overlay at unbroken{\lemma at name\ \thetcblem}{\lemma at lemcolor},
+ overlay first=\my at lemma@overlay at first{\lemma at name\ \thetcblem}{\lemma at lemcolor},
+ overlay last=\my at lemma@overlay at last{\lemma at lemcolor},
+ }
+ },
+ corollary={
+ counter=tcbcor,
+ the counter=\thesection.\arabic{tcbcor},
+ autoref name=\bfseries Corollary,
+ style={
+ arc=0mm,breakable,enhanced,interior style={top color=茶色!9 ,middle color=茶色!6, bottom color=茶色!3},arc=3pt,boxrule=0pt,top=6mm,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=\itshape,step={tcbcor},
+ before pre=\smallskip, after app=\smallskip,
+ overlay unbroken=\my at lemma@overlay at unbroken{Corollary\ \thetcbcor}{茶色},
+ overlay first=\my at lemma@overlay at first{Corollary\ \thetcbcor}{茶色},
+ overlay last=\my at lemma@overlay at last{茶色},
+ }
+ },
+ proposition={
+ counter=tcbprop,
+ the counter=\thesection.\arabic{tcbprop},
+ autoref name=\bfseries Proposition,
+ style={
+ arc=0mm,breakable,enhanced,interior style={top color=黛绿!9 ,middle color=黛绿!6, bottom color=黛绿!3},arc=3pt,boxrule=0pt,top=6mm,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=\itshape,step={tcbprop},
+ before pre=\smallskip, after app=\smallskip,
+ overlay unbroken=\my at lemma@overlay at unbroken{Proposition\ \thetcbprop}{黛绿},
+ overlay first=\my at lemma@overlay at first{Proposition\ \thetcbprop}{黛绿},
+ overlay last=\my at lemma@overlay at last{黛绿},
+ }
+ },
+ definition={
+ counter=tcbdefi,
+ the counter=\thesection.\arabic{tcbdefi},
+ autoref name=\bfseries Definition,
+ style={
+ arc=0mm,breakable,enhanced,interior style={top color=茜色!9 ,middle color=茜色!6, bottom color=茜色!3},arc=3pt,boxrule=0pt,top=6mm,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={tcbdefi},
+ before pre=\smallskip, after app=\smallskip,
+ overlay unbroken=\my at lemma@overlay at unbroken{Definition\ \thetcbdefi}{茜色},
+ overlay first=\my at lemma@overlay at first{Definition\ \thetcbdefi}{茜色},
+ overlay last=\my at lemma@overlay at last{茜色},
+ }
+ },
+ example={
+ counter=tcbexam,
+ the counter=\thesection.\arabic{tcbexam},
+ autoref name=\bfseries Example,
+ style={
+ arc=0mm,breakable,enhanced,interior style={top color=黛绿!9 ,middle color=黛绿!6, bottom color=黛绿!3},arc=3pt,boxrule=0pt,top=6mm,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 at lemma@overlay at unbroken{Example\ \thetcbexam}{黛绿},
+ overlay first=\my at lemma@overlay at first{Example\ \thetcbexam}{黛绿},
+ overlay last=\my at lemma@overlay at last{黛绿},
+ }
+ },
+ Exercise={
+ counter=tcbexer,
+ the counter=\thechapter.\arabic{tcbexer},
+ autoref name=\bfseries Exercise,
+ style={
+ arc=0mm,breakable,enhanced,interior style={top color=绛紫!9 ,middle color=绛紫!6, bottom color=绛紫!3},arc=3pt,boxrule=0pt,top=6mm,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 at lemma@overlay at unbroken{Exercise\ \thetcbexer}{绛紫},
+ overlay first=\my at lemma@overlay at first{Exercise\ \thetcbexer}{绛紫},
+ overlay last=\my at lemma@overlay at last{绛紫},
+ }
+ },
+ theorem={
+ counter=tcbthm,
+ the counter=\thesection.\arabic{tcbthm},
+ autoref name=\bfseries Theorem,
+ style={
+ arc=0mm,breakable,enhanced,interior style={top color=黛绿!9 ,middle color=黛绿!6, bottom color=黛绿!3},arc=3pt,boxrule=0pt,top=6mm,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=\itshape,step={tcbthm},
+ before pre=\smallskip, after app=\smallskip,
+ overlay unbroken=\my at lemma@overlay at unbroken{Theorem\ \thetcbthm}{黛绿},
+ overlay first=\my at lemma@overlay at first{Theorem\ \thetcbthm}{黛绿},
+ overlay last=\my at lemma@overlay at last{黛绿},
+ }
+ },
+ conjecture={
+ counter=tcbconj,
+ the counter=\thesection.\arabic{tcbconj},
+ name=Conjecture,
+ lemcolor=靛蓝,
+ autoref name=\bfseries Conjecture,
+ style={
+ arc=0mm,breakable,enhanced,interior style={top color=靛蓝!9 ,middle color=靛蓝!6, bottom color=靛蓝!3},arc=3pt,boxrule=0pt,top=6mm,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=\itshape,step={tcbconj},
+ before pre=\smallskip, after app=\smallskip,
+ overlay unbroken=\my at lemma@overlay at unbroken{Conjecture\ \thetcblem}{靛蓝},
+ overlay first=\my at lemma@overlay at first{Conjecture\ \thetcblem}{靛蓝},
+ overlay last=\my at lemma@overlay at last{靛蓝},
+ }
+ },
+}
+\makeatother
+%
+
+
+%% --------参考文献
+\RequirePackage[
+backend=biber,
+style=numeric,
+sorting=nty
+]{biblatex}
+\addbibresource{ref.bib}
+
+\indexsetup{level=\chapter*,noclearpage}
+\makeindex[title={\sffamily References},columns=3,columnsep=15pt,columnseprule]
+\makeindex
+
+\newcommand{\pr}{^\prime}
+\newcommand{\prr}{^{\prime\prime}}
+\newcommand{\bd}{\partial}
+\newcommand{\bdd}{\overline{\partial}}
+\newcommand{\Dif}[2]{\frac{\dd #1}{\dd #2}}
+\newcommand{\Diff}[2][]{\frac{\partial #1}{\partial #2}}
+\usepackage{shadowtext}\shadowoffset{.65pt}
+\newcommand*{\circledd}[1]{\lower.7ex\hbox{\tikz\draw (0pt, 0pt)%
+ circle (.5em) node {\makebox[1em][c]{\small #1}};}}
+ \usepackage{listings}
+ \lstset{
+ basicstyle=\small\ttfamily,
+ keywordstyle=\color{NavyBlue},
+ commentstyle=\color{gray!50!black!50},
+ stringstyle=\rmfamily\slshape\color{red},
+ backgroundcolor=\color{gray!5},
+ frame=leftline,
+ framerule=0.5pt,rulecolor=\color{gray!80},
+ numbers=left,
+ numberstyle=\footnotesize,
+ firstnumber=1,
+ stepnumber=1,
+ numbersep=7pt,
+ aboveskip=.25em,
+ showspaces=false,
+ showstringspaces=false,
+ keepspaces=true,
+ showtabs=false,
+ tabsize=2,
+ captionpos=b,
+ flexiblecolumns=true,
+ breaklines=true,
+ breakatwhitespace=false,
+ breakautoindent=true,
+ breakindent=1em,
+ title=\lstname,
+ escapeinside=``,
+ xleftmargin=1em, xrightmargin=1em,
+ aboveskip=1ex, belowskip=1ex,
+ framextopmargin=1pt, framexbottommargin=1pt,
+ abovecaptionskip=-2pt,belowcaptionskip=3pt,
+ extendedchars=false, columns=flexible, mathescape=true,
+ texcl=true,
+ fontadjust
+ }%
+
+\begin{document}
+\thispagestyle{empty}
+\title{An Introduction to Beautybook template}
+\subtitle{}
+\edition{First Edition}
+\bookseries{Illustrated by Ethan Lu}
+\author{Ethan Lu}
+\pressname{Beautybook}
+\presslogo{inner_pics/logo.png}
+\coverimage{inner_pics/coverimage.jpg}%ivy-ge998908f8_1280.jpg
+\makecover
+
+
+\definecolor{bg}{HTML}{e0e0e0}
+\definecolor{fg}{HTML}{2c4f54}
+\colorlet{outermarginbgcolor}{bg}
+\colorlet{outermarginfgcolor}{fg}
+\colorlet{framegolden}{fg}
+\colorlet{framegray}{bg!50}
+
+\makeatletter
+% set the contents of the outer margin on even and odd pages for scrheadings, plain and scth
+\oddoutermargin{\sffamily Vanishing Theorems on Vector Bundles with Semidefinite Curvature} % Odd 奇数页
+\evenoutermargin{\sffamily\@title} % Even 偶数页
+%
+\titleimage{
+ 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},
+%
+ 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},
+%
+ chapterevenimage={songeven,even1,even2,even3,even4,mid1,mid2,mid3,mid4,mid5,mid6,mid7,mid8,mid9,mid10,mid11},
+%
+ partevenimage={songeven,even1,even2,even3,even4,mid1,mid2,mid3,mid4,mid5,mid6,mid7,mid8,mid9,mid10,mid11},
+}
+\chapimage{\Beautybook at chapterimagename} % 会自动改变
+\partimage{\Beautybook at partimagename} % 会自动改变
+\makeatother
+%
+\frontmatter
+\pagenumbering{Roman}
+
+{% Preface
+\thispagestyle{empty}
+% \addcontentsline{toc}{chapter}{Preface}
+\chapter*{Preface}
+In this note, we obtain a logarithmic vanishing theorem on certain weakly pseudoconvex K\"ahler manifolds. It is a generalization of Norimatsu's result on compact K\"ahler manifolds. As a direct corollary, we obtain relative vanishing theorems of certain direct image sheaves.
+
+
+\hfill
+\begin{tabular}{lr}
+ &----- Ethan Lu\\
+ &2023-09-01
+\end{tabular}
+\clearpage}
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+
+\thispagestyle{empty}
+\tableofcontents\let\cleardoublepage\clearpage
+
+
+\mainmatter
+\pagenumbering{arabic}
+
+\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}}
+
+\section{Introduction}
+
+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 at 163.com}{163 mail} or QQ mail \href{1479840692 at qq.com}{QQ mail}.
+
+
+The Project Addresses are the following.
+\begin{itemize}
+ \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 at outlook.com}{outlook-email}.)
+\end{itemize}
+
+\textit{This work is released under the LaTeX Project Public License, v1.3c or later.}
+
+\section{Installation and Maintenance of Template}
+
+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.
+
+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}
+
+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 is an example of a minimal work:
+\begin{lstlisting}
+\documentclass[12pt]{Beautybook-EN}
+\coverstyle={
+ cover-choose=enfig, % cn (en ; enfig ; birkar)
+}
+\mathstyle={
+ math-font=plain, % plain; stix; mtpro2
+}
+\usepackage{bm}
+% \overfullrule=1pt
+% \RequirePackage[fontsize=13.5pt]{fontsize}
+%% 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}},
+ 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}}
+%% Second one
+\makeatletter
+\mynewtcbtheorem{
+ % Theorems
+ problem={
+ counter=tcbprob,
+ the counter=\thesection.\arabic{tcbprob},
+ name=Problem,
+ thmcolor=purple,
+ autoref name=\bfseries Problem,
+ style={
+ arc=3pt,breakable,enhanced,interior style={top color=purple!9 ,middle color=purple!6, bottom color=purple!3},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={tcbprob},
+ before pre=\smallskip, after app=\smallskip,
+ overlay unbroken=\my at theorem@overlay at unbroken{Problem\ \thetcbprob}{purple},
+ overlay first=\my at theorem@overlay at first{Problem\ \thetcbprob}{purple},
+ overlay last=\my at theorem@overlay at last{purple},
+ }
+ },
+ lemma={
+ counter=tcblem,
+ the counter=\thesection.\arabic{tcblem},
+ name=Lemma,
+ lemcolor=blue,
+ autoref name=\bfseries Lemma,
+ style={
+ arc=0mm,breakable,enhanced,interior style={top color=blue!9 ,middle color=blue!6, bottom color=blue!3},arc=3pt,boxrule=0pt,top=6mm,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=\itshape,step={tcblem},
+ before pre=\smallskip, after app=\smallskip,
+ overlay unbroken=\my at lemma@overlay at unbroken{\lemma at name\ \thetcblem}{\lemma at lemcolor},
+ overlay first=\my at lemma@overlay at first{\lemma at name\ \thetcblem}{\lemma at lemcolor},
+ overlay last=\my at lemma@overlay at last{\lemma at lemcolor},
+ }
+ },
+}
+\makeatother
+%
+
+
+%% --------References
+\RequirePackage[
+backend=biber,
+style=numeric,
+sorting=nty
+]{biblatex}
+\addbibresource{ref.bib}
+
+\indexsetup{level=\chapter*,noclearpage}
+\makeindex[title={\sffamily References},columns=3,columnsep=15pt,columnseprule]
+\makeindex
+
+\newcommand{\pr}{^\prime}
+\newcommand{\prr}{^{\prime\prime}}
+\newcommand{\bd}{\partial}
+\newcommand{\bdd}{\overline{\partial}}
+\newcommand{\Dif}[2]{\frac{\dd #1}{\dd #2}}
+\newcommand{\Diff}[2][]{\frac{\partial #1}{\partial #2}}
+\usepackage{shadowtext}\shadowoffset{.65pt}
+\newcommand*{\circledd}[1]{\lower.7ex\hbox{\tikz\draw (0pt, 0pt)%
+ circle (.5em) node {\makebox[1em][c]{\small #1}};}}
+ \usepackage{listings}
+ \lstset{
+ basicstyle=\small\ttfamily,
+ keywordstyle=\color{NavyBlue},
+ commentstyle=\color{gray!50!black!50},
+ stringstyle=\rmfamily\slshape\color{red},
+ backgroundcolor=\color{gray!5},
+ frame=leftline,
+ framerule=12pt,%
+ rulecolor=\color{gray!90},
+ numbers=left,
+ numberstyle=\footnotesize\itshape,
+ firstnumber=1,
+ stepnumber=1,
+ numbersep=7pt,
+ aboveskip=.25em,
+ showspaces=false,
+ showstringspaces=false,
+ keepspaces=true,
+ showtabs=false,
+ tabsize=2,
+ captionpos=b,
+ flexiblecolumns=true,
+ breaklines=true,
+ breakatwhitespace=false,
+ breakautoindent=true,
+ breakindent=1em,
+ title=\lstname,
+ escapeinside=``,
+ xleftmargin=1em, xrightmargin=1em,
+ aboveskip=1ex, belowskip=1ex,
+ framextopmargin=1pt, framexbottommargin=1pt,
+ abovecaptionskip=-2pt,belowcaptionskip=3pt,
+ extendedchars=false, columns=flexible, mathescape=true,
+ texcl=true,
+ fontadjust
+ }%
+
+\begin{document}
+\thispagestyle{empty}
+\title{An Introduction to Beautybook template}
+\subtitle{}
+\edition{First Edition}
+\bookseries{Illustrated by Ethan Lu}
+\author{Ethan Lu}
+\pressname{Springer}
+\presslogo{inner_pics/logo.png}
+\coverimage{inner_pics/coverimage.jpg}%ivy-ge998908f8_1280.jpg
+\makecover
+
+
+\definecolor{bg}{HTML}{e0e0e0}
+\definecolor{fg}{HTML}{2c4f54}
+\colorlet{outermarginbgcolor}{bg}
+\colorlet{outermarginfgcolor}{fg}
+\colorlet{framegolden}{fg}
+\colorlet{framegray}{bg!50}
+
+\makeatletter
+% set the contents of the outer margin on even and odd pages for scrheadings, plain and scth
+\oddoutermargin{\sffamily Vanishing Theorems on Vector Bundles with Semidefinite Curvature} % Odd pages
+\evenoutermargin{\sffamily\@title} % Even pages
+%
+\titleimage{
+ 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},
+%
+ 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},
+%
+ chapterevenimage={songeven,even1,even2,even3,even4,mid1,mid2,mid3,mid4,mid5,mid6,mid7,mid8,mid9,mid10,mid11},
+%
+ partevenimage={songeven,even1,even2,even3,even4,mid1,mid2,mid3,mid4,mid5,mid6,mid7,mid8,mid9,mid10,mid11},
+}
+\chapimage{\Beautybook at chapterimagename} % Changing automatically.
+\partimage{\Beautybook at partimagename} % Changing automatically.
+\makeatother
+%
+\frontmatter
+\pagenumbering{Roman}
+
+{% Preface
+\thispagestyle{empty}
+% \addcontentsline{toc}{chapter}{Preface}
+\chapter*{Preface}
+Your words here.
+
+
+\hfill
+\begin{tabular}{lr}
+ &----- author\\
+ & 2023-09-01
+\end{tabular}
+\clearpage}
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+
+\thispagestyle{empty}
+\tableofcontents\let\cleardoublepage\clearpage
+
+
+\mainmatter
+\pagenumbering{arabic}
+
+\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}}
+
+\section{Section}
+
+% your main contents here!
+
+
+\printindex\thispagestyle{empty}
+\bottomimage{inner_pics/coverimage.jpg}
+\ISBNcode{\EANisbn[ISBN=978-80-7340-097-2]} %
+\summary{Summary.}
+\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 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
+tlmgr update --all
+tlmgr update --self --all --reinstall-forcibly-removed
+\end{lstlisting}
+
+Please refer to \href{https://tex.stackexchange.com/questions/55437/how-do-i-update-my-tex-distribution}{How do I update my \TeX{} distribution?} for more information.
+
+\chapter{The setting of Beautybook Template}
+
+The English version of this template is based on the basic ``book" class, and the Chinese version is based on the ``ctexbook" class, so the option of book or ctexbook is also valid for this template. The default encoding is \texttt{UTF-8}, and it is recommended to compile with \TeX{} Live.
+
+\section{Language Mode}
+
+This template 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-CN} % chinese
+\documentclass{Beautybook-EN} % english
+\end{lstlisting}
+
+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 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{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. 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 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's line color
+ \colorlet{framegray}{Dilu!5} % Antique box's background color
+\end{lstlisting}
+
+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{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 Chinese classic cover (Chinese default) --corresponding macro package \lstinline{cover-choose=cn} ,
+ \item Springer Classic Cover 1 (English default) --corresponding to the macro package \lstinline{cover-choose=en} ,
+ \item Springer Classic Cover 2 (image background) --corresponding to macro package \lstinline{cover-choose=enfig} ,
+ \item Springer Classic cover 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}
+
+\begin{table}[htbp]
+ \centering
+ \caption{cover element information}
+ \begin{tabular}{cccccc}
+ \hline
+ Information & Commands & Information & Commands & Information & Commands \\
+ \hline
+ Title & \lstinline|\title| & subtitle & \lstinline|\subtitle| & author & \lstinline|\author| \\
+ Publisher & \lstinline|\pressname| & Version & \lstinline|\edition| & cover image & \lstinline|\coverimage|\\
+ Logo & \lstinline|\presslogo| & English title (cn)&\lstinline|\entitle|&&\\
+ \hline
+ \end{tabular}
+\end{table}
+
+\subsection{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.
+
+\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.
+
+\section{Title Style}
+
+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.
+
+\section{Introduction to the Mathematical Environments}
+
+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}
+
+\begin{remark}
+ This is an amsthm-based annotation environment
+\end{remark}
+
+\subsubsection{thmtools}
+
+\begin{proof}[description of proof]
+ Proof environment
+\end{proof}
+
+\begin{solution}[description of solution]
+ Solution environment
+\end{solution}
+
+\subsubsection{Color emphasis box style}
+
+\begin{defi}[name of the definition]\label{defi:def test}
+ The first defines the environment
+\end{defi}
+
+\begin{thm}[name of the thm]\label{thm:thm test}
+ The first theorem environment
+\end{thm}
+
+\begin{cor}[name of the corollary]\label{cor:cor test}
+ The first inference environment
+\end{cor}
+
+\begin{prop}[name of the prop]\label{prop:prop test}
+ The first propositional environment
+\end{prop}
+
+\begin{exam}[name of the example]\label{exam:exam test}
+ The first example problem environment
+\end{exam}
+
+\begin{lem}[name of the lem]\label{lem:lem test}
+ The first lemma environment
+\end{lem}
+
+% \clearpage
+
+\section{Two exquisite theorem boxes crafted by the author!}
+
+\begin{definition}[][Name][def label]
+ Here are the guidelines for using these two boxes.
+
+\begin{itemize}
+ \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}
+ \begin{definition}[][Name]
+ Define the environment content
+ \end{definition}
+ \end{lstlisting}
+ \item If you have a tag, then whether or not it has a name, use it as
+ \begin{lstlisting}
+ \begin{definition}[][Yes, fill in, no blank][Tag]
+ Define the environment content
+ \end{definition}
+ \end{lstlisting}
+ \item If you want to change some setting options of the box, such as bordering, etc., use it as
+ \begin{lstlisting}
+ \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}
+ \end{itemize}
+
+\end{definition}
+
+\begin{theorem}
+ The usage is the same as above, refer to the tag \ref{def label} below or you can \autoref{def label}.
+\end{theorem}
+
+\begin{lemma}
+ The usage is the same as above, refer to the tag \ref{def label} below or you can \autoref{def label}.
+\end{lemma}
+
+\begin{corollary}
+ The usage is the same as above, refer to the tag \ref{def label} below or you can \autoref{def label}.
+\end{corollary}
+
+\begin{example}
+ The usage is the same as above, refer to the tag \ref{def label} below or you can \autoref{def label}.
+\end{example}
+
+\subsection*{Ancient style box}
+\begin{fancybox}
+ Test ancient style box , you can use it to nest outside of other environments arbitrarily!
+\end{fancybox}
+
+\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.
+
+\subsection{How to define a new theorem environment?}
+
+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}}, % 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.
+ <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=<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={tcb<theorem counter>},
+ before pre=\smallskip, after app=\smallskip,
+ overlay unbroken=\my at theorem@overlay at unbroken{<environment name>\ \thetcb<theorem counter>}{<your color>},
+ overlay first=\my at theorem@overlay at first{<environment name>\ \thetcb<theorem counter>}{<your color>},
+ overlay last=\my at theorem@overlay at last{<your color>},
+ }
+ },
+ <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=<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={tcb<theorem counter>},
+ before pre=\smallskip, after app=\smallskip,
+ overlay unbroken=\my at lemma@overlay at unbroken{<environment name>\ \thetcb<theorem counter>}{<your color>},
+ overlay first=\my at lemma@overlay at first{<environment name>\ \thetcb<theorem counter>}{<your color>},
+ overlay last=\my at lemma@overlay at last{<your color>},
+ }
+ },
+}
+\end{lstlisting}
+
+\begin{remark}
+ 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 are two examples.\\[2ex]
+\begin{minipage}[b]{0.49\textwidth}
+ \begin{itemize}[label=$\bigodot $]
+ \item first item of nesti;
+ \item second item of nesti;
+ \begin{itemize}
+ \item first item of nestii;
+ \item second item of nestii;
+ \begin{itemize}
+ \item first item of nestiii;
+ \item second item of nestiii.
+ \end{itemize}
+ \end{itemize}
+ \end{itemize}
+\end{minipage}
+\begin{minipage}[b]{0.49\textwidth}
+ \begin{enumerate}[label=\arabic*)]
+ \item first item of nesti;
+ \item second item of nesti;
+ \begin{enumerate}
+ \item first item of nestii;
+ \item second item of nestii;
+ \begin{enumerate}
+ \item first item of nestiii;
+ \item second item of nestiii.
+ \end{enumerate}
+ \end{enumerate}
+ \end{enumerate}
+\end{minipage}
+
+\section{References}
+
+\subsection{print reference}
+
+\lstinline{ref.bib} is a file stored in the reference and needs to be placed in the working folder.
+
+\subsection{modify reference format}
+
+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.
+
+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".
+
+\begin{lstlisting}
+\usepackage[
+backend=biber, % can be changed to bibtex (or simply delete bibtex)
+style=GB7714-2015, % can be changed to numerical
+sorting=nty
+]{biblatex}
+\addbibresource{ref.bib}
+\end{lstlisting}
+
+
+\printindex\thispagestyle{empty}
+\bottomimage{inner_pics/coverimage.jpg}
+\ISBNcode{\EANisbn[ISBN=978-80-7340-097-2]} %
+\summary{A Research Notes Series For papers.}
+\makebottomcover
+\end{document}
Property changes on: trunk/Master/texmf-dist/doc/latex/beautybook/beautybook-en.tex
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Deleted: trunk/Master/texmf-dist/doc/latex/beautybook/inner_pics/part.png
===================================================================
(Binary files differ)
Deleted: trunk/Master/texmf-dist/doc/latex/beautybook/inner_pics/songeven.png
===================================================================
(Binary files differ)
Deleted: trunk/Master/texmf-dist/doc/latex/beautybook/inner_pics/songodd.png
===================================================================
(Binary files differ)
Added: trunk/Master/texmf-dist/doc/latex/beautybook/inner_pics/titleimages/even1.png
===================================================================
(Binary files differ)
Index: trunk/Master/texmf-dist/doc/latex/beautybook/inner_pics/titleimages/even1.png
===================================================================
--- trunk/Master/texmf-dist/doc/latex/beautybook/inner_pics/titleimages/even1.png 2023-10-02 19:45:53 UTC (rev 68437)
+++ trunk/Master/texmf-dist/doc/latex/beautybook/inner_pics/titleimages/even1.png 2023-10-02 19:46:59 UTC (rev 68438)
Property changes on: trunk/Master/texmf-dist/doc/latex/beautybook/inner_pics/titleimages/even1.png
___________________________________________________________________
Added: svn:mime-type
## -0,0 +1 ##
+application/octet-stream
\ No newline at end of property
Added: trunk/Master/texmf-dist/doc/latex/beautybook/inner_pics/titleimages/even2.png
===================================================================
(Binary files differ)
Index: trunk/Master/texmf-dist/doc/latex/beautybook/inner_pics/titleimages/even2.png
===================================================================
--- trunk/Master/texmf-dist/doc/latex/beautybook/inner_pics/titleimages/even2.png 2023-10-02 19:45:53 UTC (rev 68437)
+++ trunk/Master/texmf-dist/doc/latex/beautybook/inner_pics/titleimages/even2.png 2023-10-02 19:46:59 UTC (rev 68438)
Property changes on: trunk/Master/texmf-dist/doc/latex/beautybook/inner_pics/titleimages/even2.png
___________________________________________________________________
Added: svn:mime-type
## -0,0 +1 ##
+application/octet-stream
\ No newline at end of property
Added: trunk/Master/texmf-dist/doc/latex/beautybook/inner_pics/titleimages/even3.png
===================================================================
(Binary files differ)
Index: trunk/Master/texmf-dist/doc/latex/beautybook/inner_pics/titleimages/even3.png
===================================================================
--- trunk/Master/texmf-dist/doc/latex/beautybook/inner_pics/titleimages/even3.png 2023-10-02 19:45:53 UTC (rev 68437)
+++ trunk/Master/texmf-dist/doc/latex/beautybook/inner_pics/titleimages/even3.png 2023-10-02 19:46:59 UTC (rev 68438)
Property changes on: trunk/Master/texmf-dist/doc/latex/beautybook/inner_pics/titleimages/even3.png
___________________________________________________________________
Added: svn:mime-type
## -0,0 +1 ##
+application/octet-stream
\ No newline at end of property
Added: trunk/Master/texmf-dist/doc/latex/beautybook/inner_pics/titleimages/even4.png
===================================================================
(Binary files differ)
Index: trunk/Master/texmf-dist/doc/latex/beautybook/inner_pics/titleimages/even4.png
===================================================================
--- trunk/Master/texmf-dist/doc/latex/beautybook/inner_pics/titleimages/even4.png 2023-10-02 19:45:53 UTC (rev 68437)
+++ trunk/Master/texmf-dist/doc/latex/beautybook/inner_pics/titleimages/even4.png 2023-10-02 19:46:59 UTC (rev 68438)
Property changes on: trunk/Master/texmf-dist/doc/latex/beautybook/inner_pics/titleimages/even4.png
___________________________________________________________________
Added: svn:mime-type
## -0,0 +1 ##
+application/octet-stream
\ No newline at end of property
Added: trunk/Master/texmf-dist/doc/latex/beautybook/inner_pics/titleimages/mid1.png
===================================================================
(Binary files differ)
Index: trunk/Master/texmf-dist/doc/latex/beautybook/inner_pics/titleimages/mid1.png
===================================================================
--- trunk/Master/texmf-dist/doc/latex/beautybook/inner_pics/titleimages/mid1.png 2023-10-02 19:45:53 UTC (rev 68437)
+++ trunk/Master/texmf-dist/doc/latex/beautybook/inner_pics/titleimages/mid1.png 2023-10-02 19:46:59 UTC (rev 68438)
Property changes on: trunk/Master/texmf-dist/doc/latex/beautybook/inner_pics/titleimages/mid1.png
___________________________________________________________________
Added: svn:mime-type
## -0,0 +1 ##
+application/octet-stream
\ No newline at end of property
Added: trunk/Master/texmf-dist/doc/latex/beautybook/inner_pics/titleimages/mid10.png
===================================================================
(Binary files differ)
Index: trunk/Master/texmf-dist/doc/latex/beautybook/inner_pics/titleimages/mid10.png
===================================================================
--- trunk/Master/texmf-dist/doc/latex/beautybook/inner_pics/titleimages/mid10.png 2023-10-02 19:45:53 UTC (rev 68437)
+++ trunk/Master/texmf-dist/doc/latex/beautybook/inner_pics/titleimages/mid10.png 2023-10-02 19:46:59 UTC (rev 68438)
Property changes on: trunk/Master/texmf-dist/doc/latex/beautybook/inner_pics/titleimages/mid10.png
___________________________________________________________________
Added: svn:mime-type
## -0,0 +1 ##
+application/octet-stream
\ No newline at end of property
Added: trunk/Master/texmf-dist/doc/latex/beautybook/inner_pics/titleimages/mid11.png
===================================================================
(Binary files differ)
Index: trunk/Master/texmf-dist/doc/latex/beautybook/inner_pics/titleimages/mid11.png
===================================================================
--- trunk/Master/texmf-dist/doc/latex/beautybook/inner_pics/titleimages/mid11.png 2023-10-02 19:45:53 UTC (rev 68437)
+++ trunk/Master/texmf-dist/doc/latex/beautybook/inner_pics/titleimages/mid11.png 2023-10-02 19:46:59 UTC (rev 68438)
Property changes on: trunk/Master/texmf-dist/doc/latex/beautybook/inner_pics/titleimages/mid11.png
___________________________________________________________________
Added: svn:mime-type
## -0,0 +1 ##
+application/octet-stream
\ No newline at end of property
Added: trunk/Master/texmf-dist/doc/latex/beautybook/inner_pics/titleimages/mid2.png
===================================================================
(Binary files differ)
Index: trunk/Master/texmf-dist/doc/latex/beautybook/inner_pics/titleimages/mid2.png
===================================================================
--- trunk/Master/texmf-dist/doc/latex/beautybook/inner_pics/titleimages/mid2.png 2023-10-02 19:45:53 UTC (rev 68437)
+++ trunk/Master/texmf-dist/doc/latex/beautybook/inner_pics/titleimages/mid2.png 2023-10-02 19:46:59 UTC (rev 68438)
Property changes on: trunk/Master/texmf-dist/doc/latex/beautybook/inner_pics/titleimages/mid2.png
___________________________________________________________________
Added: svn:mime-type
## -0,0 +1 ##
+application/octet-stream
\ No newline at end of property
Added: trunk/Master/texmf-dist/doc/latex/beautybook/inner_pics/titleimages/mid3.png
===================================================================
(Binary files differ)
Index: trunk/Master/texmf-dist/doc/latex/beautybook/inner_pics/titleimages/mid3.png
===================================================================
--- trunk/Master/texmf-dist/doc/latex/beautybook/inner_pics/titleimages/mid3.png 2023-10-02 19:45:53 UTC (rev 68437)
+++ trunk/Master/texmf-dist/doc/latex/beautybook/inner_pics/titleimages/mid3.png 2023-10-02 19:46:59 UTC (rev 68438)
Property changes on: trunk/Master/texmf-dist/doc/latex/beautybook/inner_pics/titleimages/mid3.png
___________________________________________________________________
Added: svn:mime-type
## -0,0 +1 ##
+application/octet-stream
\ No newline at end of property
Added: trunk/Master/texmf-dist/doc/latex/beautybook/inner_pics/titleimages/mid4.png
===================================================================
(Binary files differ)
Index: trunk/Master/texmf-dist/doc/latex/beautybook/inner_pics/titleimages/mid4.png
===================================================================
--- trunk/Master/texmf-dist/doc/latex/beautybook/inner_pics/titleimages/mid4.png 2023-10-02 19:45:53 UTC (rev 68437)
+++ trunk/Master/texmf-dist/doc/latex/beautybook/inner_pics/titleimages/mid4.png 2023-10-02 19:46:59 UTC (rev 68438)
Property changes on: trunk/Master/texmf-dist/doc/latex/beautybook/inner_pics/titleimages/mid4.png
___________________________________________________________________
Added: svn:mime-type
## -0,0 +1 ##
+application/octet-stream
\ No newline at end of property
Added: trunk/Master/texmf-dist/doc/latex/beautybook/inner_pics/titleimages/mid5.png
===================================================================
(Binary files differ)
Index: trunk/Master/texmf-dist/doc/latex/beautybook/inner_pics/titleimages/mid5.png
===================================================================
--- trunk/Master/texmf-dist/doc/latex/beautybook/inner_pics/titleimages/mid5.png 2023-10-02 19:45:53 UTC (rev 68437)
+++ trunk/Master/texmf-dist/doc/latex/beautybook/inner_pics/titleimages/mid5.png 2023-10-02 19:46:59 UTC (rev 68438)
Property changes on: trunk/Master/texmf-dist/doc/latex/beautybook/inner_pics/titleimages/mid5.png
___________________________________________________________________
Added: svn:mime-type
## -0,0 +1 ##
+application/octet-stream
\ No newline at end of property
Added: trunk/Master/texmf-dist/doc/latex/beautybook/inner_pics/titleimages/mid6.png
===================================================================
(Binary files differ)
Index: trunk/Master/texmf-dist/doc/latex/beautybook/inner_pics/titleimages/mid6.png
===================================================================
--- trunk/Master/texmf-dist/doc/latex/beautybook/inner_pics/titleimages/mid6.png 2023-10-02 19:45:53 UTC (rev 68437)
+++ trunk/Master/texmf-dist/doc/latex/beautybook/inner_pics/titleimages/mid6.png 2023-10-02 19:46:59 UTC (rev 68438)
Property changes on: trunk/Master/texmf-dist/doc/latex/beautybook/inner_pics/titleimages/mid6.png
___________________________________________________________________
Added: svn:mime-type
## -0,0 +1 ##
+application/octet-stream
\ No newline at end of property
Added: trunk/Master/texmf-dist/doc/latex/beautybook/inner_pics/titleimages/mid7.png
===================================================================
(Binary files differ)
Index: trunk/Master/texmf-dist/doc/latex/beautybook/inner_pics/titleimages/mid7.png
===================================================================
--- trunk/Master/texmf-dist/doc/latex/beautybook/inner_pics/titleimages/mid7.png 2023-10-02 19:45:53 UTC (rev 68437)
+++ trunk/Master/texmf-dist/doc/latex/beautybook/inner_pics/titleimages/mid7.png 2023-10-02 19:46:59 UTC (rev 68438)
Property changes on: trunk/Master/texmf-dist/doc/latex/beautybook/inner_pics/titleimages/mid7.png
___________________________________________________________________
Added: svn:mime-type
## -0,0 +1 ##
+application/octet-stream
\ No newline at end of property
Added: trunk/Master/texmf-dist/doc/latex/beautybook/inner_pics/titleimages/mid8.png
===================================================================
(Binary files differ)
Index: trunk/Master/texmf-dist/doc/latex/beautybook/inner_pics/titleimages/mid8.png
===================================================================
--- trunk/Master/texmf-dist/doc/latex/beautybook/inner_pics/titleimages/mid8.png 2023-10-02 19:45:53 UTC (rev 68437)
+++ trunk/Master/texmf-dist/doc/latex/beautybook/inner_pics/titleimages/mid8.png 2023-10-02 19:46:59 UTC (rev 68438)
Property changes on: trunk/Master/texmf-dist/doc/latex/beautybook/inner_pics/titleimages/mid8.png
___________________________________________________________________
Added: svn:mime-type
## -0,0 +1 ##
+application/octet-stream
\ No newline at end of property
Added: trunk/Master/texmf-dist/doc/latex/beautybook/inner_pics/titleimages/mid9.png
===================================================================
(Binary files differ)
Index: trunk/Master/texmf-dist/doc/latex/beautybook/inner_pics/titleimages/mid9.png
===================================================================
--- trunk/Master/texmf-dist/doc/latex/beautybook/inner_pics/titleimages/mid9.png 2023-10-02 19:45:53 UTC (rev 68437)
+++ trunk/Master/texmf-dist/doc/latex/beautybook/inner_pics/titleimages/mid9.png 2023-10-02 19:46:59 UTC (rev 68438)
Property changes on: trunk/Master/texmf-dist/doc/latex/beautybook/inner_pics/titleimages/mid9.png
___________________________________________________________________
Added: svn:mime-type
## -0,0 +1 ##
+application/octet-stream
\ No newline at end of property
Added: trunk/Master/texmf-dist/doc/latex/beautybook/inner_pics/titleimages/odd1.png
===================================================================
(Binary files differ)
Index: trunk/Master/texmf-dist/doc/latex/beautybook/inner_pics/titleimages/odd1.png
===================================================================
--- trunk/Master/texmf-dist/doc/latex/beautybook/inner_pics/titleimages/odd1.png 2023-10-02 19:45:53 UTC (rev 68437)
+++ trunk/Master/texmf-dist/doc/latex/beautybook/inner_pics/titleimages/odd1.png 2023-10-02 19:46:59 UTC (rev 68438)
Property changes on: trunk/Master/texmf-dist/doc/latex/beautybook/inner_pics/titleimages/odd1.png
___________________________________________________________________
Added: svn:mime-type
## -0,0 +1 ##
+application/octet-stream
\ No newline at end of property
Added: trunk/Master/texmf-dist/doc/latex/beautybook/inner_pics/titleimages/odd10.png
===================================================================
(Binary files differ)
Index: trunk/Master/texmf-dist/doc/latex/beautybook/inner_pics/titleimages/odd10.png
===================================================================
--- trunk/Master/texmf-dist/doc/latex/beautybook/inner_pics/titleimages/odd10.png 2023-10-02 19:45:53 UTC (rev 68437)
+++ trunk/Master/texmf-dist/doc/latex/beautybook/inner_pics/titleimages/odd10.png 2023-10-02 19:46:59 UTC (rev 68438)
Property changes on: trunk/Master/texmf-dist/doc/latex/beautybook/inner_pics/titleimages/odd10.png
___________________________________________________________________
Added: svn:mime-type
## -0,0 +1 ##
+application/octet-stream
\ No newline at end of property
Added: trunk/Master/texmf-dist/doc/latex/beautybook/inner_pics/titleimages/odd11.png
===================================================================
(Binary files differ)
Index: trunk/Master/texmf-dist/doc/latex/beautybook/inner_pics/titleimages/odd11.png
===================================================================
--- trunk/Master/texmf-dist/doc/latex/beautybook/inner_pics/titleimages/odd11.png 2023-10-02 19:45:53 UTC (rev 68437)
+++ trunk/Master/texmf-dist/doc/latex/beautybook/inner_pics/titleimages/odd11.png 2023-10-02 19:46:59 UTC (rev 68438)
Property changes on: trunk/Master/texmf-dist/doc/latex/beautybook/inner_pics/titleimages/odd11.png
___________________________________________________________________
Added: svn:mime-type
## -0,0 +1 ##
+application/octet-stream
\ No newline at end of property
Added: trunk/Master/texmf-dist/doc/latex/beautybook/inner_pics/titleimages/odd12.png
===================================================================
(Binary files differ)
Index: trunk/Master/texmf-dist/doc/latex/beautybook/inner_pics/titleimages/odd12.png
===================================================================
--- trunk/Master/texmf-dist/doc/latex/beautybook/inner_pics/titleimages/odd12.png 2023-10-02 19:45:53 UTC (rev 68437)
+++ trunk/Master/texmf-dist/doc/latex/beautybook/inner_pics/titleimages/odd12.png 2023-10-02 19:46:59 UTC (rev 68438)
Property changes on: trunk/Master/texmf-dist/doc/latex/beautybook/inner_pics/titleimages/odd12.png
___________________________________________________________________
Added: svn:mime-type
## -0,0 +1 ##
+application/octet-stream
\ No newline at end of property
Added: trunk/Master/texmf-dist/doc/latex/beautybook/inner_pics/titleimages/odd13.png
===================================================================
(Binary files differ)
Index: trunk/Master/texmf-dist/doc/latex/beautybook/inner_pics/titleimages/odd13.png
===================================================================
--- trunk/Master/texmf-dist/doc/latex/beautybook/inner_pics/titleimages/odd13.png 2023-10-02 19:45:53 UTC (rev 68437)
+++ trunk/Master/texmf-dist/doc/latex/beautybook/inner_pics/titleimages/odd13.png 2023-10-02 19:46:59 UTC (rev 68438)
Property changes on: trunk/Master/texmf-dist/doc/latex/beautybook/inner_pics/titleimages/odd13.png
___________________________________________________________________
Added: svn:mime-type
## -0,0 +1 ##
+application/octet-stream
\ No newline at end of property
Added: trunk/Master/texmf-dist/doc/latex/beautybook/inner_pics/titleimages/odd14.png
===================================================================
(Binary files differ)
Index: trunk/Master/texmf-dist/doc/latex/beautybook/inner_pics/titleimages/odd14.png
===================================================================
--- trunk/Master/texmf-dist/doc/latex/beautybook/inner_pics/titleimages/odd14.png 2023-10-02 19:45:53 UTC (rev 68437)
+++ trunk/Master/texmf-dist/doc/latex/beautybook/inner_pics/titleimages/odd14.png 2023-10-02 19:46:59 UTC (rev 68438)
Property changes on: trunk/Master/texmf-dist/doc/latex/beautybook/inner_pics/titleimages/odd14.png
___________________________________________________________________
Added: svn:mime-type
## -0,0 +1 ##
+application/octet-stream
\ No newline at end of property
Added: trunk/Master/texmf-dist/doc/latex/beautybook/inner_pics/titleimages/odd15.png
===================================================================
(Binary files differ)
Index: trunk/Master/texmf-dist/doc/latex/beautybook/inner_pics/titleimages/odd15.png
===================================================================
--- trunk/Master/texmf-dist/doc/latex/beautybook/inner_pics/titleimages/odd15.png 2023-10-02 19:45:53 UTC (rev 68437)
+++ trunk/Master/texmf-dist/doc/latex/beautybook/inner_pics/titleimages/odd15.png 2023-10-02 19:46:59 UTC (rev 68438)
Property changes on: trunk/Master/texmf-dist/doc/latex/beautybook/inner_pics/titleimages/odd15.png
___________________________________________________________________
Added: svn:mime-type
## -0,0 +1 ##
+application/octet-stream
\ No newline at end of property
Added: trunk/Master/texmf-dist/doc/latex/beautybook/inner_pics/titleimages/odd2.png
===================================================================
(Binary files differ)
Index: trunk/Master/texmf-dist/doc/latex/beautybook/inner_pics/titleimages/odd2.png
===================================================================
--- trunk/Master/texmf-dist/doc/latex/beautybook/inner_pics/titleimages/odd2.png 2023-10-02 19:45:53 UTC (rev 68437)
+++ trunk/Master/texmf-dist/doc/latex/beautybook/inner_pics/titleimages/odd2.png 2023-10-02 19:46:59 UTC (rev 68438)
Property changes on: trunk/Master/texmf-dist/doc/latex/beautybook/inner_pics/titleimages/odd2.png
___________________________________________________________________
Added: svn:mime-type
## -0,0 +1 ##
+application/octet-stream
\ No newline at end of property
Added: trunk/Master/texmf-dist/doc/latex/beautybook/inner_pics/titleimages/odd3.png
===================================================================
(Binary files differ)
Index: trunk/Master/texmf-dist/doc/latex/beautybook/inner_pics/titleimages/odd3.png
===================================================================
--- trunk/Master/texmf-dist/doc/latex/beautybook/inner_pics/titleimages/odd3.png 2023-10-02 19:45:53 UTC (rev 68437)
+++ trunk/Master/texmf-dist/doc/latex/beautybook/inner_pics/titleimages/odd3.png 2023-10-02 19:46:59 UTC (rev 68438)
Property changes on: trunk/Master/texmf-dist/doc/latex/beautybook/inner_pics/titleimages/odd3.png
___________________________________________________________________
Added: svn:mime-type
## -0,0 +1 ##
+application/octet-stream
\ No newline at end of property
Added: trunk/Master/texmf-dist/doc/latex/beautybook/inner_pics/titleimages/odd4.png
===================================================================
(Binary files differ)
Index: trunk/Master/texmf-dist/doc/latex/beautybook/inner_pics/titleimages/odd4.png
===================================================================
--- trunk/Master/texmf-dist/doc/latex/beautybook/inner_pics/titleimages/odd4.png 2023-10-02 19:45:53 UTC (rev 68437)
+++ trunk/Master/texmf-dist/doc/latex/beautybook/inner_pics/titleimages/odd4.png 2023-10-02 19:46:59 UTC (rev 68438)
Property changes on: trunk/Master/texmf-dist/doc/latex/beautybook/inner_pics/titleimages/odd4.png
___________________________________________________________________
Added: svn:mime-type
## -0,0 +1 ##
+application/octet-stream
\ No newline at end of property
Added: trunk/Master/texmf-dist/doc/latex/beautybook/inner_pics/titleimages/odd5.png
===================================================================
(Binary files differ)
Index: trunk/Master/texmf-dist/doc/latex/beautybook/inner_pics/titleimages/odd5.png
===================================================================
--- trunk/Master/texmf-dist/doc/latex/beautybook/inner_pics/titleimages/odd5.png 2023-10-02 19:45:53 UTC (rev 68437)
+++ trunk/Master/texmf-dist/doc/latex/beautybook/inner_pics/titleimages/odd5.png 2023-10-02 19:46:59 UTC (rev 68438)
Property changes on: trunk/Master/texmf-dist/doc/latex/beautybook/inner_pics/titleimages/odd5.png
___________________________________________________________________
Added: svn:mime-type
## -0,0 +1 ##
+application/octet-stream
\ No newline at end of property
Added: trunk/Master/texmf-dist/doc/latex/beautybook/inner_pics/titleimages/odd6.png
===================================================================
(Binary files differ)
Index: trunk/Master/texmf-dist/doc/latex/beautybook/inner_pics/titleimages/odd6.png
===================================================================
--- trunk/Master/texmf-dist/doc/latex/beautybook/inner_pics/titleimages/odd6.png 2023-10-02 19:45:53 UTC (rev 68437)
+++ trunk/Master/texmf-dist/doc/latex/beautybook/inner_pics/titleimages/odd6.png 2023-10-02 19:46:59 UTC (rev 68438)
Property changes on: trunk/Master/texmf-dist/doc/latex/beautybook/inner_pics/titleimages/odd6.png
___________________________________________________________________
Added: svn:mime-type
## -0,0 +1 ##
+application/octet-stream
\ No newline at end of property
Added: trunk/Master/texmf-dist/doc/latex/beautybook/inner_pics/titleimages/odd7.png
===================================================================
(Binary files differ)
Index: trunk/Master/texmf-dist/doc/latex/beautybook/inner_pics/titleimages/odd7.png
===================================================================
--- trunk/Master/texmf-dist/doc/latex/beautybook/inner_pics/titleimages/odd7.png 2023-10-02 19:45:53 UTC (rev 68437)
+++ trunk/Master/texmf-dist/doc/latex/beautybook/inner_pics/titleimages/odd7.png 2023-10-02 19:46:59 UTC (rev 68438)
Property changes on: trunk/Master/texmf-dist/doc/latex/beautybook/inner_pics/titleimages/odd7.png
___________________________________________________________________
Added: svn:mime-type
## -0,0 +1 ##
+application/octet-stream
\ No newline at end of property
Added: trunk/Master/texmf-dist/doc/latex/beautybook/inner_pics/titleimages/odd8.png
===================================================================
(Binary files differ)
Index: trunk/Master/texmf-dist/doc/latex/beautybook/inner_pics/titleimages/odd8.png
===================================================================
--- trunk/Master/texmf-dist/doc/latex/beautybook/inner_pics/titleimages/odd8.png 2023-10-02 19:45:53 UTC (rev 68437)
+++ trunk/Master/texmf-dist/doc/latex/beautybook/inner_pics/titleimages/odd8.png 2023-10-02 19:46:59 UTC (rev 68438)
Property changes on: trunk/Master/texmf-dist/doc/latex/beautybook/inner_pics/titleimages/odd8.png
___________________________________________________________________
Added: svn:mime-type
## -0,0 +1 ##
+application/octet-stream
\ No newline at end of property
Added: trunk/Master/texmf-dist/doc/latex/beautybook/inner_pics/titleimages/odd9.png
===================================================================
(Binary files differ)
Index: trunk/Master/texmf-dist/doc/latex/beautybook/inner_pics/titleimages/odd9.png
===================================================================
--- trunk/Master/texmf-dist/doc/latex/beautybook/inner_pics/titleimages/odd9.png 2023-10-02 19:45:53 UTC (rev 68437)
+++ trunk/Master/texmf-dist/doc/latex/beautybook/inner_pics/titleimages/odd9.png 2023-10-02 19:46:59 UTC (rev 68438)
Property changes on: trunk/Master/texmf-dist/doc/latex/beautybook/inner_pics/titleimages/odd9.png
___________________________________________________________________
Added: svn:mime-type
## -0,0 +1 ##
+application/octet-stream
\ No newline at end of property
Added: trunk/Master/texmf-dist/doc/latex/beautybook/inner_pics/titleimages/songeven.png
===================================================================
(Binary files differ)
Index: trunk/Master/texmf-dist/doc/latex/beautybook/inner_pics/titleimages/songeven.png
===================================================================
--- trunk/Master/texmf-dist/doc/latex/beautybook/inner_pics/titleimages/songeven.png 2023-10-02 19:45:53 UTC (rev 68437)
+++ trunk/Master/texmf-dist/doc/latex/beautybook/inner_pics/titleimages/songeven.png 2023-10-02 19:46:59 UTC (rev 68438)
Property changes on: trunk/Master/texmf-dist/doc/latex/beautybook/inner_pics/titleimages/songeven.png
___________________________________________________________________
Added: svn:mime-type
## -0,0 +1 ##
+application/octet-stream
\ No newline at end of property
Added: trunk/Master/texmf-dist/doc/latex/beautybook/inner_pics/titleimages/songodd.png
===================================================================
(Binary files differ)
Index: trunk/Master/texmf-dist/doc/latex/beautybook/inner_pics/titleimages/songodd.png
===================================================================
--- trunk/Master/texmf-dist/doc/latex/beautybook/inner_pics/titleimages/songodd.png 2023-10-02 19:45:53 UTC (rev 68437)
+++ trunk/Master/texmf-dist/doc/latex/beautybook/inner_pics/titleimages/songodd.png 2023-10-02 19:46:59 UTC (rev 68438)
Property changes on: trunk/Master/texmf-dist/doc/latex/beautybook/inner_pics/titleimages/songodd.png
___________________________________________________________________
Added: svn:mime-type
## -0,0 +1 ##
+application/octet-stream
\ No newline at end of property
Modified: trunk/Master/texmf-dist/doc/latex/beautybook/ref.bib
===================================================================
--- trunk/Master/texmf-dist/doc/latex/beautybook/ref.bib 2023-10-02 19:45:53 UTC (rev 68437)
+++ trunk/Master/texmf-dist/doc/latex/beautybook/ref.bib 2023-10-02 19:46:59 UTC (rev 68438)
@@ -5,11 +5,3 @@
year={2010},
}
-
-
-
-
-
-
-
-
Modified: trunk/Master/texmf-dist/tex/latex/beautybook/Beautybook-CN.cls
===================================================================
--- trunk/Master/texmf-dist/tex/latex/beautybook/Beautybook-CN.cls 2023-10-02 19:45:53 UTC (rev 68437)
+++ trunk/Master/texmf-dist/tex/latex/beautybook/Beautybook-CN.cls 2023-10-02 19:46:59 UTC (rev 68438)
@@ -1,23 +1,20 @@
%This Class is based on the default book class and options will be passed
\NeedsTeXFormat{LaTeX2e}
-\ProvidesClass{Beautybook-CN}[17-06-2023 Beautybook Class]
+\ProvidesClass{Beautybook-CN}[02-10-2023 V8.0 Beautybook Class]
\DeclareOption*{\PassOptionsToClass{\CurrentOption}{ctexbook}}
\ProcessOptions\relax
-\LoadClass[twoside]{ctexbook}
-\overfullrule=1pt
-%\usepackage[fontsize=13.5pt]{fontsize}
-\usepackage[dvipsnames,svgnames,x11names,table]{xcolor}
+\LoadClass[twoside,a4paper]{ctexbook}
+\RequirePackage[dvipsnames,svgnames,x11names,table]{xcolor}
+\RequirePackage{cncolours}
+\setmainfont{Times New Roman}
\colorlet{outermarginfgcolor}{DarkCyan} % foregroundcolor 较深
\colorlet{outermarginbgcolor}{DarkCyan!30} % backgroundcolor 较浅
-\definecolor{高粱红}{HTML}{951c48}
-\usepackage{cncolours}
\RequirePackage{bropd} % math 自适应数学括号命令 \br{} !!!
-\usepackage{tikz-imagelabels} % tikz图像标注
-\usepackage{epigraph-keys} % 名言引用
-\usepackage{fitbox} % 图像自适应
-\usepackage{xeCJKfntef} % 文字两端对齐
-\usepackage{pgfornament-han}
-\usepackage{tikz}
+\RequirePackage{tikz-imagelabels} % tikz图像标注
+\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命令以及下列图层指令
\pgfplotsset{compat=1.18}
@@ -28,10 +25,10 @@
{
cover-choose.choice:,
cover-choose.value_required:n = true,
- cover-choose/cn.code:n = {\RequirePackage{stys/Beautybook-cn}},
- 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/cn.code:n = {\RequirePackage{stys/Beautybook-cover-cn}},
+ cover-choose/en.code:n = {\RequirePackage{stys/Beautybook-cover-en}},
+ cover-choose/enfig.code:n = {\RequirePackage{stys/Beautybook-cover-enfig}},
+ cover-choose/birkar.code:n = {\RequirePackage{stys/Beautybook-cover-birkar}},
%cover-choose .initial:n = en , % 设置 en 为初始值
}
\newtoks \l__Beautybook_tmpa_toks
@@ -48,8 +45,12 @@
math-font.choice:,
math-font.value_required:n = true,
math-font/plain.code:n={},
+ math-font/stix.code:n={
+ \RequirePackage{stix}
+ },
math-font/mtpro2.code:n = {
\RequirePackage{mtpro2}
+ \RequirePackage{bm}
\DeclareFontFamily{U}{nxlmi}{}
\DeclareFontSubstitution{U}{nxlmi}{m}{it}
\DeclareFontShape{U}{nxlmi}{m}{it}{
@@ -75,12 +76,10 @@
\cs_new:Npn \__Beautybook_set_mathstyle:
{ \keys_set:nV { Beautybook / mathstyle } \l__Beautybook_tmpa_toks }
\ExplSyntaxOff
-%
-\usepackage{stys/Beautybook-bottompage} % 封底
-%
-\usepackage{rotating}
+\RequirePackage{stys/Beautybook-bottompage} %封底
+\RequirePackage{rotating}
\tikzset{>=Stealth}
-\setlist{nosep,font=\upshape} % 取消所有列表默认距离
+\setlist{font=\upshape} % 取消所有列表默认距离 nosep,
% 浮动环境设置
% 默认情况下, \LaTeX{} 要求每页的文字至少占据 20%,否则该页就只单独放置一个浮动环境,
% 而这通常不是我们想要的, 我们将这个要求降低到 5%.
@@ -99,19 +98,28 @@
% 如果图片没有指定后缀, 依次按下列顺序搜索
\DeclareGraphicsExtensions{.pdf,.eps,.jpg,.png}
% 设置图表搜索路径, 可以给图表文件夹取如下名字
-\graphicspath{{figures/}{figure/}{pictures/}{picture/}{pic/}{pics/}{image/}{images/}}
-\usepackage{amssymb,amsfonts}
-\usepackage{makeidx}
-\usepackage{etoolbox} % 判断函数
-\usepackage{paracol}
-\usepackage{tikz-cd}
-\usepackage{imakeidx}
-\usepackage{anyfontsize}
-\usepackage{calc}
-\usepackage{xkeyval,ifthen}
-\usepackage[backgroundcolor=yellow!40!cyan!20,bordercolor=yellow!40!cyan!20,linecolor=DarkCyan]{todonotes}
-\usepackage{varwidth}
-\usepackage[colorlinks,linkcolor = purple, %%修改此处为你想要的颜色
+\graphicspath{{inner_pics/}{inner_pics/titleimages/}{figures/}{figure/}{pictures/}{picture/}{pic/}{pics/}{image/}{images/}}
+% \RequirePackage[physics]{stys/physicx}
+% \RequirePackage{stys/Symbols}
+\RequirePackage{extarrows}
+\usetikzlibrary{tikzmark}
+% \arrowname{super-script}
+% \arrowname[sub-script]{super-script}
+\RequirePackage{appendix} % 附录
+% \RequirePackage{stys/symbols}
+%
+\RequirePackage{amssymb,amsfonts,upgreek}
+\RequirePackage{makeidx}
+\RequirePackage{etoolbox} % 判断函数
+\RequirePackage{paracol}
+\RequirePackage{tikz-cd}
+\RequirePackage{imakeidx}
+\RequirePackage{anyfontsize}
+\RequirePackage{calc}
+\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, %%修改此处为你想要的颜色
@@ -118,12 +126,12 @@
]{hyperref}
\setcounter{tocdepth}{3}
\setcounter{secnumdepth}{3}%增加编号深度
-\usepackage{dashrule}
+\RequirePackage{dashrule}
\newlength\outermarginwidth
\setlength\outermarginwidth{1.5cm}
\newlength\covershift
\setlength\covershift{5cm}
-\usepackage{caption}
+\RequirePackage{caption}
% 图注与表注格式
\colorlet{captioncolor}{outermarginfgcolor} % 图片和表格题注文字颜色
\makeatletter
@@ -134,29 +142,23 @@
\newcommand\presslogo[1]{\def\@presslogo{#1}}
\newcommand\pressname[1]{\def\@pressname{#1}}
\newcommand\coverimage[1]{\def\@coverimage{#1}}
-\newcommand\chapoddimage[1]{\def\@chapoddimage{#1}}
-\newcommand\chapevenimage[1]{\def\@chapevenimage{#1}}
+\newcommand\chapimage[1]{\def\@chapimage{#1}}
%%----------------------------------封面信息定义--------------------------------------------------------%%
\makeatother
-\usepackage{indentfirst}
-\usepackage{physics}
-\definecolor{nuanbai}{HTML}{f5f5f5} % F5F5F5
-\pagecolor{nuanbai}
-\usepackage{amsmath}
-\usepackage{zhlipsum}
-\setmainfont{XITS}
-\usepackage[left=2cm,right=2cm,top=.6cm,bottom=2.2cm]{geometry}
-\usepackage{xpatch}%修正章节编号
-\usepackage[automark]{scrlayer-scrpage}%页面设置宏包,隶属于koma-script文档类
-\usepackage{fontawesome5}
-\usepackage{mathrsfs}
-\usepackage[most]{tcolorbox}
+\RequirePackage{indentfirst}
+\RequirePackage{amsmath}
+\RequirePackage[left=2cm,right=2cm,top=.6cm,bottom=2.2cm]{geometry}
+\RequirePackage{xpatch}%修正章节编号
+\RequirePackage[automark]{scrlayer-scrpage}%页面设置宏包,隶属于koma-script文档类
+\RequirePackage{fontawesome5}
+\RequirePackage{mathrsfs}
+\RequirePackage[most]{tcolorbox}
\tcbuselibrary{breakable, skins,theorems}%TcolorBox Library
-\usepackage{tabularx}
-\usepackage{lastpage}
-%\usepackage{twemojis}
-\usepackage{ninecolors}
-\usepackage{colortbl} %彩色表格
+\RequirePackage{tabularx}
+\RequirePackage{lastpage}
+%\RequirePackage{twemojis}
+\RequirePackage{ninecolors}
+\RequirePackage{colortbl} %彩色表格
\RequirePackage{tabularray}
\UseTblrLibrary{amsmath}
% 定义 +array, +matrix, +bmatrix, +Bmatrix, +pmatrix, +vmatrix, +Vmatrix 和 +cases 环境。其
@@ -166,19 +168,19 @@
\UseTblrLibrary{booktabs} % 定义 \toprule、 \midrule、\bottomrule 和 \cmidrule 命令,这些命令可以直接用于 tblr环境中
\UseTblrLibrary{diagbox} % 在tblr 环境中使用 \diagbox 和\diagboxthree 命令排版斜线表头
\UseTblrLibrary{varwidth} % 为表格添加 measure 内部参数。当设置了 measure=vbox 后,则会使用 \vbox 测量单元格宽度。%可以使用stretch=-1 移除列表环境上下的间距, 注意,stretch=-1 选项也会移除单元格中的支架
-\usepackage{pgfornament}
-\usepackage{zhnumber}
-\usepackage{dashrule}
-\usepackage{adjustbox}
-\usepackage{enumitem}
-\usepackage{multicol}
-\usepackage{amsthm}
+\RequirePackage{pgfornament}
+\RequirePackage{zhnumber}
+\RequirePackage{dashrule}
+\RequirePackage{adjustbox}
+\RequirePackage{enumitem}
+\RequirePackage{multicol}
+\RequirePackage{amsthm}
\RequirePackage{thmtools,thm-restate}%定理环境 %定理的重写
-\usepackage{bclogo}
-\usepackage{ulem}
+\RequirePackage{bclogo}
+\RequirePackage[normalem]{ulem}
\RequirePackage{pgfplots} %画图 %%页面样式设计核心包 %提供\pgfonlayer命令以及下列图层指令
\pgfplotsset{compat=1.18}
-\usepackage{graphicx}%修正minipage顶部对齐问题
+\RequirePackage{graphicx}%修正minipage顶部对齐问题
\pgfdeclarelayer{background} %背景%底层
\pgfdeclarelayer{foreground} %上层
\pgfdeclarelayer{top} %顶部
@@ -185,7 +187,39 @@
\pgfdeclarelayer{bottom} %底部
\pgfsetlayers{bottom,background,main,foreground,top}
\newcommand{\tikzoverlay}[1]{\begin{tikzpicture}[remember picture,overlay] #1 \end{tikzpicture}}
-\usepackage[explicit]{titlesec}
+\RequirePackage[explicit]{titlesec}
+\RequirePackage{titletoc}
+
+\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},%下
+]{% left hand side % adjust from this side
+\thecontentslabel
+}{% right hand side
+#1 \hfill \bfseries\sffamily\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},%下
+]
+\tcblower #1\hfill \bfseries\sffamily\thecontentspage
+\end{tcolorbox}
+}
+
+\titlecontents{chapter}[0mm]
+ {\addvspace{-.5em}}
+ {\contentsmargin{0pt}\boxednum}
+ {\contentsmargin{0pt}\boxednonum}
+ {}
+ [\addvspace{-.5em}]
+
% tcolorbox中插入图片或者tikz绘图方法
\newcommand\Figure[4]{%
\begin{center}
@@ -231,58 +265,101 @@
anchor=west,] {$#1$ ~ #2} (\linewidth,0);
\end{tikzpicture}\bigskip\smallskip
}
-\usepackage{extarrows}
+\RequirePackage{extarrows}
\newcommand{\R}{\mathbb{R}}
\newcommand{\F}{\mathcal{F}}
\newcommand{\lan}[1]{\langle #1 \rangle}
\newenvironment{eq}[1]{\begin{equation}\begin{aligned}#1}{\end{aligned}\end{equation}} %有编号
\newenvironment{eq*}[1]{\begin{equation*}\begin{aligned}#1}{\end{aligned}\end{equation*}} %无编号
-\everymath{\displaystyle}
+% \everymath{\displaystyle}
%% -------- 章节样式
\makeatletter
+% titleimage
+\ExplSyntaxOn
+\seq_new:N \g__Beautybook_chapter_oimage_seq % odd
+\seq_new:N \g__Beautybook_chapter_eimage_seq % even
+\seq_new:N \g__Beautybook_part_oimage_seq % odd
+\seq_new:N \g__Beautybook_part_eimage_seq % even
+%
+\keys_define:nn { Beautybook/titleimage }
+ {
+ chapteroddimage .code:n =
+ \seq_gset_from_clist:Nn \g__Beautybook_chapter_oimage_seq {#1} ,
+ chapterevenimage .code:n =
+ \seq_gset_from_clist:Nn \g__Beautybook_chapter_eimage_seq {#1} ,
+ partoddimage .code:n =
+ \seq_gset_from_clist:Nn \g__Beautybook_part_oimage_seq {#1} ,
+ partevenimage .code:n =
+ \seq_gset_from_clist:Nn \g__Beautybook_part_eimage_seq {#1} ,
+ }
+\cs_new:Npn \__Beautybook_title_image:Nn #1#2 % image seq, number
+ { \seq_item:Nn #1 { \int_mod:nn {#2} { \seq_count:N #1 } + 1 } } %对照表-对录入的字符串进行编号
+\cs_new:Npn \Beautybook at chapterimagename %生成索契表 : 判断奇偶数页并按(章节编号)!!读取相应的列表组中的字符串
+ {
+ \int_if_odd:nTF { \value{page} }
+ { \__Beautybook_title_image:Nn \g__Beautybook_chapter_oimage_seq { \value{chapter} } }
+ { \__Beautybook_title_image:Nn \g__Beautybook_chapter_eimage_seq { \value{chapter} } }
+ }
+\cs_new:Npn \Beautybook at partimagename
+ {
+ \int_if_odd:nTF { \value{page} }
+ { \__Beautybook_title_image:Nn \g__Beautybook_part_oimage_seq { \value{part} } }
+ { \__Beautybook_title_image:Nn \g__Beautybook_part_eimage_seq { \value{part} } }
+ }
+\cs_new_protected:Npn \titleimage #1
+ { \keys_set:nn { Beautybook/titleimage } {#1} }
+\ExplSyntaxOff
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\titleformat{\chapter}{\huge\bfseries\filcenter}{}{1em}{
\makebox[0pt][l]{\def\rad{7pt}%
\begin{tikzpicture}[remember picture, overlay]%
\begin{pgfonlayer}{bottom}
- \shade[left color=outermarginbgcolor!20,middle color=outermarginbgcolor!50,right color=outermarginfgcolor!20] (current page.north west) rectangle ++(\paperwidth,-.2\paperheight); % background
+ \ifodd\value{page}
+ \shade[right color=outermarginbgcolor!30,middle color=outermarginbgcolor!50,left color=outermarginfgcolor!30] (current page.north west) rectangle ++(\paperwidth,-.2\paperheight+0.3cm); % background odd
+ \else
+ \shade[left color=outermarginbgcolor!30,middle color=outermarginbgcolor!50,right color=outermarginfgcolor!30] (current page.north west) rectangle ++(\paperwidth,-.2\paperheight+0.3cm); % background even
+ \fi
\fill[outermarginfgcolor,opacity=.5]([shift={(0,-4.45cm)}]current page.north west) rectangle ++(\paperwidth,-2mm); % line
\end{pgfonlayer}
\path[fill=outermarginfgcolor]node[append after command={
([xshift=-3*\rad]chapinfoofpart.north west) to[out=0,in=-180,looseness=1] ([xshift=\rad]chapinfoofpart.south west) --([xshift=-\rad]chapinfoofpart.south east) to[out=0,in=180,looseness=1] ([xshift=3*\rad]chapinfoofpart.north east) --cycle},
- text=white,font=\large\bfseries,align=center,minimum height=1cm] (chapinfoofpart) at ([shift={(.6\linewidth,-4.95cm)}]current page.north west) {Part\ \thepart};
+ text=white,font=\sffamily\large\bfseries,align=center,minimum height=1cm] (chapinfoofpart) at ([shift={(.6\linewidth,-4.95cm)}]current page.north west) {Part\ \thepart};
\begin{pgfonlayer}{bottom}
\fill[outermarginfgcolor!90,opacity=0.5] ([shift={(-3*\rad,0)}]chapinfoofpart.north west) to[out=180,in=0,looseness=1] +(-4*\rad,-1.2cm)--([shift={(7*\rad,-1.2cm)}]chapinfoofpart.north east) to[out=-180,in=0,looseness=1] +(-4*\rad,1.2cm); % partnumber shade
\end{pgfonlayer}
\ifodd\value{page}
\begin{pgfonlayer}{top}
- \fill[outermarginfgcolor,opacity=0.8,rounded corners=5pt]node[append after command={([yshift=2cm]chapnum.north west) rectangle (chapnum.south east)},right,text=white,minimum width=2cm,align=center,font=\bf] (chapnum) at ([shift={(2cm,-2.5cm)}]current page.north west) {\scalebox{3}{\thechapter}};
- % \pattern[pattern=sixpointed stars,pattern color=outermarginfgcolor!50,opacity=0.8]
- % ([yshift=2cm]chapnum.north west) rectangle (chapnum.south east);
+ \fill[outermarginfgcolor,opacity=0.7,rounded corners=5pt]node[append after command={([yshift=2cm]chapnum.north west) rectangle (chapnum.south east)},right,text=white,minimum width=2cm,align=center,font=\sffamily\bfseries] (chapnum) at ([shift={(1.5cm,-2.5cm)}]current page.north west) {\scalebox{3}{\thechapter}};
+ \begin{pgfonlayer}{foreground}
+ \pattern[pattern=sixpointed stars,pattern color=white,opacity=1.0,rounded corners=5pt]
+ ([yshift=2cm]chapnum.north west) rectangle (chapnum.south east);
+ \end{pgfonlayer}
\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=\sc\fontsize{22pt}{22pt}\selectfont,align=center] (contents name) at ([shift={(0cm,-4.45cm)}]current page.north east) {\begin{varwidth}{.7\linewidth}\baselineskip=2ex #1\end{varwidth}};
\end{pgfonlayer}
\begin{pgfonlayer}{bottom}
- \node[right] (image) at ([shift={(-0.5cm,-2.8cm)}]current page.north west) {\includegraphics[width=7cm]{\@chapoddimage}};
+ \node[right] (image) at ([shift={(-0.5cm,-2.8cm)}]current page.north west) {\includegraphics[width=7cm]{\@chapimage}};
\end{pgfonlayer}
- \node[above left,font=\fontsize{15}{15}\selectfont,circle,fill=outermarginfgcolor,text=white,inner sep=1mm] (pagenumber) at ([shift={(-5mm,5mm)}]current page.south east) {\thepage};
\else
\begin{pgfonlayer}{top}
- \fill[outermarginfgcolor,opacity=0.8,rounded corners=5pt]node[append after command={([yshift=2cm]chapnum.north west) rectangle (chapnum.south east)},left,text=white,minimum width=2cm,align=center,font=\bf] (chapnum) at ([shift={(-2.0cm,-2.5cm)}]current page.north east) {\scalebox{3}{\thechapter}};
- % \pattern[pattern=sixpointed stars,pattern color=outermarginfgcolor!50,opacity=0.8]
- % ([yshift=2cm]chapnum.north west) rectangle (chapnum.south east);
+ \fill[outermarginfgcolor,opacity=0.7,rounded corners=5pt]node[append after command={([yshift=2cm]chapnum.north west) rectangle (chapnum.south east)},left,text=white,minimum width=2cm,align=center,font=\sffamily\bfseries] (chapnum) at ([shift={(-1.5cm,-2.5cm)}]current page.north east) {\scalebox{3}{\thechapter}};
+ \begin{pgfonlayer}{foreground}
+ \pattern[pattern=sixpointed stars,pattern color=white,opacity=1.0,rounded corners=5pt]
+ ([yshift=2cm]chapnum.north west) rectangle (chapnum.south east);
+ \end{pgfonlayer}
\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=\sc\fontsize{22pt}{22pt}\selectfont,align=center] (contents name) at ([shift={(0cm,-4.45cm)}]current page.north west) {\begin{varwidth}{.7\linewidth}\baselineskip=2ex #1\end{varwidth}};
\end{pgfonlayer}
\begin{pgfonlayer}{background}
- \node[left] (image) at ([shift={(0.5cm,-2.8cm)}]current page.north east) {\includegraphics[width=7cm]{\@chapevenimage}};
+ \node[left] (image) at ([shift={(0.5cm,-2.8cm)}]current page.north east) {\includegraphics[width=7cm]{\@chapimage}};
\end{pgfonlayer}
- \node[above right,font=\fontsize{15}{15}\selectfont,circle,fill=outermarginfgcolor,text=white,inner sep=1mm] (pagenumber) at ([shift={(5mm,5mm)}]current page.south west) {\thepage};
\fi
- \fill[outermarginfgcolor,rounded corners=2pt]
- (current page.south west) -- ++(1.5mm,1.5mm) --++(\paperwidth-3mm,0mm)--++(1.5mm,-1.5mm)--cycle;
+ \path[fill=outermarginbgcolor]node[append after command={
+ ([xshift=-2*\rad]pagenumber.south west) to[out=0,in=180,looseness=1] ([xshift=\rad]pagenumber.north west) --([xshift=-\rad]pagenumber.north east) to[out=0,in=-180,looseness=1] ([xshift=2*\rad]pagenumber.south east) --cycle},
+ text=outermarginfgcolor,font=\sffamily\fontsize{15}{15}\selectfont\bfseries,align=center,minimum height=0.4cm,minimum width=1.3cm,inner sep=1.5mm] (pagenumber) at ([shift={(0,0.3cm)}]current page.south) {\thepage};
\end{tikzpicture}}
}
\titleformat{name=\chapter,numberless}{\bfseries\huge\filcenter}{}{1em}{
@@ -289,33 +366,38 @@
\makebox[0pt][l]{\def\rad{7pt}%
\begin{tikzpicture}[remember picture, overlay]%
\begin{pgfonlayer}{bottom}
- \shade[left color=outermarginbgcolor!20,middle color=outermarginbgcolor!50,right color=outermarginfgcolor!20] (current page.north west) rectangle ++(\paperwidth,-.2\paperheight); % background
+ \ifodd\value{page}
+ \shade[right color=outermarginbgcolor!30,middle color=outermarginbgcolor!50,left color=outermarginfgcolor!30] (current page.north west) rectangle ++(\paperwidth,-.2\paperheight); % background odd
+ \else
+ \shade[left color=outermarginbgcolor!30,middle color=outermarginbgcolor!50,right color=outermarginfgcolor!30] (current page.north west) rectangle ++(\paperwidth,-.2\paperheight); % background even
+ \fi
\fill[outermarginfgcolor,opacity=.5]([shift={(0,-4.45cm)}]current page.north west) rectangle ++(\paperwidth,-2mm); % line
\end{pgfonlayer}
\ifodd\value{page}
\begin{pgfonlayer}{top}
- \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=\sc\fontsize{25pt}{25pt}\selectfont,align=center] (contents name) at ([shift={(0cm,-4.45cm)}]current page.north east) {\begin{varwidth}{.7\linewidth}\baselineskip=2ex #1\end{varwidth}};
\end{pgfonlayer}
\begin{pgfonlayer}{bottom}
- \node[right] (image) at ([shift={(-0.5cm,-2.8cm)}]current page.north west) {\includegraphics[width=7cm]{\@chapoddimage}};
+ \node[right] (image) at ([shift={(-0.5cm,-2.8cm)}]current page.north west) {\includegraphics[width=7cm]{\@chapimage}};
\end{pgfonlayer}
- \node[above left,font=\fontsize{15}{15}\selectfont,circle,fill=outermarginfgcolor,text=white,inner sep=1mm] (pagenumber) at ([shift={(-5mm,5mm)}]current page.south east) {\thepage};
\else
\begin{pgfonlayer}{top}
- \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=\sc\fontsize{25pt}{25pt}\selectfont,align=center] (contents name) at ([shift={(0cm,-4.45cm)}]current page.north west) {\begin{varwidth}{.7\linewidth}\baselineskip=2ex #1\end{varwidth}};
\end{pgfonlayer}
\begin{pgfonlayer}{background}
- \node[left] (image) at ([shift={(0.5cm,-2.8cm)}]current page.north east) {\includegraphics[width=7cm]{\@chapevenimage}};
+ \node[left] (image) at ([shift={(0.5cm,-2.8cm)}]current page.north east) {\includegraphics[width=7cm]{\@chapimage}};
\end{pgfonlayer}
- \node[above right,font=\fontsize{15}{15}\selectfont,circle,fill=outermarginfgcolor,text=white,inner sep=1mm] (pagenumber) at ([shift={(5mm,5mm)}]current page.south west) {\thepage};
\fi
- \fill[outermarginfgcolor,rounded corners=2pt]
- (current page.south west) -- ++(1.5mm,1.5mm) --++(\paperwidth-3mm,0mm)--++(1.5mm,-1.5mm)--cycle;
+ \path[fill=outermarginbgcolor]node[append after command={
+ ([xshift=-2*\rad]pagenumber.south west) to[out=0,in=180,looseness=1] ([xshift=\rad]pagenumber.north west) --([xshift=-\rad]pagenumber.north east) to[out=0,in=-180,looseness=1] ([xshift=2*\rad]pagenumber.south east) --cycle},
+ text=outermarginfgcolor,font=\sffamily\fontsize{15}{15}\selectfont\bfseries,align=center,minimum height=0.4cm,minimum width=1.3cm,inner sep=1.5mm] (pagenumber) at ([shift={(0,0.3cm)}]current page.south) {\thepage};
\end{tikzpicture}}
}
-\titlespacing{\chapter}{0pt}{0pt}{65pt}
+\titlespacing{\chapter}{0pt}{0pt}{70pt}
\makeatother
% -------- Part定制
+\tikzfading[name=middle, top color=transparent!90, bottom
+color=transparent!90, middle color=transparent!20]
\makeatletter
\newcommand\partabstract[1]{\def\@partabstract{#1}}
\newcommand\partimage[1]{\def\@partimage{#1}}
@@ -328,8 +410,19 @@
\fill[outermarginbgcolor,opacity=0.6]
(current page.north west) rectangle (current page.south east);
\ifodd\value{page}
- \fill[outermarginfgcolor]
- (current page.north east) rectangle ++(-\barwidth,-\paperheight);
+ \fill [outermarginfgcolor!20]%
+ (current page.north east) rectangle ++(-\outermarginwidth,-\paperheight);
+ \pattern [pattern=north east lines,pattern color=outermarginfgcolor!50]%
+ (current page.north east) rectangle ++(-\outermarginwidth,-\paperheight);
+ \fill [outermarginbgcolor!90,path fading=fade south]%
+ ([yshift=1mm]current page.north east) rectangle ++(-\outermarginwidth,-.8\paperheight);
+ \fill [outermarginbgcolor,path fading=fade north]%
+ (current page.south east) rectangle ++(-\outermarginwidth,.8\paperheight);%
+ % lines
+ \fill[outermarginfgcolor,rounded corners=2pt] (current page.north east) --++(-5pt,-0.15cm)--++(-\outermarginwidth+10pt,0) --++(-5pt,0.15cm)--cycle;
+ \coordinate (anchor of headmark) at ([shift={(-1.2\outermarginwidth,-0.2cm)}]current page.north east);
+ \node[below ,text=outermarginfgcolor,font=\sffamily\bfseries\fontsize{15}{20}\selectfont] (partpagenum) at ([shift={(-.5\outermarginwidth,0)}]current page.north east) {\thepage};
+ \fill[outermarginfgcolor,rounded corners=2pt] (current page.south east) --++(-5pt,0.15cm)--++(-\outermarginwidth+10pt,0) --++(-5pt,-0.15cm)--cycle; % 页码横线
\node[] (hbar) at ($(current page.north)!0.33!(current page.south)$) {
\begin{tikzpicture}
\fill[white]
@@ -344,15 +437,25 @@
(.67\paperwidth+4.4cm,-.25cm) rectangle ++(1mm,-.5cm);
\end{tikzpicture}
};
- \node[above,font=\sffamily\huge,shift={(.33\linewidth,.5\barwidth)}] (partname) at (hbar) {第\,\zhnumber{\arabic{part}}\,部\,分};
- \node[below,left,font=\bfseries\huge,shift={(.146\linewidth,-1.5*\barwidth)}] (partcontents) at (partname) {\begin{varwidth}{.8\linewidth}\raggedright\baselineskip=2.8ex #1 \end{varwidth}}; % 标题名称
+ \node[above,font=\sc\huge,shift={(.33\linewidth,.5\barwidth)}] (partname) at (hbar) {Part\ \thepart};
+ \node[below,left,font=\sc\huge,shift={(.146\linewidth,-1.5*\barwidth)}] (partcontents) at (partname) {\begin{varwidth}{.8\linewidth}\raggedright\baselineskip=2ex #1 \end{varwidth}}; % 标题名称
\begin{pgfonlayer}{background}
- \node[above,shift={(-.4\linewidth,-4*\barwidth)},opacity=0.8] at (partname) {\ifdefvoid{\@partimage}{}{\includegraphics[width=1.2\linewidth]{\@partimage}}}; % 图片位置调整
+ \node[above,shift={(-.4\linewidth,-4*\barwidth)}] at (partname) {\ifdefvoid{\@partimage}{}{\includegraphics[width=1.2\linewidth]{\@partimage}}}; % 图片位置调整
\end{pgfonlayer}
- \node[above right,font=\fontsize{15}{15}\selectfont,circle,fill=outermarginfgcolor,text=white,inner sep=1mm] (pagenumber) at ([shift={(5mm,5mm)}]current page.south west) {\thepage};
\else
- \fill[outermarginfgcolor]
- (current page.north west) rectangle ++(\barwidth,-\paperheight);
+ \fill [outermarginfgcolor!20]%
+ (current page.north west) rectangle ++(\outermarginwidth,-\paperheight);
+ \pattern [pattern=north west lines,pattern color=outermarginfgcolor!50]%
+ (current page.north west) rectangle ++(\outermarginwidth,-\paperheight);
+ \fill [outermarginbgcolor!90,path fading=fade south]%
+ ([yshift=1mm]current page.north west) rectangle ++(\outermarginwidth,-.8\paperheight);
+ \fill [outermarginbgcolor,path fading=fade north]%
+ (current page.south west) rectangle ++(\outermarginwidth,.8\paperheight);%
+ % lines
+ \fill[outermarginfgcolor,rounded corners=2pt] (current page.north west) --++(5pt,-0.15cm)--++(\outermarginwidth-10pt,0) --++(5pt,0.15cm)--cycle;
+ \coordinate (anchor of headmark) at ([shift={(1.2\outermarginwidth,-0.2cm)}]current page.north west);
+ \node[below ,text=outermarginfgcolor,font=\sffamily\bfseries\fontsize{15}{20}\selectfont] (partpagenum) at ([shift={(.5\outermarginwidth,0)}]current page.north west) {\thepage};
+ \fill[outermarginfgcolor,rounded corners=2pt] (current page.south west) --++(5pt,0.15cm)--++(\outermarginwidth-10pt,0) --++(5pt,-0.15cm)--cycle; % 页码横线
\node[] (hbar) at ($(current page.north)!0.33!(current page.south)$) {
\begin{tikzpicture}
\fill[white]
@@ -367,12 +470,11 @@
(.15\paperwidth+4.5cm,-.25cm) rectangle ++(1mm,-.5cm);
\end{tikzpicture}
};
- \node[above,font=\sffamily\huge,shift={(-.31\linewidth,.5\barwidth)}] (partname) at (hbar) {第\,\zhnumber{\arabic{part}}\,部\,分};
- \node[below right,font=\bfseries\huge,shift={(-.125\linewidth,-1.2*\barwidth)}] (partcontents) at (partname) {\begin{varwidth}{.8\linewidth}\raggedright\baselineskip=2.8ex #1 \end{varwidth}}; % 标题名称
+ \node[above,font=\sc\huge,shift={(-.31\linewidth,.5\barwidth)}] (partname) at (hbar) {Part\ \thepart};
+ \node[below right,font=\sc\huge,shift={(-.125\linewidth,-1.2*\barwidth)}] (partcontents) at (partname) {\begin{varwidth}{.8\linewidth}\raggedright\baselineskip=2ex #1 \end{varwidth}}; % 标题名称
\begin{pgfonlayer}{background}
- \node[above,shift={(.4\linewidth,-4*\barwidth)},opacity=0.8] at (partname) {\ifdefvoid{\@partimage}{}{\includegraphics[width=1.2\linewidth]{\@partimage}}}; % 图片位置调整
+ \node[above,shift={(.35\linewidth,-4*\barwidth)}] at (partname) {\ifdefvoid{\@partimage}{}{\includegraphics[width=1.2\linewidth]{\@partimage}}}; % 图片位置调整
\end{pgfonlayer}
- \node[above left,font=\fontsize{15}{15}\selectfont,circle,fill=outermarginfgcolor,text=white,inner sep=1mm] (pagenumber) at ([shift={(-5mm,5mm)}]current page.south east) {\thepage};
\fi
\node[below,,font=\itshape\fontsize{13}{13}\selectfont,shift={(0\linewidth,-1.65*\barwidth)}] at (hbar) {\ifdefvoid{\@partabstract}{}{\begin{varwidth}{.85\linewidth}\baselineskip=3ex \@partabstract\end{varwidth}}}; % 简介文字调整
\end{tikzpicture}}
@@ -379,7 +481,9 @@
\makeatother
\assignpagestyle{\part}{empty}
\assignpagestyle{\chapter}{empty}
-%% -- Section
+
+
+%% -- Section
\titleformat{\section}
{}
{}
@@ -386,22 +490,33 @@
{-.5em} %左右移动\thesection标签位置
{\mysectionformat{#1}}
+\titleformat{name=\section,numberless}{}{}{-.5em}{\mysectionnonumformat{#1}}
+
\newcommand{\mysectionformat}[1]{%
\makebox[0pt][l]{\def\rad{7pt}%
\begin{tikzpicture}[remember picture]
\path[fill=outermarginfgcolor,drop shadow={opacity=0.3,shadow xshift=.05cm,shadow yshift=-.05cm}]node[append after command={
([xshift=\rad]sec.north west) to[out=180,in=0,looseness=1] ([xshift=-3*\rad]sec.south west) --([xshift=-\rad]sec.south east) to[out=0,in=180,looseness=1] ([xshift=3*\rad]sec.north east) --cycle},
- text=white,font=\rmfamily\large\bfseries,align=center,inner ysep=2mm] (sec) at (0,0) {Sec\ \thesection};
- \draw[outermarginbgcolor,line width=0.5pt] (sec.north east)--++(.8\linewidth,0);
- \node[text=black,font=\rmfamily\bfseries\Large,below right] (secnum) at ([shift={(0,0mm)}]sec.north east) {\begin{varwidth}{.85\linewidth}\setlength\baselineskip{22.5pt}\hspace{.5cm}#1\end{varwidth}};
+ text=white,font=\sffamily\large\bfseries,align=center,inner ysep=2mm] (sec) at (0,0) {Sec\ \thesection};
+ \node[text=black,font=\large,below right] (secnum) at ([shift={(0,-1mm)}]sec.north east) {\begin{varwidth}{.85\linewidth}\setlength\baselineskip{18pt}\hspace{.5cm}#1\end{varwidth}};
\end{tikzpicture}}}%最后一个选项为 [<after code>]
+
+\newcommand{\mysectionnonumformat}[1]{%
+\makebox[0pt][l]{\def\rad{7pt}%
+\begin{tikzpicture}[remember picture]
+ \path[fill=outermarginfgcolor,drop shadow={opacity=0.3,shadow xshift=.05cm,shadow yshift=-.05cm}]node[append after command={
+ ([xshift=\rad]sec.north west) to[out=180,in=0,looseness=1] ([xshift=-3*\rad]sec.south west) --([xshift=-\rad]sec.south east) to[out=0,in=180,looseness=1] ([xshift=3*\rad]sec.north east) --cycle},
+ text=white,font=\sffamily\large\bfseries,align=center,inner ysep=2mm] (sec) at (0,0) {Sec};
+ \node[text=black,font=\large,below right] (secnum) at ([shift={(0,-1mm)}]sec.north east) {\begin{varwidth}{.85\linewidth}\setlength\baselineskip{18pt}\hspace{.5cm}#1\end{varwidth}};
+\end{tikzpicture}}}%最后一个选项为 [<after code>]
+
\titlespacing*{\section}{0pt}{3.5ex plus 1ex minus .2ex}{2.3ex plus .2ex}
-% 侧边条
+
+%%-------------------------------- SCRLAYER-SCRPAGE -------------------------------------%%
+%% SIDE-BAR
\newlength\chapternumbersize
-\setlength\chapternumbersize{40pt}
+\setlength\chapternumbersize{36pt}
\setlength{\headheight}{40pt} % 页眉高度
-\usepackage{xpatch}
-\usepackage{scrlayer-scrpage}
\renewcommand\chaptermarkformat{}
% define a new mark for the chapter number
\newmarks\chapternum
@@ -415,28 +530,30 @@
\ifodd\value{page}
\fill[outermarginfgcolor,rounded corners=2pt] (current page.north east) --++(-5pt,-0.15cm)--++(-\outermarginwidth+10pt,0) --++(-5pt,0.15cm)--cycle;
\coordinate (anchor of headmark) at ([shift={(-1.2\outermarginwidth,-0.2cm)}]current page.north east);
- \node[below ,text=outermarginfgcolor,font=\bfseries\fontsize{20}{20}\selectfont] at ([shift={(-.5\outermarginwidth,-0.2cm)}]current page.north east) {\thepage};
- \node[below left,font=\upshape,text=outermarginfgcolor] at (anchor of headmark) {\begin{varwidth}{\linewidth}\rightmark\end{varwidth}};
- \fill[outermarginfgcolor,rounded corners=2pt] (current page.south east) --++(-5pt,0.15cm)--++(-\outermarginwidth+10pt,0) --++(-5pt,-0.15cm)--cycle;
+ \node[below ,text=outermarginfgcolor,font=\sffamily\bfseries\fontsize{15}{15}\selectfont] at ([shift={(-.5\outermarginwidth,-0.15cm)}]current page.north east) {\thepage};
+ \fill[outermarginfgcolor!50,rounded corners=1pt] ([shift={(0.2\outermarginwidth,0.2cm)}]anchor of headmark) --++(-5pt,-0.15cm)--++(-.45\linewidth,0) --++(-5pt,0.15cm)--cycle; % 页眉横线
+ \node[below left,font=\upshape,text=outermarginfgcolor] at ([yshift=0.05cm]anchor of headmark) {\begin{varwidth}{\linewidth}\rightmark\end{varwidth}};
+ \fill[outermarginfgcolor,rounded corners=2pt] (current page.south east) --++(-5pt,0.15cm)--++(-\outermarginwidth+10pt,0) --++(-5pt,-0.15cm)--cycle; % 页码横线
\else
\fill[outermarginfgcolor,rounded corners=2pt] (current page.north west) --++(5pt,-0.15cm)--++(\outermarginwidth-10pt,0) --++(5pt,0.15cm)--cycle;
\coordinate (anchor of headmark) at ([shift={(1.2\outermarginwidth,-0.2cm)}]current page.north west);
- \node[below ,text=outermarginfgcolor,font=\bfseries\fontsize{20}{20}\selectfont] at ([shift={(.5\outermarginwidth,-0.2cm)}]current page.north west) {\thepage};
- \node[below right,font=\upshape,text=outermarginfgcolor] at (anchor of headmark) {\begin{varwidth}{\linewidth}\rightmark\end{varwidth}};
- \fill[outermarginfgcolor,rounded corners=2pt] (current page.south west) --++(5pt,0.15cm)--++(\outermarginwidth-10pt,0) --++(5pt,-0.15cm)--cycle;
+ \node[below ,text=outermarginfgcolor,font=\sffamily\bfseries\fontsize{15}{15}\selectfont] at ([shift={(.5\outermarginwidth,-0.15cm)}]current page.north west) {\thepage};
+ \fill[outermarginfgcolor!50,rounded corners=1pt] ([shift={(-0.2\outermarginwidth,0.2cm)}]anchor of headmark) --++(5pt,-0.15cm)--++(.45\linewidth,0) --++(5pt,0.15cm)--cycle; % 页眉横线
+ \node[below right,font=\upshape,text=outermarginfgcolor] at ([yshift=0.05cm]anchor of headmark) {\begin{varwidth}{\linewidth}\rightmark\end{varwidth}};
+ \fill[outermarginfgcolor,rounded corners=2pt] (current page.south west) --++(5pt,0.15cm)--++(\outermarginwidth-10pt,0) --++(5pt,-0.15cm)--cycle; % 页码横线
\fi
\end{pgfonlayer}}
}
\newlength\baryshift
-\setlength\baryshift{-2.5\outermarginwidth}
+\setlength\baryshift{-2.5\outermarginwidth}
\makeatletter
% Add A Side-Bar Box For The Chapter Number
\newcommand*\outermarginchapternumberbox{%
\if at mainmatter
\tikzoverlay{
- \shade[top color=outermarginfgcolor!90,bottom color=outermarginbgcolor]
- (\outermarginwidth,-.5\outermarginwidth) rectangle (0,-1.5\outermarginwidth);
- \node[anchor=center,text=white,font=\bfseries] at (1/2*\outermarginwidth,-\outermarginwidth) {\usekomafont{chapternumber}{\botmarks\chapternum}};%
+ \shade[top color=outermarginfgcolor!90,bottom color=outermarginbgcolor]
+ (\outermarginwidth,-.5\outermarginwidth+2mm) rectangle (0,-1.5\outermarginwidth+2mm);
+ \node[anchor=center,text=white,font=\sffamily\bfseries] at (1/2*\outermarginwidth,-\outermarginwidth+2mm) {\usekomafont{chapternumber}{\botmarks\chapternum}};%
}
\fi
\vfill
@@ -463,7 +580,7 @@
\makeatother
%
\newkomafont{outermargin}{%页边章节名称字体
- \sffamily\bfseries\fontsize{15}{15}\selectfont\color{outermarginfgcolor}
+ \bfseries\fontsize{15}{15}\selectfont\color{outermarginfgcolor}
}
% declare new page style using layers
\DeclareNewPageStyleByLayers{scth}{%
@@ -580,11 +697,9 @@
\ohead{}
\cfoot{}
\ofoot{}
-% set the contents of the outer margin on even and odd pages for scrheadings, plain and scth
-\oddoutermargin{\bf\leftmark} % Odd 奇数页
-\makeatletter
-\evenoutermargin{\bfseries\@title} % Even 偶数页
-\makeatother
+
+%%-------------------------------- SCRLAYER-SCRPAGE -------------------------------------%%
+
%% Begin The Most Beautiful Box (STYLE : ys style) % 中国风盒子
\makeatletter
\definecolor{framegolden}{HTML}{455a64} % 控制外框颜色
@@ -625,7 +740,7 @@
([xshift=-\ys at frame@linewidth,#2]frame.south west)--cycle;}
\def\ys at frame@unbrokenouter{%
\path[draw=framegolden,fill=framegray,fill opacity=\ys at frame@fill at opacity,line width=\ys at frame@linewidth]
- ([xshift=\ys at frame@radius]frame.north west)--([xshift=-\ys at frame@radius]frame.north east)
+ ([xshift=\ys at frame@radius]frame.north west)--([xshift=-\ys at frame@radius]frame.north east)
arc(-180:-90:\ys at frame@radius)--
([yshift=-\ys at frame@radius]frame.north east)--([yshift=\ys at frame@radius]frame.south east)
arc(90:180:\ys at frame@radius)--
@@ -636,7 +751,7 @@
\def\ys at frame@firstouter{%
\ys at frame@remove at middleline{yshift=.5\ys at frame@linewidth}{yshift=.7\ys at frame@linewidth}%
\path[draw=framegolden,fill=framegray,fill opacity=\ys at frame@fill at opacity,line width=\ys at frame@linewidth]
- ([xshift=\ys at frame@radius]frame.north west)--([xshift=-\ys at frame@radius]frame.north east)
+ ([xshift=\ys at frame@radius]frame.north west)--([xshift=-\ys at frame@radius]frame.north east)
arc(-180:-90:\ys at frame@radius)--
([yshift=-\ys at frame@radius]frame.north east)--
(frame.south east)--
@@ -658,10 +773,10 @@
arc(0:90:\ys at frame@radius)--
([yshift=\ys at frame@radius]frame.south west)--
(frame.north west)--cycle;}
-%endregion
+%endregion
%region inner
\def\ys at frame@unbrokeninner{%
-\path[draw=framegolden,line width=.5\ys at frame@linewidth,line cap=round]
+\path[draw=framegolden,line width=.5\ys at frame@linewidth,line cap=round]
([xshift=\ys at frame@radius+2\ys at frame@linewidth,yshift=-\ys at frame@sep]frame.north west)
--([xshift=\ys at frame@radius+5\ys at frame@linewidth,yshift=-\ys at frame@sep]frame.north west) --++(45:2\ys at frame@linewidth)--++(-45:2\ys at frame@linewidth)
([xshift=\ys at frame@radius+6\ys at frame@linewidth,yshift=-\ys at frame@sep]frame.north west)--++(-45:2\ys at frame@linewidth)--++(45:2\ys at frame@linewidth) %第一节
@@ -691,7 +806,7 @@
([yshift=\ys at frame@radius+7.828\ys at frame@linewidth,xshift=\ys at frame@sep]frame.south west)--++(-45:2\ys at frame@linewidth)--++(-135:2\ys at frame@linewidth) %第二节
--([yshift=\ys at frame@radius+2\ys at frame@linewidth,xshift=\ys at frame@sep]frame.south west);}
\def\ys at frame@firstinner{%
- \path[draw=framegolden,line width=.5\ys at frame@linewidth,line cap=round]
+ \path[draw=framegolden,line width=.5\ys at frame@linewidth,line cap=round]
([xshift=\ys at frame@radius+2\ys at frame@linewidth,yshift=-\ys at frame@sep]frame.north west)
--([xshift=\ys at frame@radius+5\ys at frame@linewidth,yshift=-\ys at frame@sep]frame.north west) --++(45:2\ys at frame@linewidth)--++(-45:2\ys at frame@linewidth)
([xshift=\ys at frame@radius+6\ys at frame@linewidth,yshift=-\ys at frame@sep]frame.north west)--++(-45:2\ys at frame@linewidth)--++(45:2\ys at frame@linewidth) %第一节
@@ -709,11 +824,11 @@
([yshift=-\ys at frame@radius-6\ys at frame@linewidth,xshift=\ys at frame@sep]frame.north west)--++(-135:2\ys at frame@linewidth)--++(-45:2\ys at frame@linewidth) %第一节
--([xshift=\ys at frame@sep]frame.south west);}
\def\ys at frame@middleinner{%
- \path[draw=framegolden,line width=.5\ys at frame@linewidth,line cap=round]
+ \path[draw=framegolden,line width=.5\ys at frame@linewidth,line cap=round]
([xshift=-\ys at frame@sep]frame.north east)--([xshift=-\ys at frame@sep]frame.south east)
([xshift=\ys at frame@sep]frame.north west)--([xshift=\ys at frame@sep]frame.south west);}
\def\ys at frame@lastinner{%
- \path[draw=framegolden,line width=.5\ys at frame@linewidth,line cap=round]
+ \path[draw=framegolden,line width=.5\ys at frame@linewidth,line cap=round]
([xshift=-\ys at frame@sep]frame.north east)
--([yshift=\ys at frame@radius+8.828\ys at frame@linewidth,xshift=-\ys at frame@sep]frame.south east)--++(-45:2\ys at frame@linewidth)--++(-135:2\ys at frame@linewidth)
([yshift=\ys at frame@radius+7.828\ys at frame@linewidth,xshift=-\ys at frame@sep]frame.south east)--++(-135:2\ys at frame@linewidth)--++(-45:2\ys at frame@linewidth) %第二节
@@ -845,7 +960,7 @@
ys/frame style/first/.style={ys/frame/first,title hidden,segmentation code=\ys at frame@segmentation},
ys/frame style/middle/.style={ys/frame/middle,segmentation code=\ys at frame@segmentation},
ys/frame style/last/.style={ys/frame/last,segmentation code=\ys at frame@segmentation},
- ys style/.style={frame hidden,
+ ys style/.style={frame hidden,
ys/frame style/unbroken,
extras first={ys/frame style/first},
extras middle={ys/frame style/middle},
@@ -853,8 +968,8 @@
},
}
\makeatother
-\newtcolorbox{fancybox}{enhanced,ys style,breakable,pad at break=2mm,
- ys/frame/not at break,ys/frame/fill opacity=0}
+\newtcolorbox{fancybox}[1][]{enhanced,ys style,breakable,pad at break=2mm,
+ ys/frame/not at break,ys/frame/fill opacity=0,#1,fontupper=\itshape}
%% End The Most Beautiful Box
\makeatletter
\definecolor{CyaN}{HTML}{dbe1e5}
@@ -864,8 +979,8 @@
\colorlet{GreeN}{yellow!40!green}
% 第一种定理
-\tcbset{my at basic@thm/.style={enhanced jigsaw, breakable,
- enlarge left by=-3.5mm, width=\textwidth+3.5mm, boxrule=0pt,
+\tcbset{my at basic@thm/.style={enhanced jigsaw, breakable,
+ enlarge left by=-3.5mm, width=\textwidth+3.5mm, boxrule=0pt,
top=2pt, bottom=2pt, left=2.5mm, frame hidden}}
\newcommand{\@my at newtheorem@n}[1]{\ERROR}
\newcommand{\@my at newtheorem@nn}[2]{%
@@ -905,7 +1020,7 @@
}
% 存储键值 (LaTeX3)
\ExplSyntaxOn
-\cs_new_protected:Npn \mynewtheorem
+\cs_new_protected:Npn \mynewtheorem
{ \keyval_parse:NNn \@my at newtheorem@n \@my at newtheorem@nn }
\cs_new_protected:Npn \mynewtcbtheorem
{ \keyval_parse:NNn \@my at newtcbtheorem@n \@my at newtcbtheorem@nn }
@@ -916,15 +1031,15 @@
\makeatletter
%% Overlay Settings
\newcommand{\my at theorem@overlay at unbroken}[2]{
- %%============== First ==============%%
+ %%============== First ==============%%
\fill[black!60] ([xshift=1cm,yshift=5pt]frame.north west)-- ([xshift=0.8cm,yshift=0cm]frame.north west)--([xshift=1.2cm,yshift=0cm]frame.north west)--cycle;
\node[rectangle, text=white, drop shadow={opacity=.3, shadow xshift=0.1cm}, inner sep=1.5mm,fill=#2,
-anchor=west,rounded corners=3pt,font=\bfseries\normalsize] at ([xshift=0cm,yshift=-3.mm]frame.north west) {\hspace*{1.5em}#1.\ \ifdefvoid{\tcbtitletext}{}{(\tcbtitletext)}};
- \fill[color=#2,drop shadow={opacity=0.3,shadow xshift=.3pt}]
+anchor=west,rounded corners=3pt,font=\bfseries\normalsize] at ([xshift=0cm,yshift=-3.mm]frame.north west) {\hspace*{1.5em}#1.\ \ifdefvoid{\tcbtitletext}{}{(\itshape\tcbtitletext)}};
+ \fill[color=#2,drop shadow={opacity=0.3,shadow xshift=.3pt}]
([xshift=1cm,yshift=5pt]frame.north west) {[rounded corners=3pt]--++(-1cm-5pt,0)}--++(0,-1cm-5pt)--cycle;
\fill[color=black!60] ([xshift=-5pt,yshift=-1cm]frame.north west)--([xshift=0cm,yshift=-0.8cm]frame.north west)-- ([xshift=0cm,yshift=-1.2cm]frame.north west)--cycle;
- %%============== End ==============%%
- \fill[#2,drop shadow={opacity=0.3,shadow xshift=-0.008\linewidth,shadow yshift=0.0016\linewidth}]
+ %%============== End ==============%%
+ \fill[#2,drop shadow={opacity=0.3,shadow xshift=-0.008\linewidth,shadow yshift=0.0016\linewidth}]
([xshift=-0.05\linewidth,yshift=-5pt]frame.south east) {[rounded corners=3pt]--++(0.05\linewidth+5pt,0)}--++(0,0.05\linewidth+5pt)--cycle;
\fill[black!60] ([xshift=-0.05\linewidth,yshift=-5pt]frame.south east) -- ([xshift=-0.04\linewidth,yshift=0pt]frame.south east)-- ([xshift=-0.06\linewidth,yshift=0pt]frame.south east)--cycle;
\fill[black!60] ([xshift=5pt,yshift=0.05\linewidth]frame.south east)-- ([yshift=0.04\linewidth]frame.south east) -- ([yshift=0.06\linewidth]frame.south east)--cycle;
@@ -931,18 +1046,18 @@
}
\newcommand{\my at theorem@overlay at first}[2]{
\fill[black!60] ([xshift=1cm,yshift=5pt]frame.north west)-- ([xshift=0.8cm,yshift=0cm]frame.north west)--([xshift=1.2cm,yshift=0cm]frame.north west)--cycle;
- \node[rectangle, text=white, drop shadow={opacity=.3, shadow xshift=0.1cm}, inner sep=1.5mm,fill=#2, anchor=west,rounded corners=3pt,font=\bfseries\normalsize] at ([xshift=0cm,yshift=-3.mm]frame.north west) {\hspace*{1.5em}#1.\ \ifdefvoid{\tcbtitletext}{}{(\tcbtitletext)}};
- \fill[color=#2,drop shadow={opacity=0.3,shadow xshift=.3pt}]
+ \node[rectangle, text=white, drop shadow={opacity=.3, shadow xshift=0.1cm}, inner sep=1.5mm,fill=#2, anchor=west,rounded corners=3pt,font=\bfseries\normalsize] at ([xshift=0cm,yshift=-3.mm]frame.north west) {\hspace*{1.5em}#1.\ \ifdefvoid{\tcbtitletext}{}{(\itshape\tcbtitletext)}};
+ \fill[color=#2,drop shadow={opacity=0.3,shadow xshift=.3pt}]
([xshift=1cm,yshift=5pt]frame.north west) {[rounded corners=3pt]--++(-1cm-5pt,0)}--++(0,-1cm-5pt)--cycle;
\fill[color=black!60] ([xshift=-5pt,yshift=-1cm]frame.north west)--([xshift=0cm,yshift=-0.8cm]frame.north west)-- ([xshift=0cm,yshift=-1.2cm]frame.north west)--cycle;
}
\newcommand{\my at theorem@overlay at last}[1]{
- \fill[#1,drop shadow={opacity=0.3,shadow xshift=-0.008\linewidth,shadow yshift=0.0016\linewidth}]
+ \fill[#1,drop shadow={opacity=0.3,shadow xshift=-0.008\linewidth,shadow yshift=0.0016\linewidth}]
([xshift=-0.05\linewidth,yshift=-5pt]frame.south east) {[rounded corners=3pt]--++(0.05\linewidth+5pt,0)}--++(0,0.05\linewidth+5pt)--cycle;
\fill[black!60] ([xshift=-0.05\linewidth,yshift=-5pt]frame.south east) -- ([xshift=-0.04\linewidth,yshift=0pt]frame.south east)-- ([xshift=-0.06\linewidth,yshift=0pt]frame.south east)--cycle;
\fill[black!60] ([xshift=5pt,yshift=0.05\linewidth]frame.south east)-- ([yshift=0.04\linewidth]frame.south east) -- ([yshift=0.06\linewidth]frame.south east)--cycle;
}
-% Second theorem style overlay settings
+% Second theorem style overlay settings
\newcommand{\my at lemma@overlay at unbroken}[2]{
%%============== First ==============%%
\def\Rad{3.5pt}
@@ -950,19 +1065,19 @@
\def\rad{7pt}%
\path[fill=#2,drop shadow={opacity=0.3,shadow xshift=.05cm,shadow yshift=-.05cm}]node[append after command={
([xshift=-1.5*\rad]thmname.north west) to[out=0,in=180,looseness=1] ([xshift=2.5*\rad]thmname.south west) --([xshift=-\rad]thmname.south east) to[out=0,in=180,looseness=1] ([xshift=3*\rad]thmname.north east) --cycle},
- text=white,font=\bfseries,align=center,inner ysep=1.5mm,right] (thmname) at ([xshift=\rad,yshift=-\rad]frame.north west) {\hspace*{10pt}#1.\ \ifdefvoid{\tcbtitletext}{}{(\tcbtitletext)}};
+ text=white,font=\bfseries,align=center,inner ysep=1.5mm,minimum height=0.6cm,right] (thmname) at ([xshift=\rad,yshift=-.7*\rad]frame.north west) {\hspace*{10pt}#1.\ \ifdefvoid{\tcbtitletext}{}{(\itshape\tcbtitletext)}};
\begin{pgfonlayer}{bottom}
\fill[#2,opacity=0.5]
- ([xshift=-1.5*\rad]thmname.north west) to[out=-90,in=0,looseness=1.5] +(3pt,-6pt) -| +(10pt,0)--cycle;
+ ([xshift=-1.5*\rad]thmname.north west) to[out=180,in=305,looseness=1.5] +(3pt,-6pt) -| ++(12pt,0)--cycle;
\fill[#2,opacity=0.5]
([xshift=3*\rad]thmname.north east) to[out=0,in=-90] +(5pt,-5pt) -| ++(-10pt,0) --cycle;
\end{pgfonlayer}
- %%============== End ==============%%
+ %%============== End ==============%%
\def\tlen{1.5cm}
\path[fill=#2,drop shadow={opacity=0.3,shadow xshift=.3pt}]
([xshift=-2*\rad,yshift=-5pt]frame.south east) coordinate (SE) to[out=0,in=180] +(4*\rad,5pt+\theight) --([shift={(-\tlen+4*\rad,5pt+\theight)}]SE) to[out=180,in=0] +(-4*\rad,-5pt-\theight) --cycle;
\begin{pgfonlayer}{bottom}
- \fill[color=#2!80!black] ([xshift=-1.35*\tlen+\Rad,yshift=-5pt]frame.south east) to[out=180,in=90,looseness=0.7] ([xshift=-1.35*\tlen-0.5*\Rad]frame.south east) coordinate (NWl)--([xshift=2*\rad]NWl) to[out=-90,in=-180,looseness=0.7] ([xshift=-1.35*\tlen+\Rad,yshift=-5pt]frame.south east)--cycle;
+ \fill[color=#2,opacity=0.5] ([xshift=-1.35*\tlen+\Rad,yshift=-5pt]frame.south east) to[out=180,in=90,looseness=0.7] ([xshift=-1.35*\tlen-0.5*\Rad]frame.south east) coordinate (NWl)--([xshift=2*\rad]NWl) to[out=-90,in=-180,looseness=0.7] ([xshift=-1.35*\tlen+\Rad,yshift=-5pt]frame.south east)--cycle;
\end{pgfonlayer}
}
\newcommand{\my at lemma@overlay at first}[2]{
@@ -972,16 +1087,16 @@
\def\rad{7pt}%
\path[fill=#2,drop shadow={opacity=0.3,shadow xshift=.05cm,shadow yshift=-.05cm}]node[append after command={
([xshift=-1.5*\rad]thmname.north west) to[out=0,in=180,looseness=1] ([xshift=2.5*\rad]thmname.south west) --([xshift=-\rad]thmname.south east) to[out=0,in=180,looseness=1] ([xshift=3*\rad]thmname.north east) --cycle},
- text=white,font=\bfseries,align=center,inner ysep=1.5mm,minimum height=0.6cm,right] (thmname) at ([xshift=\rad,yshift=-\rad]frame.north west) {\hspace*{10pt}#1.\ \ifdefvoid{\tcbtitletext}{}{(\tcbtitletext)}};
+ text=white,font=\bfseries,align=center,inner ysep=1.5mm,minimum height=0.6cm,right] (thmname) at ([xshift=\rad,yshift=-.7*\rad]frame.north west) {\hspace*{10pt}#1.\ \ifdefvoid{\tcbtitletext}{}{(\itshape\tcbtitletext)}};
\begin{pgfonlayer}{bottom}
\fill[#2,opacity=0.5]
- ([xshift=-1.5*\rad]thmname.north west) to[out=-90,in=0,looseness=1.5] +(3pt,-6pt) -| +(10pt,0)--cycle;
+ ([xshift=-1.5*\rad]thmname.north west) to[out=180,in=305,looseness=1.5] +(3pt,-6pt) -| ++(12pt,0)--cycle;
\fill[#2,opacity=0.5]
([xshift=3*\rad]thmname.north east) to[out=0,in=-90] +(5pt,-5pt) -| ++(-10pt,0) --cycle;
\end{pgfonlayer}
}
\newcommand{\my at lemma@overlay at last}[1]{
- %%============== End ==============%%
+ %%============== End ==============%%
\def\Rad{3.5pt}
\def\rad{7pt}%
\def\theight{0.57cm}
@@ -989,35 +1104,26 @@
\path[fill=#1,drop shadow={opacity=0.3,shadow xshift=.3pt}]
([xshift=-2*\rad,yshift=-5pt]frame.south east) coordinate (SE) to[out=0,in=180] +(4*\rad,5pt+\theight) --([shift={(-\tlen+4*\rad,5pt+\theight)}]SE) to[out=180,in=0] +(-4*\rad,-5pt-\theight) --cycle;
\begin{pgfonlayer}{bottom}
- \fill[color=#1!80!black] ([xshift=-1.35*\tlen+\Rad,yshift=-5pt]frame.south east) to[out=180,in=90,looseness=0.7] ([xshift=-1.35*\tlen-0.5*\Rad]frame.south east) coordinate (NWl)--([xshift=2*\rad]NWl) to[out=-90,in=-180,looseness=0.7] ([xshift=-1.35*\tlen+\Rad,yshift=-5pt]frame.south east)--cycle;
+ \fill[color=#1,opacity=0.5] ([xshift=-1.35*\tlen+\Rad,yshift=-5pt]frame.south east) to[out=180,in=90,looseness=0.7] ([xshift=-1.35*\tlen-0.5*\Rad]frame.south east) coordinate (NWl)--([xshift=2*\rad]NWl) to[out=-90,in=-180,looseness=0.7] ([xshift=-1.35*\tlen+\Rad,yshift=-5pt]frame.south east)--cycle;
\end{pgfonlayer}
}
\makeatother
-%%
+%%
% proof
+\newcommand{\itbf}[1]{\textit{\textbf{#1}}}
\declaretheoremstyle[
spaceabove=3pt,spacebelow=3pt,
headfont=\normalfont\bfseries,
notefont=\normalfont\bfseries,notebraces={(}{)},
bodyfont=\normalfont,
- postheadspace=1em,
+ postheadspace=.5em,
headpunct={.},
- qed=\qedsymbol
+ qed=$\blacksquare$,%\qedsymbol
]{Proofstyle}
-\declaretheorem[style=Proofstyle,numbered=no,name={\bfseries 证明}]{Proof}
+\declaretheorem[style=Proofstyle,numbered=no,name={\itbf{Proof}}]{Proof}
\renewenvironment{proof}{\begin{Proof} }{\end{Proof}}
-\declaretheorem[style=Proofstyle,numbered=no,name={\bfseries 解}]{solution}
-%% --------参考文献
-\usepackage[
-backend=biber,
-style=gb7714-2015,
-sorting=nty
-]{biblatex}
-\addbibresource{ref.bib}
-\indexsetup{level=\chapter*,noclearpage}
-\makeindex[title=索引,columns=3,columnsep=15pt,columnseprule]
-\makeindex
+\declaretheorem[style=Proofstyle,numbered=no,name={\itbf{Solution}}]{solution}
%%%%%%%%%%%%%%% 计数器知识 %%%%%%%%%%%%%%%%%%%%%%
% 每次用 \newcounter{foo} 定义新计数器,内部都会定义这几个命令
Modified: trunk/Master/texmf-dist/tex/latex/beautybook/Beautybook-EN.cls
===================================================================
--- trunk/Master/texmf-dist/tex/latex/beautybook/Beautybook-EN.cls 2023-10-02 19:45:53 UTC (rev 68437)
+++ trunk/Master/texmf-dist/tex/latex/beautybook/Beautybook-EN.cls 2023-10-02 19:46:59 UTC (rev 68438)
@@ -1,36 +1,38 @@
%This Class is based on the default book class and options will be passed
\NeedsTeXFormat{LaTeX2e}
-\ProvidesClass{Beautybook-EN}[17-06-2023 Beautybook Class]
+\ProvidesClass{Beautybook-EN}[02-10-2023 V8.0 Beautybook Class]
\DeclareOption*{\PassOptionsToClass{\CurrentOption}{book}}
\ProcessOptions\relax
\LoadClass[twoside]{book}
-\overfullrule=1pt
-\RequirePackage[fontsize=13.5pt]{fontsize}
-\linespread{1.05}
\RequirePackage[dvipsnames,svgnames,x11names,table]{xcolor}
-\colorlet{outermarginfgcolor}{DarkCyan} % foregroundcolor
-\colorlet{outermarginbgcolor}{DarkCyan!30} % backgroundcolor
\RequirePackage{cncolours}
-\RequirePackage{bropd}
-\RequirePackage{tikz-imagelabels}
-\RequirePackage{epigraph-keys}
-\RequirePackage{fitbox}
+\RequirePackage[utf8]{inputenc} % UTF-8编码
+\RequirePackage{times} % Times New Roman Font
+\RequirePackage[T1]{fontenc}
+\RequirePackage{microtype} % 字体间距调整
+\colorlet{outermarginfgcolor}{DarkCyan} % foregroundcolor 较深
+\colorlet{outermarginbgcolor}{DarkCyan!30} % backgroundcolor 较浅
+\RequirePackage{bropd} % math 自适应数学括号命令 \br{} !!!
+\RequirePackage{tikz-imagelabels} % tikz图像标注
+\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}
+\RequirePackage{pgfplots} %画图 %%页面样式设计核心包 %提供\pgfonlayer命令以及下列图层指令
\pgfplotsset{compat=1.18}
%
\ExplSyntaxOn
+% 封面切换程序 (LaTeX3)!
\keys_define:nn {Beautybook/coverstyle}
{
cover-choose.choice:,
cover-choose.value_required:n = true,
- cover-choose/cn.code:n = {\RequirePackage{stys/Beautybook-cn}},
- 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 ,
+ cover-choose/cn.code:n = {\RequirePackage{stys/Beautybook-cover-cn}},
+ cover-choose/en.code:n = {\RequirePackage{stys/Beautybook-cover-en}},
+ cover-choose/enfig.code:n = {\RequirePackage{stys/Beautybook-cover-enfig}},
+ cover-choose/birkar.code:n = {\RequirePackage{stys/Beautybook-cover-birkar}},
+ %cover-choose .initial:n = en , % 设置 en 为初始值
}
\newtoks \l__Beautybook_tmpa_toks
\cs_new_protected:Npn \coverstyle
@@ -46,8 +48,12 @@
math-font.choice:,
math-font.value_required:n = true,
math-font/plain.code:n={},
+ math-font/stix.code:n={
+ \RequirePackage{stix}
+ },
math-font/mtpro2.code:n = {
\RequirePackage{mtpro2}
+ \RequirePackage{bm}
\DeclareFontFamily{U}{nxlmi}{}
\DeclareFontSubstitution{U}{nxlmi}{m}{it}
\DeclareFontShape{U}{nxlmi}{m}{it}{
@@ -63,7 +69,7 @@
}{}
\renewcommand{\partial}{{\text{\usefont{U}{nxlmi}{m}{it}\symbol{64}}\mspace{1mu}}}
},
- %cover-choose .initial:n = plain ,
+ %cover-choose .initial:n = plain , % 设置 en 为初始值
}
\cs_new_protected:Npn \mathstyle
{
@@ -73,21 +79,41 @@
\cs_new:Npn \__Beautybook_set_mathstyle:
{ \keys_set:nV { Beautybook / mathstyle } \l__Beautybook_tmpa_toks }
\ExplSyntaxOff
-%
-\RequirePackage{stys/Beautybook-bottompage}
-%
-\usepackage{rotating}
+\RequirePackage{stys/Beautybook-bottompage} %封底
+\RequirePackage{rotating}
\tikzset{>=Stealth}
-\setlist{nosep,font=\upshape}
+\setlist{font=\upshape} % 取消所有列表默认距离 nosep,
+% 浮动环境设置
+% 默认情况下, \LaTeX{} 要求每页的文字至少占据 20%,否则该页就只单独放置一个浮动环境,
+% 而这通常不是我们想要的, 我们将这个要求降低到 5%.
\renewcommand*{\textfraction}{0.05}
+% 有时如果多个浮动环境连续放在一起,
+% 会将它们分在几个不同页,即使它们可在同一页放
+% 得下. 我们可以通过修改 |\topfraction| 和 |\bottomfraction| 分别设置顶端和底端的浮
+% 动环境的最大比例.
\renewcommand*{\topfraction}{0.9}
\renewcommand*{\bottomfraction}{0.8}
+% 有时\LaTeX{}会把一个浮动环境单独放在一页,
+% 我们要求这个环境至少要占据 85% 才能单独放在一页.
+% 注意: |\floatpagefraction| 的数值必须小于 |\topfraction|.
\renewcommand*{\floatpagefraction}{0.85}
+% 关于图片 graphicx
+% 如果图片没有指定后缀, 依次按下列顺序搜索
\DeclareGraphicsExtensions{.pdf,.eps,.jpg,.png}
-\graphicspath{{figures/}{figure/}{pictures/}{picture/}{pic/}{pics/}{image/}{images/}}
-\RequirePackage{amssymb,amsfonts}
+% 设置图表搜索路径, 可以给图表文件夹取如下名字
+\graphicspath{{inner_pics/}{inner_pics/titleimages/}{figures/}{figure/}{pictures/}{picture/}{pic/}{pics/}{image/}{images/}}
+% \RequirePackage[physics]{stys/physicx}
+% \RequirePackage{stys/Symbols}
+\RequirePackage{extarrows}
+\usetikzlibrary{tikzmark}
+% \arrowname{super-script}
+% \arrowname[sub-script]{super-script}
+\RequirePackage{appendix} % 附录
+% \RequirePackage{stys/symbols}
+%
+\RequirePackage{amssymb,amsfonts,upgreek}
\RequirePackage{makeidx}
-\RequirePackage{etoolbox}
+\RequirePackage{etoolbox} % 判断函数
\RequirePackage{paracol}
\RequirePackage{tikz-cd}
\RequirePackage{imakeidx}
@@ -96,13 +122,13 @@
\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}
@@ -109,8 +135,10 @@
\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}}
@@ -117,16 +145,11 @@
\newcommand\presslogo[1]{\def\@presslogo{#1}}
\newcommand\pressname[1]{\def\@pressname{#1}}
\newcommand\coverimage[1]{\def\@coverimage{#1}}
-\newcommand\chapoddimage[1]{\def\@chapoddimage{#1}}
-\newcommand\chapevenimage[1]{\def\@chapevenimage{#1}}
+\newcommand\chapimage[1]{\def\@chapimage{#1}}
+%%----------------------------------封面信息定义--------------------------------------------------------%%
\makeatother
\RequirePackage{indentfirst}
-\RequirePackage{physics}
-\definecolor{nuanbai}{HTML}{f5f5f5} % F5F5F5
-\pagecolor{nuanbai}
\RequirePackage{amsmath}
-\RequirePackage{zhlipsum}
-\RequirePackage{stix}
\RequirePackage[left=2cm,right=2cm,top=.6cm,bottom=2.2cm]{geometry}
\RequirePackage{xpatch}%修正章节编号
\RequirePackage[automark]{scrlayer-scrpage}%页面设置宏包,隶属于koma-script文档类
@@ -157,7 +180,7 @@
\RequirePackage{amsthm}
\RequirePackage{thmtools,thm-restate}%定理环境 %定理的重写
\RequirePackage{bclogo}
-\RequirePackage{ulem}
+\RequirePackage[normalem]{ulem}
\RequirePackage{pgfplots} %画图 %%页面样式设计核心包 %提供\pgfonlayer命令以及下列图层指令
\pgfplotsset{compat=1.18}
\RequirePackage{graphicx}%修正minipage顶部对齐问题
@@ -168,6 +191,38 @@
\pgfsetlayers{bottom,background,main,foreground,top}
\newcommand{\tikzoverlay}[1]{\begin{tikzpicture}[remember picture,overlay] #1 \end{tikzpicture}}
\RequirePackage[explicit]{titlesec}
+\RequirePackage{titletoc}
+
+\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},%下
+]{% left hand side % adjust from this side
+\thecontentslabel
+}{% right hand side
+#1 \hfill \bfseries\sffamily\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},%下
+]
+\tcblower #1\hfill \bfseries\sffamily\thecontentspage
+\end{tcolorbox}
+}
+
+\titlecontents{chapter}[0mm]
+ {\addvspace{-.5em}}
+ {\contentsmargin{0pt}\boxednum}
+ {\contentsmargin{0pt}\boxednonum}
+ {}
+ [\addvspace{-.5em}]
+
% tcolorbox中插入图片或者tikz绘图方法
\newcommand\Figure[4]{%
\begin{center}
@@ -223,48 +278,91 @@
%% -------- 章节样式
\makeatletter
+% titleimage
+\ExplSyntaxOn
+\seq_new:N \g__Beautybook_chapter_oimage_seq % odd
+\seq_new:N \g__Beautybook_chapter_eimage_seq % even
+\seq_new:N \g__Beautybook_part_oimage_seq % odd
+\seq_new:N \g__Beautybook_part_eimage_seq % even
+%
+\keys_define:nn { Beautybook/titleimage }
+ {
+ chapteroddimage .code:n =
+ \seq_gset_from_clist:Nn \g__Beautybook_chapter_oimage_seq {#1} ,
+ chapterevenimage .code:n =
+ \seq_gset_from_clist:Nn \g__Beautybook_chapter_eimage_seq {#1} ,
+ partoddimage .code:n =
+ \seq_gset_from_clist:Nn \g__Beautybook_part_oimage_seq {#1} ,
+ partevenimage .code:n =
+ \seq_gset_from_clist:Nn \g__Beautybook_part_eimage_seq {#1} ,
+ }
+\cs_new:Npn \__Beautybook_title_image:Nn #1#2 % image seq, number
+ { \seq_item:Nn #1 { \int_mod:nn {#2} { \seq_count:N #1 } + 1 } } %对照表-对录入的字符串进行编号
+\cs_new:Npn \Beautybook at chapterimagename %生成索契表 : 判断奇偶数页并按(章节编号)!!读取相应的列表组中的字符串
+ {
+ \int_if_odd:nTF { \value{page} }
+ { \__Beautybook_title_image:Nn \g__Beautybook_chapter_oimage_seq { \value{chapter} } }
+ { \__Beautybook_title_image:Nn \g__Beautybook_chapter_eimage_seq { \value{chapter} } }
+ }
+\cs_new:Npn \Beautybook at partimagename
+ {
+ \int_if_odd:nTF { \value{page} }
+ { \__Beautybook_title_image:Nn \g__Beautybook_part_oimage_seq { \value{part} } }
+ { \__Beautybook_title_image:Nn \g__Beautybook_part_eimage_seq { \value{part} } }
+ }
+\cs_new_protected:Npn \titleimage #1
+ { \keys_set:nn { Beautybook/titleimage } {#1} }
+\ExplSyntaxOff
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\titleformat{\chapter}{\huge\bfseries\filcenter}{}{1em}{
\makebox[0pt][l]{\def\rad{7pt}%
\begin{tikzpicture}[remember picture, overlay]%
\begin{pgfonlayer}{bottom}
- \shade[left color=outermarginbgcolor!20,middle color=outermarginbgcolor!50,right color=outermarginfgcolor!20] (current page.north west) rectangle ++(\paperwidth,-.2\paperheight); % background
+ \ifodd\value{page}
+ \shade[right color=outermarginbgcolor!30,middle color=outermarginbgcolor!50,left color=outermarginfgcolor!30] (current page.north west) rectangle ++(\paperwidth,-.2\paperheight); % background odd
+ \else
+ \shade[left color=outermarginbgcolor!30,middle color=outermarginbgcolor!50,right color=outermarginfgcolor!30] (current page.north west) rectangle ++(\paperwidth,-.2\paperheight); % background even
+ \fi
\fill[outermarginfgcolor,opacity=.5]([shift={(0,-4.45cm)}]current page.north west) rectangle ++(\paperwidth,-2mm); % line
\end{pgfonlayer}
\path[fill=outermarginfgcolor]node[append after command={
([xshift=-3*\rad]chapinfoofpart.north west) to[out=0,in=-180,looseness=1] ([xshift=\rad]chapinfoofpart.south west) --([xshift=-\rad]chapinfoofpart.south east) to[out=0,in=180,looseness=1] ([xshift=3*\rad]chapinfoofpart.north east) --cycle},
- text=white,font=\large\bfseries,align=center,minimum height=1cm] (chapinfoofpart) at ([shift={(.6\linewidth,-4.95cm)}]current page.north west) {Part\ \thepart};
+ text=white,font=\sffamily\large\bfseries,align=center,minimum height=1cm] (chapinfoofpart) at ([shift={(.6\linewidth,-4.95cm)}]current page.north west) {Part\ \thepart};
\begin{pgfonlayer}{bottom}
\fill[outermarginfgcolor!90,opacity=0.5] ([shift={(-3*\rad,0)}]chapinfoofpart.north west) to[out=180,in=0,looseness=1] +(-4*\rad,-1.2cm)--([shift={(7*\rad,-1.2cm)}]chapinfoofpart.north east) to[out=-180,in=0,looseness=1] +(-4*\rad,1.2cm); % partnumber shade
\end{pgfonlayer}
\ifodd\value{page}
\begin{pgfonlayer}{top}
- \fill[outermarginfgcolor,opacity=0.8,rounded corners=5pt]node[append after command={([yshift=2cm]chapnum.north west) rectangle (chapnum.south east)},right,text=white,minimum width=2cm,align=center,font=\bf] (chapnum) at ([shift={(2cm,-2.5cm)}]current page.north west) {\scalebox{3}{\thechapter}};
- % \pattern[pattern=sixpointed stars,pattern color=outermarginfgcolor!50,opacity=0.8]
- % ([yshift=2cm]chapnum.north west) rectangle (chapnum.south east);
+ \fill[outermarginfgcolor,opacity=0.7,rounded corners=5pt]node[append after command={([yshift=2cm]chapnum.north west) rectangle (chapnum.south east)},right,text=white,minimum width=2cm,align=center,font=\sffamily\bfseries] (chapnum) at ([shift={(1.5cm,-2.5cm)}]current page.north west) {\scalebox{3}{\thechapter}};
+ \begin{pgfonlayer}{foreground}
+ \pattern[pattern=sixpointed stars,pattern color=white,opacity=1.0,rounded corners=5pt]
+ ([yshift=2cm]chapnum.north west) rectangle (chapnum.south east);
+ \end{pgfonlayer}
\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=\sc\fontsize{22pt}{22pt}\selectfont,align=center] (contents name) at ([shift={(0cm,-4.45cm)}]current page.north east) {\begin{varwidth}{.7\linewidth}\baselineskip=2ex #1\end{varwidth}};
\end{pgfonlayer}
\begin{pgfonlayer}{bottom}
- \node[right] (image) at ([shift={(-0.5cm,-2.8cm)}]current page.north west) {\includegraphics[width=7cm]{\@chapoddimage}};
+ \node[right] (image) at ([shift={(-0.5cm,-2.8cm)}]current page.north west) {\includegraphics[width=7cm]{\@chapimage}};
\end{pgfonlayer}
- \node[above left,font=\fontsize{15}{15}\selectfont,circle,fill=outermarginfgcolor,text=white,inner sep=1mm] (pagenumber) at ([shift={(-5mm,5mm)}]current page.south east) {\thepage};
\else
\begin{pgfonlayer}{top}
- \fill[outermarginfgcolor,opacity=0.8,rounded corners=5pt]node[append after command={([yshift=2cm]chapnum.north west) rectangle (chapnum.south east)},left,text=white,minimum width=2cm,align=center,font=\bf] (chapnum) at ([shift={(-2.0cm,-2.5cm)}]current page.north east) {\scalebox{3}{\thechapter}};
- % \pattern[pattern=sixpointed stars,pattern color=outermarginfgcolor!50,opacity=0.8]
- % ([yshift=2cm]chapnum.north west) rectangle (chapnum.south east);
+ \fill[outermarginfgcolor,opacity=0.7,rounded corners=5pt]node[append after command={([yshift=2cm]chapnum.north west) rectangle (chapnum.south east)},left,text=white,minimum width=2cm,align=center,font=\sffamily\bfseries] (chapnum) at ([shift={(-1.5cm,-2.5cm)}]current page.north east) {\scalebox{3}{\thechapter}};
+ \begin{pgfonlayer}{foreground}
+ \pattern[pattern=sixpointed stars,pattern color=white,opacity=1.0,rounded corners=5pt]
+ ([yshift=2cm]chapnum.north west) rectangle (chapnum.south east);
+ \end{pgfonlayer}
\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=\sc\fontsize{22pt}{22pt}\selectfont,align=center] (contents name) at ([shift={(0cm,-4.45cm)}]current page.north west) {\begin{varwidth}{.7\linewidth}\baselineskip=2ex #1\end{varwidth}};
\end{pgfonlayer}
\begin{pgfonlayer}{background}
- \node[left] (image) at ([shift={(0.5cm,-2.8cm)}]current page.north east) {\includegraphics[width=7cm]{\@chapevenimage}};
+ \node[left] (image) at ([shift={(0.5cm,-2.8cm)}]current page.north east) {\includegraphics[width=7cm]{\@chapimage}};
\end{pgfonlayer}
- \node[above right,font=\fontsize{15}{15}\selectfont,circle,fill=outermarginfgcolor,text=white,inner sep=1mm] (pagenumber) at ([shift={(5mm,5mm)}]current page.south west) {\thepage};
\fi
- \fill[outermarginfgcolor,rounded corners=2pt]
- (current page.south west) -- ++(1.5mm,1.5mm) --++(\paperwidth-3mm,0mm)--++(1.5mm,-1.5mm)--cycle;
+ \path[fill=outermarginbgcolor]node[append after command={
+ ([xshift=-2*\rad]pagenumber.south west) to[out=0,in=180,looseness=1] ([xshift=\rad]pagenumber.north west) --([xshift=-\rad]pagenumber.north east) to[out=0,in=-180,looseness=1] ([xshift=2*\rad]pagenumber.south east) --cycle},
+ text=outermarginfgcolor,font=\sffamily\fontsize{15}{15}\selectfont\bfseries,align=center,minimum height=0.4cm,minimum width=1.3cm,inner sep=1.5mm] (pagenumber) at ([shift={(0,0.3cm)}]current page.south) {\thepage};
\end{tikzpicture}}
}
\titleformat{name=\chapter,numberless}{\bfseries\huge\filcenter}{}{1em}{
@@ -271,33 +369,38 @@
\makebox[0pt][l]{\def\rad{7pt}%
\begin{tikzpicture}[remember picture, overlay]%
\begin{pgfonlayer}{bottom}
- \shade[left color=outermarginbgcolor!20,middle color=outermarginbgcolor!50,right color=outermarginfgcolor!20] (current page.north west) rectangle ++(\paperwidth,-.2\paperheight); % background
+ \ifodd\value{page}
+ \shade[right color=outermarginbgcolor!30,middle color=outermarginbgcolor!50,left color=outermarginfgcolor!30] (current page.north west) rectangle ++(\paperwidth,-.2\paperheight); % background odd
+ \else
+ \shade[left color=outermarginbgcolor!30,middle color=outermarginbgcolor!50,right color=outermarginfgcolor!30] (current page.north west) rectangle ++(\paperwidth,-.2\paperheight); % background even
+ \fi
\fill[outermarginfgcolor,opacity=.5]([shift={(0,-4.45cm)}]current page.north west) rectangle ++(\paperwidth,-2mm); % line
\end{pgfonlayer}
\ifodd\value{page}
\begin{pgfonlayer}{top}
- \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=\sc\fontsize{25pt}{25pt}\selectfont,align=center] (contents name) at ([shift={(0cm,-4.45cm)}]current page.north east) {\begin{varwidth}{.7\linewidth}\baselineskip=2ex #1\end{varwidth}};
\end{pgfonlayer}
\begin{pgfonlayer}{bottom}
- \node[right] (image) at ([shift={(-0.5cm,-2.8cm)}]current page.north west) {\includegraphics[width=7cm]{\@chapoddimage}};
+ \node[right] (image) at ([shift={(-0.5cm,-2.8cm)}]current page.north west) {\includegraphics[width=7cm]{\@chapimage}};
\end{pgfonlayer}
- \node[above left,font=\fontsize{15}{15}\selectfont,circle,fill=outermarginfgcolor,text=white,inner sep=1mm] (pagenumber) at ([shift={(-5mm,5mm)}]current page.south east) {\thepage};
\else
\begin{pgfonlayer}{top}
- \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=\sc\fontsize{25pt}{25pt}\selectfont,align=center] (contents name) at ([shift={(0cm,-4.45cm)}]current page.north west) {\begin{varwidth}{.7\linewidth}\baselineskip=2ex #1\end{varwidth}};
\end{pgfonlayer}
\begin{pgfonlayer}{background}
- \node[left] (image) at ([shift={(0.5cm,-2.8cm)}]current page.north east) {\includegraphics[width=7cm]{\@chapevenimage}};
+ \node[left] (image) at ([shift={(0.5cm,-2.8cm)}]current page.north east) {\includegraphics[width=7cm]{\@chapimage}};
\end{pgfonlayer}
- \node[above right,font=\fontsize{15}{15}\selectfont,circle,fill=outermarginfgcolor,text=white,inner sep=1mm] (pagenumber) at ([shift={(5mm,5mm)}]current page.south west) {\thepage};
\fi
- \fill[outermarginfgcolor,rounded corners=2pt]
- (current page.south west) -- ++(1.5mm,1.5mm) --++(\paperwidth-3mm,0mm)--++(1.5mm,-1.5mm)--cycle;
+ \path[fill=outermarginbgcolor]node[append after command={
+ ([xshift=-2*\rad]pagenumber.south west) to[out=0,in=180,looseness=1] ([xshift=\rad]pagenumber.north west) --([xshift=-\rad]pagenumber.north east) to[out=0,in=-180,looseness=1] ([xshift=2*\rad]pagenumber.south east) --cycle},
+ text=outermarginfgcolor,font=\sffamily\fontsize{15}{15}\selectfont\bfseries,align=center,minimum height=0.4cm,minimum width=1.3cm,inner sep=1.5mm] (pagenumber) at ([shift={(0,0.3cm)}]current page.south) {\thepage};
\end{tikzpicture}}
}
-\titlespacing{\chapter}{0pt}{0pt}{65pt}
+\titlespacing{\chapter}{0pt}{0pt}{80pt}
\makeatother
% -------- Part定制
+\tikzfading[name=middle, top color=transparent!90, bottom
+color=transparent!90, middle color=transparent!20]
\makeatletter
\newcommand\partabstract[1]{\def\@partabstract{#1}}
\newcommand\partimage[1]{\def\@partimage{#1}}
@@ -310,11 +413,22 @@
\fill[outermarginbgcolor,opacity=0.6]
(current page.north west) rectangle (current page.south east);
\ifodd\value{page}
- \fill[outermarginfgcolor]
- (current page.north east) rectangle ++(-\barwidth,-\paperheight);
+ \fill [outermarginfgcolor!20]%
+ (current page.north east) rectangle ++(-\outermarginwidth,-\paperheight);
+ \pattern [pattern=north east lines,pattern color=outermarginfgcolor!50]%
+ (current page.north east) rectangle ++(-\outermarginwidth,-\paperheight);
+ \fill [outermarginbgcolor!90,path fading=fade south]%
+ ([yshift=1mm]current page.north east) rectangle ++(-\outermarginwidth,-.8\paperheight);
+ \fill [outermarginbgcolor,path fading=fade north]%
+ (current page.south east) rectangle ++(-\outermarginwidth,.8\paperheight);%
+ % lines
+ \fill[outermarginfgcolor,rounded corners=2pt] (current page.north east) --++(-5pt,-0.15cm)--++(-\outermarginwidth+10pt,0) --++(-5pt,0.15cm)--cycle;
+ \coordinate (anchor of headmark) at ([shift={(-1.2\outermarginwidth,-0.2cm)}]current page.north east);
+ \node[below ,text=outermarginfgcolor,font=\sffamily\bfseries\fontsize{15}{20}\selectfont] (partpagenum) at ([shift={(-.5\outermarginwidth,0)}]current page.north east) {\thepage};
+ \fill[outermarginfgcolor,rounded corners=2pt] (current page.south east) --++(-5pt,0.15cm)--++(-\outermarginwidth+10pt,0) --++(-5pt,-0.15cm)--cycle; % 页码横线
\node[] (hbar) at ($(current page.north)!0.33!(current page.south)$) {
\begin{tikzpicture}
- \fill[white]
+ \fill[white]
(0,0) rectangle ++(\paperwidth,-1cm);
\fill[outermarginbgcolor]
(0,-.25cm) rectangle ++(\paperwidth,-.5cm);
@@ -326,41 +440,52 @@
(.67\paperwidth+4.4cm,-.25cm) rectangle ++(1mm,-.5cm);
\end{tikzpicture}
};
- \node[above,font=\huge,shift={(.33\linewidth,.5\barwidth)}] (partname) at (hbar) {Part\ \thepart};
- \node[below,left,font=\sffamily\bfseries\huge,shift={(.146\linewidth,-1.5*\barwidth)}] (partcontents) at (partname) {\begin{varwidth}{.8\linewidth}\raggedright\baselineskip=2ex #1 \end{varwidth}}; % 标题名称
+ \node[above,font=\sc\huge,shift={(.33\linewidth,.5\barwidth)}] (partname) at (hbar) {Part\ \thepart};
+ \node[below,left,font=\sc\huge,shift={(.146\linewidth,-1.5*\barwidth)}] (partcontents) at (partname) {\begin{varwidth}{.8\linewidth}\raggedright\baselineskip=2ex #1 \end{varwidth}}; % 标题名称
\begin{pgfonlayer}{background}
- \node[above,shift={(-.4\linewidth,-4*\barwidth)},opacity=0.8] at (partname) {\ifdefvoid{\@partimage}{}{\includegraphics[width=1.2\linewidth]{\@partimage}}}; % 图片位置调整
+ \node[above,shift={(-.4\linewidth,-4*\barwidth)}] at (partname) {\ifdefvoid{\@partimage}{}{\includegraphics[width=1.2\linewidth]{\@partimage}}}; % 图片位置调整
\end{pgfonlayer}
- \node[above right,font=\fontsize{15}{15}\selectfont,circle,fill=outermarginfgcolor,text=white,inner sep=1mm] (pagenumber) at ([shift={(5mm,5mm)}]current page.south west) {\thepage};
- \else
- \fill[outermarginfgcolor]
- (current page.north west) rectangle ++(\barwidth,-\paperheight);
- \node[] (hbar) at ($(current page.north)!0.33!(current page.south)$) {
- \begin{tikzpicture}
- \fill[white]
- (0,0) rectangle ++(\paperwidth,-1cm);
- \fill[outermarginbgcolor]
- (0,-.25cm) rectangle ++(\paperwidth,-.5cm);
- \fill[outermarginfgcolor]
- (.15\paperwidth,-.25cm) rectangle ++(4.5cm,-.5cm);
- \fill[outermarginfgcolor!20!white]
- (.15\paperwidth-1mm,-.25cm) rectangle ++(1mm,-.5cm);
- \fill[outermarginfgcolor!20!white]
- (.15\paperwidth+4.5cm,-.25cm) rectangle ++(1mm,-.5cm);
- \end{tikzpicture}
- };
- \node[above,font=\huge,shift={(-.31\linewidth,.5\barwidth)}] (partname) at (hbar) {Part\ \thepart};
- \node[below right,font=\sffamily\bfseries\huge,shift={(-.125\linewidth,-1.2*\barwidth)}] (partcontents) at (partname) {\begin{varwidth}{.8\linewidth}\raggedright\baselineskip=2ex #1 \end{varwidth}}; % 标题名称
- \begin{pgfonlayer}{background}
- \node[above,shift={(.4\linewidth,-4*\barwidth)},opacity=0.8] at (partname) {\ifdefvoid{\@partimage}{}{\includegraphics[width=1.2\linewidth]{\@partimage}}}; % 图片位置调整
- \end{pgfonlayer}
- \node[above left,font=\fontsize{15}{15}\selectfont,circle,fill=outermarginfgcolor,text=white,inner sep=1mm] (pagenumber) at ([shift={(-5mm,5mm)}]current page.south east) {\thepage};
- \fi
- \node[below,,font=\sffamily\fontsize{13}{13}\selectfont,shift={(0\linewidth,-1.65*\barwidth)}] at (hbar) {\ifdefvoid{\@partabstract}{}{\begin{varwidth}{.85\linewidth}\baselineskip=3ex \@partabstract\end{varwidth}}}; % 简介文字调整
+ \else
+ \fill [outermarginfgcolor!20]%
+ (current page.north west) rectangle ++(\outermarginwidth,-\paperheight);
+ \pattern [pattern=north west lines,pattern color=outermarginfgcolor!50]%
+ (current page.north west) rectangle ++(\outermarginwidth,-\paperheight);
+ \fill [outermarginbgcolor!90,path fading=fade south]%
+ ([yshift=1mm]current page.north west) rectangle ++(\outermarginwidth,-.8\paperheight);
+ \fill [outermarginbgcolor,path fading=fade north]%
+ (current page.south west) rectangle ++(\outermarginwidth,.8\paperheight);%
+ % lines
+ \fill[outermarginfgcolor,rounded corners=2pt] (current page.north west) --++(5pt,-0.15cm)--++(\outermarginwidth-10pt,0) --++(5pt,0.15cm)--cycle;
+ \coordinate (anchor of headmark) at ([shift={(1.2\outermarginwidth,-0.2cm)}]current page.north west);
+ \node[below ,text=outermarginfgcolor,font=\sffamily\bfseries\fontsize{15}{20}\selectfont] (partpagenum) at ([shift={(.5\outermarginwidth,0)}]current page.north west) {\thepage};
+ \fill[outermarginfgcolor,rounded corners=2pt] (current page.south west) --++(5pt,0.15cm)--++(\outermarginwidth-10pt,0) --++(5pt,-0.15cm)--cycle; % 页码横线
+ \node[] (hbar) at ($(current page.north)!0.33!(current page.south)$) {
+ \begin{tikzpicture}
+ \fill[white]
+ (0,0) rectangle ++(\paperwidth,-1cm);
+ \fill[outermarginbgcolor]
+ (0,-.25cm) rectangle ++(\paperwidth,-.5cm);
+ \fill[outermarginfgcolor]
+ (.15\paperwidth,-.25cm) rectangle ++(4.5cm,-.5cm);
+ \fill[outermarginfgcolor!20!white]
+ (.15\paperwidth-1mm,-.25cm) rectangle ++(1mm,-.5cm);
+ \fill[outermarginfgcolor!20!white]
+ (.15\paperwidth+4.5cm,-.25cm) rectangle ++(1mm,-.5cm);
+ \end{tikzpicture}
+ };
+ \node[above,font=\sc\huge,shift={(-.31\linewidth,.5\barwidth)}] (partname) at (hbar) {Part\ \thepart};
+ \node[below right,font=\sc\huge,shift={(-.125\linewidth,-1.2*\barwidth)}] (partcontents) at (partname) {\begin{varwidth}{.8\linewidth}\raggedright\baselineskip=2ex #1 \end{varwidth}}; % 标题名称
+ \begin{pgfonlayer}{background}
+ \node[above,shift={(.35\linewidth,-4*\barwidth)}] at (partname) {\ifdefvoid{\@partimage}{}{\includegraphics[width=1.2\linewidth]{\@partimage}}}; % 图片位置调整
+ \end{pgfonlayer}
+ \fi
+ \node[below,,font=\itshape\fontsize{13}{13}\selectfont,shift={(0\linewidth,-1.65*\barwidth)}] at (hbar) {\ifdefvoid{\@partabstract}{}{\begin{varwidth}{.85\linewidth}\baselineskip=3ex \@partabstract\end{varwidth}}}; % 简介文字调整
\end{tikzpicture}}
\makeatother
\assignpagestyle{\part}{empty}
\assignpagestyle{\chapter}{empty}
+
+
%% -- Section
\titleformat{\section}
{}
@@ -368,22 +493,33 @@
{-.5em} %左右移动\thesection标签位置
{\mysectionformat{#1}}
+\titleformat{name=\section,numberless}{}{}{-.5em}{\mysectionnonumformat{#1}}
+
\newcommand{\mysectionformat}[1]{%
\makebox[0pt][l]{\def\rad{7pt}%
\begin{tikzpicture}[remember picture]
\path[fill=outermarginfgcolor,drop shadow={opacity=0.3,shadow xshift=.05cm,shadow yshift=-.05cm}]node[append after command={
([xshift=\rad]sec.north west) to[out=180,in=0,looseness=1] ([xshift=-3*\rad]sec.south west) --([xshift=-\rad]sec.south east) to[out=0,in=180,looseness=1] ([xshift=3*\rad]sec.north east) --cycle},
- text=white,font=\rmfamily\large\bfseries,align=center,inner ysep=2mm] (sec) at (0,0) {Sec\ \thesection};
- \draw[outermarginbgcolor,line width=0.5pt] (sec.north east)--++(.8\linewidth,0);
- \node[text=black,font=\rmfamily\bfseries\Large,below right] (secnum) at ([shift={(0,0mm)}]sec.north east) {\begin{varwidth}{.85\linewidth}\setlength\baselineskip{22.5pt}\hspace{.5cm}#1\end{varwidth}};
+ text=white,font=\sffamily\large\bfseries,align=center,inner ysep=2mm] (sec) at (0,0) {Sec\ \thesection};
+ \node[text=black,font=\large,below right] (secnum) at ([shift={(0,-1mm)}]sec.north east) {\begin{varwidth}{.85\linewidth}\setlength\baselineskip{18pt}\hspace{.5cm}#1\end{varwidth}};
\end{tikzpicture}}}%最后一个选项为 [<after code>]
+
+\newcommand{\mysectionnonumformat}[1]{%
+\makebox[0pt][l]{\def\rad{7pt}%
+\begin{tikzpicture}[remember picture]
+ \path[fill=outermarginfgcolor,drop shadow={opacity=0.3,shadow xshift=.05cm,shadow yshift=-.05cm}]node[append after command={
+ ([xshift=\rad]sec.north west) to[out=180,in=0,looseness=1] ([xshift=-3*\rad]sec.south west) --([xshift=-\rad]sec.south east) to[out=0,in=180,looseness=1] ([xshift=3*\rad]sec.north east) --cycle},
+ text=white,font=\sffamily\large\bfseries,align=center,inner ysep=2mm] (sec) at (0,0) {Sec};
+ \node[text=black,font=\large,below right] (secnum) at ([shift={(0,-1mm)}]sec.north east) {\begin{varwidth}{.85\linewidth}\setlength\baselineskip{18pt}\hspace{.5cm}#1\end{varwidth}};
+\end{tikzpicture}}}%最后一个选项为 [<after code>]
+
\titlespacing*{\section}{0pt}{3.5ex plus 1ex minus .2ex}{2.3ex plus .2ex}
-% 侧边条
+
+%%-------------------------------- SCRLAYER-SCRPAGE -------------------------------------%%
+%% SIDE-BAR
\newlength\chapternumbersize
-\setlength\chapternumbersize{40pt}
+\setlength\chapternumbersize{36pt}
\setlength{\headheight}{40pt} % 页眉高度
-\RequirePackage{xpatch}
-\RequirePackage{scrlayer-scrpage}
\renewcommand\chaptermarkformat{}
% define a new mark for the chapter number
\newmarks\chapternum
@@ -397,15 +533,17 @@
\ifodd\value{page}
\fill[outermarginfgcolor,rounded corners=2pt] (current page.north east) --++(-5pt,-0.15cm)--++(-\outermarginwidth+10pt,0) --++(-5pt,0.15cm)--cycle;
\coordinate (anchor of headmark) at ([shift={(-1.2\outermarginwidth,-0.2cm)}]current page.north east);
- \node[below ,text=outermarginfgcolor,font=\bfseries\fontsize{20}{20}\selectfont] at ([shift={(-.5\outermarginwidth,-0.2cm)}]current page.north east) {\thepage};
- \node[below left,font=\upshape,text=outermarginfgcolor] at (anchor of headmark) {\begin{varwidth}{\linewidth}\rightmark\end{varwidth}};
- \fill[outermarginfgcolor,rounded corners=2pt] (current page.south east) --++(-5pt,0.15cm)--++(-\outermarginwidth+10pt,0) --++(-5pt,-0.15cm)--cycle;
+ \node[below ,text=outermarginfgcolor,font=\sffamily\bfseries\fontsize{15}{15}\selectfont] at ([shift={(-.5\outermarginwidth,-0.15cm)}]current page.north east) {\thepage};
+ \fill[outermarginfgcolor!50,rounded corners=1pt] ([shift={(0.2\outermarginwidth,0.2cm)}]anchor of headmark) --++(-5pt,-0.15cm)--++(-.45\linewidth,0) --++(-5pt,0.15cm)--cycle; % 页眉横线
+ \node[below left,font=\upshape,text=outermarginfgcolor] at ([yshift=0.05cm]anchor of headmark) {\begin{varwidth}{\linewidth}\rightmark\end{varwidth}};
+ \fill[outermarginfgcolor,rounded corners=2pt] (current page.south east) --++(-5pt,0.15cm)--++(-\outermarginwidth+10pt,0) --++(-5pt,-0.15cm)--cycle; % 页码横线
\else
\fill[outermarginfgcolor,rounded corners=2pt] (current page.north west) --++(5pt,-0.15cm)--++(\outermarginwidth-10pt,0) --++(5pt,0.15cm)--cycle;
\coordinate (anchor of headmark) at ([shift={(1.2\outermarginwidth,-0.2cm)}]current page.north west);
- \node[below ,text=outermarginfgcolor,font=\bfseries\fontsize{20}{20}\selectfont] at ([shift={(.5\outermarginwidth,-0.2cm)}]current page.north west) {\thepage};
- \node[below right,font=\upshape,text=outermarginfgcolor] at (anchor of headmark) {\begin{varwidth}{\linewidth}\rightmark\end{varwidth}};
- \fill[outermarginfgcolor,rounded corners=2pt] (current page.south west) --++(5pt,0.15cm)--++(\outermarginwidth-10pt,0) --++(5pt,-0.15cm)--cycle;
+ \node[below ,text=outermarginfgcolor,font=\sffamily\bfseries\fontsize{15}{15}\selectfont] at ([shift={(.5\outermarginwidth,-0.15cm)}]current page.north west) {\thepage};
+ \fill[outermarginfgcolor!50,rounded corners=1pt] ([shift={(-0.2\outermarginwidth,0.2cm)}]anchor of headmark) --++(5pt,-0.15cm)--++(.45\linewidth,0) --++(5pt,0.15cm)--cycle; % 页眉横线
+ \node[below right,font=\upshape,text=outermarginfgcolor] at ([yshift=0.05cm]anchor of headmark) {\begin{varwidth}{\linewidth}\rightmark\end{varwidth}};
+ \fill[outermarginfgcolor,rounded corners=2pt] (current page.south west) --++(5pt,0.15cm)--++(\outermarginwidth-10pt,0) --++(5pt,-0.15cm)--cycle; % 页码横线
\fi
\end{pgfonlayer}}
}
@@ -417,8 +555,8 @@
\if at mainmatter
\tikzoverlay{
\shade[top color=outermarginfgcolor!90,bottom color=outermarginbgcolor]
- (\outermarginwidth,-.5\outermarginwidth) rectangle (0,-1.5\outermarginwidth);
- \node[anchor=center,text=white,font=\bfseries] at (1/2*\outermarginwidth,-\outermarginwidth) {\usekomafont{chapternumber}{\botmarks\chapternum}};%
+ (\outermarginwidth,-.5\outermarginwidth+2mm) rectangle (0,-1.5\outermarginwidth+2mm);
+ \node[anchor=center,text=white,font=\sffamily\bfseries] at (1/2*\outermarginwidth,-\outermarginwidth+2mm) {\usekomafont{chapternumber}{\botmarks\chapternum}};%
}
\fi
\vfill
@@ -445,7 +583,7 @@
\makeatother
%
\newkomafont{outermargin}{%页边章节名称字体
- \sffamily\bfseries\fontsize{15}{15}\selectfont\color{outermarginfgcolor}
+ \bfseries\fontsize{15}{15}\selectfont\color{outermarginfgcolor}
}
% declare new page style using layers
\DeclareNewPageStyleByLayers{scth}{%
@@ -562,11 +700,9 @@
\ohead{}
\cfoot{}
\ofoot{}
-% set the contents of the outer margin on even and odd pages for scrheadings, plain and scth
-\oddoutermargin{\bf\leftmark} % Odd 奇数页
-\makeatletter
-\evenoutermargin{\bfseries\@title} % Even 偶数页
-\makeatother
+
+%%-------------------------------- SCRLAYER-SCRPAGE -------------------------------------%%
+
%% Begin The Most Beautiful Box (STYLE : ys style) % 中国风盒子
\makeatletter
\definecolor{framegolden}{HTML}{455a64} % 控制外框颜色
@@ -835,8 +971,8 @@
},
}
\makeatother
-\newtcolorbox{fancybox}{enhanced,ys style,breakable,pad at break=2mm,
- ys/frame/not at break,ys/frame/fill opacity=0}
+\newtcolorbox{fancybox}[1][]{enhanced,ys style,breakable,pad at break=2mm,
+ ys/frame/not at break,ys/frame/fill opacity=0,#1,fontupper=\itshape}
%% End The Most Beautiful Box
\makeatletter
\definecolor{CyaN}{HTML}{dbe1e5}
@@ -901,7 +1037,7 @@
%%============== First ==============%%
\fill[black!60] ([xshift=1cm,yshift=5pt]frame.north west)-- ([xshift=0.8cm,yshift=0cm]frame.north west)--([xshift=1.2cm,yshift=0cm]frame.north west)--cycle;
\node[rectangle, text=white, drop shadow={opacity=.3, shadow xshift=0.1cm}, inner sep=1.5mm,fill=#2,
-anchor=west,rounded corners=3pt,font=\bfseries\normalsize] at ([xshift=0cm,yshift=-3.mm]frame.north west) {\hspace*{1.5em}#1.\ \ifdefvoid{\tcbtitletext}{}{(\tcbtitletext)}};
+anchor=west,rounded corners=3pt,font=\bfseries\normalsize] at ([xshift=0cm,yshift=-3.mm]frame.north west) {\hspace*{1.5em}#1.\ \ifdefvoid{\tcbtitletext}{}{(\itshape\tcbtitletext)}};
\fill[color=#2,drop shadow={opacity=0.3,shadow xshift=.3pt}]
([xshift=1cm,yshift=5pt]frame.north west) {[rounded corners=3pt]--++(-1cm-5pt,0)}--++(0,-1cm-5pt)--cycle;
\fill[color=black!60] ([xshift=-5pt,yshift=-1cm]frame.north west)--([xshift=0cm,yshift=-0.8cm]frame.north west)-- ([xshift=0cm,yshift=-1.2cm]frame.north west)--cycle;
@@ -913,7 +1049,7 @@
}
\newcommand{\my at theorem@overlay at first}[2]{
\fill[black!60] ([xshift=1cm,yshift=5pt]frame.north west)-- ([xshift=0.8cm,yshift=0cm]frame.north west)--([xshift=1.2cm,yshift=0cm]frame.north west)--cycle;
- \node[rectangle, text=white, drop shadow={opacity=.3, shadow xshift=0.1cm}, inner sep=1.5mm,fill=#2, anchor=west,rounded corners=3pt,font=\bfseries\normalsize] at ([xshift=0cm,yshift=-3.mm]frame.north west) {\hspace*{1.5em}#1.\ \ifdefvoid{\tcbtitletext}{}{(\tcbtitletext)}};
+ \node[rectangle, text=white, drop shadow={opacity=.3, shadow xshift=0.1cm}, inner sep=1.5mm,fill=#2, anchor=west,rounded corners=3pt,font=\bfseries\normalsize] at ([xshift=0cm,yshift=-3.mm]frame.north west) {\hspace*{1.5em}#1.\ \ifdefvoid{\tcbtitletext}{}{(\itshape\tcbtitletext)}};
\fill[color=#2,drop shadow={opacity=0.3,shadow xshift=.3pt}]
([xshift=1cm,yshift=5pt]frame.north west) {[rounded corners=3pt]--++(-1cm-5pt,0)}--++(0,-1cm-5pt)--cycle;
\fill[color=black!60] ([xshift=-5pt,yshift=-1cm]frame.north west)--([xshift=0cm,yshift=-0.8cm]frame.north west)-- ([xshift=0cm,yshift=-1.2cm]frame.north west)--cycle;
@@ -932,10 +1068,10 @@
\def\rad{7pt}%
\path[fill=#2,drop shadow={opacity=0.3,shadow xshift=.05cm,shadow yshift=-.05cm}]node[append after command={
([xshift=-1.5*\rad]thmname.north west) to[out=0,in=180,looseness=1] ([xshift=2.5*\rad]thmname.south west) --([xshift=-\rad]thmname.south east) to[out=0,in=180,looseness=1] ([xshift=3*\rad]thmname.north east) --cycle},
- text=white,font=\bfseries,align=center,inner ysep=1.5mm,minimum height=0.6cm,right] (thmname) at ([xshift=\rad,yshift=-\rad]frame.north west) {\hspace*{10pt}#1.\ \ifdefvoid{\tcbtitletext}{}{(\tcbtitletext)}};
+ text=white,font=\bfseries,align=center,inner ysep=1.5mm,minimum height=0.6cm,right] (thmname) at ([xshift=\rad,yshift=-.7*\rad]frame.north west) {\hspace*{10pt}#1.\ \ifdefvoid{\tcbtitletext}{}{(\itshape\tcbtitletext)}};
\begin{pgfonlayer}{bottom}
\fill[#2,opacity=0.5]
- ([xshift=-1.5*\rad]thmname.north west) to[out=-90,in=0,looseness=1.5] +(3pt,-6pt) -| +(10pt,0)--cycle;
+ ([xshift=-1.5*\rad]thmname.north west) to[out=180,in=305,looseness=1.5] +(3pt,-6pt) -| ++(12pt,0)--cycle;
\fill[#2,opacity=0.5]
([xshift=3*\rad]thmname.north east) to[out=0,in=-90] +(5pt,-5pt) -| ++(-10pt,0) --cycle;
\end{pgfonlayer}
@@ -944,7 +1080,7 @@
\path[fill=#2,drop shadow={opacity=0.3,shadow xshift=.3pt}]
([xshift=-2*\rad,yshift=-5pt]frame.south east) coordinate (SE) to[out=0,in=180] +(4*\rad,5pt+\theight) --([shift={(-\tlen+4*\rad,5pt+\theight)}]SE) to[out=180,in=0] +(-4*\rad,-5pt-\theight) --cycle;
\begin{pgfonlayer}{bottom}
- \fill[color=#2!80!black] ([xshift=-1.35*\tlen+\Rad,yshift=-5pt]frame.south east) to[out=180,in=90,looseness=0.7] ([xshift=-1.35*\tlen-0.5*\Rad]frame.south east) coordinate (NWl)--([xshift=2*\rad]NWl) to[out=-90,in=-180,looseness=0.7] ([xshift=-1.35*\tlen+\Rad,yshift=-5pt]frame.south east)--cycle;
+ \fill[color=#2,opacity=0.5] ([xshift=-1.35*\tlen+\Rad,yshift=-5pt]frame.south east) to[out=180,in=90,looseness=0.7] ([xshift=-1.35*\tlen-0.5*\Rad]frame.south east) coordinate (NWl)--([xshift=2*\rad]NWl) to[out=-90,in=-180,looseness=0.7] ([xshift=-1.35*\tlen+\Rad,yshift=-5pt]frame.south east)--cycle;
\end{pgfonlayer}
}
\newcommand{\my at lemma@overlay at first}[2]{
@@ -954,10 +1090,10 @@
\def\rad{7pt}%
\path[fill=#2,drop shadow={opacity=0.3,shadow xshift=.05cm,shadow yshift=-.05cm}]node[append after command={
([xshift=-1.5*\rad]thmname.north west) to[out=0,in=180,looseness=1] ([xshift=2.5*\rad]thmname.south west) --([xshift=-\rad]thmname.south east) to[out=0,in=180,looseness=1] ([xshift=3*\rad]thmname.north east) --cycle},
- text=white,font=\bfseries,align=center,inner ysep=1.5mm,minimum height=0.6cm,right] (thmname) at ([xshift=\rad,yshift=-\rad]frame.north west) {\hspace*{10pt}#1.\ \ifdefvoid{\tcbtitletext}{}{(\tcbtitletext)}};
+ text=white,font=\bfseries,align=center,inner ysep=1.5mm,minimum height=0.6cm,right] (thmname) at ([xshift=\rad,yshift=-.7*\rad]frame.north west) {\hspace*{10pt}#1.\ \ifdefvoid{\tcbtitletext}{}{(\itshape\tcbtitletext)}};
\begin{pgfonlayer}{bottom}
\fill[#2,opacity=0.5]
- ([xshift=-1.5*\rad]thmname.north west) to[out=-90,in=0,looseness=1.5] +(3pt,-6pt) -| +(10pt,0)--cycle;
+ ([xshift=-1.5*\rad]thmname.north west) to[out=180,in=305,looseness=1.5] +(3pt,-6pt) -| ++(12pt,0)--cycle;
\fill[#2,opacity=0.5]
([xshift=3*\rad]thmname.north east) to[out=0,in=-90] +(5pt,-5pt) -| ++(-10pt,0) --cycle;
\end{pgfonlayer}
@@ -971,7 +1107,7 @@
\path[fill=#1,drop shadow={opacity=0.3,shadow xshift=.3pt}]
([xshift=-2*\rad,yshift=-5pt]frame.south east) coordinate (SE) to[out=0,in=180] +(4*\rad,5pt+\theight) --([shift={(-\tlen+4*\rad,5pt+\theight)}]SE) to[out=180,in=0] +(-4*\rad,-5pt-\theight) --cycle;
\begin{pgfonlayer}{bottom}
- \fill[color=#1!80!black] ([xshift=-1.35*\tlen+\Rad,yshift=-5pt]frame.south east) to[out=180,in=90,looseness=0.7] ([xshift=-1.35*\tlen-0.5*\Rad]frame.south east) coordinate (NWl)--([xshift=2*\rad]NWl) to[out=-90,in=-180,looseness=0.7] ([xshift=-1.35*\tlen+\Rad,yshift=-5pt]frame.south east)--cycle;
+ \fill[color=#1,opacity=0.5] ([xshift=-1.35*\tlen+\Rad,yshift=-5pt]frame.south east) to[out=180,in=90,looseness=0.7] ([xshift=-1.35*\tlen-0.5*\Rad]frame.south east) coordinate (NWl)--([xshift=2*\rad]NWl) to[out=-90,in=-180,looseness=0.7] ([xshift=-1.35*\tlen+\Rad,yshift=-5pt]frame.south east)--cycle;
\end{pgfonlayer}
}
\makeatother
@@ -978,30 +1114,20 @@
%%
% proof
+\newcommand{\itbf}[1]{\textit{\textbf{#1}}}
\declaretheoremstyle[
spaceabove=3pt,spacebelow=3pt,
headfont=\normalfont\bfseries,
notefont=\normalfont\bfseries,notebraces={(}{)},
bodyfont=\normalfont,
- postheadspace=1em,
+ postheadspace=.5em,
headpunct={.},
- qed=\qedsymbol
+ qed=$\blacksquare$,%\qedsymbol
]{Proofstyle}
-\declaretheorem[style=Proofstyle,numbered=no,name={ Proof}]{Proof}
+\declaretheorem[style=Proofstyle,numbered=no,name={\itbf{Proof}}]{Proof}
\renewenvironment{proof}{\begin{Proof} }{\end{Proof}}
-\declaretheorem[style=Proofstyle,numbered=no,name={ Solution}]{solution}
-%% --------参考文献
-\RequirePackage[
-backend=biber,
-style=gb7714-2015,
-sorting=nty
-]{biblatex}
-\addbibresource{ref.bib}
-\indexsetup{level=\chapter*,noclearpage}
-\makeindex[title={ References},columns=3,columnsep=15pt,columnseprule]
-\makeindex
-\newcommand{\Diff}[2][]{\frac{\partial #1}{\partial #2}}
-\newcommand{\Dif}[2]{\frac{\dd #1}{\dd #2}}
+\declaretheorem[style=Proofstyle,numbered=no,name={\itbf{Solution}}]{solution}
+
%%%%%%%%%%%%%%% 计数器知识 %%%%%%%%%%%%%%%%%%%%%%
% 每次用 \newcounter{foo} 定义新计数器,内部都会定义这几个命令
Deleted: trunk/Master/texmf-dist/tex/latex/beautybook/stys/Beautybook-birkar.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/beautybook/stys/Beautybook-birkar.sty 2023-10-02 19:45:53 UTC (rev 68437)
+++ trunk/Master/texmf-dist/tex/latex/beautybook/stys/Beautybook-birkar.sty 2023-10-02 19:46:59 UTC (rev 68438)
@@ -1,124 +0,0 @@
-\NeedsTeXFormat{LaTeX2e}[1995/12/01]
-\ProvidesPackage{stys/Beautybook-birkar}[2022/05/21,v1.0]
-\usepackage{anyfontsize}
-\usepackage[dvipsnames,svgnames,x11names,table]{xcolor}% Driver-independent color extensions
-\usepackage{tikz}
-\usetikzlibrary{intersections, positioning, fit, backgrounds, shapes, fadings,
-decorations.pathmorphing, graphs, quotes, angles, calc, through, backgrounds}
-\usepackage{graphicx}
-\usetikzlibrary{calc,fadings,patterns}
-\usepackage{adjustbox}
-
-% Define the layers to be used in document.
-% *****************************************************
-\pgfdeclarelayer{background}
-\pgfdeclarelayer{foreground}
-\pgfdeclarelayer{top}
-\pgfdeclarelayer{bottom}
-\pgfsetlayers{bottom,background,main,foreground,top}
-\definecolor{RED}{RGB}{220, 41, 26}
-\definecolor{arc color}{HTML}{546E7A}
-
-\tikzfading[name=fade right,
- right color =transparent!100,
- left color=transparent!0]
-\tikzfading[name=fade left,
- left color =transparent!100,
- right color=transparent!50]
-\tikzfading[name=fade up,
- top color =transparent!100,
- bottom color=transparent!50]
-\tikzfading[name=fade down,
- bottom color =transparent!100,
- top color=transparent!50]
-\makeatletter
-\newcommand*\makecover{
- %% Use the Tikz library positioning and clear the page header and footer
- \usetikzlibrary{positioning}
- \thispagestyle{empty}
- \begin{tikzpicture}[remember picture,overlay]
- \begin{pgfonlayer}{bottom}
- \fill[coverfgcolor]
- (current page.north west) rectangle (current page.south east);
- \fill[RED]
- ([shift={(2.05cm,0)}]current page.north west) rectangle ([shift={(2.35cm,-6cm)}]current page.north west);
- \fill[coverfgcolor!80,opacity=0.5]
- ([shift={(0,-2cm)}]current page.north west) arc (90:-90:.3\paperheight) --cycle;
- \fill[coverfgcolor!80,opacity=0.5]
- ([shift={(0,-4cm)}]current page.north east) arc (90:270:.2\paperheight) --cycle;
- \fill[coverfgcolor!80]
- (current page.north west) rectangle ([shift={(2cm,0)}]current page.south west);
- \begin{scope}[opacity=0.8]
- \coordinate (triangleA) at ([shift={(1cm,-1cm)}]current page.north);
- \coordinate (triangleB) at ([shift={(-.85\linewidth,-.46\paperheight)}]triangleA);
- \coordinate (triangleC) at ([shift={(.52\linewidth,-.46\paperheight)}]triangleA);
- \draw[name path=triangle,very thick,coverfgcolor!70!white]
- (triangleA)--(triangleB)--(triangleC)--cycle;
- \draw[name path=circle,very thick,coverfgcolor!70!white]
- ([shift={(-1.6cm,-7.3cm)}]triangleA) coordinate (O) circle(6cm);
- %标注每个交点坐标
- \fill [name intersections={of=triangle and circle, name=i, total=\t}]
- [coverbar,opacity=0.5, every node/.style={above left, white, opacity=1}]
- \foreach \s in {1,...,\t}{(i-\s) circle (1em) node {}};
- \draw[name path=l,very thick,coverfgcolor!70!white] (i-1) -- (triangleC);
- \draw[very thick,coverfgcolor!70!white] (i-6) -- (triangleB);
- \draw[name path=l2,very thick,coverfgcolor!70!white] (i-4) -- (triangleA);
- \fill[name intersections={of=l and circle,name=j,total=\l}]
- [coverbar,opacity=0.5, every node/.style={above left, white, opacity=1}]
- \foreach \c in {1,...,\l}{(j-\c) circle (1em) node {}};
-
- \fill[name intersections={of=l2 and l,name=jj,total=\ll}]
- [coverbar,opacity=0.5, every node/.style={above left, white, opacity=1}]
- \foreach \cc in {1,...,\ll}{(jj-\cc) circle (1em) node {}};
- \end{scope}
- \end{pgfonlayer}
- \begin{pgfonlayer}{foreground}
- \fill[coverbar,opacity=.5]
- ([yshift=2\outermarginwidth]current page.west) rectangle ([xshift=\outermarginwidth,yshift=-.2\outermarginwidth]current page.west);
- \end{pgfonlayer}
- \shade[left color=coverfgcolor,right color=coverfgcolor!60,opacity=.3]
- ([xshift=\outermarginwidth,yshift=2\outermarginwidth]current page.west) rectangle (current page.south east);
- \node[anchor=south] at ([xshift=.3\outermarginwidth,yshift=-.4\covershift]current page.north) {%
- \parbox{.8\paperwidth}{
- \filright
- \color{white}\fontsize{20}{23}\selectfont\@bookseries}
- };
- \node[ anchor=south] at ([xshift=.3\outermarginwidth,yshift=-.57\paperheight]current page.north)
- {\parbox{.8\paperwidth}{%
- \raggedright%
- {\renewcommand\baselinestretch{1.1}\selectfont \color{white}\bfseries\fontsize{40}{40}\selectfont\@title\\[0.5ex]
- \color{white}\fontsize{30}{30}\selectfont
- \ifdefvoid{\@subtitle}{}{\@subtitle}\par}
- }};
- \node[anchor=west,font=\fontsize{23}{23}\selectfont,text=white] at ([xshift=1.8\outermarginwidth,yshift=-.6\covershift]current page.west) {\@edition};
- \node[anchor=west,font=\Huge,text=white] at ([xshift=1.8\outermarginwidth,yshift=\covershift]current page.west) {\@author};
- \node[left,text=white,font=\rmfamily\Large,] at
- ([shift={(-1cm,2cm)}]current page.south east) %
- {\raisebox{-1.1cm}{\includegraphics[width=0.2\linewidth]{\@presslogo}}\hspace*{-3.5ex}\begin{varwidth}{.4\textwidth}\tikz\draw[white,line width=1.25pt] (0,0)--++(0,1cm);\,\raisebox{.25cm}{\@pressname} \end{varwidth}};%
- \end{tikzpicture}%
- \newpage
-}
-\makeatother
-
-\endinput
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
Modified: trunk/Master/texmf-dist/tex/latex/beautybook/stys/Beautybook-bottompage.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/beautybook/stys/Beautybook-bottompage.sty 2023-10-02 19:45:53 UTC (rev 68437)
+++ trunk/Master/texmf-dist/tex/latex/beautybook/stys/Beautybook-bottompage.sty 2023-10-02 19:46:59 UTC (rev 68438)
@@ -2,21 +2,23 @@
\ProvidesPackage{stys/Beautybook-bottompage}[2023/01/18,v2.0]
\usepackage[ISBN=978-80-85955-35-4,SC0]{ean13isbn}
\makeatletter
+%%----------------------------------封面信息定义--------------------------------------------------------%%
\newcommand\summary[1]{\def\@summary{#1}}
\newcommand\ISBNcode[1]{\def\@ISBNcode{#1}}
\newcommand\bottomimage[1]{\def\@bottomimage{#1}}
+%%----------------------------------封面信息定义--------------------------------------------------------%%
\makeatother
% Define the layers to be used in document.
% *****************************************************
-\pgfdeclarelayer{background}
-\pgfdeclarelayer{foreground}
-\pgfdeclarelayer{top}
-\pgfdeclarelayer{bottom}
+\pgfdeclarelayer{background} %背景%底层
+\pgfdeclarelayer{foreground} %上层
+\pgfdeclarelayer{top} %顶部
+\pgfdeclarelayer{bottom} %底部
\pgfsetlayers{bottom,background,main,foreground,top}
-\definecolor{coverbgcolor}{HTML}{e0e0e0}
-\definecolor{coverfgcolor}{HTML}{455a64}
-\definecolor{coverbar}{HTML}{c02c38}
-\definecolor{bottomcolor}{HTML}{24661c}
+\definecolor{coverbgcolor}{HTML}{e0e0e0} %f9b868
+\definecolor{coverfgcolor}{HTML}{826e68} %503D4B
+\definecolor{coverbar}{HTML}{7c9092}
+\definecolor{bottomcolor}{HTML}{826e68}
\makeatletter
\newcommand*\makebottomcover{
%% Use the Tikz library positioning and clear the page header and footer
@@ -45,11 +47,11 @@
\node[text=white,left] at ([xshift=0cm,yshift=-.25\covershift]current page.north east) {%
\parbox{.6\linewidth}{\baselineskip=22.5pt
\raggedright
- \fontsize{20}{23}\selectfont\@bookseries}
+ \sc\fontsize{20}{23}\selectfont\@bookseries}
}; %系列丛书名称
\node[right,text=white,font=\rmfamily\Large,] at
([shift={(-.5cm,1.5cm)}]current page.south west) %
- {\raisebox{-1cm}{\includegraphics[width=2cm]{\@presslogo}}\hspace*{0ex}\begin{varwidth}{.4\textwidth}\tikz\draw[white,line width=1.25pt] (0,0)--++(0,1cm);\,\raisebox{.25cm}{\@pressname} \end{varwidth}};%
+ {\raisebox{-1.1cm}{\includegraphics[width=0.2\linewidth]{\@presslogo}}\hspace*{-3.5ex}\begin{varwidth}{.4\textwidth}\tikz\draw[white,line width=1.25pt] (0,0)--++(0,1cm);\,\raisebox{.25cm}{\@pressname} \end{varwidth}};%
\ifdefvoid{\@ISBNcode}{}{
\node[scale=1.5] (isbn) at ([shift={(-1.85\outermarginwidth,.5\covershift)}]current page.south east) {\@ISBNcode};%
\begin{pgfonlayer}{bottom}
Deleted: trunk/Master/texmf-dist/tex/latex/beautybook/stys/Beautybook-cn.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/beautybook/stys/Beautybook-cn.sty 2023-10-02 19:45:53 UTC (rev 68437)
+++ trunk/Master/texmf-dist/tex/latex/beautybook/stys/Beautybook-cn.sty 2023-10-02 19:46:59 UTC (rev 68438)
@@ -1,102 +0,0 @@
-\NeedsTeXFormat{LaTeX2e}[1995/12/01]
-\ProvidesPackage{stys/Beautybook-cn}[2023/05/10,v1.0]
-\usetikzlibrary{calc,fadings,patterns}
-\usepackage{adjustbox}
-\makeatletter
-\newcommand\entitle[1]{\def\@entitle{#1}}
-\makeatother
-\tikzfading[name=fade right,
- right color =transparent!100,
- left color=transparent!50]
-\tikzfading[name=fade left,
- left color =transparent!100,
- right color=transparent!50]
-\tikzfading[name=fade up,
-top color =transparent!100,
-bottom color=transparent!50]
-\tikzfading[name=fade down,
- bottom color =transparent!100,
- top color=transparent!50]
-\makeatletter
-\newcommand*\makecover{
- %% Use the Tikz library positioning and clear the page header and footer
- \usetikzlibrary{positioning}
- \thispagestyle{empty}
- \begin{tikzpicture}[remember picture,overlay]
- \fill[coverfgcolor!75]
- (current page.north west) rectangle (current page.south east);
- \fill[coverfgcolor!50]
- ([xshift=-3\covershift,yshift=-.4\covershift]current page.east) rectangle ([yshift=-1.35\covershift]current page.east);
- \fill[coverfgcolor]
- ([xshift=\outermarginwidth]current page.north west) rectangle ([xshift=-\outermarginwidth,yshift=1.5\covershift]current page.south east);
- \fill[coverbar]
- ([yshift=.44\covershift]current page.west) rectangle ([xshift=\outermarginwidth,yshift=-.4\covershift]current page.west);
- \node[left] at ([xshift=-1.8cm,yshift=-1.5cm]current page.north east) {%
- \parbox{3\covershift}{
- \raggedleft
- \color{white}\bfseries\fontsize{18}{22}\selectfont\@bookseries}
- };
- \node[right] at ([xshift=\outermarginwidth,yshift=1.5*\covershift]current page.west)
- {\parbox{.8\paperwidth}{%
- \filright%
- \color{white}\bfseries\fontsize{30}{30}\selectfont\@entitle\\[-1.6ex]
- \begin{tikzpicture}
- \draw[white,line width=1pt] (0,0) --++ (\paperwidth-3\outermarginwidth,0);
- \end{tikzpicture}\\[-.5ex]
- \color{white}\bfseries\fontsize{30}{30}\selectfont
- \ifdefvoid{\@title}{}{\@title}
- }};
- \node[left,inner sep=0pt,outer sep=0pt] at ([xshift=1.2\outermarginwidth,yshift=1.8cm]current page.east)
- {%
- \adjustbox{valign=t}{
- \begin{minipage}{.25\textwidth}
- \begin{tikzpicture}
- \foreach \x/\r in {1.2/6,.8/4} {
- \draw[white,line width=\x pt] (0,0) circle [radius=\r pt];}
- \fill[white] (0,0) circle [radius=2.5pt];
- \end{tikzpicture}
- \hspace{2pt}\color{white}\fontsize{20}{25}\selectfont Editors
- \end{minipage}}
- \hfill
- \adjustbox{valign=t}{\begin{minipage}{.45\textwidth}
- \raggedright\color{white}\fontsize{20}{25}\selectfont\@author
- \end{minipage}}
- };% 封面作者信息栏
- \fill [path picture={ \node at (path picture bounding box.center)
- {\includegraphics[height=.92\linewidth]{\@coverimage}};}]
- ([xshift=\outermarginwidth]current page.south west) rectangle ++(1.8*\covershift,.58\paperheight);
- \fill[pattern color=coverfgcolor!70,pattern=horizontal lines,opacity=0.8]
- ([xshift=\outermarginwidth,yshift=.2\covershift]current page.south west) rectangle ([xshift=-\outermarginwidth,yshift=1.43\covershift]current page.south east);
- \fill [coverfgcolor!80,path fading=fade right]%
- ([xshift=\outermarginwidth+.5\linewidth+.2cm,yshift=.2\covershift]current page.south west) rectangle ([xshift=-\outermarginwidth,yshift=1.43\covershift]current page.south east);
- \fill [coverfgcolor!80,path fading=fade left]%
- ([xshift=\outermarginwidth+.5\linewidth+.2cm,yshift=.2\covershift]current page.south west) rectangle ([xshift=-\outermarginwidth,yshift=1.43\covershift]current page.south east);
- \node[left,text=white,font=\rmfamily\Large,] at
- ([shift={(-2cm,2cm)}]current page.south east) %
- {\raisebox{-1cm}{\includegraphics[width=2cm]{\@presslogo}}\hspace*{0ex}\begin{varwidth}{.4\textwidth}\tikz\draw[white,line width=1.25pt] (0,0)--++(0,1cm);\,\raisebox{.25cm}{\@pressname} \end{varwidth}};
- \end{tikzpicture}
- \newpage
-}
-\makeatother
-\endinput
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
Added: trunk/Master/texmf-dist/tex/latex/beautybook/stys/Beautybook-cover-birkar.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/beautybook/stys/Beautybook-cover-birkar.sty (rev 0)
+++ trunk/Master/texmf-dist/tex/latex/beautybook/stys/Beautybook-cover-birkar.sty 2023-10-02 19:46:59 UTC (rev 68438)
@@ -0,0 +1,125 @@
+\NeedsTeXFormat{LaTeX2e}[1995/12/01]
+\ProvidesPackage{stys/Beautybook-cover-birkar}[2022/05/21,v1.0]
+\usepackage{anyfontsize} % 提供\fontsize{}{}\selectfont命令
+\usepackage{etoolbox} %提供自定义封面选项接口
+\usepackage[dvipsnames,svgnames,x11names,table]{xcolor}%颜色宏包 % Driver-independent color extensions
+\usepackage{tikz}
+\usetikzlibrary{intersections, positioning, fit, backgrounds, shapes, fadings,
+decorations.pathmorphing, graphs, quotes, angles, calc, through, backgrounds} % %Tikz指令库
+\usepackage{graphicx} %插图
+\usetikzlibrary{calc,fadings,patterns}
+\usepackage{adjustbox} %修正minipage顶部对齐问题
+
+% Define the layers to be used in document.
+% *****************************************************
+\pgfdeclarelayer{background} %背景%底层
+\pgfdeclarelayer{foreground} %上层
+\pgfdeclarelayer{top} %顶部
+\pgfdeclarelayer{bottom} %底部
+\pgfsetlayers{bottom,background,main,foreground,top}
+\definecolor{RED}{RGB}{220, 41, 26}
+\definecolor{arc color}{HTML}{546E7A}
+
+\tikzfading[name=fade right,
+ right color =transparent!100,
+ left color=transparent!0]
+\tikzfading[name=fade left,
+ left color =transparent!100,
+ right color=transparent!50]
+\tikzfading[name=fade up,
+ top color =transparent!100,
+ bottom color=transparent!50]
+\tikzfading[name=fade down,
+ bottom color =transparent!100,
+ top color=transparent!50]
+\makeatletter
+\newcommand*\makecover{
+ %% Use the Tikz library positioning and clear the page header and footer
+ \usetikzlibrary{positioning}
+ \thispagestyle{empty}
+ \begin{tikzpicture}[remember picture,overlay]
+ \begin{pgfonlayer}{bottom}
+ \fill[coverfgcolor]
+ (current page.north west) rectangle (current page.south east);% 填充封面背景颜色 (coverbgcolor)
+ \fill[RED]
+ ([shift={(2.05cm,0)}]current page.north west) rectangle ([shift={(2.35cm,-6cm)}]current page.north west);
+ \fill[coverfgcolor!80,opacity=0.5]
+ ([shift={(0,-2cm)}]current page.north west) arc (90:-90:.3\paperheight) --cycle;
+ \fill[coverfgcolor!80,opacity=0.5]
+ ([shift={(0,-4cm)}]current page.north east) arc (90:270:.2\paperheight) --cycle;
+ \fill[coverfgcolor!80]
+ (current page.north west) rectangle ([shift={(2cm,0)}]current page.south west);
+ \begin{scope}[opacity=0.8]
+ \coordinate (triangleA) at ([shift={(1cm,-1cm)}]current page.north);
+ \coordinate (triangleB) at ([shift={(-.85\linewidth,-.46\paperheight)}]triangleA);
+ \coordinate (triangleC) at ([shift={(.52\linewidth,-.46\paperheight)}]triangleA);
+ \draw[name path=triangle,very thick,coverfgcolor!70!white]
+ (triangleA)--(triangleB)--(triangleC)--cycle;
+ \draw[name path=circle,very thick,coverfgcolor!70!white]
+ ([shift={(-1.6cm,-7.3cm)}]triangleA) coordinate (O) circle(6cm);
+ %标注每个交点坐标
+ \fill [name intersections={of=triangle and circle, name=i, total=\t}]
+ [coverbar,opacity=0.5, every node/.style={above left, white, opacity=1}]
+ \foreach \s in {1,...,\t}{(i-\s) circle (1em) node {}};
+ \draw[name path=l,very thick,coverfgcolor!70!white] (i-1) -- (triangleC);
+ \draw[very thick,coverfgcolor!70!white] (i-6) -- (triangleB);
+ \draw[name path=l2,very thick,coverfgcolor!70!white] (i-4) -- (triangleA);
+ \fill[name intersections={of=l and circle,name=j,total=\l}]
+ [coverbar,opacity=0.5, every node/.style={above left, white, opacity=1}]
+ \foreach \c in {1,...,\l}{(j-\c) circle (1em) node {}};
+
+ \fill[name intersections={of=l2 and l,name=jj,total=\ll}]
+ [coverbar,opacity=0.5, every node/.style={above left, white, opacity=1}]
+ \foreach \cc in {1,...,\ll}{(jj-\cc) circle (1em) node {}};
+ \end{scope}
+ \end{pgfonlayer}
+ \begin{pgfonlayer}{foreground}
+ \fill[coverbar,opacity=.5]
+ ([yshift=2\outermarginwidth]current page.west) rectangle ([xshift=\outermarginwidth,yshift=-.2\outermarginwidth]current page.west); % 最左侧装饰矩形
+ \end{pgfonlayer}
+ \shade[left color=coverfgcolor,right color=coverfgcolor!60,opacity=.3]
+ ([xshift=\outermarginwidth,yshift=2\outermarginwidth]current page.west) rectangle (current page.south east); % 标题背景大矩形
+ \node[anchor=south] at ([xshift=.3\outermarginwidth,yshift=-.4\covershift]current page.north) {%
+ \parbox{.8\paperwidth}{
+ \filright
+ \color{white}\sffamily\fontsize{20}{23}\selectfont\@bookseries}
+ }; %系列丛书名称
+ \node[ anchor=south] at ([xshift=.3\outermarginwidth,yshift=-.57\paperheight]current page.north)
+ {\parbox{.8\paperwidth}{%
+ \raggedright%
+ {\renewcommand\baselinestretch{1.1}\selectfont \color{white}\sffamily\bfseries\fontsize{40}{40}\selectfont\@title\\[0.5ex]
+ \color{white}\sffamily\fontsize{30}{30}\selectfont
+ \ifdefvoid{\@subtitle}{}{\@subtitle}\par}
+ }};% 封面标题与副标题
+ \node[anchor=west,font=\sffamily\fontsize{23}{23}\selectfont,text=white] at ([xshift=1.8\outermarginwidth,yshift=-.6\covershift]current page.west) {\@edition};
+ \node[anchor=west,font=\sffamily\Huge,text=white] at ([xshift=1.8\outermarginwidth,yshift=\covershift]current page.west) {\@author};
+ \node[left,text=white,font=\rmfamily\Large,] at
+ ([shift={(-1cm,2cm)}]current page.south east) %
+ {\raisebox{-1.1cm}{\includegraphics[width=0.2\linewidth]{\@presslogo}}\hspace*{-3.5ex}\begin{varwidth}{.4\textwidth}\tikz\draw[white,line width=1.25pt] (0,0)--++(0,1cm);\,\raisebox{.25cm}{\@pressname} \end{varwidth}};%
+ \end{tikzpicture}%
+ {\newpage\thispagestyle{empty}}
+}
+\makeatother
+
+\endinput
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
Property changes on: trunk/Master/texmf-dist/tex/latex/beautybook/stys/Beautybook-cover-birkar.sty
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: trunk/Master/texmf-dist/tex/latex/beautybook/stys/Beautybook-cover-cn.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/beautybook/stys/Beautybook-cover-cn.sty (rev 0)
+++ trunk/Master/texmf-dist/tex/latex/beautybook/stys/Beautybook-cover-cn.sty 2023-10-02 19:46:59 UTC (rev 68438)
@@ -0,0 +1,103 @@
+\NeedsTeXFormat{LaTeX2e}[1995/12/01]
+\ProvidesPackage{stys/Beautybook-cover-cn}[2023/05/10,v1.0]
+\usetikzlibrary{calc,fadings,patterns}
+\usepackage{adjustbox} %修正minipage顶部对齐问题
+%%%%===============================================================%%%%%
+% \definecolor{coverbgcolor}{HTML}{9CCCDA}
+% \definecolor{coverfgcolor}{HTML}{508E99}
+% \definecolor{coverbar}{HTML}{305756}
+\tikzfading[name=fade right,
+ right color =transparent!100,
+ left color=transparent!50]
+\tikzfading[name=fade left,
+ left color =transparent!100,
+ right color=transparent!50]
+\tikzfading[name=fade up,
+top color =transparent!100,
+bottom color=transparent!50]
+\tikzfading[name=fade down,
+ bottom color =transparent!100,
+ top color=transparent!50]
+\makeatletter
+\newcommand*\makecover{
+ %% Use the Tikz library positioning and clear the page header and footer
+ \usetikzlibrary{positioning}
+ \thispagestyle{empty}
+ \begin{tikzpicture}[remember picture,overlay]
+ \fill[coverfgcolor!75]
+ (current page.north west) rectangle (current page.south east);% 填充封面背景颜色 (coverbgcolor)
+ \fill[coverfgcolor!50]
+ ([xshift=-3\covershift,yshift=-.4\covershift]current page.east) rectangle ([yshift=-1.35\covershift]current page.east); % 被标题背景遮挡露出一部分的装饰矩形
+ \fill[coverfgcolor]
+ ([xshift=\outermarginwidth]current page.north west) rectangle ([xshift=-\outermarginwidth,yshift=1.5\covershift]current page.south east); % 标题背景大矩形
+ \fill[coverbar]
+ ([yshift=.44\covershift]current page.west) rectangle ([xshift=\outermarginwidth,yshift=-.4\covershift]current page.west); % 最左侧装饰矩形
+ \node[left] at ([xshift=-1.8cm,yshift=-1.5cm]current page.north east) {%
+ \parbox{3\covershift}{
+ \raggedleft
+ \color{white}\sffamily\bfseries\fontsize{18}{22}\selectfont\@bookseries}
+ }; %系列丛书名称
+ \node[right] at ([xshift=\outermarginwidth,yshift=1.5*\covershift]current page.west)
+ {\parbox{.8\paperwidth}{%
+ \filright%
+ \color{white}\sffamily\bfseries\fontsize{30}{30}\selectfont\@title\\[-1.6ex]
+ \begin{tikzpicture}
+ \draw[white,line width=1pt] (0,0) --++ (\paperwidth-3\outermarginwidth,0);
+ \end{tikzpicture}\\[-.5ex]
+ \color{white}\sffamily\bfseries\fontsize{30}{30}\selectfont
+ \ifdefvoid{\@subtitle}{}{\@subtitle}
+ }};% 封面英文书名与中文书名
+ \node[left,inner sep=0pt,outer sep=0pt] at ([xshift=1.2\outermarginwidth,yshift=1.8cm]current page.east)
+ {%
+ \adjustbox{valign=t}{
+ \begin{minipage}{.25\textwidth}
+ \begin{tikzpicture}
+ \foreach \x/\r in {1.2/6,.8/4} {
+ \draw[white,line width=\x pt] (0,0) circle [radius=\r pt];}
+ \fill[white] (0,0) circle [radius=2.5pt];
+ \end{tikzpicture}
+ \hspace{2pt}\color{white}\sffamily\fontsize{20}{25}\selectfont Editors
+ \end{minipage}}
+ \hfill
+ \adjustbox{valign=t}{\begin{minipage}{.45\textwidth}
+ \raggedright\color{white}\sffamily\fontsize{20}{25}\selectfont\@author
+ \end{minipage}}
+ };% 封面作者信息栏
+ \fill [path picture={ \node at (path picture bounding box.center)
+ {\includegraphics[height=.92\linewidth]{\@coverimage}};}]
+ ([xshift=\outermarginwidth]current page.south west) rectangle ++(1.8*\covershift,.58\paperheight);
+ \fill[pattern color=coverfgcolor!70,pattern=horizontal lines,opacity=0.8]
+ ([xshift=\outermarginwidth,yshift=.2\covershift]current page.south west) rectangle ([xshift=-\outermarginwidth,yshift=1.43\covershift]current page.south east);
+ \fill [coverfgcolor!80,path fading=fade right]%
+ ([xshift=\outermarginwidth+.5\linewidth+.2cm,yshift=.2\covershift]current page.south west) rectangle ([xshift=-\outermarginwidth,yshift=1.43\covershift]current page.south east);
+ \fill [coverfgcolor!80,path fading=fade left]%
+ ([xshift=\outermarginwidth+.5\linewidth+.2cm,yshift=.2\covershift]current page.south west) rectangle ([xshift=-\outermarginwidth,yshift=1.43\covershift]current page.south east);
+ \node[left,text=white,font=\rmfamily\Large,] at
+ ([shift={(-2cm,2cm)}]current page.south east) %
+ {\raisebox{-1.1cm}{\includegraphics[width=0.2\linewidth]{\@presslogo}}\hspace*{-3.5ex}\begin{varwidth}{.4\textwidth}\tikz\draw[white,line width=1.25pt] (0,0)--++(0,1cm);\,\raisebox{.25cm}{\@pressname} \end{varwidth}};%
+ \end{tikzpicture}%
+ {\newpage\thispagestyle{empty}}}
+\makeatother
+\endinput
+% %%%%===============================================================%%%%%
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
Property changes on: trunk/Master/texmf-dist/tex/latex/beautybook/stys/Beautybook-cover-cn.sty
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: trunk/Master/texmf-dist/tex/latex/beautybook/stys/Beautybook-cover-en.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/beautybook/stys/Beautybook-cover-en.sty (rev 0)
+++ trunk/Master/texmf-dist/tex/latex/beautybook/stys/Beautybook-cover-en.sty 2023-10-02 19:46:59 UTC (rev 68438)
@@ -0,0 +1,87 @@
+\NeedsTeXFormat{LaTeX2e}[1995/12/01]
+\ProvidesPackage{stys/Beautybook-cover-en}[2022/05/21,v1.0]
+\usepackage{anyfontsize} % 提供\fontsize{}{}\selectfont命令
+\usepackage{etoolbox} %提供自定义封面选项接口
+\usepackage[dvipsnames,svgnames,x11names,table]{xcolor}%颜色宏包 % Driver-independent color extensions
+\usepackage{tikz}
+\usepackage{graphicx} %插图
+\usetikzlibrary{calc,fadings,patterns}
+\usepackage{adjustbox} %修正minipage顶部对齐问题
+\tikzfading[name=fade right,
+ right color =transparent!100,
+ left color=transparent!50]
+\tikzfading[name=fade left,
+ left color =transparent!100,
+ right color=transparent!50]
+\tikzfading[name=fade up,
+ top color =transparent!100,
+ bottom color=transparent!50]
+\tikzfading[name=fade down,
+ bottom color =transparent!100,
+ top color=transparent!50]
+\makeatletter
+\newcommand*\makecover{
+ %% Use the Tikz library positioning and clear the page header and footer
+ \usetikzlibrary{positioning}
+ \thispagestyle{empty}
+ \begin{tikzpicture}[remember picture,overlay]
+ \fill[coverfgcolor]
+ (current page.north west) rectangle (current page.south east);% 填充封面背景颜色 (coverbgcolor)
+ \coordinate (start) at ($(current page.east)!0.5!(current page.north east)+(1,-1)$);
+ \coordinate (end) at (current page.north west);
+ \foreach \i in {0,0.01,...,1}
+ {
+ \coordinate (point) at ($(start)!\i!(end)$);
+ \draw[coverfgcolor!50]
+ ($(point)+(310*\i:6)$)--
+ ($(point)+(310*\i+120:6)$)--
+ ($(point)+(310*\i+240:6)$)--
+ ($(point)+(310*\i:6)$);
+ }
+ \coordinate (start) at (current page.south west);
+ \coordinate (end) at (current page.east);
+ \foreach \i in {0,0.02,...,1}
+ {
+ \coordinate (point) at ($(start)!\i!(end)$);
+ \draw[coverfgcolor!50]
+ ($(point)+(310*\i:10)$)--
+ ($(point)+(310*\i+120:10)$)--
+ ($(point)+(310*\i+240:10)$)--
+ ($(point)+(310*\i:10)$);
+ }
+ \shade[bottom color=coverfgcolor,top color=coverfgcolor!70,opacity=0.7]
+ ([xshift=.5\outermarginwidth]current page.north west) rectangle (current page.south east); % 背景大矩形
+ \shade[left color=coverfgcolor,right color=coverfgcolor!60,opacity=0.5]
+ ([xshift=\outermarginwidth,yshift=2\outermarginwidth]current page.west) rectangle (current page.south east); % 标题背景大矩形
+ \fill[coverbar!90,opacity=0.8]
+ ([yshift=2\outermarginwidth]current page.west) rectangle ([xshift=\outermarginwidth,yshift=-.2\outermarginwidth]current page.west); % 最左侧装饰矩形
+ \foreach \lx/\rx/\ry/\bc/\tc in {
+ 1/1.5/1.75/70/80,1.5/2/1.6/65/75,2/2.5/1.3/60/70,2.5/3/1/55/65,3/3.5/.7/50/60,3.5/4/1.2/60/70,4/4.5/1.9/75/85,4.5/5/1.1/55/65,5/5.5/1.2/60/70,6/6.5/1.6/65/75,6.5/7/1.3/60/70,7/7.5/1.87/70/80,7.5/8/1/55/65,8/8.5/.9/50/60,8.5/9/1.8/70/80,9/9.5/1.6/65/75,9.5/10/1.4/60/70,10/10.5/1/55/65,10.5/11/.7/50/60,11/11.5/1.3/55/65,11.5/12/1/70/80,12/12.5/1.3/65/75,12.5/13/1.6/60/70,13/13.5/1.75/55/65,13.5/14/1.6/65/75,14/14.5/1.3/60/70
+ }{
+ \shade[bottom color=coverfgcolor!\bc,top color=coverfgcolor!\tc,opacity=.5]
+ ([xshift=\lx\outermarginwidth]current page.north west) rectangle ([xshift=\rx\outermarginwidth,yshift=-\ry\covershift]current page.north west);%顶部琴键矩形
+ }
+ \node[anchor=south] at ([xshift=.3\outermarginwidth,yshift=-.4\covershift]current page.north) {%
+ \parbox{.8\paperwidth}{
+ \filright
+ \color{white}\sffamily\fontsize{20}{23}\selectfont\@bookseries}
+ }; %系列丛书名称
+ \node[ anchor=south] at ([xshift=.3\outermarginwidth,yshift=-.57\paperheight]current page.north)
+ {\parbox{.8\paperwidth}{%
+ \raggedright%
+ {\renewcommand\baselinestretch{1.1}\selectfont \color{white}\sffamily\bfseries\fontsize{40}{40}\selectfont\@title\\[0.5ex]
+ \color{white}\sffamily\fontsize{30}{30}\selectfont
+ \ifdefvoid{\@subtitle}{}{\@subtitle}\par}
+ }};% 封面标题与副标题
+ \node[anchor=west,font=\sffamily\fontsize{23}{23}\selectfont,text=white] at ([xshift=1.8\outermarginwidth,yshift=-.6\covershift]current page.west) {\@edition};
+ \node[anchor=west,font=\sffamily\Huge,text=white] at ([xshift=1.8\outermarginwidth,yshift=\covershift]current page.west) {\@author};
+ \node[left,text=white,font=\rmfamily\Large,] at
+ ([shift={(-1cm,2cm)}]current page.south east) %
+ {\raisebox{-1.1cm}{\includegraphics[width=0.2\linewidth]{\@presslogo}}\hspace*{-3.5ex}\begin{varwidth}{.4\textwidth}\tikz\draw[white,line width=1.25pt] (0,0)--++(0,1cm);\,\raisebox{.25cm}{\@pressname} \end{varwidth}};%
+ \end{tikzpicture}%
+ {\newpage\thispagestyle{empty}}
+}
+\makeatother
+%%%%===============================================================%%%%%
+%%------------------------------------------------------封面设计--------------------------------------------------------%%
+\endinput
\ No newline at end of file
Property changes on: trunk/Master/texmf-dist/tex/latex/beautybook/stys/Beautybook-cover-en.sty
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: trunk/Master/texmf-dist/tex/latex/beautybook/stys/Beautybook-cover-enfig.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/beautybook/stys/Beautybook-cover-enfig.sty (rev 0)
+++ trunk/Master/texmf-dist/tex/latex/beautybook/stys/Beautybook-cover-enfig.sty 2023-10-02 19:46:59 UTC (rev 68438)
@@ -0,0 +1,55 @@
+\NeedsTeXFormat{LaTeX2e}[1995/12/01]
+\ProvidesPackage{stys/Beautybook-cover-enfig}[2023/02/03,v1.0]
+\definecolor{coverbgcolor}{HTML}{004183}
+\definecolor{coverfgcolor}{HTML}{826e68}
+\definecolor{coverbar}{HTML}{7c9092}
+\tikzfading[name=fade right,
+ right color =transparent!100,
+ left color=transparent!0]
+\tikzfading[name=fade left,
+ left color =transparent!100,
+ right color=transparent!50]
+\tikzfading[name=fade up,
+ top color =transparent!100,
+ bottom color=transparent!50]
+\tikzfading[name=fade down,
+ bottom color =transparent!100,
+ top color=transparent!50]
+\makeatletter
+\newcommand*\makecover{
+ %% Use the Tikz library positioning and clear the page header and footer
+ \usetikzlibrary{positioning}
+ \thispagestyle{empty}
+ \begin{tikzpicture}[remember picture,overlay]
+ \begin{pgfonlayer}{bottom}
+ \node[opacity=0.8,inner sep=0pt] at (current
+ page.center){\includegraphics[width=\paperwidth,height=\paperheight]{\@coverimage}};
+ \end{pgfonlayer}
+ \shade[left color=coverbgcolor!70,right color=coverbgcolor!50,path fading=fade right,opacity=.5]
+ ([xshift=.5\outermarginwidth]current page.north west) rectangle ([xshift=4\outermarginwidth]current page.south west); % 背景大矩形虚化
+ \shade[left color=coverfgcolor,right color=coverfgcolor!60,opacity=.8]
+ ([xshift=\outermarginwidth,yshift=2\outermarginwidth]current page.west) rectangle (current page.south east); % 标题背景大矩形
+ \fill[coverbar,opacity=0.8]
+ ([yshift=2\outermarginwidth]current page.west) rectangle ([xshift=\outermarginwidth,yshift=-.2\outermarginwidth]current page.west); % 最左侧装饰矩形
+ \node[anchor=south] at ([xshift=.3\outermarginwidth,yshift=-.4\covershift]current page.north) {%
+ \parbox{.8\paperwidth}{
+ \filright
+ \color{white}\sc\fontsize{20}{23}\selectfont\@bookseries}
+ }; %系列丛书名称
+ \node[ anchor=south] at ([xshift=.3\outermarginwidth,yshift=-.55\paperheight]current page.north)
+ {\parbox{.8\paperwidth}{%
+ \raggedright%
+ {\renewcommand\baselinestretch{1.1}\selectfont \color{white}\sffamily\bfseries\fontsize{40}{40}\selectfont\@title\\[0.5ex]
+ \color{white}\sc\fontsize{30}{30}\selectfont
+ \ifdefvoid{\@subtitle}{}{\@subtitle}\par}
+ }};% 封面标题与副标题
+ \node[anchor=west,font=\sc\fontsize{23}{23}\selectfont,text=white] at ([xshift=1.8\outermarginwidth,yshift=-.6\covershift]current page.west) {\@edition};
+ \node[anchor=west,font=\sffamily\Huge,text=white] at ([xshift=1.8\outermarginwidth,yshift=\covershift]current page.west) {\@author};
+ \node[left,text=white,font=\rmfamily\Large,] at
+ ([shift={(-1cm,2cm)}]current page.south east) %
+ {\raisebox{-1.1cm}{\includegraphics[width=0.2\linewidth]{\@presslogo}}\hspace*{-3.5ex}\begin{varwidth}{.4\textwidth}\tikz\draw[white,line width=1.25pt] (0,0)--++(0,1cm);\,\raisebox{.25cm}{\@pressname} \end{varwidth}};%
+ \end{tikzpicture}%
+ {\newpage\thispagestyle{empty}}
+}
+\makeatother
+\endinput
Property changes on: trunk/Master/texmf-dist/tex/latex/beautybook/stys/Beautybook-cover-enfig.sty
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Deleted: trunk/Master/texmf-dist/tex/latex/beautybook/stys/Beautybook-en.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/beautybook/stys/Beautybook-en.sty 2023-10-02 19:45:53 UTC (rev 68437)
+++ trunk/Master/texmf-dist/tex/latex/beautybook/stys/Beautybook-en.sty 2023-10-02 19:46:59 UTC (rev 68438)
@@ -1,83 +0,0 @@
-\NeedsTeXFormat{LaTeX2e}[1995/12/01]
-\ProvidesPackage{stys/Beautybook-en}[2022/05/21,v1.0]
-\usepackage{anyfontsize}
-\usepackage[dvipsnames,svgnames,x11names,table]{xcolor}% Driver-independent color extensions
-\usepackage{tikz}
-\usetikzlibrary{calc,fadings,patterns}
-\usepackage{adjustbox}
-\tikzfading[name=fade right,
- right color =transparent!100,
- left color=transparent!50]
-\tikzfading[name=fade left,
- left color =transparent!100,
- right color=transparent!50]
-\tikzfading[name=fade up,
- top color =transparent!100,
- bottom color=transparent!50]
-\tikzfading[name=fade down,
- bottom color =transparent!100,
- top color=transparent!50]
-\makeatletter
-\newcommand*\makecover{
- %% Use the Tikz library positioning and clear the page header and footer
- \usetikzlibrary{positioning}
- \thispagestyle{empty}
- \begin{tikzpicture}[remember picture,overlay]
- \fill[coverfgcolor]
- (current page.north west) rectangle (current page.south east);% (coverbgcolor)
- \coordinate (start) at ($(current page.east)!0.5!(current page.north east)+(1,-1)$);
- \coordinate (end) at (current page.north west);
- \foreach \i in {0,0.01,...,1}
- {
- \coordinate (point) at ($(start)!\i!(end)$);
- \draw[coverfgcolor!50]
- ($(point)+(310*\i:6)$)--
- ($(point)+(310*\i+120:6)$)--
- ($(point)+(310*\i+240:6)$)--
- ($(point)+(310*\i:6)$);
- }
- \coordinate (start) at (current page.south west);
- \coordinate (end) at (current page.east);
- \foreach \i in {0,0.02,...,1}
- {
- \coordinate (point) at ($(start)!\i!(end)$);
- \draw[coverfgcolor!50]
- ($(point)+(310*\i:10)$)--
- ($(point)+(310*\i+120:10)$)--
- ($(point)+(310*\i+240:10)$)--
- ($(point)+(310*\i:10)$);
- }
- \shade[bottom color=coverfgcolor,top color=coverfgcolor!70,opacity=0.7]
- ([xshift=.5\outermarginwidth]current page.north west) rectangle (current page.south east);
- \shade[left color=coverfgcolor,right color=coverfgcolor!60,opacity=0.5]
- ([xshift=\outermarginwidth,yshift=2\outermarginwidth]current page.west) rectangle (current page.south east);
- \fill[coverbar!90,opacity=0.8]
- ([yshift=2\outermarginwidth]current page.west) rectangle ([xshift=\outermarginwidth,yshift=-.2\outermarginwidth]current page.west);
- \foreach \lx/\rx/\ry/\bc/\tc in {
- 1/1.5/1.75/70/80,1.5/2/1.6/65/75,2/2.5/1.3/60/70,2.5/3/1/55/65,3/3.5/.7/50/60,3.5/4/1.2/60/70,4/4.5/1.9/75/85,4.5/5/1.1/55/65,5/5.5/1.2/60/70,6/6.5/1.6/65/75,6.5/7/1.3/60/70,7/7.5/1.87/70/80,7.5/8/1/55/65,8/8.5/.9/50/60,8.5/9/1.8/70/80,9/9.5/1.6/65/75,9.5/10/1.4/60/70,10/10.5/1/55/65,10.5/11/.7/50/60,11/11.5/1.3/55/65,11.5/12/1/70/80,12/12.5/1.3/65/75,12.5/13/1.6/60/70,13/13.5/1.75/55/65,13.5/14/1.6/65/75,14/14.5/1.3/60/70
- }{
- \shade[bottom color=coverfgcolor!\bc,top color=coverfgcolor!\tc,opacity=.5]
- ([xshift=\lx\outermarginwidth]current page.north west) rectangle ([xshift=\rx\outermarginwidth,yshift=-\ry\covershift]current page.north west);
- }
- \node[anchor=south] at ([xshift=.3\outermarginwidth,yshift=-.4\covershift]current page.north) {%
- \parbox{.8\paperwidth}{
- \filright
- \color{white}\fontsize{20}{23}\selectfont\@bookseries}
- };
- \node[ anchor=south] at ([xshift=.3\outermarginwidth,yshift=-.57\paperheight]current page.north)
- {\parbox{.8\paperwidth}{%
- \raggedright%
- {\renewcommand\baselinestretch{1.1}\selectfont \color{white}\bfseries\fontsize{40}{40}\selectfont\@title\\[0.5ex]
- \color{white}\fontsize{30}{30}\selectfont
- \ifdefvoid{\@subtitle}{}{\@subtitle}\par}
- }};
- \node[anchor=west,font=\fontsize{23}{23}\selectfont,text=white] at ([xshift=1.8\outermarginwidth,yshift=-.6\covershift]current page.west) {\@edition};
- \node[anchor=west,font=\Huge,text=white] at ([xshift=1.8\outermarginwidth,yshift=\covershift]current page.west) {\@author};
- \node[left,text=white,font=\rmfamily\Large,] at
- ([shift={(-1cm,2cm)}]current page.south east) %
- {\raisebox{-1.1cm}{\includegraphics[width=2cm]{\@presslogo}}\hspace*{0ex}\begin{varwidth}{.4\textwidth}\tikz\draw[white,line width=1.25pt] (0,0)--++(0,1cm);\,\raisebox{.25cm}{\@pressname} \end{varwidth}};%
- \end{tikzpicture}%
- \newpage
-}
-\makeatother
-\endinput
\ No newline at end of file
Deleted: trunk/Master/texmf-dist/tex/latex/beautybook/stys/Beautybook-enfig.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/beautybook/stys/Beautybook-enfig.sty 2023-10-02 19:45:53 UTC (rev 68437)
+++ trunk/Master/texmf-dist/tex/latex/beautybook/stys/Beautybook-enfig.sty 2023-10-02 19:46:59 UTC (rev 68438)
@@ -1,55 +0,0 @@
-\NeedsTeXFormat{LaTeX2e}[1995/12/01]
-\ProvidesPackage{stys/Beautybook-enfig}[2023/02/03,v1.0]
-\definecolor{coverbgcolor}{HTML}{004183}
-\definecolor{coverfgcolor}{HTML}{00744F}
-\definecolor{coverbar}{HTML}{00744F}
-\tikzfading[name=fade right,
- right color =transparent!100,
- left color=transparent!0]
-\tikzfading[name=fade left,
- left color =transparent!100,
- right color=transparent!50]
-\tikzfading[name=fade up,
- top color =transparent!100,
- bottom color=transparent!50]
-\tikzfading[name=fade down,
- bottom color =transparent!100,
- top color=transparent!50]
-\makeatletter
-\newcommand*\makecover{
- %% Use the Tikz library positioning and clear the page header and footer
- \usetikzlibrary{positioning}
- \thispagestyle{empty}
- \begin{tikzpicture}[remember picture,overlay]
- \begin{pgfonlayer}{bottom}
- \node[opacity=0.8,inner sep=0pt] at (current
- page.center){\includegraphics[width=\paperwidth,height=\paperheight]{\@coverimage}};
- \end{pgfonlayer}
- \shade[left color=coverbgcolor!70,right color=coverbgcolor!50,path fading=fade right,opacity=.6]
- ([xshift=.5\outermarginwidth]current page.north west) rectangle ([xshift=4\outermarginwidth]current page.south west);
- \shade[left color=coverfgcolor,right color=coverfgcolor!60,opacity=.8]
- ([xshift=\outermarginwidth,yshift=2\outermarginwidth]current page.west) rectangle (current page.south east);
- \fill[coverbar]
- ([yshift=2\outermarginwidth]current page.west) rectangle ([xshift=\outermarginwidth,yshift=-.2\outermarginwidth]current page.west);
- \node[anchor=south] at ([xshift=.3\outermarginwidth,yshift=-.4\covershift]current page.north) {%
- \parbox{.8\paperwidth}{
- \filright
- \color{white}\sansa\fontsize{20}{23}\selectfont\@bookseries}
- };
- \node[ anchor=south] at ([xshift=.3\outermarginwidth,yshift=-.57\paperheight]current page.north)
- {\parbox{.8\paperwidth}{%
- \raggedright%
- {\renewcommand\baselinestretch{1.1}\selectfont \color{white}\bfseries\fontsize{40}{40}\selectfont\@title\\[0.5ex]
- \color{white}\sansa\fontsize{30}{30}\selectfont
- \ifdefvoid{\@subtitle}{}{\@subtitle}\par}
- }};
- \node[anchor=west,font=\itshape\fontsize{23}{23}\selectfont,text=white] at ([xshift=1.8\outermarginwidth,yshift=-.6\covershift]current page.west) {\@edition};
- \node[anchor=west,font=\Huge,text=white] at ([xshift=1.8\outermarginwidth,yshift=\covershift]current page.west) {\@author};
- \node[left,text=white,font=\rmfamily\Large,] at
- ([shift={(-1cm,2cm)}]current page.south east) %
- {\raisebox{-1.1cm}{\includegraphics[width=0.2\linewidth]{\@presslogo}}\hspace*{-3.5ex}\begin{varwidth}{.4\textwidth}\tikz\draw[white,line width=1.25pt] (0,0)--++(0,1cm);\,\raisebox{.25cm}{\@pressname} \end{varwidth}};
- \end{tikzpicture}
- \newpage
-}
-\makeatother
-\endinput
More information about the tex-live-commits
mailing list.