diff options
author | Norbert Preining <norbert@preining.info> | 2024-07-01 03:01:44 +0000 |
---|---|---|
committer | Norbert Preining <norbert@preining.info> | 2024-07-01 03:01:44 +0000 |
commit | 8a498aa6994959acf2a275319976396afea37059 (patch) | |
tree | 5a068ef4e70f3de860c1e01ef16fa5ac02e751ef /macros/latex | |
parent | caf5bc6ff1d607c797a1dce74ddf8b56ead39d5b (diff) |
CTAN sync 202407010301
Diffstat (limited to 'macros/latex')
-rw-r--r-- | macros/latex/contrib/beautybook/README.md | 4 | ||||
-rw-r--r-- | macros/latex/contrib/beautybook/beautybook-CN.cls (renamed from macros/latex/contrib/beautybook/Beautybook-CN.cls) | 231 | ||||
-rw-r--r-- | macros/latex/contrib/beautybook/beautybook-EN.cls (renamed from macros/latex/contrib/beautybook/Beautybook-EN.cls) | 117 | ||||
-rw-r--r-- | macros/latex/contrib/beautybook/beautybook-cn.pdf (renamed from macros/latex/contrib/beautybook/Beautybook-cn.pdf) | bin | 6210741 -> 6212741 bytes | |||
-rw-r--r-- | macros/latex/contrib/beautybook/beautybook-cn.tex (renamed from macros/latex/contrib/beautybook/Beautybook-cn.tex) | 39 | ||||
-rw-r--r-- | macros/latex/contrib/beautybook/beautybook-en.pdf | bin | 3706871 -> 3584660 bytes | |||
-rw-r--r-- | macros/latex/contrib/beautybook/beautybook-en.tex | 313 | ||||
-rw-r--r-- | macros/latex/contrib/beautybook/stys/beautybook-bottompage.sty (renamed from macros/latex/contrib/beautybook/stys/Beautybook-bottompage.sty) | 2 | ||||
-rw-r--r-- | macros/latex/contrib/beautybook/stys/beautybook-cover-birkar.sty (renamed from macros/latex/contrib/beautybook/stys/Beautybook-cover-birkar.sty) | 118 | ||||
-rw-r--r-- | macros/latex/contrib/beautybook/stys/beautybook-cover-cn.sty (renamed from macros/latex/contrib/beautybook/stys/Beautybook-cover-cn.sty) | 28 | ||||
-rw-r--r-- | macros/latex/contrib/beautybook/stys/beautybook-cover-en.sty (renamed from macros/latex/contrib/beautybook/stys/Beautybook-cover-en.sty) | 6 | ||||
-rw-r--r-- | macros/latex/contrib/beautybook/stys/beautybook-cover-enfig.sty (renamed from macros/latex/contrib/beautybook/stys/Beautybook-cover-enfig.sty) | 5 | ||||
-rw-r--r-- | macros/latex/contrib/preview/preview.dtx | 14 | ||||
-rw-r--r-- | macros/latex/contrib/preview/preview.pdf | bin | 343466 -> 343806 bytes | |||
-rw-r--r-- | macros/latex/contrib/sjtutex/sjtutex.dtx | 31 | ||||
-rw-r--r-- | macros/latex/contrib/sjtutex/sjtutex.pdf | bin | 723329 -> 724629 bytes |
16 files changed, 637 insertions, 271 deletions
diff --git a/macros/latex/contrib/beautybook/README.md b/macros/latex/contrib/beautybook/README.md index c738ffd950..78eb52617b 100644 --- a/macros/latex/contrib/beautybook/README.md +++ b/macros/latex/contrib/beautybook/README.md @@ -10,14 +10,14 @@ -Beautybook is designed for writing books, created by [Ethan Lu](https://github.com/BeautyLaTeX/latex-template) , and maintained by [Ethan Lu](https://github.com/BeautyLaTeX/latex-template). Just enjoy it! If you have any questions, suggestions or bug reports, you can create issues or contact me at h1479840692@outlook.com. +beautybook is designed for writing books, created by [Ethan Lu](https://github.com/BeautyLaTeX/latex-template) , and maintained by [Ethan Lu](https://github.com/BeautyLaTeX/latex-template). Just enjoy it! If you have any questions, suggestions or bug reports, you can create issues or contact me at h1479840692@outlook.com. If you are an English user, then please use a cls file with the "-EN" suffix and compile the english tex file with pdfLaTeX, and conversely, if you are a Chinese user, then remember, use a cls file with the "-CN" suffix and compile the chinese tex file with the XeLaTeX engine! --- ## Version -Release 2024-03-17. +Release 2024-06-30. --- ## License diff --git a/macros/latex/contrib/beautybook/Beautybook-CN.cls b/macros/latex/contrib/beautybook/beautybook-CN.cls index d3ab12a333..49f94464bf 100644 --- a/macros/latex/contrib/beautybook/Beautybook-CN.cls +++ b/macros/latex/contrib/beautybook/beautybook-CN.cls @@ -1,14 +1,12 @@ %This Class is based on the default book class and options will be passed \NeedsTeXFormat{LaTeX2e} -\ProvidesClass{Beautybook-CN}[02-10-2023 V8.0 Beautybook Class] +\ProvidesClass{beautybook-CN}[30-06-2024 V10.0 Beautybook Class] \DeclareOption*{\PassOptionsToClass{\CurrentOption}{ctexbook}} \ProcessOptions\relax \LoadClass[twoside,a4paper]{ctexbook} \RequirePackage[dvipsnames,svgnames,x11names,table]{xcolor} \RequirePackage{cncolours} -\setmainfont{Times New Roman} -\setsansfont{HONOR Sans} -\setmonofont{Latin Modern Mono} +\usepackage{fontspec} \colorlet{outermarginfgcolor}{DarkCyan} % foregroundcolor 较深 \colorlet{outermarginbgcolor}{DarkCyan!30} % backgroundcolor 较浅 \RequirePackage{bropd} % math 自适应数学括号命令 \br{} !!! @@ -21,64 +19,68 @@ \RequirePackage{pgfplots} %画图 %%页面样式设计核心包 %提供\pgfonlayer命令以及下列图层指令 \pgfplotsset{compat=1.18} % +% /* -------------------------------------------------------------------------- */ +% /* 解决birkar封面不能用于a4paper问题 */ +% /* -------------------------------------------------------------------------- */ +\makeatletter +\ExplSyntaxOn +\cs_new:Npn \ifaivpaper@TF + { + \bool_lazy_and:nnTF + { \dim_compare_p:nNn { 297mm } = { \paperheight } } % 不能是 29.7cm + { \dim_compare_p:nNn { 210mm } = { \paperwidth } } + } +\ExplSyntaxOff +% \ifaivpaper@TF{a4paper内容}{not a4paper内容} % 这个用在想要判断a4paper的地方 +\makeatother +% /* -------------------------------------------------------------------------- */ +% /* 解决birkar封面不能用于a4paper问题 */ +% /* -------------------------------------------------------------------------- */ \ExplSyntaxOn % 封面切换程序 (LaTeX3)! -\keys_define:nn {Beautybook/coverstyle} +\keys_define:nn {beautybook/coverstyle} { cover-choose.choice:, cover-choose.value_required:n = true, - 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/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 +\newtoks \l__beautybook_tmpa_toks \cs_new_protected:Npn \coverstyle { - \tex_afterassignment:D \__Beautybook_set_coverstyle: - \l__Beautybook_tmpa_toks + \tex_afterassignment:D \__beautybook_set_coverstyle: + \l__beautybook_tmpa_toks } -\cs_new:Npn \__Beautybook_set_coverstyle: - { \keys_set:nV { Beautybook / coverstyle } \l__Beautybook_tmpa_toks } +\cs_new:Npn \__beautybook_set_coverstyle: + { \keys_set:nV { beautybook / coverstyle } \l__beautybook_tmpa_toks } % Math fonts -\keys_define:nn {Beautybook/mathstyle} +\keys_define:nn {beautybook/mathstyle} { math-font.choice:, math-font.value_required:n = true, - math-font/plain.code:n={}, - math-font/stix.code:n={ - \RequirePackage{stix} - }, + math-font/plain.code:n={ + \RequirePackage{amssymb,amsfonts,upgreek} + }, math-font/mtpro2.code:n = { + \RequirePackage{amssymb,amsfonts,upgreek} + \let\Bbbk\relex \RequirePackage{mtpro2} \RequirePackage{bm} - \DeclareFontFamily{U}{nxlmi}{} - \DeclareFontSubstitution{U}{nxlmi}{m}{it} - \DeclareFontShape{U}{nxlmi}{m}{it}{ - <-6.3> nxlmi05 - <6.3-8.6> nxlmi07 - <8.6-> nxlmi0 - }{} - - \DeclareFontShape{U}{nxlmi}{b}{it}{ - <-6.3> nxlbmi05 - <6.3-8.6> nxlbmi07 - <8.6-> nxlbmi0 - }{} - \renewcommand{\partial}{{\text{\usefont{U}{nxlmi}{m}{it}\symbol{64}}\mspace{1mu}}} }, %cover-choose .initial:n = plain , % 设置 en 为初始值 } \cs_new_protected:Npn \mathstyle { - \tex_afterassignment:D \__Beautybook_set_mathstyle: - \l__Beautybook_tmpa_toks + \tex_afterassignment:D \__beautybook_set_mathstyle: + \l__beautybook_tmpa_toks } -\cs_new:Npn \__Beautybook_set_mathstyle: - { \keys_set:nV { Beautybook / mathstyle } \l__Beautybook_tmpa_toks } +\cs_new:Npn \__beautybook_set_mathstyle: + { \keys_set:nV { beautybook / mathstyle } \l__beautybook_tmpa_toks } \ExplSyntaxOff -\RequirePackage{stys/Beautybook-bottompage} %封底 +\RequirePackage{stys/beautybook-bottompage} %封底 \RequirePackage{rotating} \tikzset{>=Stealth} \setlist{font=\upshape} % 取消所有列表默认距离 nosep, @@ -110,7 +112,6 @@ \RequirePackage{appendix} % 附录 % \RequirePackage{stys/symbols} % -\RequirePackage{amssymb,amsfonts,upgreek} \RequirePackage{makeidx} \RequirePackage{etoolbox} % 判断函数 \RequirePackage{paracol} @@ -300,38 +301,38 @@ fuzzy shadow={0.4mm}{-0.4mm}{0mm}{0.2mm}{fill=white!40!gray},%下 \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 +\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 } +\keys_define:nn { beautybook/titleimage } { chapteroddimage .code:n = - \seq_gset_from_clist:Nn \g__Beautybook_chapter_oimage_seq {#1} , + \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} , + \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} , + \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} , + \seq_gset_from_clist:Nn \g__beautybook_part_eimage_seq {#1} , } -\cs_new:Npn \__Beautybook_title_image:Nn #1#2 % image seq, number +\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@chapterimagename %生成索契表 : 判断奇偶数页并按(章节编号)!!读取相应的列表组中的字符串 +\cs_new:Npn \beautybook@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} } } + { \__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@partimagename +\cs_new:Npn \beautybook@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} } } + { \__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} } + { \keys_set:nn { beautybook/titleimage } {#1} } \ExplSyntaxOff %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% \titleformat{\chapter}{\huge\bfseries\filcenter}{}{1em}{ @@ -398,14 +399,14 @@ fuzzy shadow={0.4mm}{-0.4mm}{0mm}{0.2mm}{fill=white!40!gray},%下 \end{pgfonlayer} \ifodd\value{page} \begin{pgfonlayer}{top} - \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}}; + \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=25pt #1\end{varwidth}}; \end{pgfonlayer} \begin{pgfonlayer}{bottom} \node[right] (image) at ([shift={(-0.5cm,-2.8cm)}]current page.north west) {\includegraphics[width=7cm]{\@chapimage}}; \end{pgfonlayer} \else \begin{pgfonlayer}{top} - \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}}; + \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=25pt #1\end{varwidth}}; \end{pgfonlayer} \begin{pgfonlayer}{background} \node[left] (image) at ([shift={(0.5cm,-2.8cm)}]current page.north east) {\includegraphics[width=7cm]{\@chapimage}}; @@ -419,6 +420,15 @@ fuzzy shadow={0.4mm}{-0.4mm}{0mm}{0.2mm}{fill=white!40!gray},%下 \titlespacing{\chapter}{0pt}{0pt}{70pt} \makeatother % -------- Part定制 +%%定义标题文字长度%% +\newlength{\partstarlen} +%%设置临界长度%% +\newlength{\criticstarlen} +\setlength{\criticstarlen}{\textwidth} +% 定义垂直方向的渐变 +\tikzfading[name=fade bottom to top, + bottom color=transparent!0, % 底部完全透明 + top color=transparent!100] % 顶部不透明 \tikzfading[name=middle, top color=transparent!90, bottom color=transparent!90, middle color=transparent!20] \makeatletter @@ -428,7 +438,8 @@ color=transparent!90, middle color=transparent!20] {\normalfont\huge\filcenter} {} {20pt} -{\begin{tikzpicture}[remember picture,overlay] +{\settowidth{\partstarlen}{\sc\huge #1} % 计算\partabstract的长度并写入到\partstarlen中 + \begin{tikzpicture}[remember picture,overlay] \def\barwidth{2cm} \fill[outermarginbgcolor,opacity=0.6] (current page.north west) rectangle (current page.south east); @@ -448,8 +459,10 @@ color=transparent!90, middle color=transparent!20] \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] - (0,0) rectangle ++(\paperwidth,-1cm); + %%--------------- Horizontal Line --------------------%% + \fill[outermarginbgcolor!70] + (0,0) rectangle ++(\paperwidth,-1cm); + %%--------------- Horizontal Line -------------------%% \fill[outermarginbgcolor] (0,-.25cm) rectangle ++(\paperwidth,-.5cm); \fill[outermarginfgcolor] @@ -461,10 +474,19 @@ color=transparent!90, middle color=transparent!20] \end{tikzpicture} }; \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}}; % 标题名称 + \node[below left,font=\sc\huge,shift={(.146\linewidth,-\barwidth)}] (partcontents) at (partname) {\begin{varwidth}{.9\linewidth}\raggedright\baselineskip=25pt #1 \end{varwidth}}; % 标题名称 \begin{pgfonlayer}{background} \node[above,shift={(-.4\linewidth,-4*\barwidth)}] at (partname) {\ifdefvoid{\@partimage}{}{\includegraphics[width=1.2\linewidth]{\@partimage}}}; % 图片位置调整 + % % 应用渐变效果 +\fill[path fading=fade bottom to top, fill=nuanbai] (current page.north west) rectangle ([xshift=-\outermarginwidth]current page.south east); \end{pgfonlayer} +%判断标题文字长度与临界长度的关系 +\ifdim\partstarlen<\criticstarlen +%如果标题长度小于临界长度则使用(hbar)定位 +\node[below,font=\itshape\fontsize{13}{13}\selectfont,shift={(0,-1.2*\barwidth)}] at (hbar) {\ifdefvoid{\@partabstract}{}{\begin{varwidth}{.9\linewidth}\baselineskip=3ex \@partabstract\end{varwidth}}}; % 简介文字调整 +\else +\node[below,font=\itshape\fontsize{13}{13}\selectfont,shift={(0,-1.2*\barwidth)}] at (partcontents) {\ifdefvoid{\@partabstract}{}{\begin{varwidth}{.9\linewidth}\baselineskip=3ex \@partabstract\end{varwidth}}}; % 简介文字调整 +\fi \else \fill [outermarginfgcolor!20]% (current page.north west) rectangle ++(\outermarginwidth,-\paperheight); @@ -481,8 +503,10 @@ color=transparent!90, middle color=transparent!20] \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); + %%--------------- Horizontal Line --------------------%% + \fill[outermarginbgcolor!70] + (0,0) rectangle ++(\paperwidth,-1cm); + %%--------------- Horizontal Line -------------------%% \fill[outermarginbgcolor] (0,-.25cm) rectangle ++(\paperwidth,-.5cm); \fill[outermarginfgcolor] @@ -494,12 +518,20 @@ color=transparent!90, middle color=transparent!20] \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}}; % 标题名称 + \node[below right,font=\sc\huge,shift={(-.125\linewidth,-\barwidth)}] (partcontents) at (partname) {\begin{varwidth}{.9\linewidth}\raggedright\baselineskip=25pt #1 \end{varwidth}}; % 标题名称 \begin{pgfonlayer}{background} \node[above,shift={(.35\linewidth,-4*\barwidth)}] at (partname) {\ifdefvoid{\@partimage}{}{\includegraphics[width=1.2\linewidth]{\@partimage}}}; % 图片位置调整 + % % 应用渐变效果 + \fill[path fading=fade bottom to top, fill=nuanbai] (current page.north east) rectangle ([xshift=\outermarginwidth]current page.south west); \end{pgfonlayer} +%判断标题文字长度与临界长度的关系 +\ifdim\partstarlen<\criticstarlen +%如果标题长度小于临界长度则使用(hbar)定位 +\node[below,font=\itshape\fontsize{13}{13}\selectfont,shift={(0,-1.2*\barwidth)}] at (hbar) {\ifdefvoid{\@partabstract}{}{\begin{varwidth}{.9\linewidth}\baselineskip=3ex \@partabstract\end{varwidth}}}; % 简介文字调整 +\else +\node[below,font=\itshape\fontsize{13}{13}\selectfont,shift={(0,-1.2*\barwidth)}] at (partcontents) {\ifdefvoid{\@partabstract}{}{\begin{varwidth}{.9\linewidth}\baselineskip=3ex \@partabstract\end{varwidth}}}; % 简介文字调整 +\fi \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} @@ -535,6 +567,59 @@ color=transparent!90, middle color=transparent!20] \titlespacing*{\section}{0pt}{3.5ex plus 1ex minus .2ex}{2.3ex plus .2ex} +% /* -------------------------------------------------------------------------- */ +% /* Subsection Style */ +% /* -------------------------------------------------------------------------- */ +\usepackage{pifont} +\newcommand{\subsectionnumstyle}[2]{ +\makebox[0pt][l]{\def\rad{5pt}% +\def\inrad{3pt} + \begin{tikzpicture}[remember picture] + \path[fill=#2,drop shadow={opacity=0.3,shadow xshift=0.5mm,shadow yshift=-0.5mm}]node[append after command={ + % 主体 + ([shift={(\rad,\rad)}]sec.north west) arc[start angle=90, end angle=180, radius=\rad] {[rounded corners=\inrad]--(sec.south west)}--([yshift=-3mm]$(sec.south west)!0.5!(sec.south east)$) {[rounded corners=\inrad]--(sec.south east)} -- (sec.north east) arc[start angle=180, end angle=90, radius=\rad]--cycle + }, + text=white,font=\sffamily\large\bfseries,align=center,inner ysep=1.5mm,inner xsep=1mm] (sec) at (0,0) {\thesubsection}; + % 阴影 + \begin{pgfonlayer}{bottom} + \fill[#2!30!black!70,opacity=0.8] ([xshift=\rad,yshift=\rad]sec.north east) to[out=0,in=-81,looseness=1.5] ([xshift=1.8*\rad]sec.north east)--(sec.north east) |-cycle; + \end{pgfonlayer} + \node[text=black,font=\large,below right] (sectitle) at ([shift={(2mm,6.5mm)}]sec.south east) {\begin{varwidth}{.9\linewidth}\setlength\baselineskip{18pt}#1\end{varwidth}}; + \begin{pgfonlayer}{bottom} + \draw[gray,dashed,opacity=0.5] ([xshift=0]sec.north west) --([xshift=4*\rad]sec.north east); + \end{pgfonlayer} + \end{tikzpicture}} +} + +\newcommand{\subsectionnonumstyle}[2]{ +\makebox[0pt][l]{\def\rad{5pt}% +\def\inrad{3pt} + \begin{tikzpicture}[remember picture] + \path[fill=#2,drop shadow={opacity=0.3,shadow xshift=0.5mm,shadow yshift=-0.5mm}]node[append after command={ + % 主体 + ([shift={(\rad,\rad)}]sec.north west) arc[start angle=90, end angle=180, radius=\rad] {[rounded corners=\inrad]--(sec.south west)}--([yshift=-3mm]$(sec.south west)!0.5!(sec.south east)$) {[rounded corners=\inrad]--(sec.south east)} -- (sec.north east) arc[start angle=180, end angle=90, radius=\rad] --cycle + }, + text=white,font=\sffamily\large\bfseries,align=center,inner ysep=0.5mm,inner xsep=1.5mm] (sec) at (0,0) {\Huge\ding{99}}; + % 阴影 + \begin{pgfonlayer}{bottom} + \fill[#2!30!black!70,opacity=0.8] ([xshift=\rad,yshift=\rad]sec.north east) to[out=0,in=-81,looseness=1.5] ([xshift=1.8*\rad]sec.north east)--(sec.north east) |-cycle; + \end{pgfonlayer} + \node[text=black,font=\large,below right] (sectitle) at ([shift={(2mm,6.5mm)}]sec.south east) {\begin{varwidth}{.9\linewidth}\setlength\baselineskip{18pt}#1\end{varwidth}}; + \begin{pgfonlayer}{bottom} + \draw[gray,dashed,opacity=0.5] (sec.north west) --([xshift=4*\rad]sec.north east); + \end{pgfonlayer} + \end{tikzpicture}} +} +%% -- Subsection +\titleformat{\subsection} +{} +{} +{-.5em} %左右移动\thesection标签位置 +{\subsectionnumstyle{#1}{outermarginfgcolor}} + +\titleformat{name=\subsection,numberless}{}{}{-.5em}{\subsectionnonumstyle{#1}{outermarginfgcolor}} + +% \titlespacing*{\subsection}{0pt}{3.5ex plus 1ex minus .2ex}{2.3ex plus .2ex} %%-------------------------------- SCRLAYER-SCRPAGE -------------------------------------%% %% SIDE-BAR \newlength\chapternumbersize @@ -574,7 +659,7 @@ color=transparent!90, middle color=transparent!20] \newcommand*\outermarginchapternumberbox{% \if@mainmatter \tikzoverlay{ - \shade[top color=outermarginfgcolor!90,bottom color=outermarginbgcolor] + \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}};% } @@ -627,12 +712,24 @@ color=transparent!90, middle color=transparent!20] contents={\color{outermarginbgcolor}\rule{\layerwidth}{\layerheight}} %色彩装饰条 ]{scth.outermargin.bg.even}% %%=============% 页边条颜色 %=======================%% +% /* -------------------------------------------------------------------------- */ +% /* 透明度渐变填充设定 */ +% /* -------------------------------------------------------------------------- */ \tikzfading[name=fade south, top color =transparent!0, bottom color=transparent!80] \tikzfading[name=fade north, top color =transparent!100, bottom color=transparent!0] +\tikzfading[name=fade right, + right color =transparent!100, + left color=transparent!0] +\tikzfading[name=fade left, + left color =transparent!100, + right color=transparent!0] +% /* -------------------------------------------------------------------------- */ +% /* 透明度渐变填充设定 */ +% /* -------------------------------------------------------------------------- */ %偶数页边纹理效果设置 \newcommand{\evensidbardeepcolor}{% \tikzoverlay{ diff --git a/macros/latex/contrib/beautybook/Beautybook-EN.cls b/macros/latex/contrib/beautybook/beautybook-EN.cls index 63e3e038df..1aa67be4a3 100644 --- a/macros/latex/contrib/beautybook/Beautybook-EN.cls +++ b/macros/latex/contrib/beautybook/beautybook-EN.cls @@ -1,6 +1,6 @@ %This Class is based on the default book class and options will be passed \NeedsTeXFormat{LaTeX2e} -\ProvidesClass{Beautybook-EN}[02-10-2023 V8.0 Beautybook Class] +\ProvidesClass{beautybook-EN}[30-06-2024 V10.0 beautybook Class] \DeclareOption*{\PassOptionsToClass{\CurrentOption}{book}} \ProcessOptions\relax \LoadClass[twoside]{book} @@ -24,26 +24,26 @@ % \ExplSyntaxOn % 封面切换程序 (LaTeX3)! -\keys_define:nn {Beautybook/coverstyle} +\keys_define:nn {beautybook/coverstyle} { cover-choose.choice:, cover-choose.value_required:n = true, - 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/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 +\newtoks \l__beautybook_tmpa_toks \cs_new_protected:Npn \coverstyle { - \tex_afterassignment:D \__Beautybook_set_coverstyle: - \l__Beautybook_tmpa_toks + \tex_afterassignment:D \__beautybook_set_coverstyle: + \l__beautybook_tmpa_toks } -\cs_new:Npn \__Beautybook_set_coverstyle: - { \keys_set:nV { Beautybook / coverstyle } \l__Beautybook_tmpa_toks } +\cs_new:Npn \__beautybook_set_coverstyle: + { \keys_set:nV { beautybook / coverstyle } \l__beautybook_tmpa_toks } % Math fonts -\keys_define:nn {Beautybook/mathstyle} +\keys_define:nn {beautybook/mathstyle} { math-font.choice:, math-font.value_required:n = true, @@ -73,13 +73,13 @@ } \cs_new_protected:Npn \mathstyle { - \tex_afterassignment:D \__Beautybook_set_mathstyle: - \l__Beautybook_tmpa_toks + \tex_afterassignment:D \__beautybook_set_mathstyle: + \l__beautybook_tmpa_toks } -\cs_new:Npn \__Beautybook_set_mathstyle: - { \keys_set:nV { Beautybook / mathstyle } \l__Beautybook_tmpa_toks } +\cs_new:Npn \__beautybook_set_mathstyle: + { \keys_set:nV { beautybook / mathstyle } \l__beautybook_tmpa_toks } \ExplSyntaxOff -\RequirePackage{stys/Beautybook-bottompage} %封底 +\RequirePackage{stys/beautybook-bottompage} %封底 \RequirePackage{rotating} \tikzset{>=Stealth} \setlist{font=\upshape} % 取消所有列表默认距离 nosep, @@ -301,38 +301,38 @@ fuzzy shadow={0.4mm}{-0.4mm}{0mm}{0.2mm}{fill=white!40!gray},%下 \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 +\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 } +\keys_define:nn { beautybook/titleimage } { chapteroddimage .code:n = - \seq_gset_from_clist:Nn \g__Beautybook_chapter_oimage_seq {#1} , + \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} , + \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} , + \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} , + \seq_gset_from_clist:Nn \g__beautybook_part_eimage_seq {#1} , } -\cs_new:Npn \__Beautybook_title_image:Nn #1#2 % image seq, number +\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@chapterimagename %生成索契表 : 判断奇偶数页并按(章节编号)!!读取相应的列表组中的字符串 +\cs_new:Npn \beautybook@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} } } + { \__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@partimagename +\cs_new:Npn \beautybook@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} } } + { \__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} } + { \keys_set:nn { beautybook/titleimage } {#1} } \ExplSyntaxOff %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% \titleformat{\chapter}{\huge\bfseries\filcenter}{}{1em}{ @@ -420,6 +420,15 @@ fuzzy shadow={0.4mm}{-0.4mm}{0mm}{0.2mm}{fill=white!40!gray},%下 \titlespacing{\chapter}{0pt}{0pt}{80pt} \makeatother % -------- Part定制 +%%定义标题文字长度%% +\newlength{\partstarlen} +%%设置临界长度%% +\newlength{\criticstarlen} +\setlength{\criticstarlen}{\textwidth} +% 定义垂直方向的渐变 +\tikzfading[name=fade bottom to top, + bottom color=transparent!0, % 底部完全透明 + top color=transparent!100] % 顶部不透明 \tikzfading[name=middle, top color=transparent!90, bottom color=transparent!90, middle color=transparent!20] \makeatletter @@ -429,7 +438,8 @@ color=transparent!90, middle color=transparent!20] {\normalfont\huge\filcenter} {} {20pt} -{\begin{tikzpicture}[remember picture,overlay] +{\settowidth{\partstarlen}{\sc\huge #1} % 计算\partabstract的长度并写入到\partstarlen中 + \begin{tikzpicture}[remember picture,overlay] \def\barwidth{2cm} \fill[outermarginbgcolor,opacity=0.6] (current page.north west) rectangle (current page.south east); @@ -449,8 +459,10 @@ color=transparent!90, middle color=transparent!20] \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] - (0,0) rectangle ++(\paperwidth,-1cm); + %%--------------- Horizontal Line --------------------%% + \fill[outermarginbgcolor!70] + (0,0) rectangle ++(\paperwidth,-1cm); + %%--------------- Horizontal Line -------------------%% \fill[outermarginbgcolor] (0,-.25cm) rectangle ++(\paperwidth,-.5cm); \fill[outermarginfgcolor] @@ -462,10 +474,19 @@ color=transparent!90, middle color=transparent!20] \end{tikzpicture} }; \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}}; % 标题名称 + \node[below left,font=\sc\huge,shift={(.146\linewidth,-\barwidth)}] (partcontents) at (partname) {\begin{varwidth}{.9\linewidth}\raggedright\baselineskip=25pt #1 \end{varwidth}}; % 标题名称 \begin{pgfonlayer}{background} \node[above,shift={(-.4\linewidth,-4*\barwidth)}] at (partname) {\ifdefvoid{\@partimage}{}{\includegraphics[width=1.2\linewidth]{\@partimage}}}; % 图片位置调整 + % % 应用渐变效果 +\fill[path fading=fade bottom to top, fill=nuanbai] (current page.north west) rectangle ([xshift=-\outermarginwidth]current page.south east); \end{pgfonlayer} +%判断标题文字长度与临界长度的关系 +\ifdim\partstarlen<\criticstarlen +%如果标题长度小于临界长度则使用(hbar)定位 +\node[below,font=\itshape\fontsize{13}{13}\selectfont,shift={(0,-1.2*\barwidth)}] at (hbar) {\ifdefvoid{\@partabstract}{}{\begin{varwidth}{.9\linewidth}\baselineskip=3ex \@partabstract\end{varwidth}}}; % 简介文字调整 +\else +\node[below,font=\itshape\fontsize{13}{13}\selectfont,shift={(0,-1.2*\barwidth)}] at (partcontents) {\ifdefvoid{\@partabstract}{}{\begin{varwidth}{.9\linewidth}\baselineskip=3ex \@partabstract\end{varwidth}}}; % 简介文字调整 +\fi \else \fill [outermarginfgcolor!20]% (current page.north west) rectangle ++(\outermarginwidth,-\paperheight); @@ -482,8 +503,10 @@ color=transparent!90, middle color=transparent!20] \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); + %%--------------- Horizontal Line --------------------%% + \fill[outermarginbgcolor!70] + (0,0) rectangle ++(\paperwidth,-1cm); + %%--------------- Horizontal Line -------------------%% \fill[outermarginbgcolor] (0,-.25cm) rectangle ++(\paperwidth,-.5cm); \fill[outermarginfgcolor] @@ -495,12 +518,20 @@ color=transparent!90, middle color=transparent!20] \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}}; % 标题名称 + \node[below right,font=\sc\huge,shift={(-.125\linewidth,-\barwidth)}] (partcontents) at (partname) {\begin{varwidth}{.9\linewidth}\raggedright\baselineskip=25pt #1 \end{varwidth}}; % 标题名称 \begin{pgfonlayer}{background} \node[above,shift={(.35\linewidth,-4*\barwidth)}] at (partname) {\ifdefvoid{\@partimage}{}{\includegraphics[width=1.2\linewidth]{\@partimage}}}; % 图片位置调整 + % % 应用渐变效果 + \fill[path fading=fade bottom to top, fill=nuanbai] (current page.north east) rectangle ([xshift=\outermarginwidth]current page.south west); \end{pgfonlayer} +%判断标题文字长度与临界长度的关系 +\ifdim\partstarlen<\criticstarlen +%如果标题长度小于临界长度则使用(hbar)定位 +\node[below,font=\itshape\fontsize{13}{13}\selectfont,shift={(0,-1.2*\barwidth)}] at (hbar) {\ifdefvoid{\@partabstract}{}{\begin{varwidth}{.9\linewidth}\baselineskip=3ex \@partabstract\end{varwidth}}}; % 简介文字调整 +\else +\node[below,font=\itshape\fontsize{13}{13}\selectfont,shift={(0,-1.2*\barwidth)}] at (partcontents) {\ifdefvoid{\@partabstract}{}{\begin{varwidth}{.9\linewidth}\baselineskip=3ex \@partabstract\end{varwidth}}}; % 简介文字调整 +\fi \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} @@ -1143,7 +1174,7 @@ anchor=west,rounded corners=3pt,font=\bfseries\normalsize] at ([xshift=0cm,yshif bodyfont=\normalfont, postheadspace=.5em, headpunct={.}, - qed=$\blacksquare$,%\qedsymbol + qed=\color{cyan!40!black}$\blacksquare$,%\qedsymbol ]{Proofstyle} \declaretheorem[style=Proofstyle,numbered=no,name={\itbf{Proof}}]{Proof} \renewenvironment{proof}{\begin{Proof} }{\end{Proof}} diff --git a/macros/latex/contrib/beautybook/Beautybook-cn.pdf b/macros/latex/contrib/beautybook/beautybook-cn.pdf Binary files differindex 924e220ab7..7dadd8e3c9 100644 --- a/macros/latex/contrib/beautybook/Beautybook-cn.pdf +++ b/macros/latex/contrib/beautybook/beautybook-cn.pdf diff --git a/macros/latex/contrib/beautybook/Beautybook-cn.tex b/macros/latex/contrib/beautybook/beautybook-cn.tex index 4e0e850bf4..bbfa40c4ae 100644 --- a/macros/latex/contrib/beautybook/Beautybook-cn.tex +++ b/macros/latex/contrib/beautybook/beautybook-cn.tex @@ -1,16 +1,17 @@ %% 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} +\documentclass[zihao=-4,fontset=windows]{beautybook-CN} % ---------------------------------------------------------------------------- % % The Cover Theme Chosen % % ---------------------------------------------------------------------------- % \definecolor{coverbgcolor}{HTML}{e0e0e0} -\definecolor{coverfgcolor}{HTML}{826e68} % The color of the background +\definecolor{coverfgcolor}{HTML}{1f3134} % The color of the background \definecolor{coverbar}{HTML}{7c9092} % The color of the left bar -\definecolor{bottomcolor}{HTML}{826e68} +\definecolor{bottomcolor}{HTML}{2c4f54} +\definecolor{nuanbai}{HTML}{f5f5f5} \coverstyle={ % 封面键值列表 - cover-choose=cn, % cn (需新增项\entitle{#}); en ; enfig ; birkar + cover-choose=cn, % cn ; en ; enfig ; birkar } % ---------------------------------------------------------------------------- % % The Cover Theme Chosen % @@ -235,7 +236,10 @@ sorting=nty texcl=true, fontadjust }% - +% 设置1.25倍行距 +\linespread{1.25} +\setlist[itemize]{itemsep=1pt, parsep=1pt} % 对所有itemize环境生效 +\setlist[enumerate]{itemsep=1pt, parsep=1pt} % 对所有enumerate环境生效 \begin{document} \thispagestyle{empty} \title{Beautybook模板简介} @@ -275,8 +279,8 @@ sorting=nty % partevenimage={songeven,even1,even2,even3,even4,mid1,mid2,mid3,mid4,mid5,mid6,mid7,mid8,mid9,mid10,mid11}, } -\chapimage{\Beautybook@chapterimagename} % 会自动改变 -\partimage{\Beautybook@partimagename} % 会自动改变 +\chapimage{\beautybook@chapterimagename} % 会自动改变 +\partimage{\beautybook@partimagename} % 会自动改变 \makeatother % ---------------------------------------------------------------------------- % % The images used in the title % @@ -331,6 +335,7 @@ Beauty\LaTeX{} 系列模板是由我所做的书籍模板系列, 名叫\textbf{B 本文将介绍本模板的一些设置内容以及基本使用方法。如果您有其他问题,建议或者意见,欢迎在 GitHub 上给我提交 \href{https://github.com/BeautyLaTeX/latex-template/issues}{issues} 或者邮件\href{h1479840692@163.com}{163邮箱}或者\href{1479840692@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 Texpage 地址: \href{https://www.texpage.com/template/8dc933fc-6579-44c9-b660-ea58409d193b}{https://www.texpage.com/template/8dc933fc-6579-44c9-b660-ea58409d193b} \item 下载地址:\href{https://github.com/BeautyLaTeX/latex-template/releases}{正式发行版} \item 用户 QQ 群:809237593 \item 我的outlook邮箱:\href{https://h1479840692@outlook.com}{Outlook Email} @@ -350,9 +355,9 @@ Beauty\LaTeX{} 系列模板是由我所做的书籍模板系列, 名叫\textbf{B 以下是最小工作示例: \begin{lstlisting} -\documentclass[zihao=-4,fontset=windows]{Beautybook-CN} +\documentclass[zihao=-4,fontset=windows]{beautybook-CN} \coverstyle={ % 封面键值列表 - cover-choose=cn, % cn (需新增项\entitle{#}); en ; enfig ; birkar + cover-choose=cn, % cn ; en ; enfig ; birkar } \mathstyle={ % 数学字体键值列表 math-font=plain, %plain (默认数学字体); stix; mtpro2 @@ -606,8 +611,8 @@ sorting=nty % partevenimage={songeven,even1,even2,even3,even4,mid1,mid2,mid3,mid4,mid5,mid6,mid7,mid8,mid9,mid10,mid11}, } -\chapimage{\Beautybook@chapterimagename} % 会自动改变 -\partimage{\Beautybook@partimagename} % 会自动改变 +\chapimage{\beautybook@chapterimagename} % 会自动改变 +\partimage{\beautybook@partimagename} % 会自动改变 \makeatother % \frontmatter @@ -622,8 +627,8 @@ Introduction to Beatybook template. \hfill \begin{tabular}{lr} - &---- Ethan Lu\\ - &2024-03-17 + &-- Ethan Lu\\ + &2024-06-30 \end{tabular} \clearpage} %%%%%%%%%%%%%%%%%%%%%%%%%%%%%% @@ -683,10 +688,10 @@ tlmgr update --self --all --reinstall-forcibly-removed 本模板英文版基于基础的 book 文类, 中文版则基于ctexbook文类,所以 book或者ctexbook 的选项对于本模板也是有效的。默认编码为 UTF-8,推荐使用 \TeX{} Live 编译。 \section{语言模式} -本模板内含两套基础语言环境, 分别为 中文的\lstinline{Beautybook-CN.cls}、英文的\lstinline{Beautybook-EN.cls}。改变语言环境会改变图表标题的引导词(图,表),文章结构词(比如目录,参考文献等),以及定理环境中的引导词(比如定理,引理等)。不同语言模式的启用如下: +本模板内含两套基础语言环境, 分别为 中文的\lstinline{beautybook-CN.cls}、英文的\lstinline{beautybook-EN.cls}。改变语言环境会改变图表标题的引导词(图,表),文章结构词(比如目录,参考文献等),以及定理环境中的引导词(比如定理,引理等)。不同语言模式的启用如下: \begin{lstlisting} -\documentclass{Beautybook-CN} % 中文 -\documentclass{Beautybook-EN} % 英文 +\documentclass{beautybook-CN} % 中文 +\documentclass{beautybook-EN} % 英文 \end{lstlisting} 除模板自带的两套语言设定之外,如果您需要使用其他语言, 可以通过更改cls文件中这几处解决, 分别为 @@ -695,7 +700,7 @@ tlmgr update --self --all --reinstall-forcibly-removed \item 更改 part环境的名称 \lstinline{Part \thepart}为 \lstinline{(你的语言中part的翻译) \thepart} \item 主文件,即当前文件导言区中的定理引导词 \item 更改chapter环境中的part名称如第一条所示 - \item 记住, 仅有亚洲语言环境可以使用ctexbook文类, 即基于\lstinline{Beautybook-CN.cls}更改, 其他西语环境需要基于\lstinline{Beautybook-EN.cls}更改. + \item 记住, 仅有亚洲语言环境可以使用ctexbook文类, 即基于\lstinline{beautybook-CN.cls}更改, 其他西语环境需要基于\lstinline{beautybook-EN.cls}更改. \end{enumerate} diff --git a/macros/latex/contrib/beautybook/beautybook-en.pdf b/macros/latex/contrib/beautybook/beautybook-en.pdf Binary files differindex e8f4618ed8..3203378b04 100644 --- a/macros/latex/contrib/beautybook/beautybook-en.pdf +++ b/macros/latex/contrib/beautybook/beautybook-en.pdf diff --git a/macros/latex/contrib/beautybook/beautybook-en.tex b/macros/latex/contrib/beautybook/beautybook-en.tex index 1e5dd8438e..18c81b9fbf 100644 --- a/macros/latex/contrib/beautybook/beautybook-en.tex +++ b/macros/latex/contrib/beautybook/beautybook-en.tex @@ -1,13 +1,14 @@ -\documentclass[12pt]{Beautybook-EN} +\documentclass[12pt]{beautybook-EN} % ---------------------------------------------------------------------------- % % The Cover Theme Chosen % % ---------------------------------------------------------------------------- % \definecolor{coverbgcolor}{HTML}{e0e0e0} -\definecolor{coverfgcolor}{HTML}{826e68} % The color of the background +\definecolor{coverfgcolor}{HTML}{1f3134} % The color of the background \definecolor{coverbar}{HTML}{7c9092} % The color of the left bar -\definecolor{bottomcolor}{HTML}{826e68} -\coverstyle={ % 封面键值列表 - cover-choose=cn, % cn (需新增项\entitle{#}); en ; enfig ; birkar +\definecolor{bottomcolor}{HTML}{2c4f54} +\definecolor{nuanbai}{HTML}{f5f5f5} +\coverstyle={ % cover-keys + cover-choose=en, % cn ; en ; enfig ; birkar } % ---------------------------------------------------------------------------- % % The Cover Theme Chosen % @@ -31,17 +32,17 @@ %% Second one \makeatletter \mynewtcbtheorem{ - % 这个 theorem 是环境名 + % theorem-environment problem={ counter=tcbprob, the counter=\thesection.\arabic{tcbprob}, - name=Problem, % 它保存到 \theorem@name 里 + name=Problem, % it will be saved in \theorem@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},%下 + 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={tcbprob}, before pre=\smallskip, after app=\smallskip, @@ -58,8 +59,8 @@ 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},%下 + 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, @@ -74,8 +75,8 @@ 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},%下 + 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, @@ -90,8 +91,8 @@ 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},%下 + 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, @@ -106,8 +107,8 @@ 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},%下 + 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, @@ -122,8 +123,8 @@ 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},%下 + 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, @@ -138,8 +139,8 @@ 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},%下 + 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, @@ -154,8 +155,8 @@ 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},%下 + 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, @@ -172,8 +173,8 @@ 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},%下 + 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, @@ -187,7 +188,7 @@ % -%% --------参考文献 +%% --------reference \RequirePackage[ backend=biber, style=numeric, @@ -238,12 +239,12 @@ sorting=nty \begin{document} \thispagestyle{empty} -\title{An Introduction to Beautybook template} +\title{An Introduction to beautybook template} \subtitle{} \edition{First Edition} \bookseries{Illustrated by Ethan Lu} \author{Ethan Lu} -\pressname{Beautybook} +\pressname{beautybook} \presslogo{inner_pics/logo.png} \coverimage{inner_pics/coverimage.jpg}%ivy-ge998908f8_1280.jpg \makecover @@ -275,8 +276,8 @@ sorting=nty % partevenimage={songeven,even1,even2,even3,even4,mid1,mid2,mid3,mid4,mid5,mid6,mid7,mid8,mid9,mid10,mid11}, } -\chapimage{\Beautybook@chapterimagename} -\partimage{\Beautybook@partimagename} +\chapimage{\beautybook@chapterimagename} +\partimage{\beautybook@partimagename} \makeatother % ---------------------------------------------------------------------------- % % The images used in the title % @@ -303,8 +304,8 @@ An introduction to the beautybook template. \hfill \begin{tabular}{lr} - &--- Ethan Lu\\ - &2024-03-17 + &-- Ethan Lu\\ + & 2024-06-30 \end{tabular} \clearpage} %%%%%%%%%%%%%%%%%%%%%%%%%%%%%% @@ -317,13 +318,13 @@ An introduction to the beautybook template. \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}} +\part{The template usage introduction of \textbf{beautybook}} -\chapter{A short 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 } ! +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! @@ -336,6 +337,7 @@ This article covers some of the setup and basic usage of this template. If you h 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 Texpage : \href{https://www.texpage.com/template/8dc933fc-6579-44c9-b660-ea58409d193b}{https://www.texpage.com/template/8dc933fc-6579-44c9-b660-ea58409d193b} \item Download Release: \href{https://github.com/BeautyLaTeX/latex-template/releases}{Official release}, \item User QQ Group: 809237593. (!If you are not in China, please e-mail me at \href{h1479840692@outlook.com}{outlook-email}.) \end{itemize} @@ -357,16 +359,24 @@ To install locally, follow above steps to download the latest version from GitHu The following is an example of a minimal work: \begin{lstlisting} -\documentclass[12pt]{Beautybook-EN} -\coverstyle={ - cover-choose=enfig, % cn (en ; enfig ; birkar) +\documentclass[12pt]{beautybook-EN} +% ---------------------------------------------------------------------------- % +% The Cover Theme Chosen % +% ---------------------------------------------------------------------------- % +\definecolor{coverbgcolor}{HTML}{e0e0e0} +\definecolor{coverfgcolor}{HTML}{1f3134} % The color of the background +\definecolor{coverbar}{HTML}{7c9092} % The color of the left bar +\definecolor{bottomcolor}{HTML}{2c4f54} +\definecolor{nuanbai}{HTML}{f5f5f5} +\coverstyle={ % cover-keys + cover-choose=cn, % cn ; en ; enfig ; birkar } +% ---------------------------------------------------------------------------- % +% The Cover Theme Chosen % +% ---------------------------------------------------------------------------- % \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}}, @@ -377,6 +387,162 @@ The following is an example of a minimal work: 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 environment + 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=purplepurplepurplegreen!9 ,middle color=purplepurplepurplegreen!6, bottom color=purplepurplepurplegreen!3},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={tcbprob}, + before pre=\smallskip, after app=\smallskip, + overlay unbroken=\my@theorem@overlay@unbroken{Problem\ \thetcbprob}{purplepurplepurplegreen}, + overlay first=\my@theorem@overlay@first{Problem\ \thetcbprob}{purplepurplepurplegreen}, + overlay last=\my@theorem@overlay@last{purplepurplepurplegreen}, + } + }, + lemma={ + counter=tcblem, + the counter=\thesection.\arabic{tcblem}, + name=Lemma, + lemcolor=purplepurplegreen, + autoref name=\bfseries Lemma, + style={ + arc=0mm,breakable,enhanced,interior style={top color=purplepurplegreen!9 ,middle color=purplepurplegreen!6, bottom color=purplepurplegreen!3},arc=3pt,boxrule=0pt,top=6mm,bottom=5mm, + 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@lemma@overlay@unbroken{\lemma@name\ \thetcblem}{\lemma@lemcolor}, + overlay first=\my@lemma@overlay@first{\lemma@name\ \thetcblem}{\lemma@lemcolor}, + overlay last=\my@lemma@overlay@last{\lemma@lemcolor}, + } + }, + corollary={ + counter=tcbcor, + the counter=\thesection.\arabic{tcbcor}, + autoref name=\bfseries Corollary, + style={ + arc=0mm,breakable,enhanced,interior style={top color=purplegreen!9 ,middle color=purplegreen!6, bottom color=purplegreen!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@lemma@overlay@unbroken{Corollary\ \thetcbcor}{purplegreen}, + overlay first=\my@lemma@overlay@first{Corollary\ \thetcbcor}{purplegreen}, + overlay last=\my@lemma@overlay@last{purplegreen}, + } + }, + proposition={ + counter=tcbprop, + the counter=\thesection.\arabic{tcbprop}, + autoref name=\bfseries Proposition, + style={ + arc=0mm,breakable,enhanced,interior style={top color=green!9 ,middle color=green!6, bottom color=green!3},arc=3pt,boxrule=0pt,top=6mm,bottom=5mm, + 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},purplered + before pre=\smallskip, after app=\smallskip, + overlay unbroken=\my@lemma@overlay@unbroken{Proposition\ \thetcbprop}{green}, + overlay first=\my@lemma@overlay@first{Proposition\ \thetcbprop}{green}, + overlay last=\my@lemma@overlay@last{green}, + } + }, + definition={ + counter=tcbdefi, + the counter=\thesection.\arabic{tcbdefi}, + autoref name=\bfseries Definition, + style={ + arc=0mm,breakable,enhanced,interior style={top color=purplered!9 ,middle color=purplered!6, bottom color=purplered!3},arc=3pt,boxrule=0pt,top=6mm,bottom=5mm, + 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@lemma@overlay@unbroken{Definition\ \thetcbdefi}{purplered}, + overlay first=\my@lemma@overlay@first{Definition\ \thetcbdefi}{purplered}, + overlay last=\my@lemma@overlay@last{purplered}, + } + }, + example={ + counter=tcbexam, + the counter=\thesection.\arabic{tcbexam}, + autoref name=\bfseries Example, + style={ + arc=0mm,breakable,enhanced,interior style={top color=red!9 ,middle color=red!6, bottom color=red!3},arc=3pt,boxrule=0pt,top=6mm,bottom=5mm, + 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},redpurple + before pre=\smallskip, after app=\smallskip, + overlay unbroken=\my@lemma@overlay@unbroken{Example\ \thetcbexam}{red}, + overlay first=\my@lemma@overlay@first{Example\ \thetcbexam}{red}, + overlay last=\my@lemma@overlay@last{red}, + } + }, + Exercise={ + counter=tcbexer, + the counter=\thechapter.\arabic{tcbexer}, + autoref name=\bfseries Exercise, + style={ + arc=0mm,breakable,enhanced,interior style={top color=redpurple!9 ,middle color=redpurple!6, bottom color=redpurple!3},arc=3pt,boxrule=0pt,top=6mm,bottom=5mm, + fuzzy shadow={-0.6mm}{0.6mm}{0mm}{0.3mm}{white!50!gray},% + fuzzy shadow={0.6mm}{-0.6mm}{0mm}{0.3mm}{fill=white!40!gray},% + opacityframe=0, opacityback=0.9, + fontupper=\normalsize,step={tcbexer}, + before pre=\smallskip, after app=\smallskip, + overlay unbroken=\my@lemma@overlay@unbroken{Exercise\ \thetcbexer}{redpurple}, + overlay first=\my@lemma@overlay@first{Exercise\ \thetcbexer}{redpurple}, + overlay last=\my@lemma@overlay@last{redpurple}, + } + }, + theorem={ + counter=tcbthm, + the counter=\thesection.\arabic{tcbthm}, + autoref name=\bfseries Theorem, + style={ + arc=0mm,breakable,enhanced,interior style={top color=purple!9 ,middle color=purple!6, bottom color=purple!3},arc=3pt,boxrule=0pt,top=6mm,bottom=5mm, + 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@lemma@overlay@unbroken{Theorem\ \thetcbthm}{purple}, + overlay first=\my@lemma@overlay@first{Theorem\ \thetcbthm}{purple}, + overlay last=\my@lemma@overlay@last{purple}, + } + }, + conjecture={ + counter=tcbconj, + the counter=\thesection.\arabic{tcbconj}, + name=Conjecture, + lemcolor=purple, + autoref name=\bfseries Conjecture, + style={ + arc=0mm,breakable,enhanced,interior style={top color=purple!9 ,middle color=purple!6, bottom color=purple!3},arc=3pt,boxrule=0pt,top=6mm,bottom=5mm, + 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@lemma@overlay@unbroken{Conjecture\ \thetcblem}{purple}, + overlay first=\my@lemma@overlay@first{Conjecture\ \thetcblem}{purple}, + overlay last=\my@lemma@overlay@last{purple}, + } + }, +} +\makeatother % @@ -430,29 +596,34 @@ sorting=nty \begin{document} \thispagestyle{empty} -\title{An Introduction to Beautybook template} +\title{Your title} \subtitle{} -\edition{First Edition} -\bookseries{Illustrated by Ethan Lu} -\author{Ethan Lu} -\pressname{Beautybook} +\edition{The Edition} +\bookseries{Illustrated by author} +\author{author} +\pressname{press} \presslogo{inner_pics/logo.png} \coverimage{inner_pics/coverimage.jpg}%ivy-ge998908f8_1280.jpg \makecover - +\makeatletter +% ---------------------------------------------------------------------------- % +% The Sidebar Theme Chosen % +% ---------------------------------------------------------------------------- % \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 \leftmark} % Odd page -\evenoutermargin{\sffamily\@title} % Even page -% +\oddoutermargin{\sffamily \leftmark} % Odd sidebar text +\evenoutermargin{\sffamily\@title} % Even sidebar text +% ---------------------------------------------------------------------------- % +% The Sidebar Theme Chosen % +% ---------------------------------------------------------------------------- % + +% ---------------------------------------------------------------------------- % +% The images used in the title % +% ---------------------------------------------------------------------------- % \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}, % @@ -462,10 +633,22 @@ sorting=nty % partevenimage={songeven,even1,even2,even3,even4,mid1,mid2,mid3,mid4,mid5,mid6,mid7,mid8,mid9,mid10,mid11}, } -\chapimage{\Beautybook@chapterimagename} -\partimage{\Beautybook@partimagename} +\chapimage{\beautybook@chapterimagename} +\partimage{\beautybook@partimagename} \makeatother -% +% ---------------------------------------------------------------------------- % +% The images used in the title % +% ---------------------------------------------------------------------------- % + +% ---------------------------------------------------------------------------- % +% The Color Chosen for The Magic Box % +% ---------------------------------------------------------------------------- % +\colorlet{framegolden}{fg} % The line color of the magic box +\colorlet{framegray}{bg!50} % The background color of the magic box +% ---------------------------------------------------------------------------- % +% The Color Chosen for The Magic Box % +% ---------------------------------------------------------------------------- % + \frontmatter \pagenumbering{Roman} @@ -478,8 +661,8 @@ An introduction to the beautybook template. \hfill \begin{tabular}{lr} - &--- Ethan Lu\\ - &2024-03-17 + &-- author\\ + & 2024-06-30 \end{tabular} \clearpage} %%%%%%%%%%%%%%%%%%%%%%%%%%%%%% @@ -492,11 +675,11 @@ An introduction to the beautybook template. \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}} +\part{Part} -\chapter{A short introduction of \textbf{Beautybook}} +\chapter{Chapter} -\section{Introduction} +\section{Section} % your main contents here! @@ -537,8 +720,8 @@ The English version of this template is based on the basic ``book" class, and th 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 +\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 @@ -546,7 +729,7 @@ In addition to the two language settings that come with the template, if you nee \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}. + \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} diff --git a/macros/latex/contrib/beautybook/stys/Beautybook-bottompage.sty b/macros/latex/contrib/beautybook/stys/beautybook-bottompage.sty index 892cf4fbac..069dc61f60 100644 --- a/macros/latex/contrib/beautybook/stys/Beautybook-bottompage.sty +++ b/macros/latex/contrib/beautybook/stys/beautybook-bottompage.sty @@ -1,5 +1,5 @@ \NeedsTeXFormat{LaTeX2e}[1995/12/01] -\ProvidesPackage{stys/Beautybook-bottompage}[2023/01/18,v2.0] +\ProvidesPackage{stys/beautybook-bottompage}[2024/06/30,v2.0] \usepackage[ISBN=978-80-85955-35-4,SC0]{ean13isbn} \makeatletter %%----------------------------------封面信息定义--------------------------------------------------------%% diff --git a/macros/latex/contrib/beautybook/stys/Beautybook-cover-birkar.sty b/macros/latex/contrib/beautybook/stys/beautybook-cover-birkar.sty index 8a2c51aa08..4253b6a3a0 100644 --- a/macros/latex/contrib/beautybook/stys/Beautybook-cover-birkar.sty +++ b/macros/latex/contrib/beautybook/stys/beautybook-cover-birkar.sty @@ -1,5 +1,5 @@ \NeedsTeXFormat{LaTeX2e}[1995/12/01] -\ProvidesPackage{stys/Beautybook-cover-birkar}[2022/05/21,v1.0] +\ProvidesPackage{stys/beautybook-cover-birkar}[2024/06/30,v2.0] \usepackage{anyfontsize} % 提供\fontsize{}{}\selectfont命令 \usepackage{etoolbox} %提供自定义封面选项接口 \usepackage[dvipsnames,svgnames,x11names,table]{xcolor}%颜色宏包 % Driver-independent color extensions @@ -33,22 +33,33 @@ decorations.pathmorphing, graphs, quotes, angles, calc, through, backgrounds} % 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); +\newcommand{\aivcover}{ + \begin{scope}[opacity=0.8] + \coordinate (triangleA) at ([shift={(1cm,-1.5cm)}]current page.north); + \coordinate (triangleB) at ([shift={(-.75\linewidth,-.44\paperheight)}]triangleA); + \coordinate (triangleC) at ([shift={(.5\linewidth,-.44\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.65cm,-7.8cm)}]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} +} + +\newcommand{\lettercover}{ \begin{scope}[opacity=0.8] \coordinate (triangleA) at ([shift={(1cm,-1cm)}]current page.north); \coordinate (triangleB) at ([shift={(-.85\linewidth,-.46\paperheight)}]triangleA); @@ -72,31 +83,54 @@ decorations.pathmorphing, graphs, quotes, angles, calc, through, backgrounds} % [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}% +} + +\newcommand*\makecover{ + \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); + % /* -------------------------------------------------------------------------- */ + % /* 判断a4paper */ + % /* -------------------------------------------------------------------------- */ + \ifaivpaper@TF{\aivcover}{\lettercover} + % /* -------------------------------------------------------------------------- */ + % /* 判断a4paper */ + % /* -------------------------------------------------------------------------- */ +\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 diff --git a/macros/latex/contrib/beautybook/stys/Beautybook-cover-cn.sty b/macros/latex/contrib/beautybook/stys/beautybook-cover-cn.sty index b151d4e5fc..176e740f6f 100644 --- a/macros/latex/contrib/beautybook/stys/Beautybook-cover-cn.sty +++ b/macros/latex/contrib/beautybook/stys/beautybook-cover-cn.sty @@ -1,5 +1,5 @@ \NeedsTeXFormat{LaTeX2e}[1995/12/01] -\ProvidesPackage{stys/Beautybook-cover-cn}[2023/05/10,v1.0] +\ProvidesPackage{stys/beautybook-cover-cn}[2024/06/30,v2.0] \usetikzlibrary{calc,fadings,patterns} \usepackage{adjustbox} %修正minipage顶部对齐问题 %%%%===============================================================%%%%% @@ -13,8 +13,8 @@ left color =transparent!100, right color=transparent!50] \tikzfading[name=fade up, -top color =transparent!100, -bottom color=transparent!50] + top color =transparent!100, + bottom color=transparent!50] \tikzfading[name=fade down, bottom color =transparent!100, top color=transparent!50] @@ -40,7 +40,7 @@ bottom color=transparent!50] \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] + \color{white}\sffamily\bfseries\fontsize{30}{30}\selectfont\@title\\[-1.2ex] \begin{tikzpicture} \draw[white,line width=1pt] (0,0) --++ (\paperwidth-3\outermarginwidth,0); \end{tikzpicture}\\[-.5ex] @@ -64,17 +64,17 @@ bottom color=transparent!50] \end{minipage}} };% 封面作者信息栏 \fill [path picture={ \node at (path picture bounding box.center) - {\includegraphics[height=1.1\linewidth]{\@coverimage}};}] + {\includegraphics[height=1.1\linewidth,keepaspectratio]{\@coverimage}};}] ([xshift=\outermarginwidth]current page.south west) rectangle ++(1.8*\covershift,.575\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+.5cm,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+.5cm,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}};% + \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+.5cm,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+.5cm,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 diff --git a/macros/latex/contrib/beautybook/stys/Beautybook-cover-en.sty b/macros/latex/contrib/beautybook/stys/beautybook-cover-en.sty index 2279661d94..1c86810380 100644 --- a/macros/latex/contrib/beautybook/stys/Beautybook-cover-en.sty +++ b/macros/latex/contrib/beautybook/stys/beautybook-cover-en.sty @@ -1,5 +1,5 @@ \NeedsTeXFormat{LaTeX2e}[1995/12/01] -\ProvidesPackage{stys/Beautybook-cover-en}[2022/05/21,v1.0] +\ProvidesPackage{stys/beautybook-cover-en}[2024/06/30,v2.0] \usepackage{anyfontsize} % 提供\fontsize{}{}\selectfont命令 \usepackage{etoolbox} %提供自定义封面选项接口 \usepackage[dvipsnames,svgnames,x11names,table]{xcolor}%颜色宏包 % Driver-independent color extensions @@ -14,8 +14,8 @@ left color =transparent!100, right color=transparent!50] \tikzfading[name=fade up, - top color =transparent!100, - bottom color=transparent!50] + top color =transparent!100, % 完全透明 + bottom color=transparent!50] % 半透明 \tikzfading[name=fade down, bottom color =transparent!100, top color=transparent!50] diff --git a/macros/latex/contrib/beautybook/stys/Beautybook-cover-enfig.sty b/macros/latex/contrib/beautybook/stys/beautybook-cover-enfig.sty index 005518a6d9..e84129ddea 100644 --- a/macros/latex/contrib/beautybook/stys/Beautybook-cover-enfig.sty +++ b/macros/latex/contrib/beautybook/stys/beautybook-cover-enfig.sty @@ -1,8 +1,5 @@ \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} +\ProvidesPackage{stys/beautybook-cover-enfig}[2024/06/30,v2.0] \tikzfading[name=fade right, right color =transparent!100, left color=transparent!0] diff --git a/macros/latex/contrib/preview/preview.dtx b/macros/latex/contrib/preview/preview.dtx index f8b72e0522..cafb03636d 100644 --- a/macros/latex/contrib/preview/preview.dtx +++ b/macros/latex/contrib/preview/preview.dtx @@ -20,7 +20,7 @@ % Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, % Boston, MA 02110-1301 USA % \fi -% \CheckSum{1758} +% \CheckSum{1770} % \GetFileInfo{preview.sty} % \date{\filedate} % \author{David Kastrup\thanks{\texttt{bug-auctex@gnu.org}}} @@ -437,8 +437,8 @@ %<*style> %<*!active> \NeedsTeXFormat{LaTeX2e} -\def\pr@version{13.3} -\def\pr@date{2024/01/17} +\def\pr@version{14.0.6} +\def\pr@date{2024/06/30} \ProvidesPackage{preview}[\pr@date\space \pr@version\space (AUCTeX/preview-latex)] % \end{macrocode} % \end{macro} @@ -1427,11 +1427,17 @@ Please complain to your document class author}% %<auccfg>\PreviewMacro*[?[{@{[]}}{}][#1]\item %<auccfg>\PreviewMacro*\emph %<auccfg>\PreviewMacro*\textrm +%<auccfg>\PreviewMacro*\textbf %<auccfg>\PreviewMacro*\textit %<auccfg>\PreviewMacro*\textsc %<auccfg>\PreviewMacro*\textsf %<auccfg>\PreviewMacro*\textsl %<auccfg>\PreviewMacro*\texttt +%<auccfg>\PreviewMacro*\textulc +%<auccfg>\PreviewMacro*\textmd +%<auccfg>\PreviewMacro*\textnormal +%<auccfg>\PreviewMacro*\textup +%<auccfg>\PreviewMacro*\textsw %<auccfg>\PreviewMacro*\textcolor %<auccfg>\PreviewMacro*\mbox %<auccfg>\PreviewMacro*[][#1{}]\author @@ -1891,7 +1897,7 @@ Please complain to your document class author}% % \Finale{} % \iffalse % Local Variables: -% mode: doctex +% mode: docTeX % TeX-master: "preview.drv" % End: % \fi diff --git a/macros/latex/contrib/preview/preview.pdf b/macros/latex/contrib/preview/preview.pdf Binary files differindex 4728d12e42..57f681d0c3 100644 --- a/macros/latex/contrib/preview/preview.pdf +++ b/macros/latex/contrib/preview/preview.pdf diff --git a/macros/latex/contrib/sjtutex/sjtutex.dtx b/macros/latex/contrib/sjtutex/sjtutex.dtx index ab429d6850..bcf46b7fbe 100644 --- a/macros/latex/contrib/sjtutex/sjtutex.dtx +++ b/macros/latex/contrib/sjtutex/sjtutex.dtx @@ -216,7 +216,7 @@ Please update your TeX distribution}{}} %</class> %<*!(driver|install)> -%<+!driver>\GetIdInfo$Id: sjtutex.dtx 6d52363 2024-04-05 19:40:30 +0800 Alexara Wu <alexarawu@outlook.com> $ +%<+!driver>\GetIdInfo$Id: sjtutex.dtx 78f11bc 2024-06-29 23:01:32 +0800 Alexara Wu <alexarawu@outlook.com> $ %<class&thesis> {Thesis document class for Shanghai Jiao Tong University (SJTUTeX)} %<class&thesis>\ProvidesExplClass{sjtuthesis} %<class&report> {Report document class for Shanghai Jiao Tong University (SJTUTeX)} @@ -335,7 +335,7 @@ %<font&cjk&founder&zh>\ProvidesExplFile{sjtu-cjk-font-founder-zh.def} %<font&cjk&founder&ja> {Founder CJK fonts definition for Japanese (SJTUTeX)} %<font&cjk&founder&ja>\ProvidesExplFile{sjtu-cjk-font-founder-ja.def} -%<!driver> {\ExplFileDate}{2.1.2}{\ExplFileDescription} +%<!driver> {\ExplFileDate}{2.1.3}{\ExplFileDescription} %</!(driver|install)> % %<*driver> @@ -343,7 +343,7 @@ \documentclass{ctxdoc} \newcommand{\sjtutex}{SJTU\TeX} \expandafter\def\csname ver@\jobname.dtx\endcsname - {2024/04/05 v2.1.2 SJTUTeX} + {2024/06/29 v2.1.3 SJTUTeX} \usepackage{float} \usepackage{multirow} \usepackage{longtable} @@ -1638,6 +1638,14 @@ % \urlprefix\url{https://ctan.org/pkg/ctex} % \urlprefix\CTANurl[文档及源代码:]{language/chinese/ctex/ctex.pdf} % +% \bibitem{zhlineskip} +% 张瑞熹. +% \newblock \textit{zhlineskip 宏包}\allowbreak[EB/OL]. +% \newblock version 1.0e, +% \newblock (2019-05-15). +% \urlprefix\url{https://ctan.org/pkg/zhlineskip} +% \urlprefix\CTANurl[文档:]{language/chinese/zhlineskip/zhlineskip.pdf} +% % \bibitem{fduthesis} % 曾祥东. % \newblock \textit{fduthesis: 复旦大学论文模板}\allowbreak[EB/OL]. @@ -4076,6 +4084,11 @@ %<thesis> \exp_not:N \zihao { \g_@@_zihao_tl } %<!thesis> equation-font .initial:V = \c_empty_tl } +% \end{macrocode} +% \end{macro} +% +% 借用 \pkg{zhlineskip} 宏包的代码设置行间公式字体。 +% \begin{macrocode} \clist_map_inline:nn { array, matrix, pmatrix, bmatrix, Bmatrix, vmatrix, Vmatrix, @@ -4101,7 +4114,6 @@ \spread@equation } % \end{macrocode} -% \end{macro} % % \subsection{数学环境} % @@ -5318,23 +5330,24 @@ % \end{macro} % % \changes{v2.1.2}{2024/03/31}{改用 \pkg{titletoc} 设置目录格式。} +% \changes{v2.1.3}{2024/06/28}{更新目录样式。} % \begin{macrocode} \tl_set:Nn \SJTU@leaders { \titlerule* [ 4bp ] { . } } \contentsmargin [ 2.55 em ] { 0 pt } %<article>\titlecontents { section } %<!article>\titlecontents { chapter } [ 0 pt ] { \addvspace { 6 bp } \bfseries } - { \contentspush { \thecontentslabel \quad } } { } + { \contentspush { \thecontentslabel \enskip } } { } { \SJTU@leaders \thecontentspage } %<article>\titlecontents { subsection } %<!article>\titlecontents { section } [ 2 em ] { } - { \contentspush { \thecontentslabel \quad } } { } + { \contentspush { \thecontentslabel \enskip } } { } { \SJTU@leaders \thecontentspage } %<article>\titlecontents { subsubsection } %<!article>\titlecontents { subsection } [ 4 em ] { } - { \contentspush { \thecontentslabel \quad } } { } + { \contentspush { \thecontentslabel \enskip } } { } { \SJTU@leaders \thecontentspage } % \end{macrocode} % @@ -5357,7 +5370,7 @@ { \SJTU@listof {#4} {#2} } \titlecontents {#2} [ 0 pt ] { } - { \contentspush { #3 \space \thecontentslabel \quad } } { } + { \contentspush { #3 \space \thecontentslabel \enskip } } { } { \SJTU@leaders \thecontentspage } \exp_args:Nnv \contentsuse {#2} { ext@ #2 } } @@ -6044,7 +6057,7 @@ { address } { Shanghai,~ P.R.~ China } , { author } { Author } , { supervisor } { Supervisor } , - { assoc_supervisor } { Assoc.~ Supervisor } , + { assoc_supervisor } { Assoc.\ Supervisor } , { co_supervisor } { Co-supervisor } , { title_page } { Title~ Page } , { declaration } { Statutory~ Declaration } , diff --git a/macros/latex/contrib/sjtutex/sjtutex.pdf b/macros/latex/contrib/sjtutex/sjtutex.pdf Binary files differindex ae3ed269b6..a5994fd3be 100644 --- a/macros/latex/contrib/sjtutex/sjtutex.pdf +++ b/macros/latex/contrib/sjtutex/sjtutex.pdf |