texlive[49661] Master: elegantpaper (10jan19)

commits+karl at tug.org commits+karl at tug.org
Thu Jan 10 23:19:11 CET 2019


Revision: 49661
          http://tug.org/svn/texlive?view=revision&revision=49661
Author:   karl
Date:     2019-01-10 23:19:11 +0100 (Thu, 10 Jan 2019)
Log Message:
-----------
elegantpaper (10jan19)

Modified Paths:
--------------
    trunk/Master/tlpkg/bin/tlpkg-ctan-check
    trunk/Master/tlpkg/tlpsrc/collection-latexextra.tlpsrc

Added Paths:
-----------
    trunk/Master/texmf-dist/doc/latex/elegantpaper/
    trunk/Master/texmf-dist/doc/latex/elegantpaper/README.md
    trunk/Master/texmf-dist/doc/latex/elegantpaper/elegantpaper.pdf
    trunk/Master/texmf-dist/doc/latex/elegantpaper/figure/
    trunk/Master/texmf-dist/doc/latex/elegantpaper/figure/mpg.png
    trunk/Master/texmf-dist/doc/latex/elegantpaper/main.tex
    trunk/Master/texmf-dist/doc/latex/elegantpaper/wp_ref.bib
    trunk/Master/texmf-dist/tex/latex/elegantpaper/
    trunk/Master/texmf-dist/tex/latex/elegantpaper/elegantpaper.cls
    trunk/Master/tlpkg/tlpsrc/elegantpaper.tlpsrc

Added: trunk/Master/texmf-dist/doc/latex/elegantpaper/README.md
===================================================================
--- trunk/Master/texmf-dist/doc/latex/elegantpaper/README.md	                        (rev 0)
+++ trunk/Master/texmf-dist/doc/latex/elegantpaper/README.md	2019-01-10 22:19:11 UTC (rev 49661)
@@ -0,0 +1,12 @@
+<!-- Author: ddswhu -->
+<!-- Email: ddswhu at 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 at outlook.com.
+
+
+此模板基于 LaTeX 的 article 类,专为工作论文写作而设计。设计这个模板的初衷是让作者不用关心工作论文的格式,专心写作,从而有更加舒适,简便的写作体验。我是 ddswhu,如果你有其他问题或者建议,请联系我,我的邮箱是:ddswhu at outlook.com。
+
+This work is released under the LaTeX Project Public License, v1.3c or later. 


Property changes on: trunk/Master/texmf-dist/doc/latex/elegantpaper/README.md
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: trunk/Master/texmf-dist/doc/latex/elegantpaper/elegantpaper.pdf
===================================================================
(Binary files differ)

Index: trunk/Master/texmf-dist/doc/latex/elegantpaper/elegantpaper.pdf
===================================================================
--- trunk/Master/texmf-dist/doc/latex/elegantpaper/elegantpaper.pdf	2019-01-10 22:18:10 UTC (rev 49660)
+++ trunk/Master/texmf-dist/doc/latex/elegantpaper/elegantpaper.pdf	2019-01-10 22:19:11 UTC (rev 49661)

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

Index: trunk/Master/texmf-dist/doc/latex/elegantpaper/figure/mpg.png
===================================================================
--- trunk/Master/texmf-dist/doc/latex/elegantpaper/figure/mpg.png	2019-01-10 22:18:10 UTC (rev 49660)
+++ trunk/Master/texmf-dist/doc/latex/elegantpaper/figure/mpg.png	2019-01-10 22:19:11 UTC (rev 49661)

Property changes on: trunk/Master/texmf-dist/doc/latex/elegantpaper/figure/mpg.png
___________________________________________________________________
Added: svn:mime-type
## -0,0 +1 ##
+application/octet-stream
\ No newline at end of property
Added: trunk/Master/texmf-dist/doc/latex/elegantpaper/main.tex
===================================================================
--- trunk/Master/texmf-dist/doc/latex/elegantpaper/main.tex	                        (rev 0)
+++ trunk/Master/texmf-dist/doc/latex/elegantpaper/main.tex	2019-01-10 22:19:11 UTC (rev 49661)
@@ -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 at 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}


Property changes on: trunk/Master/texmf-dist/doc/latex/elegantpaper/main.tex
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: trunk/Master/texmf-dist/doc/latex/elegantpaper/wp_ref.bib
===================================================================
--- trunk/Master/texmf-dist/doc/latex/elegantpaper/wp_ref.bib	                        (rev 0)
+++ trunk/Master/texmf-dist/doc/latex/elegantpaper/wp_ref.bib	2019-01-10 22:19:11 UTC (rev 49661)
@@ -0,0 +1,68 @@
+ at 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}
+}
+ at 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}
+}
+ at 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}
+}
+
+ at 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}
+}
+
+ at 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}
+}
+


Property changes on: trunk/Master/texmf-dist/doc/latex/elegantpaper/wp_ref.bib
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: trunk/Master/texmf-dist/tex/latex/elegantpaper/elegantpaper.cls
===================================================================
--- trunk/Master/texmf-dist/tex/latex/elegantpaper/elegantpaper.cls	                        (rev 0)
+++ trunk/Master/texmf-dist/tex/latex/elegantpaper/elegantpaper.cls	2019-01-10 22:19:11 UTC (rev 49661)
@@ -0,0 +1,79 @@
+% Current Version: 0.01
+% Author: ddswhu
+% Homepage: https://ddswhu.me/
+% Email: ddswhu at 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}}
+


Property changes on: trunk/Master/texmf-dist/tex/latex/elegantpaper/elegantpaper.cls
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Modified: trunk/Master/tlpkg/bin/tlpkg-ctan-check
===================================================================
--- trunk/Master/tlpkg/bin/tlpkg-ctan-check	2019-01-10 22:18:10 UTC (rev 49660)
+++ trunk/Master/tlpkg/bin/tlpkg-ctan-check	2019-01-10 22:19:11 UTC (rev 49661)
@@ -242,7 +242,7 @@
     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

Modified: trunk/Master/tlpkg/tlpsrc/collection-latexextra.tlpsrc
===================================================================
--- trunk/Master/tlpkg/tlpsrc/collection-latexextra.tlpsrc	2019-01-10 22:18:10 UTC (rev 49660)
+++ trunk/Master/tlpkg/tlpsrc/collection-latexextra.tlpsrc	2019-01-10 22:19:11 UTC (rev 49661)
@@ -337,6 +337,7 @@
 depend eemeir
 depend efbox
 depend egplot
+depend elegantpaper
 depend elements
 depend ellipsis
 depend elmath

Added: trunk/Master/tlpkg/tlpsrc/elegantpaper.tlpsrc
===================================================================


More information about the tex-live-commits mailing list