Skip to content

Commit 6924603

Browse files
committed
version 3.10
1 parent eecad6a commit 6924603

File tree

5 files changed

+250
-248
lines changed

5 files changed

+250
-248
lines changed

elegantbook-cn.tex

+48-45
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
\documentclass[cn,11pt,chinese,founder,hide]{elegantbook}
1+
\documentclass[cn,11pt,chinese]{elegantbook}
22

33
\title{ElegantBook:优美的 \LaTeX{} 书籍模板}
44
\subtitle{Elegant\LaTeX{} 经典之作}
55

66
\author{Ethan Deng \& Liam Huang}
77
\institute{Elegant\LaTeX{} Program}
8-
\date{\today}
8+
\date{February 10, 2020}
99
\version{3.10}
1010
\bioinfo{自定义}{信息}
1111

@@ -14,13 +14,12 @@
1414
\logo{logo-blue.png}
1515
\cover{cover.jpg}
1616

17-
17+
% 本文档命令
1818
\usepackage{array}
19-
2019
\newcommand{\ccr}[1]{\makecell{{\color{#1}\rule{1cm}{1cm}}}}
21-
20+
% 修改目录深度
2221
\setcounter{tocdepth}{2}
23-
\newcommand{\cd}{\lstinline}
22+
2423
\begin{document}
2524

2625
\maketitle
@@ -45,7 +44,7 @@ \chapter*{特别声明}
4544

4645
\begin{flushright}
4746
Ethan Deng\\
48-
February 8, 2020
47+
February 10, 2020
4948
\end{flushright}
5049

5150
\tableofcontents
@@ -78,16 +77,16 @@ \section{ElegantBook 更新说明}
7877
\textbf{重要提示}:原先通过 \lstinline{newtxmath} 宏包设置的数学字体改为 \LaTeX{} 默认数学字体,如果需要保持原来的字体,需要显式声明数学字体(\lstinline{math=newtx});
7978
\item 新增中文字体选项 \lstinline{chinesefont},可选项为 \lstinline{ctexfont}、\lstinline{founder} 和 \lstinline{nofont}。
8079
\item 将封面作者信息设置为可选,并且增加自定义信息命令 \lstinline{\bioinfo};
81-
\item 在说明文档中增加版本历史,新增 \lstinline{\datechange} 命令和 \lstinline{change} 环境;
82-
\item 增加汉化章节选项 \lstinline{scheme},可选项为汉化 \lstinline{chinese};
83-
\item 由于 \lstinline{\lvert} 问题已经修复,重新调整 \lstinline{ctex} 宏包和 \lstinline{amsmath} 宏包位置。
84-
\item 修改页眉设置,去除了 \lstinline{\lastpage} 以避免 page anchor 问题,加入 \lstinline{\frontmatter}。
85-
\item 修改参考文献选项 \lstinline{cite},可选项为数字 \lstinline{number}、 作者-年份 \lstinline{authoryear} 以及上标 \lstinline{super}。
86-
\item 新增参考文献样式选项 \lstinline{bibstyle},并将英文模式下参考文献样式 \lstinline{apalike} 设置为默认值,中文仍然使用 \lstinline{gbt7714} 宏包设置。
80+
\item 在说明文档中增加版本历史,新增 \lstinline{\datechange} 命令和 \lstinline{change} 环境;
81+
\item 增加汉化章节选项 \lstinline{scheme},可选项为汉化 \lstinline{chinese};
82+
\item 由于 \lstinline{\lvert} 问题已经修复,重新调整 \lstinline{ctex} 宏包和 \lstinline{amsmath} 宏包位置。
83+
\item 修改页眉设置,去除了 \lstinline{\lastpage} 以避免 page anchor 问题,加入 \lstinline{\frontmatter}。
84+
\item 修改参考文献选项 \lstinline{cite},可选项为数字 \lstinline{number}、 作者-年份 \lstinline{authoryear} 以及上标 \lstinline{super}。
85+
\item 新增参考文献样式选项 \lstinline{bibstyle},并将英文模式下参考文献样式 \lstinline{apalike} 设置为默认值,中文仍然使用 \lstinline{gbt7714} 宏包设置。
8786
\end{enumerate}
8887

8988
\begin{note}
90-
2.x 版本的用户请仔细查看\href{https://github.com/ElegantLaTeX/ElegantBook/wiki/convert}{跨版本转换}。
89+
如果你之前使用了本模板,在使用新版本时,需要删除文档中的 \lstinline|\hypersetup{pageanchor=true}|,并且在 \lstinline{\maketitle} 和 \lstinline{\tableofcontents} 之间添加 \lstinline{\frontmatter}。2.x 版本的用户请仔细查看\href{https://github.com/ElegantLaTeX/ElegantBook/wiki/convert}{跨版本转换}。
9190
\end{note}
9291

9392
\section{模板安装与更新}
@@ -165,7 +164,7 @@ \section{协作人员招募}
165164
另外,也感谢 \href{https://github.com/stone-zeng}{Xiangdong Zeng}、\href{https://github.com/latexers}{逐鹿人}等人帮忙群管理。
166165

167166
\section{致谢}
168-
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{} 相关的网站。
167+
2019 年 5 月 20 日,ElegantBook 模板在 GitHub 上的收藏数(star)达到了 100\footnote{截止 3.10 版本正式发布,star 数为 374。}。在此特别感谢 China\TeX{} 以及 \href{http://www.latexstudio.net/}{\LaTeX{} 工作室}对于本系列模板的大力宣传与推广。\LaTeX{} 工作室网站上有很多精彩的帖子和精致的模板,欢迎大家去挖掘里面的宝藏,这也是国内最全面的 \LaTeX{} 相关的网站。
169168

170169
如果你喜欢我们的模板,你可以在 GitHub 上收藏我们的模板。
171170
%\begin{figure}[htbp]
@@ -215,7 +214,7 @@ \section{捐赠}
215214
F*5 & 10 RMB & 2020/01/03 & 微信 & S*m & 20.20 RMB & 2020/01/03 & 微信 \\
216215
二代青雉 & 13 RMB & 2020/01/14 & 支付宝 & *? & 66 RMB & 2020/01/15 & 微信 \\
217216
Mr. Xiong & 20 RMB & 2020/01/17 & 微信 & *博 & 15 RMB & 2020/01/18 & 微信 \\
218-
*者 & 10 RMB & 2020/02/02 & 微信 & & & & \\
217+
*者 & 10 RMB & 2020/02/02 & 微信 & Jackie & 88.80 RMB & 2020/02/09 & 微信 \\
219218
\hline
220219
\end{tabular}%
221220
\label{tab:donation}%
@@ -580,9 +579,9 @@ \section{旁注}
580579

581580
% equation
582581
\marginpar{
583-
\begin{equation}
584-
a^2 + b^2 = c^2
585-
\end{equation}
582+
\begin{equation}
583+
a^2 + b^2 = c^2
584+
\end{equation}
586585
}
587586
\end{lstlisting}
588587

@@ -591,18 +590,18 @@ \section{旁注}
591590
\begin{lstlisting}
592591
% graph with centerline command
593592
\marginpar{
594-
\centerline{
595-
\includegraphics[width=0.2\textwidth]{logo.png}
596-
}
597-
\captionof{figure}{your figure caption}
593+
\centerline{
594+
\includegraphics[width=0.2\textwidth]{logo.png}
595+
}
596+
\captionof{figure}{your figure caption}
598597
}
599598

600599
% graph with center environment
601600
\marginpar{
602-
\begin{center}
603-
\includegraphics[width=0.2\textwidth]{logo.png}
604-
\captionof{figure}{your figure caption}
605-
\end{center}
601+
\begin{center}
602+
\includegraphics[width=0.2\textwidth]{logo.png}
603+
\captionof{figure}{your figure caption}
604+
\end{center}
606605
}
607606
\end{lstlisting}
608607

@@ -612,7 +611,7 @@ \section{旁注}
612611
\chapter{字体选项}
613612
字体选项独立成章的原因是,我们希望本模板的用户关心模板使用的字体,知晓自己使用的字体以及遇到字体相关的问题能更加便捷地找到答案。
614613

615-
\textcolor{red}{\bfseries 重要提示}:从 2020 年 2 月 8 日 3.10 版本更新之后,沿用至今的 newtx 系列字体被重新更改为 cm 字体。并且新增中文字体(\lstinline{chinesefont})选项。
614+
\textcolor{red}{\bfseries 重要提示}:从 3.10 版本更新之后,沿用至今的 newtx 系列字体被重新更改为 cm 字体。并且新增中文字体(\lstinline{chinesefont})选项。
616615

617616
\section{数学字体选项}
618617

@@ -635,12 +634,12 @@ \subsection{连字符}
635634

636635
如果使用 \lstinline{newtx} 系列字体宏包,需要注意下连字符的问题。
637636
\begin{equation}
638-
\int_{R^q} f(x,y) dy.\emph{of\kern0pt f}
637+
\int_{R^q} f(x,y) dy.\emph{of\kern0pt f}
639638
\end{equation}
640639
的代码为
641640
\begin{lstlisting}
642641
\begin{equation}
643-
\int_{R^q} f(x,y) dy.\emph{of \kern0pt f}
642+
\int_{R^q} f(x,y) dy.\emph{of \kern0pt f}
644643
\end{equation}
645644
\end{lstlisting}
646645

@@ -674,6 +673,10 @@ \section{中文字体选项}
674673
\item \lstinline{nofont}:调用 \lstinline{ctex} 宏包并且使用 \lstinline{fontset=none} 选项,不设定中文字体,用户可以自行设置中文字体,具体见后文。
675674
\end{enumerate}
676675

676+
\begin{remark}
677+
使用 \lstinline{founder} 选项或者 \lstinline{nofont} 时,必须使用 \hologo{XeLaTeX} 进行编译。
678+
\end{remark}
679+
677680
\subsection{方正字体选项}
678681
由于使用 \lstinline{ctex} 宏包默认调用系统已有的字体,部分系统字体缺失严重,因此,用户希望能够使用其它字体,我们推荐使用方正字体。方正的{\songti 方正书宋}、{\heiti 方正黑体}、{\kaishu 方正楷体}、{\fangsong 方正仿宋}四款字体均可免费试用,且可用于商业用途。
679682

@@ -781,9 +784,9 @@ \subsection{积分的定义}
781784
我们知道最小二乘法可以用来处理一组数据,可以从一组测定的数据中寻求变量之间的依赖关系,这种函数关系称为经验公式。本课题将介绍最小二乘法的精确定义及如何寻求点与点之间近似成线性关系时的经验公式。假定实验测得变量之间的 $n$ 个数据,则在平面上,可以得到 $n$ 个点,这种图形称为 “散点图”,从图中可以粗略看出这些点大致散落在某直线近旁, 我们认为其近似为一线性函数,下面介绍求解步骤。
782785

783786
\begin{figure}[htbp]
784-
\centering
785-
\includegraphics[width=0.6\textwidth]{scatter.pdf}
786-
\caption{散点图示例 $\hat{y}=a+bx$ \label{fig:scatter}}
787+
\centering
788+
\includegraphics[width=0.6\textwidth]{scatter.pdf}
789+
\caption{散点图示例 $\hat{y}=a+bx$ \label{fig:scatter}}
787790
\end{figure}
788791

789792
以最简单的一元线性模型来解释最小二乘法。什么是一元线性模型呢?监督学习中,如果预测的变量是离散的,我们称其为分类(如决策树,支持向量机等),如果预测的变量是连续的,我们称其为回归。回归分析中,如果只包括一个自变量和一个因变量,且二者的关系可用一条直线近似表示,这种回归分析称为一元线性回归分析。如果回归分析中包括两个或两个以上的自变量,且因变量和自变量之间是线性关系,则称为多元线性回归分析。对于二维空间线性是一条直线;对于三维空间线性是一个平面,对于多维空间线性是一个超平面。
@@ -841,29 +844,29 @@ \chapter{版本更新历史}
841844

842845
根据用户的反馈,我们不断修正和完善模板。截止到此次更新,ElegantBook 模板在 GitHub 上有将近 100 次提交,正式发行版本(release)有 16 次。
843846

844-
\datechange{2020/02/08}{版本 3.10 正式发布}
847+
\datechange{2020/02/10}{版本 3.10 正式发布}
845848

846849
\begin{change}
847850
\item 增加数学字体选项 \lstinline{math},可选项为 \lstinline{newtx} 和 \lstinline{cm}。\\
848851
\textbf{重要提示}:原先通过 \lstinline{newtxmath} 宏包设置的数学字体改为 \LaTeX{} 默认数学字体,如果需要保持原来的字体,需要显式声明数学字体(\lstinline{math=newtx});
849852
\item 新增中文字体选项 \lstinline{chinesefont},可选项为 \lstinline{ctexfont}、\lstinline{founder} 和 \lstinline{nofont}。
850853
\item 将封面作者信息设置为可选,并且增加自定义信息命令 \lstinline{\bioinfo};
851-
\item 在说明文档中增加版本历史,新增 \lstinline{\datechange} 命令和 \lstinline{change} 环境;
852-
\item 增加汉化章节选项 \lstinline{scheme},可选项为汉化 \lstinline{chinese};
853-
\item 由于 \lstinline{\lvert} 问题已经修复,重新调整 \lstinline{ctex} 宏包和 \lstinline{amsmath} 宏包位置。
854-
\item 修改页眉设置,去除了 \lstinline{\lastpage} 以避免 page anchor 问题,加入 \lstinline{\frontmatter}。
855-
\item 修改参考文献选项 \lstinline{cite},可选项为数字 \lstinline{number}、 作者-年份 \lstinline{authoryear} 以及上标 \lstinline{super}。
856-
\item 新增参考文献样式选项 \lstinline{bibstyle},并将英文模式下参考文献样式 \lstinline{apalike} 设置为默认值,中文仍然使用 \lstinline{gbt7714} 宏包设置。
854+
\item 在说明文档中增加版本历史,新增 \lstinline{\datechange} 命令和 \lstinline{change} 环境;
855+
\item 增加汉化章节选项 \lstinline{scheme},可选项为汉化 \lstinline{chinese};
856+
\item 由于 \lstinline{\lvert} 问题已经修复,重新调整 \lstinline{ctex} 宏包和 \lstinline{amsmath} 宏包位置。
857+
\item 修改页眉设置,去除了 \lstinline{\lastpage} 以避免 page anchor 问题,加入 \lstinline{\frontmatter}。
858+
\item 修改参考文献选项 \lstinline{cite},可选项为数字 \lstinline{number}、 作者-年份 \lstinline{authoryear} 以及上标 \lstinline{super}。
859+
\item 新增参考文献样式选项 \lstinline{bibstyle},并将英文模式下参考文献样式 \lstinline{apalike} 设置为默认值,中文仍然使用 \lstinline{gbt7714} 宏包设置。
857860
\end{change}
858861

859862
\datechange{2019/08/18}{版本 3.09 正式发布}
860863

861864
\begin{change}
862-
\item 由于 \lstinline{\elegantpar} 存在一些问题,暂时性删除 \lstinline{\elegantpar} 命令,并提示用户改用 \lstinline{\marginnote} 和 \lstinline{\marginpar} 旁注/边注命令。
863-
\item 积分操作符统一更改为 \lstinline{esint} 宏包设置;
864-
\item 新增目录选项 \lstinline{toc},可选项为单栏 \lstinline{onecol} 和双栏 \lstinline{twocol};
865-
\item 手动增加参考文献选项 \lstinline{cite},可选项为上标形式 \lstinline{super};
866-
\item 修正章节习题(\lstinline{problemset})环境。
865+
\item 由于 \lstinline{\elegantpar} 存在一些问题,暂时性删除 \lstinline{\elegantpar} 命令,并提示用户改用 \lstinline{\marginnote} 和 \lstinline{\marginpar} 旁注/边注命令。
866+
\item 积分操作符统一更改为 \lstinline{esint} 宏包设置;
867+
\item 新增目录选项 \lstinline{toc},可选项为单栏 \lstinline{onecol} 和双栏 \lstinline{twocol};
868+
\item 手动增加参考文献选项 \lstinline{cite},可选项为上标形式 \lstinline{super};
869+
\item 修正章节习题(\lstinline{problemset})环境。
867870
\end{change}
868871

869872
\nocite{*}

0 commit comments

Comments
 (0)