mirror of
https://github.com/ElegantLaTeX/ElegantBook.git
synced 2026-01-26 20:34:36 +08:00
Compare commits
105 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
34e2225019 | ||
|
|
91f5e46c94 | ||
|
|
6a60b16e14 | ||
|
|
909fb2c997 | ||
|
|
c669c4a263 | ||
|
|
53547c11e4 | ||
|
|
093c73e4c9 | ||
|
|
3d0f25cc6a | ||
|
|
a7e5c032c5 | ||
|
|
bf40203c9f | ||
|
|
b518213c77 | ||
|
|
71c0f9e1a5 | ||
|
|
d40cb2c42e | ||
|
|
6c64e5900b | ||
|
|
3bebe9697f | ||
|
|
30a916c26c | ||
|
|
61ac6a08c4 | ||
|
|
f123c6a83b | ||
|
|
e771b81dc8 | ||
|
|
f75907371d | ||
|
|
f192cf44fa | ||
|
|
ce87722d38 | ||
|
|
01951eeb28 | ||
|
|
4e53474e6e | ||
|
|
cf755a0387 | ||
|
|
9092103354 | ||
|
|
303d2e5c9d | ||
|
|
a8123170ca | ||
|
|
5d02e85f01 | ||
|
|
9ef6a5bf5a | ||
|
|
d281e3e834 | ||
|
|
78fe2c7daf | ||
|
|
ae7a9ae8f6 | ||
|
|
c84f79922d | ||
|
|
6ab10beda8 | ||
|
|
09b71b9ab7 | ||
|
|
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 |
2
.gitignore
vendored
2
.gitignore
vendored
@@ -11,8 +11,10 @@
|
|||||||
*.cb
|
*.cb
|
||||||
*.cb2
|
*.cb2
|
||||||
.*.lb
|
.*.lb
|
||||||
|
clean.bat
|
||||||
elegant*-cn.pdf
|
elegant*-cn.pdf
|
||||||
elegant*-en.pdf
|
elegant*-en.pdf
|
||||||
|
*.dates
|
||||||
|
|
||||||
## Intermediate documents:
|
## Intermediate documents:
|
||||||
*.dvi
|
*.dvi
|
||||||
|
|||||||
34
README-CN.md
Normal file
34
README-CN.md
Normal file
@@ -0,0 +1,34 @@
|
|||||||
|
<!-- Author : Dongsheng Deng & Liam Huang-->
|
||||||
|
<!-- Program Email: elegantlatex2e@gmail.com -->
|
||||||
|
|
||||||
|
[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 优美的 LaTeX 书籍模板
|
||||||
|
|
||||||
|
ElegantBook 是为 LaTeX 书籍写作而设计的模板,由 [Dongsheng Deng](https://ddswhu.me/) 和 [Liam Huang](https://liam.page/) 创立,模板创立的初衷是方便我们自己做笔记 :smile:。如果你有其他问题、建议或者报告 bug,可以提交 issues 或者给我们发邮件:elegantlatex2e@gmail.com。QQ 用户交流群:692108391,欢迎加入。
|
||||||
|
|
||||||
|
## 重要提示
|
||||||
|
|
||||||
|
**重要提示**:ElegantLaTeX 项目 **不接受** 任何非预授权的提交(pull requests)!
|
||||||
|
|
||||||
|
## 致谢
|
||||||
|
|
||||||
|
特别感谢 [sikouhjw](https://github.com/sikouhjw) 长期以来对于 Github 上 issue 的快速回应,以及各个社区论坛对于 ElegantLaTeX 相关问题的回复。
|
||||||
|
|
||||||
|
特别感谢 ChinaTeX 以及 [LaTeX 工作室](http://www.latexstudio.net/)对于本系列模板的大力宣传与推广。
|
||||||
|
|
||||||
|
如果你喜欢我们的模板,你可以在 Github 上收藏我们的模板。
|
||||||
|
|
||||||
|
## 协议
|
||||||
|
|
||||||
|
本模板发布遵循 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 模板。
|
||||||
33
README.md
33
README.md
@@ -1,25 +1,34 @@
|
|||||||
<!-- Author : Dongsheng Deng & Liam Huang-->
|
<!-- Author : Dongsheng Deng & Liam Huang-->
|
||||||
<!-- Program Email: elegantlatex2e@gmail.com -->
|
<!-- 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)
|
[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 or contact us at elegantlatex2e@gmail.com.
|
-------
|
||||||
|
|
||||||
如果你有其他问题、建议或者报告 bug,可以提交 issues 或者给我们发邮件:elegantlatex2e@gmail.com。最近我们新建了一个 QQ 用户交流群(Q 群:692108391),欢迎加入。
|
# ElegantBook: An Elegant LaTeX Template for Books
|
||||||
|
|
||||||
**注意:** 由于新版本进行了重构,并且 3.6 版本对于封面进行了改版,3.6 以后的版本并不兼容之前版本,如果你想把之前版本的文件转为 3.6 以后的版本,请查看[跨版本转换](https://github.com/ElegantLaTeX/ElegantBook/wiki/convert)。
|
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.
|
||||||
|
|
||||||
**重要提示:出于某些因素的考虑,ElegantLaTeX 项目自 2019 年 5 月 20 日开始,不再接受任何非作者预约性质的提交(pull request)!如果你想改进模板,你可以给我们提交 issue,或者可以在遵循协议的情况下,克隆到自己仓库下进行修改**。
|
## Important Notes
|
||||||
|
|
||||||
# License
|
For some reasons, __unauthorized__ 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
|
||||||
|
|
||||||
|
Thank [sikouhjw](https://github.com/sikouhjw) for his quick response to Github issues and continuously support work for ElegantLaTeX.
|
||||||
|
|
||||||
|
Thank ChinaTeX and [LaTeX Studio](http://www.latexstudio.net/) for their promotion.
|
||||||
|
|
||||||
|
|
||||||
|
## License
|
||||||
|
|
||||||
This work is released under the LaTeX Project Public License, v1.3c or later.
|
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,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 *.synctex(busy)
|
|
||||||
|
|
||||||
|
|
||||||
del /q *.nav *.snm *.vrb *.fls *.xdv *.fdb_latexmk
|
|
||||||
File diff suppressed because it is too large
Load Diff
@@ -1,26 +1,31 @@
|
|||||||
\documentclass[fancy,blue,11pt]{elegantbook}
|
\documentclass[11pt,fancy]{elegantbook}
|
||||||
|
|
||||||
\title{An Elegant \LaTeX{} Template for Books}
|
\title{An Elegant \LaTeX{} Template for Books}
|
||||||
\subtitle{Classic Elegant\LaTeX{} Template}
|
\subtitle{Classic Elegant\LaTeX{} Template}
|
||||||
|
|
||||||
\author{Ethan Deng \& Liam Huang}
|
\author{Ethan Deng \& Liam Huang}
|
||||||
\institute{Elegant\LaTeX{} Program}
|
\institute{Elegant\LaTeX{} Program}
|
||||||
\date{\today}
|
\date{March 8, 2022}
|
||||||
\version{3.08}
|
\version{4.2}
|
||||||
|
\bioinfo{Bio}{Information}
|
||||||
|
|
||||||
\extrainfo{Victory won\rq t come to us unless we go to it. }
|
\extrainfo{Victory won\rq t come to us unless we go to it. }
|
||||||
|
|
||||||
\logo{logo.png}
|
\logo{logo-blue.png}
|
||||||
\cover{cover.jpg}
|
\cover{cover.jpg}
|
||||||
|
|
||||||
|
\definecolor{customcolor}{RGB}{32,178,170}
|
||||||
|
\colorlet{coverlinecolor}{customcolor}
|
||||||
|
|
||||||
|
|
||||||
\begin{document}
|
\begin{document}
|
||||||
|
|
||||||
\maketitle
|
\maketitle
|
||||||
|
|
||||||
|
\frontmatter
|
||||||
\tableofcontents
|
\tableofcontents
|
||||||
\clearpage
|
|
||||||
\thispagestyle{empty}
|
|
||||||
\mainmatter
|
\mainmatter
|
||||||
\hypersetup{pageanchor=true}
|
|
||||||
|
|
||||||
\chapter{Elegant\LaTeX{} Templates}
|
\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}.
|
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}.
|
||||||
@@ -28,126 +33,91 @@ Elegant\LaTeX{} Program developers are intended to provide you beautiful, elegan
|
|||||||
Contact Infos:
|
Contact Infos:
|
||||||
\begin{itemize}
|
\begin{itemize}
|
||||||
\item Homepage: \href{https://elegantlatex.org/}{https://elegantlatex.org/}
|
\item Homepage: \href{https://elegantlatex.org/}{https://elegantlatex.org/}
|
||||||
\item Github: \href{https://github.com/ElegantLaTeX/}{https://github.com/ElegantLaTeX/}
|
\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 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 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 Download: \href{https://github.com/ElegantLaTeX/ElegantBook/releases}{release}, \href{https://github.com/ElegantLaTeX/ElegantBook/archive/master.zip}{latest version}
|
||||||
\item Weibo: ElegantLaTeX
|
\item Weibo: Elegant\LaTeX{}
|
||||||
\item Wechat: ElegantLaTeX
|
\item Wechat: Elegant\LaTeX{}
|
||||||
\item QQ: 692108391
|
\item QQ: 692108391
|
||||||
\item Email: \email{elegantlatex2e@gmail.com}
|
\item Email: \email{elegantlatex2e@gmail.com}
|
||||||
\end{itemize}
|
\end{itemize}
|
||||||
|
|
||||||
|
|
||||||
\section{ElegantBook Updates}
|
|
||||||
What\rq s new in this version:
|
|
||||||
\begin{enumerate}
|
|
||||||
\item Fix \lstinline|\part|.
|
|
||||||
\item Introduce pad mode.
|
|
||||||
\item Support mtpro2 package.
|
|
||||||
\item Revise default format of references to numbers.
|
|
||||||
\item Include environment for chapter introduction.
|
|
||||||
\item Include environment for problem set.
|
|
||||||
\item Include margin note using \lstinline{\elegantpar} (beta).
|
|
||||||
\item Reduce line spacing for equations.
|
|
||||||
\item Turn \lstinline{\equote} into \lstinline{\extrainfo}, with multi-line display.
|
|
||||||
\item Polish documentation by including acknowledgement, etc.
|
|
||||||
\end{enumerate}
|
|
||||||
|
|
||||||
\begin{note}
|
\section{ElegantBook Updates}
|
||||||
Since the latest version has witnessed huge reconstruction (with cover change in version 3.06), 3.x is backward incompatible with 2.x. For those who would like to convert documents compiled with earlier version (3.06 or 2.x) to be compatible with latest version, please refer to \href{https://github.com/ElegantLaTeX/ElegantBook/wiki/convert}{conversion}. Questions about version 2.x will not be answered henceforth.
|
|
||||||
\end{note}
|
Version 4.2 is the \textit{temporary} version before v4.3 which will be released when \TeX Live 2022 is ready, we add quick bug fix caused by newtx package updates, and multilingual translation \lstinline{lang=jp}. What\rq s new in this version:
|
||||||
|
|
||||||
|
\begin{change}
|
||||||
|
\item Bug fix due to the update of newtx fonts;
|
||||||
|
\item Add `Chapter' in TOC, and redefine \lstinline{\chaptername} to unify the logic under different languages;
|
||||||
|
\item Add language option for Japanese, \lstinline{lang=jp}.
|
||||||
|
\item \textbf{! Warnings}: Due to this `urgent' fonts bug and TOC modification, the multilingual option may cause some unexpected errors, you can report in this \href{https://github.com/ElegantLaTeX/ElegantBook/issues/170}{issue}, I will fix it after the releases of \TeX{} Live 2022.
|
||||||
|
\end{change}
|
||||||
|
|
||||||
|
|
||||||
\section{Installation and Update}
|
\section{Installation and Update}
|
||||||
Both portable version and installation package are available for this template.
|
Both portable version and installation package are available, online usage is optional as well.
|
||||||
|
|
||||||
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.
|
\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}.
|
||||||
|
|
||||||
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.
|
\begin{remark}
|
||||||
|
On Overleaf, please use \hologo{XeLaTeX} to compile articles in Chinese and \hologo{pdfLaTeX} to compile articles in English.
|
||||||
|
\end{remark}
|
||||||
|
|
||||||
\begin{figure}[htbp]
|
\subsection{To Use Portable Version}
|
||||||
\centering
|
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.
|
||||||
\includegraphics[width=0.7\textwidth]{tlshell.png}
|
|
||||||
\caption{Use \TeX{} Live Shell to Install ElegantBook Template}
|
|
||||||
\end{figure}
|
|
||||||
|
|
||||||
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{}.
|
\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.
|
||||||
|
|
||||||
For more details about the installation and usage of \TeX{} Live 2019, the compatibility of C\TeX{} and \TeX{} Live, installation directory, etc., please refer to OG (Official Guide).
|
Use the following commands(administrator privileges) to update:
|
||||||
|
\begin{lstlisting}
|
||||||
|
tlmgr update --self
|
||||||
|
tlmgr update --all
|
||||||
|
\end{lstlisting}
|
||||||
|
|
||||||
\section{Online Usage of Templates}
|
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?}
|
||||||
Considering the online usage of the templates, all the templates are available on Overleaf. Those who enjoy smooth network may feel free to use the templates without \TeX{} Live and to visit your documents anywhere anytime. Search \lstinline{elegantlatex} on Overleaf or visit \href{https://www.overleaf.com/latex/templates?addsearch=elegantlatex}{search result}, choose the one you prefer and save it to your account, then you can edit yourself or corporate with others if you like. For more infomation about Overleaf, please refer to Overleaf OG.
|
|
||||||
|
|
||||||
\section{User\rq s Selected Works Plan}
|
\subsection{Other Release Versions}
|
||||||
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.
|
If you are a \TeX{} Live 2018/2019/2020 user and would like to update, the official solution is to uninstall the previous version. If you want to save the bother of uninstallation and re-installation, please copy \lstinline{elegantbook.cls} to the installation directory of \TeX{} Live 2021 (default: \lstinline|C:\texlive\2021\texmf-dist\tex\latex\elegantbook| ), run \lstinline{texhash} in cmd.
|
||||||
|
|
||||||
\section{About Pull Request}
|
\section{About Pull Request}
|
||||||
For some reasons, pull request is 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 constriction of LPPL-1.3c.
|
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(Chinese -> English), maintain wiki entries using MarkDown, update Wechat articles. No deadline for this recruitment.
|
|
||||||
|
|
||||||
Thank our best support members for their selfless work!
|
|
||||||
\begin{itemize}
|
|
||||||
\item OG Translator: \href{https://github.com/peggy2006xzyz}{YPY};
|
|
||||||
\item Wiki Maintainer: \href{https://github.com/izinngo}{Ingo Zinngo};
|
|
||||||
\item QQ Group Manager: \href{https://github.com/sikouhjw}{Sikouhjw}.
|
|
||||||
\end{itemize}
|
|
||||||
|
|
||||||
\section{Acknowledgement}
|
|
||||||
The number of stars on Github for ElegantBook reached 100 on May 20, 2019 and was included in the \href{https://github.com/trending/tex?since=daily}{Trending} under the \TeX{} catagory. It is a remarkable moment for Elegant\LaTeX{} !!!
|
|
||||||
|
|
||||||
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.
|
|
||||||
|
|
||||||
Thank muzimuzhi for the revision of the template.
|
|
||||||
|
|
||||||
If you like our template, star on Github.
|
|
||||||
\begin{figure}[htbp]
|
|
||||||
\centering
|
|
||||||
\includegraphics[width=\textwidth]{star.png}
|
|
||||||
\caption{Twinkle, Twinkle, Little Star}
|
|
||||||
\end{figure}
|
|
||||||
Recently some users have expressed their love for our templates and want to tip us. QR code for donation is now available.
|
|
||||||
\begin{figure}[htbp]
|
|
||||||
\centering
|
|
||||||
\includegraphics[width=0.5\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}[htbp]
|
|
||||||
\centering
|
|
||||||
\caption{Donation List}
|
|
||||||
\begin{tabular}{cccc}
|
|
||||||
\toprule
|
|
||||||
Tipper & Amount & Date & Channel \\
|
|
||||||
\midrule
|
|
||||||
Lerh & 10 RMB & 2019/5/15 & Wechat \\
|
|
||||||
Yueguodipingxian & 10 RMB & 2019/5/15 & Wechat \\
|
|
||||||
Dapeng & 20 RMB & 2019/5/27 & Wechat\\
|
|
||||||
\bottomrule
|
|
||||||
\end{tabular}%
|
|
||||||
\end{table}%
|
|
||||||
|
|
||||||
\chapter{ElegantBook Settings}
|
\chapter{ElegantBook Settings}
|
||||||
|
|
||||||
This template is based on the Standard \LaTeX{} book class, so the options of book class work as well. The default encoding is UTF-8 while \TeX{} Live is recommended. The test environment is Win10 + \TeX{} Live 2019.
|
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 2021, either \hologo{pdfLaTeX} or \hologo{XeLaTeX} works fine. \hologo{XeLaTeX} is preferred for Chinese articles.
|
||||||
|
|
||||||
|
|
||||||
\section{Languages}
|
\section{Languages}
|
||||||
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
|
We defined one option named \lstinline{lang} which has two basic values, \lstinline{lang=en} (default) , \lstinline{lang=cn}. Different values will alter the captions of figure/table, abstract name, refname, etc. You can use this option as
|
||||||
\begin{lstlisting}
|
\begin{lstlisting}
|
||||||
\documentclass[en]{elegantbook}
|
\documentclass[en]{elegantbook}
|
||||||
\documentclass[lang=en]{elegantbook}
|
\documentclass[lang=en]{elegantbook}
|
||||||
\end{lstlisting}
|
\end{lstlisting}
|
||||||
|
|
||||||
|
Besides the two basic language translation, our user provide more options, here is a short brief introduction to these translation. Since I am not familiar with these languages, I can't guarantee that the translations are correct, please comment on GitHub if you have some questions.
|
||||||
|
|
||||||
|
\begin{itemize}
|
||||||
|
\item Italian translation \lstinline{lang=it}, provided by \href{https://github.com/VincentMVV}{VincentMVV} , please refer to \href{https://github.com/ElegantLaTeX/ElegantBook/issues/85}{Italian translation};
|
||||||
|
\item French translation \lstinline{lang=fr}, provided by \href{https://github.com/abfek66}{abfek66} , please refer to \href{https://github.com/ElegantLaTeX/ElegantBook/issues/85}{Italian translation};
|
||||||
|
\item Dutch Translation \lstinline{lang=nl}, provided by \href{https://github.com/inktvis75}{inktvis75} , please refer to \href{https://github.com/ElegantLaTeX/ElegantBook/issues/108}{Dutch Translation};
|
||||||
|
\item Hungarian translation \lstinline{lang=hu}, provided by \href{https://github.com/palkotamas}{palkotamas}, please refer to \href{https://github.com/ElegantLaTeX/ElegantBook/issues/111}{Hungarian translation};
|
||||||
|
\item Deutsch translation \lstinline{lang=de}, provided by Lisa, please refer to\href{https://github.com/ElegantLaTeX/ElegantBook/issues/113}{Deutsch translation};
|
||||||
|
\item Spanish translation \lstinline{lang=es}, provided by Gustavo A. Corradi, please refer to \href{https://github.com/ElegantLaTeX/ElegantBook/issues/133}{Spanish translation};
|
||||||
|
\item Mongolian translation \lstinline{lang=mn}, provided by \href{https://github.com/Altantsooj}{Altantsooj}, please refer to \href{https://github.com/ElegantLaTeX/ElegantBook/issues/137}{Mongolian translation}.
|
||||||
|
\end{itemize}
|
||||||
|
|
||||||
\begin{remark}
|
\begin{remark}
|
||||||
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 \lstinline{XeLaTeX} to compile.
|
Chinese Characters are acceptable \textbf{ONLY} in \lstinline{lang=cn}.
|
||||||
\end{remark}
|
\end{remark}
|
||||||
|
|
||||||
\section{Device Mode Option}
|
\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}:
|
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}
|
\begin{lstlisting}
|
||||||
\documentclass[pad]{elegantbook} %or
|
\documentclass[pad]{elegantbook} %or
|
||||||
\documentclass[device=pad]{elegantbook}
|
\documentclass[device=pad]{elegantbook}
|
||||||
@@ -209,16 +179,52 @@ If you want to customize the colors, please select \lstinline{nocolor} or use \l
|
|||||||
\definecolor{third}{RGB}{0,174,247}%
|
\definecolor{third}{RGB}{0,174,247}%
|
||||||
\end{lstlisting}
|
\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}
|
||||||
|
|
||||||
|
You can change the color of the horizontal bar of the cover by
|
||||||
|
\begin{lstlisting}
|
||||||
|
\definecolor{customcolor}{RGB}{32,178,170}
|
||||||
|
\colorlet{coverlinecolor}{customcolor}
|
||||||
|
\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}
|
\section{Chapter Title Display Styles}
|
||||||
|
|
||||||
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
|
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}
|
\begin{lstlisting}
|
||||||
\documentclass[hang]{elegantbook} %or
|
\documentclass[hang]{elegantbook} %or
|
||||||
\documentclass[titlestyle=hang]{elegantbook}
|
\documentclass[titlestyle=hang]{elegantbook}
|
||||||
\end{lstlisting}
|
\end{lstlisting}
|
||||||
|
|
||||||
\section{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
|
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}
|
\begin{lstlisting}
|
||||||
@@ -235,21 +241,32 @@ In this template, we defined four different theorem class environments
|
|||||||
\item \textcolor{second}{\textbf{theorem, lemma, corollary}} environment, the color is \textcolor{second} {second};
|
\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}.
|
\item \textcolor{third}{\textbf{proposition}} environment, the color is \textcolor{third}{third}.
|
||||||
\end{itemize}
|
\end{itemize}
|
||||||
\item \textit{Example Environments}, including \textbf{example, exercise, problem} environment, auto-numbering corresponding to chapter.
|
\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{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, 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}} environment, all of which begin with boldfaced words, with format consistent with normal paragraphs.
|
\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}
|
\end{itemize}
|
||||||
|
|
||||||
\subsection{Theorem Class Environments}
|
\subsection{Theorem Class Environments}
|
||||||
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:
|
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{lstlisting}
|
||||||
\begin{theorem}{<theorem name>}{<label>}
|
\begin{theorem}{theorem name}{label text}
|
||||||
The content of theorem.
|
The content of theorem.
|
||||||
\end{theorem}
|
\end{theorem}
|
||||||
\end{lstlisting}
|
\end{lstlisting}
|
||||||
|
|
||||||
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:}.
|
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:}.
|
||||||
|
|
||||||
|
From version 4.1, you can write your theorem environments as follows:
|
||||||
|
\begin{lstlisting}
|
||||||
|
\begin{theorem}[theorem name]\label{thm:label text}
|
||||||
|
The content of theorem.
|
||||||
|
\end{theorem}
|
||||||
|
% or
|
||||||
|
\begin{theorem}
|
||||||
|
The content of theorem.
|
||||||
|
\end{theorem}
|
||||||
|
\end{lstlisting}
|
||||||
|
|
||||||
Other theorem class environments with the same usage includes:
|
Other theorem class environments with the same usage includes:
|
||||||
|
|
||||||
\begin{table}[htbp]
|
\begin{table}[htbp]
|
||||||
@@ -289,25 +306,12 @@ These are all similar environments with slight differences lies in:
|
|||||||
\begin{itemize}
|
\begin{itemize}
|
||||||
\item Example, exercise, problem environments number within chapter;
|
\item Example, exercise, problem environments number within chapter;
|
||||||
\item Note begins with introductory symbol and proof ends with ending symbol;
|
\item Note begins with introductory symbol and proof ends with ending symbol;
|
||||||
\item Conclusion environment and so on are normal paragraph environments with boldfaced introductory words.
|
\item Conclusion and other environments are normal paragraph environments with boldfaced introductory words.
|
||||||
\end{itemize}
|
\end{itemize}
|
||||||
|
|
||||||
\section{Base Hide Option}
|
|
||||||
Hiding the end-of-chapter 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, \href{https://www.pexels.com/}{pexels.com} is strongly recommended.}. 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.befunky.com/create/crop-photo/}{befunky.com}.
|
|
||||||
|
|
||||||
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.
|
|
||||||
|
|
||||||
\section{List Environments}
|
\section{List Environments}
|
||||||
This template uses \lstinline{tikz} to customize \lstinline{itemize} and \lstinline{enumerate} environments, with \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{minipage}[b]{0.49\textwidth}
|
||||||
\begin{itemize}
|
\begin{itemize}
|
||||||
\item first item of nesti;
|
\item first item of nesti;
|
||||||
@@ -337,34 +341,84 @@ This template uses \lstinline{tikz} to customize \lstinline{itemize} and \lstinl
|
|||||||
\end{enumerate}
|
\end{enumerate}
|
||||||
\end{minipage}
|
\end{minipage}
|
||||||
|
|
||||||
|
|
||||||
|
\section{Fonts}
|
||||||
|
\textcolor{red}{\bfseries Alert} After v3.10, newtx is reset to cm, together with other two options, the \lstinline{math} font option offers:
|
||||||
|
\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}
|
||||||
|
|
||||||
|
If you use \lstinline{newtx} fonts, type in:
|
||||||
|
\begin{lstlisting}
|
||||||
|
\documentclass[math=newtx]{elegantbook}
|
||||||
|
\end{lstlisting}
|
||||||
|
|
||||||
|
When you are using \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}
|
||||||
|
|
||||||
|
\subsection{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}
|
||||||
|
|
||||||
\section{Bibliography}
|
\section{Bibliography}
|
||||||
|
|
||||||
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.
|
This template uses biblatex to generate the bibliography, the default citestyle and bibliography style are both \lstinline{numeric}. Let's take a glance at the citation effect. ~\cite{en1} use data from a major peer-to-peer lending \cite{en3} marketplace in China to study whether female and male investors evaluate loan performance differently \parencite{en2}.
|
||||||
|
|
||||||
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
|
If you want to use biblatex, 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 biber will automatically generate the bibliography for the reference you cited.
|
||||||
\begin{lstlisting}[frame=single]
|
|
||||||
\nocite{EINAV2010,Havrylchyk2018} %or include some bibitems
|
|
||||||
\nocite{*} %include all the bibitems
|
|
||||||
\end{lstlisting}
|
|
||||||
|
|
||||||
Two more options \lstinline{cite=numbers} 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} more often. For those who major in liberal arts want to use \lstinline{authoryear}, please type in:
|
|
||||||
|
To change the bibliography style, this version introduces \lstinline{citestyle} and \lstinline{bibstyle}, please refer to \href{https://ctan.org/pkg/biblatex}{CTAN:biblatex} for more detail about these options. You can change your bibliography style as
|
||||||
\begin{lstlisting}
|
\begin{lstlisting}
|
||||||
\documentclass[cite=authoryear]{elegantbook} %or
|
\documentclass[citestyle=numeric-comp, bibstyle=authoryear]{elegantbook}
|
||||||
\documentclass[authoryear]{elegantbook}
|
|
||||||
\end{lstlisting}
|
\end{lstlisting}
|
||||||
|
|
||||||
\section{Preface}
|
\section{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:
|
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}
|
\begin{lstlisting}
|
||||||
\chapter*{Preface}
|
\chapter*{Introduction}
|
||||||
\addcontentsline{toc}{chapter}{Preface}
|
\markboth{Introduction}{Introduction}
|
||||||
\markboth{Preface}{}
|
The content of introduction.
|
||||||
The content of Preface.
|
|
||||||
\end{lstlisting}
|
\end{lstlisting}
|
||||||
|
|
||||||
|
\section{Content Option and Depth}
|
||||||
|
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 to use \lstinline|\setcounter{tocdepth}{2}|.
|
||||||
|
|
||||||
\section{Introduction Environment}
|
\section{Introduction Environment}
|
||||||
We create a introduction environment to display the structure of chapter. The basic useage is as follows
|
We create a introduction environment to display the structure of chapter. The basic useage is as follows:
|
||||||
\begin{lstlisting}
|
\begin{lstlisting}
|
||||||
\begin{introduction}
|
\begin{introduction}
|
||||||
\item Definition of Theorem
|
\item Definition of Theorem
|
||||||
@@ -374,7 +428,7 @@ We create a introduction environment to display the structure of chapter. The ba
|
|||||||
\item Angle of Corner
|
\item Angle of Corner
|
||||||
\end{introduction}
|
\end{introduction}
|
||||||
\end{lstlisting}
|
\end{lstlisting}
|
||||||
you will get:
|
And you will get:
|
||||||
\begin{introduction}
|
\begin{introduction}
|
||||||
\item Definition of Theorem
|
\item Definition of Theorem
|
||||||
\item Ask for help
|
\item Ask for help
|
||||||
@@ -383,14 +437,14 @@ you will get:
|
|||||||
\item Angle of Corner
|
\item Angle of Corner
|
||||||
\end{introduction}
|
\end{introduction}
|
||||||
|
|
||||||
You can change the title of this environment by modifying the optional argument of this environment
|
You can change the title of this environment by modifying the optional argument of this environment:
|
||||||
\begin{lstlisting}
|
\begin{lstlisting}
|
||||||
\begin{introduction}[Brief Introduction]
|
\begin{introduction}[Brief Introduction]
|
||||||
...
|
...
|
||||||
\end{introduction}
|
\end{introduction}
|
||||||
\end{lstlisting}
|
\end{lstlisting}
|
||||||
|
|
||||||
\section{Problem Set}
|
%\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:
|
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{lstlisting}
|
||||||
\begin{problemset}
|
\begin{problemset}
|
||||||
@@ -404,11 +458,59 @@ And you will get:
|
|||||||
\item exercise 1
|
\item exercise 1
|
||||||
\item exercise 2
|
\item exercise 2
|
||||||
\item exercise 3
|
\item exercise 3
|
||||||
|
\item math equation test:
|
||||||
|
\begin{equation}
|
||||||
|
a^2+b^2=c_{2_{i}} (1,2) [1,23]
|
||||||
|
\end{equation}
|
||||||
\end{problemset}
|
\end{problemset}
|
||||||
\begin{remark}
|
\begin{remark}
|
||||||
If you want to customize the title of \lstinline{problemset}, please change the optional argument like introduction environment.
|
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}
|
\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{ElegantBook Writing Sample}
|
\chapter{ElegantBook Writing Sample}
|
||||||
|
|
||||||
@@ -429,8 +531,8 @@ If you want to customize the title of \lstinline{problemset}, please change the
|
|||||||
|
|
||||||
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$.
|
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}{}
|
\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}
|
\end{definition}
|
||||||
|
|
||||||
\begin{note}
|
\begin{note}
|
||||||
@@ -439,14 +541,15 @@ Note that a subgroup~$H$ of a group $G$ is itself a left coset of $H$ in $G$.
|
|||||||
|
|
||||||
\lipsum[2]
|
\lipsum[2]
|
||||||
|
|
||||||
\begin{theorem}{Lagrange's Theorem}{}
|
\begin{theorem}[Lagrange's Theorem] \label{thm:lg}
|
||||||
Let $G$ be a finite group, and let $H$ be a subgroup of $G$. Then the order of $H$ divides the order of $G$.
|
Let $G$ be a finite group, and let $H$ be a subgroup of $G$. Then the order of $H$ divides the order of $G$.
|
||||||
\end{theorem}
|
\end{theorem}
|
||||||
|
|
||||||
|
\ref{thm:lg}
|
||||||
\lipsum[3]
|
\lipsum[3]
|
||||||
|
|
||||||
|
|
||||||
\begin{proposition}{Size of Left Coset}{}
|
\begin{proposition}[Size of Left Coset]
|
||||||
Let $H$ be a finite subgroup of a group $G$. Then each left coset of $H$ in $G$ has the same number of elements as $H$.
|
Let $H$ be a finite subgroup of a group $G$. Then each left coset of $H$ in $G$ has the same number of elements as $H$.
|
||||||
\end{proposition}
|
\end{proposition}
|
||||||
|
|
||||||
@@ -456,7 +559,7 @@ Let $z$ be some element of $xH \cap yH$. Then $z = xa$ for some $a \in H$, and
|
|||||||
|
|
||||||
\begin{figure}[htbp]
|
\begin{figure}[htbp]
|
||||||
\centering
|
\centering
|
||||||
\includegraphics[width=0.6\textwidth]{scatter.pdf}
|
\includegraphics[width=0.6\textwidth]{scatter.jpg}
|
||||||
\caption{Matplotlib: Scatter Plot Example\label{fig:scatter}}
|
\caption{Matplotlib: Scatter Plot Example\label{fig:scatter}}
|
||||||
\end{figure}
|
\end{figure}
|
||||||
|
|
||||||
@@ -464,6 +567,10 @@ Regression analysis is a powerful statistical method that allows you to examine
|
|||||||
|
|
||||||
Let's continue using our application training example. In this case, we'd want to measure the historical levels of satisfaction with the events from the past three years or so, as well as any information possible in regards to the independent variables.
|
Let's continue using our application training example. In this case, we'd want to measure the historical levels of satisfaction with the events from the past three years or so, as well as any information possible in regards to the independent variables.
|
||||||
|
|
||||||
|
\section{Second section}
|
||||||
|
This second section\index{S!section} may include some special word,
|
||||||
|
and expand the ones already used\index{keywords!used}.
|
||||||
|
|
||||||
|
|
||||||
\begin{table}[htbp]
|
\begin{table}[htbp]
|
||||||
\small
|
\small
|
||||||
@@ -499,102 +606,102 @@ Let's continue using our application training example. In this case, we'd want t
|
|||||||
\item Distributed storage and search.
|
\item Distributed storage and search.
|
||||||
\end{itemize}
|
\end{itemize}
|
||||||
|
|
||||||
|
%\problemset
|
||||||
\begin{problemset}
|
\begin{problemset}
|
||||||
\item Solve the equation $5(- 3x - 2) - (x - 3) = -4(4x + 5) + 13$.
|
\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 distance between the points $(-4 , -5)$ and $(-1 , -1)$.
|
||||||
\item Find the slope of the line $5x - 5y = 7$.
|
\item Find the slope of the line $5x - 5y = 7$.
|
||||||
\end{problemset}
|
\end{problemset}
|
||||||
|
|
||||||
\chapter{Margin Notes}
|
|
||||||
For version 3.08, we introduce margin note option and \lstinline{\elegantpar} (Beta). In this template, margin note option \lstinline{marginpar} is included. If \lstinline{marginpar=margintrue}, the width of both sides will reduce at least 1.5cm. If \lstinline{marginpar=marginfalse}, the width of sides will remain unchanged. Margin note option works under \lstinline{device=normal} only.
|
|
||||||
|
|
||||||
Margin note option can be activated using \lstinline{\marginpar} built in \LaTeX{} or \lstinline{\marginnote} command in \lstinline{marginnote}. For more information, refer to \href{https://en.wikibooks.org/wiki/LaTeX/Footnotes_and_Margin_Notes#Margin_Notes}{Margin Notes} or \LaTeX{} books.
|
|
||||||
|
|
||||||
\lstinline{\elegantpar} is introduced in this version. Note that TikZ overlay is used in this command, hence you have to compile three times to get the right display effect.
|
|
||||||
|
|
||||||
%\setlength{\marginparwidth}{2.5cm}
|
|
||||||
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod
|
|
||||||
tempor incididunt ut labore et \elegantpar{dolore magna aliqua}{This is Beautiful the elegantpar Style for English Text}. Ut enim ad minim veniam,
|
|
||||||
quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo
|
|
||||||
consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse
|
|
||||||
cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non
|
|
||||||
proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
|
|
||||||
|
|
||||||
\begin{equation}
|
|
||||||
E = m\elegantpar{c^{2}}{
|
|
||||||
\begin{equation*}E=mc^2\end{equation*}}
|
|
||||||
\end{equation}
|
|
||||||
|
|
||||||
\chapter{FAQ}
|
\chapter{FAQ}
|
||||||
|
We list some FAQs for users to refer to:
|
||||||
\begin{custom}{Question}
|
\begin{enumerate}
|
||||||
I want to customize font and background color.
|
\item \question{Why option numbers for natbib fail to take effect in v3.07?}
|
||||||
\end{custom}
|
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.}
|
||||||
\begin{solution}
|
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.
|
||||||
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?}
|
||||||
\end{solution}
|
Please use \href{https://github.com/ElegantLaTeX/ElegantBook/releases}{Latest Release} via GitHub or \TeX{} Live 2021.
|
||||||
|
\item \question{Which editor should I choose?}
|
||||||
|
You can use \TeX{} Live 2021 built-in \TeX works or \TeX Studio. You may refer to \href{https://github.com/EthanDeng/texworks-autocomplete}{\TeX{}works autocomplete}. \TeX{} Live 2021 + \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.}
|
||||||
\begin{custom}{Question}
|
|
||||||
Which version should I choose?
|
|
||||||
\end{custom}
|
|
||||||
|
|
||||||
\begin{solution}
|
|
||||||
Please use \href{https://github.com/ElegantLaTeX/ElegantBook/releases}{Latest Release} via GitHub or \TeX{} Live 2019.
|
|
||||||
\end{solution}
|
|
||||||
|
|
||||||
|
|
||||||
\begin{custom}{Question}
|
|
||||||
Which editor should I choose?
|
|
||||||
\end{custom}
|
|
||||||
|
|
||||||
\begin{solution}
|
|
||||||
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}.
|
|
||||||
\end{solution}
|
|
||||||
|
|
||||||
|
|
||||||
\begin{custom}{Question}
|
|
||||||
Hello, we want to use ElegantBook to write a book about machine learning and would like your authorization.
|
|
||||||
\end{custom}
|
|
||||||
|
|
||||||
\begin{solution}
|
|
||||||
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.
|
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.
|
||||||
\end{solution}
|
\item \question{What is cross reference?}
|
||||||
|
|
||||||
\begin{custom}{Question}
|
|
||||||
I would like to use the former cover!
|
|
||||||
\end{custom}
|
|
||||||
|
|
||||||
\begin{solution}
|
|
||||||
Cover option is forthcoming.
|
|
||||||
\end{solution}
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
\begin{custom}{Question}
|
|
||||||
What is cross reference?
|
|
||||||
\end{custom}
|
|
||||||
|
|
||||||
\begin{solution}
|
|
||||||
This template is aimed at who are not a complete beginner for \LaTeX{}. Please learn more about \LaTeX{} before using this template.
|
This template is aimed at who are not a complete beginner for \LaTeX{}. Please learn more about \LaTeX{} before using this template.
|
||||||
\end{solution}
|
\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}, no plan for Beamer theme.
|
||||||
|
\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 17 releases on GitHub since uploaded.
|
||||||
|
|
||||||
|
\datechange{2022/03/08}{release of v4.2.}
|
||||||
|
|
||||||
|
\begin{change}
|
||||||
|
\item Bug fix due to the update of newtx fonts;
|
||||||
|
\item Add `Chapter' in TOC, and redefine \lstinline{\chaptername} to unify the logic under different languages;
|
||||||
|
\item Add language option for Japanese, \lstinline{lang=jp}.
|
||||||
|
\item \textbf{! Warnings}: Due to this `urgent' fonts bug and TOC modification, the multilingual option may cause some unexpected errors, you can report in this \href{https://github.com/ElegantLaTeX/ElegantBook/issues/170}{issue}, I will fix it after the releases of \TeX{} Live 2022.
|
||||||
|
\end{change}
|
||||||
|
|
||||||
|
|
||||||
\begin{custom}{Question}
|
\datechange{2021/05/02}{release of v4.1.}
|
||||||
Is the language for code highlighting optional?
|
|
||||||
\end{custom}
|
|
||||||
|
|
||||||
\begin{solution}
|
\begin{change}
|
||||||
Yes, \lstinline{listings} package is used in ElegantBook, hence language is optional. For global setting, use \lstinline{\lstset}. For more information, please refer to package documentations.
|
\item \textbf{! Big Change}: Change the bibliography method from \hologo{BibTeX} to biblatex(with backend \lstinline{biber});
|
||||||
\end{solution}
|
\item \textbf{! Big Change}: Add support for the default theorem writing method (with optional name and label);
|
||||||
|
\item Add left and right space;
|
||||||
|
\item Support hyperlink from the text of TOC;
|
||||||
|
\item Remove the \hologo{pdfLaTeX} compatiblity check for Chinese.
|
||||||
|
\item Add multilingual support, for french \lstinline{lang=fr}, dutch \lstinline{lang=nl}, Hungarian \lstinline{lang=hu}, Spanish \lstinline{lang=es}, Mongolian \lstinline{lang=mn} etc.
|
||||||
|
\end{change}
|
||||||
|
|
||||||
|
\datechange{2020/04/12}{release of v3.11, \textcolor{red}{\textbf{LAST} version of 3.x}.}
|
||||||
|
|
||||||
|
|
||||||
\nocite{en1,en2,en3}
|
\begin{change}
|
||||||
\bibliography{reference}
|
\item \textbf{! Fix}: Fix \lstinline{natbib option clash} problems caused by \lstinline{gbt7714} updates.
|
||||||
|
\item Remove \lstinline{base} decorations and its options since \lstinline{pgfornament} package is not included in \TeX{} Live 2020.
|
||||||
|
\item Fix spacing problem in some environments.
|
||||||
|
\item Introduce language option for Italian, \lstinline{lang=it}.
|
||||||
|
\end{change}
|
||||||
|
|
||||||
|
|
||||||
|
\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{en2,en3}
|
||||||
|
|
||||||
|
\printbibliography[heading=bibintoc, title=\ebibname]
|
||||||
|
|
||||||
\appendix
|
\appendix
|
||||||
|
% \renewcommand\chaptername{\eappendix \thechapter}
|
||||||
|
|
||||||
\chapter{Mathematical Tools}
|
\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.
|
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.
|
||||||
@@ -607,36 +714,5 @@ This appendix covers some of the basic mathematics used in econometrics. We brie
|
|||||||
\sum_{i=1}^n x_i \equiv x_1 + x_2 +\cdots + x_n
|
\sum_{i=1}^n x_i \equiv x_1 + x_2 +\cdots + x_n
|
||||||
\end{equation}
|
\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}
|
|
||||||
\extrainfo{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}
|
|
||||||
\end{document}
|
|
||||||
\end{lstlisting}
|
|
||||||
|
|
||||||
|
|
||||||
\end{document}
|
\end{document}
|
||||||
1229
elegantbook.cls
1229
elegantbook.cls
File diff suppressed because it is too large
Load Diff
BIN
figure/logo-blue.png
Normal file
BIN
figure/logo-blue.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 90 KiB |
BIN
figure/logo.png
BIN
figure/logo.png
Binary file not shown.
|
Before Width: | Height: | Size: 90 KiB |
BIN
image/cert.pdf
Normal file
BIN
image/cert.pdf
Normal file
Binary file not shown.
BIN
image/founder.png
Normal file
BIN
image/founder.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 87 KiB |
BIN
image/scatter.jpg
Normal file
BIN
image/scatter.jpg
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 111 KiB |
Binary file not shown.
@@ -1,27 +0,0 @@
|
|||||||
# This file is the source file of the scatter.pdf
|
|
||||||
# source page: https://matplotlib.org/gallery/shapes_and_collections/scatter.html
|
|
||||||
import numpy as np
|
|
||||||
import matplotlib.pyplot as plt
|
|
||||||
|
|
||||||
# Fixing random state for reproducibility
|
|
||||||
np.random.seed(19680801)
|
|
||||||
|
|
||||||
|
|
||||||
N = 50
|
|
||||||
x = np.random.rand(N)
|
|
||||||
y = np.random.rand(N)
|
|
||||||
colors = np.random.rand(N)
|
|
||||||
area = (30 * np.random.rand(N))**2 # 0 to 15 point radii
|
|
||||||
|
|
||||||
ax = plt.subplot(111)
|
|
||||||
ax.scatter(x, y, s=area, c=colors, alpha=0.5)
|
|
||||||
|
|
||||||
# Hide the right and top spines
|
|
||||||
ax.spines['right'].set_visible(False)
|
|
||||||
ax.spines['top'].set_visible(False)
|
|
||||||
|
|
||||||
# Only show ticks on the left and bottom spines
|
|
||||||
ax.yaxis.set_ticks_position('left')
|
|
||||||
ax.xaxis.set_ticks_position('bottom')
|
|
||||||
|
|
||||||
plt.savefig('scatter.pdf', transparent=True)
|
|
||||||
BIN
image/star.png
BIN
image/star.png
Binary file not shown.
|
Before Width: | Height: | Size: 45 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 218 KiB |
Reference in New Issue
Block a user