diff --git a/elegantbook-cn.pdf b/elegantbook-cn.pdf index 5b7ce93..c9134a1 100644 Binary files a/elegantbook-cn.pdf and b/elegantbook-cn.pdf differ diff --git a/elegantbook-cn.tex b/elegantbook-cn.tex index 5d10102..d7b0bbe 100644 --- a/elegantbook-cn.tex +++ b/elegantbook-cn.tex @@ -1,4 +1,4 @@ -\documentclass[cn,fancy,11pt]{elegantbook} +\documentclass[cn,simple,blue,11pt]{elegantbook} \title{ElegantBook:优美的 \LaTeX{} 书籍模板} @@ -7,13 +7,14 @@ \author{Ethan Deng \& Liam Huang} \institute{Elegant\LaTeX{} Program} \date{\today} - - \version{3.07} + \equote{Victory won\rq t come to us unless we go to it. --- M. Moore} + \logo{logo.png} \cover{cover.jpg} +\usepackage{gbt7714} \begin{document} \maketitle @@ -62,7 +63,7 @@ \section{语言模式} 本模板内含两套语言环境,改变语言环境会改变图表标题的引导词(图,表),文章结构词(比如目录,参考文献等),以及定理环境中的引导词(比如定理,引理等)。不同语言模式的启用如下: -\begin{lstlisting}[frame=single] +\begin{lstlisting} \documentclass[cn]{elegantbook} \documentclass[lang=cn]{elegantbook} \documentclass[en]{elegantbook} @@ -76,13 +77,13 @@ \section{颜色主题} 本模板内置 4 组颜色主题,分别为 \textcolor{main1}{\lstinline{green}}(默认)、\textcolor{main2}{\lstinline{cyan}}、\textcolor{main3}{\lstinline{blue}}、\textcolor{gray}{\lstinline{plain}},另外还有一个自定义的选项 \lstinline{nocolor}。调用颜色主题 \lstinline{green} 的方法为 -\begin{lstlisting}[frame=single] +\begin{lstlisting} \documentclass[green]{elegantbook} %or \documentclass[color=green]{elegantbook} \end{lstlisting} 其中 \textcolor{gray}{plain} 主题为全灰色。如果需要自定义颜色的话请选择 \lstinline{nocolor} 选项或者使用 \lstinline{color=none},然后在导言区定义 main、second、third 颜色,具体方法如下: -\begin{lstlisting}[frame=single] +\begin{lstlisting} \definecolor{main}{RGB}{70,70,70} \definecolor{second}{RGB}{115,45,2} \definecolor{third}{RGB}{0,80,80} @@ -107,7 +108,7 @@ third &\makecell{ {\color{third1}\rule{1cm}{1cm}}}& \makecell{{\color{third2}\ru \section{章标题显示风格} 本模板内置 2 套\textit{章标题显示风格},包含 \lstinline{hang}(默认)与 \lstinline{display} 两种风格,区别在于章标题单行显示(\lstinline{hang})与双行显示(\lstinline{display}),本说明使用了 \lstinline{hang}。调用方式为 -\begin{lstlisting}[frame=single] +\begin{lstlisting} \documentclass[hang]{elegantbook} %or \documentclass[titlestyle=hang]{elegantbook} \end{lstlisting} @@ -130,17 +131,13 @@ third &\makecell{ {\color{third1}\rule{1cm}{1cm}}}& \makecell{{\color{third2}\ru \subsection{定理类环境的使用} 由于本模板使用了 \lstinline{tcolorbox} 宏包来定制定理类环境,所以和普通的定理环境的使用有些许区别,定理的使用方法如下: -\begin{lstlisting}[frame=single] +\begin{lstlisting} \begin{theorem}{}{