update 3.11

This commit is contained in:
EthanDeng
2020-04-12 12:00:13 +08:00
parent c84f79922d
commit ae7a9ae8f6
3 changed files with 103 additions and 129 deletions

View File

@@ -1,15 +1,15 @@
\documentclass[cn,11pt,chinese]{elegantbook}
\documentclass[cn,11pt,chinese,founder]{elegantbook}
\title{ElegantBook优美的 \LaTeX{} 书籍模板}
\subtitle{Elegant\LaTeX{} 经典之作}
\author{Ethan Deng \& Liam Huang}
\institute{Elegant\LaTeX{} Program}
\date{February 10, 2020}
\version{3.10}
\date{April 12, 2020}
\version{3.11}
\bioinfo{自定义}{信息}
\extrainfo{Victory won\rq t come to us unless we go to it. --- M. Moore}
\extrainfo{温柔正确的人总是难以生存,因为这世界既不温柔,也不正确。—— 比企谷八幡}
\logo{logo-blue.png}
\cover{cover.jpg}
@@ -17,11 +17,6 @@
% 本文档命令
\usepackage{array}
\newcommand{\ccr}[1]{\makecell{{\color{#1}\rule{1cm}{1cm}}}}
% 修改目录深度
\setcounter{tocdepth}{2}
\usepackage{cleveref}
\crefformat{chapter}{#2第\zhnumber{#1}章#3}
\begin{document}
@@ -74,22 +69,17 @@ Elegant\LaTeX{} 项目组致力于打造一系列美观、优雅、简便的模
\section{ElegantBook 更新说明}
此次更新主要有
此次为 3.x 最后一个版本,在 3.10 基础上,主要为了解决 \TeX{} Live 2020 中编译错误,具体内容有:
\begin{enumerate}
\item 增加数学字体选项 \lstinline{math},可选项为 \lstinline{newtx}\lstinline{cm}\\
\textbf{重要提示}:原先通过 \lstinline{newtxmath} 宏包设置的数学字体改为 \LaTeX{} 默认数学字体,如果需要保持原来的字体,需要显式声明数学字体(\lstinline{math=newtx}
\item 新增中文字体选项 \lstinline{chinesefont},可选项为 \lstinline{ctexfont}\lstinline{founder}\lstinline{nofont}
\item 将封面作者信息设置为可选,并且增加自定义信息命令 \lstinline{\bioinfo}
\item 在说明文档中增加版本历史,新增 \lstinline{\datechange} 命令和 \lstinline{change} 环境;
\item 增加汉化章节选项 \lstinline{scheme},可选项为汉化 \lstinline{chinese}
\item 由于 \lstinline{\lvert} 问题已经修复,重新调整 \lstinline{ctex} 宏包和 \lstinline{amsmath} 宏包位置。
\item 修改页眉设置,去除了 \lstinline{\lastpage} 以避免 page anchor 问题,加入 \lstinline{\frontmatter}
\item 修改参考文献选项 \lstinline{cite},可选项为数字 \lstinline{numbers}、 作者-年份 \lstinline{authoryear} 以及上标 \lstinline{super}
\item 新增参考文献样式选项 \lstinline{bibstyle},并将英文模式下参考文献样式 \lstinline{apalike} 设置为默认值,中文仍然使用 \lstinline{gbt7714} 宏包设置。
\item \textbf{重要修正}:修复因为 \lstinline{gbt7714} 宏包更新导致的 \lstinline{natbib option clash} 错误;
\item 由于 \lstinline{pgfornament} 宏包未被 \TeX Live 2020 收录,因此删除 base 相关的内容
\item 修复部分环境的空格问题;
\item 增加了意大利语言选项 \lstinline{lang=it}
\end{enumerate}
\begin{note}
如果你之前使用了本模板,在使用新版本时,需要删除文档中的 \lstinline|\hypersetup{pageanchor=true}|,并且在 \lstinline{\maketitle}\lstinline{\tableofcontents} 之间添加 \lstinline{\frontmatter}。2.x 版本的用户请仔细查看\href{https://github.com/ElegantLaTeX/ElegantBook/wiki/convert}{跨版本转换}
如果你使用旧版本切换到新版本时,遇到问题时,请核对文档中是否有 \lstinline{pageanchor} 字样。如果有,请删除文档中的 \lstinline|\hypersetup{pageanchor=true}|,并且在 \lstinline{\maketitle}\lstinline{\tableofcontents} 之间添加 \lstinline{\frontmatter}。2.x 版本的用户请仔细查看\href{https://github.com/ElegantLaTeX/ElegantBook/wiki/convert}{跨版本转换}
\end{note}
\section{模板安装与更新}
@@ -217,7 +207,11 @@ Elegant\LaTeX{} 系列模板从创立至今已经有 9 年了,我们的模板
F*5 & 10 RMB & 2020/01/03 & 微信 & S*m & 20.20 RMB & 2020/01/03 & 微信 \\
二代青雉 & 13 RMB & 2020/01/14 & 支付宝 & *? & 66 RMB & 2020/01/15 & 微信 \\
Mr. Xiong & 20 RMB & 2020/01/17 & 微信 & *博 & 15 RMB & 2020/01/18 & 微信 \\
*者 & 10 RMB & 2020/02/02 & 微信 & Jackie & 88.80 RMB & 2020/02/09 & 微信 \\
* & 10 RMB & 2020/02/02 & 微信 & Jackie & 88.80 RMB & 2020/02/09 & 微信 \\
Henry\_Sun、 & 50 RMB & 2020/02/14 & 支付宝 & * 桥 & 50 RMB & 2020/02/21 & 微信 \\
昀琏 & 10 RMB & 2020/03/02 & 支付宝 & S*y & 10 RMB & 2020/03/15 & 微信 \\
* 哥 & 66.66 RMB & 2020/03/17 & 微信 & K*e & 30 RMB & 2020/03/30 & 微信\\
* 阳 & 20 RMB & 2020/04/02 & 微信 & 士*n & 30 RMB & 2020/04/11 & 微信 \\
\hline
\end{tabular}%
\label{tab:donation}%
@@ -227,15 +221,15 @@ Elegant\LaTeX{} 系列模板从创立至今已经有 9 年了,我们的模板
\begin{figure}[!htbp]
\centering
\includegraphics[width=0.7\textwidth]{cert.pdf}
\includegraphics[width=0.6\textwidth]{cert.pdf}
\end{figure}
\chapter{ElegantBook 设置说明}\label{chap:foo}
\chapter{ElegantBook 设置说明}
\cref{chap:foo}本模板基于基础的 book 文类,所以 book 的选项对于本模板也是有效的(纸张无效,因为模板有设备选项)。默认编码为 UTF-8推荐使用 \TeX{} Live 编译。本文编写环境为 Win10 (64bit) + \TeX{} Live 2019,支持 \hologo{pdfLaTeX} 以及 \hologo{XeLaTeX} 编译。中文请尽量使用 \hologo{XeLaTeX} 编译。
本模板基于基础的 book 文类,所以 book 的选项对于本模板也是有效的(纸张无效,因为模板有设备选项)。默认编码为 UTF-8推荐使用 \TeX{} Live 编译。本文编写环境为 Win10 (64bit) + \TeX{} Live 2020,支持 \hologo{pdfLaTeX} 以及 \hologo{XeLaTeX} 编译。中文请尽量使用 \hologo{XeLaTeX} 编译。
\section{语言模式}
本模板内含套语言环境,改变语言环境会改变图表标题的引导词(图,表),文章结构词(比如目录,参考文献等),以及定理环境中的引导词(比如定理,引理等)。不同语言模式的启用如下:
本模板内含套语言环境 \lstinline{lang=cn}\lstinline{lang=en} 以及 \lstinline{lang=it}\footnote{\href{https://github.com/VincentMVV}{VincentMVV} 提供意大利语翻译,具体的内容见 \href{https://github.com/ElegantLaTeX/ElegantBook/issues/85}{Italian translation}},改变语言环境会改变图表标题的引导词(图,表),文章结构词(比如目录,参考文献等),以及定理环境中的引导词(比如定理,引理等)。不同语言模式的启用如下:
\begin{lstlisting}
\documentclass[cn]{elegantbook}
\documentclass[lang=cn]{elegantbook}
@@ -426,14 +420,6 @@ The content of theorem.
\item 结论conclusion等环境都是普通段落环境引导词加粗。
\end{itemize}
\section{装饰物}
本模板为章节后和页面下方的装饰物base添加了隐藏选项\lstinline{show}(默认) 和 \lstinline{hide} 两个选项。
\begin{lstlisting}
\documentclass[hide]{elegantbook} %or
\documentclass[base=hide]{elegantbook}
\end{lstlisting}
\section{列表环境}
本模板借助于 \lstinline{tikz} 定制了 \lstinline{itemize}\lstinline{enumerate} 环境,其中 \lstinline{itemize} 环境修改了 3 层嵌套,而 \lstinline{enumerate} 环境修改了 4 层嵌套(仅改变颜色)。示例如下\\[2ex]
\begin{minipage}[b]{0.49\textwidth}
@@ -847,6 +833,16 @@ Lebesgue 积分有几种不同的定义方式。我们将采用逐步定义非
根据用户的反馈我们不断修正和完善模板。截止到此次更新ElegantBook 模板在 GitHub 上有将近 100 次提交正式发行版本release有 16 次。由于 3.00 之前版本与现在版本差异非常大,在此不列出 3.00 之前的更新内容。
\datechange{2020/04/12}{版本 3.11 正式发布,\textcolor{red}{此版本为 3.x 最后版本。}}
\begin{change}
\item \textbf{重要修正}:修复因为 \lstinline{gbt7714} 宏包更新导致的 \lstinline{natbib option clash} 错误;
\item 由于 \lstinline{pgfornament} 宏包未被 \TeX{} Live 2020 收录,因此删除 base 相关的内容;
\item 修复部分环境的空格问题;
\item 增加了意大利语言选项 \lstinline{lang=it}
\end{change}
\datechange{2020/02/10}{版本 3.10 正式发布}
\begin{change}
@@ -962,7 +958,6 @@ Lebesgue 积分有几种不同的定义方式。我们将采用逐步定义非
\item 颜色名字重命名。
\end{change}
\nocite{*}
\bibliography{reference}
\appendix