mirror of
https://github.com/ElegantLaTeX/ElegantBook.git
synced 2026-01-26 04:14:35 +08:00
remove medskip
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
\documentclass[cn,11pt,simple]{elegantbook}
|
\documentclass[cn,11pt,simple,chinese]{elegantbook}
|
||||||
|
|
||||||
\title{ElegantBook:优美的 \LaTeX{} 书籍模板}
|
\title{ElegantBook:优美的 \LaTeX{} 书籍模板}
|
||||||
\subtitle{Elegant\LaTeX{} 经典之作}
|
\subtitle{Elegant\LaTeX{} 经典之作}
|
||||||
@@ -25,12 +25,12 @@
|
|||||||
\mainmatter
|
\mainmatter
|
||||||
\chapter{Elegant\LaTeX{} 系列模板介绍}
|
\chapter{Elegant\LaTeX{} 系列模板介绍}
|
||||||
|
|
||||||
Elegant\LaTeX{} 项目组致力于打造一系列美观、优雅、简便的模板方便用户使用。目前由 \href{https://github.com/ElegantLaTeX/ElegantNote}{ElegantNote},\href{https://github.com/ElegantLaTeX/ElegantBook}{ElegantBook},\href{https://github.com/ElegantLaTeX/ElegantPaper}{ElegantPaper} 组成,分别用于排版笔记,书籍和工作论文。强烈推荐使用最新正式版本!本文将介绍本模板的一些设置内容以及基本使用方法。如果您有其他问题,建议或者意见,欢迎在 Github 上给我们提交 \href{https://github.com/ElegantLaTeX/ElegantBook/issues}{issues} 或者邮件联系我们。
|
Elegant\LaTeX{} 项目组致力于打造一系列美观、优雅、简便的模板方便用户使用。目前由 \href{https://github.com/ElegantLaTeX/ElegantNote}{ElegantNote},\href{https://github.com/ElegantLaTeX/ElegantBook}{ElegantBook},\href{https://github.com/ElegantLaTeX/ElegantPaper}{ElegantPaper} 组成,分别用于排版笔记,书籍和工作论文。强烈推荐使用最新正式版本!本文将介绍本模板的一些设置内容以及基本使用方法。如果您有其他问题,建议或者意见,欢迎在 GitHub 上给我们提交 \href{https://github.com/ElegantLaTeX/ElegantBook/issues}{issues} 或者邮件联系我们。
|
||||||
|
|
||||||
我们的联系方式:
|
我们的联系方式:
|
||||||
\begin{itemize}
|
\begin{itemize}
|
||||||
\item 官网:\href{https://elegantlatex.org/}{https://elegantlatex.org/}
|
\item 官网:\href{https://elegantlatex.org/}{https://elegantlatex.org/}
|
||||||
\item Github 网址:\href{https://github.com/ElegantLaTeX/}{https://github.com/ElegantLaTeX/}
|
\item GitHub 网址:\href{https://github.com/ElegantLaTeX/}{https://github.com/ElegantLaTeX/}
|
||||||
\item CTAN 地址:\href{https://ctan.org/pkg/elegantbook}{https://ctan.org/pkg/elegantbook}
|
\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 文档 Wiki:\href{https://github.com/ElegantLaTeX/ElegantBook/wiki}{https://github.com/ElegantLaTeX/ElegantBook/wiki}
|
||||||
\item 下载地址:\href{https://github.com/ElegantLaTeX/ElegantBook/releases}{正式发行版},\href{https://github.com/ElegantLaTeX/ElegantBook/archive/master.zip}{最新版}
|
\item 下载地址:\href{https://github.com/ElegantLaTeX/ElegantBook/releases}{正式发行版},\href{https://github.com/ElegantLaTeX/ElegantBook/archive/master.zip}{最新版}
|
||||||
@@ -60,7 +60,7 @@ Elegant\LaTeX{} 项目组致力于打造一系列美观、优雅、简便的模
|
|||||||
|
|
||||||
你可以通过免安装的方式使用本模板,也可以通过安装模板的方式使用。
|
你可以通过免安装的方式使用本模板,也可以通过安装模板的方式使用。
|
||||||
|
|
||||||
免安装使用方法如下,从 Github 或者 CTAN 下载最新(正式)版文件,严格意义上只需要类文件 \lstinline{elegantbook.cls}。然后将模板文件放在你的工作目录下即可使用。这样使用的好处是,无需安装,简便;缺点是,当模板进行更新之后,你需要手动替换 \lstinline{cls} 文件。
|
免安装使用方法如下,从 GitHub 或者 CTAN 下载最新(正式)版文件,严格意义上只需要类文件 \lstinline{elegantbook.cls}。然后将模板文件放在你的工作目录下即可使用。这样使用的好处是,无需安装,简便;缺点是,当模板进行更新之后,你需要手动替换 \lstinline{cls} 文件。
|
||||||
|
|
||||||
如果你是 \TeX{} Live 2019 用户,我们非常推荐你直接进行安装和更新。你可以通过 \TeX{} Live 2019 自带的 \lstinline{tlshell}\footnote{也叫 \TeX{} Live Manager} 进行安装。安装非常简单,步骤如下,搜索并打开 \lstinline{tlshell},然后通过 \lstinline{File -> Load Default Repository} 加载远程仓库,如果你不想使用默认的仓库,你可以通过 \lstinline{Options} 下的菜单设置远程仓库。设置好仓库之后,等待仓库加载完毕,你可以在下面的搜索栏搜索 \lstinline{elegantbook},然后选择进行安装与更新。
|
如果你是 \TeX{} Live 2019 用户,我们非常推荐你直接进行安装和更新。你可以通过 \TeX{} Live 2019 自带的 \lstinline{tlshell}\footnote{也叫 \TeX{} Live Manager} 进行安装。安装非常简单,步骤如下,搜索并打开 \lstinline{tlshell},然后通过 \lstinline{File -> Load Default Repository} 加载远程仓库,如果你不想使用默认的仓库,你可以通过 \lstinline{Options} 下的菜单设置远程仓库。设置好仓库之后,等待仓库加载完毕,你可以在下面的搜索栏搜索 \lstinline{elegantbook},然后选择进行安装与更新。
|
||||||
|
|
||||||
@@ -101,18 +101,18 @@ Elegant\LaTeX{} 系列模板从创立至今已经有 8 年了,我们的模板
|
|||||||
目前 ElegantLaTeX 共有 4 名协作人员,分别是
|
目前 ElegantLaTeX 共有 4 名协作人员,分别是
|
||||||
\begin{itemize}
|
\begin{itemize}
|
||||||
\item 官方文档翻译: \href{https://github.com/peggy2006xzyz}{YPY};
|
\item 官方文档翻译: \href{https://github.com/peggy2006xzyz}{YPY};
|
||||||
\item Github 维基维护: \href{https://github.com/izinngo}{Ingo Zinngo}、\href{https://github.com/xiaohao890809}{追寻原风景};
|
\item GitHub 维基维护: \href{https://github.com/izinngo}{Ingo Zinngo}、\href{https://github.com/xiaohao890809}{追寻原风景};
|
||||||
\item QQ 群管理员: \href{https://github.com/sikouhjw}{Sikouhjw}.
|
\item QQ 群管理员: \href{https://github.com/sikouhjw}{Sikouhjw}.
|
||||||
\end{itemize}
|
\end{itemize}
|
||||||
|
|
||||||
在此感谢他们无私的奉献!
|
在此感谢他们无私的奉献!
|
||||||
|
|
||||||
\section{致谢}
|
\section{致谢}
|
||||||
2019 年 5 月 20 日,ElegantBook 模板在 Github 上的收藏数(star)达到了 100\footnote{截止 2019 年 8 月 18 日 3.09 版本正式发布,star 数为 189。}。
|
2019 年 5 月 20 日,ElegantBook 模板在 GitHub 上的收藏数(star)达到了 100\footnote{截止 2019 年 8 月 18 日 3.09 版本正式发布,star 数为 189。}。
|
||||||
|
|
||||||
在此特别感谢 China\TeX{} 以及 \href{http://www.latexstudio.net/}{\LaTeX{} 工作室}对于本系列模板的大力宣传与推广。\LaTeX{} 工作室网站上有很多精彩的帖子和精致的模板,欢迎大家去挖掘里面的宝藏,这也是国内最全面的 \LaTeX{} 相关的网站。
|
在此特别感谢 China\TeX{} 以及 \href{http://www.latexstudio.net/}{\LaTeX{} 工作室}对于本系列模板的大力宣传与推广。\LaTeX{} 工作室网站上有很多精彩的帖子和精致的模板,欢迎大家去挖掘里面的宝藏,这也是国内最全面的 \LaTeX{} 相关的网站。
|
||||||
|
|
||||||
如果你喜欢我们的模板,你可以在 Github 上收藏我们的模板。
|
如果你喜欢我们的模板,你可以在 GitHub 上收藏我们的模板。
|
||||||
\begin{figure}[htbp]
|
\begin{figure}[htbp]
|
||||||
\centering
|
\centering
|
||||||
\includegraphics[width=\textwidth]{star.png}
|
\includegraphics[width=\textwidth]{star.png}
|
||||||
@@ -122,7 +122,7 @@ Elegant\LaTeX{} 系列模板从创立至今已经有 8 年了,我们的模板
|
|||||||
\begin{figure}[htbp]
|
\begin{figure}[htbp]
|
||||||
\centering
|
\centering
|
||||||
\includegraphics[width=0.618\textwidth]{star-history.png}
|
\includegraphics[width=0.618\textwidth]{star-history.png}
|
||||||
\caption{Elegant\LaTeX{} 系列模板上线 Github 之后上每周 Star 数变化}
|
\caption{Elegant\LaTeX{} 系列模板上线 GitHub 之后上每周 Star 数变化}
|
||||||
\end{figure}
|
\end{figure}
|
||||||
|
|
||||||
\section{捐赠}
|
\section{捐赠}
|
||||||
@@ -276,6 +276,15 @@ The content of theorem.
|
|||||||
\end{theorem}
|
\end{theorem}
|
||||||
\end{lstlisting}
|
\end{lstlisting}
|
||||||
|
|
||||||
|
\begin{remark}
|
||||||
|
中文(Chinese)是中国语言文字或中国语言文学的省称。特指汉族的语言文字(汉语和汉字)或汉语言文学。在汉字文化圈和海外华人社区中,中文也被称为汉文、华文。中文(汉语)有标准语和方言之分,其标准语即汉语普通话。
|
||||||
|
\end{remark}
|
||||||
|
|
||||||
|
\begin{problem}
|
||||||
|
中文(Chinese)是中国语言文字或中国语言文学的省称。特指汉族的语言文字(汉语和汉字)或汉语言文学。在汉字文化圈和海外华人社区中,中文也被称为汉文、华文。中文(汉语)有标准语和方言之分,其标准语即汉语普通话。
|
||||||
|
\end{problem}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
第一个必选项 \lstinline{theorem name} 是定理的名字,第二个必选项 \lstinline{label} 是交叉引用时所用到的标签,交叉引用的方法为 \verb|\ref{thm:label}|。请注意,交叉引用时必须加上前缀 \lstinline{thm:}。
|
第一个必选项 \lstinline{theorem name} 是定理的名字,第二个必选项 \lstinline{label} 是交叉引用时所用到的标签,交叉引用的方法为 \verb|\ref{thm:label}|。请注意,交叉引用时必须加上前缀 \lstinline{thm:}。
|
||||||
|
|
||||||
@@ -695,7 +704,7 @@ Lebesgue 积分有几种不同的定义方式。我们将采用逐步定义非
|
|||||||
\end{custom}
|
\end{custom}
|
||||||
|
|
||||||
\begin{solution}
|
\begin{solution}
|
||||||
请务必使用\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 内获取。
|
||||||
\end{solution}
|
\end{solution}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -25,6 +25,7 @@
|
|||||||
\DeclareStringOption[cm]{math}
|
\DeclareStringOption[cm]{math}
|
||||||
\DeclareStringOption[marginfalse]{marginpar}
|
\DeclareStringOption[marginfalse]{marginpar}
|
||||||
\DeclareStringOption[onecol]{toc}
|
\DeclareStringOption[onecol]{toc}
|
||||||
|
\DeclareStringOption{scheme}
|
||||||
% ----- backward compatibility
|
% ----- backward compatibility
|
||||||
\DeclareVoidOption{green}{\ekv{color=green}}
|
\DeclareVoidOption{green}{\ekv{color=green}}
|
||||||
\DeclareVoidOption{cyan}{\ekv{color=cyan}}
|
\DeclareVoidOption{cyan}{\ekv{color=cyan}}
|
||||||
@@ -33,6 +34,8 @@
|
|||||||
\DeclareVoidOption{black}{\ekv{color=black}}
|
\DeclareVoidOption{black}{\ekv{color=black}}
|
||||||
\DeclareVoidOption{nocolor}{\ekv{color=none}}
|
\DeclareVoidOption{nocolor}{\ekv{color=none}}
|
||||||
|
|
||||||
|
\DeclareVoidOption{chinese}{\ekv{scheme=chinese}}
|
||||||
|
|
||||||
\DeclareVoidOption{en}{\ekv{lang=en}}
|
\DeclareVoidOption{en}{\ekv{lang=en}}
|
||||||
\DeclareVoidOption{cn}{\ekv{lang=cn}}
|
\DeclareVoidOption{cn}{\ekv{lang=cn}}
|
||||||
|
|
||||||
@@ -55,6 +58,7 @@
|
|||||||
|
|
||||||
\DeclareStringOption[apalike]{bibstyle}
|
\DeclareStringOption[apalike]{bibstyle}
|
||||||
|
|
||||||
|
|
||||||
\DeclareVoidOption{newtx}{\ekv{math=newtx}}
|
\DeclareVoidOption{newtx}{\ekv{math=newtx}}
|
||||||
\DeclareVoidOption{mtpro2}{\ekv{math=mtpro2}}
|
\DeclareVoidOption{mtpro2}{\ekv{math=mtpro2}}
|
||||||
\DeclareVoidOption{cm}{\ekv{math=cm}}
|
\DeclareVoidOption{cm}{\ekv{math=cm}}
|
||||||
@@ -308,7 +312,9 @@
|
|||||||
\renewcommand{\indexname}{索\hspace{2em}引}
|
\renewcommand{\indexname}{索\hspace{2em}引}
|
||||||
\newcommand\figref[1]{\textbf{图}~\ref{#1}}
|
\newcommand\figref[1]{\textbf{图}~\ref{#1}}
|
||||||
\newcommand\tabref[1]{\textbf{表}~\ref{#1}}
|
\newcommand\tabref[1]{\textbf{表}~\ref{#1}}
|
||||||
\renewcommand{\chaptername}{第 \thechapter\,章}
|
\ifdefstring{\ELEGANT@scheme}{chinese}{
|
||||||
|
\renewcommand{\chaptername}{第 \zhnumber{\thechapter}\ 章}}{
|
||||||
|
\renewcommand{\chaptername}{第 \thechapter 章}}
|
||||||
\newcommand{\authorname}{\textit{作者:}}
|
\newcommand{\authorname}{\textit{作者:}}
|
||||||
\newcommand{\institutename}{\textit{组织:}}
|
\newcommand{\institutename}{\textit{组织:}}
|
||||||
\newcommand{\datename}{\textit{时间:}}
|
\newcommand{\datename}{\textit{时间:}}
|
||||||
@@ -568,7 +574,7 @@
|
|||||||
\newenvironment{example}[1][]{
|
\newenvironment{example}[1][]{
|
||||||
\refstepcounter{exam}
|
\refstepcounter{exam}
|
||||||
\par\noindent\textbf{\color{main}{\examplename}\theexam~#1 \,}\rmfamily}{
|
\par\noindent\textbf{\color{main}{\examplename}\theexam~#1 \,}\rmfamily}{
|
||||||
\par\medskip\ignorespacesafterend}
|
\par\ignorespacesafterend}
|
||||||
|
|
||||||
%% Exercise with counter
|
%% Exercise with counter
|
||||||
\newcounter{exer}[chapter]
|
\newcounter{exer}[chapter]
|
||||||
@@ -579,7 +585,7 @@
|
|||||||
\par\noindent\makebox[-3pt][r]{
|
\par\noindent\makebox[-3pt][r]{
|
||||||
\scriptsize\color{red!90}\HandPencilLeft\quad}
|
\scriptsize\color{red!90}\HandPencilLeft\quad}
|
||||||
\textbf{\color{main}{\exercisename}\theexer #1 \,}\rmfamily}{
|
\textbf{\color{main}{\exercisename}\theexer #1 \,}\rmfamily}{
|
||||||
\par\medskip\ignorespacesafterend}
|
\par\ignorespacesafterend}
|
||||||
|
|
||||||
%% Exercise with counter
|
%% Exercise with counter
|
||||||
\newcounter{prob}[chapter]
|
\newcounter{prob}[chapter]
|
||||||
@@ -588,7 +594,7 @@
|
|||||||
\newenvironment{problem}[1][]{
|
\newenvironment{problem}[1][]{
|
||||||
\refstepcounter{prob}
|
\refstepcounter{prob}
|
||||||
\par\noindent\textbf{\color{main}{\problemname} \theprob #1 \,}\rmfamily}{
|
\par\noindent\textbf{\color{main}{\problemname} \theprob #1 \,}\rmfamily}{
|
||||||
\par\medskip\ignorespacesafterend}
|
\par\ignorespacesafterend}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@@ -604,11 +610,11 @@
|
|||||||
% \hfill$\Box$\quad
|
% \hfill$\Box$\quad
|
||||||
\par}
|
\par}
|
||||||
|
|
||||||
\newenvironment{solution}{\par\noindent\textbf{\color{main}\solutionname} \medskip\itshape}{\vskip2ex\par}
|
\newenvironment{solution}{\par\noindent\textbf{\color{main}\solutionname} \itshape}{\par}
|
||||||
\newenvironment{remark}{\noindent\textbf{\color{second}\remarkname} \medskip}{\par}
|
\newenvironment{remark}{\noindent\textbf{\color{second}\remarkname}}{\par}
|
||||||
\newenvironment{assumption}{\par\noindent\textbf{\color{third}\assumptionname} \medskip}{\par}
|
\newenvironment{assumption}{\par\noindent\textbf{\color{third}\assumptionname}}{\par}
|
||||||
\newenvironment{conclusion}{\par\noindent\textbf{\color{third}\conclusionname} \medskip}{\par}
|
\newenvironment{conclusion}{\par\noindent\textbf{\color{third}\conclusionname}}{\par}
|
||||||
\newenvironment{property}{\par\noindent\textbf{\color{third}\propertyname}\medskip}{\par}
|
\newenvironment{property}{\par\noindent\textbf{\color{third}\propertyname}}{\par}
|
||||||
\newenvironment{custom}[1]{\par\noindent\textbf{\color{third} #1 }}{\par}
|
\newenvironment{custom}[1]{\par\noindent\textbf{\color{third} #1 }}{\par}
|
||||||
|
|
||||||
\RequirePackage{multicol}
|
\RequirePackage{multicol}
|
||||||
@@ -640,9 +646,9 @@
|
|||||||
\end{tcolorbox}}
|
\end{tcolorbox}}
|
||||||
|
|
||||||
\RequirePackage{adforn}
|
\RequirePackage{adforn}
|
||||||
\newenvironment{problemset}[1][\chaptername~\medskip~\problemsetname]{
|
\newenvironment{problemset}[1][\chaptername~\problemsetname]{
|
||||||
\begin{center}
|
\begin{center}
|
||||||
\phantomsection\addcontentsline{toc}{section}{\texorpdfstring{\chaptername\medskip\problemsetname}{\problemsetname}}
|
\phantomsection\addcontentsline{toc}{section}{\texorpdfstring{\chaptername~\problemsetname}{\problemsetname}}
|
||||||
\textcolor{structurecolor}{\Large\bfseries\adftripleflourishleft~#1~\adftripleflourishright}
|
\textcolor{structurecolor}{\Large\bfseries\adftripleflourishleft~#1~\adftripleflourishright}
|
||||||
\end{center}
|
\end{center}
|
||||||
\begin{enumerate}}{
|
\begin{enumerate}}{
|
||||||
|
|||||||
Reference in New Issue
Block a user