texlive[54702] Master/texmf-dist: elegantpaper (12apr20)

commits+karl at tug.org commits+karl at tug.org
Sun Apr 12 23:31:37 CEST 2020


Revision: 54702
          http://tug.org/svn/texlive?view=revision&revision=54702
Author:   karl
Date:     2020-04-12 23:31:37 +0200 (Sun, 12 Apr 2020)
Log Message:
-----------
elegantpaper (12apr20)

Modified Paths:
--------------
    trunk/Master/texmf-dist/doc/latex/elegantpaper/elegantpaper-cn.pdf
    trunk/Master/texmf-dist/doc/latex/elegantpaper/elegantpaper-cn.tex
    trunk/Master/texmf-dist/doc/latex/elegantpaper/elegantpaper-en.pdf
    trunk/Master/texmf-dist/doc/latex/elegantpaper/elegantpaper-en.tex
    trunk/Master/texmf-dist/doc/latex/elegantpaper/image/star.png
    trunk/Master/texmf-dist/tex/latex/elegantpaper/elegantpaper.cls

Added Paths:
-----------
    trunk/Master/texmf-dist/doc/latex/elegantpaper/image/founder.png

Modified: trunk/Master/texmf-dist/doc/latex/elegantpaper/elegantpaper-cn.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/doc/latex/elegantpaper/elegantpaper-cn.tex
===================================================================
--- trunk/Master/texmf-dist/doc/latex/elegantpaper/elegantpaper-cn.tex	2020-04-12 21:31:25 UTC (rev 54701)
+++ trunk/Master/texmf-dist/doc/latex/elegantpaper/elegantpaper-cn.tex	2020-04-12 21:31:37 UTC (rev 54702)
@@ -1,20 +1,25 @@
 %!TEX program = xelatex
 % 完整编译: xelatex -> bibtex -> xelatex -> xelatex
-\documentclass[lang=cn,11pt,a4paper]{elegantpaper}
+\documentclass[lang=cn,11pt,a4paper,cite=authoryear]{elegantpaper}
 
 \title{ElegantPaper: 一个优美的 \LaTeX{} 工作论文模板}
 \author{Ethan DENG \\ Fudan University \and Dongsheng DENG \\ PA Technology}
 \institute{\href{https://elegantlatex.org/}{Elegant\LaTeX{} 项目组}}
 
-\version{0.08}
+\version{0.09}
 \date{\zhtoday}
 
+
+% 本文档命令
+\usepackage{array}
+\newcommand{\ccr}[1]{\makecell{{\color{#1}\rule{1cm}{1cm}}}}
+
 \begin{document}
 
 \maketitle
 
 \begin{abstract}
-本文为 \href{https://github.com/ElegantLaTeX/ElegantPaper/}{ElegantPaper} 的说明文档。此模板基于 \LaTeX{} 的 article 类,专为工作论文写作而设计。设计这个模板的初衷是让作者不用关心工作论文的格式,专心写作,从而有更加舒心的写作体验。如果你有其他问题、建议或者报告 bug,可以在 \href{https://github.com/ElegantLaTeX/ElegantPaper/issues}{Github::ElegantPaper/issues} 留言。如果你想了解更多 Elegant\LaTeX{} 项目组设计的模板,请访问 \href{https://github.com/ElegantLaTeX/}{Github::ElegantLaTeX}。
+本文为 \href{https://github.com/ElegantLaTeX/ElegantPaper/}{ElegantPaper} 的说明文档。此模板基于 \LaTeX{} 的 article 类,专为工作论文写作而设计。设计这个模板的初衷是让作者不用关心工作论文的格式,专心写作,从而有更加舒心的写作体验。如果你有其他问题、建议或者报告 bug,可以在 \href{https://github.com/ElegantLaTeX/ElegantPaper/issues}{GitHub::ElegantPaper/issues} 留言。如果你想了解更多 Elegant\LaTeX{} 项目组设计的模板,请访问 \href{https://github.com/ElegantLaTeX/}{GitHub::ElegantLaTeX}。
 \keywords{Elegant\LaTeX{},工作论文,模板}
 \end{abstract}
 
@@ -45,13 +50,50 @@
 \usepackage[UTF8,scheme=plain]{ctex}
 \end{lstlisting}
 
-\subsection{英文与数学字体}
+\subsection{数学字体选项}
 
-本模板使用 \lstinline{newtxtext} 和 \lstinline{newtxmath} 分别设置全文的英文文本字体和数学字体。数学字体的效果如下:
-\begin{equation}
-(a+3b)^{n} = \sum_{k=0}^{n} C_{n}^{k} a^{n-k} (3b)^k\label{eq:binom}
-\end{equation}
+本模板定义了一个数学字体选项(\lstinline{math}),可选项有三个:
+\begin{enumerate}
+  \item \lstinline{math=cm}(默认),使用 \LaTeX{} 默认数学字体(推荐,无需声明);
+  \item \lstinline{math=newtx},使用 \lstinline{newtxmath} 设置数学字体(潜在问题比较多)。
+  \item \lstinline{math=mtpro2},使用 \lstinline{mtpro2} 宏包设置数学字体,要求用户已经成功安装此宏包。
+\end{enumerate}
 
+\subsection{中文字体选项}
+模板提供中文字体选项 \lstinline{chinesefont},可选项有
+\begin{enumerate}
+\item \lstinline{ctexfont}:默认选项,使用 \lstinline{ctex} 宏包根据系统自行选择字体,可能存在字体缺失的问题,更多内容参考 \lstinline{ctex} 宏包\href{https://ctan.org/pkg/ctex}{官方文档}\footnote{可以使用命令提示符,输入 \lstinline{texdoc ctex} 调出本地 \lstinline{ctex} 宏包文档}。
+\item \lstinline{founder}:方正字体选项,调用 \lstinline{ctex} 宏包并且使用 \lstinline{fontset=none} 选项,然后设置字体为方正四款免费字体,方正字体下载注意事项见后文。
+\item \lstinline{nofont}:调用 \lstinline{ctex} 宏包并且使用 \lstinline{fontset=none} 选项,不设定中文字体,用户可以自行设置中文字体,具体见后文。
+\end{enumerate}
+
+\noindent \textbf{注意:} 使用 \lstinline{founder} 选项或者 \lstinline{nofont} 时,必须使用 \hologo{XeLaTeX} 进行编译。
+
+\subsubsection{方正字体选项}
+由于使用 \lstinline{ctex} 宏包默认调用系统已有的字体,部分系统字体缺失严重,因此,用户希望能够使用其它字体,我们推荐使用方正字体。方正的{\songti 方正书宋}、{\heiti 方正黑体}、{\kaishu 方正楷体}、{\fangsong 方正仿宋}四款字体均可免费试用,且可用于商业用途。用户可以自行从\href{http://www.foundertype.com/}{方正字体官网}下载此四款字体,在下载的时候请\textbf{务必}注意选择 GBK 字符集,也可以使用 \href{https://www.latexstudio.net/}{\LaTeX{} 工作室}提供的\href{https://pan.baidu.com/s/1BgbQM7LoinY7m8yeP25Y7Q}{方正字体,提取码为:njy9} 进行安装。安装时,{\kaishu Win 10 用户请右键选择为全部用户安装,否则会找不到字体。}
+
+\begin{figure}[!htb]
+\centering
+\includegraphics[width=0.9\textwidth]{founder.png}
+\end{figure}
+
+\subsubsection{其他中文字体}
+如果你想完全自定义字体\footnote{这里仍然以方正字体为例。},你可以选择 \lstinline{chinesefont=nofont},然后在导言区设置
+\begin{lstlisting}
+\setCJKmainfont[BoldFont={FZHei-B01},ItalicFont={FZKai-Z03}]{FZShuSong-Z01}
+\setCJKsansfont[BoldFont={FZHei-B01},ItalicFont={FZHei-B01}]{FZHei-B01}
+\setCJKmonofont[BoldFont={FZHei-B01},ItalicFont={FZHei-B01}]{FZFangSong-Z02}
+\setCJKfamilyfont{zhsong}{FZShuSong-Z01}
+\setCJKfamilyfont{zhhei}{FZHei-B01}
+\setCJKfamilyfont{zhkai}{FZKai-Z03}
+\setCJKfamilyfont{zhfs}{FZFangSong-Z02}
+\newcommand*{\songti}{\CJKfamily{zhsong}}
+\newcommand*{\heiti}{\CJKfamily{zhhei}}
+\newcommand*{\kaishu}{\CJKfamily{zhkai}}
+\newcommand*{\fangsong}{\CJKfamily{zhfs}}
+\end{lstlisting}
+
+
 \subsection{自定义命令}
 此模板并没有修改任何默认的 \LaTeX{} 命令或者环境\footnote{目的是保证代码的可复用性,请用户关注内容,不要太在意格式,这才是本工作论文模板的意义。}。另外,我自定义了 4 个命令:
 \begin{enumerate}
@@ -82,7 +124,7 @@
 目前 ElegantLaTeX 共有 4 名协作人员,分别是
 \begin{itemize}
   \item 官方文档翻译: \href{https://github.com/peggy2006xzyz}{YPY};
-  \item Github 维基维护: \href{https://github.com/izinngo}{Ingo Zinngo}、\href{https://github.com/xiaohao890809}{追寻原风景};
+  \item GitHub 维基维护: \href{https://github.com/izinngo}{Ingo Zinngo}、\href{https://github.com/xiaohao890809}{追寻原风景};
   \item QQ 群管理员: \href{https://github.com/sikouhjw}{Sikouhjw}.
 \end{itemize}
 
@@ -90,9 +132,7 @@
 
 
 \section{致谢}
-截止到 2019 年 10 月 17 日,ElegantPaper v0.08 版本发布,ElegantPaper 模板在 Github 上的收藏数(star)达到了 164。在此特别感谢 China\TeX{} 以及 \href{http://www.latexstudio.net/}{\LaTeX{} 工作室}对于本系列模板的大力宣传与推广。
-
-如果你喜欢我们的模板,你可以在 Github 上收藏(Star)我们的模板。
+截止到 2020 年 04 月 12 日,ElegantPaper v0.09 版本发布,ElegantPaper 模板在 GitHub 上的收藏数(star)达到了 277。在此特别感谢 China\TeX{} 以及 \href{http://www.latexstudio.net/}{\LaTeX{} 工作室}对于本系列模板的大力宣传与推广。如果你喜欢我们的模板,你可以在 GitHub 上收藏(Star)我们的模板。
 \begin{figure}[htbp]
   \centering
   \includegraphics[width=\textwidth]{star.png}
@@ -109,26 +149,45 @@
 
 \textbf{赞赏费用的使用解释权归 Elegant\LaTeX{} 所有,并且不接受监督,请自愿理性打赏}。10 元以上的赞赏,我们将列入捐赠榜,谢谢各位金主!
 
-\begin{table}[!htbp]
+
+\begin{table}[!htb]
   \centering
   \caption{Elegant\LaTeX{} 系列模板捐赠榜}
-  \begin{tabular}{crcc}
-    \toprule
-    捐赠者   & 金额 & 时间 & 渠道 \\
-    \midrule
-    Lerh  & 10 元  & 2019/05/15 & 微信 \\
-    越过地平线 & 10 元    & 2019/05/15 & 微信 \\
-    大熊 &  20 元 & 2019/05/27 & 微信 \\
-    * 空 & 10 元 & 2019/05/30 & 微信\\
-    \href{http://www.latexstudio.net/}{latexstudio.net} & 666 元 & 2019/06/05 & 支付宝\\
-    Cassis & 11 元 & 2019/06/30 & 微信\\
-    * 君 & 10 元 & 2019/07/23 & 微信\\
-    * 萌 & 19 元 & 2019/08/28 & 微信 \\
-    曲豆豆 & 10 元 & 2019/08/28 & 微信 \\
-    李博 & 100 元 & 2019/10/06 & 微信\\
-    Njustsll & 10 元 & 2019/10/11 & 微信 \\
-  \bottomrule
-  \end{tabular}%
+    \begin{tabular}{*{4}{>{\scriptsize}c}|*{4}{>{\scriptsize}c}}
+    \hline
+    \textbf{捐赠者} & \textbf{金额} & \textbf{时间} & \textbf{渠道} & \textbf{捐赠者} & \textbf{金额} & \textbf{时间} & \textbf{渠道} \\
+    \hline
+    Lerh  & 10 RMB & 2019/05/15 & 微信    & 越过地平线 & 10 RMB & 2019/05/15 & 微信 \\
+    银桑    & 20 RMB & 2019/05/27 & 微信    & *空    & 10 RMB & 2019/05/30 & 微信 \\
+    latexstudio.net & 666 RMB & 2019/06/05 & 支付宝   & A*n   & 40 RMB & 2019/06/15 & 微信 \\
+    * 夏   & 22 RMB & 2019/06/15 & 微信    & * 倩   & 21 RMB  & 2019/06/15 & 微信 \\
+    Cassis & 11 RMB & 2019/06/30 & 微信    & *君    & 10 RMB & 2019/07/23 & 微信 \\
+    P*u   & 50 RMB & 2019/07/30 & 微信    & *萌    & 19 RMB & 2019/08/28 & 微信 \\
+    曲豆豆   & 10 RMB & 2019/08/28 & 微信    & 李博    & 100 RMB & 2019/10/06 & 微信 \\
+    Njustsll & 10 RMB & 2019/10/11 & 微信    & 刘志阔   & 99.99 RMB & 2019/10/15 & 支付宝 \\
+    * 韬   & 16 RMB & 2019/10/17 & 微信    & 赤霓    & 12 RMB & 2019/10/17 & 支付宝 \\
+    追寻原风景 & 10 RMB & 2019/10/28 & 微信    & 郭德良   & 88 RMB & 2019/11/03 & 微信 \\
+    自强不息  & 20 RMB & 2019/11/04 & 支付宝   & 读书之虫  & 20 RMB & 2019/11/18 & 微信 \\
+    *等    & 10 RMB & 2019/11/18 & 微信    & *哲    & 20 RMB & 2019/11/18 & 微信 \\
+    佚名    & 10 RMB & 2019/11/24 & 微信    & Jiye Qian & 66 RMB & 2019/12/04 & 微信 \\
+    * 阳   & 20 RMB & 2019/12/05 & 微信    & Catcher & 11 RMB & 2019/12/08 & 支付宝 \\
+    希尔波特门徒 & 10 RMB & 2019/12/09 & 支付宝   & * 伟   & 10 RMB & 2019/12/09 & 微信 \\
+    Simon & 20 RMB & 2019/12/11 & 支付宝   & 流殇丶浅忆 & 66.60 RMB & 2019/12/18 & 支付宝 \\
+    羽     & 10 RMB & 2019/12/20 & 支付宝   & * 琛   & 15 RMB & 2019/12/20 & 微信 \\
+    随风    & 20 RMB & 2019/12/27 & 支付宝   & Ws    & 23.30 RMB & 2019/12/28 & 微信 \\
+    初八    & 100 RMB  & 2020/01/02 & 支付宝   & p*e   & 20 RMB & 2020/01/03 & 微信 \\
+    Shunmx & 100 RMB & 2020/01/03 & 微信    & hj    & 10 RMB & 2020/01/03 & 微信 \\
+    F*5   & 10 RMB & 2020/01/03 & 微信    & S*m   & 20.20 RMB & 2020/01/03 & 微信 \\
+    二代青雉  & 13 RMB & 2020/01/14 & 支付宝   & *?    & 66 RMB & 2020/01/15 & 微信 \\
+    Mr. Xiong & 20 RMB & 2020/01/17 & 微信    & *博    & 15 RMB & 2020/01/18 & 微信 \\
+    * 者  & 10 RMB & 2020/02/02 & 微信    & Jackie  &  88.80 RMB  &  2020/02/09 & 微信 \\
+    Henry\_Sun、 & 50 RMB & 2020/02/14 & 支付宝 & * 桥  & 50 RMB & 2020/02/21 & 微信 \\
+    昀琏 & 10 RMB & 2020/03/02 & 支付宝 & S*y  &  10 RMB  &  2020/03/15 & 微信 \\
+    * 哥  & 66.66 RMB & 2020/03/17 & 微信    &   K*e & 30 RMB & 2020/03/30 & 微信\\
+    * 阳  &  20 RMB  &  2020/04/02 & 微信 & 士*n  & 30 RMB & 2020/04/11 & 微信 \\
+    \hline
+    \end{tabular}%
+  \label{tab:donation}%
 \end{table}%
 
 \section{常见问题 FAQ}
@@ -145,7 +204,7 @@
 \author{author 1\\ org. 1 \and author 2 \\ org. 2 }
 \end{lstlisting}
   \item \textit{如何添加中英文摘要?}\\
-      请参考 \href{https://github.com/ElegantLaTeX/ElegantPaper/issues/5}{Github::ElegantPaper/issues/5}
+      请参考 \href{https://github.com/ElegantLaTeX/ElegantPaper/issues/5}{GitHub::ElegantPaper/issues/5}
 \end{enumerate}
 
 \section{示例}
@@ -157,39 +216,55 @@
   \item \href{https://github.com/EthanDeng/risk-awareness}{互联网金融风险与投资者风险意识 —— 来自网贷平台交易数据的证据}。
 \end{enumerate}
 
-这是一个最小示例文档(Minimal Example):
-\begin{lstlisting}
-\documentclass[lang=cn,a4paper,11pt]{elegantpaper}
 
-% title information
-\title{Working Paper Example}
-\author{Author Name} 
-\institute{Elegant\LaTeX{} Group}
+\nocite{*}
+\bibliography{wpref}
 
-\version{1.00}
-\date{\today}
+\appendix
+%\appendixpage
+\addappheadtotoc
+\section{使用 newtx 系列字体}
 
-\begin{document}
+如果需要使用原先版本的 \lstinline{newtx} 系列字体,可以通过显示声明数学字体:
 
-\maketitle
+\begin{lstlisting}
+\documentclass[math=newtx]{elegantbook}
+\end{lstlisting}
 
-\begin{abstract}
-Your abstract goes here.
-\keywords{keyword1, keyword2}
-\end{abstract}
+\subsection{连字符}
 
-\section{Introduction}
-The content of introduction section.
+如果使用 \lstinline{newtx} 系列字体宏包,需要注意下连字符的问题。
+\begin{equation}
+  \int_{R^q} f(x,y) dy.\emph{of\kern0pt f}
+\end{equation}
+的代码为
+\begin{lstlisting}
+\begin{equation}
+  \int_{R^q} f(x,y) dy.\emph{of \kern0pt f}
+\end{equation}
+\end{lstlisting}
 
-\section{Conclusion}
-The content of conclusion section.
+\subsection{宏包冲突}
 
-\bibliography{wpref}
+另外在 ElegantBook 模板中,有用户反馈模板在使用 \lstinline{yhmath} 以及 \lstinline{esvect} 等宏包时会报错:
+\begin{lstlisting}
+LaTeX Error:
+   Too many symbol fonts declared.
+\end{lstlisting}
 
-\end{document}
+原因是在使用 \lstinline{newtxmath} 宏包时,重新定义了数学字体用于大型操作符,达到了 {\heiti 最多 16 个数学字体} 的上限,在调用其他宏包的时候,无法新增数学字体。为了减少调用非常用宏包,在此给出如何调用 \lstinline{yhmath} 以及 \lstinline{esvect} 宏包的方法。
+
+请在 \lstinline{elegantpaper.cls} 内搜索 \lstinline{yhmath} 或者 \lstinline{esvect},将你所需要的宏包加载语句\textit{取消注释}即可。
+\begin{lstlisting}
+%%% use yhmath pkg, uncomment following code
+% \let\oldwidering\widering
+% \let\widering\undefined
+% \RequirePackage{yhmath}
+% \let\widering\oldwidering
+
+%%% use esvect pkg, uncomment following code
+% \RequirePackage{esvect}
 \end{lstlisting}
 
-\nocite{*}
-\bibliography{wpref}
 
 \end{document}

Modified: trunk/Master/texmf-dist/doc/latex/elegantpaper/elegantpaper-en.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/doc/latex/elegantpaper/elegantpaper-en.tex
===================================================================
--- trunk/Master/texmf-dist/doc/latex/elegantpaper/elegantpaper-en.tex	2020-04-12 21:31:25 UTC (rev 54701)
+++ trunk/Master/texmf-dist/doc/latex/elegantpaper/elegantpaper-en.tex	2020-04-12 21:31:37 UTC (rev 54702)
@@ -1,14 +1,17 @@
 %!TEX program = pdflatex
 % Full chain: pdflatex -> bibtex -> pdflatex -> pdflatex
-\documentclass[11pt,en,authoryear]{elegantpaper}
+\documentclass[11pt,en,cite=authoryear]{elegantpaper}
 
 \title{ElegantPaper: An Elegant \LaTeX{} Template for Working Papers}
 \author{Ethan DENG \\ Fudan University \and Dongsheng DENG \\ PA Technology}
 \institute{\href{https://github.com/ElegantLaTeX}{Elegant\LaTeX{} Program}}
 
-\version{0.08}
+\version{0.09}
 \date{\today}
 
+% cmd for this doc
+\usepackage{array}
+\newcommand{\ccr}[1]{\makecell{{\color{#1}\rule{1cm}{1cm}}}}
 
 \begin{document}
 
@@ -15,7 +18,7 @@
 \maketitle
 
 \begin{abstract}
-This documentation illustrates the usage of the \href{https://github.com/ElegantLaTeX/ElegantPaper}{ElegantPaper} template. This template is based on the standard \LaTeX{} article class, which is designed for working paper writing. With this template, you can get rid of all the worries about the format and merely focus on writing. For any question, please leave a message on \href{https://github.com/ElegantLaTeX/ElegantPaper/issues}{Github::ElegantPaper/issues}. Want to know more about Elegant\LaTeX{} Templates? Please visit: \href{https://github.com/ElegantLaTeX}{https://github.com/ElegantLaTeX}.\par
+This documentation illustrates the usage of the \href{https://github.com/ElegantLaTeX/ElegantPaper}{ElegantPaper} template. This template is based on the standard \LaTeX{} article class, which is designed for working paper writing. With this template, you can get rid of all the worries about the format and merely focus on writing. For any question, please leave a message on \href{https://github.com/ElegantLaTeX/ElegantPaper/issues}{GitHub::ElegantPaper/issues}. Want to know more about Elegant\LaTeX{} Templates? Please visit: \href{https://github.com/ElegantLaTeX}{https://github.com/ElegantLaTeX}.\par
 \keywords{Elegant\LaTeX{}, Working Paper, Template}
 \end{abstract}
 
@@ -40,24 +43,29 @@
 \usepackage[UTF8,scheme=plain]{ctex}
 \end{lstlisting}
 
-\subsection{Fonts}
-This template sets \lstinline{newtxtext} and \lstinline{newtxmath} for English and math fonts respectively.
-\begin{equation}
-(a+3b)^{n} = \sum_{k=0}^{n} C_{n}^{k} a^{n-k} (3b)^k\label{eq:binom}
-\end{equation}
+\subsection{Math Fonts}
 
+This template defines a new option (\lstinline{math}), with three options:
+
+\begin{enumerate}
+  \item \lstinline{math=cm} (default), use \LaTeX{} default math font (recommended).
+  \item \lstinline{math=newtx}, use \lstinline{newtxmath} math font (may bring about bugs).
+  \item \lstinline{math=mtpro2}, use \lstinline{mtpro2} package to set math font.
+\end{enumerate}
+
+
 \subsection{Custom Commands}
 Default \LaTeX{} commands and environments are all the same in this template\footnote{To ensure the codes are replicatable. We recommend users pay more attention to the contents other than formats. This is the meaning of the existence of the template.}. We created four new commands:
 \begin{enumerate}
-	\item \lstinline{\email}: create the hyperlink to email address.
-	\item \lstinline{\figref}: same usage as \lstinline{\ref}, but start with label text <\textbf{Figure n}>.
-	\item \lstinline{\tabref}: same usage as \lstinline{\ref}, but start with label text <\textbf{Table n}>.
-	\item \lstinline{\keywords}: create the keywords in the abstract section.
+  \item \lstinline{\email}: create the hyperlink to email address.
+  \item \lstinline{\figref}: same usage as \lstinline{\ref}, but start with label text <\textbf{Figure n}>.
+  \item \lstinline{\tabref}: same usage as \lstinline{\ref}, but start with label text <\textbf{Table n}>.
+  \item \lstinline{\keywords}: create the keywords in the abstract section.
 \end{enumerate}
 
 
 \subsection{Bibliography}
-This template used \hologo{BibTeX} to generate the bibliography, the default bibliography style is  \lstinline{aer} under the option \lstinline{lang=en}. Citation example: ~\cite{en3} used data from a major peer-to-peer lending marketplace in China to study whether female and male investors evaluate loan performance differently. 
+This template used \hologo{BibTeX} to generate the bibliography, the default bibliography style is  \lstinline{aer} under the option \lstinline{lang=en}. Citation example: ~\citep{en1,en2,en3} used 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 \hologo{BibTeX}, 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. Note that \hologo{BibTeX} has to be added.
 
@@ -84,10 +92,7 @@
 Thank them all!!!
 
 \section{Acknowledgement}
-The number of stars on Github for ElegantPaper reached 164 on Oct 17, 2019 at the release of ElegantPaper v0.08.
-Thank China\TeX{} and \href{http://www.latexstudio.net/}{\LaTeX{} studio} for their promotion. 
-
-If you like our templates, star on Github.
+The number of stars on GitHub for ElegantPaper reached 277 on April 12, 2020 at the release of ElegantPaper v0.09. Thank China\TeX{} and \href{http://www.latexstudio.net/}{\LaTeX{} studio} for their promotion. If you like our templates, you can star it on GitHub.
 \begin{figure}[!ht]
 	\centering
 	\includegraphics[width=\textwidth]{star.png}
@@ -103,27 +108,46 @@
 
 \textbf{The explanation right of the tip usage belongs to Elegant\LaTeX{} with no supervision. Feel free to tip us.} Those who donate more than 10 RMB will be recorded in the donation list. Thank all the tippers!
 
-\begin{table}[htbp]
+
+\begin{table}[!htb]
 	\centering
 	\caption{Donation List}
-	\begin{tabular}{cccc}
-		\toprule
-		Tipper   & Amount & Date & Channel \\
-		\midrule
-		Lerh  & 10 RMB  & 2019/05/15 & Wechat \\
-		Yueguodipingxian & 10 RMB   & 2019/05/15 & Wechat \\
-		Dapeng & 20 RMB & 2019/05/27 & Wechat\\
-		Anonymous & 10 RMB & 2019/05/30 & Wechat \\
-		\href{http://www.latexstudio.net/}{latexstudio.net} & 666 RMB & 2019/06/05 & Alipay \\
-		Cassis & 11 RMB & 2019/06/30 & Wechat \\
-		Some Jun & 10 RMB & 2019/07/23 & Wechat \\
-		Some Meng & 19 RMB & 2019/08/28 & Wechat \\
-		Qu DouDou & 10 RMB & 2019/08/28 & Wechat \\
-		Li Bo & 100 RMB & 2019/10/06 & Wechat\\
-		Njustsll & 10 RMB & 2019/10/11 & Wechat \\
-		\bottomrule
+	\begin{tabular}{*{4}{>{\scriptsize}c}|*{4}{>{\scriptsize}c}}
+	  \toprule
+	  \textbf{Tipper} & \textbf{Amount} & \textbf{Date} & \textbf{Channel} & \textbf{Tipper} & \textbf{Amount} & \textbf{Date} & \textbf{Channel} \\
+	  \midrule
+	  Lerh  & 10 RMB & 2019/05/15 & Wechat    & yueguodipingxian & 10 RMB & 2019/05/15 & Wechat \\
+	  yinsang    & 20 RMB & 2019/05/27 & Wechat    & *kong    & 10 RMB & 2019/05/30 & Wechat \\
+	  latexstudio.net & 666 RMB & 2019/06/05 & Alipay   & A*n   & 40 RMB & 2019/06/15 & Wechat \\
+	  * xia   & 22 RMB & 2019/06/15 & Wechat    & * qian  & 21 RMB  & 2019/06/15 & Wechat \\
+	  Cassis & 11 RMB & 2019/06/30 & Wechat    & * jun    & 10 RMB & 2019/07/23 & Wechat \\
+	  P*u   & 50 RMB & 2019/07/30 & Wechat    & * meng    & 19 RMB & 2019/08/28 & Wechat \\
+	  Qu Doudou   & 10 RMB & 2019/08/28 & Wechat    & Li Bo    & 100 RMB & 2019/10/06 & Wechat \\
+	  Njustsll & 10 RMB & 2019/10/11 & Wechat    & Liu Zhikuo   & 99.99 RMB & 2019/10/15 & Alipay \\
+	  * tao   & 16 RMB & 2019/10/17 & Wechat    & Chini    & 12 RMB & 2019/10/17 & Alipay \\
+	  yuanfengjing & 10 RMB & 2019/10/28 & Wechat    & Guo Deliang   & 88 RMB & 2019/11/03 & Wechat \\
+	  ziqiangbuxi  & 20 RMB & 2019/11/04 & Alipay   & dushuzhichong  & 20 RMB & 2019/11/18 & Wechat \\
+	  * deng    & 10 RMB & 2019/11/18 & Wechat    & * zhe   & 20 RMB & 2019/11/18 & Wechat \\
+	  anonymous    & 10 RMB & 2019/11/24 & Wechat    & Jiye Qian & 66 RMB & 2019/12/04 & Wechat \\
+	  * yang   & 20 RMB & 2019/12/05 & Wechat    & Catcher & 11 RMB & 2019/12/08 & Alipay \\
+	  xierbotementu & 10 RMB & 2019/12/09 & Alipay   & * wei   & 10 RMB & 2019/12/09 & Wechat \\
+	  Simon & 20 RMB & 2019/12/11 & Alipay   & liushangqianyi & 66.60 RMB & 2019/12/18 & Alipay \\
+	  yu     & 10 RMB & 2019/12/20 & Alipay   & *chen   & 15 RMB & 2019/12/20 & Wechat \\
+	  suifeng   & 20 RMB & 2019/12/27 & Alipay   & Ws    & 23.30 RMB & 2019/12/28 & Wechat \\
+	  chuba    & 100 RMB  & 2020/01/02 & Alipay   & p*e   & 20 RMB & 2020/01/03 & Wechat \\
+	  Shunmx & 100 RMB & 2020/01/03 & Wechat    & hj    & 10 RMB & 2020/01/03 & Wechat \\
+	  F*5   & 10 RMB & 2020/01/03 & Wechat    & S*m   & 20.20 RMB & 2020/01/03 & Wechat \\
+	  erdaiqingzhi  & 13 RMB & 2020/01/14 & Alipay   & *?    & 66 RMB & 2020/01/15 & Wechat \\
+	  Mr. Xiong & 20 RMB & 2020/01/17 & Wechat    & *bo    & 15 RMB & 2020/01/18 & Wechat \\
+	  *Zhe    & 10 RMB & 2020/02/02 & Wechat    &  Jackie &  88.80 RMB  &  2020/02/09 & Wechat \\
+	  Henry\_Sun & 50 RMB & 2020/02/14 & Alipay & * Qiao  & 50 RMB & 2020/02/21 & Wechat \\
+	  YunLian & 10 RMB & 2020/03/02 & Alipay & S*y  &  10 RMB  &  2020/03/15 & Wechat \\
+	  * Ge  & 66.66 RMB & 2020/03/17 & Wechat    &   K*e & 30 RMB & 2020/03/30 & Wechat\\
+	  * Yang  &  20 RMB  &  2020/04/02 & Wechat & Shi*n  & 30 RMB & 2020/04/11 & Wechat \\
+	  \bottomrule
 	\end{tabular}%
-\end{table}%
+	\label{tab:donation}%
+  \end{table}%
 
 \section{FAQ}
 
@@ -138,43 +162,58 @@
 	\author{author 1\\ org. 1 \and author 2 \\ org. 2 }
 	\end{lstlisting}
 	\item \textit{How to display bilingual abstracts?}\\
-	Please refer to \href{https://github.com/ElegantLaTeX/ElegantPaper/issues/5}{Github::ElegantPaper/issues/5}
+	Please refer to \href{https://github.com/ElegantLaTeX/ElegantPaper/issues/5}{GitHub::ElegantPaper/issues/5}
 \end{enumerate}
 
-\section{Minimal Example}
-A minimal example is as follows:
-\begin{lstlisting}
-\documentclass[a4paper,11pt]{elegantpaper}
 
-% title information
-\title{Working Paper Example}
-\author{Author Name} 
-\institute{Elegant\LaTeX{} Group}
+\nocite{en1,en2}
 
-\version{1.00}
-\date{\today}
+\bibliography{wpref}
 
-\begin{document}
+\appendix
+%\appendixpage
+\addappheadtotoc
 
-\maketitle
 
-\begin{abstract}
-Your abstract goes here.
-\keywords{keyword1, keyword2}
-\end{abstract}
+\section{Use newtx fonts}
+If you use \lstinline{newtx} fonts, type in:
 
-\section{Introduction}
-The content of introduction section.
+\begin{lstlisting}
+\documentclass[math=newtx]{elegantbook}
+\end{lstlisting}
 
-\section{Conclusion}
-The content of conclusion section.
 
-\bibliography{wpref}
+\subsection{Hyphens}
+Since the template uses \lstinline{newtx}, please pay attention to the hyphens. For instance,
+\begin{equation}
+\int_{R^q} f(x,y) dy.\emph{of\kern0pt f}
+\end{equation}
 
-\end{document}
+The corresponding code is: 
+\begin{lstlisting}
+\begin{equation}
+\int_{R^q} f(x,y) dy.\emph{of \kern0pt f}
+\end{equation}
 \end{lstlisting}
 
-\nocite{en1,en2}
-\bibliography{wpref}
+\subsection{Symbol Fonts}
+Feedback from ElegantBook users claims that error occurs when using our templates with  \lstinline{yhmath}, \lstinline{esvect} and other packages.
+\begin{lstlisting}
+LaTeX Error:
+Too many symbol fonts declared.
+\end{lstlisting}
 
+The reason is that the template redefines font for math so that no new math font is allowed to be added. To use \lstinline{yhmath} and/or \lstinline{esvect}, please locate \lstinline{yhmath} or \lstinline{esvect} in \lstinline{elegantpaper.cls}, uncomment corresponding related code.
+
+\begin{lstlisting}
+%%% use yhmath pkg, uncomment following code
+% \let\oldwidering\widering
+% \let\widering\undefined
+% \RequirePackage{yhmath}
+% \let\widering\oldwidering
+
+%%% use esvect pkg, uncomment following code
+% \RequirePackage{esvect}
+\end{lstlisting}
+
 \end{document}

Added: trunk/Master/texmf-dist/doc/latex/elegantpaper/image/founder.png
===================================================================
(Binary files differ)

Index: trunk/Master/texmf-dist/doc/latex/elegantpaper/image/founder.png
===================================================================
--- trunk/Master/texmf-dist/doc/latex/elegantpaper/image/founder.png	2020-04-12 21:31:25 UTC (rev 54701)
+++ trunk/Master/texmf-dist/doc/latex/elegantpaper/image/founder.png	2020-04-12 21:31:37 UTC (rev 54702)

Property changes on: trunk/Master/texmf-dist/doc/latex/elegantpaper/image/founder.png
___________________________________________________________________
Added: svn:mime-type
## -0,0 +1 ##
+application/octet-stream
\ No newline at end of property
Modified: trunk/Master/texmf-dist/doc/latex/elegantpaper/image/star.png
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/tex/latex/elegantpaper/elegantpaper.cls
===================================================================
--- trunk/Master/texmf-dist/tex/latex/elegantpaper/elegantpaper.cls	2020-04-12 21:31:25 UTC (rev 54701)
+++ trunk/Master/texmf-dist/tex/latex/elegantpaper/elegantpaper.cls	2020-04-12 21:31:37 UTC (rev 54702)
@@ -4,12 +4,10 @@
 % Lastest Version: https://github.com/ElegantLaTeX/ElegantPaper
 
 % --- Class structure: identification part
-\ProvidesClass{elegantpaper}[2019/10/17 v0.08 ElegantLaTeX Paper class]
+\ProvidesClass{elegantpaper}[2020/04/12 v0.09 ElegantLaTeX Paper class]
 \NeedsTeXFormat{LaTeX2e} 
 
 \RequirePackage{kvoptions}
-\RequirePackage{ifthen}
-\RequirePackage{ifxetex}
 \RequirePackage{etoolbox}
 \RequirePackage{calc}
 
@@ -17,20 +15,51 @@
 \newcommand{\ekv}[1]{\kvsetkeys{ELEGANT}{#1}}
 
 \DeclareStringOption[en]{lang}
-\DeclareVoidOption{cn}{\ekv{lang = cn}}
-\DeclareVoidOption{en}{\ekv{lang = en}}
+\DeclareVoidOption{cn}{\ekv{lang=cn}}
+\DeclareVoidOption{en}{\ekv{lang=en}}
 
+\DeclareStringOption[cm]{math}
+
 \DeclareStringOption[numbers]{cite}
 \DeclareVoidOption{numbers}{\ekv{cite=numbers}}
 \DeclareVoidOption{authoryear}{\ekv{cite=authoryear}}
 \DeclareVoidOption{super}{\ekv{cite=super}}
 
+\DeclareStringOption[apalike]{bibstyle}
+
+\DeclareStringOption[ctexfont]{chinesefont}
+\DeclareVoidOption{ctexfont}{\ekv{chinesefont=ctexfont}}
+\DeclareVoidOption{founder}{\ekv{chinesefont=founder}}
+\DeclareVoidOption{nofont}{\ekv{chinesefont=nofont}}
+
+\DeclareVoidOption{newtx}{\ekv{math=newtx}}
+\DeclareVoidOption{mtpro2}{\ekv{math=mtpro2}}
+\DeclareVoidOption{cm}{\ekv{math=cm}}
+
 \DeclareDefaultOption{\PassOptionsToClass{\CurrentOption}{article}}
 \ProcessKeyvalOptions*\relax
 \LoadClass{article}
 
+\RequirePackage{hyperref}
+\hypersetup{
+  pdfborder={0 0 0},
+  colorlinks=true,
+  linkcolor={winered},
+  urlcolor={winered},
+  filecolor={winered},
+  citecolor={winered},
+  linktoc=all,
+}
+% settings for the hyperref and geometry
+\RequirePackage[
+  left=1in,
+  right=1in,
+  top=1in,
+  bottom=1in,
+  headheight=0pt,
+  headsep=0pt]{geometry}
+\setlength{\headsep}{5pt}
 
-
 \RequirePackage{amsthm}
 \RequirePackage{amsmath}
 \RequirePackage{amssymb}
@@ -38,7 +67,7 @@
 \RequirePackage{booktabs}
 \RequirePackage{multicol}
 \RequirePackage{multirow}
-\RequirePackage{linegoal}
+% \RequirePackage{linegoal}
 \RequirePackage{xcolor}
 \RequirePackage{graphicx}
 \RequirePackage{fancyvrb}
@@ -49,7 +78,7 @@
 \graphicspath{{image/}{figure/}{fig/}{img/}}
 
 % caption settings 
-\RequirePackage[font=small,labelfont={bf}]{caption} 
+\RequirePackage[font=small,labelfont={bf}]{caption}
 \captionsetup[table]{skip=3pt}
 \captionsetup[figure]{skip=3pt}
 
@@ -57,10 +86,6 @@
 \RequirePackage[shortlabels,inline]{enumitem}
 \setlist{nolistsep}
 
-\RequirePackage[\ELEGANT at cite,sort&compress]{natbib}
-% \PassOptionsToPackage{\ELEGANT at cite}{natbib}
-\setlength{\bibsep}{0.0pt}
-\def\bibfont{\footnotesize}
 
 % define the hyperref color 
 \RequirePackage{xcolor}
@@ -70,62 +95,86 @@
 \definecolor{commentcolor}{RGB}{0,100,0}
 \definecolor{frenchplum}{RGB}{190,20,83}
 
-% settings for the hyperref and geometry
-\RequirePackage{hyperref}
-\hypersetup{
-  pdfborder={0 0 0},
-  colorlinks=true,
-  linkcolor={winered},
-  urlcolor={winered},
-  filecolor={winered},
-  citecolor={winered},
-  linktoc=all,
-}
-\RequirePackage[left=1in, right=1in, top=1in, bottom=1in,headheight=0pt,headsep=0pt]{geometry}
-\setlength{\headsep}{5pt}
 
-% add the \email cmd 
+% add the email cmd 
 \newcommand\email[1]{\href{mailto:#1}{\nolinkurl{#1}}}
 
 % font settings
+
 \PassOptionsToPackage{no-math}{fontspec}
+\ifdefstring{\ELEGANT at lang}{cn}{
+  \ifXeTeX
+    \ifdefstring{\ELEGANT at chinesefont}{founder}{
+      \RequirePackage[UTF8,scheme=plain,fontset=none]{ctex}
+      \setCJKmainfont[BoldFont={FZHei-B01},ItalicFont={FZKai-Z03}]{FZShuSong-Z01}
+      \setCJKsansfont[BoldFont={FZHei-B01},ItalicFont={FZHei-B01}]{FZHei-B01}
+      \setCJKmonofont[BoldFont={FZHei-B01},ItalicFont={FZHei-B01}]{FZFangSong-Z02}
+      \setCJKfamilyfont{zhsong}{FZShuSong-Z01}
+      \setCJKfamilyfont{zhhei}{FZHei-B01}
+      \setCJKfamilyfont{zhkai}{FZKai-Z03}
+      \setCJKfamilyfont{zhfs}{FZFangSong-Z02}
+      \newcommand*{\songti}{\CJKfamily{zhsong}}
+      \newcommand*{\heiti}{\CJKfamily{zhhei}}
+      \newcommand*{\kaishu}{\CJKfamily{zhkai}}
+      \newcommand*{\fangsong}{\CJKfamily{zhfs}}}{\relax}
+    
+    \ifdefstring{\ELEGANT at chinesefont}{nofont}{
+      \RequirePackage[UTF8,scheme=plain,fontset=none]{ctex}}{\relax}
 
-\ifdefstring{\ELEGANT at lang}{cn}{%
-  \RequirePackage[UTF8, scheme=plain]{ctex}
-}
+    \ifdefstring{\ELEGANT at chinesefont}{ctexfont}{
+      \RequirePackage[UTF8,scheme=plain]{ctex}}{\relax}
+  \else
+    \ifdefstring{\ELEGANT at chinesefont}{ctexfont}{
+      \RequirePackage[UTF8,scheme=plain]{ctex}}{\relax}
+  \fi
+  \AfterEndPreamble{
+    % \renewcommand{\itshape}{\kaishu}
+    \setlength\parindent{2\ccwd}}}{\relax}
 
-\ifxetex
-  \RequirePackage{fontenc}
+\ifcsname kaishu\endcsname
+  \newcommand{\citshape}{\kaishu}
 \else
-  \RequirePackage[T1]{fontenc}
-  \AtEndOfClass{%
-    \RequirePackage{microtype}}
+  \newcommand{\citshape}{\itshape}
 \fi
+\ifcsname kaishu\endcsname
+  \newcommand{\cnormal}{\kaishu}
+\else
+  \newcommand{\cnormal}{\normalfont}
+\fi
 
-% newtxtext and newtxmath pkg
+\ifcsname fangsong\endcsname
+  \newcommand{\cfs}{\fangsong}
+\else
+  \newcommand{\cfs}{\normalfont}
+\fi
+
 \RequirePackage{newtxtext}
-\RequirePackage{newtxmath}
-\RequirePackage{esint}
+\ifdefstring{\ELEGANT at math}{newtx}{
+  \RequirePackage{newtxmath}
+  \let\Bbbk\relax
+  \RequirePackage{esint}
+  %%% use yhmath pkg, uncomment following code
+  % \let\oldwidering\widering
+  % \let\widering\undefined
+  % \RequirePackage{yhmath}
+  % \let\widering\oldwidering
 
-%%% use yhmath pkg, uncomment following code
-% \let\oldwidering\widering
-% \let\widering\undefined
-% \RequirePackage{yhmath}
-% \let\widering\oldwidering
+  %%% use esvect pkg, uncomment following code
+  % \RequirePackage{esvect}
 
-%%% use esvect pkg, uncomment following code
-% \RequirePackage{esvect}
+  \DeclareSymbolFont{CMlargesymbols}{OMX}{cmex}{m}{n}
+  \let\sumop\relax\let\prodop\relax
+  \DeclareMathSymbol{\sumop}{\mathop}{CMlargesymbols}{"50}
+  \DeclareMathSymbol{\prodop}{\mathop}{CMlargesymbols}{"51}
+}{\relax}
 
-\DeclareSymbolFont{CMlargesymbols}{OMX}{cmex}{m}{n}
-\let\sumop\relax\let\prodop\relax
-\DeclareMathSymbol{\sumop}{\mathop}{CMlargesymbols}{"50}
-\DeclareMathSymbol{\prodop}{\mathop}{CMlargesymbols}{"51}
+\RequirePackage{appendix}
 
 \ifdefstring{\ELEGANT at lang}{cn}{
   \theoremstyle{plain}% default
   \newtheorem{theorem}{定理}[section] %
   \newtheorem{lemma}[theorem]{引理} %
-  \newtheorem{proposition}[theorem]{性质} %
+  \newtheorem{proposition}[theorem]{命题} %
   \newtheorem*{corollary}{推论} %
   \theoremstyle{definition} %
   \newtheorem{definition}{定义}[section] %
@@ -144,13 +193,19 @@
   \newcommand\updatetext{日期:}%
   \renewcommand\abstractname{摘\hspace{2em}要}
   \setlength\parindent{2\ccwd}
-  \renewcommand{\abstracttextfont}{\small\sffamily\kaishu\noindent\ignorespaces}
+  \renewcommand{\abstracttextfont}{\small\citshape\noindent\ignorespaces}
   % 新定义命令
   \newcommand{\keywords}[1]{\vskip2ex\par\noindent\normalfont{\bfseries 关键词: } #1}
   \newcommand\figref[1]{{\bfseries 图~\ref{#1}}}
   \newcommand\tabref[1]{{\bfseries 表~\ref{#1}}}
-  \RequirePackage[\ELEGANT at cite]{gbt7714}
-}{\relax}
+  \RequirePackage{gbt7714}
+  \ifdefstring{\ELEGANT at cite}{authoryear}{
+    \bibliographystyle{gbt7714-author-year}}{
+    \bibliographystyle{gbt7714-numerical}}
+  \ifdefstring{\ELEGANT at cite}{numbers}{
+    \citestyle{numbers}}{\relax}
+  \renewcommand{\appendixtocname}{附录}
+  \renewcommand{\appendixpagename}{附录}}{\relax}
 
 \ifdefstring{\ELEGANT at lang}{en}{
   \theoremstyle{plain}% default
@@ -172,12 +227,15 @@
   \setlength\parindent{2em}
   \renewcommand{\abstracttextfont}{\sffamily\small\noindent\ignorespaces}
   % newcommands defined in this template.
-  \newcommand{\keywords}[1]{\vskip2ex\par\noindent\normalfont{\bfseries Keywords: } #1}
+  \newcommand{\keywords}[1]{\vskip 2ex\par\noindent\normalfont{\bfseries Keywords: } #1}
   \newcommand\figref[1]{{\bfseries Figure~\ref{#1}}}
   \newcommand\tabref[1]{{\bfseries Table~\ref{#1}}}
-  \bibliographystyle{aer}
-}{\relax}
+  \RequirePackage[\ELEGANT at cite,sort&compress]{natbib}
+  \bibliographystyle{\ELEGANT at bibstyle}}{\relax}
 
+\setlength{\bibsep}{0.0pt}
+\def\bibfont{\footnotesize}
+
 \AtBeginEnvironment{verbatim}{\microtypesetup{activate=false}}
 \BeforeBeginEnvironment{tabular}{\small}
 \AfterEndEnvironment{tabular}{}
@@ -186,8 +244,7 @@
   \setlength{\abovedisplayskip}{3pt}
   \setlength{\belowdisplayskip}{3pt}
   \RequirePackage[flushmargin]{footmisc}
-  \setlength{\footnotesep}{12pt}
-}
+  \setlength{\footnotesep}{12pt}}
 
 \def\IfEmpty#1{%
   \edef\1{\the#1}
@@ -248,12 +305,12 @@
 \vskip 0.5ex%
 \IfEmpty\version
 \else 
-{\small\normalfont\ifdefstring{\ELEGANT at lang}{en}{\itshape}{\kaishu}\versiontext\the\version}
+{\small\normalfont\citshape\versiontext\the\version}
 \fi
 \ifx\@date\empty
 \else
 \vskip 0.1em%
- {\small\normalfont\ifdefstring{\ELEGANT at lang}{en}{\itshape}{\kaishu}\updatetext\@date}%
+ {\small\normalfont\citshape\updatetext\@date}%
 \fi
   \end{center}%
   \par
@@ -287,3 +344,4 @@
 
 
 
+



More information about the tex-live-commits mailing list.