mirror of
https://github.com/ElegantLaTeX/ElegantBook.git
synced 2026-01-26 04:14:35 +08:00
version 3.10
This commit is contained in:
@@ -1,11 +1,11 @@
|
||||
\documentclass[cn,11pt,chinese,founder,hide]{elegantbook}
|
||||
\documentclass[cn,11pt,chinese]{elegantbook}
|
||||
|
||||
\title{ElegantBook:优美的 \LaTeX{} 书籍模板}
|
||||
\subtitle{Elegant\LaTeX{} 经典之作}
|
||||
|
||||
\author{Ethan Deng \& Liam Huang}
|
||||
\institute{Elegant\LaTeX{} Program}
|
||||
\date{\today}
|
||||
\date{February 10, 2020}
|
||||
\version{3.10}
|
||||
\bioinfo{自定义}{信息}
|
||||
|
||||
@@ -14,13 +14,12 @@
|
||||
\logo{logo-blue.png}
|
||||
\cover{cover.jpg}
|
||||
|
||||
|
||||
% 本文档命令
|
||||
\usepackage{array}
|
||||
|
||||
\newcommand{\ccr}[1]{\makecell{{\color{#1}\rule{1cm}{1cm}}}}
|
||||
|
||||
% 修改目录深度
|
||||
\setcounter{tocdepth}{2}
|
||||
\newcommand{\cd}{\lstinline}
|
||||
|
||||
\begin{document}
|
||||
|
||||
\maketitle
|
||||
@@ -45,7 +44,7 @@
|
||||
|
||||
\begin{flushright}
|
||||
Ethan Deng\\
|
||||
February 8, 2020
|
||||
February 10, 2020
|
||||
\end{flushright}
|
||||
|
||||
\tableofcontents
|
||||
@@ -87,7 +86,7 @@ Elegant\LaTeX{} 项目组致力于打造一系列美观、优雅、简便的模
|
||||
\end{enumerate}
|
||||
|
||||
\begin{note}
|
||||
2.x 版本的用户请仔细查看\href{https://github.com/ElegantLaTeX/ElegantBook/wiki/convert}{跨版本转换}。
|
||||
如果你之前使用了本模板,在使用新版本时,需要删除文档中的 \lstinline|\hypersetup{pageanchor=true}|,并且在 \lstinline{\maketitle} 和 \lstinline{\tableofcontents} 之间添加 \lstinline{\frontmatter}。2.x 版本的用户请仔细查看\href{https://github.com/ElegantLaTeX/ElegantBook/wiki/convert}{跨版本转换}。
|
||||
\end{note}
|
||||
|
||||
\section{模板安装与更新}
|
||||
@@ -165,7 +164,7 @@ Elegant\LaTeX{} 系列模板从创立至今已经有 9 年了,我们的模板
|
||||
另外,也感谢 \href{https://github.com/stone-zeng}{Xiangdong Zeng}、\href{https://github.com/latexers}{逐鹿人}等人帮忙群管理。
|
||||
|
||||
\section{致谢}
|
||||
2019 年 5 月 20 日,ElegantBook 模板在 GitHub 上的收藏数(star)达到了 100\footnote{截止 2020 年 2 月 8 日 3.10 版本正式发布,star 数为 372。}。在此特别感谢 China\TeX{} 以及 \href{http://www.latexstudio.net/}{\LaTeX{} 工作室}对于本系列模板的大力宣传与推广。\LaTeX{} 工作室网站上有很多精彩的帖子和精致的模板,欢迎大家去挖掘里面的宝藏,这也是国内最全面的 \LaTeX{} 相关的网站。
|
||||
2019 年 5 月 20 日,ElegantBook 模板在 GitHub 上的收藏数(star)达到了 100\footnote{截止 3.10 版本正式发布,star 数为 374。}。在此特别感谢 China\TeX{} 以及 \href{http://www.latexstudio.net/}{\LaTeX{} 工作室}对于本系列模板的大力宣传与推广。\LaTeX{} 工作室网站上有很多精彩的帖子和精致的模板,欢迎大家去挖掘里面的宝藏,这也是国内最全面的 \LaTeX{} 相关的网站。
|
||||
|
||||
如果你喜欢我们的模板,你可以在 GitHub 上收藏我们的模板。
|
||||
%\begin{figure}[htbp]
|
||||
@@ -215,7 +214,7 @@ Elegant\LaTeX{} 系列模板从创立至今已经有 9 年了,我们的模板
|
||||
F*5 & 10 RMB & 2020/01/03 & 微信 & S*m & 20.20 RMB & 2020/01/03 & 微信 \\
|
||||
二代青雉 & 13 RMB & 2020/01/14 & 支付宝 & *? & 66 RMB & 2020/01/15 & 微信 \\
|
||||
Mr. Xiong & 20 RMB & 2020/01/17 & 微信 & *博 & 15 RMB & 2020/01/18 & 微信 \\
|
||||
*者 & 10 RMB & 2020/02/02 & 微信 & & & & \\
|
||||
*者 & 10 RMB & 2020/02/02 & 微信 & Jackie & 88.80 RMB & 2020/02/09 & 微信 \\
|
||||
\hline
|
||||
\end{tabular}%
|
||||
\label{tab:donation}%
|
||||
@@ -612,7 +611,7 @@ The content of introduction.
|
||||
\chapter{字体选项}
|
||||
字体选项独立成章的原因是,我们希望本模板的用户关心模板使用的字体,知晓自己使用的字体以及遇到字体相关的问题能更加便捷地找到答案。
|
||||
|
||||
\textcolor{red}{\bfseries 重要提示}:从 2020 年 2 月 8 日 3.10 版本更新之后,沿用至今的 newtx 系列字体被重新更改为 cm 字体。并且新增中文字体(\lstinline{chinesefont})选项。
|
||||
\textcolor{red}{\bfseries 重要提示}:从 3.10 版本更新之后,沿用至今的 newtx 系列字体被重新更改为 cm 字体。并且新增中文字体(\lstinline{chinesefont})选项。
|
||||
|
||||
\section{数学字体选项}
|
||||
|
||||
@@ -674,6 +673,10 @@ LaTeX Error:
|
||||
\item \lstinline{nofont}:调用 \lstinline{ctex} 宏包并且使用 \lstinline{fontset=none} 选项,不设定中文字体,用户可以自行设置中文字体,具体见后文。
|
||||
\end{enumerate}
|
||||
|
||||
\begin{remark}
|
||||
使用 \lstinline{founder} 选项或者 \lstinline{nofont} 时,必须使用 \hologo{XeLaTeX} 进行编译。
|
||||
\end{remark}
|
||||
|
||||
\subsection{方正字体选项}
|
||||
由于使用 \lstinline{ctex} 宏包默认调用系统已有的字体,部分系统字体缺失严重,因此,用户希望能够使用其它字体,我们推荐使用方正字体。方正的{\songti 方正书宋}、{\heiti 方正黑体}、{\kaishu 方正楷体}、{\fangsong 方正仿宋}四款字体均可免费试用,且可用于商业用途。
|
||||
|
||||
@@ -841,7 +844,7 @@ Lebesgue 积分有几种不同的定义方式。我们将采用逐步定义非
|
||||
|
||||
根据用户的反馈,我们不断修正和完善模板。截止到此次更新,ElegantBook 模板在 GitHub 上有将近 100 次提交,正式发行版本(release)有 16 次。
|
||||
|
||||
\datechange{2020/02/08}{版本 3.10 正式发布}
|
||||
\datechange{2020/02/10}{版本 3.10 正式发布}
|
||||
|
||||
\begin{change}
|
||||
\item 增加数学字体选项 \lstinline{math},可选项为 \lstinline{newtx} 和 \lstinline{cm}。\\
|
||||
|
||||
@@ -1,12 +1,12 @@
|
||||
\documentclass[11pt,simple]{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}
|
||||
\version{3.10*}
|
||||
\date{February 10, 2020}
|
||||
\version{3.10}
|
||||
\bioinfo{Bio}{Information}
|
||||
|
||||
\extrainfo{Victory won\rq t come to us unless we go to it. }
|
||||
@@ -15,6 +15,7 @@
|
||||
\cover{cover.jpg}
|
||||
|
||||
\begin{document}
|
||||
|
||||
\maketitle
|
||||
|
||||
\frontmatter
|
||||
@@ -41,19 +42,21 @@ Contact Infos:
|
||||
\section{ElegantBook Updates}
|
||||
What\rq s new in this version:
|
||||
\begin{enumerate}
|
||||
\item Introduce \lstinline{math} for math font, optional styles are Times-ish \lstinline{newtx}, Computer Modern-ish \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} for Chinese font, optional fonts are \lstinline{founder}, \lstinline{ctexfont} and \lstinline{nofont}.
|
||||
\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 time line in this documentation with command \lstinline{\datechange} and environment \lstinline{change}.
|
||||
\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 Revise header settings by dropping \lstinline{\lastpage} to avoid page anchor bug and adding \lstinline{\frontmatter}.
|
||||
\item Revise bibliography option \lstinline{cite} with optional styles \lstinline{number},\lstinline{authoryear} and \lstinline{super}.
|
||||
\item Introduce bibliography style option \lstinline{bibstyle}, with default style \lstinline{apalike} for English and \lstinline{gbt7714} for Chinese.
|
||||
\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}
|
||||
|
||||
|
||||
\begin{note}
|
||||
Users for 2.x, please refer to \href{https://github.com/ElegantLaTeX/ElegantBook/wiki/convert}{conversion}.
|
||||
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}
|
||||
|
||||
\section{Installation and Update}
|
||||
@@ -87,7 +90,7 @@ tlmgr update --self
|
||||
tlmgr update --all
|
||||
\end{lstlisting}
|
||||
|
||||
To learn more, please refer to {https://tex.stackexchange.com/questions/55437/how-do-i-update-my-tex-distribution}{How do I update my \TeX{} distribution?}
|
||||
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.
|
||||
@@ -97,13 +100,13 @@ Excuse me? You are a C\TeX{} user? Sorry, this template is incompatible with C
|
||||
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. Current available works are (\href{https://github.com/ElegantLaTeX/Archive/tree/master/Collections}).
|
||||
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 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.
|
||||
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}
|
||||
@@ -112,16 +115,16 @@ So far, Elegant\LaTeX{} has four Support Members:
|
||||
\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 help.
|
||||
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{189 stars by August 18, 2019!}.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.
|
||||
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}[!htbp]
|
||||
\begin{figure}[!htb]
|
||||
\centering
|
||||
\includegraphics[width=0.45\textwidth]{donate.jpg}
|
||||
\end{figure}
|
||||
@@ -144,7 +147,7 @@ The explanation right of the tip usage belongs to Elegant\LaTeX{} with no superv
|
||||
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 \\
|
||||
zhuixunyuanfengjing & 10 RMB & 2019/10/28 & Wechat & Guo Deliang & 88 RMB & 2019/11/03 & Wechat \\
|
||||
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 \\
|
||||
@@ -158,7 +161,7 @@ The explanation right of the tip usage belongs to Elegant\LaTeX{} with no superv
|
||||
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 & & & & \\
|
||||
*zhe & 10 RMB & 2020/02/02 & Wechat & Jackie & 88.80 RMB & 2020/02/09 & Wechat \\
|
||||
\bottomrule
|
||||
\end{tabular}%
|
||||
\label{tab:donation}%
|
||||
@@ -166,14 +169,14 @@ The explanation right of the tip usage belongs to Elegant\LaTeX{} with no superv
|
||||
|
||||
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}[!htbp]
|
||||
\begin{figure}[!htb]
|
||||
\centering
|
||||
\includegraphics[width=0.7\textwidth]{cert.jpg}
|
||||
\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 \lstinline{PDFLaTeX} or \lstinline{XeLaTeX} works fine.
|
||||
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} 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
|
||||
@@ -183,11 +186,11 @@ We defined one option named \lstinline{lang} which has two alternative values, \
|
||||
\end{lstlisting}
|
||||
|
||||
\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 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}:
|
||||
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}
|
||||
@@ -277,11 +280,11 @@ The cover image used in this template is from \href{https://pixabay.com/en/tea-t
|
||||
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}.
|
||||
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},\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}
|
||||
\documentclass[hang]{elegantbook} %or
|
||||
\documentclass[titlestyle=hang]{elegantbook}
|
||||
@@ -307,7 +310,7 @@ In this template, we defined four different theorem class environments
|
||||
\end{itemize}
|
||||
\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, 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}
|
||||
|
||||
\subsection{Theorem Class Environments}
|
||||
@@ -428,10 +431,9 @@ To change the bibliography style, this version introduces \lstinline{bibstyle} w
|
||||
|
||||
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*{Preface}
|
||||
\addcontentsline{toc}{chapter}{Preface}
|
||||
\markboth{Preface}{}
|
||||
The content of Preface.
|
||||
\chapter*{Introduction}
|
||||
\markboth{Introduction}{Introduction}
|
||||
The content of introduction.
|
||||
\end{lstlisting}
|
||||
|
||||
\section{Content Option and Depth}
|
||||
@@ -449,7 +451,7 @@ to make it 2.
|
||||
|
||||
|
||||
\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{introduction}
|
||||
\item Definition of Theorem
|
||||
@@ -459,7 +461,7 @@ We create a introduction environment to display the structure of chapter. The ba
|
||||
\item Angle of Corner
|
||||
\end{introduction}
|
||||
\end{lstlisting}
|
||||
you will get:
|
||||
And you will get:
|
||||
\begin{introduction}
|
||||
\item Definition of Theorem
|
||||
\item Ask for help
|
||||
@@ -696,42 +698,39 @@ Let's continue using our application training example. In this case, we'd want t
|
||||
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?}
|
||||
\answer{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.}
|
||||
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.}
|
||||
\answer{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 \lstinline[breaklines]{Package ctex Error: CTeX fontset `Mac' is unavailable.}
|
||||
\answer{Under Mac, please use \lstinline{XeLaTeX} for Chinese documents.}
|
||||
\item \lstinline{! LaTeX Error: Unknown option `scheme=plain' for package `ctex'.}
|
||||
\answer{Use \TeX{} Live 2019.}
|
||||
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?}
|
||||
\answer{Please use \href{https://github.com/ElegantLaTeX/ElegantBook/releases}{Latest Release} via GitHub or \TeX{} Live 2019.}
|
||||
Please use \href{https://github.com/ElegantLaTeX/ElegantBook/releases}{Latest Release} via GitHub or \TeX{} Live 2019.
|
||||
\item \question{Which editor should I choose?}
|
||||
\answer{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}.}
|
||||
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.}
|
||||
\answer{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.
|
||||
\item \question{What is cross reference?}
|
||||
\answer{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.
|
||||
\item \question{Is the language for code highlighting optional?}
|
||||
\answer{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.}
|
||||
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?}
|
||||
\answer{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.}
|
||||
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{Update History}
|
||||
We revised our templates now and then. Nearly 100 submits and 16 releases for ElegantBook on GitHub.
|
||||
\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/08}{release of v3.10}
|
||||
\datechange{2020/02/10}{release of v3.10}
|
||||
|
||||
\begin{change}
|
||||
\item Introduce \lstinline{math} for math font, optional styles are Times-ish \lstinline{newtx}, Computer Modern-ish \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} for Chinese font, optional fonts are \lstinline{founder}, \lstinline{ctexfont} and \lstinline{nofont}.
|
||||
\item Turn author information on the cover optional and add customized command \lstinline{\bioinfo}.
|
||||
\item Add version time line in this documentation 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 Revise header settings by dropping \lstinline{\lastpage} to avoid page anchor bug and adding \lstinline{\frontmatter}.
|
||||
\item Revise bibliography option \lstinline{cite} with optional styles \lstinline{number},\lstinline{authoryear} and \lstinline{super}.
|
||||
\item Introduce bibliography style option \lstinline{bibstyle}, with default style \lstinline{apalike} for English and \lstinline{gbt7714} for Chinese.
|
||||
\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}
|
||||
|
||||
@@ -162,7 +162,7 @@
|
||||
\ifcsname fangsong\endcsname
|
||||
\newcommand{\cfs}{\fangsong}
|
||||
\else
|
||||
\newcommand{\cfs}{\sffamily}
|
||||
\newcommand{\cfs}{\normalfont}
|
||||
\fi
|
||||
|
||||
\RequirePackage{newtxtext}
|
||||
@@ -648,7 +648,7 @@
|
||||
\par}
|
||||
|
||||
\newenvironment{solution}{\par\noindent\textbf{\color{main}\solutionname} \citshape}{\par}
|
||||
\newenvironment{remark}{\noindent\textbf{\color{second}\remarkname\citshape} \citshape}{\par}
|
||||
\newenvironment{remark}{\noindent\textbf{\color{second}\remarkname}}{\par}
|
||||
\newenvironment{assumption}{\par\noindent\textbf{\color{third}\assumptionname} \citshape}{\par}
|
||||
\newenvironment{conclusion}{\par\noindent\textbf{\color{third}\conclusionname} \citshape}{\par}
|
||||
\newenvironment{property}{\par\noindent\textbf{\color{third}\propertyname} \citshape}{\par}
|
||||
|
||||
BIN
image/cert.jpg
BIN
image/cert.jpg
Binary file not shown.
|
Before Width: | Height: | Size: 138 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 20 KiB |
Reference in New Issue
Block a user