Skip to content

Commit ec862e0

Browse files
committed
v3.03
1 parent dc8d927 commit ec862e0

File tree

7 files changed

+29
-18
lines changed

7 files changed

+29
-18
lines changed

elegantbook.cls

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -5,19 +5,19 @@
55
%% This work may be distributed and/or modified freely
66
%% available at https://ddswhu.me/resource/
77
% %
8-
%% Last Modification 2018-12-31
8+
%% Last Modification 2018-01-08
99
%%%%%%%%%%%%%%%%%%%%%
1010
% % !Mode:: "TeX:UTF-8"
1111
\NeedsTeXFormat{LaTeX2e}
12-
\ProvidesClass{elegantbook}[2018/12/31 v3.02 ElegantBook document class]
12+
\ProvidesClass{elegantbook}[2018/01/08 v3.03 ElegantBook document class]
1313

1414
\RequirePackage{kvoptions}
1515
\RequirePackage{etoolbox}
1616
\SetupKeyvalOptions{family=ELEGANT, prefix=ELEGANT@, setkeys=\kvsetkeys}
1717
\newcommand{\ekv}[1]{\kvsetkeys{ELEGANT}{#1}}
1818

1919
% ----- Colors -----
20-
\DeclareStringOption[green]{color}[green]
20+
\DeclareStringOption[green]{color}
2121
% ----- backward compatibility
2222
\DeclareVoidOption{green}{\ekv{color = green}}
2323
\DeclareVoidOption{cyan}{\ekv{color = cyan}}
@@ -116,7 +116,7 @@
116116
\renewcommand{\listfigurename}{插图目录}
117117
\renewcommand{\listtablename}{表格目录}
118118
\renewcommand{\bibname}{参考文献}
119-
\renewcommand{\appendixname}{\hspace{2em}录}
119+
\renewcommand{\appendixname}{附录}
120120
\renewcommand{\indexname}{索\hspace{2em}引}
121121

122122
% more pretty font
@@ -169,7 +169,8 @@
169169

170170
\hypersetup{
171171
breaklinks,
172-
unicode,
172+
unicode,
173+
linktoc=all,
173174
bookmarksnumbered=true,
174175
bookmarksopen=true,
175176
pdfsubject=\@author \@title Book,
@@ -197,10 +198,12 @@
197198

198199
%% 章节设置
199200
\RequirePackage[center,pagestyles]{titlesec}
200-
\renewcommand{\chaptername}{第 \thechapter\;章}
201+
\RequirePackage{apptools}
202+
\RequirePackage[toc,page]{appendix}
201203

204+
\renewcommand{\chaptername}{第 \thechapter\;章}
202205
\titleformat{\chapter}[\style]{\bfseries}
203-
{\filcenter\LARGE\enspace\bfseries{\color{main}\chaptername}\enspace}{1pt}{\bfseries\color{main}\LARGE\filcenter}[\filcenter\base]
206+
{\filcenter\LARGE\enspace\bfseries{\color{main}\IfAppendix{\appendixname}{\chaptername}\enspace}}{1pt}{\bfseries\color{main}\LARGE\filcenter}[\filcenter\base]
204207

205208

206209
\titleformat{\section}[hang]{\bfseries}
@@ -352,18 +355,15 @@
352355
{\Huge \bfseries{\color{main} \the\zhtitle } \the\zhend}\\
353356
\rule{0.8\textwidth}{2pt}
354357
\end{center}
355-
\vskip3ex
356-
\begin{figure}[htp]
357-
\centering
358-
\@logo
359-
\end{figure}
358+
\vfill
359+
\vskip5ex
360+
\centerline{\@logo}
360361
\begin{center}
361362
\begin{minipage}{0.65\textwidth}
362363
\indent\centering\color{bule}\@myquote
363364
\end{minipage}
364365
\end{center}
365366
\vfill
366-
\vspace{2cm}
367367
\begin{flushright}
368368
\color{second}
369369
\rule{0.45\textwidth}{1pt}\\

figure/ElegantLaTeX_green.pdf

758 KB
Binary file not shown.

figure/icon.png

32.5 KB
Loading

figure/logo.pdf

-245 KB
Binary file not shown.

figure/logo.png

-333 KB
Loading

guide.pdf

353 KB
Binary file not shown.

guide.tex

Lines changed: 16 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@
77
\zhend{模板}
88
\entitle{Elegant\LaTeX{} Book}
99
\enend{Template}
10-
\version{3.02}
10+
\version{3.03}
1111
\myquote{Victory won\rq t come to us unless we go to it.}
12-
\logo{logo.png}
12+
\logo{ElegantLaTeX_green.pdf}
1313
\cover{cover.pdf}
1414

1515
%green color
@@ -29,8 +29,6 @@
2929
\usepackage{lipsum}
3030
\usepackage{texnames}
3131

32-
33-
3432
\begin{document}
3533
\maketitle
3634
\tableofcontents
@@ -223,6 +221,19 @@ \subsection{积分的定义}
223221
\bibliographystyle{aer}
224222
\bibliography{reference}
225223

226-
\addcontentsline{toc}{chapter}{参考文献}
224+
\appendix
225+
\chapter{线性代数}
226+
227+
\section{矩阵的分块}
228+
229+
\begin{equation}
230+
\begin{vmatrix}
231+
A_1 & 0\\
232+
C & A_2
233+
\end{vmatrix}
234+
=|A_1|\times |A_2|
235+
\end{equation}
236+
237+
由矩阵 $A$ 的若干行、若干列的交叉位置元素按照原来顺序排成的矩阵称为 $A$ 的一个\textbf{子矩阵}。
227238

228239
\end{document}

0 commit comments

Comments
 (0)