mirror of
https://github.com/ElegantLaTeX/ElegantBook.git
synced 2026-01-26 04:14:35 +08:00
Compare commits
7 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
ec862e0bf6 | ||
|
|
dc8d927cc5 | ||
|
|
26e099f735 | ||
|
|
1d6daabb30 | ||
|
|
2866196be5 | ||
|
|
775f3fe3d5 | ||
|
|
828e91ec7e |
401
elegantbook.cls
401
elegantbook.cls
@@ -1,16 +1,15 @@
|
||||
%%%%%%%%%%%%%%%%%%%%%%
|
||||
%% start of file `elegantbook.cls'.
|
||||
%% Copyright 2013-2019 ElegantLaTeX (ElegantLaTeX2e@gmail.com)
|
||||
%% Copyright 2013-2019 ElegantLaTeX (ddswhu@126.com)
|
||||
%%
|
||||
%% This work may be distributed and/or modified freely
|
||||
%% available at http://elegantlatex.tk/download/
|
||||
%% and http://ddswhu.com/download/
|
||||
%% available at https://ddswhu.me/resource/
|
||||
% %
|
||||
%% Last Modification 2014-2-3
|
||||
%% Last Modification 2018-01-08
|
||||
%%%%%%%%%%%%%%%%%%%%%
|
||||
% % !Mode:: "TeX:UTF-8"
|
||||
\NeedsTeXFormat{LaTeX2e}
|
||||
\ProvidesClass{elegantbook}[2014/01/20 v2.00 ElegantBook document class]
|
||||
\ProvidesClass{elegantbook}[2018/01/08 v3.03 ElegantBook document class]
|
||||
|
||||
\RequirePackage{kvoptions}
|
||||
\RequirePackage{etoolbox}
|
||||
@@ -18,15 +17,16 @@
|
||||
\newcommand{\ekv}[1]{\kvsetkeys{ELEGANT}{#1}}
|
||||
|
||||
% ----- Colors -----
|
||||
\DeclareStringOption[green]{color}[green]
|
||||
\DeclareStringOption[green]{color}
|
||||
% ----- backward compatibility
|
||||
\DeclareVoidOption{green}{\ekv{color = green}}
|
||||
\DeclareVoidOption{cyan}{\ekv{color = cyan}}
|
||||
\DeclareVoidOption{blue}{\ekv{color = blue}}
|
||||
\DeclareVoidOption{nocolor}{\ekv{color = none}}
|
||||
|
||||
% ----- Math option -----
|
||||
\DeclareBoolOption[true]{mathpazo}
|
||||
\DeclareComplementaryOption{mtpro}{mathpazo}
|
||||
\newcommand\mailto[1]{\href{mailto:#1}{\nolinkurl{#1}}}
|
||||
|
||||
% ----- Title Style -----
|
||||
\DeclareStringOption[hang]{titlestyle}[hang]
|
||||
% ----- backward compatibility
|
||||
@@ -39,37 +39,49 @@
|
||||
% \ProcessOptions*\relax
|
||||
\LoadClass[12pt,a4paper,openany]{book}
|
||||
|
||||
|
||||
\usepackage[UTF8,space=auto,scheme=plain]{ctex}
|
||||
\usepackage{indentfirst}
|
||||
\setlength\parindent{2em}
|
||||
|
||||
% font setting for text and math
|
||||
\RequirePackage[T1]{fontenc}
|
||||
\RequirePackage{newtxtext}
|
||||
\RequirePackage{newtxmath}
|
||||
\RequirePackage[scale=0.85]{newtxtt}
|
||||
\RequirePackage{type1cm}
|
||||
|
||||
|
||||
% ----- Handle Colors -----
|
||||
%% 章节以及页脚图形
|
||||
|
||||
\RequirePackage{xcolor}
|
||||
\ifdefstring{\ELEGANT@color}{green}{
|
||||
\definecolor{main}{RGB}{0,120,2}%
|
||||
\definecolor{seco}{RGB}{230,90,7}%
|
||||
\definecolor{thid}{RGB}{0,160,152}%
|
||||
% \base{greenbase.pdf}%
|
||||
\definecolor{second}{RGB}{230,90,7}%
|
||||
\definecolor{third}{RGB}{0,160,152}%
|
||||
}{\relax}
|
||||
|
||||
\ifdefstring{\ELEGANT@color}{cyan}{
|
||||
\definecolor{main}{RGB}{0,175,152}%
|
||||
\definecolor{seco}{RGB}{239,126,30}%
|
||||
\definecolor{thid}{RGB}{120,8,13}%
|
||||
% \base{cyanbase.pdf}%
|
||||
\definecolor{second}{RGB}{239,126,30}%
|
||||
\definecolor{third}{RGB}{120,8,13}%
|
||||
}{\relax}
|
||||
|
||||
\ifdefstring{\ELEGANT@color}{blue}{
|
||||
\definecolor{main}{RGB}{20,50,104}%
|
||||
\definecolor{seco}{RGB}{180,50,131}%
|
||||
\definecolor{thid}{RGB}{7,127,128}%
|
||||
% \base{bluebase.pdf}%
|
||||
\definecolor{second}{RGB}{180,50,131}%
|
||||
\definecolor{third}{RGB}{7,127,128}%
|
||||
}{\relax}
|
||||
|
||||
\definecolor{winered}{rgb}{0.5,0,0}
|
||||
|
||||
\AtBeginDocument{
|
||||
\input{base.tex}
|
||||
}
|
||||
|
||||
\providecommand{\base}{
|
||||
\begin{tikzpicture}[scale=0.3]
|
||||
\begin{tikzpicture}[scale=0.2]
|
||||
\triz{0}{0}
|
||||
\ellz{128}
|
||||
\intz{149}
|
||||
@@ -81,13 +93,6 @@
|
||||
%\newcommand*{\base}{
|
||||
%}
|
||||
|
||||
% ----- Handle Math option -----
|
||||
\ifELEGANT@mathpazo
|
||||
\RequirePackage{mathpazo}
|
||||
\newcommand{\mbf}{\mathbf}
|
||||
\else
|
||||
\AtBeginDocument{\usepackage{mtpro2}}
|
||||
\fi
|
||||
% ----- Title Style -----
|
||||
\ifdefstring{\ELEGANT@titlestyle}{hang}{\def\style{hang}}{\relax}
|
||||
\ifdefstring{\ELEGANT@titlestyle}{display}{\def\style{display}}{\relax}
|
||||
@@ -101,6 +106,31 @@
|
||||
|
||||
%%数学字体宏包
|
||||
|
||||
|
||||
|
||||
%%中文结构名字
|
||||
\renewcommand{\contentsname}{目\hspace{2em}录}
|
||||
\renewcommand{\figurename}{图}
|
||||
\renewcommand{\tablename}{表}
|
||||
\renewcommand{\partname}{部分}
|
||||
\renewcommand{\listfigurename}{插图目录}
|
||||
\renewcommand{\listtablename}{表格目录}
|
||||
\renewcommand{\bibname}{参考文献}
|
||||
\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}
|
||||
@@ -113,7 +143,7 @@
|
||||
\newcommand*{\myquote}[1]{\def\@myquote{#1}}
|
||||
|
||||
\newcommand*{\logo}[1]{
|
||||
\def\@logo{\includegraphics[height=5.8cm]{#1}
|
||||
\def\@logo{\includegraphics[width=0.3\textwidth]{#1}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -139,14 +169,16 @@
|
||||
|
||||
\hypersetup{
|
||||
breaklinks,
|
||||
unicode,
|
||||
unicode,
|
||||
linktoc=all,
|
||||
bookmarksnumbered=true,
|
||||
bookmarksopen=true,
|
||||
pdfsubject=\@author \@title Book,
|
||||
pdfkeywords={ElegantBook},
|
||||
pdfcreator={XeLaTeX with ElegantBook class},
|
||||
colorlinks,
|
||||
linkcolor=main,
|
||||
linkcolor=main,
|
||||
citecolor=winered,
|
||||
plainpages=false,
|
||||
pdfstartview=FitH,
|
||||
pdfborder={0 0 0},
|
||||
@@ -166,196 +198,114 @@
|
||||
|
||||
%% 章节设置
|
||||
\RequirePackage[center,pagestyles]{titlesec}
|
||||
\RequirePackage{apptools}
|
||||
\RequirePackage[toc,page]{appendix}
|
||||
|
||||
\renewcommand{\chaptername}{第 \thechapter 章}
|
||||
|
||||
\renewcommand{\chaptername}{第 \thechapter\;章}
|
||||
\titleformat{\chapter}[\style]{\bfseries}
|
||||
{\filcenter\LARGE\enspace\bfseries{\color{main}\chaptername}\enspace}{1pt}{\bfseries\color{main}\LARGE\filcenter}[\filcenter\base]
|
||||
{\filcenter\LARGE\enspace\bfseries{\color{main}\IfAppendix{\appendixname}{\chaptername}\enspace}}{1pt}{\bfseries\color{main}\LARGE\filcenter}[\filcenter\base]
|
||||
|
||||
|
||||
\titleformat{\section}[hang]{\sffamily}
|
||||
\titleformat{\section}[hang]{\bfseries}
|
||||
{\hspace{-2.45em}\Large\bfseries{\color{main}\thesection}\enspace}{1pt}{\color{main}\Large\bfseries\filright}
|
||||
|
||||
\titleformat{\subsection}[hang]{\sffamily}
|
||||
{\large\bfseries\color{main}\thesubsection\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}
|
||||
|
||||
\titlespacing{\chapter}{0pt}{0pt}{1.5\baselineskip}
|
||||
%\titlespacing{\subsection}{0pt}{0.5\baselineskip}{-\baselineskip}
|
||||
|
||||
|
||||
%%中文结构名字
|
||||
\renewcommand{\contentsname}{目\hspace{2em}录}
|
||||
\renewcommand{\figurename}{图}
|
||||
\renewcommand{\tablename}{表}
|
||||
\renewcommand{\partname}{部分}
|
||||
\renewcommand{\listfigurename}{\bfseries 插图目录}
|
||||
\renewcommand{\listtablename}{\bfseries 表格目录}
|
||||
\renewcommand{\bibname}{\bfseries 参考文献}
|
||||
\renewcommand{\appendixname}{\bfseries 附\hspace{2em}录}
|
||||
\renewcommand{\indexname}{\bfseries 索\hspace{2em}引}
|
||||
|
||||
|
||||
\RequirePackage{caption}
|
||||
\captionsetup{labelfont = bf}
|
||||
|
||||
%%字体设置
|
||||
\RequirePackage{fontenc}
|
||||
\RequirePackage[no-math,cm-default]{fontspec}
|
||||
\defaultfontfeatures{Mapping=tex-text}
|
||||
\RequirePackage{xunicode}
|
||||
\RequirePackage{xltxtra}
|
||||
\setmainfont[Ligatures=TeX]{Minion Pro} % (\textrm)
|
||||
\setsansfont{Myriad Pro} % (\textsf)
|
||||
\setmonofont{Inconsolata}%Palatino Linotype
|
||||
%-中文字体设置-%
|
||||
\RequirePackage{xeCJK}
|
||||
\setCJKmainfont[BoldFont={黑体},ItalicFont={楷体}]{HYShuSongYiJ}%方正书宋_GBK Adobe Song Std L华文中宋
|
||||
\setCJKsansfont[BoldFont={黑体}]{方正中等线简体}
|
||||
\setCJKmonofont{方正中等线简体}
|
||||
\XeTeXlinebreaklocale "zh"
|
||||
\XeTeXlinebreakskip = 0pt plus 1pt
|
||||
% list/itemize/enumerate setting
|
||||
\RequirePackage[shortlabels]{enumitem}
|
||||
\setlist{nolistsep}
|
||||
|
||||
\setCJKfamilyfont{new}{方正苏新诗柳楷简体}
|
||||
\setCJKfamilyfont{note}{方正启体简体}
|
||||
\newfontfamily\gara{Adobe Garamond Pro}
|
||||
% caption settings
|
||||
\RequirePackage[font=small,labelfont={bf}]{caption}
|
||||
\captionsetup[table]{skip=3pt}
|
||||
\captionsetup[figure]{skip=3pt}
|
||||
|
||||
%% 定理\引理\定义样式设置
|
||||
\RequirePackage{environ}
|
||||
\RequirePackage{tikz}
|
||||
\usetikzlibrary{shapes,decorations}
|
||||
|
||||
\definecolor{bule}{RGB}{18,29,57}
|
||||
\definecolor{bablue}{RGB}{248,248,248}
|
||||
|
||||
%define the style of tikz newthemsty
|
||||
\tikzstyle{newthemsty}
|
||||
=[draw=main, fill=blue!10,very thick,rectangle,
|
||||
rounded corners, inner sep=10pt, inner ysep=20pt]
|
||||
\tikzstyle{newthemstytitle}
|
||||
=[fill=main, text=blue!10]
|
||||
|
||||
\tikzstyle{newdefinitionsty}
|
||||
=[draw=seco, fill=yellow!20,very thick,rectangle,
|
||||
rounded corners, inner sep=10pt, inner ysep=20pt,
|
||||
text=black,fill opacity=0.9]
|
||||
\tikzstyle{newdefinitionstytitle}
|
||||
=[fill=seco, text=white]
|
||||
|
||||
\tikzstyle{newpropositionsty}
|
||||
=[draw=thid, fill=bablue,very thick,rectangle,
|
||||
rounded corners, inner sep=10pt, inner ysep=20pt,
|
||||
text=black,fill opacity=0.9]
|
||||
\tikzstyle{newpropositionstytitle}
|
||||
=[fill=thid, text=white]
|
||||
|
||||
%%define the "newthem" environment
|
||||
\newcounter{Newthem}[chapter]
|
||||
\renewcommand{\theNewthem}{\thechapter.\arabic{Newthem}}
|
||||
\NewEnviron{newthem}[1][{}]{%
|
||||
\begin{figure}[!htb]
|
||||
\noindent\centering
|
||||
\begin{tikzpicture}
|
||||
\node[newthemsty] (box){
|
||||
\begin{minipage}{0.93\columnwidth}
|
||||
\sffamily\BODY
|
||||
\end{minipage}};
|
||||
\node[newthemstytitle,right=10pt] at (box.north west){
|
||||
\bf\textsf{Theorem \stepcounter{Newthem}\theNewthem\; #1}};
|
||||
\node[newthemstytitle, rounded corners] at (box.east) {$\clubsuit$};
|
||||
\end{tikzpicture}
|
||||
\end{figure}}
|
||||
|
||||
%%define the "newlemma" environment
|
||||
\newcounter{Newlemma}[chapter]
|
||||
\renewcommand{\theNewlemma}{\thechapter.\arabic{Newlemma}}
|
||||
\NewEnviron{newlemma}[1][{}]{%
|
||||
\begin{figure}[!htb]
|
||||
\noindent\centering
|
||||
\begin{tikzpicture}
|
||||
\node[newthemsty] (box){
|
||||
\begin{minipage}{0.93\columnwidth}
|
||||
\sffamily\BODY
|
||||
\end{minipage}};
|
||||
\node[newthemstytitle,right=10pt] at (box.north west){
|
||||
\bf\textsf{Lemma \stepcounter{Newlemma}\theNewlemma\; #1}};
|
||||
\node[newthemstytitle, rounded corners] at (box.east) {$\clubsuit$};
|
||||
\end{tikzpicture}
|
||||
\end{figure}}
|
||||
|
||||
%%define the "newcorol" environment
|
||||
\newcounter{Newcorol}[chapter]
|
||||
\renewcommand{\theNewcorol}{\thechapter.\arabic{Newcorol}}
|
||||
\NewEnviron{newcorol}[1][{}]{%
|
||||
\begin{figure}[!htb]
|
||||
\noindent\centering
|
||||
\begin{tikzpicture}
|
||||
\node[newthemsty] (box){
|
||||
\begin{minipage}{0.93\columnwidth}
|
||||
\sffamily\BODY
|
||||
\end{minipage}};
|
||||
\node[newthemstytitle,right=10pt] at (box.north west){
|
||||
\bf\textsf{Corollary \stepcounter{Newcorol}\theNewcorol\; #1}};
|
||||
\node[newthemstytitle, rounded corners] at (box.east) {$\clubsuit$};
|
||||
\end{tikzpicture}
|
||||
\end{figure}}
|
||||
|
||||
%% define the "proposition" environment
|
||||
\newcounter{Newprop}[chapter]
|
||||
\renewcommand{\theNewprop}{\thechapter.\arabic{Newprop}}
|
||||
\NewEnviron{newprop}[1][{}]{%
|
||||
\begin{figure}[!htb]\noindent\centering
|
||||
\begin{tikzpicture}
|
||||
\node[newpropositionsty] (box){
|
||||
\begin{minipage}{0.93\columnwidth}
|
||||
\sffamily\BODY
|
||||
\end{minipage}};
|
||||
\node[newpropositionstytitle,right=10pt] at (box.north west){
|
||||
\bf\textsf{Proposition \stepcounter{Newprop}\theNewprop\; #1}};
|
||||
\node[newpropositionstytitle, rounded corners] at (box.east) {$\spadesuit$};
|
||||
\end{tikzpicture}
|
||||
\end{figure}}
|
||||
|
||||
|
||||
%%define the "newdef" environment
|
||||
\newcounter{Newdefinition}[chapter]
|
||||
\renewcommand{\theNewdefinition}{\thechapter.\arabic{Newdefinition}}
|
||||
\NewEnviron{newdef}[1][{}]{%
|
||||
\begin{figure}[!htb]\noindent\centering
|
||||
\begin{tikzpicture}
|
||||
\node [newdefinitionsty] (dbox){\begin{minipage}{0.93\textwidth}\itshape\BODY\end{minipage}};
|
||||
\node[newdefinitionstytitle, right=10pt] at (dbox.north west) {\bf\textsf{Definition \stepcounter{Newdefinition}\theNewdefinition\; #1}};
|
||||
\node[newdefinitionstytitle, rounded corners] at (dbox.east) {$\heartsuit$};
|
||||
\end{tikzpicture}
|
||||
\end{figure}}
|
||||
|
||||
\RequirePackage[most]{tcolorbox}
|
||||
|
||||
\tcbset{
|
||||
common/.style={
|
||||
fontupper=\kaishu,
|
||||
lower separated=false,
|
||||
coltitle=white,
|
||||
colback=gray!10,
|
||||
fonttitle=\bfseries,
|
||||
enhanced,
|
||||
breakable,
|
||||
top=8pt,
|
||||
before skip=8pt,
|
||||
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={:},
|
||||
},
|
||||
defstyle/.style={
|
||||
common,
|
||||
colframe=main,
|
||||
colbacktitle=main,
|
||||
overlay unbroken and last={\node[anchor=south east, outer sep=6pt] at (\textwidth-width,0) {\textcolor{main}{$\clubsuit$}}; }
|
||||
},
|
||||
thmstyle/.style={
|
||||
common,
|
||||
colframe=second,
|
||||
colbacktitle=second,
|
||||
overlay unbroken and last={\node[anchor=south east, outer sep=6pt] at (\textwidth-width,0) {\textcolor{second}{$\heartsuit$}}; }
|
||||
},
|
||||
propstyle/.style={
|
||||
common,
|
||||
colframe=third,
|
||||
colbacktitle=third,
|
||||
overlay unbroken and last={\node[anchor=south east, outer sep=6pt] at (\textwidth-width,0) {\textcolor{third}{$\spadesuit$}}; }
|
||||
},
|
||||
}
|
||||
|
||||
\newtcbtheorem[auto counter,number within=chapter]{definition}{定义}{defstyle}{def}
|
||||
\newtcbtheorem[auto counter,number within=chapter]{theorem}{定理}{thmstyle}{thm}
|
||||
\newtcbtheorem[auto counter,number within=chapter]{proposition}{命题}{propstyle}{prop}
|
||||
\newtcbtheorem[auto counter,number within=chapter]{corollary}{推论}{thmstyle}{cor}
|
||||
\newtcbtheorem[auto counter,number within=chapter]{lemma}{引理}{thmstyle}{lemma}
|
||||
|
||||
|
||||
|
||||
%% Example with counter
|
||||
\newcounter{Newexam}[chapter]
|
||||
\renewcommand{\theNewexam}{\thechapter.\arabic{Newexam}}
|
||||
\newenvironment{example}{\par\noindent\textbf{Example\,\stepcounter{Newexam}\theNewexam: }\color{black!90}}{\par}
|
||||
\newcounter{example}[chapter]
|
||||
\renewcommand{\theexample}{\thechapter.\arabic{example}}
|
||||
\newenvironment{example}{\par\noindent\textbf{示例\,\refstepcounter{example}\theexample:}\color{black!90}}{\par}
|
||||
|
||||
%% Exercise with counter
|
||||
\newcounter{Newexer}[chapter]
|
||||
\renewcommand{\theNewexer}{\thechapter.\arabic{Newexer}}
|
||||
\newenvironment{exercise}{\par\noindent{\makebox[0pt][r]{\color{main}\ding{50}\;\;}}\textbf{Exercise\,\stepcounter{Newexer}\theNewexer: }}{\par}
|
||||
\newcounter{exercise}[chapter]
|
||||
\renewcommand{\theexercise}{\thechapter.\arabic{exercise}}
|
||||
\newenvironment{exercise}{\par\noindent\textbf{练习\,\refstepcounter{exercise}\theexercise:}}{\par}
|
||||
|
||||
%%define the note and newproof environment
|
||||
%%define the note and proof environment
|
||||
\RequirePackage{pifont,manfnt}
|
||||
\newenvironment{note}{\par\itshape\CJKfamily{note}\gara\noindent{\makebox[0pt][r]{\scriptsize\color{red!90}\textdbend\quad}\textbf{Note:}}}{\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}
|
||||
|
||||
\newenvironment{remark}{\par\itshape\CJKfamily{note}\gara\noindent{\makebox[0pt][r]{\color{red!90}\ding{96}\quad}\textbf{Remarks:}}}{\par}
|
||||
\newenvironment{remark}{\noindent\textbf{备注:}}{\par}
|
||||
\newenvironment{assumption}{\par\noindent\textbf{假设:}}{\par}
|
||||
\newenvironment{conclusion}{\par\noindent\textbf{结论:}}{\par}
|
||||
\newenvironment{solution}{\par\noindent\textbf{答案:}}{\par}
|
||||
\newenvironment{property}{\par\noindent\textbf{性质:}}{\par}
|
||||
|
||||
|
||||
\newenvironment{assumption}{\par\noindent\textbf{Assumptions: }\color{black!90}}{\par}
|
||||
|
||||
\newenvironment{conclusion}{\par\noindent\textbf{Conclusions: }}{\par}
|
||||
|
||||
\newenvironment{property}{\par\noindent\textbf{Properties: }}{\par}
|
||||
|
||||
\newenvironment{newproof}{\par\noindent{\makebox[0pt][r]{\color{main}\ding{43}\;\;}\textbf{Proof:}}\color{black!90}\small}{\hfill$\Box$\quad\par}
|
||||
|
||||
\newenvironment{solution}{\par\noindent{\makebox[0pt][r]{\color{main}\ding{46}\;\;}\textbf{Solution:}}\small}{\hfill$\Box$\quad\par}
|
||||
|
||||
\newenvironment{custom}[1]{\par\noindent{\makebox[0pt][r]{\color{main}\ding{34}\;\;}\textbf{#1:}}\small}{\par}
|
||||
%页眉页脚
|
||||
|
||||
\RequirePackage{fancyhdr}
|
||||
@@ -374,85 +324,64 @@
|
||||
|
||||
|
||||
|
||||
%\let\origdoublepage\cleardoublepage
|
||||
%\newcommand{\clearemptydoublepage}{%
|
||||
% \clearpage
|
||||
% {\pagestyle{empty}\origdoublepage}%
|
||||
%}
|
||||
%\let\cleardoublepage\clearemptydoublepage
|
||||
|
||||
%\RequirePackage{nextpage}
|
||||
%\cleartooddpage[\thispagestyle{empty}]
|
||||
%\cleartoevenpage[\thispagestyle{empty}]
|
||||
|
||||
\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}}
|
||||
|
||||
|
||||
|
||||
%%封面
|
||||
|
||||
\def\maketitle{%
|
||||
\thispagestyle{empty}
|
||||
\@cover
|
||||
% \@cover
|
||||
\vfill
|
||||
\vspace*{2cm}
|
||||
\begin{center}
|
||||
\color{seco}
|
||||
\color{second}
|
||||
\rule{0.8\textwidth}{2pt}\\
|
||||
\Huge {\color{main} \bfseries \the\entitle } {\color{seco} \bfseries \the\enend}\\
|
||||
{\Huge \CJKfamily{new}{\color{main} \the\zhtitle } \the\zhend}\\
|
||||
\Huge {\color{main} \bfseries \the\entitle } {\color{second} \bfseries \the\enend}\\
|
||||
{\Huge \bfseries{\color{main} \the\zhtitle } \the\zhend}\\
|
||||
\rule{0.8\textwidth}{2pt}
|
||||
\end{center}
|
||||
\vskip3ex
|
||||
\begin{figure}[htp]
|
||||
\centering
|
||||
\@logo
|
||||
\end{figure}
|
||||
\vfill
|
||||
\vskip5ex
|
||||
\centerline{\@logo}
|
||||
\begin{center}
|
||||
\begin{minipage}{0.65\textwidth}
|
||||
\Eindent\color{bule}\@myquote
|
||||
\indent\centering\color{bule}\@myquote
|
||||
\end{minipage}
|
||||
\end{center}
|
||||
\vfill
|
||||
\vspace{2cm}
|
||||
\begin{flushright}
|
||||
\color{seco}
|
||||
\color{second}
|
||||
\rule{0.45\textwidth}{1pt}\\
|
||||
整理:{\color{main}\@author}\\
|
||||
整理时间:{\color{main}\today}\\
|
||||
Email: \hyperlink{\the\email}{\the\email}\\
|
||||
作者:{\color{main}\@author}\\
|
||||
时间:{\color{main}\today}\\
|
||||
邮箱: \hyperlink{\the\email}{\the\email}\\
|
||||
\rule{0.45\textwidth}{1pt}
|
||||
\end{flushright}
|
||||
\vfill
|
||||
\begin{center}
|
||||
\color{seco} Version: \the\version
|
||||
\color{second} 版本: \the\version
|
||||
\end{center}
|
||||
\vfil\eject
|
||||
}
|
||||
|
||||
|
||||
%%中文两个字符缩进
|
||||
%----字宽/缩进-----
|
||||
%----CJK字符宽度
|
||||
%\f@size = 当前字符大小数值(pt/pt)
|
||||
%\p@ = 1pt
|
||||
\def\elegant@CJKChar@size{\hskip \f@size \p@}
|
||||
%----定义字宽
|
||||
%字宽 = 字符宽度 + 字符间距 = 相邻字符中心的间距
|
||||
\newdimen\elegant@CJKChar@size@dimen
|
||||
\settowidth\elegant@CJKChar@size@dimen{\elegant@CJKChar@size\CJKglue}
|
||||
%----用户接口
|
||||
%负责刷新字宽和段落缩进
|
||||
\newcommand{\CJKsetfontspace}{%
|
||||
%刷新字宽
|
||||
\settowidth\elegant@CJKChar@size@dimen{\elegant@CJKChar@size\CJKglue}%
|
||||
%刷新段落缩进
|
||||
%判断段落缩进是否被设置为0(如果是表示要求不缩进)
|
||||
\ifdim\parindent=0pt%
|
||||
\relax%
|
||||
\else%
|
||||
\parindent2\elegant@CJKChar@size@dimen%
|
||||
\fi%
|
||||
}
|
||||
\newcommand{\Eindent}{\CJKsetfontspace\parindent2\elegant@CJKChar@size@dimen}
|
||||
\newcommand{\Enoindent}{\parident\z@}
|
||||
%----自动执行
|
||||
\AtBeginDocument{\Eindent}
|
||||
|
||||
|
||||
|
||||
\RequirePackage{natbib}
|
||||
\setlength{\bibsep}{0.0pt}
|
||||
\def\bibfont{\footnotesize}
|
||||
|
||||
3343
figure/ElegantLaTeX_green.pdf
Normal file
3343
figure/ElegantLaTeX_green.pdf
Normal file
File diff suppressed because one or more lines are too long
BIN
figure/icon.png
Normal file
BIN
figure/icon.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 32 KiB |
1629
figure/logo.pdf
1629
figure/logo.pdf
File diff suppressed because one or more lines are too long
BIN
figure/logo.png
BIN
figure/logo.png
Binary file not shown.
|
Before Width: | Height: | Size: 9.0 KiB After Width: | Height: | Size: 20 KiB |
317
guide.tex
317
guide.tex
@@ -1,262 +1,239 @@
|
||||
%!TEX program = xelatex
|
||||
\documentclass[color=green,mathpazo,titlestyle=hang,11pt]{elegantbook}
|
||||
\documentclass{elegantbook}
|
||||
|
||||
\author{ddswhu \& LiamHuang0205}
|
||||
\email{elegantlatex2e@gmail.com}
|
||||
\zhtitle{优美的\LaTeX{} 书籍}
|
||||
\zhend{}
|
||||
\author{ddswhu \& Liam Huang}
|
||||
\email{ddswhu@outlook.com}
|
||||
|
||||
\zhtitle{优美的 \LaTeX{} 书籍}
|
||||
\zhend{模板}
|
||||
\entitle{Elegant\LaTeX{} Book}
|
||||
\enend{Template}
|
||||
\version{2.10}
|
||||
\version{3.03}
|
||||
\myquote{Victory won\rq t come to us unless we go to it.}
|
||||
\logo{logo.pdf}
|
||||
\logo{ElegantLaTeX_green.pdf}
|
||||
\cover{cover.pdf}
|
||||
|
||||
%green color
|
||||
\definecolor{main1}{RGB}{0,120,2}
|
||||
\definecolor{seco1}{RGB}{230,90,7}
|
||||
\definecolor{thid1}{RGB}{0,160,152}
|
||||
\definecolor{second1}{RGB}{230,90,7}
|
||||
\definecolor{third1}{RGB}{0,160,152}
|
||||
%cyan color
|
||||
\definecolor{main2}{RGB}{0,175,152}
|
||||
\definecolor{seco2}{RGB}{239,126,30}
|
||||
\definecolor{thid2}{RGB}{120,8,13}
|
||||
\definecolor{second2}{RGB}{239,126,30}
|
||||
\definecolor{third2}{RGB}{120,8,13}
|
||||
%blue color
|
||||
\definecolor{main3}{RGB}{20,50,104}
|
||||
\definecolor{seco3}{RGB}{180,50,131}
|
||||
\definecolor{thid3}{RGB}{7,127,128}
|
||||
\definecolor{second3}{RGB}{180,50,131}
|
||||
\definecolor{third3}{RGB}{7,127,128}
|
||||
|
||||
\usepackage{makecell}
|
||||
\usepackage{lipsum}
|
||||
\usepackage{texnames}
|
||||
|
||||
|
||||
\begin{document}
|
||||
\maketitle
|
||||
\tableofcontents
|
||||
\mainmatter
|
||||
\chapter{ElegantBook 模板的由来}
|
||||
\chapter{Elegant\LaTeX{} 系列模板介绍}
|
||||
|
||||
只有当自己想去做一件事的时候才能把事情做好!
|
||||
值此版本发行之际,我们 Elegant\LaTeX{} 项目组向大家重新介绍一下我们的工作,我们致力于打造一系列美观、优雅、简便的模板方便用户使用。Elegant\LaTeX{} 系列模板目前由 ElegantNote,ElegantBook,ElegantPaper,ElegantBeamer 组成,分别用于排版笔记,书籍,工作论文和幻灯片讲稿。这些子项目的名词是一体的,请在使用这些名词的时候不要将其断开(如 Elegant Note 是不正确的写法)。并且,Elegant\LaTeX{} Book 指的即是 ElegantBook。
|
||||
|
||||
\section{ElegantNote 的前世今生}
|
||||
请用户在作者的主页下载最新版本,下载地址:\href{https://ddswhu.me/resource/}{https://ddswhu.me/resource/}。本文将介绍本模板的一些设置内容以及基本使用方法。如果您在使用此模板,欢迎把您使用此模板制作的成品发一份给我们,谢谢!如果您有其他问题,建议或者意见,欢迎联系我:\mailto{ddswhu@outlook.com}。
|
||||
|
||||
写 ElegantNote 模板的初衷是为了简化我在写笔记中的工作,因为我不会写类文件和包文件,所以,最当初是想拜托小L做出一个华丽,清爽的 \LaTeX{} 模板,最好是类文件,而且因为这样可以简化导言区复杂的内容。后来,和小L一拍即合,遂开始一起做Elegant\LaTeX{}的设计。
|
||||
|
||||
在学校的时候,搞定了定理环境样式的代码。因为不想重复 China\TeX{} 那个经典的页眉页脚,我找到了计量书上的一个图案,小L拿 Ti\emph{k}Z 一点一点把那个画出来了,不过我最后还是用的截取的方式得到的图案。慢慢地,我们把初步的样子做出来了。
|
||||
\section{ElegantBook 更新说明}
|
||||
在这几年间,我们收到了很多用户的反馈,主要的问题涉及到字体安装,编码支持,定理浮动,定理跨页,交叉引用等等。我们思前想后,原先让用户安装字体以追求视觉上的美观并不完美,用户陷入了巨大的麻烦,这违背了我们的模板初衷。因此我们在新版中删除了这部分,用户无需安装任何字体。让我们来看下此次 ElegantBook 模板 3.0 更新的主要内容有:
|
||||
|
||||
2013年的暑假开始后,我对那个初步的模板做了一点改动,然后用它写了Dynamic Programing 的笔记,并且,在写的过程中,对模板加了封面,也就是模板现在的封面(logo 在Version 2.00中已经改了)。至此,模板的大致样子终于出来了,不过当时也在写笔记的过程中知道了某些不足,比如
|
||||
\begin{enumerate}
|
||||
\item 定理类的环境在我们这个模板中不能浮动,也不能跨页,在Version 2.00 版本中已经添加。
|
||||
\item 某些环境不足,比如例子、假设、性质、结论等环境,在1.00版本中已经增加了这几个环境,在2.00版本中,环境设置更加全面。
|
||||
\item 一些我们不可预知的错误将会不期而遇。
|
||||
\item 一些我们目前没有需求,但是可以继续改进的地方,比如表格样式,比如抄录样式等。
|
||||
\begin{enumerate}[noitemsep]
|
||||
\item 删除了自定义字体设置,改用 \texttt{ctex} 宏包用以支持中文。
|
||||
\item 使用 \texttt{tcolorbox} 宏包改写了原先的定理类环境,目前定理环境等均可以跨页。
|
||||
\item 重新命名了定理类环境的名称(theorem,definition,proposition 等)。
|
||||
\item 重新命名了颜色的名字(first,second,third)。
|
||||
\end{enumerate}
|
||||
|
||||
写完那个笔记之后越发让我对 Elegant\LaTeX{} 模板的制作更有激情,在和小L相互讨论的几天里,我们终于得到了1.00 版本的 ElegantNote 模板。
|
||||
\section{未来更新计划}
|
||||
|
||||
\section{ElegantBook 的诞生}
|
||||
|
||||
在实际应用中,我们发现了一个比较重要的问题,因为在一般的笔记中,定义、定理经常一起出现,和课本区别比较大的是,通常是一堆定义之后,出现一堆性质或者定理。如果出现这种情况,使用 ElegantNote 模板会导致分块很严重,影响排版质量和美观。思前想后,我们决定将 ElegantNote 模板更新为 ElegantBook 模板,并在未来重新设计一个简洁版本的 ElegantNote。 至此ElegantBook 才横空出世,由于更名原因,ElegantBook 1.00 版本也即原来的 ElegantNote, 而ElegantBook 2.00 为目前的正式版本。
|
||||
\begin{enumerate}[noitemsep]
|
||||
\item 设计一个适合的 LOGO;
|
||||
\item 重新设计 base 图标;
|
||||
\item 重新设计一个好看的封面。
|
||||
\item 将基础模板改为英文模板,添加选项使其支持中文。
|
||||
\item 将最早的 ElegantNote 重新设计为简版发布。
|
||||
\item 添加一个简化风格(plain)的颜色主题。
|
||||
\end{enumerate}
|
||||
|
||||
\section{一张白纸折腾出的一个模板}
|
||||
\chapter{ElegantBook 设置说明}
|
||||
|
||||
我以前从未写过类文件,所以,写这个模板的过程必然是折腾的过程,在写模板的过程中,最主要参考了《写给\LaTeXe{} 类与宏包的作者》\cite{packagewriter}、moderncv.cls 文件、\href{http://aff.whu.edu.cn/huangzh/}{武汉大学黄正华老师的论文模板}、《\LaTeXe{} 完全学习手册》\cite{complete}、{\itshape The Not So Short Introduction to \LaTeXe{}}\cite{oetiker2010not}以及各大\LaTeX{} 疑问解答网站,在此为无私奉献的组织和个人表示感谢!
|
||||
|
||||
{\color{thid}忍不住插个图!}
|
||||
\section{编译方式}
|
||||
|
||||
\begin{figure}[!hbtp]
|
||||
\includegraphics[width=0.8\textwidth]{happy.jpg}
|
||||
\caption{Happiness,we have it!\label{figur:happy}}
|
||||
\end{figure}
|
||||
本模板基于基础的 book 文类,所以 book 的选项对于本模板也是有效的。默认编码为 UTF-8,推荐使用 \TeX{} Live 编译。作者编写环境为 Win10(64bit) + \TeX{} Live 2018。由于使用的是 \texttt{ctex} 宏包,所以支持 \texttt{pdflatex} 以及 \texttt{xelatex} 编译。
|
||||
|
||||
\chapter{ElegantBook 开服说明}
|
||||
\section{关于我们}
|
||||
我们目前都是学生,接触 \LaTeX{} 的时间也不是很长,因此,对于此模板的错误还请多多包涵! 目前,模板的拓展性或者可移植性有待完善,所以,我们强烈建议用户不要大幅修改模板文件,我们的初衷是提供一套模板,让初学者能够使用一些比较美观,优雅的模板。如果在使用过程中,想修改一些简单的东西需要帮忙,请联系我们,我们的邮箱是:\href{elegantlatex2e@gmail.com}{elegantlatex2e@gmail.com}。我们将竭尽全力提供帮助!
|
||||
|
||||
值此版本发行之际,我们 Elegant\LaTeX{} 项目组向大家重新介绍一下我们的工作,我们的主页是 \href{http://elegantlatex.tk}{http://elegantlatex.tk},我们这个项目致力于打造一系列美观、优雅、简便的模板方便使用者记录学习历史。其中目前在实施或者在规划中的子项目有 书籍模板ElegantBook、笔记模板ElegantNote、幻灯片模板 ElegantSlide。这些子项目的名词是一体的,请在使用这些名词的时候不要将其断开(如 Elegant Note是不正确的写法)。并且,Elegant\LaTeX{} Book 指的即是 ElegantBook。
|
||||
\section{选项设置}
|
||||
本文特殊选项设置共有 2 类,分为 {\color{main}主题颜色}设置 以及 {\color{main}章标题显示风格}设置。
|
||||
|
||||
\section{关于字体}
|
||||
第 1 类为{\color{main}主题颜色}设置,内置 3 组颜色主题,分别为 \verb|green|(默认)、\verb|cyan|、\verb|blue|,另外还有一个自定义的选项 \verb|nocolor|。调用颜色主题 \verb|green| 的方法为 \\
|
||||
\verb|\documentclass[green]{elegantbook}| 或者 \verb|\documentclass[color=green]{elegantbook}|。需要改变颜色的话请选择 \verb|nocolor| 选项或者使用 \verb|color=none|,然后在导言区定义 main、second、third 颜色,具体的方法如下:
|
||||
|
||||
基于本模板追求视觉上的美观的角度,强烈建议使用者安装./fonts/文件夹下的字体。出于版权的考虑,务必不能将此模板用于涉及盈利目的的商业行为,否则,后果自负,本模板带的字体仅供学习使用,如果您喜欢某种字体,请自行购买正版。本文主要使用的字体如下
|
||||
\begin{itemize}
|
||||
\itemsep=3pt
|
||||
\parskip=0pt
|
||||
\item Adobe Garamond Pro
|
||||
\item Minion Pro \& Myriad Pro \& Inconsolata
|
||||
\item 方正字体
|
||||
\item 华文中宋
|
||||
\end{itemize}
|
||||
|
||||
\begin{note}
|
||||
中文正文使用了华文中宋,Minion Pro为英文衬线字体(\verb|\rmfamily|),Myriad Pro为英文非衬线字体(\verb|\sffamily|),Inconsolata 为英文打字机字体(\verb|\ttfamily|)。
|
||||
|
||||
并且,如果系统内安装了Adobe 字体,大家可以把模板中使用到的黑体,楷体,宋体等字替换成 Adobe 字体,这样可以达到最佳效果。
|
||||
\end{note}
|
||||
|
||||
\section{文档说明}
|
||||
\subsection{编译方式}
|
||||
本模板基于book文类,所以book的选项对于本模板也是有效的。但是,只支持 \XeLaTeX{},编码为 UTF-8,推荐使用 \TeX{}live编译。作者编写环境为Win8.1(64bit)+\TeX{}live 2013,由于使用了参考文献,所以,编译顺序为\XeLaTeX->\BibTeX->\XeLaTeX->\XeLaTeX。
|
||||
|
||||
本文特殊选项设置共有3类,分为{\color{main}颜色} 、{\color{main} 数学字体 }以及{\color{main} 章标题显示风格}。
|
||||
|
||||
\subsection{选项设置}
|
||||
第一类为{\color{main}颜色}主题设置,内置 3 组颜色主题,分别为 \verb|green|(默认),\verb|cyan|,\verb|blue|,另外还有一个自定义的选项 \verb|nocolor|,用户\textbf{必须}在使用模板的时候选择某个颜色主题或选择 \verb|nocolor|选项。调用颜色主题 \verb|green| 的方法为\verb|\documentclass[green]{elegantbook}|或者使用\verb|\documentclass[color=green]{elegantbook}|。需要改变颜色的话请选择 \verb|nocolor|选项或者使用 \verb|color=none|,然后在导言区定义main、seco、thid颜色,具体的方法如下:
|
||||
\begin{verbatim}
|
||||
\definecolor{main}{RGB}{70,70,70} %定义main颜色值
|
||||
\definecolor{seco}{RGB}{115,45,2} %定义seco颜色值
|
||||
\definecolor{thid}{RGB}{0,80,80} %定义thid颜色值
|
||||
\definecolor{main}{RGB}{70,70,70} %定义 main 颜色值
|
||||
\definecolor{second}{RGB}{115,45,2} %定义 second 颜色值
|
||||
\definecolor{third}{RGB}{0,80,80} %定义 third 颜色值
|
||||
\end{verbatim}
|
||||
|
||||
第二类为{\color{main}数学字体}设置,有两个可选项,分别是 mathpazo(默认) 和 mtpro2 字体,调用mathpazo 字体使用 \verb|\documentclass[mathpazo]{elegantbook}|,调用 mtpro2 字体时需要把 \verb|mathpazo|换成 \verb|mtpro|,mathpazo 不需要用户自己安装字体,mtpro2 的字体需要自己安装。
|
||||
|
||||
\begin{table}[htp]
|
||||
\caption{ElegantBook 模板中的三套颜色主题\label{tab:color thm}}
|
||||
\centering
|
||||
\begin{tabular}{ccccc}
|
||||
\toprule
|
||||
& green & cyan & blue & 主要使用的环境\\
|
||||
\midrule
|
||||
main & \makecell{{\color{main1}\rule{1cm}{1cm}}}& \makecell{{\color{main2}\rule{1cm}{1cm}}}&\makecell{ {\color{main3}\rule{1cm}{1cm}}}& newthem \ newlemma \ newcorol\\
|
||||
main & \makecell{{\color{main1}\rule{1cm}{1cm}}}& \makecell{{\color{main2}\rule{1cm}{1cm}}}&\makecell{ {\color{main3}\rule{1cm}{1cm}}}& definition \\
|
||||
|
||||
seco &\makecell{ {\color{seco1}\rule{1cm}{1cm}}}& \makecell{{\color{seco2}\rule{1cm}{1cm}}}&\makecell{ {\color{seco3}\rule{1cm}{1cm}}}&newdef\\
|
||||
second &\makecell{ {\color{second1}\rule{1cm}{1cm}}}& \makecell{{\color{second2}\rule{1cm}{1cm}}}&\makecell{ {\color{second3}\rule{1cm}{1cm}}}&theorem \ lemma \ corollary\\
|
||||
|
||||
thid &\makecell{ {\color{thid1}\rule{1cm}{1cm}}}& \makecell{{\color{thid2}\rule{1cm}{1cm}}}&\makecell{ {\color{thid3}\rule{1cm}{1cm}}}&newprop\\
|
||||
third &\makecell{ {\color{third1}\rule{1cm}{1cm}}}& \makecell{{\color{third2}\rule{1cm}{1cm}}}&\makecell{ {\color{third3}\rule{1cm}{1cm}}}&proposition\\
|
||||
\bottomrule
|
||||
\end{tabular}
|
||||
\caption{ElegantBook 模板中的三套颜色主题\label{tab:color thm}}
|
||||
\end{table}
|
||||
|
||||
第三类为{\color{main} 章标题显示风格},包含 \verb|hang|(默认)与 \verb|display|两种风格,区别在于章标题单行显示(\verb|hang|)与双行显示(\verb|display|),本说明使用了 \verb|hang|。调用方式为 \verb|\documentclass[hang]{elegantbook}|或者 \verb|\documentclass[titlestyle=hang]{elegantbook}|。
|
||||
第 2 类为{\color{main} 章标题显示风格},包含 \verb|hang|(默认)与 \verb|display| 两种风格,区别在于章标题单行显示(\verb|hang|)与双行显示(\verb|display|),本说明使用了 \verb|hang|。调用方式为 \verb|\documentclass[hang]{elegantbook}| 或者 \verb|\documentclass[titlestyle=hang]{elegantbook}|。
|
||||
|
||||
综合起来,同时调用三个选项使用 \verb|\documentclass[color=X,Y,titlestyle=Z]{elegantbook}|。其中 \verb|X| 可以选择 \verb|green|,\verb|cyan|,\verb|blue|,\verb|none|;\verb|Y| 可以选择 \verb|mathpazo|或者 \verb|mtpro|;\verb|Z|可以选择 \verb|hang| 或者 \verb|display|。
|
||||
综合起来,同时调用三个选项使用 \verb|\documentclass[color=X,titlestyle=Y]{elegantbook}|。其中 \verb|X| 可以选择 \verb|green|,\verb|cyan|,\verb|blue|,\verb|none|;\verb|Z| 可以选择 \verb|hang| 或者 \verb|display|。
|
||||
|
||||
\section{数学环境简介}
|
||||
|
||||
\subsection{数学环境简介}
|
||||
在我们这个模板中,定义了三大类环境
|
||||
\begin{enumerate}
|
||||
|
||||
\begin{enumerate}[noitemsep]
|
||||
\item 定理类环境,包含标题和内容两部分。根据格式的不同分为3种
|
||||
\begin{itemize}
|
||||
\item {\color{main} newthem、newlemma、newcorol} 环境,颜色为主颜色main,三者编号均以章节为单位;
|
||||
\item {\color{main} newdef} 环境,含有一个可选项,编号以章节为单位,颜色为seco;
|
||||
\item {\color{main} newprop} 环境,含有一个可选项,编号以章节为单位,颜色为thid。
|
||||
\end{itemize}
|
||||
\item 证明类环境,有 {\color{main} newproof、note、remark、solution} 环境,特点是,有引导符和引导词,并且 newproof、solution 环境有结束标志。
|
||||
\item 结论类环境,有 {\color{main} conclusion、assumption、property} 环境,三者均以粗体的引导词为开头,和普通段落格式一致。
|
||||
\item 示例类环境--- {\color{main} example、exercise}环境,编号以章节为单位,其中exercise环境有引导符。
|
||||
\item 自定义环境--- {\color{main} custom},带一个必选参数,格式与conclusion 环境很类似。
|
||||
\begin{itemize}[noitemsep]
|
||||
\item {\color{main}\bfseries definition} 环境,含有一个可选项,编号以章节为单位,颜色为 {\color{main}main};
|
||||
\item {\color{second}\bfseries theorem、lemma、corollary} 环境,颜色为主颜色 {\color{second}second},编号均以章节为单位;
|
||||
\item {\color{third}\bfseries proposition} 环境,含有一个可选项,编号以章节为单位,颜色为 {\color{third}{third}}。
|
||||
\end{itemize}
|
||||
\item 示例类环境,有 \textbf{example、exercise} 环境,自动编号,编号以章节为单位。
|
||||
\item 证明类环境,有 \textbf{proof、note} 环境,特点是,有引导符或者结尾符,\textbf{note} 环境有引导符号,\textbf{proof} 环境有证明完毕标志。
|
||||
\item 结论类环境,有\textbf{conclusion、assumption、property,remark、solution} 环境,三者均以粗体的引导词为开头,和普通段落格式一致。
|
||||
\end{enumerate}
|
||||
|
||||
\subsection{可编辑的字段}
|
||||
在模板中,可以编辑的字段分别为作者\verb|\author|、\verb|\email|、\verb|\zhtitle|、\verb|\zhend|、\verb|\entitle|、\verb|\enend|、\verb|\version|。并且,可以根据自己的喜好把封面水印效果的\verb|cover.pdf|替换掉,以及封面中用到的\verb|logo.pdf|。
|
||||
\section{可编辑的字段}
|
||||
在模板中,可以编辑的字段分别为作者 \verb|\author|、邮箱 \verb|\email|、中文标题 \verb|\zhtitle|、中文标题结尾 \verb|\zhend|、英文标题\verb| \entitle|、英文标题结尾 \verb|\enend|、名言 \verb|\myquote|、版本号 \verb|\version|。并且,可以根据自己的喜好把封面水印效果的 \verb|cover.pdf| 替换掉,以及封面中用到的 \verb|logo.png|。
|
||||
|
||||
\section{参考文献}
|
||||
|
||||
此模板使用了 Bib\TeX{} 来生成参考文献,默认使用的文献样式 aer 样式。参考文献示例:~\cite{Chen2018} 使用了中国一个大型的 P2P 平台(人人贷)的数据来检验男性投资者和女性投资者在投资表现上是否有显著差异。你可以在谷歌学术,Mendeley,Endnote 中获得文献条目(bib item),然后把它们添加到 \verb|reference.bib| 中。在文中引用的时候,引用它们的键值(bib key)即可。注意需要在编译的过程中添加 Bib\TeX{} 编译。
|
||||
|
||||
\chapter{ElegantBook 写作示例}
|
||||
|
||||
\section{灵魂不随便出卖,代码也不随便瞎写}
|
||||
\lipsum[3]
|
||||
考虑如下的随机动态规划问题
|
||||
\begin{align*}
|
||||
&\max(\min)\quad \mathbb{E}\int_{t_0}^{t_1}f(t,x,u)\,dt\\
|
||||
&\quad\mbox{s.t.} \quad dx=g(t,x,u)dt+\sigma(t,x,u)dz\\
|
||||
&\quad \hspace{2.em} k(0)=k_0\;\text{given}
|
||||
\end{align*}
|
||||
\section{Lebesgue 积分}
|
||||
在前面各章做了必要的准备后,本章开始介绍新的积分。在 Lebesgue 测度理论的基础上建立了 Lebesgue 积分,其被积函数和积分域更一般,可以对有界函数和无界函数统一处理。正是由于 Lebesgue 积分的这些特点,使得 Lebesgue 积分比 Riemann 积分具有在更一般条件下的极限定理和累次积分交换积分顺序的定理,这使得 Lebesgue 积分不仅在理论上更完善,而且在计算上更灵活有效。
|
||||
|
||||
where $z$ is stochastic process or white noise or wiener process.
|
||||
Lebesgue 积分有几种不同的定义方式。我们将采用逐步定义非负简单函数,非负可测函数和一般可测函数积分的方式。
|
||||
|
||||
\begin{newdef}[Wiener Process]
|
||||
If $z$ is wiener process, then for any partition $t_0,t_1,t_2,\ldots$ of time interval, the random variables $z(t_1)-z(t_0),z(t_2)-z(t_1),\ldots$ are independently and normally distributed with zero means and variance $t_1-t_0,t_2-t_1,\ldots$
|
||||
\end{newdef}
|
||||
由于现代数学的许多分支如概率论、泛函分析、调和分析等常常用到一般空间上的测度与积分理论,在本章最后一节将介绍一般的测度空间上的积分。
|
||||
|
||||
\lipsum[5]
|
||||
\subsection{积分的定义}
|
||||
|
||||
我们将通过三个步骤定义可测函数的积分。首先定义非负简单函数的积分。以下设 $E$ 是 $\mathcal{R}^n$ 中的可测集。
|
||||
|
||||
\begin{definition}{可积性}{inter}
|
||||
设 $ 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}
|
||||
\label{inter}
|
||||
\int_{E} f dx = \sum_{i=1}^k a_i m(A_i).
|
||||
\end{equation}
|
||||
一般情况下 $0 \leq \int_{E} f dx \leq \infty$。若 $\int_{E} f dx < \infty$,则称 $f$ 在 $E$ 上可积。
|
||||
\end{definition}
|
||||
|
||||
一个自然的问题是,Lebesgue 积分与我们所熟悉的 Riemann 积分有什么联系和区别?在 4.4 在我们将详细讨论 Riemann 积分与 Lebesgue 积分的关系。这里只看一个简单的例子。设 $D(x)$ 是区间 $[0,1]$ 上的 Dirichlet 函数。即 $D(x)=\chi_{Q_0}(x)$,其中 $Q_0$ 表示 $[0,1]$ 中的有理数的全体。根据非负简单函数积分的定义,$D(x)$ 在 $[0,1]$ 上的 Lebesgue 积分为
|
||||
\begin{equation}
|
||||
\label{inter2}
|
||||
\int_0^1 D(x)dx = \int_0^1 \chi_{Q_0} (x) dx = m(Q_0) = 0
|
||||
\end{equation}
|
||||
即 $D(x)$ 在 $[0,1]$ 上是 Lebesgue 可积的并且积分值为零。但 $D(x)$ 在 $[0,1]$ 上不是 Riemann 可积的。
|
||||
|
||||
|
||||
有界变差函数是与单调函数有密切联系的一类函数。有界变差函数可以表示为两个单调递增函数之差。与单调函数一样,有界变差函数几乎处处可导。与单调函数不同,有界变差函数类对线性运算是封闭的,它们构成一线空间。
|
||||
|
||||
\begin{example}
|
||||
$E$ and $F$ be two events such that $\mbf{P}(E)=\mbf{P}(F)=1/2$, and $\mbf{P}(E\cap F)=1/3$, let $\mathscr{F}=\sigma(Y)$, $X$ and $Y$ be the indicate function of $E$ and $F$ respectively. How to compute $\mathbb{E}[ X\mid \mathscr{F} ]$?
|
||||
\end{example}
|
||||
\lipsum[4]
|
||||
\begin{exercise}
|
||||
let $S=l^\infty=\big\{(x_n)\mid \exists\, M \text{ such that } \forall n, |x_n|\leq M,x_n\in \mathbb{R}\big\}$, $\rho_{\infty}(x,y)=\sup\limits_{n\geq 1}|x_n-y_n|$, show that $\big(l^\infty,\rho_{\infty}\big)$ is complete.
|
||||
设 $f\in L(\mathcal{R}^1)$,$g$ 是 $\mathcal{R}^1$ 上的有界可测函数。证明函数
|
||||
\begin{equation}
|
||||
\label{ex:1}
|
||||
I(t) = \int_{\mathcal{R}^1} f(x+t)g(x)dx \quad t \in \mathcal{R}^1
|
||||
\end{equation}
|
||||
是 $\mathcal{R}^1$ 上的连续函数。
|
||||
\end{exercise}
|
||||
|
||||
\begin{newthem}[勾股定理]
|
||||
勾股定理的数学表达(Expression)为
|
||||
\[a^2+b^2=c^2\]
|
||||
其中$a,b$为直角三角形的两条直角边长,$c$为直角三角形斜边长。
|
||||
\end{newthem}
|
||||
\begin{theorem}{Fubini 定理}{31}
|
||||
(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}
|
||||
\label{eq:461}
|
||||
\int_{\mathcal{R}^p\times\mathcal{R}^q} f(x,y) dxdy=\int_{\mathcal{R}^p}\left(\int_{\mathcal{R}^q}f(x,y)dy\right)dx.
|
||||
\end{equation}
|
||||
(2)若 $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$ 上的可积函数。而且~\ref{eq:461} 成立。
|
||||
\end{theorem}
|
||||
|
||||
\begin{note}
|
||||
在本模板中,引理(lemma),推论(corollary )的样式和定理的样式一致,包括颜色,仅仅只有计数器的设置不一样。在这个例稿中,我们将不给出引理推论的例子。
|
||||
在本模板中,引理(lemma),推论(corollary )的样式和定理的样式一致,包括颜色,仅仅只有计数器的设置不一样。
|
||||
\end{note}
|
||||
|
||||
我们说一个实变或者复变量的实值或者复值函数是在区间上平方可积的,如果其绝对值的平方在该区间上的积分是有限的。所有在勒贝格积分意义下平方可积的可测函数构成一个希尔伯特空间,也就是所谓的 $L^2$ 空间,几乎处处相等的函数归为同一等价类。形式上,$L^2$ 是平方可积函数的空间和几乎处处为 0 的函数空间的商空间。
|
||||
|
||||
\lipsum[4]
|
||||
\begin{proposition}{最优性原理}{max}
|
||||
如果 $u^*$ 在 $[s,T]$ 上为最优解,则 $u^*$ 在 $[s,T]$ 任意子区间都是最优解,假设区间为 $[t_0,t_1]$ 的最优解为 $u^*$ ,则 $u(t_0)=u^{*}(t_0)$,即初始条件必须还是在 $u^*$ 上。
|
||||
\end{proposition}
|
||||
|
||||
\begin{newprop}[最优性原理]
|
||||
如果$u^*$在$[s,T]$上为最优解,则$u^*$在$[s,T]$任意子区间都是最优解,假设区间为$[t_0,t_1]$的最优解为$u^*$,则$u(t_0)=u^{*}(t_0)$,即初始条件必须还是在$u^*$上。
|
||||
\end{newprop}
|
||||
我们知道最小二乘法可以用来处理一组数据,可以从一组测定的数据中寻求变量之间的依赖关系,这种函数关系称为经验公式。本课题将介绍最小二乘法的精确定义及如何寻求点与点之间近似成线性关系时的经验公式。假定实验测得变量之间的 $n$ 个数据,则在平面上,可以得到 $n$ 个点,这种图形称为 “散点图”,从图中可以粗略看出这些点大致散落在某直线近旁, 我们认为其近似为一线性函数,下面介绍求解步骤。
|
||||
|
||||
\lipsum[5-6]
|
||||
\begin{newcorol}
|
||||
假设$V(\cdot,\cdot)$为值函数,则跟据最大值原理,有如下推论
|
||||
\[
|
||||
V(k,z)=\max\Big\{u\big(zf(k)-y\big)+\beta \mathbb{E}V(y,z^\prime)\Big\}
|
||||
\]
|
||||
\end{newcorol}
|
||||
|
||||
\begin{newproof}
|
||||
因为 $y^*=\alpha\beta z k^\alpha$,$V(k,z)=\alpha/1-\alpha\beta\ln k_0+1/1-\alpha\beta \ln z_0+\Delta$。
|
||||
\begin{align*}
|
||||
\text{右边}&=\Big\{u\big(zf(k)-y\big)+\beta \mathbb{E}V(y,z^\prime)\Big\}\\
|
||||
&=\ln(zk^\alpha-\alpha\beta zk^\alpha)+\beta\mathbb{E}\Big[\frac{\alpha}{1-\alpha\beta}\ln y+\frac{1}{1-\alpha\beta}\ln z^\prime+\Delta\Big]\\
|
||||
&=\ln(1-\alpha\beta)zk^\alpha+\beta\Big\{\mathbb{E}\big[\frac{\alpha}{1-\alpha\beta}\ln \alpha\beta z k^\alpha\big]+\frac{1}{1-\alpha\beta}\mathbb{E}[\ln z^\prime]+\Delta\Big\}
|
||||
\end{align*}
|
||||
利用$\mathbb{E}[\ln z^\prime]=0$,并将对数展开得
|
||||
\begin{align*}
|
||||
\text{右边}&=\ln (1-\alpha\beta)+\ln z+\alpha\ln k+\frac{\alpha\beta}{1-\alpha\beta}\big[\ln \alpha\beta+\ln z+\alpha\ln k\big]+\frac{\beta}{1-\alpha\beta}\mu+\beta \Delta\\
|
||||
&=\frac{\alpha}{1-\alpha\beta}\ln k+\frac{1}{1-\alpha\beta}\ln z+\Delta
|
||||
\end{align*}
|
||||
所以$\text{左边}=\text{右边}$,证毕。
|
||||
\end{newproof}
|
||||
考虑函数 $y=a+bx$, 其中 $a$ 和 $b$ 是待定常数。如果离散点完全的在一直线上,可以认为变量之间的关系为一元函数。但一般说来,这些点不可能在同一直线上。但是它只能用直线来描述时,计算值与实际值会产生偏差。当然要求偏差越小越好,但由于偏差可正可负,因此不能认为总偏差时,拟合函数很好地反映了变量之间的关系,但是因为此时每个偏差的绝对值可能很大。为了改进这一缺陷,就考虑用平均值来代替。但是由于绝对值不易作解析运算,因此,进一步用残差平方和函数来度量总偏差。偏差的平方和最小可以保证每个偏差都不会很大。于是问题归结为确定拟合函数中的常数和使残差平方和函数最小。
|
||||
|
||||
\begin{figure}[!htbp]
|
||||
\centering
|
||||
\includegraphics[width=0.6\textwidth]{mpg.png}
|
||||
\caption{MPG 和 Weight 的关系图\label{fig:mpg}}
|
||||
\end{figure}
|
||||
|
||||
|
||||
|
||||
以最简单的一元线性模型来解释最小二乘法。什么是一元线性模型呢?监督学习中,如果预测的变量是离散的,我们称其为分类(如决策树,支持向量机等),如果预测的变量是连续的,我们称其为回归。回归分析中,如果只包括一个自变量和一个因变量,且二者的关系可用一条直线近似表示,这种回归分析称为一元线性回归分析。如果回归分析中包括两个或两个以上的自变量,且因变量和自变量之间是线性关系,则称为多元线性回归分析。对于二维空间线性是一条直线;对于三维空间线性是一个平面,对于多维空间线性是一个超平面。
|
||||
|
||||
|
||||
\begin{property}
|
||||
Properties of Cauchy Sequence
|
||||
\begin{enumerate}\parskip=0pt \itemsep=0pt
|
||||
\item $\{x_k\}$ is cauchy sequence then $\{x_k^i\}$ is cauchy sequence.
|
||||
\item $x_k\in \mathbb{R}^n$, $\rho(x,y)$ is Euclidean, then cauchy is equivalent to convergent, $(\mathbb{R}^n,\rho)$ metric space is complete.
|
||||
柯西列的性质
|
||||
\begin{enumerate}[noitemsep]
|
||||
\item $\{x_k\}$ 是柯西列,则其子列 $\{x_k^i\}$ 也是柯西列。
|
||||
\item $x_k\in \mathcal{R}^n$,$\rho(x,y)$ 是欧几里得空间,则柯西列是收敛的,$(\mathcal{R}^n,\rho)$ 空间是完备的。
|
||||
\end{enumerate}
|
||||
\end{property}
|
||||
|
||||
|
||||
\lipsum[7]
|
||||
|
||||
\begin{custom}{Application}
|
||||
This is one example of the custom environment, the key word is given by the option of custom environment.
|
||||
\end{custom}
|
||||
|
||||
|
||||
\lipsum[6]
|
||||
\begin{newdef}[Contraction mapping]
|
||||
$(S,\rho)$ is the metric space, $T: S\to S$, If there exists $\alpha\in(0,1)$ such that for any $x$ and $y\in S$, the distance
|
||||
\begin{equation}
|
||||
\rho(Tx,Ty)\leq \alpha\rho(x,y)
|
||||
\end{equation}
|
||||
Then $T$ is a {\color{main} contraction mapping}.
|
||||
\end{newdef}
|
||||
|
||||
\begin{remark}
|
||||
\begin{enumerate}
|
||||
\parskip=0pt \itemsep=0pt
|
||||
\item $T:S\to S$, where $S$ is a metric space, if for any $x,y\in S$, $\rho(Tx,Ty)<\rho(x,y)$ is not contraction mapping.
|
||||
\item Contraction mapping is continuous map.
|
||||
\end{enumerate}
|
||||
\end{remark}
|
||||
|
||||
|
||||
\begin{conclusion}
|
||||
看到一则小幽默,是这样说的:{\color{main} 别人都关心你飞的有多高,只有我关心你的翅膀好不好吃!}说多了都是泪啊!
|
||||
回归分析(regression analysis) 是确定两种或两种以上变量间相互依赖的定量关系的一种统计分析方法。运用十分广泛,回归分析按照涉及的变量的多少,分为一元回归和多元回归分析;按照因变量的多少,可分为简单回归分析和多重回归分析;按照自变量和因变量之间的关系类型,可分为线性回归分析和非线性回归分析。如果在回归分析中,只包括一个自变量和一个因变量,且二者的关系可用一条直线近似表示,这种回归分析称为一元线性回归分析。如果回归分析中包括两个或两个以上的自变量,且自变量之间存在线性相关,则称为多重线性回归分析。
|
||||
\end{conclusion}
|
||||
|
||||
|
||||
\bibliographystyle{ieeetr}
|
||||
|
||||
\nocite{EINAV2010,Havrylchyk2018}
|
||||
|
||||
\bibliographystyle{aer}
|
||||
\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}
|
||||
|
||||
BIN
image/happy.jpg
BIN
image/happy.jpg
Binary file not shown.
|
Before Width: | Height: | Size: 51 KiB |
BIN
image/mpg.png
Normal file
BIN
image/mpg.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 91 KiB |
@@ -1,18 +1,68 @@
|
||||
@misc{oetiker2010not,
|
||||
title={The Not So Short Introduction to {\LaTeXe}},
|
||||
author={Oetiker, Tobias and Partl, Hubert and Hyna, Irene and Schlegl, Elisabeth},
|
||||
year={2010}
|
||||
}
|
||||
|
||||
@misc{packagewriter,
|
||||
title={{\LaTeXe} for class and package writers},
|
||||
author={The {\LaTeX} 3 Project},
|
||||
year={1999},
|
||||
}
|
||||
@misc{complete,
|
||||
title={{\LaTeXe} 完全学习手册},
|
||||
author={胡大伟},
|
||||
year={2011},
|
||||
publisher={清华大学出版社}
|
||||
}
|
||||
|
||||
@article{Zeng2017,
|
||||
abstract = {{\textcopyright} 2017 Zeng et al. This is an open access article distributed under the terms of the Creative Commons Attribution License, which permits unrestricted use, distribution, and reproduction in any medium, provided the original author and source are credited. Peer-to-peer (P2P) lending, as a novel economic lending model, has triggered new challenges on making effective investment decisions. In a P2P lending platform, one lender can invest N loans and a loan may be accepted by M investors, thus forming a bipartite graph. Basing on the bipartite graph model, we built an iteration computation model to evaluate the unknown loans. To validate the proposed model, we perform extensive experiments on real-world data from the largest American P2P lending marketplace - Prosper. By comparing our experimental results with those obtained by Bayes and Logistic Regression, we show that our computation model can help borrowers select good loans and help lenders make good investment decisions. Experimental results also show that the Logistic classification model is a good complement to our iterative computation model, which motivates us to integrate the two classification models. The experimental results of the hybrid classification model demonstrate that the logistic classification model and our iteration computation model are complementary to each other. We conclude that the hybrid model (i.e., the integration of iterative computation model and Logistic classification model) is more efficient and stable than the individual model alone.},
|
||||
author = {Zeng, Xiangxiang and Liu, Li and Leung, Stephen and Du, Jiangze and Wang, Xun and Li, Tao},
|
||||
doi = {10.1371/journal.pone.0184242},
|
||||
file = {:D$\backslash$:/Nuts/Reference/A decision support model for investment on P2P lending platform - Zeng et al. - 2017.pdf:pdf;:D$\backslash$:/Nuts/Reference/A decision support model for investment on P2P lending platform - Zeng et al. - 2017(2).pdf:pdf},
|
||||
isbn = {1111111111},
|
||||
issn = {19326203},
|
||||
journal = {PLoS ONE},
|
||||
number = {9},
|
||||
pages = {1--18},
|
||||
title = {{A decision support model for investment on P2P lending platform}},
|
||||
volume = {12},
|
||||
year = {2017}
|
||||
}
|
||||
@article{EINAV2010,
|
||||
author = {Einav, Liran And Cullen, Amy Finkelstein Mark R.},
|
||||
file = {:D$\backslash$:/Nuts/Reference/Estimating Welfare in Insurance Markets Using Variation in Prices - EINAV, CULLEN - 2010.pdf:pdf},
|
||||
isbn = {1932-6203 (Electronic) 1932-6203 (Linking)},
|
||||
issn = {19326203},
|
||||
journal = {Quarterly Journal of Economics},
|
||||
number = {August},
|
||||
pages = {877--921},
|
||||
pmid = {24710357},
|
||||
title = {{Estimating Welfare in Insurance Markets Using Variation in Prices}},
|
||||
volume = {CXXV},
|
||||
year = {2010}
|
||||
}
|
||||
@article{Veiga2018,
|
||||
abstract = {Would consumer surplus increase if annuity rates were age-neutral? This paper characterizes the socially optimal contractibility of a given signal in markets with adverse selection. A signal (e.g., age) partitions consumers into subsets (e.g., young and old). A regulator restricts price-discrimination on the basis of the signal if the consumer subsets where the level of cost is higher are also the subsets where there is greater deadweight loss due to adverse selection. Such signals are empirically common. To illustrate the welfare benefit of price discrimination policy, I use a structural model to estimate its impact on the UK annuities market. The model is estimated using proprietary data that include the annuity seller's estimate of each individual's longevity. I find that restricting price discrimination can increase consumer surplus by the equivalent of about {\pounds}6.5 million per year.},
|
||||
author = {Veiga, Andr{\'{e}}},
|
||||
file = {:D$\backslash$:/Nuts/Reference/The Impact of Price Discrimination in Markets with Adverse Selection - Veiga - 2018.pdf:pdf},
|
||||
keywords = {Adverse Selection,D41,L52,Price Discrimination,Structural Estimation JEL Classification Codes: D8},
|
||||
title = {{The Impact of Price Discrimination in Markets with Adverse Selection}},
|
||||
year = {2018}
|
||||
}
|
||||
|
||||
@article{Chen2018,
|
||||
abstract = {We use data from a major peer-to-peer lending marketplace in China to study whether female and male investors evaluate loan performance differently. Controlling for variables of investor demographics, investor experience, and loan characteristics, we find that loans invested by female investors are more likely to default and have lower loan return in the future than loans invested by male investors. We define abnormal default or abnormal loan return as the part of the loan default or the part of loan return that is not explained by loan characteristics and find that the loans invested by female investors have higher abnormal default and lower abnormal loan return than the loans invested by male investors. Furthermore, female investors perform similarly to male investors in abnormal default or abnormal loan return when investors have high levels of education or income or when investors work in finance or information technology industries.},
|
||||
author = {Chen, Jia and Jiang, Jiajun and jane Liu, Yu},
|
||||
doi = {10.1016/j.jempfin.2018.06.004},
|
||||
file = {:D$\backslash$:/Nuts/Reference/Financial literacy and gender difference in loan performance - Chen, Jiang, Liu - 2018.pdf:pdf},
|
||||
issn = {09275398},
|
||||
journal = {Journal of Empirical Finance},
|
||||
keywords = {Financial Literacy, Gender Difference, Loan Default, Loan Return,Peer-to-peer Lending},
|
||||
number = {71673007},
|
||||
pages = {307--320},
|
||||
title = {{Financial Literacy and Gender Difference in Loan Performance}},
|
||||
volume = {48},
|
||||
year = {2018}
|
||||
}
|
||||
|
||||
@article{Havrylchyk2018,
|
||||
abstract = {The objective of our paper is to explore the role of P2P lending platforms through the prism of the theory of financial intermediation. P2P lending platforms perform the brokerage function of financial intermediaries by matching lenders' supply and borrowers' demand of funding, according to the risk and the maturity of their needs. Unlike banks, P2P lending platforms do not create money and do not perform risk and maturity transformation. However, they can organize secondary markets to trade loan contracts before maturity and some P2P lending platforms aim at providing a fixed income to lenders. To ensure efficient and sustainable financial intermediation, P2P lending platforms need to ensure that they are not subject to principal-agent problems and that their incentives coincide with those of lenders. The possibility of orderly resolution of P2P lending platforms failures might decrease moral hazard problems that are inherent in the modern financial intermediation.},
|
||||
author = {Havrylchyk, Olena and Verdier, Marianne},
|
||||
doi = {10.1057/s41294-017-0045-1},
|
||||
file = {:D$\backslash$:/Nuts/Reference/The Financial Intermediation Role of the P2P Lending Platforms - Havrylchyk, Verdier - 2018.pdf:pdf},
|
||||
issn = {14783320},
|
||||
journal = {Comparative Economic Studies},
|
||||
keywords = {Access to finance,Financial crisis,Information and communication technologies,Internet,Market structure,Online lenders,Peer-to-peer lending},
|
||||
number = {1},
|
||||
pages = {115--130},
|
||||
publisher = {Palgrave Macmillan UK},
|
||||
title = {{The Financial Intermediation Role of the P2P Lending Platforms}},
|
||||
url = {https://doi.org/10.1057/s41294-017-0045-1},
|
||||
volume = {60},
|
||||
year = {2018}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user