diff options
Diffstat (limited to 'macros/latex/contrib/beautybook/beautybook-cn.tex')
-rw-r--r-- | macros/latex/contrib/beautybook/beautybook-cn.tex | 1031 |
1 files changed, 1031 insertions, 0 deletions
diff --git a/macros/latex/contrib/beautybook/beautybook-cn.tex b/macros/latex/contrib/beautybook/beautybook-cn.tex new file mode 100644 index 0000000000..7e30e04814 --- /dev/null +++ b/macros/latex/contrib/beautybook/beautybook-cn.tex @@ -0,0 +1,1031 @@ +%% 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[lang=cn,zihao=-4,a4paper,fontset=windows]{beautybook} +% ---------------------------------------------------------------------------- % +% 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-choose=cn, % cn ; en ; enfig ; birkar +} +% ---------------------------------------------------------------------------- % +% The Cover Theme Chosen % +% ---------------------------------------------------------------------------- % +\mathstyle={ % 数学字体键值列表 + math-font=plain, %plain (默认数学字体); stix; mtpro2 +} +\RequirePackage{fontspec} +\setmainfont{XITS} +\setsansfont{DejaVu Sans} +\setmonofont{Latin Modern Mono} +\renewcommand{\partial}{∂} +%% 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@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@theorem@overlay@unbroken{Problem\ \thetcbprob}{绛紫}, + overlay first=\my@theorem@overlay@first{Problem\ \thetcbprob}{绛紫}, + overlay last=\my@theorem@overlay@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@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=茶色!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@lemma@overlay@unbroken{Corollary\ \thetcbcor}{茶色}, + overlay first=\my@lemma@overlay@first{Corollary\ \thetcbcor}{茶色}, + overlay last=\my@lemma@overlay@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@lemma@overlay@unbroken{Proposition\ \thetcbprop}{黛绿}, + overlay first=\my@lemma@overlay@first{Proposition\ \thetcbprop}{黛绿}, + overlay last=\my@lemma@overlay@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@lemma@overlay@unbroken{Definition\ \thetcbdefi}{茜色}, + overlay first=\my@lemma@overlay@first{Definition\ \thetcbdefi}{茜色}, + overlay last=\my@lemma@overlay@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@lemma@overlay@unbroken{Example\ \thetcbexam}{黛绿}, + overlay first=\my@lemma@overlay@first{Example\ \thetcbexam}{黛绿}, + overlay last=\my@lemma@overlay@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@lemma@overlay@unbroken{Exercise\ \thetcbexer}{绛紫}, + overlay first=\my@lemma@overlay@first{Exercise\ \thetcbexer}{绛紫}, + overlay last=\my@lemma@overlay@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@lemma@overlay@unbroken{Theorem\ \thetcbthm}{黛绿}, + overlay first=\my@lemma@overlay@first{Theorem\ \thetcbthm}{黛绿}, + overlay last=\my@lemma@overlay@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@lemma@overlay@unbroken{Conjecture\ \thetcblem}{靛蓝}, + overlay first=\my@lemma@overlay@first{Conjecture\ \thetcblem}{靛蓝}, + overlay last=\my@lemma@overlay@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 + + \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 + }% +% 设置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模板简介} +\subtitle{这是一个副标题!} +\edition{First Edition} +\bookseries{Ilustrated by Ethan Lu} +\author{Ethan Lu} +\pressname{Beautybook} +\presslogo{inner_pics/beautybook-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} +% set the contents of the outer margin on even and odd pages for scrheadings, plain and scth +\oddoutermargin{\sffamily \leftmark} % Odd +\evenoutermargin{\sffamily\@title} % Even +% ---------------------------------------------------------------------------- % +% 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}, +% + 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@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} + +{% Preface +\thispagestyle{empty} +% \addcontentsline{toc}{chapter}{Preface} +\chapter*{Preface} +Introduction to Beatybook template. + + +\hfill +\begin{tabular}{lr} + &--- Ethan Lu\\ + &2024-03-17 +\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@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} +\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编译! +\newpage +\subsection{本地安装使用} + +\textbf{本地安装}使用方法如下:从 GitHub 或者 QQ群下载最新版, 然后将模板文件放在你的工作目录下即可使用。 + +以下是最小工作示例: +\begin{lstlisting} +\documentclass[lang=cn,zihao=-4,a4paper,fontset=windows]{beautybook} +% ---------------------------------------------------------------------------- % +% 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-choose=cn, % cn ; en ; enfig ; birkar +} +% ---------------------------------------------------------------------------- % +% The Cover Theme Chosen % +% ---------------------------------------------------------------------------- % +\mathstyle={ % 数学字体键值列表 + math-font=plain, %plain (默认数学字体); stix; mtpro2 +} +\RequirePackage{fontspec} +\setmainfont{XITS} +\setsansfont{DejaVu Sans} +\setmonofont{Latin Modern Mono} +\renewcommand{\partial}{∂} +\coverstyle={ % 封面键值列表 + cover-choose=cn, % cn ; 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@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@theorem@overlay@unbroken{Problem\ \thetcbprob}{绛紫}, + overlay first=\my@theorem@overlay@first{Problem\ \thetcbprob}{绛紫}, + overlay last=\my@theorem@overlay@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@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=茶色!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@lemma@overlay@unbroken{Corollary\ \thetcbcor}{茶色}, + overlay first=\my@lemma@overlay@first{Corollary\ \thetcbcor}{茶色}, + overlay last=\my@lemma@overlay@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@lemma@overlay@unbroken{Proposition\ \thetcbprop}{黛绿}, + overlay first=\my@lemma@overlay@first{Proposition\ \thetcbprop}{黛绿}, + overlay last=\my@lemma@overlay@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@lemma@overlay@unbroken{Definition\ \thetcbdefi}{茜色}, + overlay first=\my@lemma@overlay@first{Definition\ \thetcbdefi}{茜色}, + overlay last=\my@lemma@overlay@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@lemma@overlay@unbroken{Example\ \thetcbexam}{黛绿}, + overlay first=\my@lemma@overlay@first{Example\ \thetcbexam}{黛绿}, + overlay last=\my@lemma@overlay@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@lemma@overlay@unbroken{Exercise\ \thetcbexer}{绛紫}, + overlay first=\my@lemma@overlay@first{Exercise\ \thetcbexer}{绛紫}, + overlay last=\my@lemma@overlay@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@lemma@overlay@unbroken{Theorem\ \thetcbthm}{黛绿}, + overlay first=\my@lemma@overlay@first{Theorem\ \thetcbthm}{黛绿}, + overlay last=\my@lemma@overlay@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@lemma@overlay@unbroken{Conjecture\ \thetcblem}{靛蓝}, + overlay first=\my@lemma@overlay@first{Conjecture\ \thetcblem}{靛蓝}, + overlay last=\my@lemma@overlay@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 + \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@chapterimagename} % 会自动改变 +\partimage{\beautybook@partimagename} % 会自动改变 +\makeatother +% +\frontmatter +\pagenumbering{Roman} + +{% Preface +\thispagestyle{empty} +% \addcontentsline{toc}{chapter}{Preface} +\chapter*{Preface} +Introduction to Beatybook template. + + +\hfill +\begin{tabular}{lr} + &-- Ethan Lu\\ + &2024-06-30 +\end{tabular} +\clearpage} +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + +\thispagestyle{empty} +\tableofcontents\let\cleardoublepage\clearpage + + +\mainmatter +\pagenumbering{arabic} + +\partabstract{\hspace*{2em} \textbf{Beautybook} 模板的使用说明,这里是每一个部分 (Part) 的简介区域, 您可以在此处书写下您对该部分的一个简明扼要的概述, 当然,倘若无话可说,此处可以留空.} +\part{\textbf{Beautybook} 模板使用说明} + +\chapter{Beautybook模板的简要介绍} + +\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 23H2 + \TeX{} Live 2024; +\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 的兼容、系统路径问题,请参考官方文档。 + + + +\chapter{beautybook 设置说明} + +本模板英文版基于基础的 book 文类, 中文版则基于ctexbook文类,所以 book或者 ctexbook 的选项对于本模板也是有效的。默认编码为 UTF-8,推荐使用 \TeX{} Live 编译。 + +\section{语言模式} +本模板内含两套基础语言环境, 分别为中文和英文。改变语言环境会改变图表标题的引导词(图,表),文章结构词(比如目录,参考文献等),以及定理环境中的引导词(比如定理,引理等)。不同语言模式的启用如下: +\begin{lstlisting} + \documentclass[lang=cn,zihao=-4,a4paper,fontset=windows]{beautybook} % 中文 + \documentclass[lang=en]{beautybook} % 英文 +\end{lstlisting} + +除模板自带的两套语言设定之外,如果您需要使用其他语言, 可以通过更改cls文件中这几处解决, 分别为 + +\begin{enumerate} + \item 更改 part环境的名称 \lstinline{Part \thepart}为 \lstinline{(你的语言中part的翻译) \thepart} + \item 主文件,即当前文件导言区中的定理引导词 + \item 更改chapter环境中的part名称如第一条所示 +\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| & &&&\\ + \hline + \end{tabular} +\end{table} + + +\subsection{封面图} +封面图片可以自行选取. + +\subsection{徽标} + +本文用到的 Logo 为作者自行制作的beautybook专用Logo, 另外还可以使用自己的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@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@theorem@overlay@unbroken{\theorem@name\ \thetcbthm}{\theorem@thmcolor}, + overlay first=\my@theorem@overlay@first{\theorem@name\ \thetcbthm}{\theorem@thmcolor}, + overlay last=\my@theorem@overlay@last{\theorem@thmcolor}, + } + }, + 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@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}, + } + }, +} +\end{lstlisting} +\begin{remark} + 解释一下, 其中的overlay部分更改需要看中文修改,定理名称改成你想要的,颜色也是,然后别忘了给最外面的example之类的环境名改成你的,比如axiom之类,还有就是tcbexam这个计数器名称要换成你新定义的,如tcbaxiom之类,其他就不用动了。至于说第一种定理样式看上面例子相信您能学会的。 +\end{remark} +\newpage +\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)即可。 + +文献样式默认为数字样式。 +\begin{lstlisting} +\usepackage[ +backend=biber, % 可改为bibtex +style=numeric, % 可改为其他样式,参考biblatex说明文档 +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{数学字体选项} +本模板使用的是默认数学字体,仅将$\partial$符号改为Times New Roman的Unicode符号。 + +{\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 |