about lvert problem?

This commit is contained in:
EthanDeng
2019-11-04 22:55:51 +08:00
parent a1d2dedc13
commit 406f0a3d34
3 changed files with 240 additions and 233 deletions

View File

@@ -1,4 +1,5 @@
\documentclass[cn,11pt]{elegantbook} \documentclass[cn,11pt, twocol]{elegantbook}
\usepackage{tocloft}
\title{ElegantBook优美的 \LaTeX{} 书籍模板} \title{ElegantBook优美的 \LaTeX{} 书籍模板}
\subtitle{Elegant\LaTeX{} 经典之作} \subtitle{Elegant\LaTeX{} 经典之作}
@@ -36,8 +37,8 @@ Elegant\LaTeX{} 项目组致力于打造一系列美观、优雅、简便的模
\item CTAN 地址:\href{https://ctan.org/pkg/elegantbook}{https://ctan.org/pkg/elegantbook} \item CTAN 地址:\href{https://ctan.org/pkg/elegantbook}{https://ctan.org/pkg/elegantbook}
\item 文档 Wiki\href{https://github.com/ElegantLaTeX/ElegantBook/wiki}{https://github.com/ElegantLaTeX/ElegantBook/wiki} \item 文档 Wiki\href{https://github.com/ElegantLaTeX/ElegantBook/wiki}{https://github.com/ElegantLaTeX/ElegantBook/wiki}
\item 下载地址:\href{https://github.com/ElegantLaTeX/ElegantBook/releases}{正式发行版}\href{https://github.com/ElegantLaTeX/ElegantBook/archive/master.zip}{最新版} \item 下载地址:\href{https://github.com/ElegantLaTeX/ElegantBook/releases}{正式发行版}\href{https://github.com/ElegantLaTeX/ElegantBook/archive/master.zip}{最新版}
\item 微博ElegantLaTeX \item 微博Elegant\LaTeX{}
\item 微信公众号ElegantLaTeX \item 微信公众号Elegant\LaTeX{}
\item 用户 QQ 群692108391 \item 用户 QQ 群692108391
\item 邮件:\email{elegantlatex2e@gmail.com} \item 邮件:\email{elegantlatex2e@gmail.com}
\end{itemize} \end{itemize}
@@ -81,7 +82,7 @@ Elegant\LaTeX{} 项目组致力于打造一系列美观、优雅、简便的模
我们把三套模板全部上传到 \href{https://www.overleaf.com/}{Overleaf} 上了,网络便利的用户可以直接通过 Overleaf 在线使用我们的模板。使用 Overleaf 的好处是无需安装 \TeX{} Live 2019可以随时随地访问自己的文件。查找模板请在 Overleaf 模板库里面搜索 \lstinline{elegantlatex} 即可,你也可以直接访问\href{https://www.overleaf.com/latex/templates?addsearch=elegantlatex}{搜索结果}。选择适当的模板之后,将其 \lstinline{Open as Template},即可把模板存到自己账户下,然后可以自由编辑以及与别人一起协作。更多关于 Overleaf 的介绍和使用,请参考 Overleaf 的\href{https://www.overleaf.com/learn}{官方文档} 我们把三套模板全部上传到 \href{https://www.overleaf.com/}{Overleaf} 上了,网络便利的用户可以直接通过 Overleaf 在线使用我们的模板。使用 Overleaf 的好处是无需安装 \TeX{} Live 2019可以随时随地访问自己的文件。查找模板请在 Overleaf 模板库里面搜索 \lstinline{elegantlatex} 即可,你也可以直接访问\href{https://www.overleaf.com/latex/templates?addsearch=elegantlatex}{搜索结果}。选择适当的模板之后,将其 \lstinline{Open as Template},即可把模板存到自己账户下,然后可以自由编辑以及与别人一起协作。更多关于 Overleaf 的介绍和使用,请参考 Overleaf 的\href{https://www.overleaf.com/learn}{官方文档}
\begin{remark} \begin{remark}
Overleaf 上,中文需要使用 \lstinline{XeLaTeX} 进行编译,英文可以使用 \lstinline{PDFLaTeX}\lstinline{XeLaTeX} 进行编译。 Overleaf 上,中文需要使用 \hologo{XeLaTeX} 进行编译,英文可以使用 \hologo{pdfLaTeX}\hologo{XeLaTeX} 进行编译。
\end{remark} \end{remark}
\section{用户作品计划} \section{用户作品计划}
@@ -153,7 +154,7 @@ Elegant\LaTeX{} 系列模板从创立至今已经有 8 年了,我们的模板
\chapter{ElegantBook 设置说明} \chapter{ElegantBook 设置说明}
本模板基于基础的 book 文类,所以 book 的选项对于本模板也是有效的(纸张无效,因为模板有设备选项)。默认编码为 UTF-8推荐使用 \TeX{} Live 编译。本文编写环境为 Win10 (64bit) + \TeX{} Live 2019支持 \lstinline{PDFLaTeX} 以及 \lstinline{XeLaTeX} 编译。 本模板基于基础的 book 文类,所以 book 的选项对于本模板也是有效的(纸张无效,因为模板有设备选项)。默认编码为 UTF-8推荐使用 \TeX{} Live 编译。本文编写环境为 Win10 (64bit) + \TeX{} Live 2019支持 \hologo{pdfLaTeX} 以及 \hologo{XeLaTeX} 编译。
\section{语言模式} \section{语言模式}
@@ -164,7 +165,7 @@ Elegant\LaTeX{} 系列模板从创立至今已经有 8 年了,我们的模板
\end{lstlisting} \end{lstlisting}
\begin{remark} \begin{remark}
只有中文环境(\lstinline{lang=cn})才可以输入中文。另外如果抄录环境(\lstinline{lstlisting})中有中文字符,请务必使用 \lstinline{XeLaTeX} 编译。 只有中文环境(\lstinline{lang=cn})才可以输入中文。另外如果抄录环境(\lstinline{lstlisting})中有中文字符,请务必使用 \hologo{XeLaTeX} 编译。
\end{remark} \end{remark}
\section{设备选项} \section{设备选项}
@@ -433,7 +434,7 @@ The content of introduction.
\item exercise 3 \item exercise 3
\item 测试数学公式 \item 测试数学公式
\begin{equation} \begin{equation}
a^2+b^2=c^2 a^2+b^2=c_{2_{i}} (1,2) [1,23]
\end{equation} \end{equation}
\item 测试插图 \item 测试插图
\begin{figure}[htp] \begin{figure}[htp]
@@ -763,9 +764,13 @@ Lebesgue 积分有几种不同的定义方式。我们将采用逐步定义非
\bibliography{reference} \bibliography{reference}
\appendix \appendix
\chapter{基本数学工具} \chapter{基本数学工具}
本附录包括了计量经济学中用到的一些基本数学,我们扼要论述了求和算子的各种性质,研究了线性和某些非线性方程的性质,并复习了比例和百分数。我们还介绍了一些在应用计量经济学中常见的特殊函数,包括二次函数和自然对数,前 4 节只要求基本的代数技巧,第 5 节则对微分学进行了简要回顾;虽然要理解本书的大部分内容,微积分并非必需,但在一些章末附录和第 3 篇某些高深专题中,我们还是用到了微积分。 本附录包括了计量经济学中用到的一些基本数学,我们扼要论述了求和算子的各种性质,研究了线性和某些非线性方程的性质,并复习了比例和百分数。我们还介绍了一些在应用计量经济学中常见的特殊函数,包括二次函数和自然对数,前 4 节只要求基本的代数技巧,第 5 节则对微分学进行了简要回顾;虽然要理解本书的大部分内容,微积分并非必需,但在一些章末附录和第 3 篇某些高深专题中,我们还是用到了微积分。
\section{求和算子与描述统计量} \section{求和算子与描述统计量}

View File

@@ -1,4 +1,4 @@
\documentclass[fancy,11pt,twocol]{elegantbook} \documentclass[fancy,11pt,twocol,mtpro2]{elegantbook}
\title{An Elegant \LaTeX{} Template for Books} \title{An Elegant \LaTeX{} Template for Books}
\subtitle{Classic Elegant\LaTeX{} Template} \subtitle{Classic Elegant\LaTeX{} Template}
@@ -54,6 +54,7 @@ What\rq s new in this version:
\end{note} \end{note}
\section{Installation and Update} \section{Installation and Update}
Both portable version and installation package are available for this template. Both portable version and installation package are available for this template.
For portable version, simply download lastest ElegantBook-master from Github or CTAN (to be more accurate, download \lstinline{elegantbook.cls}) and save the file(s) under your working directory. This way of installation is simple and convenient, but you have to manually update \lstinline{cls} now and then. For portable version, simply download lastest ElegantBook-master from Github or CTAN (to be more accurate, download \lstinline{elegantbook.cls}) and save the file(s) under your working directory. This way of installation is simple and convenient, but you have to manually update \lstinline{cls} now and then.

View File

@@ -76,6 +76,7 @@
% \ProcessOptions*\relax % \ProcessOptions*\relax
\LoadClass[a4paper,oneside]{book} \LoadClass[a4paper,oneside]{book}
\RequirePackage{indentfirst,comment} \RequirePackage{indentfirst,comment}
% fontsetting % fontsetting
\ifdefstring{\ELEGANT@math}{mtpro2}{ \ifdefstring{\ELEGANT@math}{mtpro2}{
@@ -85,6 +86,7 @@
\PassOptionsToPackage{no-math}{fontspec} \PassOptionsToPackage{no-math}{fontspec}
\RequirePackage{amsmath,mathrsfs,amsfonts,amssymb}
\ifdefstring{\ELEGANT@lang}{cn}{ \ifdefstring{\ELEGANT@lang}{cn}{
\RequirePackage[UTF8, scheme=plain]{ctex} \RequirePackage[UTF8, scheme=plain]{ctex}
} }
@@ -96,6 +98,7 @@
% \addtocontents{lof}{\protect\thispagestyle{empty}}% % \addtocontents{lof}{\protect\thispagestyle{empty}}%
% } % }
\RequirePackage{newtxtext} \RequirePackage{newtxtext}
\RequirePackage{anyfontsize} \RequirePackage{anyfontsize}
\ifdefstring{\ELEGANT@math}{newtxmath}{ \ifdefstring{\ELEGANT@math}{newtxmath}{
@@ -109,6 +112,7 @@
%%% use esvect pkg, uncomment following code %%% use esvect pkg, uncomment following code
% \RequirePackage{esvect} % \RequirePackage{esvect}
\DeclareSymbolFont{CMlargesymbols}{OMX}{cmex}{m}{n} \DeclareSymbolFont{CMlargesymbols}{OMX}{cmex}{m}{n}
\let\sumop\relax\let\prodop\relax \let\sumop\relax\let\prodop\relax
\DeclareMathSymbol{\sumop}{\mathop}{CMlargesymbols}{"50} \DeclareMathSymbol{\sumop}{\mathop}{CMlargesymbols}{"50}
@@ -120,61 +124,61 @@
\RequirePackage{xcolor} \RequirePackage{xcolor}
\ifdefstring{\ELEGANT@color}{green}{ \ifdefstring{\ELEGANT@color}{green}{
\definecolor{structurecolor}{RGB}{0,120,2}% \definecolor{structurecolor}{RGB}{0,120,2}%
\definecolor{main}{RGB}{0,120,2}% \definecolor{main}{RGB}{0,120,2}%
\definecolor{second}{RGB}{230,90,7}% \definecolor{second}{RGB}{230,90,7}%
\definecolor{third}{RGB}{0,160,152}% \definecolor{third}{RGB}{0,160,152}%
}{\relax} }{\relax}
\ifdefstring{\ELEGANT@color}{cyan}{ \ifdefstring{\ELEGANT@color}{cyan}{
\definecolor{structurecolor}{RGB}{31,186,190}% \definecolor{structurecolor}{RGB}{31,186,190}%
\definecolor{main}{RGB}{59,180,5}% \definecolor{main}{RGB}{59,180,5}%
\definecolor{second}{RGB}{175,153,8}% \definecolor{second}{RGB}{175,153,8}%
\definecolor{third}{RGB}{244,105,102}% \definecolor{third}{RGB}{244,105,102}%
}{\relax} }{\relax}
\ifdefstring{\ELEGANT@color}{blue}{ \ifdefstring{\ELEGANT@color}{blue}{
\definecolor{structurecolor}{RGB}{60,113,183} \definecolor{structurecolor}{RGB}{60,113,183}
\definecolor{main}{RGB}{0,166,82}% \definecolor{main}{RGB}{0,166,82}%
\definecolor{second}{RGB}{255,134,24}% \definecolor{second}{RGB}{255,134,24}%
\definecolor{third}{RGB}{0,174,247}% \definecolor{third}{RGB}{0,174,247}%
}{\relax} }{\relax}
\ifdefstring{\ELEGANT@color}{gray}{ \ifdefstring{\ELEGANT@color}{gray}{
\definecolor{structurecolor}{RGB}{150,150,150} \definecolor{structurecolor}{RGB}{150,150,150}
\definecolor{main}{RGB}{150,150,150}% \definecolor{main}{RGB}{150,150,150}%
\definecolor{second}{RGB}{150,150,150}% \definecolor{second}{RGB}{150,150,150}%
\definecolor{third}{RGB}{150,150,150}% \definecolor{third}{RGB}{150,150,150}%
}{\relax} }{\relax}
\ifdefstring{\ELEGANT@color}{black}{ \ifdefstring{\ELEGANT@color}{black}{
\definecolor{structurecolor}{RGB}{0,0,0} \definecolor{structurecolor}{RGB}{0,0,0}
\definecolor{main}{RGB}{0,0,0}% \definecolor{main}{RGB}{0,0,0}%
\definecolor{second}{RGB}{0,0,0}% \definecolor{second}{RGB}{0,0,0}%
\definecolor{third}{RGB}{0,0,0}% \definecolor{third}{RGB}{0,0,0}%
}{\relax} }{\relax}
%green color %green color
\definecolor{structure1}{RGB}{0,120,2}% \definecolor{structure1}{RGB}{0,120,2}%
\definecolor{main1}{RGB}{0,120,2}% \definecolor{main1}{RGB}{0,120,2}%
\definecolor{second1}{RGB}{230,90,7}% \definecolor{second1}{RGB}{230,90,7}%
\definecolor{third1}{RGB}{0,160,152}% \definecolor{third1}{RGB}{0,160,152}%
%cyan color %cyan color
\definecolor{structure2}{RGB}{31,186,190}% \definecolor{structure2}{RGB}{31,186,190}%
\definecolor{main2}{RGB}{59,180,5}% \definecolor{main2}{RGB}{59,180,5}%
\definecolor{second2}{RGB}{175,153,8}% \definecolor{second2}{RGB}{175,153,8}%
\definecolor{third2}{RGB}{244,105,102}% \definecolor{third2}{RGB}{244,105,102}%
%blue color %blue color
\definecolor{structure3}{RGB}{60,113,183} \definecolor{structure3}{RGB}{60,113,183}
\definecolor{main3}{RGB}{0,166,82}% \definecolor{main3}{RGB}{0,166,82}%
\definecolor{second3}{RGB}{255,134,24}% \definecolor{second3}{RGB}{255,134,24}%
\definecolor{third3}{RGB}{0,174,247}% \definecolor{third3}{RGB}{0,174,247}%
% gray color % gray color
\definecolor{structure4}{RGB}{150,150,150} \definecolor{structure4}{RGB}{150,150,150}
\definecolor{main4}{RGB}{150,150,150}% \definecolor{main4}{RGB}{150,150,150}%
\definecolor{second4}{RGB}{150,150,150}% \definecolor{second4}{RGB}{150,150,150}%
\definecolor{third4}{RGB}{150,150,150}% \definecolor{third4}{RGB}{150,150,150}%
% black color % black color
\definecolor{structure5}{RGB}{0,0,0} \definecolor{structure5}{RGB}{0,0,0}
\definecolor{main5}{RGB}{0,0,0}% \definecolor{main5}{RGB}{0,0,0}%
\definecolor{second5}{RGB}{0,0,0}% \definecolor{second5}{RGB}{0,0,0}%
\definecolor{third5}{RGB}{0,0,0}% \definecolor{third5}{RGB}{0,0,0}%
% corlor definition % corlor definition
\definecolor{winered}{rgb}{0.5,0,0} \definecolor{winered}{rgb}{0.5,0,0}
@@ -182,17 +186,17 @@
\newcommand{\base}[2]{% \newcommand{\base}[2]{%
\nointerlineskip \vspace{0.1\baselineskip}\hspace{\fill} \nointerlineskip \vspace{0.1\baselineskip}\hspace{\fill}
{\color{#1} {\color{#1}
\resizebox{0.3\linewidth}{1.5ex} \resizebox{0.3\linewidth}{1.5ex}
{{% {{%
{\begin{tikzpicture} {\begin{tikzpicture}
\node (C) at (0,0) {}; \node (C) at (0,0) {};
\node (D) at (4,0) {}; \node (D) at (4,0) {};
\path (C) to [ornament=#2] (D); \path (C) to [ornament=#2] (D);
\end{tikzpicture}}}}}% \end{tikzpicture}}}}}%
\hspace{\fill} \hspace{\fill}
\par\nointerlineskip \vspace{0.1\baselineskip} \par\nointerlineskip \vspace{0.1\baselineskip}
} }
% ----- Title Style ----- % ----- Title Style -----
@@ -246,45 +250,42 @@
\RequirePackage{graphicx} \RequirePackage{graphicx}
%\RequirePackage{enumerate} %\RequirePackage{enumerate}
\RequirePackage{amsmath,mathrsfs,amsfonts,amssymb}
\RequirePackage{booktabs} \RequirePackage{booktabs}
\RequirePackage{multicol,multirow} \RequirePackage{multicol,multirow}
\RequirePackage{xcolor} \RequirePackage{xcolor}
\RequirePackage{fancyvrb} \RequirePackage{fancyvrb}
\RequirePackage{makecell,lipsum,hologo,setspace} \RequirePackage{makecell,lipsum,hologo,setspace}
% \usepackage{tocloft}
% \renewcommand{\cfttoctitlefont}{\hfill\Large\bfseries}
% \renewcommand{\cftaftertoctitle}{\hfill}
%% %%
\ifdefstring{\ELEGANT@lang}{cn}{ \ifdefstring{\ELEGANT@lang}{cn}{
\setlength\parindent{2\ccwd} \setlength\parindent{2\ccwd}
\renewcommand{\contentsname}{\hspace{2em}} \renewcommand{\contentsname}{\hspace{2em}}
\renewcommand{\figurename}{} \renewcommand{\figurename}{}
\renewcommand{\tablename}{} \renewcommand{\tablename}{}
\renewcommand{\partname}{\color{structurecolor}} \renewcommand{\partname}{\color{structurecolor}}
\renewcommand{\thepart}{\zhnumber{\arabic{part}}} \renewcommand{\thepart}{\zhnumber{\arabic{part}}}
\renewcommand{\listfigurename}{} \renewcommand{\listfigurename}{}
\renewcommand{\listtablename}{} \renewcommand{\listtablename}{}
\renewcommand{\bibname}{} \renewcommand{\bibname}{}
\renewcommand{\appendixname}{} \renewcommand{\appendixname}{~\thechapter}
\renewcommand{\indexname}{\hspace{2em}} \renewcommand{\indexname}{\hspace{2em}}
\newcommand\figref[1]{\textbf{}~\ref{#1}} \newcommand\figref[1]{\textbf{}~\ref{#1}}
\newcommand\tabref[1]{\textbf{}~\ref{#1}} \newcommand\tabref[1]{\textbf{}~\ref{#1}}
\renewcommand{\chaptername}{ \thechapter\,} \renewcommand{\chaptername}{ \thechapter\,}
\ifdefstring{\ELEGANT@cite}{authoryear}{ \RequirePackage[\ELEGANT@cite]{gbt7714}
\RequirePackage[authoryear]{gbt7714}
}{\relax}
\ifdefstring{\ELEGANT@cite}{numbers}{
\RequirePackage[numbers]{gbt7714}
}{\relax}
\ifdefstring{\ELEGANT@cite}{super}{
\RequirePackage[super]{gbt7714}
}{\relax}
}{\relax} }{\relax}
\ifdefstring{\ELEGANT@lang}{en}{ \ifdefstring{\ELEGANT@lang}{en}{
\setlength\parindent{2em} \setlength\parindent{2em}
\newcommand\figref[1]{\textbf{Figure}~\ref{#1}} \newcommand\figref[1]{\textbf{Figure}~\ref{#1}}
\newcommand\tabref[1]{\textbf{Table}~\ref{#1}} \newcommand\tabref[1]{\textbf{Table}~\ref{#1}}
\renewcommand{\chaptername}{Chapter \thechapter} \renewcommand{\chaptername}{Chapter \thechapter}
\bibliographystyle{aer} \renewcommand{\chaptername}{Appendix \thechapter}
\bibliographystyle{aer}
}{\relax} }{\relax}
\RequirePackage{xpatch} \RequirePackage{xpatch}
@@ -315,54 +316,54 @@
\RequirePackage{geometry} \RequirePackage{geometry}
\ifdefstring{\ELEGANT@device}{normal}{ \ifdefstring{\ELEGANT@device}{normal}{
\geometry{ \geometry{
a4paper, a4paper,
top=25.4mm, bottom=25.4mm, top=25.4mm, bottom=25.4mm,
headheight=2.17cm, headheight=2.17cm,
headsep=4mm, headsep=4mm,
footskip=12mm footskip=12mm
} }
\ifdefstring{\ELEGANT@marginpar}{margintrue}{ \ifdefstring{\ELEGANT@marginpar}{margintrue}{
\geometry{ \geometry{
marginparwidth=5cm, marginparsep=5mm, marginparwidth=5cm, marginparsep=5mm,
left=2cm,right=7cm, left=2cm,right=7cm,
} }
}{\relax} }{\relax}
}{\relax} }{\relax}
\ifdefstring{\ELEGANT@device}{pad}{ \ifdefstring{\ELEGANT@device}{pad}{
\geometry{ \geometry{
paperwidth=7.5in, paperwidth=7.5in,
paperheight=10in, paperheight=10in,
margin=16mm, margin=16mm,
headheight=2.17cm, headheight=2.17cm,
footskip=4mm footskip=4mm
}}{\relax} }}{\relax}
\RequirePackage{hyperref} \RequirePackage{hyperref}
\hypersetup{ \hypersetup{
breaklinks, breaklinks,
unicode, unicode,
linktoc=all, linktoc=all,
bookmarksnumbered=true, bookmarksnumbered=true,
bookmarksopen=true, bookmarksopen=true,
pdfkeywords={ElegantBook}, pdfkeywords={ElegantBook},
colorlinks, colorlinks,
linkcolor=winered, linkcolor=winered,
citecolor=winered, citecolor=winered,
urlcolor = winered, urlcolor = winered,
plainpages=false, plainpages=false,
pdfstartview=FitH, pdfstartview=FitH,
pdfborder={0 0 0}, pdfborder={0 0 0},
linktocpage linktocpage
} }
\let\email\relax \let\email\relax
\newcommand\email[1]{\href{mailto:#1}{\nolinkurl{#1}}} \newcommand\email[1]{\href{mailto:#1}{\nolinkurl{#1}}}
%% %%
\RequirePackage[center]{titlesec} \RequirePackage[center,pagestyles]{titlesec}
\RequirePackage{apptools} \RequirePackage{apptools}
\RequirePackage[toc,page]{appendix} \RequirePackage[toc,page,title,titletoc]{appendix}
\setcounter{secnumdepth}{5} \setcounter{secnumdepth}{5}
@@ -438,23 +439,23 @@
} }
\newtcbtheorem[auto counter,number within=chapter]{definition}{ \newtcbtheorem[auto counter,number within=chapter]{definition}{
\ifdefstring{\ELEGANT@lang}{en}{Definition}{} \ifdefstring{\ELEGANT@lang}{en}{Definition}{}
}{defstyle}{def} }{defstyle}{def}
\newtcbtheorem[auto counter,number within=chapter]{theorem}{ \newtcbtheorem[auto counter,number within=chapter]{theorem}{
\ifdefstring{\ELEGANT@lang}{en}{Theorem}{} \ifdefstring{\ELEGANT@lang}{en}{Theorem}{}
}{thmstyle}{thm} }{thmstyle}{thm}
\newtcbtheorem[auto counter,number within=chapter]{proposition}{ \newtcbtheorem[auto counter,number within=chapter]{proposition}{
\ifdefstring{\ELEGANT@lang}{en}{Proposition}{} \ifdefstring{\ELEGANT@lang}{en}{Proposition}{}
}{propstyle}{pro} }{propstyle}{pro}
\newtcbtheorem[auto counter,number within=chapter]{corollary}{ \newtcbtheorem[auto counter,number within=chapter]{corollary}{
\ifdefstring{\ELEGANT@lang}{en}{Corollary}{} \ifdefstring{\ELEGANT@lang}{en}{Corollary}{}
}{thmstyle}{cor} }{thmstyle}{cor}
\newtcbtheorem[auto counter,number within=chapter]{lemma}{ \newtcbtheorem[auto counter,number within=chapter]{lemma}{
\ifdefstring{\ELEGANT@lang}{en}{Lemma}{} \ifdefstring{\ELEGANT@lang}{en}{Lemma}{}
}{thmstyle}{lem} }{thmstyle}{lem}
}{\relax} }{\relax}
@@ -536,84 +537,84 @@
\setcounter{exam}{0} \setcounter{exam}{0}
\renewcommand{\theexam}{\thechapter.\arabic{exam}} \renewcommand{\theexam}{\thechapter.\arabic{exam}}
\newenvironment{example}[1][]{ \newenvironment{example}[1][]{
\refstepcounter{exam}\par\noindent\textbf{\color{main}{% \refstepcounter{exam}\par\noindent\textbf{\color{main}{%
\ifdefstring{\ELEGANT@lang}{en}{Example}{} \ifdefstring{\ELEGANT@lang}{en}{Example}{}
}\theexam #1 \,}\rmfamily % }\theexam #1 \,}\rmfamily %
}{ }{
\par\medskip\ignorespacesafterend % \par\medskip\ignorespacesafterend %
} }
%% Exercise with counter %% Exercise with counter
\newcounter{exer}[chapter] \newcounter{exer}[chapter]
\setcounter{exer}{0} \setcounter{exer}{0}
\renewcommand{\theexer}{\thechapter.\arabic{exer}} \renewcommand{\theexer}{\thechapter.\arabic{exer}}
\newenvironment{exercise}[1][]{ \newenvironment{exercise}[1][]{
\refstepcounter{exer}\par\noindent\makebox[-3pt][r]{\scriptsize\color{red!90}\HandPencilLeft\quad}\textbf{\color{main}{% \refstepcounter{exer}\par\noindent\makebox[-3pt][r]{\scriptsize\color{red!90}\HandPencilLeft\quad}\textbf{\color{main}{%
\ifdefstring{\ELEGANT@lang}{en}{Exercise}{} \ifdefstring{\ELEGANT@lang}{en}{Exercise}{}
}\theexer #1 \,}\rmfamily % }\theexer #1 \,}\rmfamily %
}{ }{
\par\medskip\ignorespacesafterend % \par\medskip\ignorespacesafterend %
} }
%% Exercise with counter %% Exercise with counter
\newcounter{prob}[chapter] \newcounter{prob}[chapter]
\setcounter{prob}{0} \setcounter{prob}{0}
\renewcommand{\theprob}{\thechapter.\arabic{prob}} \renewcommand{\theprob}{\thechapter.\arabic{prob}}
\newenvironment{problem}[1][]{ \newenvironment{problem}[1][]{
\refstepcounter{prob}\par\noindent\textbf{\color{main}{% \refstepcounter{prob}\par\noindent\textbf{\color{main}{%
\ifdefstring{\ELEGANT@lang}{en}{Problem}{} \ifdefstring{\ELEGANT@lang}{en}{Problem}{}
}\theprob #1 \,}\rmfamily % }\theprob #1 \,}\rmfamily %
}{ }{
\par\medskip\ignorespacesafterend % \par\medskip\ignorespacesafterend %
} }
\newenvironment{note}{\par\noindent{\makebox[0pt][r]{\scriptsize\color{red!90}\textdbend\quad}\textbf{\color{second}% \newenvironment{note}{\par\noindent{\makebox[0pt][r]{\scriptsize\color{red!90}\textdbend\quad}\textbf{\color{second}%
\ifdefstring{\ELEGANT@lang}{en}{Note}{}\, \ifdefstring{\ELEGANT@lang}{en}{Note}{}\,
}}\ifdefstring{\ELEGANT@lang}{en}{\itshape}{\kaishu}}{\par} }}\ifdefstring{\ELEGANT@lang}{en}{\itshape}{\kaishu}}{\par}
\newenvironment{proof}{\par\noindent\textbf{\color{second}% \newenvironment{proof}{\par\noindent\textbf{\color{second}%
\ifdefstring{\ELEGANT@lang}{en}{Proof}{}\; \ifdefstring{\ELEGANT@lang}{en}{Proof}{}\;
}\color{black!90}\small}{ }\color{black!90}\small}{
%\hfill$\Box$\quad %\hfill$\Box$\quad
\par} \par}
\newenvironment{remark}{\noindent\textbf{\color{second}% \newenvironment{remark}{\noindent\textbf{\color{second}%
\ifdefstring{\ELEGANT@lang}{en}{Remark}{}\, \ifdefstring{\ELEGANT@lang}{en}{Remark}{}\,
}}{\par} }}{\par}
\newenvironment{assumption}{\par\noindent\textbf{\color{third}% \newenvironment{assumption}{\par\noindent\textbf{\color{third}%
\ifdefstring{\ELEGANT@lang}{en}{Assumption}{}\, \ifdefstring{\ELEGANT@lang}{en}{Assumption}{}\,
}}{\par} }}{\par}
\newenvironment{conclusion}{\par\noindent\textbf{\color{third}% \newenvironment{conclusion}{\par\noindent\textbf{\color{third}%
\ifdefstring{\ELEGANT@lang}{en}{Conclusion}{}\, \ifdefstring{\ELEGANT@lang}{en}{Conclusion}{}\,
}}{\par} }}{\par}
\newenvironment{solution}{\par\noindent\textbf{\color{main}% \newenvironment{solution}{\par\noindent\textbf{\color{main}%
\ifdefstring{\ELEGANT@lang}{en}{Solution}{}\; \ifdefstring{\ELEGANT@lang}{en}{Solution}{}\;
}\ifdefstring{\ELEGANT@lang}{en}{\itshape}{\kaishu}}{\vskip2ex\par} }\ifdefstring{\ELEGANT@lang}{en}{\itshape}{\kaishu}}{\vskip2ex\par}
\newenvironment{property}{\par\noindent\textbf{\color{third}% \newenvironment{property}{\par\noindent\textbf{\color{third}%
\ifdefstring{\ELEGANT@lang}{en}{Property}{}\; \ifdefstring{\ELEGANT@lang}{en}{Property}{}\;
}}{\par} }}{\par}
\newenvironment{custom}[1]{\par\noindent\textbf{\color{third} \newenvironment{custom}[1]{\par\noindent\textbf{\color{third}
\ifdefstring{\ELEGANT@lang}{en}{#1}{#1}\, \ifdefstring{\ELEGANT@lang}{en}{#1}{#1}\,
}}{\par} }}{\par}
\RequirePackage{multicol} \RequirePackage{multicol}
\tcbset{ \tcbset{
introduction/.style={ introduction/.style={
enhanced, enhanced,
breakable, breakable,
colback=structurecolor!10, colback=structurecolor!10,
colframe=structurecolor, colframe=structurecolor,
fonttitle=\bfseries, fonttitle=\bfseries,
colbacktitle=structurecolor, colbacktitle=structurecolor,
fontupper=\ifdefstring{\ELEGANT@lang}{en}{\sffamily}{\kaishu}, fontupper=\ifdefstring{\ELEGANT@lang}{en}{\sffamily}{\kaishu},
attach boxed title to top center={yshift=-3mm,yshifttext=-1mm}, attach boxed title to top center={yshift=-3mm,yshifttext=-1mm},
boxrule=0pt, boxrule=0pt,
toprule=0.5pt, toprule=0.5pt,
bottomrule=0.5pt, bottomrule=0.5pt,
top=8pt, top=8pt,
before skip=8pt, before skip=8pt,
sharp corners sharp corners
}, },
} }
@@ -639,11 +640,11 @@
\def\endrelsec{end\begingroup\def \@currenvir {relsec}} \def\endrelsec{end\begingroup\def \@currenvir {relsec}}
\ifdefstring{\ELEGANT@result}{noanswer}{ \ifdefstring{\ELEGANT@result}{noanswer}{
\AtBeginDocument{ \AtBeginDocument{
\excludecomment{solution} \excludecomment{solution}
\excludecomment{proof} \excludecomment{proof}
\excludecomment{inline} \excludecomment{inline}
} }
}{\relax} }{\relax}
@@ -654,26 +655,26 @@
\ifdefstring{\ELEGANT@base}{hide}{ \ifdefstring{\ELEGANT@base}{hide}{
\fancyfoot[c]{\color{structurecolor}\ifdefstring{\ELEGANT@lang}{en}{\itshape}{\kaishu}\scriptsize--\;\thepage\;--} \fancyfoot[c]{\color{structurecolor}\ifdefstring{\ELEGANT@lang}{en}{\itshape}{\kaishu}\scriptsize--\;\thepage\;--}
\if@twoside \if@twoside
\fancyhead[ER]{\color{structurecolor}\ifdefstring{\ELEGANT@lang}{en}{\itshape}{\kaishu}\leftmark} \fancyhead[ER]{\color{structurecolor}\ifdefstring{\ELEGANT@lang}{en}{\itshape}{\kaishu}\leftmark}
\fancyhead[OL]{\color{structurecolor}\ifdefstring{\ELEGANT@lang}{en}{\itshape}{\kaishu}\rightmark} \fancyhead[OL]{\color{structurecolor}\ifdefstring{\ELEGANT@lang}{en}{\itshape}{\kaishu}\rightmark}
\else \else
\fancyhead[R]{\color{structurecolor}\ifdefstring{\ELEGANT@lang}{en}{\itshape}{\kaishu}\rightmark} \fancyhead[R]{\color{structurecolor}\ifdefstring{\ELEGANT@lang}{en}{\itshape}{\kaishu}\rightmark}
\fi \fi
}{\relax} }{\relax}
\ifdefstring{\ELEGANT@base}{show}{ \ifdefstring{\ELEGANT@base}{show}{
\fancyfoot[c]{\catcode`\$=3\relax\base{structurecolor}{88}} \fancyfoot[c]{\catcode`\$=3\relax\base{structurecolor}{88}}
\if@twoside \if@twoside
\fancyhead[EL,OR]{\color{structurecolor}\ifdefstring{\ELEGANT@lang}{en}{\itshape}{\kaishu}--\;\thepage/\pageref*{LastPage}\;--} \fancyhead[EL,OR]{\color{structurecolor}\ifdefstring{\ELEGANT@lang}{en}{\itshape}{\kaishu}--\;\thepage/\pageref*{LastPage}\;--}
\fancyhead[ER]{\color{structurecolor}\ifdefstring{\ELEGANT@lang}{en}{\itshape}{\kaishu}\leftmark} \fancyhead[ER]{\color{structurecolor}\ifdefstring{\ELEGANT@lang}{en}{\itshape}{\kaishu}\leftmark}
\fancyhead[OL]{\color{structurecolor}\ifdefstring{\ELEGANT@lang}{en}{\itshape}{\kaishu}\rightmark} \fancyhead[OL]{\color{structurecolor}\ifdefstring{\ELEGANT@lang}{en}{\itshape}{\kaishu}\rightmark}
\else \else
\fancyhead[R]{\color{structurecolor}\ifdefstring{\ELEGANT@lang}{en}{\itshape}{\kaishu}--\;\thepage/\pageref*{LastPage}\;--} \fancyhead[R]{\color{structurecolor}\ifdefstring{\ELEGANT@lang}{en}{\itshape}{\kaishu}--\;\thepage/\pageref*{LastPage}\;--}
\fancyhead[L]{\color{structurecolor}\ifdefstring{\ELEGANT@lang}{en}{\itshape}{\kaishu}\rightmark} \fancyhead[L]{\color{structurecolor}\ifdefstring{\ELEGANT@lang}{en}{\itshape}{\kaishu}\rightmark}
\fi \fi
}{\relax} }{\relax}
@@ -715,45 +716,45 @@
\renewcommand*{\maketitle}{% \renewcommand*{\maketitle}{%
\hypersetup{pageanchor=false} \hypersetup{pageanchor=false}
\begin{titlepage} \begin{titlepage}
\newgeometry{margin = 0in} \newgeometry{margin = 0in}
\parindent=0pt \parindent=0pt
\@cover \@cover
\setlength{\fboxsep}{0pt} \setlength{\fboxsep}{0pt}
\colorbox{second}{\makebox[\linewidth][c]{\shortstack[c]{\vspace{0.5in}}}} \colorbox{second}{\makebox[\linewidth][c]{\shortstack[c]{\vspace{0.5in}}}}
\vfill \vfill
\vskip-2ex \vskip-2ex
\hspace{2em} \hspace{2em}
\parbox{0.8\textwidth}{ \parbox{0.8\textwidth}{
\bfseries\Huge \@title\par \bfseries\Huge \@title\par
} }
\vfill \vfill
\vspace{-1.0cm} \vspace{-1.0cm}
\setstretch{2.5} \setstretch{2.5}
\hspace{2.5em} \hspace{2.5em}
\begin{minipage}[c]{0.67\linewidth} \begin{minipage}[c]{0.67\linewidth}
{\color{darkgray}\bfseries\Large \the\subtitle\\[2ex]} {\color{darkgray}\bfseries\Large \the\subtitle\\[2ex]}
\color{gray}\normalsize \color{gray}\normalsize
{\renewcommand{\arraystretch}{0.618} {\renewcommand{\arraystretch}{0.618}
\begin{tabular}{l} \begin{tabular}{l}
\ifdefstring{\ELEGANT@lang}{en}{\textbf{Author:}}{\kaishu } \@author \\ \ifdefstring{\ELEGANT@lang}{en}{\textbf{Author:}}{\kaishu } \@author \\
\ifdefstring{\ELEGANT@lang}{en}{\textbf{Institute:}}{\kaishu } \the\institute\\ \ifdefstring{\ELEGANT@lang}{en}{\textbf{Institute:}}{\kaishu } \the\institute\\
\ifdefstring{\ELEGANT@lang}{en}{\textbf{Date:}}{\kaishu } \@date\\ \ifdefstring{\ELEGANT@lang}{en}{\textbf{Date:}}{\kaishu } \@date\\
\ifdefstring{\ELEGANT@lang}{en}{\textbf{Version:}}{\kaishu } \the\version\\ \ifdefstring{\ELEGANT@lang}{en}{\textbf{Version:}}{\kaishu } \the\version\\
\end{tabular}} \end{tabular}}
\end{minipage} \end{minipage}
\begin{minipage}[c]{0.27\linewidth} \begin{minipage}[c]{0.27\linewidth}
\begin{tikzpicture}[remember picture,overlay] \begin{tikzpicture}[remember picture,overlay]
\begin{pgfonlayer}{background} \begin{pgfonlayer}{background}
\node[opacity=0.8,anchor=south east,outer sep=0pt,inner sep=0pt] at ($(current page.south east) +(-0.8in,1.5in)$) {\@logo}; \node[opacity=0.8,anchor=south east,outer sep=0pt,inner sep=0pt] at ($(current page.south east) +(-0.8in,1.5in)$) {\@logo};
\end{pgfonlayer} \end{pgfonlayer}
\end{tikzpicture} \end{tikzpicture}
\end{minipage} \end{minipage}
\vfill \vfill
\begin{center} \begin{center}
\setstretch{1.3} \setstretch{1.3}
\parbox[t]{0.7\textwidth}{\centering \itshape \@extrainfo} \parbox[t]{0.7\textwidth}{\centering \itshape \@extrainfo}
\end{center} \end{center}
\vfill \vfill
\end{titlepage} \end{titlepage}
\restoregeometry \restoregeometry
\thispagestyle{empty} \thispagestyle{empty}
@@ -774,20 +775,20 @@
\definecolor{lightgrey}{rgb}{0.9,0.9,0.9} \definecolor{lightgrey}{rgb}{0.9,0.9,0.9}
\definecolor{frenchplum}{RGB}{190,20,83} \definecolor{frenchplum}{RGB}{190,20,83}
\lstset{language=[LaTeX]TeX, \lstset{language=[LaTeX]TeX,
texcsstyle=*\color{winered}, texcsstyle=*\color{winered},
numbers=none, numbers=none,
breaklines=true, breaklines=true,
keywordstyle=\color{winered}, keywordstyle=\color{winered},
commentstyle=\color{gray}, commentstyle=\color{gray},
emph={elegantpaper,fontenc,fontspec,xeCJK,FiraMono,xunicode,newtxmath,figure,fig,image,img,table,itemize,enumerate,newtxtext,newtxtt,ctex,microtype,description,times,newtx,booktabs,tabular,PDFLaTeX,XeLaTeX,type1cm,BibTeX,device,color,mode,lang,amsthm,tcolorbox,titlestyle,cite,marginnote,ctex,listings,base}, emph={elegantpaper,fontenc,fontspec,xeCJK,FiraMono,xunicode,newtxmath,figure,fig,image,img,table,itemize,enumerate,newtxtext,newtxtt,ctex,microtype,description,times,newtx,booktabs,tabular,PDFLaTeX,XeLaTeX,type1cm,BibTeX,device,color,mode,lang,amsthm,tcolorbox,titlestyle,cite,marginnote,ctex,listings,base},
emphstyle={\color{frenchplum}}, emphstyle={\color{frenchplum}},
morekeywords={DeclareSymbolFont,SetSymbolFont,toprule,midrule,bottomrule,institute,version,includegraphics,setmainfont,setsansfont,setmonofont ,setCJKmainfont,setCJKsansfont,setCJKmonofont,RequirePackage,figref,tabref,email,maketitle,keywords,definecolor,extrainfo,logo,cover,subtitle,appendix,chapter,hypersetup,mainmatter,tableofcontents,elegantpar,heiti,kaishu,lstset,pagecolor,zhnumber,marginpar,part,equote,marginnote}, morekeywords={DeclareSymbolFont,SetSymbolFont,toprule,midrule,bottomrule,institute,version,includegraphics,setmainfont,setsansfont,setmonofont ,setCJKmainfont,setCJKsansfont,setCJKmonofont,RequirePackage,figref,tabref,email,maketitle,keywords,definecolor,extrainfo,logo,cover,subtitle,appendix,chapter,hypersetup,mainmatter,tableofcontents,elegantpar,heiti,kaishu,lstset,pagecolor,zhnumber,marginpar,part,equote,marginnote},
frame=single, frame=single,
tabsize=2, tabsize=2,
rulecolor=\color{structurecolor}, rulecolor=\color{structurecolor},
framerule=0.2pt, framerule=0.2pt,
columns=flexible, columns=flexible,
% backgroundcolor=\color{lightgrey} % backgroundcolor=\color{lightgrey}
} }
\newcommand\bmmax{0} \newcommand\bmmax{0}
\RequirePackage{bm} \RequirePackage{bm}