4 Commits
v3.02 ... v3.04

Author SHA1 Message Date
EthanDeng
7d4c6673ad date 2019-01-15 18:36:00 +08:00
EthanDeng
8f09be2d61 format 2019-01-15 18:19:15 +08:00
EthanDeng
d79866f1cb v3.04 2019-01-15 17:24:28 +08:00
EthanDeng
ec862e0bf6 v3.03 2019-01-15 15:18:42 +08:00
8 changed files with 3736 additions and 2037 deletions

View File

@@ -1,387 +1,359 @@
%%%%%%%%%%%%%%%%%%%%%% %%%%%%%%%%%%%%%%%%%%%%
%% start of file `elegantbook.cls'. %% start of file `elegantbook.cls'.
%% Copyright 2013-2019 ElegantLaTeX (ddswhu@126.com) %% Copyright 2013-2019 ElegantLaTeX (elegantlatex2e@gmail.com)
%% %%
%% This work may be distributed and/or modified freely %% This work may be distributed and/or modified freely
%% available at https://ddswhu.me/resource/ %% available at https://github.com/ElegantLaTeX
% % % %
%% Last Modification 2018-12-31 %% Last Modification 2019-01-15
%%%%%%%%%%%%%%%%%%%%% %%%%%%%%%%%%%%%%%%%%%
% % !Mode:: "TeX:UTF-8" % % !Mode:: "TeX:UTF-8"
\NeedsTeXFormat{LaTeX2e} \NeedsTeXFormat{LaTeX2e}
\ProvidesClass{elegantbook}[2018/12/31 v3.02 ElegantBook document class] \ProvidesClass{elegantbook}[2019/01/15 v3.04 ElegantBook document class]
\RequirePackage{kvoptions} \RequirePackage{kvoptions}
\RequirePackage{etoolbox} \RequirePackage{etoolbox}
\SetupKeyvalOptions{family=ELEGANT, prefix=ELEGANT@, setkeys=\kvsetkeys} \SetupKeyvalOptions{family=ELEGANT, prefix=ELEGANT@, setkeys=\kvsetkeys}
\newcommand{\ekv}[1]{\kvsetkeys{ELEGANT}{#1}} \newcommand{\ekv}[1]{\kvsetkeys{ELEGANT}{#1}}
% ----- Colors ----- % ----- Colors -----
\DeclareStringOption[green]{color}[green] \DeclareStringOption[green]{color}
% ----- backward compatibility % ----- backward compatibility
\DeclareVoidOption{green}{\ekv{color = green}} \DeclareVoidOption{green}{\ekv{color = green}}
\DeclareVoidOption{cyan}{\ekv{color = cyan}} \DeclareVoidOption{cyan}{\ekv{color = cyan}}
\DeclareVoidOption{blue}{\ekv{color = blue}} \DeclareVoidOption{blue}{\ekv{color = blue}}
\DeclareVoidOption{nocolor}{\ekv{color = none}} \DeclareVoidOption{nocolor}{\ekv{color = none}}
% ----- Math option ----- % ----- Math option -----
\newcommand\mailto[1]{\href{mailto:#1}{\nolinkurl{#1}}} \newcommand\mailto[1]{\href{mailto:#1}{\nolinkurl{#1}}}
% ----- Title Style ----- % ----- Title Style -----
\DeclareStringOption[hang]{titlestyle}[hang] \DeclareStringOption[hang]{titlestyle}[hang]
% ----- backward compatibility % ----- backward compatibility
\DeclareVoidOption{hang}{\ekv{titlestyle = hang}} \DeclareVoidOption{hang}{\ekv{titlestyle = hang}}
\DeclareVoidOption{display}{\ekv{titlestyle = display}} \DeclareVoidOption{display}{\ekv{titlestyle = display}}
% ----- Default Options ----- % ----- Default Options -----
\DeclareDefaultOption{\PassOptionsToClass{\CurrentOption}{book}} \DeclareDefaultOption{\PassOptionsToClass{\CurrentOption}{book}}
\ProcessKeyvalOptions*\relax \ProcessKeyvalOptions*\relax
% \ProcessOptions*\relax % \ProcessOptions*\relax
\LoadClass[12pt,a4paper,openany]{book} \LoadClass[12pt,a4paper,openany]{book}
\usepackage[UTF8,space=auto,scheme=plain]{ctex} \RequirePackage[UTF8,space=auto,scheme=plain]{ctex}
\usepackage{indentfirst} \RequirePackage{indentfirst}
\setlength\parindent{2em} \setlength\parindent{2em}
% font setting for text and math % font setting for text and math
\RequirePackage[T1]{fontenc} \RequirePackage[T1]{fontenc}
\RequirePackage{newtxtext} \RequirePackage{newtxtext}
\RequirePackage{newtxmath} \RequirePackage{newtxmath}
\RequirePackage[scale=0.85]{newtxtt} \RequirePackage[scale=0.85]{newtxtt}
\RequirePackage{type1cm} \RequirePackage{type1cm}
\DeclareSymbolFont{cmlargesymbols}{OMX}{cmex}{m}{n}
% ----- Handle Colors ----- \DeclareMathSymbol{\intop}{\mathop}{cmlargesymbols}{"5A}
%% \def\int{\intop\nolimits}
\DeclareMathSymbol{\ointop}{\mathop}{cmlargesymbols}{"49}
\RequirePackage{xcolor} \def\oint{\ointop\nolimits}
\ifdefstring{\ELEGANT@color}{green}{ \DeclareMathSymbol{\sumop}{\mathop}{cmlargesymbols}{"58}
\definecolor{main}{RGB}{0,120,2}% \let\sum\sumop
\definecolor{second}{RGB}{230,90,7}% \DeclareMathSymbol{\prodop}{\mathop}{cmlargesymbols}{"59}
\definecolor{third}{RGB}{0,160,152}% \let\prod\prodop
}{\relax}
\ifdefstring{\ELEGANT@color}{cyan}{ % ----- Handle Colors -----
\definecolor{main}{RGB}{0,175,152}% %%
\definecolor{second}{RGB}{239,126,30}%
\definecolor{third}{RGB}{120,8,13}% \RequirePackage{xcolor}
}{\relax} \ifdefstring{\ELEGANT@color}{green}{
\definecolor{main}{RGB}{0,120,2}%
\ifdefstring{\ELEGANT@color}{blue}{ \definecolor{second}{RGB}{230,90,7}%
\definecolor{main}{RGB}{20,50,104}% \definecolor{third}{RGB}{0,160,152}%
\definecolor{second}{RGB}{180,50,131}% }{\relax}
\definecolor{third}{RGB}{7,127,128}%
}{\relax} \ifdefstring{\ELEGANT@color}{cyan}{
\definecolor{main}{RGB}{0,175,152}%
\definecolor{winered}{rgb}{0.5,0,0} \definecolor{second}{RGB}{239,126,30}%
\definecolor{third}{RGB}{120,8,13}%
\AtBeginDocument{ }{\relax}
\input{base.tex}
} \ifdefstring{\ELEGANT@color}{blue}{
\definecolor{main}{RGB}{20,50,104}%
\providecommand{\base}{ \definecolor{second}{RGB}{180,50,131}%
\begin{tikzpicture}[scale=0.2] \definecolor{third}{RGB}{7,127,128}%
\triz{0}{0} }{\relax}
\ellz{128}
\intz{149} % corlor definition
\ellz{170} \definecolor{winered}{rgb}{0.5,0,0}
\intz{191} \definecolor{bule}{RGB}{18,29,57}
\ellz{212}
\triz{341}{180} \AtBeginDocument{
\end{tikzpicture}} \input{base.tex}
%\newcommand*{\base}{ }
%}
\providecommand{\base}{
% ----- Title Style ----- \begin{tikzpicture}[scale=0.2]
\ifdefstring{\ELEGANT@titlestyle}{hang}{\def\style{hang}}{\relax} \triz{0}{0}
\ifdefstring{\ELEGANT@titlestyle}{display}{\def\style{display}}{\relax} \ellz{128}
\intz{149}
\newtoks\zhtitle \ellz{170}
\newtoks\entitle \intz{191}
\newtoks\email \ellz{212}
\newtoks\version \triz{341}{180}
\newtoks\enend \end{tikzpicture}}
\newtoks\zhend %\newcommand*{\base}{
%}
%%
% ----- Title Style -----
\ifdefstring{\ELEGANT@titlestyle}{hang}{\def\style{hang}}{\relax}
\ifdefstring{\ELEGANT@titlestyle}{display}{\def\style{display}}{\relax}
%%
\renewcommand{\contentsname}{\hspace{2em}} \newtoks\zhtitle
\renewcommand{\figurename}{} \newtoks\entitle
\renewcommand{\tablename}{} \newtoks\email
\renewcommand{\partname}{} \newtoks\version
\renewcommand{\listfigurename}{} \newtoks\enend
\renewcommand{\listtablename}{} \newtoks\zhend
\renewcommand{\bibname}{}
\renewcommand{\appendixname}{\hspace{2em}}
\renewcommand{\indexname}{\hspace{2em}} %%
\renewcommand{\contentsname}{\hspace{2em}}
% more pretty font \renewcommand{\figurename}{}
\linespread{1.3} \renewcommand{\tablename}{}
\RequirePackage{microtype} \renewcommand{\partname}{}
\renewcommand{\listfigurename}{}
\renewcommand{\listtablename}{}
\RequirePackage{booktabs} \renewcommand{\bibname}{}
\RequirePackage{multicol} \renewcommand{\appendixname}{}
\RequirePackage{xcolor} \renewcommand{\indexname}{\hspace{2em}}
\RequirePackage{graphicx}
\RequirePackage{fancyvrb} %%
\graphicspath{{image/}{figure/}{fig/}{img/}} \linespread{1.3}
\RequirePackage{microtype}
%% \RequirePackage{graphicx}
\RequirePackage{graphicx} \RequirePackage{enumerate}
\RequirePackage{enumerate} \RequirePackage{amsmath,mathrsfs,amsfonts}
\RequirePackage{amsmath,mathrsfs,amsfonts} \RequirePackage{booktabs}
\RequirePackage{booktabs} \RequirePackage{multicol}
\linespread{1.3} \RequirePackage{xcolor}
\RequirePackage{fancyvrb}
\graphicspath{{./figure/}{./figures/}{./image/}{./images/}{./graphics/}{./graphic/}{./pictures/}{./picture/}}
\graphicspath{{./figure/}{./figures/}{./image/}{./images/}{./graphics/}{./graphic/}{./pictures/}{./picture/}}
\newcommand*{\myquote}[1]{\def\@myquote{#1}}
\newcommand*{\logo}[1]{ \RequirePackage{natbib}
\def\@logo{\includegraphics[width=0.3\textwidth]{#1} \setlength{\bibsep}{0.0pt}
} \def\bibfont{\footnotesize}
}
%% %%
\RequirePackage{wallpaper} \RequirePackage{geometry}
\newcommand*{\cover}[1]{\def\@cover{ \geometry{
\ThisTileWallPaper{\paperwidth}{\paperheight}{#1} 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}
\RequirePackage{hyperref}
\AtBeginDocument{ \hypersetup{
\hypersetup{ breaklinks,
pdftitle = {\the\zhtitle\the\zhend}, unicode,
pdfauthor = {\@author} linktoc=all,
} bookmarksnumbered=true,
} bookmarksopen=true,
pdfsubject=\@author \@title Book,
\hypersetup{ pdftitle = {\the\zhtitle\the\zhend},
breaklinks, pdfauthor = {\@author}
unicode, pdfkeywords={ElegantBook},
bookmarksnumbered=true, pdfcreator={XeLaTeX with ElegantBook class},
bookmarksopen=true, colorlinks,
pdfsubject=\@author \@title Book, linkcolor=main,
pdfkeywords={ElegantBook}, citecolor=winered,
pdfcreator={XeLaTeX with ElegantBook class}, plainpages=false,
colorlinks, pdfstartview=FitH,
linkcolor=main, pdfborder={0 0 0},
citecolor=winered, linktocpage
plainpages=false, }
pdfstartview=FitH,
pdfborder={0 0 0},
linktocpage %%
} \RequirePackage[center,pagestyles]{titlesec}
\RequirePackage{apptools}
\RequirePackage{geometry} \RequirePackage[toc,page]{appendix}
\geometry{
a4paper, \renewcommand{\chaptername}{ \thechapter\;}
left=27mm, %% or inner=23mm \titleformat{\chapter}[\style]{\bfseries}
right=27mm, %% or outer=18mm {\filcenter\LARGE\enspace\bfseries{\color{main}\IfAppendix{\appendixname}{\chaptername}\enspace}}{1pt}{\bfseries\color{main}\LARGE\filcenter}[\filcenter\base]
top=25.4mm, bottom=25.4mm,
headheight=2.17cm,
headsep=4mm, \titleformat{\section}[hang]{\bfseries}
footskip=12mm {\hspace{-2.45em}\Large\bfseries{\color{main}\thesection}\enspace}{1pt}{\color{main}\Large\bfseries\filright}
}
\titleformat{\subsection}[hang]{\bfseries}
%% {\hspace{-2.45em}\large\bfseries\color{main}\thesubsection\enspace}{1pt}{\color{main}\large\bfseries\filright}
\RequirePackage[center,pagestyles]{titlesec}
\renewcommand{\chaptername}{ \thechapter\;} \titlespacing{\chapter}{0pt}{0pt}{1.5\baselineskip}
%\titlespacing{\subsection}{0pt}{0.5\baselineskip}{-\baselineskip}
\titleformat{\chapter}[\style]{\bfseries}
{\filcenter\LARGE\enspace\bfseries{\color{main}\chaptername}\enspace}{1pt}{\bfseries\color{main}\LARGE\filcenter}[\filcenter\base]
% caption settings
\RequirePackage{caption}
\titleformat{\section}[hang]{\bfseries} \captionsetup{labelfont = bf}
{\hspace{-2.45em}\Large\bfseries{\color{main}\thesection}\enspace}{1pt}{\color{main}\Large\bfseries\filright} \RequirePackage[font=small,labelfont={bf}]{caption}
\captionsetup[table]{skip=3pt}
\titleformat{\subsection}[hang]{\bfseries} \captionsetup[figure]{skip=3pt}
{\hspace{-2.45em}\large\bfseries\color{main}\thesubsection\enspace}{1pt}{\color{main}\large\bfseries\filright} \newcommand\figref[1]{\textbf{Figure}~\ref{#1}}
\newcommand\tabref[1]{\textbf{Table}~\ref{#1}}
\titlespacing{\chapter}{0pt}{0pt}{1.5\baselineskip}
%\titlespacing{\subsection}{0pt}{0.5\baselineskip}{-\baselineskip}
% list/itemize/enumerate setting
\RequirePackage[shortlabels]{enumitem}
\setlist{nolistsep}
\RequirePackage{caption} \RequirePackage[most]{tcolorbox}
\captionsetup{labelfont = bf}
\tcbset{
% list/itemize/enumerate setting common/.style={
\RequirePackage[shortlabels]{enumitem} fontupper=\kaishu,
\setlist{nolistsep} lower separated=false,
coltitle=white,
% caption settings colback=gray!10,
\RequirePackage[font=small,labelfont={bf}]{caption} fonttitle=\bfseries,
\captionsetup[table]{skip=3pt} enhanced,
\captionsetup[figure]{skip=3pt} breakable,
top=8pt,
before skip=8pt,
\definecolor{bule}{RGB}{18,29,57} attach boxed title to top left={yshift=-0.11in,xshift=0.15in},
boxed title style={boxrule=0pt,colframe=white,arc=0pt,outer arc=0pt},
% separator sign={:},
},
\RequirePackage[most]{tcolorbox} defstyle/.style={
common,
\tcbset{ colframe=main,
common/.style={ colbacktitle=main,
fontupper=\kaishu, overlay unbroken and last={\node[anchor=south east, outer sep=6pt] at (\textwidth-width,0) {\textcolor{main}{$\clubsuit$}}; }
lower separated=false, },
coltitle=white, thmstyle/.style={
colback=gray!10, common,
fonttitle=\bfseries, colframe=second,
enhanced, colbacktitle=second,
breakable, overlay unbroken and last={\node[anchor=south east, outer sep=6pt] at (\textwidth-width,0) {\textcolor{second}{$\heartsuit$}}; }
top=8pt, },
before skip=8pt, propstyle/.style={
attach boxed title to top left={yshift=-0.11in,xshift=0.15in}, common,
boxed title style={boxrule=0pt,colframe=white,arc=0pt,outer arc=0pt}, colframe=third,
% separator sign={:}, colbacktitle=third,
}, overlay unbroken and last={\node[anchor=south east, outer sep=6pt] at (\textwidth-width,0) {\textcolor{third}{$\spadesuit$}}; }
defstyle/.style={ },
common, }
colframe=main,
colbacktitle=main, \newtcbtheorem[auto counter,number within=chapter]{definition}{}{defstyle}{def}
overlay unbroken and last={\node[anchor=south east, outer sep=6pt] at (\textwidth-width,0) {\textcolor{main}{$\clubsuit$}}; } \newtcbtheorem[auto counter,number within=chapter]{theorem}{}{thmstyle}{thm}
}, \newtcbtheorem[auto counter,number within=chapter]{proposition}{}{propstyle}{pro}
thmstyle/.style={ \newtcbtheorem[auto counter,number within=chapter]{corollary}{}{thmstyle}{cor}
common, \newtcbtheorem[auto counter,number within=chapter]{lemma}{}{thmstyle}{lem}
colframe=second,
colbacktitle=second,
overlay unbroken and last={\node[anchor=south east, outer sep=6pt] at (\textwidth-width,0) {\textcolor{second}{$\heartsuit$}}; } %% Example with counter
}, \newcounter{exam}[chapter]
propstyle/.style={ \setcounter{exam}{0}
common, \renewcommand{\theexam}{\thechapter.\arabic{exam}}
colframe=third, \newenvironment{example}[1][]{
colbacktitle=third, \refstepcounter{exam}\par\medskip\noindent \textbf{\color{main}{}~\theexam #1:}\rmfamily %
overlay unbroken and last={\node[anchor=south east, outer sep=6pt] at (\textwidth-width,0) {\textcolor{third}{$\spadesuit$}}; } }{
}, \par\medskip\ignorespacesafterend %
} }
\newtcbtheorem[auto counter,number within=chapter]{definition}{}{defstyle}{def} %% Exercise with counter
\newtcbtheorem[auto counter,number within=chapter]{theorem}{}{thmstyle}{thm} \newcounter{exer}[chapter]
\newtcbtheorem[auto counter,number within=chapter]{proposition}{}{propstyle}{prop} \setcounter{exer}{0}
\newtcbtheorem[auto counter,number within=chapter]{corollary}{}{thmstyle}{cor} \renewcommand{\theexer}{\thechapter.\arabic{exer}}
\newtcbtheorem[auto counter,number within=chapter]{lemma}{}{thmstyle}{lemma} \newenvironment{exercise}[1][]{
\refstepcounter{exer}\par\medskip\noindent \textbf{\color{main}{}~\theexer #1:}\rmfamily %
}{
\par\medskip\ignorespacesafterend %
%% Example with counter }
\newcounter{example}[chapter]
\renewcommand{\theexample}{\thechapter.\arabic{example}} %%define the note and proof environment
\newenvironment{example}{\par\noindent\textbf{\,\refstepcounter{example}\theexample}\color{black!90}}{\par} \RequirePackage{pifont,manfnt}
\newenvironment{note}{\par\noindent{\makebox[0pt][r]{\scriptsize\color{red!90}\textdbend\quad}\textbf{\color{main}{}}}\itshape}{\par}
%% Exercise with counter \newenvironment{proof}{\par\noindent\textbf{\color{main}{}}\color{black!90}\small}{\hfill$\Box$\quad\par}
\newcounter{exercise}[chapter]
\renewcommand{\theexercise}{\thechapter.\arabic{exercise}} \newenvironment{remark}{\noindent\textbf{\color{main}{}}}{\par}
\newenvironment{exercise}{\par\noindent\textbf{\,\refstepcounter{exercise}\theexercise}}{\par} \newenvironment{assumption}{\par\noindent\textbf{\color{main}{}}}{\par}
\newenvironment{conclusion}{\par\noindent\textbf{\color{main}{}}}{\par}
%%define the note and proof environment \newenvironment{solution}{\par\noindent\textbf{\color{main}{}}}{\par}
\RequirePackage{pifont,manfnt} \newenvironment{property}{\par\noindent\textbf{\color{main}{}}}{\par}
\newenvironment{note}{\par\noindent{\makebox[0pt][r]{\scriptsize\color{red!90}\textdbend\quad}\textbf{}}\itshape}{\par}
\newenvironment{proof}{\par\noindent\textbf{}\color{black!90}\small}{\hfill$\Box$\quad\par} %
\RequirePackage{fancyhdr}
\newenvironment{remark}{\noindent\textbf{}}{\par} \RequirePackage{lastpage}
\newenvironment{assumption}{\par\noindent\textbf{}}{\par} \fancyhf{}
\newenvironment{conclusion}{\par\noindent\textbf{}}{\par} \fancyhead[EL,OR]{\color{main}--\thepage/\pageref{LastPage}--}
\newenvironment{solution}{\par\noindent\textbf{}}{\par} \fancyhead[ER]{\color{main}\em\nouppercase\leftmark{}}
\newenvironment{property}{\par\noindent\textbf{}}{\par} \fancyhead[OL]{\color{main}\em\nouppercase\rightmark}
\fancyfoot[c]{\base}
\renewcommand{\headrule}{\color{main}\hrule width\textwidth}
\pagestyle{fancy}
\fancypagestyle{plain}{\renewcommand{\headrulewidth}{0pt}\fancyhf{}\renewcommand{\headrule}{}}
\renewcommand{\sectionmark}[1]{\markright{\thesection\; #1}{} }
% \renewcommand{\chaptermark}[1]{\markboth{\chaptername \; #1\;}{}}
\RequirePackage{fancyhdr} %%
\RequirePackage{lastpage} \newcommand*{\myquote}[1]{\def\@myquote{#1}}
\fancyhf{} \newcommand*{\logo}[1]{
\fancyhead[EL,OR]{\color{main}--\thepage/\pageref{LastPage}--} \def\@logo{\includegraphics[width=0.3\textwidth]{#1}
\fancyhead[ER]{\color{main}\em\nouppercase\leftmark{}} }
\fancyhead[OL]{\color{main}\em\nouppercase\rightmark} }
\fancyfoot[c]{\base}
\renewcommand{\headrule}{\color{main}\hrule width\textwidth} %%
\pagestyle{fancy} \RequirePackage{wallpaper}
\newcommand*{\cover}[1]{\def\@cover{
\fancypagestyle{plain}{\renewcommand{\headrulewidth}{0pt}\fancyhf{}\renewcommand{\headrule}{}} \ThisTileWallPaper{\paperwidth}{\paperheight}{#1}
\renewcommand{\sectionmark}[1]{\markright{\thesection\; #1}{} } }
\renewcommand{\chaptermark}[1]{\markboth{\chaptername \; #1\;}{}} }
\def\maketitle{%
\thispagestyle{empty}
% \@cover
\vfill
\DeclareSymbolFont{cmlargesymbols}{OMX}{cmex}{m}{n} \vspace*{2cm}
\DeclareMathSymbol{\intop}{\mathop}{cmlargesymbols}{"5A} \begin{center}
\def\int{\intop\nolimits} \color{second}
\DeclareMathSymbol{\ointop}{\mathop}{cmlargesymbols}{"49} \rule{0.8\textwidth}{2pt}\\
\def\oint{\ointop\nolimits} \Huge {\color{main} \bfseries \the\entitle } {\color{second} \bfseries \the\enend}\\
\DeclareMathSymbol{\sumop}{\mathop}{cmlargesymbols}{"58} {\Huge \bfseries{\color{main} \the\zhtitle } \the\zhend}\\
\let\sum\sumop \rule{0.8\textwidth}{2pt}
\DeclareMathSymbol{\prodop}{\mathop}{cmlargesymbols}{"59} \end{center}
\let\prod\prodop \vfill
\vskip5ex
\newcommand\figref[1]{\textbf{Figure}~\ref{#1}} \centerline{\@logo}
\newcommand\tabref[1]{\textbf{Table}~\ref{#1}} \begin{center}
\begin{minipage}{0.65\textwidth}
\indent\centering\color{bule}\@myquote
\end{minipage}
%% \end{center}
\vfill
\def\maketitle{% \begin{flushright}
\thispagestyle{empty} \color{second}
% \@cover \rule{0.45\textwidth}{1pt}\\
\vfill {\color{main}\@author}\\
\vspace*{2cm} {\color{main}\@date}\\
\begin{center} : \hyperlink{\the\email}{\the\email}\\
\color{second} \rule{0.45\textwidth}{1pt}
\rule{0.8\textwidth}{2pt}\\ \end{flushright}
\Huge {\color{main} \bfseries \the\entitle } {\color{second} \bfseries \the\enend}\\ \vfill
{\Huge \bfseries{\color{main} \the\zhtitle } \the\zhend}\\ \begin{center}
\rule{0.8\textwidth}{2pt} \color{second} : \the\version
\end{center} \end{center}
\vskip3ex \vfil\eject
\begin{figure}[htp] }
\centering
\@logo
\end{figure}
\begin{center}
\begin{minipage}{0.65\textwidth}
\indent\centering\color{bule}\@myquote
\end{minipage}
\end{center}
\vfill
\vspace{2cm}
\begin{flushright}
\color{second}
\rule{0.45\textwidth}{1pt}\\
{\color{main}\@author}\\
{\color{main}\today}\\
: \hyperlink{\the\email}{\the\email}\\
\rule{0.45\textwidth}{1pt}
\end{flushright}
\vfill
\begin{center}
\color{second} : \the\version
\end{center}
\vfil\eject
}
\RequirePackage{natbib}
\setlength{\bibsep}{0.0pt}
\def\bibfont{\footnotesize}

BIN
elegantbook.pdf Normal file

Binary file not shown.

View File

@@ -1,15 +1,16 @@
\documentclass{elegantbook} \documentclass{elegantbook}
\author{ddswhu \& Liam Huang} \author{ddswhu \& Liam Huang}
\email{ddswhu@outlook.com} \date{\today}
\email{elegantlatex2e@gmail.com}
\usepackage{ntheorem}
\zhtitle{优美的 \LaTeX{} 书籍} \zhtitle{优美的 \LaTeX{} 书籍}
\zhend{模板} \zhend{模板}
\entitle{Elegant\LaTeX{} Book} \entitle{Elegant\LaTeX{} Book}
\enend{Template} \enend{Template}
\version{3.02} \version{3.04}
\myquote{Victory won\rq t come to us unless we go to it.} \myquote{Victory won\rq t come to us unless we go to it.}
\logo{logo.png} \logo{ElegantLaTeX_green.pdf}
\cover{cover.pdf} \cover{cover.pdf}
%green color %green color
@@ -29,38 +30,37 @@
\usepackage{lipsum} \usepackage{lipsum}
\usepackage{texnames} \usepackage{texnames}
\begin{document} \begin{document}
\maketitle \maketitle
\tableofcontents \tableofcontents
\mainmatter \mainmatter
\chapter{Elegant\LaTeX{} 系列模板介绍} \chapter{Elegant\LaTeX{} 系列模板介绍}
值此版本发行之际,我们 Elegant\LaTeX{} 项目组向大家重新介绍一下我们的工作我们致力于打造一系列美观、优雅、简便的模板方便用户使用。Elegant\LaTeX{} 系列模板目前由 ElegantNoteElegantBookElegantPaperElegantBeamer 组成,分别用于排版笔记,书籍工作论文和幻灯片讲稿。这些子项目的名词是一体的,请在使用这些名词的时候不要将其断开(如 Elegant Note 是不正确的写法。并且Elegant\LaTeX{} Book 指的即是 ElegantBook。 值此版本发行之际,我们 Elegant\LaTeX{} 项目组向大家重新介绍一下我们的工作我们致力于打造一系列美观、优雅、简便的模板方便用户使用。Elegant\LaTeX{} 系列模板目前由 \href{https://github.com/ElegantLaTeX/ElegantNote}{ElegantNote}\href{https://github.com/ElegantLaTeX/ElegantBook}{ElegantBook}\href{https://github.com/ElegantLaTeX/ElegantPaper}{ElegantPaper} 组成,分别用于排版笔记,书籍工作论文。这些子项目的名词是一体的,请在使用这些名词的时候不要将其断开(如 Elegant Note 是不正确的写法。并且Elegant\LaTeX{} Book 指的即是 ElegantBook。
请用户在作者的主页下载最新版本,下载地址:\href{https://ddswhu.me/resource/}{https://ddswhu.me/resource/}。本文将介绍本模板的一些设置内容以及基本使用方法。如果您在使用此模板,欢迎把您使用此模板制作的成品发一份给我们,谢谢!如果您有其他问题,建议或者意见,欢迎联系我\mailto{ddswhu@outlook.com} 请用户在作者的主页下载最新版本,下载地址:\href{https://github.com/ElegantLaTeX/ElegantBook/releases}{Github/ElegantBook/Releases}。本文将介绍本模板的一些设置内容以及基本使用方法。如果您在使用此模板,欢迎把您使用此模板制作的成品发一份给我们,谢谢!如果您有其他问题,建议或者意见,欢迎联系我
\section{ElegantBook 更新说明} \section{ElegantBook 更新说明}
在这几年间,我们收到了很多用户的反馈,主要的问题涉及到字体安装,编码支持,定理浮动,定理跨页,交叉引用等等。我们思前想后,原先让用户安装字体以追求视觉上的美观并不完美,用户陷入了巨大的麻烦,这违背了我们的模板初衷。因此我们在新版中删除了这部分,用户无需安装任何字体。让我们来看下此次 ElegantBook 模板 3.0 更新的主要内容有: 在这几年间,我们收到了很多用户的反馈,主要的问题涉及到字体安装,编码支持,定理浮动,定理跨页,交叉引用等等。我们思前想后,原先让用户安装字体以追求视觉上的美观并不完美,用户陷入了巨大的麻烦,这违背了我们的模板初衷。因此我们在新版中删除了这部分,用户无需安装任何字体。让我们来看下此次 ElegantBook 模板 3.x 更新的主要内容有:
\begin{enumerate}[noitemsep] \begin{enumerate}[noitemsep]
\item 删除了自定义字体设置,改用 \texttt{ctex} 宏包用以支持中文 \item 删除了自定义字体设置,改用 \texttt{ctex} 宏包用以支持中文
\item 使用 \texttt{tcolorbox} 宏包改写了原先的定理类环境,目前定理环境等均可以跨页 \item 使用 \texttt{tcolorbox} 宏包改写了原先的定理类环境,目前定理环境等均可以跨页
\item 重新命名了定理类环境的名称theoremdefinitionproposition 等) \item 重新命名了定理类环境的名称theoremdefinitionproposition 等)
\item 重新命名了颜色的名字firstsecondthird \item 重新命名了颜色的名字firstsecondthird
\item 重新绘制 ElegantLaTeX 的 Logo
\item 更新类定理环境,包括其交叉引用;
\item 特别修正附录相关内容。
\end{enumerate} \end{enumerate}
\section{未来更新计划} \section{未来更新计划}
\begin{enumerate}[noitemsep] \begin{enumerate}[noitemsep]
\item 设计一个适合的 LOGO
\item 重新设计 base 图标; \item 重新设计 base 图标;
\item 重新设计一个好看的封面。 \item 重新设计一个好看的封面。
\item 将基础模板改为英文模板,添加选项使其支持中文。 \item 将基础模板改为英文模板,添加选项使其支持中文。
\item 将最早的 ElegantNote 重新设计为简版发布。
\item 添加一个简化风格plain的颜色主题。 \item 添加一个简化风格plain的颜色主题。
\end{enumerate} \end{enumerate}
@@ -140,7 +140,7 @@ Lebesgue 积分有几种不同的定义方式。我们将采用逐步定义非
我们将通过三个步骤定义可测函数的积分。首先定义非负简单函数的积分。以下设 $E$$\mathcal{R}^n$ 中的可测集。 我们将通过三个步骤定义可测函数的积分。首先定义非负简单函数的积分。以下设 $E$$\mathcal{R}^n$ 中的可测集。
\begin{definition}{可积性}{inter} \begin{definition}{可积性}{int}
$ f(x)=\sum\limits_{i=1}^{k} a_i \chi_{A_i}(x)$$E$ 上的非负简单函数,其中 $\{A_1,A_2,\ldots,A_k\}$$E$ 上的一个可测分割,$a_1,a_2,\ldots,a_k$ 是非负实数。定义 $f$$E$ 上的积分为 $ f(x)=\sum\limits_{i=1}^{k} a_i \chi_{A_i}(x)$$E$ 上的非负简单函数,其中 $\{A_1,A_2,\ldots,A_k\}$$E$ 上的一个可测分割,$a_1,a_2,\ldots,a_k$ 是非负实数。定义 $f$$E$ 上的积分为
\begin{equation} \begin{equation}
\label{inter} \label{inter}
@@ -157,9 +157,9 @@ Lebesgue 积分有几种不同的定义方式。我们将采用逐步定义非
$D(x)$$[0,1]$ 上是 Lebesgue 可积的并且积分值为零。但 $D(x)$$[0,1]$ 上不是 Riemann 可积的。 $D(x)$$[0,1]$ 上是 Lebesgue 可积的并且积分值为零。但 $D(x)$$[0,1]$ 上不是 Riemann 可积的。
有界变差函数是与单调函数有密切联系的一类函数。有界变差函数可以表示为两个单调递增函数之差。与单调函数一样,有界变差函数几乎处处可导。与单调函数不同,有界变差函数类对线性运算是封闭的,它们构成一线空间。 有界变差函数是与单调函数有密切联系的一类函数。有界变差函数可以表示为两个单调递增函数之差。与单调函数一样,有界变差函数几乎处处可导。与单调函数不同,有界变差函数类对线性运算是封闭的,它们构成一线空间。练习题 \ref{exer:43} 是一个性质的证明。
\begin{exercise} \begin{exercise}\label{exer:43}
$f\in L(\mathcal{R}^1)$$g$$\mathcal{R}^1$ 上的有界可测函数。证明函数 $f\in L(\mathcal{R}^1)$$g$$\mathcal{R}^1$ 上的有界可测函数。证明函数
\begin{equation} \begin{equation}
\label{ex:1} \label{ex:1}
@@ -168,7 +168,7 @@ Lebesgue 积分有几种不同的定义方式。我们将采用逐步定义非
$\mathcal{R}^1$ 上的连续函数。 $\mathcal{R}^1$ 上的连续函数。
\end{exercise} \end{exercise}
\begin{theorem}{Fubini 定理}{31} \begin{theorem}{Fubini 定理}{fubi}
1$f(x,y)$$\mathcal{R}^p\times\mathcal{R}^q$ 上的非负可测函数,则对几乎处处的 $x\in \mathcal{R}^p$$f(x,y)$ 作为 $y$ 的函数是 $\mathcal{R}^q$ 上的非负可测函数,$g(x)=\int_{\mathcal{R}^q}f(x,y) dy$$\mathcal{R}^p$ 上的非负可测函数。并且 1$f(x,y)$$\mathcal{R}^p\times\mathcal{R}^q$ 上的非负可测函数,则对几乎处处的 $x\in \mathcal{R}^p$$f(x,y)$ 作为 $y$ 的函数是 $\mathcal{R}^q$ 上的非负可测函数,$g(x)=\int_{\mathcal{R}^q}f(x,y) dy$$\mathcal{R}^p$ 上的非负可测函数。并且
\begin{equation} \begin{equation}
\label{eq:461} \label{eq:461}
@@ -178,7 +178,7 @@ Lebesgue 积分有几种不同的定义方式。我们将采用逐步定义非
\end{theorem} \end{theorem}
\begin{note} \begin{note}
在本模板中引理lemma推论corollary )的样式和定理的样式一致,包括颜色,仅仅只有计数器的设置不一样。 在本模板中引理lemma推论corollary )的样式和定理~\ref{thm:fubi} 的样式一致,包括颜色,仅仅只有计数器的设置不一样。
\end{note} \end{note}
我们说一个实变或者复变量的实值或者复值函数是在区间上平方可积的,如果其绝对值的平方在该区间上的积分是有限的。所有在勒贝格积分意义下平方可积的可测函数构成一个希尔伯特空间,也就是所谓的 $L^2$ 空间,几乎处处相等的函数归为同一等价类。形式上,$L^2$ 是平方可积函数的空间和几乎处处为 0 的函数空间的商空间。 我们说一个实变或者复变量的实值或者复值函数是在区间上平方可积的,如果其绝对值的平方在该区间上的积分是有限的。所有在勒贝格积分意义下平方可积的可测函数构成一个希尔伯特空间,也就是所谓的 $L^2$ 空间,几乎处处相等的函数归为同一等价类。形式上,$L^2$ 是平方可积函数的空间和几乎处处为 0 的函数空间的商空间。
@@ -223,6 +223,19 @@ Lebesgue 积分有几种不同的定义方式。我们将采用逐步定义非
\bibliographystyle{aer} \bibliographystyle{aer}
\bibliography{reference} \bibliography{reference}
\addcontentsline{toc}{chapter}{参考文献} \appendix
\chapter{线性代数}
\section{矩阵的分块}
\begin{equation}
\begin{vmatrix}
A_1 & 0\\
C & A_2
\end{vmatrix}
=|A_1|\times |A_2|
\end{equation}
由矩阵 $A$ 的若干行、若干列的交叉位置元素按照原来顺序排成的矩阵称为 $A$ 的一个\textbf{子矩阵}
\end{document} \end{document}

File diff suppressed because one or more lines are too long

BIN
figure/icon.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 32 KiB

File diff suppressed because one or more lines are too long

Binary file not shown.

Before

Width:  |  Height:  |  Size: 353 KiB

After

Width:  |  Height:  |  Size: 20 KiB

BIN
guide.pdf

Binary file not shown.