Compare commits
69 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
6924603f5c | ||
|
|
eecad6acf6 | ||
|
|
8ca2077cb4 | ||
|
|
083ef244ac | ||
|
|
f8729c63a9 | ||
|
|
c2a4b318ec | ||
|
|
fa2cf2f5f1 | ||
|
|
b6e1a2e8e3 | ||
|
|
bd16ebc36e | ||
|
|
b756eb2966 | ||
|
|
cf2dd78ad8 | ||
|
|
b62319de1f | ||
|
|
622b95d238 | ||
|
|
695157cd46 | ||
|
|
460a7f4b68 | ||
|
|
f34e05ff6d | ||
|
|
07ec82321f | ||
|
|
1dbf0eca16 | ||
|
|
0beebfc087 | ||
|
|
2450fad609 | ||
|
|
870a8c28d2 | ||
|
|
406f0a3d34 | ||
|
|
a1d2dedc13 | ||
|
|
ce8c1d582d | ||
|
|
b8c165a6b7 | ||
|
|
e9513f88da | ||
|
|
9505ac286f | ||
|
|
b5d556ec74 | ||
|
|
225d2416a5 | ||
|
|
e8cc07a13e | ||
|
|
a6830816e4 | ||
|
|
d03959f9d2 | ||
|
|
4f324f2ca9 | ||
|
|
b50d464206 | ||
|
|
3495afdd26 | ||
|
|
56a1795834 | ||
|
|
c366c01998 | ||
|
|
c23d12e635 | ||
|
|
6d60bf404e | ||
|
|
531532c837 | ||
|
|
195e2634e3 | ||
|
|
97a9668bd0 | ||
|
|
2d7e2f7d70 | ||
|
|
87f4d64810 | ||
|
|
16bcf11414 | ||
|
|
8c15cf9210 | ||
|
|
6d336e113e | ||
|
|
1a831740e6 | ||
|
|
4b2626d4f1 | ||
|
|
ada05e3415 | ||
|
|
fc1c639248 | ||
|
|
ad68db6337 | ||
|
|
39c6d631ae | ||
|
|
91d5839af2 | ||
|
|
6018efc5d6 | ||
|
|
824977a888 | ||
|
|
774825f729 | ||
|
|
811acb3660 | ||
|
|
6c077e8c2d | ||
|
|
ebaae39f46 | ||
|
|
e2a72bc70c | ||
|
|
d9c7afb6ba | ||
|
|
73486a8e88 | ||
|
|
ebd4909a8d | ||
|
|
9865cbb9f6 | ||
|
|
8508d62b62 | ||
|
|
99958b31cf | ||
|
|
c6a2863ca1 | ||
|
|
83732ec957 |
4
.gitignore
vendored
@@ -11,6 +11,10 @@
|
||||
*.cb
|
||||
*.cb2
|
||||
.*.lb
|
||||
clean.bat
|
||||
elegant*-cn.pdf
|
||||
elegant*-en.pdf
|
||||
*.dates
|
||||
|
||||
## Intermediate documents:
|
||||
*.dvi
|
||||
|
||||
144
README.md
@@ -1,21 +1,145 @@
|
||||
<!-- Author : Dongsheng Deng & Liam Huang-->
|
||||
<!-- Program Email: elegantlatex2e@gmail.com -->
|
||||
|
||||
# ElegantBook
|
||||
|
||||
[Homepage](https://elegantlatex.org/) | [Github](https://github.com/ElegantLaTeX/ElegantBook) | [CTAN](https://ctan.org/pkg/elegantbook) | [Download](https://github.com/ElegantLaTeX/ElegantBook/releases) | [Wiki](https://github.com/ElegantLaTeX/ElegantBook/wiki) | [Weibo](https://weibo.com/elegantlatex)
|
||||
|
||||

|
||||

|
||||

|
||||

|
||||
   
|
||||
|
||||
ElegantBook is designed for books. Just enjoy it! If you have any questions, suggestions or bug reports, you can create issues, pull requests or contact us at elegantlatex2e@gmail.com.
|
||||
---
|
||||
|
||||
如果你有其他问题、建议或者报告 bug,可以提交 issues 或者给我们发邮件:elegantlatex2e@gmail.com。
|
||||
# ElegantBook 优美的 LaTeX 书籍模板
|
||||
|
||||
# License
|
||||
ElegantBook 是为 LaTeX 书籍写作而设计的模板,由 [Dongsheng Deng](https://ddswhu.me/) 和 [Liam Huang](https://liam.page/) 创立,模板创立的初衷是方便我们自己做笔记 :smile:。如果你有其他问题、建议或者报告 bug,可以提交 issues 或者给我们发邮件:elegantlatex2e@gmail.com。QQ 用户交流群:692108391,欢迎加入。
|
||||
|
||||
## 重要提示
|
||||
|
||||
**版本提醒:** 由于新版本进行了重构,并且 3.06 版本对于封面进行了改版,3.06 以后的版本并不兼容之前版本,如果你想把之前版本的文件转为 3.06 以后的版本,请查看[跨版本转换](https://github.com/ElegantLaTeX/ElegantBook/wiki/convert)。我们强烈建议你使用最新版。
|
||||
|
||||
**重要提示**:ElegantLaTeX 项目 **不接受** 任何非作者预约提交(pull requests)!
|
||||
|
||||
## 致谢
|
||||
|
||||
2019 年 5 月 20 日,ElegantBook 模板在 Github 上的 Star 数达到了 100,这对于 ElegantLaTeX 系列模板是一个非常重要的里程碑!在此特别感谢 ChinaTeX 以及 [LaTeX 工作室](http://www.latexstudio.net/)对于本系列模板的大力宣传与推广。LaTeX 工作室网站上有很多精彩的帖子和精致的模板,欢迎大家去挖掘里面的宝藏。这也是我所见到的国内最全面的 LaTeX 相关的网站。
|
||||
|
||||
如果你喜欢我们的模板,你可以在 Github 上收藏我们的模板。
|
||||
|
||||
## 捐赠
|
||||
|
||||
如果您非常喜爱我们的模板或者我,你还可以选择捐赠以表达您对我们模板和我的支持。本模板自 3.08 版本发布了捐赠信息之后,收到了超过千元的捐赠(四舍五入就是一个亿),非常感谢!
|
||||
|
||||

|
||||
|
||||
**赞赏费用的使用解释权归 ElegantLaTeX 所有,并且不接受监督,请自愿理性打赏**。10 元以上的赞赏,我们将列入捐赠榜,谢谢各位金主!(如果有遗漏,请务必联系我们,这对我们很重要)
|
||||
|
||||
|
||||
| 捐赠者 | 金额 | 时间 | 渠道 |
|
||||
| :------: | :----: | :----: | :------: |
|
||||
| Lerh | 10 RMB | 2019/05/15 | 微信 |
|
||||
| 越过地平线 | 10 RMB | 2019/05/15 | 微信 |
|
||||
| 银桑 | 20 RMB | 2019/05/27 | 微信 |
|
||||
| *空 | 10 RMB | 2019/05/30 | 微信 |
|
||||
| [latexstudio.net](http://www.latexstudio.net) | 666 RMB | 2019/06/05 | 支付宝 |
|
||||
| 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 | 微信 |
|
||||
|
||||
|
||||
再次感谢大家对于模板的喜爱!
|
||||
|
||||
## 协议
|
||||
|
||||
本模板发布遵循 LaTeX 项目公共许可证 1.3 c 或更高版本。如果是衍生作品,请务必加入协议声明和模板信息(github、CTAN 地址)。
|
||||
|
||||
## 衍生作
|
||||
|
||||
+ [ElegantBookdown](https://github.com/XiangyunHuang/ElegantBookdown):[XiangyunHuang](https://github.com/XiangyunHuang) 开发并维护的基于 ElegantBook 的 Bookdown 模板。
|
||||
+ [bookdownplus](https://github.com/pzhaonet/bookdownplus):应网友要求,[pzhaonet](https://github.com/pzhaonet) 在 bookdownplus 收录了 ElegantPaper 模板,并为 Mac 做了字体适配。
|
||||
+ [PanBook](https://github.com/annProg/PanBook):[annProg](https://github.com/annProg) 开发并维护的基于 Markdown 写作的工作流,收录了 ElegantBook 和 ElegantPaper 模板。
|
||||
|
||||
-------
|
||||
|
||||
# ElegantBook: An Elegant LaTeX Template for Books
|
||||
|
||||
ElegantBook is designed for writing books, created by [Dongsheng Deng](https://ddswhu.me/) and [Liam Huang](https://liam.page/). Just enjoy it! If you have any questions, suggestions or bug reports, you can create issues or contact us at elegantlatex2e@gmail.com.
|
||||
|
||||
## Important Notes
|
||||
|
||||
**Version Note**: Users for 2.x, please refer to [Version Convert](https://github.com/ElegantLaTeX/ElegantBook/wiki/convert). We strongly recommend that you use the latest version.
|
||||
|
||||
**Important Info**: For some reasons, __unauthorial__ pull requests are **UNACCEPTABLE** since May 20, 2019. For those who want to help revise the templates, submit issues or clone to your own repository to modify under the LPPL-1.3c.
|
||||
|
||||
## Acknowledgement
|
||||
|
||||
_News_: _The number of stars on Github for ElegantBook reached 100 on May 20, 2019_.
|
||||
|
||||
Thank ChinaTeX and [LaTeX Studio](http://www.latexstudio.net/) for their promotion. LaTeX studio offers tons of valuable posts and templates for discovery. It is the most comprehensive website on LaTeX in China. If you like our template, star on Github for supporting us.
|
||||
|
||||
## Donation
|
||||
|
||||
To express your love for our templates and/or our developers, please do not hesitate to tip us. Since last release of 3.08, we have received about a thousand RMB! (The emergence of a millionaire is on the way. Loading... )
|
||||
|
||||

|
||||
|
||||
The explanation right of the tip usage belongs to ElegantLaTeX 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! Thank you all.
|
||||
|
||||
|
||||
| Tipper | Amount | Date | Channel |
|
||||
| :--------------: | :----: | :-------: | :-----: |
|
||||
| Lerh | 10 RMB | 2019/5/15 | Wechat |
|
||||
| YueGuoDiPingXian | 10 RMB | 2019/5/15 | Wechat |
|
||||
| YinSang | 20 RMB | 2019/5/27 | Wechat |
|
||||
| * Kong | 10 RMB | 2019/05/30 | Wechat |
|
||||
| [latexstudio.net](http://www.latexstudio.net) | 666 RMB | 2019/06/05 | Alipay |
|
||||
| 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 |
|
||||
| QuDouDou | 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 |
|
||||
| ChiHong | 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/03 | Alipay |
|
||||
| DuShuZhiChong | 20 RMB | 2019/11/18 | Wechat |
|
||||
| * Deng | 10 RMB | 2019/11/18 | Wechat |
|
||||
| * Zhe | 20 RMB | 2019/11/18 | Wechat |
|
||||
|
||||
|
||||
## License
|
||||
|
||||
This work is released under the LaTeX Project Public License, v1.3c or later.
|
||||
|
||||
本模板发布遵循 LaTeX 项目公共许可证 1.3 c 或更高版本。
|
||||
|
||||
## Derivative Works
|
||||
|
||||
+ [ElegantBookdown](https://github.com/XiangyunHuang/ElegantBookdown):[XiangyunHuang](https://github.com/XiangyunHuang) developed a Bookdown template based on ElegantBook.
|
||||
+ [bookdownplus](https://github.com/pzhaonet/bookdownplus): maintained by [pzhaonet](https://github.com/pzhaonet).
|
||||
+ [PanBook](https://github.com/annProg/PanBook):a markdown-based writing workflow Developed by [annProg](https://github.com/annProg).
|
||||
|
||||
@@ -1,193 +1,329 @@
|
||||
\documentclass[noanswer]{elegantbook}
|
||||
\documentclass[lang=en,11pt]{elegantbook}
|
||||
|
||||
\title{An Elegant \LaTeX{} Template for Books}
|
||||
\subtitle{Classic Elegant\LaTeX{} Template}
|
||||
|
||||
\author{Ethan Deng \& Liam Huang}
|
||||
\institute{Elegant\LaTeX{} Program}
|
||||
\date{\today}
|
||||
\date{February 10, 2020}
|
||||
\version{3.10}
|
||||
\bioinfo{Bio}{Information}
|
||||
|
||||
\version{3.06}
|
||||
\equote{Victory won\rq t come to us unless we go to it. --- M. Moore}
|
||||
\logo{logo.png}
|
||||
\extrainfo{Victory won\rq t come to us unless we go to it. }
|
||||
|
||||
\logo{logo-blue.png}
|
||||
\cover{cover.jpg}
|
||||
|
||||
\setcitestyle{sectionbib}
|
||||
\usepackage{chapterbib}
|
||||
%\excludecomment{solution}
|
||||
|
||||
\begin{document}
|
||||
|
||||
\maketitle
|
||||
|
||||
\frontmatter
|
||||
\tableofcontents
|
||||
\clearpage
|
||||
\thispagestyle{empty}
|
||||
|
||||
\mainmatter
|
||||
\hypersetup{pageanchor=true}
|
||||
\include{test}
|
||||
|
||||
\chapter{Elegant\LaTeX{} Templates}
|
||||
Elegant\LaTeX{} Program developers are intended to provide you beautiful, elegant, user-friendly templates. Currently, the Elegant\LaTeX{} is composed of \href{https://github.com/ElegantLaTeX/ElegantNote}{ElegantNote}, \href{https://github.com/ElegantLaTeX/ElegantBook}{ElegantBook}, \href{https://github.com/ElegantLaTeX/ElegantPaper}{ElegantPaper}, designed for typesetting notes, books, and working papers respectively. Latest releases are strongly recommended! This guide is aimed at briefly introducing the 101 of this template. For any other question, suggestion or comment, feel free to contact us on GitHub \href{https://github.com/ElegantLaTeX/ElegantBook/issues}{issues} or email us at \email{elegantlatex2e@gmail.com}.
|
||||
|
||||
On the occasion of this release, we, Elegant\LaTeX{} Program, want to reintroduce our work to you. We are committed to creating a series of beautiful, elegant, easy to use \LaTeX{} templates for users. The Elegant\LaTeX{} is currently composed of \href{https://github.com/ElegantLaTeX/ElegantNote}{ElegantNote}, \href{https://github.com/ElegantLaTeX/ElegantBook}{ElegantBook}, \href{https://github.com/ElegantLaTeX/ElegantPaper}{ElegantPaper} for typesetting notes, books, and working papers respectively.
|
||||
|
||||
The latest version is available on \href{https://github.com/ElegantLaTeX/ElegantBook/releases}{Github:ElegantBook/releases}. This guide describes some settings of this template and how to use it. If you have any other questions, suggestions or comments, please feel free to contact us.
|
||||
Contact Infos:
|
||||
\begin{itemize}
|
||||
\item Homepage: \href{https://elegantlatex.org/}{https://elegantlatex.org/}
|
||||
\item Github: \href{https://github.com/ElegantLaTeX/}{https://github.com/ElegantLaTeX/}
|
||||
\item CTAN: \href{https://ctan.org/pkg/elegantbook}{https://ctan.org/pkg/elegantbook}
|
||||
\item Wiki: \href{https://github.com/ElegantLaTeX/ElegantBook/wiki}{https://github.com/ElegantLaTeX/ElegantBook/wiki}
|
||||
\item Download: \href{https://github.com/ElegantLaTeX/ElegantBook/releases}{release}, \href{https://github.com/ElegantLaTeX/ElegantBook/archive/master.zip}{latest version}
|
||||
\item Weibo: Elegant\LaTeX{}
|
||||
\item Wechat: Elegant\LaTeX{}
|
||||
\item QQ: 692108391
|
||||
\item Email: \email{elegantlatex2e@gmail.com}
|
||||
\end{itemize}
|
||||
|
||||
|
||||
\section{ElegantBook Updates}
|
||||
Over these years, we've received \cite{EINAV2010} a lot of feedback from users, with major issues related to font installation, coding support, theorem class environments floats, theorem cross-page, cross-references, and etc. We really think about these problems, it wasn't elegant to let the user install the font for visual beauty since users got into a lot of trouble, which went against the concept of our template. So we've removed that from the new version, users don't have to install any fonts. Let's take a look at the ElegantBook template 3.x updates:
|
||||
|
||||
What\rq s new in this version:
|
||||
\begin{enumerate}
|
||||
\item Remove custom font settings and use the \lstinline{ctex} package or system font instead;
|
||||
\item Add English and Chinese modes(\lstinline{lang=cn/en});
|
||||
\item \lstinline{PDFLaTeX} and \lstinline{XeLaTeX} Support;
|
||||
\item Use the \lstinline{tcolorbox} package to re-written the theorem class environments, which can span over pages;
|
||||
\item Theorem class environments name updated, and cross-references fixed;
|
||||
\item Color name updated, link color unified;
|
||||
\item New Elegant\LaTeX{} Logo;
|
||||
\item New cover and decorations, remove the watermark;
|
||||
\item Fix appendix;
|
||||
\item Add gray theme: \lstinline{color=plain};
|
||||
\item Add code highlighting;
|
||||
\item Beautify the list environment.
|
||||
\item Introduce \lstinline{math} for math font, optional styles are \lstinline{newtx} and \lstinline{cm}.\\
|
||||
\textbf{Notice}: The math font \lstinline{newtxmath} in previous versions is reset to default \LaTeX{} math font, to keep previous math font, please declare \lstinline{math=newtx}.
|
||||
\item Introduce \lstinline{chinesefont} option, with \lstinline{founder}, \lstinline{ctexfont} and \lstinline{nofont} available.
|
||||
\item Turn author information on the cover optional and add customized command \lstinline{\bioinfo}.
|
||||
\item Add version history with command \lstinline{\datechange} and environment \lstinline{change}.
|
||||
\item Add Chinese chapter style \lstinline{scheme} with option \lstinline{chinese}.
|
||||
\item Since the bug raised by \lstinline{\lvert} is fixed, exchange package positions of \lstinline{ctex} and \lstinline{amsmath}.
|
||||
\item Drop \lstinline{\lastpage} from header to avoid page anchor bug and adding \lstinline{\frontmatter}.
|
||||
\item Revise bibliography option \lstinline{cite} with optional styles \lstinline{numbers},\lstinline{authoryear} and \lstinline{super}.
|
||||
\item Introduce bibliography style option \lstinline{bibstyle}, with default bib style \lstinline{apalike} for English mode and \lstinline{gbt7714} package for Chinese mode.
|
||||
\end{enumerate}
|
||||
|
||||
|
||||
\chapter{ElegantBook Settings}
|
||||
\begin{note}
|
||||
If you are using previous version, please delete \lstinline|\hypersetup{pageanchor=true}| and add \lstinline{\frontmatter} after \lstinline{\maketitle} and before \lstinline{\tableofcontents}. Users for 2.x, please refer to \href{https://github.com/ElegantLaTeX/ElegantBook/wiki/convert}{conversion}.
|
||||
\end{note}
|
||||
|
||||
\begin{solution}
|
||||
This text will only be displayed, if \includecomment{mysection} was given
|
||||
\end{solution}
|
||||
\section{Installation and Update}
|
||||
Both portable version and installation package are available for this template, online usage is optional as well.
|
||||
|
||||
\begin{proof}
|
||||
This text will only be displayed, if \includecomment{mysection} was given
|
||||
\end{proof}
|
||||
\subsection{To Use Templates Online}
|
||||
Visit \href{https://www.overleaf.com/}{Overleaf} to use our template online anywhere and anytime without local installation. To find our template, search \lstinline{elegantlatex} in the \lstinline{templates} or simply visit \href{https://www.overleaf.com/latex/templates?addsearch=elegantlatex}{search result}, choose the template you prefer and \lstinline{Open as Template} to own a copy yourself to edit freely. To learn more about Overleaf, please refer to \href{https://www.overleaf.com/learn}{Documentation}.
|
||||
|
||||
\section{Compilation Methods}
|
||||
This template is based on the Standard LaTeX book class, so the options of book class also work. The default encoding is UTF-8, and \TeX{} Live is recommended. The test environment is Win10 + \TeX{} Live 2018.
|
||||
\subsection[Compile with PDFLaTeX]{Compile with \lstinline{PDFLaTeX}}
|
||||
\begin{remark}
|
||||
On Overleaf, please use \hologo{XeLaTeX} to compile articles in Chinese and \hologo{pdfLaTeX} to compile articles in English.
|
||||
\end{remark}
|
||||
|
||||
If you choose \lstinline{PDFLaTeX} to process your book, the default article font computer modern has changed to \lstinline{newtx} series, and the default font size is set to \lstinline{12pt}. The fonts are settings with:
|
||||
\subsection{To Use Portable Version}
|
||||
For portable version, simply download lastest ElegantBook-master from Github or CTAN (to be more accurate, download \lstinline{elegantbook.cls}) and save the file(s) under your working directory. This way of installation is simple and convenient, but you have to manually update \lstinline{cls} now and then.
|
||||
|
||||
\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}
|
||||
\subsection{To Use Local Installation Version}
|
||||
If you are a \TeX{} Live 2019 user, using the \lstinline{tlshell}\footnote{namely, \TeX{} Live Manager} of \TeX{} Live 2019 direct installation package is strongly recommended. Simply search and open \lstinline{tlshell}, click on \lstinline{File -> Load Default Repository} or customize repository by \lstinline{Options}. Wait till the repository loads successfully, search \lstinline{elegantbook} by name, installation and update is just a click away.
|
||||
|
||||
A full compilation chain:\lstinline[breaklines]{PDFLaTeX -> BibTeX -> PDFLaTeX*2}.
|
||||
\begin{figure}[htbp]
|
||||
\centering
|
||||
\includegraphics[width=0.7\textwidth]{tlshell.png}
|
||||
\caption{Use \TeX{} Live Shell to Install ElegantBook Template}
|
||||
\end{figure}
|
||||
|
||||
\subsection{Update Templates}
|
||||
If you fail to update templates using \lstinline{tlshell}, please use cmd to update all the packages or switch to portable version instead.
|
||||
|
||||
\subsection[Compile with XeLaTeX]{Compile with \lstinline{XeLaTeX}}
|
||||
If you choose \lstinline{XeLaTeX} to process your book, we use \lstinline{fontspec} package and \lstinline{xeCJK} package. we used fonts available in Windows, if you are using Linux or Mac OS, please substitute these fonts with that of your system.
|
||||
|
||||
\begin{lstlisting}[frame=single]
|
||||
\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}
|
||||
Use the following commands(administrator privileges) to update:
|
||||
\begin{lstlisting}
|
||||
tlmgr update --self
|
||||
tlmgr update --all
|
||||
\end{lstlisting}
|
||||
|
||||
A full compilation chain:\lstinline[breaklines]{XeLaTeX -> BibTeX -> XeLaTeX*2}.
|
||||
To learn more, please refer to \href{https://tex.stackexchange.com/questions/55437/how-do-i-update-my-tex-distribution}{How do I update my \TeX{} distribution?}
|
||||
|
||||
\subsection{Other Release Versions}
|
||||
If you are a \TeX{} Live 2018 user and would like to update to \TeX{} Live 2019, the official solution is to uninstall 2018. If you want to save the bother of uninstallation and installation, please copy \lstinline{elegantbook.cls} to the installation directory of \TeX{} Live 2018 (default: \lstinline|C:\texlive\2018\texmf-dist\tex\latex\elegantbook| ), run \lstinline{texhash} in cmd.
|
||||
|
||||
Excuse me? You are a C\TeX{} user? Sorry, this template is incompatible with C\TeX{}.
|
||||
|
||||
For more details about the installation and usage of \TeX{} Live 2019, the compatibility of C\TeX{} and \TeX{} Live, please refer to OG (Official Guide) and/or \href{https://github.com/OsbertWang/install_latex/releases}{Install LaTeX v5.1} by OsbertWang.
|
||||
|
||||
\section{User\rq s Selected Works Plan}
|
||||
Eight years have passed since the found of Elegant\LaTeX{} Program. It\rq s an honor that our templates are preferred by a lot of users. Hence, in order to promote more interactions among our users and know more about what you need, we are planning to provide a platform to display selected works of our users on Github or our homepage. If you want to show us your work(s), contact us via Email or other ways. Or if you have upload your work(s) on Github or Gitee etc., share the URL(s) with us. You can visit current available works \href{https://github.com/ElegantLaTeX/Archive/tree/master/Collections}{here}.
|
||||
|
||||
\section{About Pull Request}
|
||||
For some reasons, pull requests will NOT by accepted since May 20, 2019. For those who want to help improve the templates, submit issues or clone to your own repository to modify under LPPL-1.3c.
|
||||
|
||||
\section{Recruit Support Members}
|
||||
Recruit support members for Elegant\LaTeX{} to translate template OGs, maintain wiki entries using Markdown, update Wechat articles. No deadline for this recruitment.
|
||||
|
||||
So far, Elegant\LaTeX{} has four Support Members:
|
||||
\begin{itemize}
|
||||
\item OG Translator: \href{https://github.com/peggy2006xzyz}{YPY};
|
||||
\item Wiki Maintainer: \href{https://github.com/izinngo}{Ingo Zinngo}, \href{https://github.com/xiaohao890809}{Xiaohao890809};
|
||||
\item QQ Group Manager \& FAQ Maintainer: \href{https://github.com/sikouhjw}{Sikouhjw}.
|
||||
\end{itemize}
|
||||
|
||||
BTW, thank \href{https://github.com/stone-zeng}{Xiangdong Zeng}, \href{https://github.com/latexers}{Zhuluren}, etc. for their help.
|
||||
|
||||
\section{Acknowledgement}
|
||||
The number of stars on Github for ElegantBook reached 100 on May 20, 2019\footnote{372 stars by February 8, 2020!}.Thank China\TeX{} and \href{http://www.latexstudio.net/}{\LaTeX{} studio} for their promotion. \LaTeX{} studio offers tons of valuable posts and templates for discovery. It is the most comprehensive website on \LaTeX{} in China.
|
||||
|
||||
If you like our template, star on Github.
|
||||
|
||||
\section{Donation}
|
||||
To express your love for our templates and/or our developers, please do not hesitate to tip us. Since last release of 3.08, we have received about 1,500 RMB! (The emergence of a millionaire is on the way. Loading... )
|
||||
\begin{figure}[!htb]
|
||||
\centering
|
||||
\includegraphics[width=0.45\textwidth]{donate.jpg}
|
||||
\end{figure}
|
||||
|
||||
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}[!htb]
|
||||
\centering
|
||||
\caption{Donation List}
|
||||
\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 \\
|
||||
\bottomrule
|
||||
\end{tabular}%
|
||||
\label{tab:donation}%
|
||||
\end{table}%
|
||||
|
||||
BTW, we provide Certificate of Donation for those who donated, tippers please leave your name(nickname) and email address for us to send the certificates.
|
||||
|
||||
\begin{figure}[!htb]
|
||||
\centering
|
||||
\includegraphics[width=0.7\textwidth]{cert.pdf}
|
||||
\end{figure}
|
||||
|
||||
\chapter{ElegantBook Settings}
|
||||
|
||||
This template is based on the Standard \LaTeX{} book class, so the options of book class work as well (Note that the option of papersize has no effect due to \lstinline{device} option). The default encoding is UTF-8 while \TeX{} Live is recommended. The test environment is Win10 + \TeX{} Live 2019, either \hologo{pdfLaTeX} or \lstinline{XeLaTeX} works fine. \lstinline{XeLaTeX} is preferred for Chinese articles.
|
||||
|
||||
\section{Languages}
|
||||
We 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
|
||||
|
||||
\begin{lstlisting}[frame=none]
|
||||
\documentclass[cn]{elegantbook}
|
||||
\documentclass[lang=cn]{elegantbook}
|
||||
We defined one option named \lstinline{lang} which has two alternative values, \lstinline{lang=en} (default) and \lstinline{lang=cn}. Different values will alter the captions of figure/table, abstract name, refname, etc. You can use this option as
|
||||
\begin{lstlisting}
|
||||
\documentclass[en]{elegantbook}
|
||||
\documentclass[lang=en]{elegantbook}
|
||||
\end{lstlisting}
|
||||
|
||||
\begin{remark}
|
||||
You can input Chinese Character in either \lstinline{lang=en} or \lstinline{lang=cn}. If you are using (\lstinline{lstlisting}) environment, and it contains Chinese characters, please use \lstinline{XeLaTeX}.
|
||||
Chinese Characters are acceptable whenever \lstinline{lang=en} or \lstinline{lang=cn}. If you would like to include Chinese characters under (\lstinline{lstlisting}) environment, please use \hologo{XeLaTeX} to compile.
|
||||
\end{remark}
|
||||
|
||||
\section{Device Mode Option}
|
||||
The option for device (\lstinline{device}) was originally used in ElegantNote, now we include this option in ElegantBook\footnote{Pictures have to be modified accordingly.} as well. Activate iPad mode in the following way\footnote{Default size: normal, A4 paper.}:
|
||||
\begin{lstlisting}
|
||||
\documentclass[pad]{elegantbook} %or
|
||||
\documentclass[device=pad]{elegantbook}
|
||||
\end{lstlisting}
|
||||
|
||||
\section{Color Themes}
|
||||
This template contains 4 color themes,they are \textcolor{main1}{\lstinline{green}} (default), \textcolor{main2}{\lstinline{cyan}}, \textcolor{main3}{\lstinline{blue}}, \textcolor{gray}{\lstinline{plain}}, and there is a customization color option \lstinline{nocolor}. You can choose \lstinline{green} with
|
||||
|
||||
\begin{lstlisting}[frame=single]
|
||||
This template contains 5 color themes, i.e. \textcolor{structure1}{\lstinline{green}}\footnote{Original default theme.}, \textcolor{structure2}{\lstinline{cyan}}, \textcolor{structure3}{\lstinline{blue}}(default), \textcolor{structure4}{\lstinline{gray}}, \textcolor{structure5}{\lstinline{black}}. You can choose \lstinline{green} with
|
||||
\begin{lstlisting}
|
||||
\documentclass[green]{elegantbook} %or
|
||||
\documentclass[color=green]{elegantbook}
|
||||
\end{lstlisting}
|
||||
|
||||
where \textcolor{gray}{plain} theme is gray for all theorem class environments and paper structures. If you want to customize the colors, please select \lstinline{nocolor} or use \lstinline{color=none} , then define the main, second, and third colors in the preamble section as follows:
|
||||
\begin{lstlisting}[frame=single]
|
||||
\definecolor{main}{RGB}{70,70,70}
|
||||
\definecolor{second}{RGB}{115,45,2}
|
||||
\definecolor{third}{RGB}{0,80,80}
|
||||
\end{lstlisting}
|
||||
|
||||
\begin{table}[htp]
|
||||
\begin{table}[htbp]
|
||||
\caption{ElegantBook Themes\label{tab:color thm}}
|
||||
\centering
|
||||
\begin{tabular}{ccccc}
|
||||
\begin{tabular}{ccccccc}
|
||||
\toprule
|
||||
& \textcolor{main1}{green} & \textcolor{main2}{cyan} & \textcolor{main3}{blue} & Main Environments\\
|
||||
& \textcolor{structure1}{green}
|
||||
& \textcolor{structure2}{cyan}
|
||||
& \textcolor{structure3}{blue}
|
||||
& \textcolor{structure4}{gray}
|
||||
& \textcolor{structure5}{black}
|
||||
& Main Environments\\
|
||||
\midrule
|
||||
main & \makecell{{\color{main1}\rule{1cm}{1cm}}}& \makecell{{\color{main2}\rule{1cm}{1cm}}}&\makecell{ {\color{main3}\rule{1cm}{1cm}}}& definition \\
|
||||
|
||||
second &\makecell{ {\color{second1}\rule{1cm}{1cm}}}& \makecell{{\color{second2}\rule{1cm}{1cm}}}&\makecell{ {\color{second3}\rule{1cm}{1cm}}}&theorem \ lemma \ corollary\\
|
||||
|
||||
third &\makecell{ {\color{third1}\rule{1cm}{1cm}}}& \makecell{{\color{third2}\rule{1cm}{1cm}}}&\makecell{ {\color{third3}\rule{1cm}{1cm}}}&proposition\\
|
||||
structure & \makecell{{\color{structure1}\rule{1cm}{1cm}}}
|
||||
& \makecell{{\color{structure2}\rule{1cm}{1cm}}}
|
||||
& \makecell{{\color{structure3}\rule{1cm}{1cm}}}
|
||||
& \makecell{{\color{structure4}\rule{1cm}{1cm}}}
|
||||
& \makecell{{\color{structure5}\rule{1cm}{1cm}}}
|
||||
& chapter section subsection \\
|
||||
main & \makecell{{\color{main1}\rule{1cm}{1cm}}}
|
||||
& \makecell{{\color{main2}\rule{1cm}{1cm}}}
|
||||
& \makecell{{\color{main3}\rule{1cm}{1cm}}}
|
||||
& \makecell{{\color{main4}\rule{1cm}{1cm}}}
|
||||
& \makecell{{\color{main5}\rule{1cm}{1cm}}}
|
||||
& definition exercise problem \\
|
||||
second & \makecell{{\color{second1}\rule{1cm}{1cm}}}
|
||||
& \makecell{{\color{second2}\rule{1cm}{1cm}}}
|
||||
& \makecell{{\color{second3}\rule{1cm}{1cm}}}
|
||||
& \makecell{{\color{second4}\rule{1cm}{1cm}}}
|
||||
& \makecell{{\color{second5}\rule{1cm}{1cm}}}
|
||||
& theorem lemma corollary\\
|
||||
third & \makecell{{\color{third1}\rule{1cm}{1cm}}}
|
||||
& \makecell{{\color{third2}\rule{1cm}{1cm}}}
|
||||
& \makecell{{\color{third3}\rule{1cm}{1cm}}}
|
||||
& \makecell{{\color{third4}\rule{1cm}{1cm}}}
|
||||
& \makecell{{\color{third5}\rule{1cm}{1cm}}}
|
||||
& proposition\\
|
||||
\bottomrule
|
||||
\end{tabular}
|
||||
\end{table}
|
||||
|
||||
If you want to customize the colors, please select \lstinline{nocolor} or use \lstinline{color=none} and declare the main, second, and third colors in the preamble section as follows:
|
||||
\begin{lstlisting}[frame=single]
|
||||
\definecolor{structurecolor}{RGB}{60,113,183}
|
||||
\definecolor{main}{RGB}{0,166,82}%
|
||||
\definecolor{second}{RGB}{255,134,24}%
|
||||
\definecolor{third}{RGB}{0,174,247}%
|
||||
\end{lstlisting}
|
||||
|
||||
\section{Cover}
|
||||
\subsection{Customized Cover}
|
||||
From v3.10, customized cover is allowed, you can choose or hide any element as you prefer. Current optional elements are:
|
||||
\begin{itemize}
|
||||
\item title: \lstinline{\title}
|
||||
\item subtitle: \lstinline{\subtitle}
|
||||
\item author: \lstinline{\author}
|
||||
\item institute: \lstinline{\institute}
|
||||
\item date: \lstinline{\date}
|
||||
\item version: \lstinline{\version}
|
||||
\item extra information: \lstinline{\extrainfo}
|
||||
\item cover image: \lstinline{\cover}
|
||||
\item logo: \lstinline{\logo}
|
||||
\end{itemize}
|
||||
|
||||
Besides, an extra command \lstinline{\bioinfo} is provided with two options--caption and content. For instance, if you want to display \lstinline{Username: 111520}, just type in
|
||||
|
||||
\begin{lstlisting}
|
||||
\bioinfo{Username}{115520}
|
||||
\end{lstlisting}
|
||||
|
||||
\subsection{Cover Image}
|
||||
The cover image used in this template is from \href{https://pixabay.com/en/tea-time-poetry-coffee-reading-3240766/}{pixabay.com}. The image is completely free and can be used under any circumstance. The cover image size is $1280 \times 1024$. If you would like to change the cover, please crop it according to the size of the cover picture strictly. One free online image clipping site: \href{https://www.fotor.com/cn}{fotor.com}. Feel free to join our QQ Group to get more elegant covers.
|
||||
|
||||
\subsection{Logo}
|
||||
Aspect ratio of the logo is 1:1 in this guide, i.e. a square picture. To replace the logo, do remember to choose the appropriate picture.
|
||||
|
||||
\subsection{Stylized Cover}
|
||||
Want to use stylized cover?(For instance, A4-sized PDF designed by Adobe Illustrator) Please comment out \lstinline{\maketitle} and use \lstinline{pdfpages} to insert the cover. Similar for using \lstinline{titlepage}. If you would like to use the cover in version 2.x, please refer to \href{https://github.com/EthanDeng/etitlepage}{etitlepage}.
|
||||
|
||||
\section{Chapter Title Display Styles}
|
||||
|
||||
This template contains 2 sets of \textit{title display styles},which including \lstinline{hang}(default) and \lstinline{display} style,
|
||||
|
||||
The difference is that the chapter heading is displayed on a single line (\lstinline{hang}) and on a double line (\lstinline{display}) , and this guide uses \lstinline{hang} . To change display style
|
||||
|
||||
\begin{lstlisting}[frame=single]
|
||||
This template contains 2 sets of \textit{title display styles},\lstinline{hang}(default) and \lstinline{display} style. For the former, chapter title is displayed on a single line (\lstinline{hang}). For the latter, chapter title is displayed on a double line (\lstinline{display}).In this guide, we use \lstinline{hang} . To change display style, use:
|
||||
\begin{lstlisting}
|
||||
\documentclass[hang]{elegantbook} %or
|
||||
\documentclass[titlestyle=hang]{elegantbook}
|
||||
\end{lstlisting}
|
||||
|
||||
\section{Theorem Class Environments}
|
||||
|
||||
In this template, we defined four categories of theorem class environments
|
||||
\section{Introduction of Math Environments}
|
||||
We defined two sets of theorem modes, \lstinline{simple} style and \lstinline{fancy} style (default). You may change to \lstinline{simple} mode by
|
||||
|
||||
\begin{lstlisting}
|
||||
\documentclass[simple]{elegantbook} %or
|
||||
\documentclass[mode=simple]{elegantbook}
|
||||
\end{lstlisting}
|
||||
|
||||
In this template, we defined four different theorem class environments
|
||||
|
||||
\begin{itemize}
|
||||
\item \textit{Theorem Environment}, including title and contents, numbering within chapter. There are three types depending on the format
|
||||
\item \textit{Theorem Environment}, including title and content, numbering corresponding to chapter. Three types depending on the format:
|
||||
\begin{itemize}
|
||||
\item \textcolor{main}{\textbf{definition}} environment, the color is \textcolor{main}{main};
|
||||
\item \textcolor{second}{\textbf{theorem, lemma, corollary}} environment, the color is \textcolor{second} {second};
|
||||
\item \textcolor{third}{\textbf{proposition}} environment, the color is \textcolor{third}{third}.
|
||||
\end{itemize}
|
||||
\item \textit{Example Environments}, including \textbf{example, exercise, problem} environment, auto numering within chapter.
|
||||
\item \textit{Proof Environment}, including \textbf{proof, note} environment, they contain introductory symbol (\textbf{note} environment) or ending symbol (\textbf{proof} environment).
|
||||
\item \textit{Conclusion Environments}, including \textbf{conclusion, assumption, property, remark, solution} environment, all of these begin with boldfaced words, and the contents are the same as a normal paragraph.
|
||||
\item \textit{Example Environments}, including \textbf{example, exercise, problem} environment, auto numbering corresponding to chapter.
|
||||
\item \textit{Proof Environment}, including \textbf{proof, note} environment containing introductory symbol (\textbf{note} environment) or ending symbol (\textbf{proof} environment).
|
||||
\item \textit{Conclusion Environments}, including \textbf{conclusion, assumption, property, remark and solution}\footnote{We also define an option \lstinline{result}, which can hide the \lstinline{solution} and \lstinline{proof} environments. You can switch between \lstinline{result=answer} and \lstinline{result=noanswer}.} environments, all of which begin with boldfaced words, with format consistent with normal paragraphs.
|
||||
\end{itemize}
|
||||
|
||||
\subsection{Theorem Class Environments}
|
||||
The template uses the \lstinline{tcolorbox} package to customize the theorem class environments, it is slightly different from the normal theorem environments. The usage is as follows:
|
||||
|
||||
\begin{lstlisting}[frame=single]
|
||||
Since the template uses the \lstinline{tcolorbox} package to customize the theorem class environments, it is slightly different from the normal theorem environments. The usage is as follows:
|
||||
\begin{lstlisting}
|
||||
\begin{theorem}{<theorem name>}{<label>}
|
||||
The content of theorem.
|
||||
\end{theorem}
|
||||
\end{lstlisting}
|
||||
|
||||
The first parameter \lstinline{<theorem name>} is the name of the theorem, and the second parameter \lstinline{label} is the label used in cross-reference with \verb|ref{thm:label}|. Note that cross-references must be prefixed with \lstinline{thm:}. The effect is as follows:
|
||||
The first parameter \lstinline{<theorem name>} represents the name of the theorem, and the second parameter \lstinline{label} represents the label used in cross-reference with \verb|ref{thm:label}|. Note that cross-references must be prefixed with \lstinline{thm:}.
|
||||
|
||||
\begin{theorem}{<theorem name>}{<label>}
|
||||
The content of theorem.
|
||||
\end{theorem}
|
||||
|
||||
Other theorem class environments with the same usage are:
|
||||
Other theorem class environments with the same usage includes:
|
||||
|
||||
\begin{table}[htbp]
|
||||
\centering
|
||||
@@ -208,9 +344,8 @@ Other theorem class environments with the same usage are:
|
||||
|
||||
|
||||
\subsection{Other Customized Environments}
|
||||
The other three math environments can be used directly since there are no options for them, the \lstinline{example} environment usage:
|
||||
|
||||
\begin{lstlisting}[frame=single]
|
||||
The other three math environments can be called directly since there are no additional option for them, e.g. \lstinline{example}:
|
||||
\begin{lstlisting}
|
||||
\begin{example}
|
||||
This is the content of example environment.
|
||||
\end{example}
|
||||
@@ -222,23 +357,24 @@ The effect is as follows:
|
||||
This is the content of example environment.
|
||||
\end{example}
|
||||
|
||||
These are all the same environments, except that
|
||||
These are all similar environments with slight differences lies in:
|
||||
|
||||
\begin{itemize}
|
||||
\item example, exercise, problem environments numbering within chapter;
|
||||
\item note with introductory symbol, proof with ending symbol;
|
||||
\item conclusion environment with boldfaced keywords and normal paragraph content.
|
||||
\item Example, exercise, problem environments number within chapter;
|
||||
\item Note begins with introductory symbol and proof ends with ending symbol;
|
||||
\item Conclusion and other environments are normal paragraph environments with boldfaced introductory words.
|
||||
\end{itemize}
|
||||
|
||||
\section{Base Hide Option}
|
||||
Hiding the end-of-chapter and end-of-page base is optional, simply type in:
|
||||
\begin{lstlisting}
|
||||
\documentclass[hide]{elegantbook} %or
|
||||
\documentclass[base=hide]{elegantbook}
|
||||
\end{lstlisting}
|
||||
|
||||
\section{Cover and Logo}
|
||||
|
||||
The cover image used in this template is from \href{https://pixabay.com/en/tea-time-poetry-coffee-reading-3240766/}{pixabay.com}\footnote{Thank China\TeX{} for providing free image source site, and \href{https://www.pexels.com/}{pexels.com} is also recommended.}. The image is completely free and can be used in any circumstance. The cover image size is $1280 \times 1024$, when changing the cover, please crop it according to the size of the cover picture strictly. Here is a free online image clipping site: \href{https://www.befunky.com/create/crop-photo/}{befunky.com}.
|
||||
|
||||
This Logo ratio is 1:1, that is square picture. In the replacement of the picture, please choose the appropriate picture to replace.
|
||||
|
||||
\section{List Environments}
|
||||
This template uses \lstinline{tikz} to customize \lstinline{itemize} and \lstinline{enumerate} environments, the \lstinline{itemize} environment customized to the third depth, and \lstinline{enumerate} environment customized to fourth depth. The effect is as follows\\[2ex]
|
||||
This template uses \lstinline{tikz} to customize the list environments, with \lstinline{itemize} environment customized to the third depth and \lstinline{enumerate} environment customized to fourth depth. The effect is as follows\\[2ex]
|
||||
\begin{minipage}[b]{0.49\textwidth}
|
||||
\begin{itemize}
|
||||
\item first item of nesti;
|
||||
@@ -270,26 +406,210 @@ This template uses \lstinline{tikz} to customize \lstinline{itemize} and \lstinl
|
||||
|
||||
\section{Bibliography}
|
||||
|
||||
This template uses \BibTeX{} 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 \hologo{BibTeX} to generate the bibliography, the default bibliography style is \lstinline{aer}. Let's take a glance at the citation effect. ~\cite{en1} 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 \BibTeX{}, you must create a file named \lstinline{reference.bib}, and add bib items (from Google Scholar, Mendeley, EndNote, and etc.) to \lstinline{reference.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 \hologo{BibTeX}, you must create a file named \lstinline{reference.bib}, add bib items (from Google Scholar, Mendeley, EndNote, and etc.) to \lstinline{reference.bib} file, then cite the bibkey in the \lstinline{tex} file. The Bib\TeX{} will automatically generate the bibliography for the reference you cited. If you want to add some noncited reference to the bibliography, you can use
|
||||
\begin{lstlisting}[frame=single]
|
||||
\nocite{EINAV2010,Havrylchyk2018} %or include some bibitems
|
||||
\nocite{*} %include all the bibitems
|
||||
\end{lstlisting}
|
||||
|
||||
Three more options \lstinline{cite=numbers}, \lstinline{cite=super} and \lstinline{cite=authoryear} are available in this new version, with the default setting as \lstinline{numbers} since those major in science and technology use \lstinline{numbers} and/or \lstinline{cite=super} more often. For those who want to use \lstinline{cite=super} or \lstinline{authoryear}, please type in:
|
||||
\begin{lstlisting}
|
||||
\nocite{EINAV2010, Havrylchyk2018}
|
||||
\documentclass[cite=super]{elegantbook} % set cite for super style
|
||||
\documentclass[super]{elegantbook}
|
||||
\documentclass[cite=authoryear]{elegantbook} % set cite for author-year style
|
||||
\documentclass[authoryear]{elegantbook}
|
||||
\end{lstlisting}
|
||||
|
||||
To change the bibliography style, this version introduces \lstinline{bibstyle} with default option apalike, for more options, refer to \href{https://www.overleaf.com/learn/latex/Bibtex_bibliography_styles}{\hologo{BibTeX} Bibliography Styles}. Type in
|
||||
\begin{lstlisting}
|
||||
\documentclass[bibstyle=apalike]{elegantbook}
|
||||
\end{lstlisting}
|
||||
|
||||
\section{Preface}
|
||||
|
||||
If you want to add a preface before the first chapter without changing the number of chapter, you can use it before the first chapter
|
||||
|
||||
\begin{lstlisting}[frame=single]
|
||||
\chapter*{Preface}
|
||||
\addcontentsline{toc}{chapter}{Preface}
|
||||
\markboth{Preface}{}
|
||||
The content of Preface.
|
||||
If you want to add a preface before the first chapter with the number of chapter unchanged, please add the preface in the following way:
|
||||
\begin{lstlisting}
|
||||
\chapter*{Introduction}
|
||||
\markboth{Introduction}{Introduction}
|
||||
The content of introduction.
|
||||
\end{lstlisting}
|
||||
|
||||
\section{Content Option and Depth}
|
||||
This version adds an option for content \lstinline{toc}, you can choose either one column(\lstinline{onecol}) or two columns(\lstinline{twocol}). For two columns:
|
||||
\begin{lstlisting}
|
||||
\documentclass[twocol]{elegantbook}
|
||||
\documentclass[toc=twocol]{elegantbook}
|
||||
\end{lstlisting}
|
||||
|
||||
Default content depth is 1, use
|
||||
\begin{lstlisting}
|
||||
\setcounter{tocdepth}{2}
|
||||
\end{lstlisting}
|
||||
to make it 2.
|
||||
|
||||
|
||||
\section{Introduction Environment}
|
||||
We create a introduction environment to display the structure of chapter. The basic useage is as follows:
|
||||
\begin{lstlisting}
|
||||
\begin{introduction}
|
||||
\item Definition of Theorem
|
||||
\item Ask for help
|
||||
\item Optimization Problem
|
||||
\item Property of Cauchy Series
|
||||
\item Angle of Corner
|
||||
\end{introduction}
|
||||
\end{lstlisting}
|
||||
And you will get:
|
||||
\begin{introduction}
|
||||
\item Definition of Theorem
|
||||
\item Ask for help
|
||||
\item Optimization Problem
|
||||
\item Property of Cauchy Series
|
||||
\item Angle of Corner
|
||||
\end{introduction}
|
||||
|
||||
You can change the title of this environment by modifying the optional argument of this environment:
|
||||
\begin{lstlisting}
|
||||
\begin{introduction}[Brief Introduction]
|
||||
...
|
||||
\end{introduction}
|
||||
\end{lstlisting}
|
||||
|
||||
\section{Problem Set}
|
||||
The environment \lstinline{problemset} is used at the end of each chapter to display corresponding exercises. Just type in the following sentences:
|
||||
\begin{lstlisting}
|
||||
\begin{problemset}
|
||||
\item exercise 1
|
||||
\item exercise 2
|
||||
\item exercise 3
|
||||
\end{problemset}
|
||||
\end{lstlisting}
|
||||
And you will get:
|
||||
\begin{problemset}
|
||||
\item exercise 1
|
||||
\item exercise 2
|
||||
\item exercise 3
|
||||
\item math equation test:
|
||||
\begin{equation}
|
||||
a^2+b^2=c_{2_{i}} (1,2) [1,23]
|
||||
\end{equation}
|
||||
\end{problemset}
|
||||
\begin{remark}
|
||||
If you want to customize the title of \lstinline{problemset}, please change the optional argument like in introduction environment. In this version the \lstinline{problemset} environment automatically appears in the table of contents but not in the header or footer(to be fixed).
|
||||
\end{remark}
|
||||
|
||||
\begin{solution}
|
||||
If you want to customize the title of \lstinline{problemset}, please change the optional argument like in introduction environment. In this version the \lstinline{problemset} environment automatically appears in the table of contents but not in the header or footer(to be fixed).
|
||||
\end{solution}
|
||||
|
||||
\section{Margin Notes}
|
||||
In 3.08, we introduced \lstinline{marginpar=margintrue} and \lstinline{\elegantpar} (Beta) with piles of bugs. Hence we decide to remove them in 3.09 and will suspend the options till revolutionary optimization. Sorry for all the bugs! However, we retain the option \lstinline{marginpar} for users to get margin motes by activating \lstinline{marginpar=margintrue} and using \lstinline{\marginpar} or \lstinline{marginnote} packages.
|
||||
|
||||
\begin{remark}
|
||||
Note that text and equation are both available in the margin notes.
|
||||
\begin{lstlisting}
|
||||
% text
|
||||
\marginpar{margin paragraph text}
|
||||
|
||||
% equation
|
||||
\marginpar{
|
||||
\begin{equation}
|
||||
a^2 + b^2 = c^2
|
||||
\end{equation}
|
||||
}
|
||||
\end{lstlisting}
|
||||
|
||||
For tables and figures, note that floating environment is not allowed. You have to use \lstinline{includegraphics} or \lstinline{table} and use \lstinline{\captionof} to name it. To get centralized figures or tables, use \lstinline{\centerline} or \lstinline{center}. To learn more, please refer to \href{https://tex.stackexchange.com/questions/5583/caption-of-figure-in-marginpar-and-caption-of-wrapfigure-in-margin}{Caption of Figure in Marginpar}.
|
||||
|
||||
\begin{lstlisting}
|
||||
% graph with centerline command
|
||||
\marginpar{
|
||||
\centerline{
|
||||
\includegraphics[width=0.2\textwidth]{logo.png}
|
||||
}
|
||||
\captionof{figure}{your figure caption}
|
||||
}
|
||||
|
||||
% graph with center environment
|
||||
\marginpar{
|
||||
\begin{center}
|
||||
\includegraphics[width=0.2\textwidth]{logo.png}
|
||||
\captionof{figure}{your figure caption}
|
||||
\end{center}
|
||||
}
|
||||
\end{lstlisting}
|
||||
|
||||
\end{remark}
|
||||
|
||||
\chapter{Fonts}
|
||||
Leave one chapter to introduce fonts to help users to solve font problems conveniently.
|
||||
|
||||
\textcolor{red}{\bfseries Alert} After v3.10, newtx is reset to cm and \lstinline{chinesefont} option is added.
|
||||
|
||||
\section{Math Fonts}
|
||||
This template defines a new command(\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}
|
||||
|
||||
\section{Use newtx fonts}
|
||||
If you use \lstinline{newtx} fonts, type in:
|
||||
|
||||
\begin{lstlisting}
|
||||
\documentclass[math=newtx]{elegantbook}
|
||||
\end{lstlisting}
|
||||
|
||||
|
||||
\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}
|
||||
|
||||
The corresponding code is:
|
||||
\begin{lstlisting}
|
||||
\begin{equation}
|
||||
\int_{R^q} f(x,y) dy.\emph{of \kern0pt f}
|
||||
\end{equation}
|
||||
\end{lstlisting}
|
||||
|
||||
\section{Symbol Fonts}
|
||||
Feedback from some 3.08 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{elegantbook.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}
|
||||
|
||||
|
||||
\chapter{ElegantBook Writing Sample}
|
||||
|
||||
\begin{introduction}
|
||||
\item Theorem Class Envrionments
|
||||
\item Cross Reference
|
||||
\item Math Environments
|
||||
\item List Environments
|
||||
\item Logo and Base
|
||||
\item $a^2+b^2=c^2$
|
||||
\end{introduction}
|
||||
|
||||
|
||||
\lipsum[1]
|
||||
% source: https://www.maths.tcd.ie/~dwilkins/LaTeXPrimer/Theorems.html
|
||||
|
||||
@@ -298,7 +618,7 @@ The content of Preface.
|
||||
We will define the integral of a measurable function in three steps. First, we define the integral of a nonnegative simple function. Let $E$ be the measurable set in $\mathcal{R}^N$.
|
||||
|
||||
\begin{definition}{Left Coset}{}
|
||||
Let $H$ be a subgroup of a group~$G$. A \emph{left coset} of $H$ in $G$ is a subset of $G$ that is of the form $xH$, where $x \in G$ and $xH = \{ xh : h \in H \}$. Similarly a \emph{right coset} of $H$ in $G$ is a subset of $G$ that is of the form $Hx$, where $Hx = \{ hx : h \in H \}$
|
||||
Let $H$ be a subgroup of a group~$G$. A \emph{left coset} of $H$ in $G$ is a subset of $G$ that is of the form $xH$, where $x \in G$ and $xH = \{ xh : h \in H \}$. Similarly a \emph{right coset} of $H$ in $G$ is a subset of $G$ that is of the form $Hx$, where $Hx = \{ hx : h \in H \}$ $\hbar$
|
||||
\end{definition}
|
||||
|
||||
\begin{note}
|
||||
@@ -323,9 +643,9 @@ Let $z$ be some element of $xH \cap yH$. Then $z = xa$ for some $a \in H$, and
|
||||
\end{proof}
|
||||
|
||||
\begin{figure}[htbp]
|
||||
\centering
|
||||
\includegraphics[width=0.6\textwidth]{scatter.pdf}
|
||||
\caption{Matplotlib: Scatter Plot Example\label{fig:scatter}}
|
||||
\centering
|
||||
\includegraphics[width=0.6\textwidth]{scatter.pdf}
|
||||
\caption{Matplotlib: Scatter Plot Example\label{fig:scatter}}
|
||||
\end{figure}
|
||||
|
||||
Regression analysis is a powerful statistical method that allows you to examine the relationship between two or more variables of interest. While there are many types of regression analysis, at their core they all examine the influence of one or more independent variables on a dependent variable. The process of performing a regression allows you to confidently determine which factors matter most, which factors can be ignored, and how these factors influence each other.
|
||||
@@ -358,67 +678,86 @@ Let's continue using our application training example. In this case, we'd want t
|
||||
\lipsum[1-2]
|
||||
|
||||
\begin{itemize}
|
||||
\item Routing and resource discovery;
|
||||
\begin{itemize}
|
||||
\item Language Models
|
||||
\item Vector Space Models
|
||||
\end{itemize}
|
||||
\item Resilient and scalable computer networks;
|
||||
\item Distributed storage and search.
|
||||
\item Routing and resource discovery;
|
||||
\begin{itemize}
|
||||
\item Language Models
|
||||
\item Vector Space Models
|
||||
\end{itemize}
|
||||
\item Resilient and scalable computer networks;
|
||||
\item Distributed storage and search.
|
||||
\end{itemize}
|
||||
|
||||
\begin{problemset}
|
||||
\item Solve the equation $5(- 3x - 2) - (x - 3) = -4(4x + 5) + 13$.
|
||||
\item Find the distance between the points (-4 , -5) and (-1 , -1).
|
||||
\item Find the slope of the line $5x - 5y = 7$.
|
||||
\end{problemset}
|
||||
|
||||
\nocite{Havrylchyk2018}
|
||||
|
||||
\chapter{FAQ}
|
||||
We list some FAQs for users to refer to:
|
||||
\begin{enumerate}
|
||||
\item \question{Why option numbers for natbib fail to take effect in v3.07?}
|
||||
In v3.07, when \lstinline{gbt7714} is introduced, option \lstinline{authoryear} is incompatible with \lstinline{natbib}. In v3.08 and 3.09, \lstinline{numbers}, \lstinline{numbers}, \lstinline{super} and \lstinline{authoryear} are introduced.
|
||||
\item \question{I want to customize font and background color.}
|
||||
Please use \lstinline{pagecolor} to change background color, refer to \href{https://tex.stackexchange.com/questions/278544/xcolor-what-is-the-equivalent-of-default-text-color}{this} to customize font.
|
||||
\item \question{Which version should I choose?}
|
||||
Please use \href{https://github.com/ElegantLaTeX/ElegantBook/releases}{Latest Release} via GitHub or \TeX{} Live 2019.
|
||||
\item \question{Which editor should I choose?}
|
||||
You can use \TeX{} Live 2019 built-in \TeX works or \TeX Studio. You may refer to \href{https://github.com/EthanDeng/texworks-autocomplete}{\TeX{}works autocomplete}. \TeX{} Live 2019 + \TeX{}studio is strongly recommended. I myself use VS Code and Sublime Text. Related configurations can be found at \href{https://github.com/EthanDeng/vscode-latex}{vscode-latex} and \href{https://github.com/EthanDeng/sublime-text-latex}{sublime-text-latex}.
|
||||
\item \question{Hello, we want to use ElegantBook to write a book about machine learning and would like your authorization.}
|
||||
Feel free to use our templates by pointing out our copyright. For other issues, please refer to LPPL-1.3c. If you want to show us your work, share the URL with us afterwards.
|
||||
\item \question{What is cross reference?}
|
||||
This template is aimed at who are not a complete beginner for \LaTeX{}. Please learn more about \LaTeX{} before using this template.
|
||||
\item \question{Is the language for code highlighting optional?}
|
||||
Yes, \lstinline{listings} package is used in ElegantBook, hence language is optional(e.g. \lstinline{language=Python}). For global setting, use \lstinline{lstset}. For more information, please refer to package documentations.
|
||||
\item \question{When will Beamer template (ElegantSlide or ElegantBeamer) forthcoming?}
|
||||
Since there is an excellent theme \href{https://github.com/matze/mtheme}{Metropolis}, a Beta theme PreElegantSlide is available in QQ group. Feel free to download. A formal version is forthcoming in this year or next year.
|
||||
\end{enumerate}
|
||||
|
||||
\chapter{Version History}
|
||||
We revised our templates now and then. This section shows the version story of ElegantBook. We have nearly 100 submits and 16 releases on GitHub since uploaded.
|
||||
|
||||
\datechange{2020/02/10}{release of v3.10}
|
||||
|
||||
\begin{change}
|
||||
\item Introduce \lstinline{math} for math font, optional styles are \lstinline{newtx} and \lstinline{cm}.\\
|
||||
\textbf{Notice}: The math font \lstinline{newtxmath} in previous versions is reset to default \LaTeX{} math font, to keep previous math font, please declare \lstinline{math=newtx}.
|
||||
\item Introduce \lstinline{chinesefont} option, with \lstinline{founder}, \lstinline{ctexfont} and \lstinline{nofont} available.
|
||||
\item Turn author information on the cover optional and add customized command \lstinline{\bioinfo}.
|
||||
\item Add version history with command \lstinline{\datechange} and environment \lstinline{change}.
|
||||
\item Add Chinese chapter style \lstinline{scheme} with option \lstinline{chinese}.
|
||||
\item Since the bug raised by \lstinline{\lvert} is fixed, exchange package positions of \lstinline{ctex} and \lstinline{amsmath}.
|
||||
\item Drop \lstinline{\lastpage} from header to avoid page anchor bug and adding \lstinline{\frontmatter}.
|
||||
\item Revise bibliography option \lstinline{cite} with optional styles \lstinline{numbers},\lstinline{authoryear} and \lstinline{super}.
|
||||
\item Introduce bibliography style option \lstinline{bibstyle}, with default bib style \lstinline{apalike} for English mode and \lstinline{gbt7714} package for Chinese mode.
|
||||
\end{change}
|
||||
|
||||
\datechange{2019/08/18}{release of v3.09}
|
||||
|
||||
\begin{change}
|
||||
\item Remove \lstinline{\elegantpar} temporary and remind users to use \lstinline{\marginnote} and \lstinline{\marginpar} instead.
|
||||
\item Use \lstinline{esint} to display integral operator.
|
||||
\item Add new command \lstinline{toc}, with options \lstinline{onecol} and \lstinline{twocol}.
|
||||
\item Add new option \lstinline{cite} \lstinline{super} for superscript-displayed citation.
|
||||
\item Revise \lstinline{problemset}.
|
||||
\end{change}
|
||||
|
||||
|
||||
\nocite{en1,en2,en3}
|
||||
\bibliography{reference}
|
||||
|
||||
\appendix
|
||||
|
||||
\chapter{Mathematical Tools}
|
||||
|
||||
This appendix covers some of the basic mathematics used in econometrics. We briefly discuss the properties of summation operators, study the properties of linear and some nonlinear equations, and review the ratios and percentages. We also introduce some special functions that are common in econometrics applications, including quadratic functions and natural logarithms. The first four sections require only basic algebraic techniques. The fifth section briefly reviews differential Calculus Although Calculus is not necessary to understand much of this book, it is used in some of the end-of-chapter appendices and in some of the more advanced topics in part 3.
|
||||
|
||||
\section{Summation Operator and Description Statistics}
|
||||
|
||||
\textbf{Summation Operator} is an abbreviation used to express the summation of numbers, it plays an important role in statistics and econometrics analysis. If $\{x_i: i=1, 2, \ldots, n\}$ is a sequence of $n$ numbers, the summation of the $n$ numbers is:
|
||||
\textbf{Summation Operator} is an abbreviation used to express the summation of numbers, it plays an important role in statistics and econometrics analysis. If $\{x_i: i=1, 2, \ldots, n\}$ is a sequence of $n$ numbers, the summation of the $n$ numbers is:
|
||||
|
||||
\begin{equation}
|
||||
\sum_{i=1}^n x_i \equiv x_1 + x_2 +\cdots + x_n
|
||||
\end{equation}
|
||||
|
||||
\chapter{A Minimal Example}
|
||||
|
||||
\begin{lstlisting}[frame=single]
|
||||
\documentclass{elegantbook}
|
||||
% title info
|
||||
\title{Title}
|
||||
\subtitle{Subtitle is here}
|
||||
% bio info
|
||||
\author{Your Name}
|
||||
\institute{XXX University}
|
||||
\date{\today}
|
||||
% extra info
|
||||
\version{1.00}
|
||||
\equote{Victory won\rq t come to us unless we go to it. --- M. Moore}
|
||||
\logo{logo.png}
|
||||
\cover{cover.jpg}
|
||||
|
||||
\begin{document}
|
||||
|
||||
\maketitle
|
||||
\tableofcontents
|
||||
\mainmatter
|
||||
\hypersetup{pageanchor=true}
|
||||
% add preface chapter here if needed
|
||||
\chapter{Example Chapter Title}
|
||||
The content of chapter one.
|
||||
|
||||
\bibliography{reference}
|
||||
|
||||
\appendix
|
||||
\chapter{Appendix Chapter Title}
|
||||
The content of appendix 1.
|
||||
|
||||
\end{document}
|
||||
\end{lstlisting}
|
||||
|
||||
\end{document}
|
||||
1026
elegantbook.cls
BIN
figure/cover.jpg
|
Before Width: | Height: | Size: 476 KiB After Width: | Height: | Size: 416 KiB |
BIN
figure/logo-blue.png
Normal file
|
After Width: | Height: | Size: 90 KiB |
BIN
image/cert.pdf
Normal file
BIN
image/donate.jpg
Normal file
|
After Width: | Height: | Size: 138 KiB |
BIN
image/founder.png
Normal file
|
After Width: | Height: | Size: 87 KiB |
BIN
image/star.png
Normal file
|
After Width: | Height: | Size: 45 KiB |
BIN
image/tlshell.png
Normal file
|
After Width: | Height: | Size: 126 KiB |
@@ -1,5 +0,0 @@
|
||||
@echo off
|
||||
del /q *.aux *.bbl *.blg *.log *.out *.toc *.bcf *.xml *.synctex *.nlo *.nls *.bak *.ind *.idx *.ilg *.lof *.lot *.ent-x *.tmp *.ltx *.los *.lol *.loc *.listing *.gz *.userbak *.nav *.snm *.vrb
|
||||
|
||||
|
||||
del /q *.nav *.snm *.vrb *.fls *.xdv *.fdb_latexmk
|
||||
129
reference.bib
@@ -1,70 +1,71 @@
|
||||
% Encoding: UTF-8
|
||||
@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{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{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{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{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{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{cn1,
|
||||
author = {方军雄},
|
||||
key = {fang1 jun1 xiong2},
|
||||
title = {{所有制、制度环境与信贷资金配置}},
|
||||
journal = {经济研究},
|
||||
number = {12},
|
||||
pages = {82-92},
|
||||
ISSN = {0577-9154},
|
||||
year = {2007},
|
||||
type = {Journal Article}
|
||||
}
|
||||
|
||||
@article{cn2,
|
||||
author = {刘凤良 and 章潇萌 and 于泽},
|
||||
key = {liu2 feng4 liang2 zhang1 xiao1 meng2 yu2 ze2},
|
||||
title = {{高投资、结构失衡与价格指数二元分化}},
|
||||
journal = {金融研究},
|
||||
number = {02},
|
||||
pages = {54-69},
|
||||
ISSN = {1002-7246},
|
||||
year = {2017},
|
||||
type = {Journal Article}
|
||||
}
|
||||
|
||||
@article{cn3,
|
||||
author = {吕捷 and 王高望},
|
||||
key = {lv3 jie2 wang2 gao1 wang4},
|
||||
title = {{CPI 与 PPI “背离”的结构性解释}},
|
||||
journal = {经济研究},
|
||||
volume = {50},
|
||||
number = {04},
|
||||
pages = {136-149},
|
||||
ISSN = {0577-9154},
|
||||
year = {2015},
|
||||
type = {Journal Article}
|
||||
}
|
||||
|
||||
@Comment{jabref-meta: databaseType:bibtex;}
|
||||
|
||||