1
- \documentclass [cn,11pt,chinese,founder,hide ]{elegantbook }
1
+ \documentclass [cn,11pt,chinese ]{elegantbook }
2
2
3
3
\title {ElegantBook:优美的 \LaTeX {} 书籍模板}
4
4
\subtitle {Elegant\LaTeX {} 经典之作}
5
5
6
6
\author {Ethan Deng \& Liam Huang}
7
7
\institute {Elegant\LaTeX {} Program}
8
- \date {\today }
8
+ \date {February 10, 2020 }
9
9
\version {3.10}
10
10
\bioinfo {自定义}{信息}
11
11
14
14
\logo {logo-blue.png}
15
15
\cover {cover.jpg}
16
16
17
-
17
+ % 本文档命令
18
18
\usepackage {array }
19
-
20
19
\newcommand {\ccr }[1]{\makecell {{\color {#1}\rule {1cm}{1cm}}}}
21
-
20
+ % 修改目录深度
22
21
\setcounter {tocdepth}{2}
23
- \newcommand { \cd }{ \lstinline }
22
+
24
23
\begin {document }
25
24
26
25
\maketitle
@@ -45,7 +44,7 @@ \chapter*{特别声明}
45
44
46
45
\begin {flushright }
47
46
Ethan Deng\\
48
- February 8 , 2020
47
+ February 10 , 2020
49
48
\end {flushright }
50
49
51
50
\tableofcontents
@@ -78,16 +77,16 @@ \section{ElegantBook 更新说明}
78
77
\textbf {重要提示 }:原先通过 \lstinline {newtxmath} 宏包设置的数学字体改为 \LaTeX {} 默认数学字体,如果需要保持原来的字体,需要显式声明数学字体(\lstinline {math=newtx});
79
78
\item 新增中文字体选项 \lstinline {chinesefont},可选项为 \lstinline {ctexfont}、\lstinline {founder} 和 \lstinline {nofont}。
80
79
\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} 宏包设置。
87
86
\end {enumerate }
88
87
89
88
\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}{跨版本转换}。
91
90
\end {note }
92
91
93
92
\section {模板安装与更新 }
@@ -165,7 +164,7 @@ \section{协作人员招募}
165
164
另外,也感谢 \href {https://github.com/stone-zeng}{Xiangdong Zeng}、\href {https://github.com/latexers}{逐鹿人}等人帮忙群管理。
166
165
167
166
\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 {} 相关的网站。
169
168
170
169
如果你喜欢我们的模板,你可以在 GitHub 上收藏我们的模板。
171
170
% \begin{figure}[htbp]
@@ -215,7 +214,7 @@ \section{捐赠}
215
214
F*5 & 10 RMB & 2020/01/03 & 微信 & S*m & 20.20 RMB & 2020/01/03 & 微信 \\
216
215
二代青雉 & 13 RMB & 2020/01/14 & 支付宝 & *? & 66 RMB & 2020/01/15 & 微信 \\
217
216
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 & 微信 \\
219
218
\hline
220
219
\end {tabular }%
221
220
\label {tab:donation }%
@@ -580,9 +579,9 @@ \section{旁注}
580
579
581
580
% equation
582
581
\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}
586
585
}
587
586
\end {lstlisting }
588
587
@@ -591,18 +590,18 @@ \section{旁注}
591
590
\ begin{lstlisting}
592
591
% graph with centerline command
593
592
\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}
598
597
}
599
598
600
599
% graph with center environment
601
600
\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}
606
605
}
607
606
\end {lstlisting }
608
607
@@ -612,7 +611,7 @@ \section{旁注}
612
611
\chapter {字体选项 }
613
612
字体选项独立成章的原因是,我们希望本模板的用户关心模板使用的字体,知晓自己使用的字体以及遇到字体相关的问题能更加便捷地找到答案。
614
613
615
- \textcolor {red}{\bfseries 重要提示}:从 2020 年 2 月 8 日 3.10 版本更新之后,沿用至今的 newtx 系列字体被重新更改为 cm 字体。并且新增中文字体(\lstinline {chinesefont})选项。
614
+ \textcolor {red}{\bfseries 重要提示}:从 3.10 版本更新之后,沿用至今的 newtx 系列字体被重新更改为 cm 字体。并且新增中文字体(\lstinline {chinesefont})选项。
616
615
617
616
\section {数学字体选项 }
618
617
@@ -635,12 +634,12 @@ \subsection{连字符}
635
634
636
635
如果使用 \lstinline {newtx} 系列字体宏包,需要注意下连字符的问题。
637
636
\begin {equation }
638
- \int _{R^q} f(x,y) dy.\emph {of\kern 0pt f }
637
+ \int _{R^q} f(x,y) dy.\emph {of\kern 0pt f }
639
638
\end {equation }
640
639
的代码为
641
640
\ begin{lstlisting}
642
641
\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}
644
643
\end{equation}
645
644
\end {lstlisting }
646
645
@@ -674,6 +673,10 @@ \section{中文字体选项}
674
673
\item \lstinline {nofont}:调用 \lstinline {ctex} 宏包并且使用 \lstinline {fontset=none} 选项,不设定中文字体,用户可以自行设置中文字体,具体见后文。
675
674
\end {enumerate }
676
675
676
+ \begin {remark }
677
+ 使用 \lstinline {founder} 选项或者 \lstinline {nofont} 时,必须使用 \hologo {XeLaTeX} 进行编译。
678
+ \end {remark }
679
+
677
680
\subsection {方正字体选项 }
678
681
由于使用 \lstinline {ctex} 宏包默认调用系统已有的字体,部分系统字体缺失严重,因此,用户希望能够使用其它字体,我们推荐使用方正字体。方正的 {\songti 方正书宋}、{\heiti 方正黑体}、{\kaishu 方正楷体}、{\fangsong 方正仿宋}四款字体均可免费试用,且可用于商业用途。
679
682
@@ -781,9 +784,9 @@ \subsection{积分的定义}
781
784
我们知道最小二乘法可以用来处理一组数据,可以从一组测定的数据中寻求变量之间的依赖关系,这种函数关系称为经验公式。本课题将介绍最小二乘法的精确定义及如何寻求点与点之间近似成线性关系时的经验公式。假定实验测得变量之间的 $ n$ 个数据,则在平面上,可以得到 $ n$ 个点,这种图形称为 “散点图”,从图中可以粗略看出这些点大致散落在某直线近旁, 我们认为其近似为一线性函数,下面介绍求解步骤。
782
785
783
786
\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 }}
787
790
\end {figure }
788
791
789
792
以最简单的一元线性模型来解释最小二乘法。什么是一元线性模型呢?监督学习中,如果预测的变量是离散的,我们称其为分类(如决策树,支持向量机等),如果预测的变量是连续的,我们称其为回归。回归分析中,如果只包括一个自变量和一个因变量,且二者的关系可用一条直线近似表示,这种回归分析称为一元线性回归分析。如果回归分析中包括两个或两个以上的自变量,且因变量和自变量之间是线性关系,则称为多元线性回归分析。对于二维空间线性是一条直线;对于三维空间线性是一个平面,对于多维空间线性是一个超平面。
@@ -841,29 +844,29 @@ \chapter{版本更新历史}
841
844
842
845
根据用户的反馈,我们不断修正和完善模板。截止到此次更新,ElegantBook 模板在 GitHub 上有将近 100 次提交,正式发行版本(release)有 16 次。
843
846
844
- \datechange {2020/02/08 }{版本 3.10 正式发布}
847
+ \datechange {2020/02/10 }{版本 3.10 正式发布}
845
848
846
849
\begin {change }
847
850
\item 增加数学字体选项 \lstinline {math},可选项为 \lstinline {newtx} 和 \lstinline {cm}。\\
848
851
\textbf {重要提示 }:原先通过 \lstinline {newtxmath} 宏包设置的数学字体改为 \LaTeX {} 默认数学字体,如果需要保持原来的字体,需要显式声明数学字体(\lstinline {math=newtx});
849
852
\item 新增中文字体选项 \lstinline {chinesefont},可选项为 \lstinline {ctexfont}、\lstinline {founder} 和 \lstinline {nofont}。
850
853
\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} 宏包设置。
857
860
\end {change }
858
861
859
862
\datechange {2019/08/18}{版本 3.09 正式发布}
860
863
861
864
\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})环境。
867
870
\end {change }
868
871
869
872
\nocite {*}
0 commit comments