mirror of
https://github.com/ElegantLaTeX/ElegantBook.git
synced 2026-01-26 20:34:36 +08:00
Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
ec862e0bf6 |
@@ -5,11 +5,11 @@
|
|||||||
%% This work may be distributed and/or modified freely
|
%% This work may be distributed and/or modified freely
|
||||||
%% available at https://ddswhu.me/resource/
|
%% available at https://ddswhu.me/resource/
|
||||||
% %
|
% %
|
||||||
%% Last Modification 2018-12-31
|
%% Last Modification 2018-01-08
|
||||||
%%%%%%%%%%%%%%%%%%%%%
|
%%%%%%%%%%%%%%%%%%%%%
|
||||||
% % !Mode:: "TeX:UTF-8"
|
% % !Mode:: "TeX:UTF-8"
|
||||||
\NeedsTeXFormat{LaTeX2e}
|
\NeedsTeXFormat{LaTeX2e}
|
||||||
\ProvidesClass{elegantbook}[2018/12/31 v3.02 ElegantBook document class]
|
\ProvidesClass{elegantbook}[2018/01/08 v3.03 ElegantBook document class]
|
||||||
|
|
||||||
\RequirePackage{kvoptions}
|
\RequirePackage{kvoptions}
|
||||||
\RequirePackage{etoolbox}
|
\RequirePackage{etoolbox}
|
||||||
@@ -17,7 +17,7 @@
|
|||||||
\newcommand{\ekv}[1]{\kvsetkeys{ELEGANT}{#1}}
|
\newcommand{\ekv}[1]{\kvsetkeys{ELEGANT}{#1}}
|
||||||
|
|
||||||
% ----- Colors -----
|
% ----- Colors -----
|
||||||
\DeclareStringOption[green]{color}[green]
|
\DeclareStringOption[green]{color}
|
||||||
% ----- backward compatibility
|
% ----- backward compatibility
|
||||||
\DeclareVoidOption{green}{\ekv{color = green}}
|
\DeclareVoidOption{green}{\ekv{color = green}}
|
||||||
\DeclareVoidOption{cyan}{\ekv{color = cyan}}
|
\DeclareVoidOption{cyan}{\ekv{color = cyan}}
|
||||||
@@ -116,7 +116,7 @@
|
|||||||
\renewcommand{\listfigurename}{插图目录}
|
\renewcommand{\listfigurename}{插图目录}
|
||||||
\renewcommand{\listtablename}{表格目录}
|
\renewcommand{\listtablename}{表格目录}
|
||||||
\renewcommand{\bibname}{参考文献}
|
\renewcommand{\bibname}{参考文献}
|
||||||
\renewcommand{\appendixname}{附\hspace{2em}录}
|
\renewcommand{\appendixname}{附录}
|
||||||
\renewcommand{\indexname}{索\hspace{2em}引}
|
\renewcommand{\indexname}{索\hspace{2em}引}
|
||||||
|
|
||||||
% more pretty font
|
% more pretty font
|
||||||
@@ -169,7 +169,8 @@
|
|||||||
|
|
||||||
\hypersetup{
|
\hypersetup{
|
||||||
breaklinks,
|
breaklinks,
|
||||||
unicode,
|
unicode,
|
||||||
|
linktoc=all,
|
||||||
bookmarksnumbered=true,
|
bookmarksnumbered=true,
|
||||||
bookmarksopen=true,
|
bookmarksopen=true,
|
||||||
pdfsubject=\@author \@title Book,
|
pdfsubject=\@author \@title Book,
|
||||||
@@ -197,10 +198,12 @@
|
|||||||
|
|
||||||
%% 章节设置
|
%% 章节设置
|
||||||
\RequirePackage[center,pagestyles]{titlesec}
|
\RequirePackage[center,pagestyles]{titlesec}
|
||||||
\renewcommand{\chaptername}{第 \thechapter\;章}
|
\RequirePackage{apptools}
|
||||||
|
\RequirePackage[toc,page]{appendix}
|
||||||
|
|
||||||
|
\renewcommand{\chaptername}{第 \thechapter\;章}
|
||||||
\titleformat{\chapter}[\style]{\bfseries}
|
\titleformat{\chapter}[\style]{\bfseries}
|
||||||
{\filcenter\LARGE\enspace\bfseries{\color{main}\chaptername}\enspace}{1pt}{\bfseries\color{main}\LARGE\filcenter}[\filcenter\base]
|
{\filcenter\LARGE\enspace\bfseries{\color{main}\IfAppendix{\appendixname}{\chaptername}\enspace}}{1pt}{\bfseries\color{main}\LARGE\filcenter}[\filcenter\base]
|
||||||
|
|
||||||
|
|
||||||
\titleformat{\section}[hang]{\bfseries}
|
\titleformat{\section}[hang]{\bfseries}
|
||||||
@@ -352,18 +355,15 @@
|
|||||||
{\Huge \bfseries{\color{main} \the\zhtitle } \the\zhend}\\
|
{\Huge \bfseries{\color{main} \the\zhtitle } \the\zhend}\\
|
||||||
\rule{0.8\textwidth}{2pt}
|
\rule{0.8\textwidth}{2pt}
|
||||||
\end{center}
|
\end{center}
|
||||||
\vskip3ex
|
\vfill
|
||||||
\begin{figure}[htp]
|
\vskip5ex
|
||||||
\centering
|
\centerline{\@logo}
|
||||||
\@logo
|
|
||||||
\end{figure}
|
|
||||||
\begin{center}
|
\begin{center}
|
||||||
\begin{minipage}{0.65\textwidth}
|
\begin{minipage}{0.65\textwidth}
|
||||||
\indent\centering\color{bule}\@myquote
|
\indent\centering\color{bule}\@myquote
|
||||||
\end{minipage}
|
\end{minipage}
|
||||||
\end{center}
|
\end{center}
|
||||||
\vfill
|
\vfill
|
||||||
\vspace{2cm}
|
|
||||||
\begin{flushright}
|
\begin{flushright}
|
||||||
\color{second}
|
\color{second}
|
||||||
\rule{0.45\textwidth}{1pt}\\
|
\rule{0.45\textwidth}{1pt}\\
|
||||||
|
|||||||
3343
figure/ElegantLaTeX_green.pdf
Normal file
3343
figure/ElegantLaTeX_green.pdf
Normal file
File diff suppressed because one or more lines are too long
BIN
figure/icon.png
Normal file
BIN
figure/icon.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 32 KiB |
1629
figure/logo.pdf
1629
figure/logo.pdf
File diff suppressed because one or more lines are too long
BIN
figure/logo.png
BIN
figure/logo.png
Binary file not shown.
|
Before Width: | Height: | Size: 353 KiB After Width: | Height: | Size: 20 KiB |
21
guide.tex
21
guide.tex
@@ -7,9 +7,9 @@
|
|||||||
\zhend{模板}
|
\zhend{模板}
|
||||||
\entitle{Elegant\LaTeX{} Book}
|
\entitle{Elegant\LaTeX{} Book}
|
||||||
\enend{Template}
|
\enend{Template}
|
||||||
\version{3.02}
|
\version{3.03}
|
||||||
\myquote{Victory won\rq t come to us unless we go to it.}
|
\myquote{Victory won\rq t come to us unless we go to it.}
|
||||||
\logo{logo.png}
|
\logo{ElegantLaTeX_green.pdf}
|
||||||
\cover{cover.pdf}
|
\cover{cover.pdf}
|
||||||
|
|
||||||
%green color
|
%green color
|
||||||
@@ -29,8 +29,6 @@
|
|||||||
\usepackage{lipsum}
|
\usepackage{lipsum}
|
||||||
\usepackage{texnames}
|
\usepackage{texnames}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
\begin{document}
|
\begin{document}
|
||||||
\maketitle
|
\maketitle
|
||||||
\tableofcontents
|
\tableofcontents
|
||||||
@@ -223,6 +221,19 @@ Lebesgue 积分有几种不同的定义方式。我们将采用逐步定义非
|
|||||||
\bibliographystyle{aer}
|
\bibliographystyle{aer}
|
||||||
\bibliography{reference}
|
\bibliography{reference}
|
||||||
|
|
||||||
\addcontentsline{toc}{chapter}{参考文献}
|
\appendix
|
||||||
|
\chapter{线性代数}
|
||||||
|
|
||||||
|
\section{矩阵的分块}
|
||||||
|
|
||||||
|
\begin{equation}
|
||||||
|
\begin{vmatrix}
|
||||||
|
A_1 & 0\\
|
||||||
|
C & A_2
|
||||||
|
\end{vmatrix}
|
||||||
|
=|A_1|\times |A_2|
|
||||||
|
\end{equation}
|
||||||
|
|
||||||
|
由矩阵 $A$ 的若干行、若干列的交叉位置元素按照原来顺序排成的矩阵称为 $A$ 的一个\textbf{子矩阵}。
|
||||||
|
|
||||||
\end{document}
|
\end{document}
|
||||||
|
|||||||
Reference in New Issue
Block a user