2 Commits
v2.10 ... v2.30

Author SHA1 Message Date
EthanDeng
775f3fe3d5 v2.30 2019-01-15 15:10:07 +08:00
EthanDeng
828e91ec7e v2.20 2019-01-15 15:07:45 +08:00
3 changed files with 33 additions and 30 deletions

View File

@@ -3,14 +3,13 @@
%% Copyright 2013-2019 ElegantLaTeX (ElegantLaTeX2e@gmail.com) %% Copyright 2013-2019 ElegantLaTeX (ElegantLaTeX2e@gmail.com)
%% %%
%% This work may be distributed and/or modified freely %% This work may be distributed and/or modified freely
%% available at http://elegantlatex.tk/download/ %% available at https://ddswhu.me/resource/
%% and http://ddswhu.com/download/
% % % %
%% Last Modification 2014-2-3 %% Last Modification 2018-9-11
%%%%%%%%%%%%%%%%%%%%% %%%%%%%%%%%%%%%%%%%%%
% % !Mode:: "TeX:UTF-8" % % !Mode:: "TeX:UTF-8"
\NeedsTeXFormat{LaTeX2e} \NeedsTeXFormat{LaTeX2e}
\ProvidesClass{elegantbook}[2014/01/20 v2.00 ElegantBook document class] \ProvidesClass{elegantbook}[2014/01/20 v2.30 ElegantBook document class]
\RequirePackage{kvoptions} \RequirePackage{kvoptions}
\RequirePackage{etoolbox} \RequirePackage{etoolbox}
@@ -208,9 +207,9 @@
\setmonofont{Inconsolata}%Palatino Linotype \setmonofont{Inconsolata}%Palatino Linotype
%--% %--%
\RequirePackage{xeCJK} \RequirePackage{xeCJK}
\setCJKmainfont[BoldFont={},ItalicFont={}]{HYShuSongYiJ}%_GBK Adobe Song Std L \setCJKmainfont[BoldFont={},ItalicFont={}]{}%_GBK Adobe Song Std L
\setCJKsansfont[BoldFont={}]{线} \setCJKsansfont[BoldFont={}]{}
\setCJKmonofont{线} \setCJKmonofont{}
\XeTeXlinebreaklocale "zh" \XeTeXlinebreaklocale "zh"
\XeTeXlinebreakskip = 0pt plus 1pt \XeTeXlinebreakskip = 0pt plus 1pt
@@ -256,10 +255,10 @@
\begin{tikzpicture} \begin{tikzpicture}
\node[newthemsty] (box){ \node[newthemsty] (box){
\begin{minipage}{0.93\columnwidth} \begin{minipage}{0.93\columnwidth}
\sffamily\BODY \sffamily\refstepcounter{Newthem}\BODY
\end{minipage}}; \end{minipage}};
\node[newthemstytitle,right=10pt] at (box.north west){ \node[newthemstytitle,right=10pt] at (box.north west){
\bf\textsf{Theorem \stepcounter{Newthem}\theNewthem\; #1}}; \bf\textsf{Theorem \theNewthem\; #1}};
\node[newthemstytitle, rounded corners] at (box.east) {$\clubsuit$}; \node[newthemstytitle, rounded corners] at (box.east) {$\clubsuit$};
\end{tikzpicture} \end{tikzpicture}
\end{figure}} \end{figure}}
@@ -273,10 +272,10 @@
\begin{tikzpicture} \begin{tikzpicture}
\node[newthemsty] (box){ \node[newthemsty] (box){
\begin{minipage}{0.93\columnwidth} \begin{minipage}{0.93\columnwidth}
\sffamily\BODY \sffamily\refstepcounter{Newlemma}\BODY
\end{minipage}}; \end{minipage}};
\node[newthemstytitle,right=10pt] at (box.north west){ \node[newthemstytitle,right=10pt] at (box.north west){
\bf\textsf{Lemma \stepcounter{Newlemma}\theNewlemma\; #1}}; \bf\textsf{Lemma \theNewlemma\; #1}};
\node[newthemstytitle, rounded corners] at (box.east) {$\clubsuit$}; \node[newthemstytitle, rounded corners] at (box.east) {$\clubsuit$};
\end{tikzpicture} \end{tikzpicture}
\end{figure}} \end{figure}}
@@ -290,10 +289,10 @@
\begin{tikzpicture} \begin{tikzpicture}
\node[newthemsty] (box){ \node[newthemsty] (box){
\begin{minipage}{0.93\columnwidth} \begin{minipage}{0.93\columnwidth}
\sffamily\BODY \sffamily\refstepcounter{Newcorol}\BODY
\end{minipage}}; \end{minipage}};
\node[newthemstytitle,right=10pt] at (box.north west){ \node[newthemstytitle,right=10pt] at (box.north west){
\bf\textsf{Corollary \stepcounter{Newcorol}\theNewcorol\; #1}}; \bf\textsf{Corollary \theNewcorol\; #1}};
\node[newthemstytitle, rounded corners] at (box.east) {$\clubsuit$}; \node[newthemstytitle, rounded corners] at (box.east) {$\clubsuit$};
\end{tikzpicture} \end{tikzpicture}
\end{figure}} \end{figure}}
@@ -306,10 +305,10 @@
\begin{tikzpicture} \begin{tikzpicture}
\node[newpropositionsty] (box){ \node[newpropositionsty] (box){
\begin{minipage}{0.93\columnwidth} \begin{minipage}{0.93\columnwidth}
\sffamily\BODY \sffamily\refstepcounter{Newprop}\BODY
\end{minipage}}; \end{minipage}};
\node[newpropositionstytitle,right=10pt] at (box.north west){ \node[newpropositionstytitle,right=10pt] at (box.north west){
\bf\textsf{Proposition \stepcounter{Newprop}\theNewprop\; #1}}; \bf\textsf{Proposition \theNewprop\; #1}};
\node[newpropositionstytitle, rounded corners] at (box.east) {$\spadesuit$}; \node[newpropositionstytitle, rounded corners] at (box.east) {$\spadesuit$};
\end{tikzpicture} \end{tikzpicture}
\end{figure}} \end{figure}}
@@ -321,8 +320,8 @@
\NewEnviron{newdef}[1][{}]{% \NewEnviron{newdef}[1][{}]{%
\begin{figure}[!htb]\noindent\centering \begin{figure}[!htb]\noindent\centering
\begin{tikzpicture} \begin{tikzpicture}
\node [newdefinitionsty] (dbox){\begin{minipage}{0.93\textwidth}\itshape\BODY\end{minipage}}; \node [newdefinitionsty] (dbox){\begin{minipage}{0.93\textwidth}\itshape\refstepcounter{Newdefinition}\BODY\end{minipage}};
\node[newdefinitionstytitle, right=10pt] at (dbox.north west) {\bf\textsf{Definition \stepcounter{Newdefinition}\theNewdefinition\; #1}}; \node[newdefinitionstytitle, right=10pt] at (dbox.north west) {\bf\textsf{Definition \theNewdefinition\; #1}};
\node[newdefinitionstytitle, rounded corners] at (dbox.east) {$\heartsuit$}; \node[newdefinitionstytitle, rounded corners] at (dbox.east) {$\heartsuit$};
\end{tikzpicture} \end{tikzpicture}
\end{figure}} \end{figure}}
@@ -388,7 +387,7 @@
\def\maketitle{% \def\maketitle{%
\thispagestyle{empty} \thispagestyle{empty}
\@cover % \@cover
\vfill \vfill
\vspace*{2cm} \vspace*{2cm}
\begin{center} \begin{center}

BIN
guide.pdf

Binary file not shown.

View File

@@ -1,13 +1,14 @@
%!TEX program = xelatex %!TEX program = xelatex
\documentclass[color=green,mathpazo,titlestyle=hang,11pt]{elegantbook} \documentclass[mathpazo,titlestyle=hang,11pt]{elegantbook}
\author{ddswhu \& LiamHuang0205} \author{ddswhu \& LiamHuang0205}
\email{elegantlatex2e@gmail.com} \email{ddswhu@outlook.com}
\zhtitle{优美的\LaTeX{} 书籍} \zhtitle{优美的\LaTeX{} 书籍}
\zhend{} \zhend{模板}
\entitle{Elegant\LaTeX{} Book} \entitle{Elegant\LaTeX{} Book}
\enend{Template} \enend{Template}
\version{2.10} \version{2.30}
\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.pdf} \logo{logo.pdf}
\cover{cover.pdf} \cover{cover.pdf}
@@ -38,6 +39,7 @@
只有当自己想去做一件事的时候才能把事情做好! 只有当自己想去做一件事的时候才能把事情做好!
\section{ElegantNote 的前世今生} \section{ElegantNote 的前世今生}
写 ElegantNote 模板的初衷是为了简化我在写笔记中的工作因为我不会写类文件和包文件所以最当初是想拜托小L做出一个华丽清爽的 \LaTeX{} 模板最好是类文件而且因为这样可以简化导言区复杂的内容。后来和小L一拍即合遂开始一起做Elegant\LaTeX{}的设计。 写 ElegantNote 模板的初衷是为了简化我在写笔记中的工作因为我不会写类文件和包文件所以最当初是想拜托小L做出一个华丽清爽的 \LaTeX{} 模板最好是类文件而且因为这样可以简化导言区复杂的内容。后来和小L一拍即合遂开始一起做Elegant\LaTeX{}的设计。
@@ -73,24 +75,26 @@
\section{关于我们} \section{关于我们}
我们目前都是学生,接触 \LaTeX{} 的时间也不是很长,因此,对于此模板的错误还请多多包涵! 目前,模板的拓展性或者可移植性有待完善,所以,我们强烈建议用户不要大幅修改模板文件,我们的初衷是提供一套模板,让初学者能够使用一些比较美观,优雅的模板。如果在使用过程中,想修改一些简单的东西需要帮忙,请联系我们,我们的邮箱是:\href{elegantlatex2e@gmail.com}{elegantlatex2e@gmail.com}。我们将竭尽全力提供帮助! 我们目前都是学生,接触 \LaTeX{} 的时间也不是很长,因此,对于此模板的错误还请多多包涵! 目前,模板的拓展性或者可移植性有待完善,所以,我们强烈建议用户不要大幅修改模板文件,我们的初衷是提供一套模板,让初学者能够使用一些比较美观,优雅的模板。如果在使用过程中,想修改一些简单的东西需要帮忙,请联系我们,我们的邮箱是:\href{elegantlatex2e@gmail.com}{elegantlatex2e@gmail.com}。我们将竭尽全力提供帮助!
值此版本发行之际,我们 Elegant\LaTeX{} 项目组向大家重新介绍一下我们的工作,我们的主页是 \href{http://elegantlatex.tk}{http://elegantlatex.tk},我们这个项目致力于打造一系列美观、优雅、简便的模板方便使用者记录学习历史。其中目前在实施或者在规划中的子项目有 书籍模板ElegantBook、笔记模板ElegantNote、幻灯片模板 ElegantSlide。这些子项目的名词是一体的请在使用这些名词的时候不要将其断开如 Elegant Note是不正确的写法。并且Elegant\LaTeX{} Book 指的即是 ElegantBook。 值此版本发行之际,我们 Elegant\LaTeX{} 项目组向大家重新介绍一下我们的工作,我们的主页是 \href{http://elegantlatex.org}{http://elegantlatex.org},我们这个项目致力于打造一系列美观、优雅、简便的模板方便使用者记录学习历史。其中目前在实施或者在规划中的子项目有 书籍模板ElegantBook、笔记模板ElegantNote、幻灯片模板 ElegantSlide。这些子项目的名词是一体的请在使用这些名词的时候不要将其断开如 Elegant Note是不正确的写法。并且Elegant\LaTeX{} Book 指的即是 ElegantBook。
如果您在使用此模板,方便的话,是否可以把您使用此模板制作的成品发一份给我们,谢谢!
\section{关于字体} \section{关于字体}
基于本模板追求视觉上的美观的角度,强烈建议使用者安装./fonts/文件夹下的字体。出于版权的考虑,务必不能将此模板用于涉及盈利目的的商业行为,否则,后果自负,本模板带的字体仅供学习使用,如果您喜欢某种字体,请自行购买正版。本文主要使用的字体如下 基于本模板追求视觉上的美观的角度,强烈建议使用者安装./fonts/文件夹下的字体。出于版权的考虑,务必不能将此模板用于涉及盈利目的的商业行为,否则,后果自负,本模板带的字体仅供学习使用,如果您喜欢某种字体,请自行购买正版。本文主要使用的字体如下
\begin{itemize} \begin{itemize}
\itemsep=3pt \itemsep=3pt
\parskip=0pt \parskip=0pt
\item Adobe Garamond Pro \item Adobe Garamond Pro
\item Minion Pro \& Myriad Pro \& Inconsolata \item 方正苏新诗柳楷简体
\item 方正 \item 方正启体简
\item 华文中宋
\end{itemize} \end{itemize}
\begin{note} \begin{note}
中文正文使用了华文中宋Minion Pro为英文衬线字体\verb|\rmfamily|Myriad Pro为英文非衬线字体\verb|\sffamily|Inconsolata 为英文打字机字体(\verb|\ttfamily| 虽然我们模板更新到了 2.30 了(主要是字体删除,交叉引用的紧急修复),但是使用文档部分并没有更新(仍然是 2.00),在使用过程中,请尽量参考文档说明,如果有问题,可以联系我们
并且,如果系统内安装了Adobe 字体,大家可以把模板中使用到的黑体,楷体,宋体等字替换成 Adobe 字体,这样可以达到最佳效果。 如果系统内安装了Adobe 字体,大家可以把模板中使用到的黑体,楷体,宋体等字替换成 Adobe 字体,这样可以达到最佳效果。
\end{note} \end{note}
\section{文档说明} \section{文档说明}
@@ -174,7 +178,7 @@ $E$ and $F$ be two events such that $\mbf{P}(E)=\mbf{P}(F)=1/2$, and $\mbf{P}(E\
let $S=l^\infty=\big\{(x_n)\mid \exists\, M \text{ such that } \forall n, |x_n|\leq M,x_n\in \mathbb{R}\big\}$, $\rho_{\infty}(x,y)=\sup\limits_{n\geq 1}|x_n-y_n|$, show that $\big(l^\infty,\rho_{\infty}\big)$ is complete. let $S=l^\infty=\big\{(x_n)\mid \exists\, M \text{ such that } \forall n, |x_n|\leq M,x_n\in \mathbb{R}\big\}$, $\rho_{\infty}(x,y)=\sup\limits_{n\geq 1}|x_n-y_n|$, show that $\big(l^\infty,\rho_{\infty}\big)$ is complete.
\end{exercise} \end{exercise}
\begin{newthem}[勾股定理] \begin{newthem}[勾股定理]\label{thm:31}
勾股定理的数学表达Expression 勾股定理的数学表达Expression
\[a^2+b^2=c^2\] \[a^2+b^2=c^2\]
其中$a,b$为直角三角形的两条直角边长,$c$为直角三角形斜边长。 其中$a,b$为直角三角形的两条直角边长,$c$为直角三角形斜边长。
@@ -193,7 +197,7 @@ let $S=l^\infty=\big\{(x_n)\mid \exists\, M \text{ such that } \forall n, |x_n|\
\lipsum[5-6] \lipsum[5-6]
\begin{newcorol} \begin{newcorol}
假设$V(\cdot,\cdot)$为值函数,则跟据最大值原理,有如下推论 假设$V(\cdot,\cdot)$为值函数,则跟据最大值原理~\ref{thm:31},有如下推论
\[ \[
V(k,z)=\max\Big\{u\big(zf(k)-y\big)+\beta \mathbb{E}V(y,z^\prime)\Big\} V(k,z)=\max\Big\{u\big(zf(k)-y\big)+\beta \mathbb{E}V(y,z^\prime)\Big\}
\] \]