3 Commits
v2.00 ... 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
EthanDeng
11b032ae7e v2.10 2019-01-15 15:06:04 +08:00
21 changed files with 109 additions and 2010 deletions

34
base.tex Normal file
View File

@@ -0,0 +1,34 @@
%% tikz setting
\tikzset{x=1pt,y=1pt}
\tikzset{elegant/.style={fill=main,draw=main},
null/.style={fill=white,draw=none}}
%% the triangle shape
\newcommand{\triz}[2]{
\begin{scope}[xshift=#1,rotate=#2]
\draw[elegant] (0,0) -- (105,6) .. controls (119,21) and (132,13) .. (135,12) .. controls (124,15) and (110,8) .. (107,-12) -- cycle;
\draw[null] (40,-0.5) -- (101,-4) -- (103,1)--cycle;
\end{scope}
}
%% the ellipse shape +127
\newcommand{\ellz}[1]{
\begin{scope}[xshift=#1,yshift=3]
\draw[elegant,rotate around={60:(0,-3)}](0,-3) ellipse (10.5 and 8.5);
\draw[null](-3,-10) .. controls (-10,-6) and (-2,6) .. (4.5,4) .. controls (0,3) and (-4,-6) .. (-3,-10)--cycle;
\end{scope}
}
%% the integration shape+147
\newcommand{\intz}[1]{
\begin{scope}[xshift=#1,yshift=2]
\draw[elegant,draw=none,very thin] (-31,-14.5) .. controls (-17,-21) and (-9,-8) .. (-3,0) .. controls (10,19) and (22,17) .. (29,9) .. controls (21,13) and (13,13) .. (3,-1) .. controls (-4,-11) and (-18,-27) .. (-31,-14.5) -- cycle ;
\end{scope}
}

View File

@@ -3,13 +3,13 @@
%% Copyright 2013-2019 ElegantLaTeX (ElegantLaTeX2e@gmail.com)
%%
%% This work may be distributed and/or modified freely
%% available at http://elegantlatex.tk/download/
%% and http://ddswhu.com/download/
%% available at https://ddswhu.me/resource/
% %
%% Last Modification 2018-9-11
%%%%%%%%%%%%%%%%%%%%%
% % !Mode:: "TeX:UTF-8"
\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{etoolbox}
@@ -40,32 +40,45 @@
% ----- Handle Colors -----
%%
\newcommand*{\base}[1]{
\def\@base{\includegraphics[scale=0.3]{#1}
}
}
\RequirePackage{xcolor}
\ifdefstring{\ELEGANT@color}{green}{
\definecolor{main}{RGB}{0,120,2}%
\definecolor{seco}{RGB}{230,90,7}%
\definecolor{thid}{RGB}{0,160,152}%
\base{greenbase.pdf}%
% \base{greenbase.pdf}%
}{\relax}
\ifdefstring{\ELEGANT@color}{cyan}{
\definecolor{main}{RGB}{0,175,152}%
\definecolor{seco}{RGB}{239,126,30}%
\definecolor{thid}{RGB}{120,8,13}%
\base{cyanbase.pdf}%
% \base{cyanbase.pdf}%
}{\relax}
\ifdefstring{\ELEGANT@color}{blue}{
\definecolor{main}{RGB}{20,50,104}%
\definecolor{seco}{RGB}{180,50,131}%
\definecolor{thid}{RGB}{7,127,128}%
\base{bluebase.pdf}%
% \base{bluebase.pdf}%
}{\relax}
\AtBeginDocument{
\input{base.tex}
}
\providecommand{\base}{
\begin{tikzpicture}[scale=0.3]
\triz{0}{0}
\ellz{128}
\intz{149}
\ellz{170}
\intz{191}
\ellz{212}
\triz{341}{180}
\end{tikzpicture}}
%\newcommand*{\base}{
%}
% ----- Handle Math option -----
\ifELEGANT@mathpazo
@@ -85,8 +98,6 @@
\newtoks\enend
\newtoks\zhend
%%
%%
@@ -113,6 +124,7 @@
}
%%
\RequirePackage{hyperref}
@@ -151,15 +163,14 @@
footskip=12mm
}
%%
\RequirePackage[center,pagestyles]{titlesec}
\renewcommand{\chaptername}{ \thechapter }
\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}\chaptername}\enspace}{1pt}{\bfseries\color{main}\LARGE\filcenter}[\filcenter\base]
\titleformat{\section}[hang]{\sffamily}
{\hspace{-2.45em}\Large\bfseries{\color{main}\thesection}\enspace}{1pt}{\color{main}\Large\bfseries\filright}
@@ -185,7 +196,6 @@
\RequirePackage{caption}
\captionsetup{labelfont = bf}
%%
\RequirePackage{fontenc}
\RequirePackage[no-math,cm-default]{fontspec}
@@ -197,9 +207,9 @@
\setmonofont{Inconsolata}%Palatino Linotype
%--%
\RequirePackage{xeCJK}
\setCJKmainfont[BoldFont={},ItalicFont={}]{}%_GBK Adobe Song Std L
\setCJKsansfont[BoldFont={}]{线}
\setCJKmonofont{线}
\setCJKmainfont[BoldFont={},ItalicFont={}]{}%_GBK Adobe Song Std L
\setCJKsansfont[BoldFont={}]{}
\setCJKmonofont{}
\XeTeXlinebreaklocale "zh"
\XeTeXlinebreakskip = 0pt plus 1pt
@@ -320,12 +330,12 @@
%% Example with counter
\newcounter{Newexam}[chapter]
\renewcommand{\theNewexam}{\thechapter.\arabic{Newexam}}
\newenvironment{example}{\par\noindent\textbf{Example\,\refstepcounter{Newexam}\theNewexam: }\color{black!90}}{\par}
\newenvironment{example}{\par\noindent\textbf{Example\,\stepcounter{Newexam}\theNewexam: }\color{black!90}}{\par}
%% Exercise with counter
\newcounter{Newexer}[chapter]
\renewcommand{\theNewexer}{\thechapter.\arabic{Newexer}}
\newenvironment{exercise}{\par\noindent{\makebox[0pt][r]{\color{main}\ding{50}\;\;}}\textbf{Exercise\,\refstepcounter{Newexer}\theNewexer: }}{\par}
\newenvironment{exercise}{\par\noindent{\makebox[0pt][r]{\color{main}\ding{50}\;\;}}\textbf{Exercise\,\stepcounter{Newexer}\theNewexer: }}{\par}
%%define the note and newproof environment
\RequirePackage{pifont,manfnt}
@@ -353,7 +363,7 @@
\fancyhead[EL,OR]{\color{main}--\thepage/\pageref{LastPage}--}
\fancyhead[ER]{\color{main}\em\nouppercase\leftmark{}}
\fancyhead[OL]{\color{main}\em\nouppercase\rightmark}
\fancyfoot[c]{\@base}
\fancyfoot[c]{\base}
\renewcommand{\headrule}{\color{main}\hrule width\textwidth}
\pagestyle{fancy}
@@ -377,7 +387,7 @@
\def\maketitle{%
\thispagestyle{empty}
\@cover
% \@cover
\vfill
\vspace*{2cm}
\begin{center}

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

Binary file not shown.

Before

Width:  |  Height:  |  Size: 36 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 9.0 KiB

After

Width:  |  Height:  |  Size: 9.0 KiB

Binary file not shown.

Binary file not shown.

Before

Width:  |  Height:  |  Size: 14 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 23 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 32 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 42 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 52 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 73 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 94 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 32 KiB

BIN
guide.pdf

Binary file not shown.

View File

@@ -1,14 +1,14 @@
%!TEX program = xelatex
\documentclass[color=green, mtpro,titlestyle=hang,mathpazo]{elegantbook}
\documentclass[mathpazo,titlestyle=hang,11pt]{elegantbook}
\author{ddswhu \& LiamHuang0205}
\email{elegantlatex2e@gmail.com}
\email{ddswhu@outlook.com}
\zhtitle{优美的\LaTeX{} 书籍}
\zhend{模板}
\entitle{Elegant\LaTeX{} Book}
\enend{Template}
\version{2.00}
\version{2.30}
\myquote{Victory won\rq t come to us unless we go to it.}
\logo{logo.pdf}
\cover{cover.pdf}
@@ -30,21 +30,16 @@
\usepackage{lipsum}
\usepackage{texnames}
\usepackage{afterpage}
\begin{document}
\maketitle
\tableofcontents
\mainmatter
\chapter{ElegantBook 模板的由来}
只有当自己想去做一件事的时候才能把事情做好!
\section{ElegantNote 的前世今生}
写 ElegantNote 模板的初衷是为了简化我在写笔记中的工作因为我不会写类文件和包文件所以最当初是想拜托小L做出一个华丽清爽的 \LaTeX{} 模板最好是类文件而且因为这样可以简化导言区复杂的内容。后来和小L一拍即合遂开始一起做Elegant\LaTeX{}的设计。
@@ -65,7 +60,7 @@
在实际应用中,我们发现了一个比较重要的问题,因为在一般的笔记中,定义、定理经常一起出现,和课本区别比较大的是,通常是一堆定义之后,出现一堆性质或者定理。如果出现这种情况,使用 ElegantNote 模板会导致分块很严重,影响排版质量和美观。思前想后,我们决定将 ElegantNote 模板更新为 ElegantBook 模板,并在未来重新设计一个简洁版本的 ElegantNote。 至此ElegantBook 才横空出世由于更名原因ElegantBook 1.00 版本也即原来的 ElegantNote 而ElegantBook 2.00 为目前的正式版本。
\section{一张白纸折腾出一个模板}
\section{一张白纸折腾出一个模板}
我以前从未写过类文件,所以,写这个模板的过程必然是折腾的过程,在写模板的过程中,最主要参考了《写给\LaTeXe{} 类与宏包的作者》\cite{packagewriter}、moderncv.cls 文件、\href{http://aff.whu.edu.cn/huangzh/}{武汉大学黄正华老师的论文模板}、《\LaTeXe{} 完全学习手册》\cite{complete}{\itshape The Not So Short Introduction to \LaTeXe{}}\cite{oetiker2010not}以及各大\LaTeX{} 疑问解答网站,在此为无私奉献的组织和个人表示感谢!
@@ -73,31 +68,33 @@
\begin{figure}[!hbtp]
\includegraphics[width=0.8\textwidth]{happy.jpg}
\caption{Happiness,We have it!\label{figur:happy}}
\caption{Happiness,we have it!\label{figur:happy}}
\end{figure}
\chapter{ElegantBook 开服说明}
\section{关于我们}
我们目前都是学生,接触 \LaTeX{} 的时间也不是很长,因此,对于此模板的错误还请多多包涵! 目前,模板的拓展性或者可移植性有待完善,所以,我们强烈建议用户不要大幅修改模板文件,我们的初衷是提供一套模板,让初学者能够使用一些比较美观,优雅的模板。如果在使用过程中,想修改一些简单的东西需要帮忙,请联系我们,我们的邮箱是:\href{elegantlatex2e@gmail.com}{elegantlatex2e@gmail.com}。我们将竭尽全力提供帮助!
值此版本发行之际,我们 Elegant\LaTeX{} 项目组向大家重新介绍一下我们的工作,我们的主页是 \url{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{关于字体}
基于本模板追求视觉上的美观的角度,强烈建议使用者安装./fonts/文件夹下的字体。出于版权的考虑,务必不能将此模板用于涉及盈利目的的商业行为,否则,后果自负,本模板带的字体仅供学习使用,如果您喜欢某种字体,请自行购买正版。本文主要使用的字体如下
\begin{itemize}
\itemsep=3pt
\parskip=0pt
\item Adobe Garamond Pro
\item Minion Pro \& Myriad Pro \& Inconsolata
\item 方正
\item 华文中宋
\item 方正苏新诗柳楷简体
\item 方正启体简
\end{itemize}
\begin{note}
中文正文使用了华文中宋Minion Pro为英文衬线字体\verb|\rmfamily|Myriad Pro为英文非衬线字体\verb|\sffamily|Inconsolata 为英文打字机字体(\verb|\ttfamily|
虽然我们模板更新到了 2.30 了(主要是字体删除,交叉引用的紧急修复),但是使用文档部分并没有更新(仍然是 2.00),在使用过程中,请尽量参考文档说明,如果有问题,可以联系我们
并且,如果系统内安装了Adobe 字体,大家可以把模板中使用到的黑体,楷体,宋体等字替换成 Adobe 字体,这样可以达到最佳效果。
如果系统内安装了Adobe 字体,大家可以把模板中使用到的黑体,楷体,宋体等字替换成 Adobe 字体,这样可以达到最佳效果。
\end{note}
\section{文档说明}
@@ -112,7 +109,6 @@
\definecolor{main}{RGB}{70,70,70} %定义main颜色值
\definecolor{seco}{RGB}{115,45,2} %定义seco颜色值
\definecolor{thid}{RGB}{0,80,80} %定义thid颜色值
\base{blackbase.pdf} %可以改为自己想要的图案
\end{verbatim}
第二类为{\color{main}数学字体}设置,有两个可选项,分别是 mathpazo默认 和 mtpro2 字体调用mathpazo 字体使用 \verb|\documentclass[mathpazo]{elegantbook}|,调用 mtpro2 字体时需要把 \verb|mathpazo|换成 \verb|mtpro|mathpazo 不需要用户自己安装字体mtpro2 的字体需要自己安装。
@@ -182,18 +178,17 @@ $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.
\end{exercise}
\begin{newthem}[勾股定理]\label{thm:3.1}
\begin{newthem}[勾股定理]\label{thm:31}
勾股定理的数学表达Expression
\[a^2+b^2=c^2\]
其中$a,b$为直角三角形的两条直角边长,$c$为直角三角形斜边长。
\end{newthem}
\begin{note}
在本模板中引理lemma推论corollary )的样式和定理的样式一致,包括颜色,仅仅只有计数器的设置不一样。在这个例稿中,我们将不给出引理推论的例子。
\end{note}
\lipsum[4]
\begin{newprop}[最优性原理]
@@ -202,7 +197,7 @@ let $S=l^\infty=\big\{(x_n)\mid \exists\, M \text{ such that } \forall n, |x_n|\
\lipsum[5-6]
\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\}
\]

View File

@@ -11,7 +11,7 @@
}
@misc{complete,
title={{\LaTeXe} 完全学习手册},
author={胡伟},
author={},
year={2011},
publisher={清华大学出版社}
}