summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2019-03-31 21:54:30 +0000
committerKarl Berry <karl@freefriends.org>2019-03-31 21:54:30 +0000
commit8d2801c06bd6d66f91986a8b863b2ed5d38ee5ae (patch)
tree00562d66b58f4d833bd348cf130fd2ccc9fc54d2
parentf2add53fe8c64aa5edcff6eb672dea4831c66691 (diff)
elegantpaper (31mar19)
git-svn-id: svn://tug.org/texlive/trunk@50679 c570f23f-e606-0410-a88d-b1316a301751
-rw-r--r--Master/texmf-dist/doc/latex/elegantpaper/elegantpaper-cn.pdfbin253024 -> 136252 bytes
-rw-r--r--Master/texmf-dist/doc/latex/elegantpaper/elegantpaper-cn.tex177
-rw-r--r--Master/texmf-dist/doc/latex/elegantpaper/elegantpaper-en.pdfbin277409 -> 233782 bytes
-rw-r--r--Master/texmf-dist/doc/latex/elegantpaper/elegantpaper-en.tex81
-rw-r--r--Master/texmf-dist/doc/latex/elegantpaper/wpref.bib120
-rw-r--r--Master/texmf-dist/tex/latex/elegantpaper/elegantpaper.cls134
6 files changed, 232 insertions, 280 deletions
diff --git a/Master/texmf-dist/doc/latex/elegantpaper/elegantpaper-cn.pdf b/Master/texmf-dist/doc/latex/elegantpaper/elegantpaper-cn.pdf
index 29c04fbb2d1..700c8751317 100644
--- a/Master/texmf-dist/doc/latex/elegantpaper/elegantpaper-cn.pdf
+++ b/Master/texmf-dist/doc/latex/elegantpaper/elegantpaper-cn.pdf
Binary files differ
diff --git a/Master/texmf-dist/doc/latex/elegantpaper/elegantpaper-cn.tex b/Master/texmf-dist/doc/latex/elegantpaper/elegantpaper-cn.tex
index ee0685fd390..858d31f2a25 100644
--- a/Master/texmf-dist/doc/latex/elegantpaper/elegantpaper-cn.tex
+++ b/Master/texmf-dist/doc/latex/elegantpaper/elegantpaper-cn.tex
@@ -1,14 +1,22 @@
%!TEX program = xelatex
-\documentclass[lang=cn]{elegantpaper}
+% 完整编译方法 1 pdflatex -> bibtex -> pdflatex -> pdflatex
+% 完整编译方法 2: xelatex -> bibtex -> xelatex -> xelatex
+\documentclass[lang=cn,11pt]{elegantpaper}
\title{ElegantPaper: 一个优美的 \LaTeX{} 工作论文模板}
-\author{\href{https://ddswhu.me/}{邓 东 升}\thanks{感谢 Peiyi Yao 的帮助与建议。}}
+\author{\href{https://ddswhu.me/}{邓 东 升}}
\institute{\href{https://elegantlatex.org/}{Elegant\LaTeX{} 项目组}}
-\version{0.06}
+
+% 不需要版本信息,直接注释即可
+\version{0.07}
+% 不需要时间信息的话,需要把 \today 删除。
\date{\today}
+% 如果想修改参考文献样式,请把这行注释掉
+\usepackage[authoryear]{gbt7714} % 国标
+
\begin{document}
\maketitle
@@ -18,55 +26,25 @@
\keywords{Elegant\LaTeX{},工作论文,模板}
\end{abstract}
+
\section{模板介绍}
-此模板是基于 \LaTeX{} 的标准文档类设计,也即意味着你可以在在文类选项使用文档(article)类型的选项,比如 \lstinline{a4paper, 12pt} 等等。本模板支持 \lstinline{PDFLaTeX} 和 \lstinline{XeLaTeX} 两种编译方式。
+此模板是基于 \LaTeX{} 的标准文类 article设计,也即意味着你可以把 article 文类的选项传递给本模板,比如 \lstinline{a4paper, 10pt} 等等(推荐使用 \lstinline{11pt})。本模板支持 \lstinline{PDFLaTeX} 和 \lstinline{XeLaTeX}\footnote{中文字体均使用 \lstinline{ctex} 包设置。} 两种编译方式。
+
+数学字体的效果如下:
+
+\begin{equation}
+(a+3b)^{n} = \sum_{k=0}^{n} C_{n}^{k} a^{n-k} (3b)^k\label{eq:binom}
+\end{equation}
\subsection{全局选项}
我在这个模板中定义了一个语言选项 \lstinline{lang},可以选择英文模式 \lstinline{lang=en}(默认)或者中文模式 \lstinline{lang=cn}。当选择中文模式时,图表的标题引导词以及参考文献,定理引导词等信息会变成中文。你可以通过下面两种方式来选择语言模式:
-\begin{lstlisting}
-\documentclass[lang=cn]{elegantpaper}
-\documentclass{cn}{elegantpaper} % 两者皆可
-\end{lstlisting}
-
-\subsection{字体设置}
-\subsubsection[选择 PDFLaTeX 编译]{选择 \lstinline{PDFLaTeX} 编译}
-如果你使用 \lstinline{PDFLaTeX} 编译,默认的 Computer Modern 字体被换成了 \lstinline{newtx} 系列字体,默认的字体字号是 11 pt。关于字体设置的宏包主要用到了:
-\begin{itemize}
- \item \lstinline{newtxtext} 用于文档正文字体,类似于 Times New Roman 字体。
- \item \lstinline{newtxmath} 用于数学字体,搭配 \lstinline{newtx} 非常合适,类似于过时的 \lstinline{times} 宏包的效果。
- \item \lstinline{FiraMono} 用于打字机字体,并使用了 \lstinline{scale=0.7} 选项。
- \item \lstinline{ctex} 用于中文字体设置,并使用了 \lstinline{scheme=plain} 选项。
-\end{itemize}
-
-\subsubsection[选择 XeLaTeX 编译]{选择 \lstinline{XeLaTeX} 编译}
-如果你选择 \lstinline{XeLaTeX} 编译的话,那么设置字体的宏包为 \lstinline{fontspec} 和 \lstinline{xeCJK}。由于模板中使用的字体是 Windows 中的字体,所以如果你使用其他操作系统,比如 Linux 或者 Mac OS,那么你需要把所用字体替换为你系统中的字体。设置字体的命令:
\begin{lstlisting}
-\RequirePackage{fontenc}
-\RequirePackage[no-math]{fontspec}
-\setmainfont{Times New Roman}[NFSSFamily=ntxtlf]
-\setsansfont{Arial}
-%\setmonofont[Scale=0.7]{Courier New}
-\RequirePackage{xeCJK}
-\RequirePackage{xunicode}
-\setCJKmainfont[BoldFont={SimHei},ItalicFont={KaiTi}]{SimSun}
-\setCJKsansfont[BoldFont={SimHei},ItalicFont={KaiTi}]{KaiTi}
-\setCJKmonofont[BoldFont={SimHei},ItalicFont={KaiTi},Scale=0.7]{Microsoft YaHei}
-\XeTeXlinebreaklocale "zh"
-\XeTeXlinebreakskip = 0pt plus 1pt minus 0.1pt
-\RequirePackage{newtxmath}
+\documentclass[lang=cn]{elegantpaper} % or
+\documentclass{cn}{elegantpaper}
\end{lstlisting}
-\subsubsection{其他设置}
-
-这几个包由于都是一个系列的,字体搭配起来非常合适,字体宽度非常契合!唯独数学字体中的大型运算符,比如求和符号和积分符号不是很好看,为此,我把它们又改回了原先的字体效果。公式~(\ref{eq:binom}) 展示了最终的数学字体的效果。
-\begin{equation}
-(a+3b)^{n} = \sum_{k=0}^{n} C_{n}^{k} a^{n-k} (3b)^k \label{eq:binom}
-\end{equation}
-
-我把行距设定为 1.3,并且使用了 \lstinline{microtype} 宏包调整字体的间距,为了去除字体字号,字形警告信息,我使用了 \lstinline{type1cm} 宏包。
-
\subsection{自定义命令}
在此模板中,并没有修改任何默认的命令或者环境,所以,你可以在此模板使用原来的命令和环境。另外,我自定义了 3 个命令:
@@ -82,22 +60,20 @@
\subsection{列表环境}
你可以使用列表环境(\lstinline{itemize}、\lstinline{enumerate}、\lstinline{description}),示例如下:\\[2ex]
-\begin{minipage}[c]{0.51\linewidth}
+\begin{minipage}[c]{0.59\linewidth}
\begin{lstlisting}
\begin{itemize}
- \item 春花秋月何时了, 往事知多少?
- \item 小楼昨夜又东风, 故国不堪回首月明中。
- \item 雕栏玉砌应犹在, 只是朱颜改。
- \item 问君能有几多愁?恰似一江春水向东流。
+ \item Routing and resource discovery;
+ \item Resilient and scalable networks;
+ \item Distributed storage and search.
\end{itemize}
\end{lstlisting}
\end{minipage}
-\begin{minipage}[c]{0.48\linewidth}
+\begin{minipage}[c]{0.4\linewidth}
\begin{itemize}
- \item 春花秋月何时了, 往事知多少?
- \item 小楼昨夜又东风, 故国不堪回首月明中。
- \item 雕栏玉砌应犹在, 只是朱颜改。
- \item 问君能有几多愁?恰似一江春水向东流。
+ \item Routing and resource discovery;
+ \item Resilient and scalable networks;
+ \item Distributed storage and search.
\end{itemize}
\end{minipage}
@@ -107,23 +83,20 @@
\subsection{插图}
插图的命令和以前一样,也是使用 \lstinline{figure} 环境。\figref{fig:scatter} 显示了插图的效果。你可以把你的图放到当前工作目录的如下子目录下 (\lstinline{./image/}, \lstinline{./img/}, \lstinline{./figure/}, \lstinline{./fig/})。
+
\begin{lstlisting}
-% 如果要使抄录环境显示中文,必须用 XeLaTeX,而不能用 PDFLaTeX
-% 这是由于 lstlisting 和 ctex 的问题
\begin{figure}[htbp]
\centering
\includegraphics[width=0.6\textwidth]{scatter.pdf}
- \caption{散点图示例\label{fig:scatter}}
+ \caption{Scatter Plot Example \label{fig:scatter}}
\end{figure}
\end{lstlisting}
-
\begin{figure}[htbp]
\centering
\includegraphics[width=0.6\textwidth]{scatter.pdf}
- \caption{散点图示例\label{fig:scatter}}
+ \caption{Scatter Plot Example \label{fig:scatter}}
\end{figure}
-
\subsection{表格}
我强烈建议你使用 \lstinline{booktabs} 宏包,这个宏包有三个命令 \lstinline{\toprule}、\lstinline{\midrule} 和 \lstinline{\bottomrule} 能方便你制作三线表。\tabref{tab:reg} 是一个示例:
@@ -131,70 +104,81 @@
\begin{table}[htbp]
\small
\centering
- \caption{燃油效率与汽车价格}
+ \caption{Auto MPG and Price \label{tab:reg}}
\begin{tabular}{lcc}
\toprule
& (1) & (2) \\
\midrule
- 燃油效率 & -238.90*** & -49.51 \\
+ mpg & -238.90*** & -49.51 \\
& (53.08) & (86.16) \\
- 汽车重量 & & 1.75*** \\
- & & (0.641) \\
- 常数项 & 11,253*** & 1,946 \\
- & (1,171) & (3,597) \\
- 观测数 & 74 & 74 \\
- $R^2$ & 0.220 & 0.293 \\
+ weight & & 1.75*** \\
+ & & (0.641) \\
+ constant & 11,253*** & 1,946 \\
+ & (1,171) & (3,597) \\
+ obs & 74 & 74 \\
+ $R^2$ & 0.220 & 0.293 \\
\bottomrule
- \multicolumn{3}{l}{\scriptsize 括号内为标准误} \\
+ \multicolumn{3}{l}{\scriptsize Standard errors in parentheses} \\
\multicolumn{3}{l}{\scriptsize *** p<0.01, ** p<0.05, * p<0.1} \\
\end{tabular}%
- \label{tab:reg}%
\end{table}%
\end{lstlisting}
-
\begin{table}[htbp]
\small
\centering
- \caption{燃油效率与汽车价格}
+ \caption{Auto MPG and Price \label{tab:reg}}
\begin{tabular}{lcc}
\toprule
& (1) & (2) \\
\midrule
- 燃油效率 & -238.90*** & -49.51 \\
+ mpg & -238.90*** & -49.51 \\
& (53.08) & (86.16) \\
- 汽车重量 & & 1.75*** \\
- & & (0.641) \\
- 常数项 & 11,253*** & 1,946 \\
- & (1,171) & (3,597) \\
- 观测数 & 74 & 74 \\
- $R^2$ & 0.220 & 0.293 \\
+ weight & & 1.75*** \\
+ & & (0.641) \\
+ constant & 11,253*** & 1,946 \\
+ & (1,171) & (3,597) \\
+ obs & 74 & 74 \\
+ $R^2$ & 0.220 & 0.293 \\
\bottomrule
- \multicolumn{3}{l}{\scriptsize 括号内为标准误} \\
+ \multicolumn{3}{l}{\scriptsize Standard errors in parentheses} \\
\multicolumn{3}{l}{\scriptsize *** p<0.01, ** p<0.05, * p<0.1} \\
\end{tabular}%
- \label{tab:reg}%
\end{table}%
+
\subsection{参考文献}
-此模板使用了 Bib\TeX{} 来生成参考文献,默认使用的文献样式(bib style)是 \lstinline{aer}。参考文献示例:~\cite{Chen2018} 使用了中国一个大型的 P2P 平台(人人贷)的数据来检验男性投资者和女性投资者在投资表现上是否有显著差异。
+此模板使用了 Bib\TeX{} 来生成参考文献,默认使用的文献样式(bib style)是 \lstinline{GB/T 7714-2015}\footnote{通过调用 \href{https://ctan.org/pkg/gbt7714}{\lstinline{gbt7714}} 宏包}。参考文献示例:~\cite{en3} 使用了中国一个大型的 P2P 平台(人人贷)的数据来检验男性投资者和女性投资者在投资表现上是否有显著差异。
-你可以在谷歌学术,Mendeley,Endnote 中获得文献条目(bib item),然后把它们添加到 \lstinline{wpref.bib} 中。在文中引用的时候,引用它们的键值(bib key)即可。注意需要在编译的过程中添加 Bib\TeX{} 编译。如果你想在参考文献中添加未引用的文献,可以使用
+你可以在谷歌学术,Mendeley,Endnote 中获得文献条目(bib item),然后把它们添加到 \lstinline{wpref.bib} 中。在文中引用的时候,引用它们的键值(bib key)即可。注意需要在编译的过程中添加 Bib\TeX{} 编译。如果你想在参考文献中添加未引用的文献(部分或者全部),可以使用
\begin{lstlisting}
-\nocite{EINAV2010, Havrylchyk2018}
+\nocite{EINAV2010, Havrylchyk2018} % add the two reference.
+\nocite{*} % add all the reference in the bib file.
+\end{lstlisting}
+
+如果你想修改参考文献的样式(比如改为 \lstinline{aer}),你可以在导言区将下面代码注释掉。
+\begin{lstlisting}
+\usepackage[authoryear]{gbt7714}
+\end{lstlisting}
+
+并且文档末尾添加
+
+\begin{lstlisting}
+\bibliographystyle{aer}
\end{lstlisting}
\section{示例}
在这部分,我提供一个示例文档:
+
\begin{lstlisting}
\documentclass[lang=cn]{elegantpaper}
-% 标题信息
-\title{工作论文示例展示}
+% title information
+\title{A Working Paper Example}
\author{ddswhu}
-\institute{Elegant\LaTeX{} 项目组}
+\institute{Elegant\LaTeX{} Group}
\version{1.00}
\date{\today}
@@ -203,24 +187,27 @@
\maketitle
\begin{abstract}
-在这里写摘要。
-\keywords{关键词1,关键词2}
+Your abstract goes here.
+\keywords{keyword1, keyword2}
\end{abstract}
-\section{引言}
-这一部分是引言的内容。
+\section{Introduction}
+The content of introduction section.
-\section{结论}
-这是结论部分。
+\section{Conclusion}
+The content of conclusion section.
-% 在参考文献部分显示未引用的文献
+% include the noncited reference
\nocite{ref1, ref2}
-% 生成参考文献
+\bibliographystyle{aer}
\bibliography{wpref}
\end{document}
\end{lstlisting}
-\nocite{EINAV2010,Havrylchyk2018}
+\nocite{*}
+
+% 如果想修改参考文献样式(非国标),请把下行取消注释,并换成合适的样式(比如 unsrt,plain 样式)。
+%\bibliographystyle{aer}
\bibliography{wpref}
\end{document}
diff --git a/Master/texmf-dist/doc/latex/elegantpaper/elegantpaper-en.pdf b/Master/texmf-dist/doc/latex/elegantpaper/elegantpaper-en.pdf
index c4de27177b7..2d7a161d9ae 100644
--- a/Master/texmf-dist/doc/latex/elegantpaper/elegantpaper-en.pdf
+++ b/Master/texmf-dist/doc/latex/elegantpaper/elegantpaper-en.pdf
Binary files differ
diff --git a/Master/texmf-dist/doc/latex/elegantpaper/elegantpaper-en.tex b/Master/texmf-dist/doc/latex/elegantpaper/elegantpaper-en.tex
index 3903ccc32d5..8f21f148981 100644
--- a/Master/texmf-dist/doc/latex/elegantpaper/elegantpaper-en.tex
+++ b/Master/texmf-dist/doc/latex/elegantpaper/elegantpaper-en.tex
@@ -1,10 +1,11 @@
%!TEX program = pdflatex
-\documentclass[en]{elegantpaper}
+% Full chain: pdflatex -> bibtex -> pdflatex -> pdflatex
+\documentclass[11pt]{elegantpaper}
\title{ElegantPaper: An Elegant \LaTeX{} Template for Working Papers}
-\author{\href{https://ddswhu.me/}{Dongsheng Deng}\thanks{Thanks Peiyi Yao for good suggestions.}}
+\author{\href{https://ddswhu.me/}{Dongsheng Deng}}
\institute{\href{https://github.com/ElegantLaTeX}{Elegant\LaTeX{} Program}}
-\version{0.06}
+\version{0.07}
\date{\today}
@@ -20,7 +21,12 @@
\section{Introduction}
-This template is based on the standard \LaTeX{} article class, which means you can pass the arguments of article class to it (\lstinline{a4paper}, \lstinline{12pt} and etc.). It supports different engines, You can choose either \lstinline{PDFLaTeX} or \lstinline{XeLaTeX}.
+This template is based on the standard \LaTeX{} article class, which means you can pass the arguments of article class to it (\lstinline{a4paper}, \lstinline{10pt} and etc.)( \lstinline{11pt} is recommended). It supports different engines, You can choose either \lstinline{PDFLaTeX} or \lstinline{XeLaTeX}\footnote{with \lstinline{ctex} package for Chinese fonts settings.}.
+
+The effect of math fonts is as follow:
+\begin{equation}
+(a+3b)^{n} = \sum_{k=0}^{n} C_{n}^{k} a^{n-k} (3b)^k \label{eq:binom}
+\end{equation}
\subsection{Global Options}
I defined one option named \lstinline{lang}, this option has two alternative values, \lstinline{lang=en} (default) or \lstinline{lang=cn}. \lstinline{lang=cn} will make the caption of figure/table, abstract name, refname etc. Chinese, while \lstinline{lang=en} will keep all these stuff English, as the default article class sets. You can use this option as
@@ -30,45 +36,6 @@ I defined one option named \lstinline{lang}, this option has two alternative val
\documentclass{en}{elegantpaper} % both ok
\end{lstlisting}
-\subsection{Font Settings}
-\subsubsection[Compile with PDFLaTeX]{Compile with \lstinline{PDFLaTeX}}
-If you choose \lstinline{PDFLaTeX} to process your paper, the default article font computer modern has changed to \lstinline{newtx} series, and the default font size is set to \lstinline{11pt}. The fonts are settings with:
-\begin{itemize}
- \item \lstinline{newtxtext} package for text fonts, similar to times new roman font.
- \item \lstinline{newtxmath} package for math fonts, close to \lstinline{times} package.
- \item \lstinline{FiraMono} package for typewriter fonts, with option \lstinline{scale=0.7}.
- \item \lstinline{ctex} package for Chinese fonts, with option \lstinline{scheme=plain}.
-\end{itemize}
-
-\subsubsection[Compile with XeLaTeX]{Compile with \lstinline{XeLaTeX}}
-If you choose \lstinline{XeLaTeX} to process your paper, I use \lstinline{fontspec} package and \lstinline{xeCJK} package. I used fonts available in Windows, if you are using Linux or Mac OS, please substitute these fonts with that of your system. The font setting part
-
-\begin{lstlisting}
-\RequirePackage{fontenc}
-\RequirePackage[no-math]{fontspec}
-\setmainfont{Times New Roman}[NFSSFamily=ntxtlf]
-\setsansfont{Arial}
-%\setmonofont[Scale=0.7]{Courier New}
-\RequirePackage{xeCJK}
-\RequirePackage{xunicode}
-\setCJKmainfont[BoldFont={SimHei},ItalicFont={KaiTi}]{SimSun}
-\setCJKsansfont[BoldFont={SimHei},ItalicFont={KaiTi}]{KaiTi}
-\setCJKmonofont[BoldFont={SimHei},ItalicFont={KaiTi},Scale=0.7]{Microsoft YaHei}
-\XeTeXlinebreaklocale "zh"
-\XeTeXlinebreakskip = 0pt plus 1pt minus 0.1pt
-\RequirePackage{newtxmath}
-\end{lstlisting}
-
-\subsubsection{Other Settings}
-These packages operate perfectly but are inappropriate for big operators, for example \lstinline{\sum} and \lstinline{\prod}, thus, I change these operators back to computer modern font. Equation~\eqref{eq:binom} shows the effects of these fonts:
-\begin{equation}
-(a+3b)^{n} = \sum_{k=0}^{n} C_{n}^{k} a^{n-k} (3b)^k \label{eq:binom}
-\end{equation}
-
-
-
-The \lstinline{\linespread} (controls line spacing) is set to 1.3, and I use \lstinline{microtype} to improve the font justification. \lstinline{type1cm} package is used to remove the font shape and font size warning messages.
-
\subsection{Custom Commands}
I don't change any default command or environment, which means you can use all the basic \LaTeX{} commands and environments as before. Besides, I define 3 commands
@@ -81,7 +48,7 @@ I don't change any default command or environment, which means you can use all t
\subsection{List Environments}
You can use \lstinline{itemize}, \lstinline{enumerate}, or \lstinline{description} environment as below\\
-\begin{minipage}[c]{0.50\linewidth}
+\begin{minipage}[c]{0.51\linewidth}
\begin{lstlisting}
\begin{itemize}
\item Routing and resource discovery;
@@ -92,9 +59,9 @@ You can use \lstinline{itemize}, \lstinline{enumerate}, or \lstinline{descriptio
\end{minipage}
\begin{minipage}[c]{0.48\linewidth}
\begin{itemize}
- \item Routing and resource discovery;
- \item Resilient and scalable computer networks;
- \item Distributed storage and search.
+ \item Routing and resource discovery;
+ \item Resilient and scalable networks;
+ \item Distributed storage and search.
\end{itemize}
\end{minipage}
@@ -165,12 +132,19 @@ To include a graphic, you can use figure environment as usual. \figref{fig:scatt
\end{figure}
\subsection{Bibliography}
-This template uses Bib\TeX{} to generate the bibliography, the default bibliography style is \lstinline{aer}. Let's take a glance at the citation effect, ~\cite{Chen2018} use data from a major peer-to-peer lending marketplace in China to study whether female and male investors evaluate loan performance differently.
+This template uses Bib\TeX{} to generate the bibliography, the default bibliography style is \lstinline{unsrt}. Let's take a glance at the citation effect, ~\cite{en3} use data from a major peer-to-peer lending marketplace in China to study whether female and male investors evaluate loan performance differently.
-If you want to use Bib\TeX{}, you must create a file named \lstinline{wpref.bib}, and add bib items (from Google Scholar, Mendeley, EndNote, and etc.) to \lstinline{wpref.bib} file, and cite the bibkey in the \lstinline{tex} file. The Bib\TeX{} will automatically generate the bibliography for you for the reference you cited. If you want to add some noncited reference to the bibliography, you can use
+If you want to use Bib\TeX{}, you must create a file named \lstinline{wpref.bib}, and add bib items (from Google Scholar, Mendeley, EndNote, and etc.) to \lstinline{wpref.bib} file, and cite the bibkey in the \lstinline{tex} file. The Bib\TeX{} will automatically generate the bibliography for you for the reference you cited. If you want to add some noncited references or all of them to the bibliography, you can use
\begin{lstlisting}
-\nocite{EINAV2010, Havrylchyk2018}
+\nocite{EINAV2010, Havrylchyk2018} % add two noncited references
+\nocite{*} % list all the references of the bib file.
+\end{lstlisting}
+
+If you want to change the bibliography style, you can replace \lstinline{aer} for the prefered style, for example, the \lstinline{unsrt} style.
+
+\begin{lstlisting}
+\bibliographystyle{unsrt}
\end{lstlisting}
\section{A Minimal Example}
@@ -203,11 +177,16 @@ The content of conclusion section.
% include the noncited reference
\nocite{ref1, ref2}
+\bibliographystyle{aer}
\bibliography{wpref}
\end{document}
\end{lstlisting}
-\nocite{EINAV2010, Havrylchyk2018}
+\nocite{en1,en2}
+
+% If you want change the bibliography style, replace aer with the prefered one.
+\bibliographystyle{aer}
+
\bibliography{wpref}
\end{document}
diff --git a/Master/texmf-dist/doc/latex/elegantpaper/wpref.bib b/Master/texmf-dist/doc/latex/elegantpaper/wpref.bib
index c61d0df6e1b..fd2c1192609 100644
--- a/Master/texmf-dist/doc/latex/elegantpaper/wpref.bib
+++ b/Master/texmf-dist/doc/latex/elegantpaper/wpref.bib
@@ -1,68 +1,68 @@
-@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{en3,
+ title={{The Mechanism and Effectiveness of Credit Scoring of P2P Lending Platform: Evidence from Renrendai.com}},
+ author={Li, Qiang and Chen, Liwen and Zeng, Yong},
+ journal={China Finance Review International},
+ volume={8},
+ number={3},
+ pages={256--274},
+ year={2018},
+ publisher={Emerald Publishing Limited}
+}
+
+
+@article{en2,
+ author = {Carlstrom, Charles T and Fuerst, Timothy S},
+ title = {{Agency Costs, Net Worth, and Business Fluctuations: A Computable General Equilibrium Analysis}},
+ journal = {The American Economic Review},
+ pages = {893-910},
+ ISSN = {0002-8282},
+ year = {1997},
+ type = {Journal Article}
}
-@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{en1,
+ author = {Quadrini, Vincenzo},
+ title = {{Financial Frictions in Macroeconomic Fluctuations}},
+ journal = {FRB Richmond Economic Quarterly},
+ volume = {97},
+ number = {3},
+ pages = {209-254},
+ year = {2011},
+ type = {Journal Article}
}
-@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{cn1,
+ author = {方军雄},
+ title = {{所有制、制度环境与信贷资金配置}},
+ journal = {经济研究},
+ number = {12},
+ pages = {82-92},
+ ISSN = {0577-9154},
+ year = {2007},
+ type = {Journal Article}
}
-@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{cn2,
+ author = {刘凤良 and 章潇萌 and 于泽},
+ title = {{高投资、结构失衡与价格指数二元分化}},
+ journal = {金融研究},
+ number = {02},
+ pages = {54-69},
+ ISSN = {1002-7246},
+ year = {2017},
+ type = {Journal Article}
}
-@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}
+@article{cn3,
+ author = {吕捷 and 王高望},
+ title = {{CPI 与 PPI “背离”的结构性解释}},
+ journal = {经济研究},
+ volume = {50},
+ number = {04},
+ pages = {136-149},
+ ISSN = {0577-9154},
+ year = {2015},
+ type = {Journal Article}
}
diff --git a/Master/texmf-dist/tex/latex/elegantpaper/elegantpaper.cls b/Master/texmf-dist/tex/latex/elegantpaper/elegantpaper.cls
index 4ab2e959a70..ec8b4921b66 100644
--- a/Master/texmf-dist/tex/latex/elegantpaper/elegantpaper.cls
+++ b/Master/texmf-dist/tex/latex/elegantpaper/elegantpaper.cls
@@ -1,20 +1,19 @@
-% Current Version: 0.06
+% Current Version: 0.07
% Author: Dongsheng Deng
% Homepage: https://ddswhu.me/
% Email: elegantlatex2e@gmail.com
% Lastest Version: https://github.com/ElegantLaTeX/ElegantPaper
-\NeedsTeXFormat{LaTeX2e}
-\ProvidesClass{elegantpaper}[2019/02/25 v0.06 ElegantLaTeX Paper class]
-
-\LoadClass[11pt]{article}
+% --- Class structure: identification part
+\ProvidesClass{elegantpaper}[2019/04/01 v0.07 ElegantLaTeX Paper class]
+\NeedsTeXFormat{LaTeX2e}
+
\RequirePackage{kvoptions}
\RequirePackage{ifthen}
\RequirePackage{ifxetex}
\RequirePackage{etoolbox}
\RequirePackage{calc}
-\AtEndOfClass{\RequirePackage{microtype}}
\SetupKeyvalOptions{family=ELEGANT, prefix=ELEGANT@, setkeys=\kvsetkeys}
\newcommand{\ekv}[1]{\kvsetkeys{ELEGANT}{#1}}
@@ -23,25 +22,19 @@
\DeclareVoidOption{cn}{\ekv{lang = cn}}
\DeclareVoidOption{en}{\ekv{lang = en}}
+% \PassOptionsToClass{11pt}{article}
\DeclareOption*{\PassOptionsToClass{\CurrentOption}{article}}
-%\ExecuteOptions{12pt}
+\ProcessOptions\relax
\ProcessKeyvalOptions*\relax
-\ProcessOptions*
+\LoadClass{article}
+
-% font setting for text and math
\RequirePackage{amsthm}
\RequirePackage{amsmath,amssymb}
-%\RequirePackage{newtxtext}
-%\RequirePackage{newtxmath}
-%
-\RequirePackage{type1cm}
-\RequirePackage{indentfirst}
-
-% more pretty font
-\linespread{1.3}
+\linespread{1.35}
% indentation, table and figure package
@@ -51,7 +44,6 @@
\RequirePackage{xcolor}
\RequirePackage{graphicx}
\RequirePackage{fancyvrb}
-\RequirePackage{type1cm}
\RequirePackage{abstract}
\graphicspath{{image/}{figure/}{fig/}{img/}}
@@ -62,7 +54,7 @@
\captionsetup[figure]{skip=3pt}
% list/itemize/enumerate setting
-\RequirePackage[shortlabels]{enumitem}
+\RequirePackage[shortlabels,inline]{enumitem}
\setlist{nolistsep}
% define the hyperref color
@@ -90,43 +82,15 @@
% add the \email cmd
\newcommand\email[1]{\href{mailto:#1}{\nolinkurl{#1}}}
+\PassOptionsToPackage{no-math}{fontspec}
+\RequirePackage[UTF8, scheme=plain]{ctex}
+\RequirePackage[T1]{fontenc}
+\RequirePackage{newtxtext}
+\RequirePackage{newtxmath}
-% fontsetting
-\RequirePackage{ifxetex}
-\ifxetex
- \RequirePackage{fontenc}
- \RequirePackage[no-math]{fontspec}
- \setmainfont{Times New Roman}[NFSSFamily=ntxtlf]
- \setsansfont{Arial}
- %\setmonofont[Scale=0.7]{Courier New}
- \RequirePackage{xeCJK}
- \RequirePackage{xunicode}
- \setCJKmainfont[BoldFont={SimHei},ItalicFont={KaiTi}]{SimSun}
- \setCJKsansfont[BoldFont={SimHei},ItalicFont={KaiTi}]{KaiTi}
- \setCJKmonofont[BoldFont={SimHei},ItalicFont={KaiTi},Scale=0.7]{Microsoft YaHei}
- \XeTeXlinebreaklocale "zh"
- \XeTeXlinebreakskip = 0pt plus 1pt minus 0.1pt
- \RequirePackage{newtxmath}
- %\DeclareSymbolFont{operators}{OT1}{ntxtlf}{m}{n}
- %\SetSymbolFont{operators}{bold}{OT1}{ntxtlf}{b}{n}
- \setCJKfamilyfont{zhsong}{SimSun}
- \setCJKfamilyfont{zhhei}{SimHei}
- \setCJKfamilyfont{zhkai}{KaiTi}
- \setCJKfamilyfont{zhfs}{FangSong}
- \newcommand*{\songti}{\CJKfamily{zhsong}}
- \newcommand*{\heiti}{\CJKfamily{zhhei}}
- \newcommand*{\kaishu}{\CJKfamily{zhkai}}
- \newcommand*{\fangsong}{\CJKfamily{zhfs}}
-\else
- \RequirePackage{fontenc}
- \RequirePackage{newtxtext}
- \RequirePackage{newtxmath}
- \RequirePackage[UTF8, scheme=plain]{ctex}
-\fi
-\RequirePackage[scale=0.7]{FiraMono}
\ifdefstring{\ELEGANT@lang}{cn}{
- \theoremstyle{plain}% default
+ \theoremstyle{plain}% default
\newtheorem{theorem}{定理}[section] %
\newtheorem{lemma}[theorem]{引理} %
\newtheorem{proposition}[theorem]{性质} %
@@ -144,11 +108,11 @@
\renewcommand\refname{参考文献} %
\renewcommand\figurename{图} %
\renewcommand\tablename{表}%
- \newcommand\versiontext{版本:}%
- \newcommand\updatetext{更新:}%
+ \newcommand\versiontext{\itshape 版本:}%
+ \newcommand\updatetext{\itshape 更新:}%
\renewcommand\abstractname{摘\hspace{2em}要}
\setlength{\parindent}{2em}
- \renewcommand{\abstracttextfont}{\kaishu\sffamily\small}
+ \renewcommand{\abstracttextfont}{\small\sffamily\kaishu}
\newcommand{\keywords}[1]{\vskip2ex\par\noindent\normalfont{\bfseries 关键词: } #1}
\newcommand\figref[1]{{\bfseries 图~\ref{#1}}}
\newcommand\tabref[1]{{\bfseries 表~\ref{#1}}}
@@ -168,9 +132,9 @@
\newtheorem*{note}{Note} %
\newtheorem{case}{Case} %
\renewcommand*{\proofname}{\normalfont\bfseries Proof}%
- \newcommand\versiontext{Version: }%
- \newcommand\updatetext{Update: }%
- \renewcommand{\abstracttextfont}{\sffamily\small}
+ \newcommand\versiontext{\itshape Version: }%
+ \newcommand\updatetext{\itshape Update: }%
+ \renewcommand{\abstracttextfont}{\sffamily\small\kaishu}
\newcommand{\keywords}[1]{\vskip2ex\par\noindent\normalfont{\bfseries Keywords: } #1}
\newcommand\figref[1]{{\bfseries Figure~\ref{#1}}}
\newcommand\tabref[1]{{\bfseries Table~\ref{#1}}}
@@ -237,12 +201,12 @@
\vskip 1.5em%
\IfEmpty\version
\else
-{\small\itshape \versiontext \the\version}
+{\small \normalfont\kaishu \versiontext \itshape\the\version}
\fi
\ifx\@date\empty
\else
\vskip 0.1em%
- {\small\itshape \updatetext \@date}%
+ {\small\normalfont\kaishu \updatetext \itshape \@date}%
\fi
\end{center}%
\par
@@ -250,26 +214,48 @@
-\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
+
+\DeclareSymbolFont{CMletters} {OML}{cmm} {m}{it}%
+\DeclareSymbolFont{CMsymbols} {OMS}{cmsy}{m}{n}%
+\DeclareSymbolFont{CMlargesymbols}{OMX}{cmex}{m}{n}%
+
+% \let\sum\relax
+% \DeclareMathSymbol{\sum}{\mathop}{CMlargesymbols}{"50}%
+% \let\int\relax
+% \DeclareMathSymbol{\int}{\mathop}{CMlargesymbols}{"5A}%
+
+\let\intop\relax\let\sumop\relax\let\ointop\relax\let\prodop\relax
+\DeclareMathSymbol{\sumop}{\mathop}{CMlargesymbols}{"50}
+\DeclareMathSymbol{\intop}{\mathop}{CMlargesymbols}{"52}
+\DeclareMathSymbol{\ointop}{\mathop}{CMlargesymbols}{"49}
+\DeclareMathSymbol{\prodop}{\mathop}{CMlargesymbols}{"59}
+
+% \let\partial\relax
+% \DeclareMathSymbol{\partial}{\mathord}{CMletters}{"40}%
+% \let\in\relax
+%\DeclareMathSymbol{\in}{\mathrel}{CMsymbols}{"32}%
+% \let\pi\relax
+% \DeclareMathSymbol{\pi}{\mathord}{CMletters}{"19}
+
\RequirePackage{listings}
+\renewcommand{\ttdefault}{cmtt}
+\lstdefinestyle{mystyle}{
+ basicstyle=%
+ \ttfamily
+ \lst@ifdisplaystyle\footnotesize\fi
+}
+
+\lstset{basicstyle=\scriptsize\ttfamily,style=mystyle}
+
\definecolor{lightgrey}{rgb}{0.9,0.9,0.9}
\definecolor{frenchplum}{RGB}{190,20,83}
\lstset{language=[LaTeX]TeX,
- texcsstyle=*\bf\color{winered}\ttfamily,
- basicstyle=\ttfamily,
+ texcsstyle=*\color{winered},
numbers=none,
breaklines=true,
- keywordstyle=\bf\color{winered}\ttfamily,
+ keywordstyle=\color{winered},
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},
emphstyle={\color{frenchplum}},
@@ -279,6 +265,6 @@
backgroundcolor=\color{lightgrey}
}
-\bibliographystyle{aer}
+