summaryrefslogtreecommitdiff
path: root/Master
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2019-01-10 22:19:11 +0000
committerKarl Berry <karl@freefriends.org>2019-01-10 22:19:11 +0000
commit0b36e207aefc7c595d7acf22e5c68b11b6737ad8 (patch)
tree24bf86b9d6ad9feea9a63c44ad2521b061aa4d0d /Master
parent45e3a5315a82938122546f24077ca88297b61434 (diff)
elegantpaper (10jan19)
git-svn-id: svn://tug.org/texlive/trunk@49661 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master')
-rw-r--r--Master/texmf-dist/doc/latex/elegantpaper/README.md12
-rw-r--r--Master/texmf-dist/doc/latex/elegantpaper/elegantpaper.pdfbin0 -> 222012 bytes
-rw-r--r--Master/texmf-dist/doc/latex/elegantpaper/figure/mpg.pngbin0 -> 93513 bytes
-rw-r--r--Master/texmf-dist/doc/latex/elegantpaper/main.tex123
-rw-r--r--Master/texmf-dist/doc/latex/elegantpaper/wp_ref.bib68
-rw-r--r--Master/texmf-dist/tex/latex/elegantpaper/elegantpaper.cls79
-rwxr-xr-xMaster/tlpkg/bin/tlpkg-ctan-check2
-rw-r--r--Master/tlpkg/tlpsrc/collection-latexextra.tlpsrc1
-rw-r--r--Master/tlpkg/tlpsrc/elegantpaper.tlpsrc0
9 files changed, 284 insertions, 1 deletions
diff --git a/Master/texmf-dist/doc/latex/elegantpaper/README.md b/Master/texmf-dist/doc/latex/elegantpaper/README.md
new file mode 100644
index 00000000000..21c99bdfd9b
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/elegantpaper/README.md
@@ -0,0 +1,12 @@
+<!-- Author: ddswhu -->
+<!-- Email: ddswhu@outlook.com -->
+<!-- Homepage: https://ddswhu.me/ -->
+
+# Introduction
+
+ElegantPaper is designed for writing working paper, especially for economics students. This template is based on the standard LaTeX article class. The goal of this template is to make the writing process easier and more comfortable. You can get rid of all the worries about format. Just enjoy it! I am ddswhu, you can contact me at ddswhu@outlook.com.
+
+
+此模板基于 LaTeX 的 article 类,专为工作论文写作而设计。设计这个模板的初衷是让作者不用关心工作论文的格式,专心写作,从而有更加舒适,简便的写作体验。我是 ddswhu,如果你有其他问题或者建议,请联系我,我的邮箱是:ddswhu@outlook.com。
+
+This work is released under the LaTeX Project Public License, v1.3c or later.
diff --git a/Master/texmf-dist/doc/latex/elegantpaper/elegantpaper.pdf b/Master/texmf-dist/doc/latex/elegantpaper/elegantpaper.pdf
new file mode 100644
index 00000000000..2c95fe18720
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/elegantpaper/elegantpaper.pdf
Binary files differ
diff --git a/Master/texmf-dist/doc/latex/elegantpaper/figure/mpg.png b/Master/texmf-dist/doc/latex/elegantpaper/figure/mpg.png
new file mode 100644
index 00000000000..613ec4bb53c
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/elegantpaper/figure/mpg.png
Binary files differ
diff --git a/Master/texmf-dist/doc/latex/elegantpaper/main.tex b/Master/texmf-dist/doc/latex/elegantpaper/main.tex
new file mode 100644
index 00000000000..80340ab6a55
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/elegantpaper/main.tex
@@ -0,0 +1,123 @@
+%!TEX program = pdflatex
+\documentclass{elegantpaper}
+
+\title{ElegantPaper: An Elegant \LaTeX{} Template for Working Paper}
+\author{\href{https://ddswhu.me/}{Dongsheng Deng} %
+ \thanks{Thank Peiyi Yao for good suggestions.} \\[0.5ex] %
+ Elegant\LaTeX{} Group}
+\date{\small\itshape Version: 0.01 \\ Last update: \today}
+
+\begin{document}
+
+\maketitle
+
+\begin{abstract}
+ This paper illustrates the usage of the ElegantPaper template, which is designed for writing a working paper. This template is based on the standard \LaTeX{} article class. The goal of this template is to make the writing process easier and more comfortable. You can get rid of all the worries about the format. Just enjoy it, if you have any questions or suggestions, please contact me at: \email{ddswhu@outlook.com}.
+\end{abstract}
+
+\section{Introduction}
+
+This template is based on the standard \LaTeX{} article class, which means you can pass the arguments of article class to it (\verb|a4paper|, \verb|12pt| and etc.).
+
+\subsection{Font Settings}
+I change the default article font computer modern to \verb|newtx| series, and the default font size is set to \verb|11pt|.
+
+\begin{itemize}[noitemsep]
+ \item \verb|newtxtext| package for text font, similar to times new roman font.
+ \item \verb|newtxmath| package for math font, close to \verb|times| and \verb|mtpro2| packages.
+ \item \verb|newtxtt| package for typewriter font, with option \verb|scale = 0.8|.
+\end{itemize}
+
+These packages operate perfectly but are inappropriate for big operators, for example \verb|\sum| and \verb|\prod|, thus, I change these operators back to computer modern font. Equation~\eqref{eq:binom} shows the effects of these fonts:
+\begin{equation}
+(a+b)^{n} = \sum_{k=0}^{n} C_{n}^{k} a^{n-k} b^k \label{eq:binom}
+\end{equation}
+
+
+
+The \verb|\linespread| (controls line spacing) is set to 1.3, and I use \verb|microtype| to improve the font justification. \verb|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
+\begin{enumerate}[noitemsep]
+ \item \verb|\email{#1}|: create the hyperlink to email address.
+ \item \verb|\figref{#1}|: same usage as \verb|\ref{#1}|, but start with label text <\textbf{Figure n}>.
+ \item \verb|\tabref{#1}|: same usage as \verb|\ref{#1}|, but start with label text <\textbf{Table n}>.
+\end{enumerate}{}
+
+\subsection{List Environments}
+When you are using \verb|itemize|, \verb|enumerate|, or \verb|description| environment, please add the \verb|noitemsep| option to these environments. For example, \\
+
+\begin{minipage}[c]{0.45\linewidth}
+\begin{Verbatim}[tabsize=4,frame=single,baselinestretch=1]
+\begin{itemize}[noitemsep]
+ \item Routing and resource discovery;
+ \item Resilient and scalable networks;
+ \item Distributed storage and search.
+\end{itemize}
+\end{Verbatim}
+\end{minipage}
+\begin{minipage}[c]{0.45\linewidth}
+\begin{itemize}[noitemsep]
+ \item Routing and resource discovery;
+ \item Resilient and scalable computer networks;
+ \item Distributed storage and search.
+\end{itemize}
+\end{minipage}
+
+\subsection{Table}
+I strongly recommend you to use the \verb|booktabs| package in your paper. It adds three commands to make the table prettier, ie. \verb|\toprule|, \verb|\midrule| and \verb|\bottomrule|. Here is an example.
+
+\begin{table}[!htbp]
+ \small
+ \centering
+ \caption{Regression Result Example}
+ \begin{tabular}{lll}
+ \toprule
+ & \multicolumn{1}{c}{(1)} & \multicolumn{1}{c}{(2)} \\
+ & \multicolumn{1}{c}{price} & \multicolumn{1}{c}{price} \\
+ \midrule
+ mpg & \multicolumn{1}{c}{-238.9***} & \multicolumn{1}{c}{-49.51} \\
+ & \multicolumn{1}{c}{(53.08)} & \multicolumn{1}{c}{(86.16)} \\
+ weight & \multicolumn{1}{c}{} & \multicolumn{1}{c}{1.747***} \\
+ & \multicolumn{1}{c}{} & \multicolumn{1}{c}{(0.641)} \\
+ constant & \multicolumn{1}{c}{11,253***} & \multicolumn{1}{c}{1,946} \\
+ & \multicolumn{1}{c}{(1,171)} & \multicolumn{1}{c}{(3,597)} \\
+ observations & \multicolumn{1}{c}{74} & \multicolumn{1}{c}{74} \\
+ R-squared & \multicolumn{1}{c}{0.220} & \multicolumn{1}{c}{0.293} \\
+ \midrule
+ \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{Graphics}
+To include a graphic, you can use figure environment as usual. \figref{fig:mpg} shows the effect. You can put all your images in the sub directories (\verb|./image/|, \verb|./img/|, \verb|./figure/|, \verb|./fig/|) of your current working directory.
+
+\begin{Verbatim}[tabsize=4,frame=single,baselinestretch=1]
+\begin{figure}[!ht]
+ \centering
+ \includegraphics[width=0.6\textwidth]{mpg.png}
+ \caption{The Relationship between MPG and Weight\label{fig:mpg}}
+\end{figure}
+\end{Verbatim}
+\begin{figure}[!ht]
+ \centering
+ \includegraphics[width=0.6\textwidth]{mpg.png}
+ \caption{The Relationship between MPG and Weight\label{fig:mpg}}
+\end{figure}
+
+\subsection{Bibliography}
+This template uses Bib\TeX{} to generate the bibliography, the default bibliography style is \verb|aer|. ~\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. You can add bib items (from Google Scholar, Mendeley, EndNote, and etc.) to \verb|wp_ref.bib| file, and cite the bibkey in the \verb|tex| file.
+
+
+\nocite{EINAV2010,Havrylchyk2018}
+
+\bibliographystyle{aer}
+\bibliography{wp_ref}
+
+\end{document}
diff --git a/Master/texmf-dist/doc/latex/elegantpaper/wp_ref.bib b/Master/texmf-dist/doc/latex/elegantpaper/wp_ref.bib
new file mode 100644
index 00000000000..c61d0df6e1b
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/elegantpaper/wp_ref.bib
@@ -0,0 +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{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}
+}
+
diff --git a/Master/texmf-dist/tex/latex/elegantpaper/elegantpaper.cls b/Master/texmf-dist/tex/latex/elegantpaper/elegantpaper.cls
new file mode 100644
index 00000000000..328e08f375b
--- /dev/null
+++ b/Master/texmf-dist/tex/latex/elegantpaper/elegantpaper.cls
@@ -0,0 +1,79 @@
+% Current Version: 0.01
+% Author: ddswhu
+% Homepage: https://ddswhu.me/
+% Email: ddswhu@outlook.com
+% Lastest Version: https://ddswhu.me/resource/
+
+\NeedsTeXFormat{LaTeX2e}
+\ProvidesClass{elegantpaper}[2018/11/22 v0.01 ElegantLaTeX Paper class]
+
+\LoadClass[11pt]{article}
+
+% font setting for text and math
+\RequirePackage[T1]{fontenc}
+\RequirePackage{newtxtext}
+\RequirePackage{newtxmath}
+\RequirePackage[scale=0.85]{newtxtt}
+\RequirePackage{type1cm}
+
+% more pretty font
+\linespread{1.3}
+\RequirePackage{microtype}
+
+% indentation, table and figure package
+% \RequirePackage{indentfirst}
+\RequirePackage{booktabs}
+\RequirePackage{multicol}
+\RequirePackage{xcolor}
+\RequirePackage{graphicx}
+\RequirePackage{fancyvrb}
+\graphicspath{{image/}{figure/}{fig/}{img/}}
+
+% caption settings
+\RequirePackage[font=small,labelfont={bf}]{caption}
+\captionsetup[table]{skip=3pt}
+\captionsetup[figure]{skip=3pt}
+
+% list/itemize/enumerate setting
+\RequirePackage[shortlabels]{enumitem}
+\setlist{nolistsep}
+
+% define the hyperref color
+\RequirePackage{xcolor}
+\definecolor{winered}{rgb}{0.5,0,0}
+
+% bib-settings
+\RequirePackage{natbib}
+\setlength{\bibsep}{0.0pt}
+\def\bibfont{\footnotesize}
+
+% settings for the 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]{geometry}
+
+% add the \email cmd
+\newcommand\email[1]{\href{mailto:#1}{\nolinkurl{#1}}}
+
+
+\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}}
+
diff --git a/Master/tlpkg/bin/tlpkg-ctan-check b/Master/tlpkg/bin/tlpkg-ctan-check
index 16996d7e793..e5278e68213 100755
--- a/Master/tlpkg/bin/tlpkg-ctan-check
+++ b/Master/tlpkg/bin/tlpkg-ctan-check
@@ -242,7 +242,7 @@ my @TLP_working = qw(
econ-bst econometrics economic ecothesis
ecv ed edfnotes edmac edmargin ednotes eemeir eepic efbox egameps
egplot eiad eiad-ltx eijkhout einfuehrung einfuehrung2 ejpecp ekaia
- elbioimp electrum eledform eledmac elements ellipse ellipsis
+ elbioimp electrum eledform eledmac elegantpaper elements ellipse ellipsis
elmath elocalloc elpres elsarticle
elteikthesis eltex elvish elzcards
emarks embedall embrac emf emisa emptypage emulateapj emp
diff --git a/Master/tlpkg/tlpsrc/collection-latexextra.tlpsrc b/Master/tlpkg/tlpsrc/collection-latexextra.tlpsrc
index 2a2f6c4740f..d928f9a2776 100644
--- a/Master/tlpkg/tlpsrc/collection-latexextra.tlpsrc
+++ b/Master/tlpkg/tlpsrc/collection-latexextra.tlpsrc
@@ -337,6 +337,7 @@ depend edmargin
depend eemeir
depend efbox
depend egplot
+depend elegantpaper
depend elements
depend ellipsis
depend elmath
diff --git a/Master/tlpkg/tlpsrc/elegantpaper.tlpsrc b/Master/tlpkg/tlpsrc/elegantpaper.tlpsrc
new file mode 100644
index 00000000000..e69de29bb2d
--- /dev/null
+++ b/Master/tlpkg/tlpsrc/elegantpaper.tlpsrc