mirror of
https://github.com/ElegantLaTeX/ElegantBook.git
synced 2026-01-26 04:14:35 +08:00
update guide
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
\documentclass[cn,11pt,chinese]{elegantbook}
|
||||
\documentclass[cn,11pt,chinese,founder,hide]{elegantbook}
|
||||
|
||||
\title{ElegantBook:优美的 \LaTeX{} 书籍模板}
|
||||
\subtitle{Elegant\LaTeX{} 经典之作}
|
||||
@@ -26,24 +26,22 @@
|
||||
\maketitle
|
||||
\frontmatter
|
||||
|
||||
\chapter*{前言}
|
||||
\chapter*{特别声明}
|
||||
\markboth{Introduction}{前言}
|
||||
|
||||
在过去的 2019 年,\href{https://elegantlatex.org/}{Elegant\LaTeX{}} 系列模板均逐步上线 \href{https://github.com/ElegantLaTeX}{GitHub}、\href{https://ctan.org/pkg/elegantbook}{CTAN}、\href{https://www.overleaf.com/latex/templates/elegantbook-template/zpsrbmdsxrgy}{Overleaf} 以及 \href{https://gitee.com/ElegantLaTeX/ElegantBook}{Gitee} 上。截止到 2019 年底,ElegantNote、ElegantBook、ElegantPaper 三个模板在 GitHub 上的收藏数达到了 194、333 和 220,从 2019 年 5 月开启捐赠之后收到了用户 33 笔合计超过 1500 元的捐赠,用户群人数也超过了 400 人。这些数字的背后,反映出 Elegant\LaTeX{} 越来越受用户的喜爱,在此非常感谢大家。
|
||||
|
||||
但与此同时,也发生了一些不愉快的事情。因为和某位 \LaTeX{} “专家”意见不合,我在 GitHub 上屏蔽了他,之后此人在 \LaTeX{} 大群(\LaTeX{} Studio 一群)内阴阳怪气本人和本模板,我目前已经退出此 \LaTeX{} 群。
|
||||
但是,我想声明的是:
|
||||
|
||||
\section*{Elegant\LaTeX{} 和我}
|
||||
\begin{center}
|
||||
由于某些原因,Elegant\LaTeX{} 项目 \underline{不再接受}\textbf{任何}非我本人预约的提交。
|
||||
\end{center}
|
||||
|
||||
Elegant\LaTeX{} 是我和小 L(Liam Huang)在 2013 年共同发起创立的。Elegant\LaTeX{} 名义上是两个人的项目,但在经历长时间断层之后的改版,新 Elegant\LaTeX{} 项目的维护都是我一个人在做。另外,我和小 L 是好朋友,没有任何不和,只是重心不一样了而已,请不要脑补剧情。
|
||||
我是一个理想主义者,关于这个模板,我有自己的想法。我所关心的是,我周围的人能方便使用 \LaTeX{} 以及此模板,我自己会为自己的东西感到开心。如果维护模板让我不开心,那我就不会再维护了。诚然这个模板并不是完美的,但是相比 2.x 好很多了,这些改进离不开大家的反馈、China\TeX{} 和逐鹿人的鼓励以及支援人员的帮助!
|
||||
|
||||
自 2019 年 5 月 20 日,Elegant\LaTeX{} 项目\uline{不再接受}\textbf{任何}非我本人预约的提交(pr)。
|
||||
\underline{如果你无法认同我的想法,建议直接删除本模板。}
|
||||
|
||||
我是一个理想主义者,关于这个模板,我有自己的想法。我所关心的是,我周围的人能方便使用 \LaTeX{} 以及此模板,我自己会为自己的东西感到开心。如果维护模板让我不开心,那我就不会再维护了。这个模板并不是完美的,但是相比 2.x 好很多了,这些改进离不开大家的反馈、China\TeX{} 和逐鹿人的鼓励以及支援人员的帮助!
|
||||
|
||||
\uline{如果你无法认同我的想法,请直接删除本模板。}
|
||||
|
||||
\vskip 2cm
|
||||
\vskip 1.5cm
|
||||
|
||||
\begin{flushright}
|
||||
Ethan Deng\\
|
||||
@@ -81,10 +79,10 @@ Elegant\LaTeX{} 项目组致力于打造一系列美观、优雅、简便的模
|
||||
\item 新增中文字体选项 \lstinline{chinesefont},可选项为 \lstinline{ctexfont}、\lstinline{founder} 和 \lstinline{nofont}。
|
||||
\item 将封面作者信息设置为可选,并且增加自定义信息命令 \lstinline{\bioinfo};
|
||||
\item 在说明文档中增加版本历史,新增 \lstinline{\datechange} 命令和 \lstinline{change} 环境;
|
||||
\item 增加汉化章节选项 \lstinline{scheme},可选项为 \lstinline{chinese};
|
||||
\item 增加汉化章节选项 \lstinline{scheme},可选项为汉化 \lstinline{chinese};
|
||||
\item 由于 \lstinline{\lvert} 问题已经修复,重新调整 \lstinline{ctex} 宏包和 \lstinline{amsmath} 宏包位置。
|
||||
\item 修改页眉设置,去除了 \lstinline{\lastpage} 以避免 page anchor 问题,加入 \lstinline{\frontmatter}。
|
||||
\item 修改参考文献选项 \lstinline{cite},可选项为数字 \lstinline{number}(默认)、 作者-年份 \lstinline{authoryear} 以及上标 \lstinline{super}。
|
||||
\item 修改参考文献选项 \lstinline{cite},可选项为数字 \lstinline{number}、 作者-年份 \lstinline{authoryear} 以及上标 \lstinline{super}。
|
||||
\item 新增参考文献样式选项 \lstinline{bibstyle},并将英文模式下参考文献样式 \lstinline{apalike} 设置为默认值,中文仍然使用 \lstinline{gbt7714} 宏包设置。
|
||||
\end{enumerate}
|
||||
|
||||
@@ -94,7 +92,7 @@ Elegant\LaTeX{} 项目组致力于打造一系列美观、优雅、简便的模
|
||||
|
||||
\section{模板安装与更新}
|
||||
|
||||
你可以通过免安装的方式使用本模板,包括在线使用和本地使用不同支持方式,也可以通过发行版安装方式使用。
|
||||
你可以通过免安装的方式使用本模板,包括在线使用和本地(文件夹内)使用两种方式,也可以通过 \TeX{} 发行版安装使用。
|
||||
|
||||
\subsection{在线使用模板}
|
||||
|
||||
@@ -109,7 +107,7 @@ Overleaf 上,中文需要使用 \hologo{XeLaTeX} 进行编译,英文建议
|
||||
|
||||
\textbf{免安装}使用方法如下,从 GitHub 或者 CTAN 下载最新(正式)版文件,严格意义上只需要类文件 \lstinline{elegantbook.cls}。然后将模板文件放在你的工作目录下即可使用。这样使用的好处是,无需安装,简便;缺点是,当模板更新之后,你需要手动替换 \lstinline{cls} 文件。
|
||||
|
||||
\subsection{本地安装使用}
|
||||
\subsection{发行版安装使用}
|
||||
|
||||
如果你是 \TeX{} Live 2019 用户,我们推荐你直接进行安装和更新。你可以通过 \TeX{} Live 2019 自带的 \lstinline{tlshell}\footnote{也叫 \TeX{} Live Manager} 进行安装。安装非常简单,步骤如下,搜索并打开 \lstinline{tlshell},然后通过 \lstinline{File -> Load Default Repository} 加载远程仓库,如果你不想使用默认的仓库,你可以通过 \lstinline{Options} 下的菜单设置远程仓库。设置好仓库之后,等待仓库加载完毕,你可以在下面的搜索栏搜索 \lstinline{elegantbook},然后选择进行安装与更新。
|
||||
|
||||
@@ -340,9 +338,7 @@ Elegant\LaTeX{} 系列模板从创立至今已经有 9 年了,我们的模板
|
||||
|
||||
\subsection{自定义封面}
|
||||
|
||||
另外,如果需要使用自定义的封面,比如 Adobe illustrator 或者其他软件制作的 A4 PDF 文档,请把 \lstinline{\maketitle} 注释掉,然后借助 \lstinline{pdfpages} 宏包将自制封面插入即可
|
||||
|
||||
。如果使用 \lstinline{titlepage} 环境,也是类似。如果需要 2.x 版本的封面,请参考 \href{https://github.com/EthanDeng/etitlepage}{etitlepage}。
|
||||
另外,如果需要使用自定义的封面,比如 Adobe illustrator 或者其他软件制作的 A4 PDF 文档,请把 \lstinline{\maketitle} 注释掉,然后借助 \lstinline{pdfpages} 宏包将自制封面插入即可。如果使用 \lstinline{titlepage} 环境,也是类似。如果需要 2.x 版本的封面,请参考 \href{https://github.com/EthanDeng/etitlepage}{etitlepage}。
|
||||
|
||||
\section{章标标题}
|
||||
|
||||
@@ -525,13 +521,13 @@ The content of introduction.
|
||||
\end{introduction}
|
||||
\end{lstlisting}
|
||||
效果如下:
|
||||
% \begin{introduction}
|
||||
% \item Definition of Theorem
|
||||
% \item Ask for help
|
||||
% \item Optimization Problem
|
||||
% \item Property of Cauchy Series
|
||||
% \item Angle of Corner
|
||||
% \end{introduction}
|
||||
\begin{introduction}
|
||||
\item Definition of Theorem
|
||||
\item Ask for help
|
||||
\item Optimization Problem
|
||||
\item Property of Cauchy Series
|
||||
\item Angle of Corner
|
||||
\end{introduction}
|
||||
|
||||
环境的标题文字可以通过这个环境的可选参数进行修改,修改方法为:
|
||||
\begin{lstlisting}
|
||||
@@ -814,31 +810,31 @@ Lebesgue 积分有几种不同的定义方式。我们将采用逐步定义非
|
||||
|
||||
我们根据用户社区反馈整理了下面一些常见的问题,用户在遇到问题时,应当首先查阅本手册和本部分的常见的问题。
|
||||
|
||||
\begin{enumerate}
|
||||
\begin{enumerate}[itemsep=1.5ex]
|
||||
\item \question{有没有办法章节用“第一章,第一节,(一)”这种?}
|
||||
\answer{见前文介绍,可以使用 \lstinline{scheme=chinese} 设置。}
|
||||
见前文介绍,可以使用 \lstinline{scheme=chinese} 设置。
|
||||
\item \question{3.07 版本的 cls 的 natbib 加了numbers 编译完了没变化,群主设置了不可更改了?}
|
||||
\answer{之前在 3.07 版本中在引入 \lstinline{gbt7714} 宏包时,加入了 \lstinline{authoryear} 选项,这个使得 \lstinline{natbib} 设置了 \lstinline{numbers} 也无法生效。3.08 和 3.09 版本中,模板新增加了 \lstinline{numbers} 、\lstinline{super} 和 \lstinline{authoryear} 文献选项,你可以参考前文设置说明。}
|
||||
之前在 3.07 版本中在引入 \lstinline{gbt7714} 宏包时,加入了 \lstinline{authoryear} 选项,这个使得 \lstinline{natbib} 设置了 \lstinline{numbers} 也无法生效。3.08 和 3.09 版本中,模板新增加了 \lstinline{numbers} 、\lstinline{super} 和 \lstinline{authoryear} 文献选项,你可以参考前文设置说明。
|
||||
\item \question{大佬,我想把正文字体改为亮色,背景色改为黑灰色。}
|
||||
\answer{页面颜色可以使用 \lstinline{pagecolor} 命令设置,文本命令可以参考\href{https://tex.stackexchange.com/questions/278544/xcolor-what-is-the-equivalent-of-default-text-color}{这里}进行设置。}
|
||||
\item \lstinline[breaklines]{Package ctex Error: CTeX fontset `Mac' is unavailable.}
|
||||
\answer{在 Mac 系统下,中文编译请使用 \hologo{XeLaTeX}。}
|
||||
\item \lstinline{! LaTeX Error: Unknown option `scheme=plain' for package `ctex'.}
|
||||
\answer{你用的 C\TeX{} 套装吧?这个里面的 \lstinline{ctex} 宏包已经是已经是 10 年前的了,与本模板使用的 \lstinline{ctex} 宏集有很大区别。不建议 C\TeX{} 套装了,请卸载并安装 \TeX{} Live 2019。}
|
||||
页面颜色可以使用 \lstinline{\pagecolor} 命令设置,文本命令可以参考\href{https://tex.stackexchange.com/questions/278544/xcolor-what-is-the-equivalent-of-default-text-color}{这里}进行设置。
|
||||
\item \question{\lstinline[breaklines]{Package ctex Error: CTeX fontset `Mac' is unavailable.}}
|
||||
在 Mac 系统下,中文编译请使用 \hologo{XeLaTeX}。
|
||||
\item \question{\lstinline{! LaTeX Error: Unknown option `scheme=plain' for package `ctex'.}}
|
||||
你用的 C\TeX{} 套装吧?这个里面的 \lstinline{ctex} 宏包已经是已经是 10 年前的了,与本模板使用的 \lstinline{ctex} 宏集有很大区别。不建议 C\TeX{} 套装了,请卸载并安装 \TeX{} Live 2019。
|
||||
\item \question{我该使用什么版本?}
|
||||
\answer{请务必使用\href{https://github.com/ElegantLaTeX/ElegantBook/releases}{最新正式发行版},发行版间不定期可能会有更新(修复 bug 或者改进之类),如果你在使用过程中没有遇到问题,不需要每次更新\href{https://github.com/ElegantLaTeX/ElegantBook/archive/master.zip}{最新版},但是在发行版更新之后,请尽可能使用最新版(发行版)!最新发行版可以在 GitHub 或者 \TeX{} Live 2019 内获取。}
|
||||
请务必使用\href{https://github.com/ElegantLaTeX/ElegantBook/releases}{最新正式发行版},发行版间不定期可能会有更新(修复 bug 或者改进之类),如果你在使用过程中没有遇到问题,不需要每次更新\href{https://github.com/ElegantLaTeX/ElegantBook/archive/master.zip}{最新版},但是在发行版更新之后,请尽可能使用最新版(发行版)!最新发行版可以在 GitHub 或者 \TeX{} Live 2019 内获取。
|
||||
\item \question{我该使用什么编辑器?}
|
||||
\answer{你可以使用 \TeX{} Live 2019 自带的编辑器 \TeX{}works 或者使用 \TeX{}studio,\TeX works 的自动补全,你可以参考我们的总结 \href{https://github.com/EthanDeng/texworks-autocomplete}{\TeX works 自动补全}。推荐使用 \TeX{} Live 2019 + \TeX{}studio。我自己用 VS Code 和 Sublime Text,相关的配置说明,请参考 \href{https://github.com/EthanDeng/vscode-latex}{\LaTeX{} 编译环境配置:Visual Studio Code 配置简介} 和 \href{https://github.com/EthanDeng/sublime-text-latex}{Sublime Text 搭建 \LaTeX{} 编写环境}。}
|
||||
\item \uline{您好,我们想用您的 ElegantBook 模板写一本书。关于机器学习的教材,希望获得您的授权,谢谢您的宝贵时间。}
|
||||
\answer{模板的使用修改都是自由的,你们声明模板来源以及模板地址(GitHub 地址)即可,其他未尽事宜按照开源协议 LPPL-1.3c。做好之后,如果方便的话,可以给我们一个链接,我把你们的教材放在 Elegant\LaTeX{} 用户作品集里。}
|
||||
你可以使用 \TeX{} Live 2019 自带的编辑器 \TeX{}works 或者使用 \TeX{}studio,\TeX works 的自动补全,你可以参考我们的总结 \href{https://github.com/EthanDeng/texworks-autocomplete}{\TeX works 自动补全}。推荐使用 \TeX{} Live 2019 + \TeX{}studio。我自己用 VS Code 和 Sublime Text,相关的配置说明,请参考 \href{https://github.com/EthanDeng/vscode-latex}{\LaTeX{} 编译环境配置:Visual Studio Code 配置简介} 和 \href{https://github.com/EthanDeng/sublime-text-latex}{Sublime Text 搭建 \LaTeX{} 编写环境}。
|
||||
\item \question{您好,我们想用您的 ElegantBook 模板写一本书。关于机器学习的教材,希望获得您的授权,谢谢您的宝贵时间。}
|
||||
模板的使用修改都是自由的,你们声明模板来源以及模板地址(GitHub 地址)即可,其他未尽事宜按照开源协议 LPPL-1.3c。做好之后,如果方便的话,可以给我们一个链接,我把你们的教材放在 Elegant\LaTeX{} 用户作品集里。
|
||||
\item \question{请问交叉引用是什么?}
|
||||
\answer{本群和本模板适合有一定 \LaTeX{} 基础的用户使用,新手请先学习 \LaTeX{} 的基础,理解各种概念,否则你将寸步难行。}
|
||||
本群和本模板适合有一定 \LaTeX{} 基础的用户使用,新手请先学习 \LaTeX{} 的基础,理解各种概念,否则你将寸步难行。
|
||||
\item \question{定义等环境中无法使用加粗命令么?}
|
||||
\answer{是这样的,默认中文并没加粗命令,如果你想在定义等环境中使用加粗命令,请使用 \lstinline|heiti| 等字体命令,而不要使用 \lstinline|textbf|。或者,你可以将 \lstinline|textbf| 重新定义为 \lstinline|heiti|。英文模式不存在这个问题。}
|
||||
是这样的,默认中文并没加粗命令,如果你想在定义等环境中使用加粗命令,请使用 \lstinline{\heiti} 等字体命令,而不要使用 \lstinline{\textbf}。或者,你可以将 \lstinline|\textbf| 重新定义为 \lstinline|\heiti|。英文模式不存在这个问题。
|
||||
\item \question{代码高亮环境能用其他语言吗?}
|
||||
\answer{可以的,ElegantBook 模板用的是 \lstinline{listings} 宏包,你可以在环境(\lstinline{lstlisting})之后加上语言(比如 Python 使用 \lstinline{language=Python} 选项),全局语言修改请使用 \lstinline{lsset} 命令,更多信息请参考宏包文档。}
|
||||
可以的,ElegantBook 模板用的是 \lstinline{listings} 宏包,你可以在环境(\lstinline{lstlisting})之后加上语言(比如 Python 使用 \lstinline{language=Python} 选项),全局语言修改请使用 \lstinline{lsset} 命令,更多信息请参考宏包文档。
|
||||
\item \question{群主,什么时候出 Beamer 的模板(主题),ElegantSlide 或者 ElegantBeamer?}
|
||||
\answer{由于 Beamer 中有一个很优秀的主题 \href{https://github.com/matze/mtheme}{Metropolis}。在找到非常好的创意之前不会发布正式的 Beamer 主题,如果你非常希望得到 Elegant\LaTeX{} “官方”的主题,请在用户 QQ 群内下载测试主题 PreElegantSlide。正式版制作计划在今年或者明年。}
|
||||
由于 Beamer 中有一个很优秀的主题 \href{https://github.com/matze/mtheme}{Metropolis}。在找到非常好的创意之前不会发布正式的 Beamer 主题,如果你非常希望得到 Elegant\LaTeX{} “官方”的主题,请在用户 QQ 群内下载测试主题 PreElegantSlide。正式版制作计划在今年或者明年。
|
||||
\end{enumerate}
|
||||
|
||||
\chapter{版本更新历史}
|
||||
@@ -853,10 +849,10 @@ Lebesgue 积分有几种不同的定义方式。我们将采用逐步定义非
|
||||
\item 新增中文字体选项 \lstinline{chinesefont},可选项为 \lstinline{ctexfont}、\lstinline{founder} 和 \lstinline{nofont}。
|
||||
\item 将封面作者信息设置为可选,并且增加自定义信息命令 \lstinline{\bioinfo};
|
||||
\item 在说明文档中增加版本历史,新增 \lstinline{\datechange} 命令和 \lstinline{change} 环境;
|
||||
\item 增加汉化章节选项 \lstinline{scheme},可选项为 \lstinline{chinese};
|
||||
\item 增加汉化章节选项 \lstinline{scheme},可选项为汉化 \lstinline{chinese};
|
||||
\item 由于 \lstinline{\lvert} 问题已经修复,重新调整 \lstinline{ctex} 宏包和 \lstinline{amsmath} 宏包位置。
|
||||
\item 修改页眉设置,去除了 \lstinline{\lastpage} 以避免 page anchor 问题,加入 \lstinline{\frontmatter}。
|
||||
\item 修改参考文献选项 \lstinline{cite},可选项为数字 \lstinline{number}(默认)、 作者-年份 \lstinline{authoryear} 以及上标 \lstinline{super}。
|
||||
\item 修改参考文献选项 \lstinline{cite},可选项为数字 \lstinline{number}、 作者-年份 \lstinline{authoryear} 以及上标 \lstinline{super}。
|
||||
\item 新增参考文献样式选项 \lstinline{bibstyle},并将英文模式下参考文献样式 \lstinline{apalike} 设置为默认值,中文仍然使用 \lstinline{gbt7714} 宏包设置。
|
||||
\end{change}
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
\author{Ethan Deng \& Liam Huang}
|
||||
\institute{Elegant\LaTeX{} Program}
|
||||
\date{\today}
|
||||
\version{3.10}
|
||||
\version{3.10*}
|
||||
\bioinfo{Bio}{Information}
|
||||
|
||||
\extrainfo{Victory won\rq t come to us unless we go to it. }
|
||||
@@ -31,8 +31,8 @@ Contact Infos:
|
||||
\item CTAN: \href{https://ctan.org/pkg/elegantbook}{https://ctan.org/pkg/elegantbook}
|
||||
\item Wiki: \href{https://github.com/ElegantLaTeX/ElegantBook/wiki}{https://github.com/ElegantLaTeX/ElegantBook/wiki}
|
||||
\item Download: \href{https://github.com/ElegantLaTeX/ElegantBook/releases}{release}, \href{https://github.com/ElegantLaTeX/ElegantBook/archive/master.zip}{latest version}
|
||||
\item Weibo: ElegantLaTeX
|
||||
\item Wechat: ElegantLaTeX
|
||||
\item Weibo: Elegant\LaTeX{}
|
||||
\item Wechat: Elegant\LaTeX{}
|
||||
\item QQ: 692108391
|
||||
\item Email: \email{elegantlatex2e@gmail.com}
|
||||
\end{itemize}
|
||||
@@ -41,11 +41,15 @@ Contact Infos:
|
||||
\section{ElegantBook Updates}
|
||||
What\rq s new in this version:
|
||||
\begin{enumerate}
|
||||
\item Remove \lstinline|\elegantpar|;
|
||||
\item Fix math symbol font settings;
|
||||
\item Introduce option \lstinline|twocol| for toc;
|
||||
\item Revise footnote layout;
|
||||
\item Other modifications.
|
||||
\item Introduce \lstinline{math} for math font, optional styles are Times-ish \lstinline{newtx}, Computer Modern-ish \lstinline{cm}. \textbf{Notice}: The math font \lstinline{newtxmath} in previous versions is reset to default \LaTeX{} math font, to keep previous math font, please declare \lstinline{math=newtx}.
|
||||
\item Introduce \lstinline{chinesefont} for Chinese font, optional fonts are \lstinline{founder}, \lstinline{ctexfont} and \lstinline{nofont}.
|
||||
\item Turn author information on the cover optional and add customized command \lstinline{\bioinfo}.
|
||||
\item Add version time line in this documentation with command \lstinline{\datechange} and environment \lstinline{change}.
|
||||
\item Add Chinese chapter style \lstinline{scheme} with option \lstinline{chinese}.
|
||||
\item Since the bug raised by \lstinline{\lvert} is fixed, exchange package positions of \lstinline{ctex} and \lstinline{amsmath}.
|
||||
\item Revise header settings by dropping \lstinline{\lastpage} to avoid page anchor bug and adding \lstinline{\frontmatter}.
|
||||
\item Revise bibliography option \lstinline{cite} with optional styles \lstinline{number},\lstinline{authoryear} and \lstinline{super}.
|
||||
\item Introduce bibliography style option \lstinline{bibstyle}, with default style \lstinline{apalike} for English and \lstinline{gbt7714} for Chinese.
|
||||
\end{enumerate}
|
||||
|
||||
\begin{note}
|
||||
@@ -53,11 +57,19 @@ What\rq s new in this version:
|
||||
\end{note}
|
||||
|
||||
\section{Installation and Update}
|
||||
Both portable version and installation package are available for this template, online usage is optional as well.
|
||||
|
||||
Both portable version and installation package are available for this template.
|
||||
\subsection{To Use Templates Online}
|
||||
Visit \href{https://www.overleaf.com/}{Overleaf} to use our template online anywhere and anytime without local installation. To find our template, search \lstinline{elegantlatex} in the \lstinline{templates} or simply visit \href{https://www.overleaf.com/latex/templates?addsearch=elegantlatex}{search result}, choose the template you prefer and \lstinline{Open as Template} to own a copy yourself to edit freely. To learn more about Overleaf, please refer to \href{https://www.overleaf.com/learn}{Documentation}.
|
||||
|
||||
\begin{remark}
|
||||
On Overleaf, please use \hologo{XeLaTeX} to compile articles in Chinese and \hologo{pdfLaTeX} to compile articles in English.
|
||||
\end{remark}
|
||||
|
||||
\subsection{To Use Portable Version}
|
||||
For portable version, simply download lastest ElegantBook-master from Github or CTAN (to be more accurate, download \lstinline{elegantbook.cls}) and save the file(s) under your working directory. This way of installation is simple and convenient, but you have to manually update \lstinline{cls} now and then.
|
||||
|
||||
\subsection{To Use Local Installation Version}
|
||||
If you are a \TeX{} Live 2019 user, using the \lstinline{tlshell}\footnote{namely, \TeX{} Live Manager} of \TeX{} Live 2019 direct installation package is strongly recommended. Simply search and open \lstinline{tlshell}, click on \lstinline{File -> Load Default Repository} or customize repository by \lstinline{Options}. Wait till the repository loads successfully, search \lstinline{elegantbook} by name, installation and update is just a click away.
|
||||
|
||||
\begin{figure}[htbp]
|
||||
@@ -66,19 +78,26 @@ If you are a \TeX{} Live 2019 user, using the \lstinline{tlshell}\footnote{namel
|
||||
\caption{Use \TeX{} Live Shell to Install ElegantBook Template}
|
||||
\end{figure}
|
||||
|
||||
\subsection{Update Templates}
|
||||
If you fail to update templates using \lstinline{tlshell}, please use cmd to update all the packages or switch to portable version instead.
|
||||
|
||||
Use the following commands(administrator privileges) to update:
|
||||
\begin{lstlisting}
|
||||
tlmgr update --self
|
||||
tlmgr update --all
|
||||
\end{lstlisting}
|
||||
|
||||
To learn more, please refer to {https://tex.stackexchange.com/questions/55437/how-do-i-update-my-tex-distribution}{How do I update my \TeX{} distribution?}
|
||||
|
||||
\subsection{Other Release Versions}
|
||||
If you are a \TeX{} Live 2018 user and would like to update to \TeX{} Live 2019, the official solution is to uninstall 2018. If you want to save the bother of uninstallation and installation, please copy \lstinline{elegantbook.cls} to the installation directory of \TeX{} Live 2018 (default: \lstinline|C:\texlive\2018\texmf-dist\tex\latex\elegantbook| ), run \lstinline{texhash} in cmd.
|
||||
|
||||
Excuse me? You are a C\TeX{} user? Sorry, this template is incompatible with C\TeX{}.
|
||||
|
||||
For more details about the installation and usage of \TeX{} Live 2019, the compatibility of C\TeX{} and \TeX{} Live, please refer to OG (Official Guide) and/or \href{https://github.com/OsbertWang/install_latex/releases}{Install LaTeX v5.1} by OsbertWang.
|
||||
|
||||
\section{Online Usage of Templates}
|
||||
Considering the online usage of the templates, all the templates are available on Overleaf. Those who enjoy smooth network may feel free to use the templates without \TeX{} Live and to visit your documents anywhere anytime. Search \lstinline{elegantlatex} on Overleaf or visit \href{https://www.overleaf.com/latex/templates?addsearch=elegantlatex}{search result}, choose the one you prefer and save it to your account, then you can edit yourself or corporate with others if you like. For more infomation about Overleaf, please refer to Overleaf OG.
|
||||
|
||||
\section{User\rq s Selected Works Plan}
|
||||
Eight years have passed since the found of Elegant\LaTeX{} Program. It\rq s an honor that our templates are preferred by a lot of users. Hence, in order to promote more interactions among our users and know more about what you need, we are planning to provide a platform to display selected works of our users on Github or our homepage. If you want to show us your work(s), contact us via Email or other ways. Or if you have upload your work(s) on Github or Gitee etc., share the URL(s) with us.
|
||||
|
||||
\centerline{\textcolor{red}{\bfseries Wanted!}}
|
||||
Eight years have passed since the found of Elegant\LaTeX{} Program. It\rq s an honor that our templates are preferred by a lot of users. Hence, in order to promote more interactions among our users and know more about what you need, we are planning to provide a platform to display selected works of our users on Github or our homepage. If you want to show us your work(s), contact us via Email or other ways. Or if you have upload your work(s) on Github or Gitee etc., share the URL(s) with us. Current available works are (\href{https://github.com/ElegantLaTeX/Archive/tree/master/Collections}).
|
||||
|
||||
\section{About Pull Request}
|
||||
For some reasons, pull request is unacceptable since May 20, 2019. For those who want to help revise the templates, submit issues or clone to your own repository to modify under the constriction of LPPL-1.3c.
|
||||
@@ -90,29 +109,18 @@ So far, Elegant\LaTeX{} has four Support Members:
|
||||
\begin{itemize}
|
||||
\item OG Translator: \href{https://github.com/peggy2006xzyz}{YPY};
|
||||
\item Wiki Maintainer: \href{https://github.com/izinngo}{Ingo Zinngo}, \href{https://github.com/xiaohao890809}{Xiaohao890809};
|
||||
\item QQ Group Manager: \href{https://github.com/sikouhjw}{Sikouhjw}.
|
||||
\item QQ Group Manager \& FAQ Maintainer: \href{https://github.com/sikouhjw}{Sikouhjw}.
|
||||
\end{itemize}
|
||||
|
||||
\section{Acknowledgement}
|
||||
The number of stars on Github for ElegantBook reached 100 on May 20, 2019\footnote{189 stars by August 18, 2019!}.
|
||||
BTW, thank \href{https://github.com/stone-zeng}{Xiangdong Zeng}, \href{https://github.com/latexers}{Zhuluren},etc. for help.
|
||||
|
||||
Thank China\TeX{} and \href{http://www.latexstudio.net/}{\LaTeX{} studio} for their promotion. \LaTeX{} studio offers tons of valuable posts and templates for discovery. It is the most comprehensive website on \LaTeX{} in China.
|
||||
\section{Acknowledgement}
|
||||
The number of stars on Github for ElegantBook reached 100 on May 20, 2019\footnote{189 stars by August 18, 2019!}.Thank China\TeX{} and \href{http://www.latexstudio.net/}{\LaTeX{} studio} for their promotion. \LaTeX{} studio offers tons of valuable posts and templates for discovery. It is the most comprehensive website on \LaTeX{} in China.
|
||||
|
||||
If you like our template, star on Github.
|
||||
\begin{figure}[!ht]
|
||||
\centering
|
||||
\includegraphics[width=\textwidth]{star.png}
|
||||
\caption{Twinkle, Twinkle, Little Star}
|
||||
\end{figure}
|
||||
|
||||
\begin{figure}[!ht]
|
||||
\centering
|
||||
\includegraphics[width=0.618\textwidth]{star-history.png}
|
||||
\caption{Github Star Trends for Elegant\LaTeX{} (by week)}
|
||||
\end{figure}
|
||||
|
||||
\section{Donation}
|
||||
To express your love for our templates and/or our developers, please do not hesitate to tip us. Since last release of 3.08, we have received about a thousand RMB! (The emergence of a millionaire is on the way. Loading... )
|
||||
To express your love for our templates and/or our developers, please do not hesitate to tip us. Since last release of 3.08, we have received about 1,500 RMB! (The emergence of a millionaire is on the way. Loading... )
|
||||
\begin{figure}[!htbp]
|
||||
\centering
|
||||
\includegraphics[width=0.45\textwidth]{donate.jpg}
|
||||
@@ -120,24 +128,49 @@ To express your love for our templates and/or our developers, please do not hesi
|
||||
|
||||
The explanation right of the tip usage belongs to Elegant\LaTeX{} with no supervision. Feel free to tip us. Those who donate more than 10 RMB will be recorded in the Donation List. Thank all the tippers!
|
||||
|
||||
\begin{table}[!h]
|
||||
\begin{table}[!htb]
|
||||
\centering
|
||||
\caption{Donation List}
|
||||
\begin{tabular}{cccc}
|
||||
\begin{tabular}{*{4}{>{\scriptsize}c}|*{4}{>{\scriptsize}c}}
|
||||
\toprule
|
||||
Tipper & Amount & Date & Channel \\
|
||||
\textbf{Tipper} & \textbf{Amount} & \textbf{Date} & \textbf{Channel} & \textbf{Tipper} & \textbf{Amount} & \textbf{Date} & \textbf{Channel} \\
|
||||
\midrule
|
||||
Lerh & 10 RMB & 2019/05/15 & Wechat \\
|
||||
Yueguodipingxian & 10 RMB & 2019/05/15 & Wechat \\
|
||||
Dapeng & 20 RMB & 2019/05/27 & Wechat\\
|
||||
Anonymous & 10 RMB & 2019/05/30 & Wechat \\
|
||||
\href{http://www.latexstudio.net/}{latexstudio.net} & 666 RMB & 2019/06/05 & Alipay \\
|
||||
Cassis & 11 RMB & 2019/06/30 & Wechat \\
|
||||
Anonymous & 10 RMB & 2019/07/23 & Wechat \\
|
||||
Lerh & 10 RMB & 2019/05/15 & Wechat & yueguodipingxian & 10 RMB & 2019/05/15 & Wechat \\
|
||||
yinsang & 20 RMB & 2019/05/27 & Wechat & *kong & 10 RMB & 2019/05/30 & Wechat \\
|
||||
latexstudio.net & 666 RMB & 2019/06/05 & Alipay & A*n & 40 RMB & 2019/06/15 & Wechat \\
|
||||
* xia & 22 RMB & 2019/06/15 & Wechat & * qian & 21 RMB & 2019/06/15 & Wechat \\
|
||||
Cassis & 11 RMB & 2019/06/30 & Wechat & * jun & 10 RMB & 2019/07/23 & Wechat \\
|
||||
P*u & 50 RMB & 2019/07/30 & Wechat & * meng & 19 RMB & 2019/08/28 & Wechat \\
|
||||
Qu Doudou & 10 RMB & 2019/08/28 & Wechat & Li Bo & 100 RMB & 2019/10/06 & Wechat \\
|
||||
Njustsll & 10 RMB & 2019/10/11 & Wechat & Liu Zhikuo & 99.99 RMB & 2019/10/15 & Alipay \\
|
||||
* tao & 16 RMB & 2019/10/17 & Wechat & Chini & 12 RMB & 2019/10/17 & Alipay \\
|
||||
zhuixunyuanfengjing & 10 RMB & 2019/10/28 & Wechat & Guo Deliang & 88 RMB & 2019/11/03 & Wechat \\
|
||||
ziqiangbuxi & 20 RMB & 2019/11/04 & Alipay & dushuzhichong & 20 RMB & 2019/11/18 & Wechat \\
|
||||
* deng & 10 RMB & 2019/11/18 & Wechat & * zhe & 20 RMB & 2019/11/18 & Wechat \\
|
||||
anonymous & 10 RMB & 2019/11/24 & Wechat & Jiye Qian & 66 RMB & 2019/12/04 & Wechat \\
|
||||
* yang & 20 RMB & 2019/12/05 & Wechat & Catcher & 11 RMB & 2019/12/08 & Alipay \\
|
||||
xierbotementu & 10 RMB & 2019/12/09 & Alipay & * wei & 10 RMB & 2019/12/09 & Wechat \\
|
||||
Simon & 20 RMB & 2019/12/11 & Alipay & liushangqianyi & 66.60 RMB & 2019/12/18 & Alipay \\
|
||||
yu & 10 RMB & 2019/12/20 & Alipay & *chen & 15 RMB & 2019/12/20 & Wechat \\
|
||||
suifeng & 20 RMB & 2019/12/27 & Alipay & Ws & 23.30 RMB & 2019/12/28 & Wechat \\
|
||||
chuba & 100 RMB & 2020/01/02 & Alipay & p*e & 20 RMB & 2020/01/03 & Wechat \\
|
||||
Shunmx & 100 RMB & 2020/01/03 & Wechat & hj & 10 RMB & 2020/01/03 & Wechat \\
|
||||
F*5 & 10 RMB & 2020/01/03 & Wechat & S*m & 20.20 RMB & 2020/01/03 & Wechat \\
|
||||
erdaiqingzhi & 13 RMB & 2020/01/14 & Alipay & *? & 66 RMB & 2020/01/15 & Wechat \\
|
||||
Mr. Xiong & 20 RMB & 2020/01/17 & Wechat & *bo & 15 RMB & 2020/01/18 & Wechat \\
|
||||
*zhe & 10 RMB & 2020/02/02 & Wechat & & & & \\
|
||||
\bottomrule
|
||||
\end{tabular}%
|
||||
\label{tab:donation}%
|
||||
\end{table}%
|
||||
|
||||
BTW, we provide Certificate of Donation for those who donated, tippers please leave your name(nickname) and email address for us to send the certificates.
|
||||
|
||||
\begin{figure}[!htbp]
|
||||
\centering
|
||||
\includegraphics[width=0.7\textwidth]{cert.jpg}
|
||||
\end{figure}
|
||||
|
||||
\chapter{ElegantBook Settings}
|
||||
|
||||
This template is based on the Standard \LaTeX{} book class, so the options of book class work as well (Note that the option of papersize has no effect due to \lstinline{device} option). The default encoding is UTF-8 while \TeX{} Live is recommended. The test environment is Win10 + \TeX{} Live 2019, either \lstinline{PDFLaTeX} or \lstinline{XeLaTeX} works fine.
|
||||
@@ -216,6 +249,35 @@ If you want to customize the colors, please select \lstinline{nocolor} or use \l
|
||||
\definecolor{third}{RGB}{0,174,247}%
|
||||
\end{lstlisting}
|
||||
|
||||
\section{Cover}
|
||||
\subsection{Customized Cover}
|
||||
From v3.10, customized cover is allowed, you can choose or hide any element as you prefer. Current optional elements are:
|
||||
\begin{itemize}
|
||||
\item title: \lstinline{\title}
|
||||
\item subtitle: \lstinline{\subtitle}
|
||||
\item author: \lstinline{\author}
|
||||
\item institute: \lstinline{\institute}
|
||||
\item date: \lstinline{\date}
|
||||
\item version: \lstinline{\version}
|
||||
\item extra information: \lstinline{\extrainfo}
|
||||
\item cover image: \lstinline{\cover}
|
||||
\item logo: \lstinline{\logo}
|
||||
\end{itemize}
|
||||
|
||||
Besides, an extra command \lstinline{\bioinfo} is provided with two options--caption and content. For instance, if you want to display \lstinline{Username: 111520}, just type in
|
||||
|
||||
\begin{lstlisting}
|
||||
\bioinfo{Username}{115520}
|
||||
\end{lstlisting}
|
||||
|
||||
\subsection{Cover Image}
|
||||
The cover image used in this template is from \href{https://pixabay.com/en/tea-time-poetry-coffee-reading-3240766/}{pixabay.com}. The image is completely free and can be used under any circumstance. The cover image size is $1280 \times 1024$. If you would like to change the cover, please crop it according to the size of the cover picture strictly. One free online image clipping site: \href{https://www.fotor.com/cn}{fotor.com}. Feel free to join our QQ Group to get more elegant covers.
|
||||
|
||||
\subsection{Logo}
|
||||
Aspect ratio of the logo is 1:1 in this guide, i.e. a square picture. To replace the logo, do remember to choose the appropriate picture.
|
||||
|
||||
\subsection{Stylized Cover}
|
||||
Want to use stylized cover? -- For instance, A4-sized PDF designed by Adobe Illustrator, please comment out \lstinline{\maketitle} and use \lstinline{pdfpages} to insert the cover. Similar for using \lstinline{titlepage}. If you would like to use the cover in version 2.x, please refer to \href{https://github.com/EthanDeng/etitlepage}{etitlepage}.
|
||||
|
||||
\section{Chapter Title Display Styles}
|
||||
|
||||
@@ -225,7 +287,8 @@ This template contains 2 sets of \textit{title display styles},\lstinline{hang}(
|
||||
\documentclass[titlestyle=hang]{elegantbook}
|
||||
\end{lstlisting}
|
||||
|
||||
\section{Theorem Class Environments}
|
||||
|
||||
\section{Introduction of Math Environments}
|
||||
We defined two sets of theorem modes, \lstinline{simple} style and \lstinline{fancy} style (default). You may change to \lstinline{simple} mode by
|
||||
|
||||
\begin{lstlisting}
|
||||
@@ -296,7 +359,7 @@ These are all similar environments with slight differences lies in:
|
||||
\begin{itemize}
|
||||
\item Example, exercise, problem environments number within chapter;
|
||||
\item Note begins with introductory symbol and proof ends with ending symbol;
|
||||
\item Conclusion environment and so on are normal paragraph environments with boldfaced introductory words.
|
||||
\item Conclusion and other environments are normal paragraph environments with boldfaced introductory words.
|
||||
\end{itemize}
|
||||
|
||||
\section{Base Hide Option}
|
||||
@@ -307,12 +370,6 @@ Hiding the end-of-chapter and end-of-page base is optional, simply type in:
|
||||
\end{lstlisting}
|
||||
|
||||
|
||||
\section{Cover and Logo}
|
||||
|
||||
The cover image used in this template is from \href{https://pixabay.com/en/tea-time-poetry-coffee-reading-3240766/}{pixabay.com}\footnote{Thank China\TeX{} for providing free image source, \href{https://www.pexels.com/}{pexels.com} is strongly recommended.}. The image is completely free and can be used under any circumstance. The cover image size is $1280 \times 1024$. If you would like to change the cover, please crop it according to the size of the cover picture strictly. One free online image clipping site: \href{https://www.fotor.com/cn}{fotor.com}. Feel free to join our QQ Group to get more elegant covers.
|
||||
|
||||
Aspect ratio of the logo is 1:1 in this guide, i.e. a square picture. To replace the logo, do remember to choose the appropriate picture.
|
||||
|
||||
\section{List Environments}
|
||||
This template uses \lstinline{tikz} to customize the list environments, with \lstinline{itemize} environment customized to the third depth and \lstinline{enumerate} environment customized to fourth depth. The effect is as follows\\[2ex]
|
||||
\begin{minipage}[b]{0.49\textwidth}
|
||||
@@ -362,6 +419,11 @@ Three more options \lstinline{cite=numbers}, \lstinline{cite=super} and \lstinli
|
||||
\documentclass[authoryear]{elegantbook}
|
||||
\end{lstlisting}
|
||||
|
||||
To change the bibliography style, this version introduces \lstinline{bibstyle} with default option apalike, for more options, refer to \href{https://www.overleaf.com/learn/latex/Bibtex_bibliography_styles}{\hologo{BibTeX} Bibliography Styles}. Type in
|
||||
\begin{lstlisting}
|
||||
\documentclass[bibstyle=apalike]{elegantbook}
|
||||
\end{lstlisting}
|
||||
|
||||
\section{Preface}
|
||||
|
||||
If you want to add a preface before the first chapter with the number of chapter unchanged, please add the preface in the following way:
|
||||
@@ -372,6 +434,20 @@ If you want to add a preface before the first chapter with the number of chapter
|
||||
The content of Preface.
|
||||
\end{lstlisting}
|
||||
|
||||
\section{Content Option and Depth}
|
||||
This version adds an option for content \lstinline{toc}, you can choose either one column(\lstinline{onecol}) or two columns(\lstinline{twocol}). For two columns:
|
||||
\begin{lstlisting}
|
||||
\documentclass[twocol]{elegantbook}
|
||||
\documentclass[toc=twocol]{elegantbook}
|
||||
\end{lstlisting}
|
||||
|
||||
Default content depth is 1, use
|
||||
\begin{lstlisting}
|
||||
\setcounter{tocdepth}{2}
|
||||
\end{lstlisting}
|
||||
to make it 2.
|
||||
|
||||
|
||||
\section{Introduction Environment}
|
||||
We create a introduction environment to display the structure of chapter. The basic useage is as follows
|
||||
\begin{lstlisting}
|
||||
@@ -413,11 +489,19 @@ And you will get:
|
||||
\item exercise 1
|
||||
\item exercise 2
|
||||
\item exercise 3
|
||||
\item math equation test:
|
||||
\begin{equation}
|
||||
a^2+b^2=c_{2_{i}} (1,2) [1,23]
|
||||
\end{equation}
|
||||
\end{problemset}
|
||||
\begin{remark}
|
||||
If you want to customize the title of \lstinline{problemset}, please change the optional argument like in introduction environment. In this version the \lstinline{problemset} environment automatically appears in the table of contents but not in the header or footer.
|
||||
If you want to customize the title of \lstinline{problemset}, please change the optional argument like in introduction environment. In this version the \lstinline{problemset} environment automatically appears in the table of contents but not in the header or footer(to be fixed).
|
||||
\end{remark}
|
||||
|
||||
\begin{solution}
|
||||
If you want to customize the title of \lstinline{problemset}, please change the optional argument like in introduction environment. In this version the \lstinline{problemset} environment automatically appears in the table of contents but not in the header or footer(to be fixed).
|
||||
\end{solution}
|
||||
|
||||
\section{Margin Notes}
|
||||
In 3.08, we introduced \lstinline{marginpar=margintrue} and \lstinline{\elegantpar} (Beta) with piles of bugs. Hence we decide to remove them in 3.09 and will suspend the options till revolutionary optimization. Sorry for all the bugs! However, we retain the option \lstinline{marginpar} for users to get margin motes by activating \lstinline{marginpar=margintrue} and using \lstinline{\marginpar} or \lstinline{marginnote} packages.
|
||||
|
||||
@@ -457,7 +541,28 @@ For tables and figures, note that floating environment is not allowed. You have
|
||||
|
||||
\end{remark}
|
||||
|
||||
\section{Hyphens}
|
||||
\chapter{Fonts}
|
||||
Leave one chapter to introduce fonts to help users to solve font problems conveniently.
|
||||
|
||||
\textcolor{red}{\bfseries Alert} After v3.10, newtx is reset to cm and \lstinline{chinesefont} option is added.
|
||||
|
||||
\section{Math Fonts}
|
||||
This template defines a new command(\lstinline{math}), with three options:
|
||||
\begin{enumerate}
|
||||
\item \lstinline{math=cm}(default), use \LaTeX{} default math font (recommended).
|
||||
\item \lstinline{math=newtx}, use \lstinline{newtxmath} math font (may bring about bugs).
|
||||
\item \lstinline{math=mtpro2}, use \lstinline{mtpro2} package to set math font.
|
||||
\end{enumerate}
|
||||
|
||||
\section{Use newtx fonts}
|
||||
If you use \lstinline{newtx} fonts, type in:
|
||||
|
||||
\begin{lstlisting}
|
||||
\documentclass[math=newtx]{elegantbook}
|
||||
\end{lstlisting}
|
||||
|
||||
|
||||
\subsection{Hyphens}
|
||||
Since the template uses \lstinline{newtx}, please pay attention to the hyphens. For instance,
|
||||
\begin{equation}
|
||||
\int_{R^q} f(x,y) dy.\emph{of\kern0pt f}
|
||||
@@ -478,6 +583,7 @@ Too many symbol fonts declared.
|
||||
\end{lstlisting}
|
||||
|
||||
The reason is that the template redefines font for math so that no new math font is allowed to be added. To use \lstinline{yhmath} and/or \lstinline{esvect}, please locate \lstinline{yhmath} or \lstinline{esvect} in \lstinline{elegantbook.cls}, uncomment corresponding related code.
|
||||
|
||||
\begin{lstlisting}
|
||||
%%% use yhmath pkg, uncomment following code
|
||||
% \let\oldwidering\widering
|
||||
@@ -587,82 +693,62 @@ Let's continue using our application training example. In this case, we'd want t
|
||||
|
||||
|
||||
\chapter{FAQ}
|
||||
We list some FAQs for users to refer to:
|
||||
\begin{enumerate}
|
||||
\item \question{Why option numbers for natbib fail to take effect in v3.07?}
|
||||
\answer{In v3.07, when \lstinline{gbt7714} is introduced, option \lstinline{authoryear} is incompatible with \lstinline{natbib}. In v3.08 and 3.09, \lstinline{numbers}, \lstinline{numbers}, \lstinline{super} and \lstinline{authoryear} are introduced.}
|
||||
\item \question{I want to customize font and background color.}
|
||||
\answer{Please use \lstinline{pagecolor} to change background color, refer to \href{https://tex.stackexchange.com/questions/278544/xcolor-what-is-the-equivalent-of-default-text-color}{this} to customize font.}
|
||||
\item \lstinline[breaklines]{Package ctex Error: CTeX fontset `Mac' is unavailable.}
|
||||
\answer{Under Mac, please use \lstinline{XeLaTeX} for Chinese documents.}
|
||||
\item \lstinline{! LaTeX Error: Unknown option `scheme=plain' for package `ctex'.}
|
||||
\answer{Use \TeX{} Live 2019.}
|
||||
\item \question{Which version should I choose?}
|
||||
\answer{Please use \href{https://github.com/ElegantLaTeX/ElegantBook/releases}{Latest Release} via GitHub or \TeX{} Live 2019.}
|
||||
\item \question{Which editor should I choose?}
|
||||
\answer{You can use \TeX{} Live 2019 built-in \TeX works or \TeX Studio. You may refer to \href{https://github.com/EthanDeng/texworks-autocomplete}{\TeX{}works autocomplete}. \TeX{} Live 2019 + \TeX{}studio is strongly recommended. I myself use VS Code and Sublime Text. Related configurations can be found at \href{https://github.com/EthanDeng/vscode-latex}{vscode-latex} and \href{https://github.com/EthanDeng/sublime-text-latex}{sublime-text-latex}.}
|
||||
\item \question{Hello, we want to use ElegantBook to write a book about machine learning and would like your authorization.}
|
||||
\answer{Feel free to use our templates by pointing out our copyright. For other issues, please refer to LPPL-1.3c. If you want to show us your work, share the URL with us afterwards.}
|
||||
\item \question{What is cross reference?}
|
||||
\answer{This template is aimed at who are not a complete beginner for \LaTeX{}. Please learn more about \LaTeX{} before using this template.}
|
||||
\item \question{Is the language for code highlighting optional?}
|
||||
\answer{Yes, \lstinline{listings} package is used in ElegantBook, hence language is optional(e.g. \lstinline{language=Python}). For global setting, use \lstinline{lstset}. For more information, please refer to package documentations.}
|
||||
\item \question{When will Beamer template (ElegantSlide or ElegantBeamer) forthcoming?}
|
||||
\answer{Since there is an excellent theme \href{https://github.com/matze/mtheme}{Metropolis}, a Beta theme PreElegantSlide is available in QQ group. Feel free to download. A formal version is forthcoming in this year or next year.}
|
||||
\end{enumerate}
|
||||
|
||||
\begin{custom}{Question}
|
||||
I want to customize font and background color.
|
||||
\end{custom}
|
||||
\chapter{Update History}
|
||||
We revised our templates now and then. Nearly 100 submits and 16 releases for ElegantBook on GitHub.
|
||||
|
||||
\begin{solution}
|
||||
Please use \lstinline{\pagecolor} to change background color, refer to \href{https://tex.stackexchange.com/questions/278544/xcolor-what-is-the-equivalent-of-default-text-color}{this} to customize font.
|
||||
\end{solution}
|
||||
\datechange{2020/02/08}{release of v3.10}
|
||||
|
||||
\begin{change}
|
||||
\item Introduce \lstinline{math} for math font, optional styles are Times-ish \lstinline{newtx}, Computer Modern-ish \lstinline{cm}. \textbf{Notice}: The math font \lstinline{newtxmath} in previous versions is reset to default \LaTeX{} math font, to keep previous math font, please declare \lstinline{math=newtx}.
|
||||
\item Introduce \lstinline{chinesefont} for Chinese font, optional fonts are \lstinline{founder}, \lstinline{ctexfont} and \lstinline{nofont}.
|
||||
\item Turn author information on the cover optional and add customized command \lstinline{\bioinfo}.
|
||||
\item Add version time line in this documentation with command \lstinline{\datechange} and environment \lstinline{change}.
|
||||
\item Add Chinese chapter style \lstinline{scheme} with option \lstinline{chinese}.
|
||||
\item Since the bug raised by \lstinline{\lvert} is fixed, exchange package positions of \lstinline{ctex} and \lstinline{amsmath}.
|
||||
\item Revise header settings by dropping \lstinline{\lastpage} to avoid page anchor bug and adding \lstinline{\frontmatter}.
|
||||
\item Revise bibliography option \lstinline{cite} with optional styles \lstinline{number},\lstinline{authoryear} and \lstinline{super}.
|
||||
\item Introduce bibliography style option \lstinline{bibstyle}, with default style \lstinline{apalike} for English and \lstinline{gbt7714} for Chinese.
|
||||
\end{change}
|
||||
|
||||
\datechange{2019/08/18}{release of v3.09}
|
||||
|
||||
\begin{change}
|
||||
\item Remove \lstinline{\elegantpar} temporary and remind users to use \lstinline{\marginnote} and \lstinline{\marginpar} instead.
|
||||
\item Use \lstinline{esint} to display integral operator.
|
||||
\item Add new command \lstinline{toc}, with options \lstinline{onecol} and \lstinline{twocol}.
|
||||
\item Add new option \lstinline{cite} \lstinline{super} for superscript-displayed citation.
|
||||
\item Revise \lstinline{problemset}.
|
||||
\end{change}
|
||||
|
||||
|
||||
\begin{custom}{Question}
|
||||
\lstinline[breaklines]{Package ctex Error: CTeX fontset `Mac' is unavailable.}
|
||||
\end{custom}
|
||||
|
||||
\begin{solution}
|
||||
Under Mac, please use \lstinline{XeLaTeX} for Chinese documents.
|
||||
\end{solution}
|
||||
|
||||
\begin{custom}{Question}
|
||||
Which version should I choose?
|
||||
\end{custom}
|
||||
|
||||
\begin{solution}
|
||||
Please use \href{https://github.com/ElegantLaTeX/ElegantBook/releases}{Latest Release} via GitHub or \TeX{} Live 2019.
|
||||
\end{solution}
|
||||
|
||||
|
||||
\begin{custom}{Question}
|
||||
Which editor should I choose?
|
||||
\end{custom}
|
||||
|
||||
\begin{solution}
|
||||
You can use \TeX{} Live 2019 built-in \TeX works or \TeX Studio. You may refer to \href{https://github.com/EthanDeng/texworks-autocomplete}{\TeX{}works autocomplete}. \TeX{} Live 2019 + \TeX{}studio is strongly recommended. I myself use VS Code and Sublime Text. Related configurations can be found at \href{https://github.com/EthanDeng/vscode-latex}{vscode-latex} and \href{https://github.com/EthanDeng/sublime-text-latex}{sublime-text-latex}.
|
||||
\end{solution}
|
||||
|
||||
|
||||
\begin{custom}{Question}
|
||||
Hello, we want to use ElegantBook to write a book about machine learning and would like your authorization.
|
||||
\end{custom}
|
||||
|
||||
\begin{solution}
|
||||
Feel free to use our templates by pointing out our copyright. For other issues, please refer to LPPL-1.3c. If you want to show us your work, share the URL with us afterwards.
|
||||
\end{solution}
|
||||
|
||||
\begin{custom}{Question}
|
||||
I would like to use the former cover!
|
||||
\end{custom}
|
||||
|
||||
\begin{solution}
|
||||
Cover option is forthcoming.
|
||||
\end{solution}
|
||||
|
||||
|
||||
|
||||
\begin{custom}{Question}
|
||||
What is cross reference?
|
||||
\end{custom}
|
||||
|
||||
\begin{solution}
|
||||
This template is aimed at who are not a complete beginner for \LaTeX{}. Please learn more about \LaTeX{} before using this template.
|
||||
\end{solution}
|
||||
|
||||
|
||||
\begin{custom}{Question}
|
||||
Is the language for code highlighting optional?
|
||||
\end{custom}
|
||||
|
||||
\begin{solution}
|
||||
Yes, \lstinline{listings} package is used in ElegantBook, hence language is optional(e.g. \lstinline{language=Python}). For global setting, use \lstinline{\lstset}. For more information, please refer to package documentations.
|
||||
\end{solution}
|
||||
|
||||
|
||||
\nocite{en1,en2,en3}
|
||||
\nocite{en1,en2,en3}
|
||||
\bibliography{reference}
|
||||
|
||||
\appendix
|
||||
|
||||
\chapter{Mathematical Tools}
|
||||
|
||||
This appendix covers some of the basic mathematics used in econometrics. We briefly discuss the properties of summation operators, study the properties of linear and some nonlinear equations, and review the ratios and percentages. We also introduce some special functions that are common in econometrics applications, including quadratic functions and natural logarithms. The first four sections require only basic algebraic techniques. The fifth section briefly reviews differential Calculus Although Calculus is not necessary to understand much of this book, it is used in some of the end-of-chapter appendices and in some of the more advanced topics in part 3.
|
||||
@@ -675,4 +761,4 @@ This appendix covers some of the basic mathematics used in econometrics. We brie
|
||||
\sum_{i=1}^n x_i \equiv x_1 + x_2 +\cdots + x_n
|
||||
\end{equation}
|
||||
|
||||
\end{document}
|
||||
\end{document}
|
||||
@@ -8,7 +8,7 @@
|
||||
%%%%%%%%%%%%%%%%%%%%%
|
||||
% % !Mode:: "TeX:UTF-8"
|
||||
\NeedsTeXFormat{LaTeX2e}
|
||||
\ProvidesClass{elegantbook}[2020/02/08 v3.10 ElegantBook document class]
|
||||
\ProvidesClass{elegantbook}[2020/02/10 v3.10 ElegantBook document class]
|
||||
|
||||
\RequirePackage{kvoptions}
|
||||
\RequirePackage{etoolbox}
|
||||
@@ -287,8 +287,7 @@
|
||||
\newcommand{\logo}[1]{\gdef\@logo{#1}}
|
||||
\newcommand{\cover}[1]{\gdef\@cover{#1}}
|
||||
|
||||
\newcommand{\question}[1]{\uline{#1}}
|
||||
\newcommand{\answer}[1]{{\par\citshape #1}}
|
||||
\newcommand{\question}[1]{{\par\citshape #1}\\[0.2ex]}
|
||||
|
||||
\RequirePackage[\ELEGANT@cite,sort&compress]{natbib}
|
||||
\setlength{\bibsep}{0.0pt}
|
||||
@@ -709,7 +708,7 @@
|
||||
\fancyhf{}
|
||||
|
||||
\ifdefstring{\ELEGANT@base}{hide}{
|
||||
\fancyfoot[c]{\color{structurecolor}\scriptsize--\;\thepage\;--}
|
||||
\fancyfoot[c]{\color{structurecolor}\scriptsize\thepage}
|
||||
\if@twoside
|
||||
\fancyhead[ER]{\color{structurecolor}\citshape\leftmark}
|
||||
\fancyhead[OL]{\color{structurecolor}\citshape\rightmark}
|
||||
|
||||
BIN
image/cert.jpg
Normal file
BIN
image/cert.jpg
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 138 KiB |
Reference in New Issue
Block a user