This commit is contained in:
EthanDeng
2019-01-15 18:19:15 +08:00
parent d79866f1cb
commit 8f09be2d61
2 changed files with 78 additions and 114 deletions

View File

@@ -40,8 +40,8 @@
\LoadClass[12pt,a4paper,openany]{book}
\usepackage[UTF8,space=auto,scheme=plain]{ctex}
\usepackage{indentfirst}
\RequirePackage[UTF8,space=auto,scheme=plain]{ctex}
\RequirePackage{indentfirst}
\setlength\parindent{2em}
% font setting for text and math
@@ -51,6 +51,16 @@
\RequirePackage[scale=0.85]{newtxtt}
\RequirePackage{type1cm}
\DeclareSymbolFont{cmlargesymbols}{OMX}{cmex}{m}{n}
\DeclareMathSymbol{\intop}{\mathop}{cmlargesymbols}{"5A}
\def\int{\intop\nolimits}
\DeclareMathSymbol{\ointop}{\mathop}{cmlargesymbols}{"49}
\def\oint{\ointop\nolimits}
\DeclareMathSymbol{\sumop}{\mathop}{cmlargesymbols}{"58}
\let\sum\sumop
\DeclareMathSymbol{\prodop}{\mathop}{cmlargesymbols}{"59}
\let\prod\prodop
% ----- Handle Colors -----
%%
@@ -74,7 +84,9 @@
\definecolor{third}{RGB}{7,127,128}%
}{\relax}
% corlor definition
\definecolor{winered}{rgb}{0.5,0,0}
\definecolor{bule}{RGB}{18,29,57}
\AtBeginDocument{
\input{base.tex}
@@ -104,9 +116,6 @@
\newtoks\enend
\newtoks\zhend
%%
%%
\renewcommand{\contentsname}{\hspace{2em}}
@@ -119,54 +128,38 @@
\renewcommand{\appendixname}{}
\renewcommand{\indexname}{\hspace{2em}}
% more pretty font
%%
\linespread{1.3}
\RequirePackage{microtype}
\RequirePackage{booktabs}
\RequirePackage{multicol}
\RequirePackage{xcolor}
\RequirePackage{graphicx}
\RequirePackage{fancyvrb}
\graphicspath{{image/}{figure/}{fig/}{img/}}
%%
\RequirePackage{graphicx}
\RequirePackage{enumerate}
\RequirePackage{amsmath,mathrsfs,amsfonts}
\RequirePackage{booktabs}
\linespread{1.3}
\RequirePackage{multicol}
\RequirePackage{xcolor}
\RequirePackage{fancyvrb}
\graphicspath{{./figure/}{./figures/}{./image/}{./images/}{./graphics/}{./graphic/}{./pictures/}{./picture/}}
\newcommand*{\myquote}[1]{\def\@myquote{#1}}
\newcommand*{\logo}[1]{
\def\@logo{\includegraphics[width=0.3\textwidth]{#1}
}
}
%%
\RequirePackage{wallpaper}
\newcommand*{\cover}[1]{\def\@cover{
\ThisTileWallPaper{\paperwidth}{\paperheight}{#1}
}
}
\RequirePackage{natbib}
\setlength{\bibsep}{0.0pt}
\def\bibfont{\footnotesize}
%%
\RequirePackage{hyperref}
\AtBeginDocument{
\hypersetup{
pdftitle = {\the\zhtitle\the\zhend},
pdfauthor = {\@author}
}
\RequirePackage{geometry}
\geometry{
a4paper,
left=27mm, %% or inner=23mm
right=27mm, %% or outer=18mm
top=25.4mm, bottom=25.4mm,
headheight=2.17cm,
headsep=4mm,
footskip=12mm
}
\RequirePackage{hyperref}
\hypersetup{
breaklinks,
unicode,
@@ -174,6 +167,8 @@
bookmarksnumbered=true,
bookmarksopen=true,
pdfsubject=\@author \@title Book,
pdftitle = {\the\zhtitle\the\zhend},
pdfauthor = {\@author}
pdfkeywords={ElegantBook},
pdfcreator={XeLaTeX with ElegantBook class},
colorlinks,
@@ -185,16 +180,6 @@
linktocpage
}
\RequirePackage{geometry}
\geometry{
a4paper,
left=27mm, %% or inner=23mm
right=27mm, %% or outer=18mm
top=25.4mm, bottom=25.4mm,
headheight=2.17cm,
headsep=4mm,
footskip=12mm
}
%%
\RequirePackage[center,pagestyles]{titlesec}
@@ -216,25 +201,20 @@
%\titlespacing{\subsection}{0pt}{0.5\baselineskip}{-\baselineskip}
% caption settings
\RequirePackage{caption}
\captionsetup{labelfont = bf}
\RequirePackage[font=small,labelfont={bf}]{caption}
\captionsetup[table]{skip=3pt}
\captionsetup[figure]{skip=3pt}
\newcommand\figref[1]{\textbf{Figure}~\ref{#1}}
\newcommand\tabref[1]{\textbf{Table}~\ref{#1}}
% list/itemize/enumerate setting
\RequirePackage[shortlabels]{enumitem}
\setlist{nolistsep}
% caption settings
\RequirePackage[font=small,labelfont={bf}]{caption}
\captionsetup[table]{skip=3pt}
\captionsetup[figure]{skip=3pt}
\definecolor{bule}{RGB}{18,29,57}
\RequirePackage[most]{tcolorbox}
\tcbset{
@@ -299,8 +279,6 @@
\par\medskip\ignorespacesafterend %
}
%%define the note and proof environment
\RequirePackage{pifont,manfnt}
\newenvironment{note}{\par\noindent{\makebox[0pt][r]{\scriptsize\color{red!90}\textdbend\quad}\textbf{\color{main}{}}}\itshape}{\par}
@@ -312,10 +290,7 @@
\newenvironment{solution}{\par\noindent\textbf{\color{main}{}}}{\par}
\newenvironment{property}{\par\noindent\textbf{\color{main}{}}}{\par}
%
\RequirePackage{fancyhdr}
\RequirePackage{lastpage}
\fancyhf{}
@@ -330,26 +305,19 @@
\renewcommand{\sectionmark}[1]{\markright{\thesection\; #1}{} }
\renewcommand{\chaptermark}[1]{\markboth{\chaptername \; #1\;}{}}
\DeclareSymbolFont{cmlargesymbols}{OMX}{cmex}{m}{n}
\DeclareMathSymbol{\intop}{\mathop}{cmlargesymbols}{"5A}
\def\int{\intop\nolimits}
\DeclareMathSymbol{\ointop}{\mathop}{cmlargesymbols}{"49}
\def\oint{\ointop\nolimits}
\DeclareMathSymbol{\sumop}{\mathop}{cmlargesymbols}{"58}
\let\sum\sumop
\DeclareMathSymbol{\prodop}{\mathop}{cmlargesymbols}{"59}
\let\prod\prodop
\newcommand\figref[1]{\textbf{Figure}~\ref{#1}}
\newcommand\tabref[1]{\textbf{Table}~\ref{#1}}
%%
\newcommand*{\myquote}[1]{\def\@myquote{#1}}
\newcommand*{\logo}[1]{
\def\@logo{\includegraphics[width=0.3\textwidth]{#1}
}
}
%%
\RequirePackage{wallpaper}
\newcommand*{\cover}[1]{\def\@cover{
\ThisTileWallPaper{\paperwidth}{\paperheight}{#1}
}
}
\def\maketitle{%
\thispagestyle{empty}
@@ -389,7 +357,3 @@
\RequirePackage{natbib}
\setlength{\bibsep}{0.0pt}
\def\bibfont{\footnotesize}

Binary file not shown.