remove medskip

This commit is contained in:
EthanDeng
2020-02-02 13:24:38 +08:00
parent f8729c63a9
commit 083ef244ac
2 changed files with 35 additions and 20 deletions

View File

@@ -1,4 +1,4 @@
\documentclass[cn,11pt,simple]{elegantbook}
\documentclass[cn,11pt,simple,chinese]{elegantbook}
\title{ElegantBook优美的 \LaTeX{} 书籍模板}
\subtitle{Elegant\LaTeX{} 经典之作}
@@ -25,12 +25,12 @@
\mainmatter
\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}
\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 文档 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}{最新版}
@@ -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},然后选择进行安装与更新。
@@ -101,18 +101,18 @@ Elegant\LaTeX{} 系列模板从创立至今已经有 8 年了,我们的模板
目前 ElegantLaTeX 共有 4 名协作人员,分别是
\begin{itemize}
\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}.
\end{itemize}
在此感谢他们无私的奉献!
\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{} 相关的网站。
如果你喜欢我们的模板,你可以在 Github 上收藏我们的模板。
如果你喜欢我们的模板,你可以在 GitHub 上收藏我们的模板。
\begin{figure}[htbp]
\centering
\includegraphics[width=\textwidth]{star.png}
@@ -122,7 +122,7 @@ Elegant\LaTeX{} 系列模板从创立至今已经有 8 年了,我们的模板
\begin{figure}[htbp]
\centering
\includegraphics[width=0.618\textwidth]{star-history.png}
\caption{Elegant\LaTeX{} 系列模板上线 Github 之后上每周 Star 数变化}
\caption{Elegant\LaTeX{} 系列模板上线 GitHub 之后上每周 Star 数变化}
\end{figure}
\section{捐赠}
@@ -276,6 +276,15 @@ The content of theorem.
\end{theorem}
\end{lstlisting}
\begin{remark}
中文Chinese是中国语言文字或中国语言文学的省称。特指汉族的语言文字汉语和汉字或汉语言文学。在汉字文化圈和海外华人社区中中文也被称为汉文、华文。中文汉语有标准语和方言之分其标准语即汉语普通话。
\end{remark}
\begin{problem}
中文Chinese是中国语言文字或中国语言文学的省称。特指汉族的语言文字汉语和汉字或汉语言文学。在汉字文化圈和海外华人社区中中文也被称为汉文、华文。中文汉语有标准语和方言之分其标准语即汉语普通话。
\end{problem}
第一个必选项 \lstinline{theorem name} 是定理的名字,第二个必选项 \lstinline{label} 是交叉引用时所用到的标签,交叉引用的方法为 \verb|\ref{thm:label}|。请注意,交叉引用时必须加上前缀 \lstinline{thm:}
@@ -695,7 +704,7 @@ Lebesgue 积分有几种不同的定义方式。我们将采用逐步定义非
\end{custom}
\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}

View File

@@ -25,6 +25,7 @@
\DeclareStringOption[cm]{math}
\DeclareStringOption[marginfalse]{marginpar}
\DeclareStringOption[onecol]{toc}
\DeclareStringOption{scheme}
% ----- backward compatibility
\DeclareVoidOption{green}{\ekv{color=green}}
\DeclareVoidOption{cyan}{\ekv{color=cyan}}
@@ -33,6 +34,8 @@
\DeclareVoidOption{black}{\ekv{color=black}}
\DeclareVoidOption{nocolor}{\ekv{color=none}}
\DeclareVoidOption{chinese}{\ekv{scheme=chinese}}
\DeclareVoidOption{en}{\ekv{lang=en}}
\DeclareVoidOption{cn}{\ekv{lang=cn}}
@@ -55,6 +58,7 @@
\DeclareStringOption[apalike]{bibstyle}
\DeclareVoidOption{newtx}{\ekv{math=newtx}}
\DeclareVoidOption{mtpro2}{\ekv{math=mtpro2}}
\DeclareVoidOption{cm}{\ekv{math=cm}}
@@ -308,7 +312,9 @@
\renewcommand{\indexname}{\hspace{2em}}
\newcommand\figref[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{\institutename}{\textit{}}
\newcommand{\datename}{\textit{}}
@@ -568,7 +574,7 @@
\newenvironment{example}[1][]{
\refstepcounter{exam}
\par\noindent\textbf{\color{main}{\examplename}\theexam~#1 \,}\rmfamily}{
\par\medskip\ignorespacesafterend}
\par\ignorespacesafterend}
%% Exercise with counter
\newcounter{exer}[chapter]
@@ -579,7 +585,7 @@
\par\noindent\makebox[-3pt][r]{
\scriptsize\color{red!90}\HandPencilLeft\quad}
\textbf{\color{main}{\exercisename}\theexer #1 \,}\rmfamily}{
\par\medskip\ignorespacesafterend}
\par\ignorespacesafterend}
%% Exercise with counter
\newcounter{prob}[chapter]
@@ -588,7 +594,7 @@
\newenvironment{problem}[1][]{
\refstepcounter{prob}
\par\noindent\textbf{\color{main}{\problemname} \theprob #1 \,}\rmfamily}{
\par\medskip\ignorespacesafterend}
\par\ignorespacesafterend}
@@ -604,11 +610,11 @@
% \hfill$\Box$\quad
\par}
\newenvironment{solution}{\par\noindent\textbf{\color{main}\solutionname} \medskip\itshape}{\vskip2ex\par}
\newenvironment{remark}{\noindent\textbf{\color{second}\remarkname} \medskip}{\par}
\newenvironment{assumption}{\par\noindent\textbf{\color{third}\assumptionname} \medskip}{\par}
\newenvironment{conclusion}{\par\noindent\textbf{\color{third}\conclusionname} \medskip}{\par}
\newenvironment{property}{\par\noindent\textbf{\color{third}\propertyname}\medskip}{\par}
\newenvironment{solution}{\par\noindent\textbf{\color{main}\solutionname} \itshape}{\par}
\newenvironment{remark}{\noindent\textbf{\color{second}\remarkname}}{\par}
\newenvironment{assumption}{\par\noindent\textbf{\color{third}\assumptionname}}{\par}
\newenvironment{conclusion}{\par\noindent\textbf{\color{third}\conclusionname}}{\par}
\newenvironment{property}{\par\noindent\textbf{\color{third}\propertyname}}{\par}
\newenvironment{custom}[1]{\par\noindent\textbf{\color{third} #1 }}{\par}
\RequirePackage{multicol}
@@ -640,9 +646,9 @@
\end{tcolorbox}}
\RequirePackage{adforn}
\newenvironment{problemset}[1][\chaptername~\medskip~\problemsetname]{
\newenvironment{problemset}[1][\chaptername~\problemsetname]{
\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}
\end{center}
\begin{enumerate}}{