remove space

This commit is contained in:
EthanDeng
2019-06-05 22:19:53 +08:00
parent 5357c7e0f0
commit 6e9eebf70f

View File

@@ -266,12 +266,14 @@
\renewcommand{\indexname}{\hspace{2em}}
\newcommand\figref[1]{\textbf{}~\ref{#1}}
\newcommand\tabref[1]{\textbf{}~\ref{#1}}
\renewcommand{\chaptername}{ \thechapter\;}
\renewcommand{\chaptername}{ \thechapter\,}
\ifdefstring{\ELEGANT@cite}{authoryear}{
\RequirePackage[authoryear]{gbt7714}}{\relax}
\RequirePackage[authoryear]{gbt7714}
}{\relax}
\ifdefstring{\ELEGANT@cite}{numbers}{
\RequirePackage[numbers]{gbt7714}}{\relax}
% \bibliographystyle{aer}
\RequirePackage[numbers]{gbt7714}
}{\relax}
\bibliographystyle{abbrv}
}{\relax}
\ifdefstring{\ELEGANT@lang}{en}{
\newcommand\figref[1]{\textbf{Figure}~\ref{#1}}
@@ -521,9 +523,9 @@
\setcounter{exam}{0}
\renewcommand{\theexam}{\thechapter.\arabic{exam}}
\newenvironment{example}[1][]{
\refstepcounter{exam}\par\noindent\textbf{\color{main}{
\refstepcounter{exam}\par\noindent\textbf{\color{main}{%
\ifdefstring{\ELEGANT@lang}{en}{Example}{}
}\theexam #1 }\rmfamily %
}\theexam #1 \,}\rmfamily %
}{
\par\medskip\ignorespacesafterend %
}
@@ -533,9 +535,9 @@
\setcounter{exer}{0}
\renewcommand{\theexer}{\thechapter.\arabic{exer}}
\newenvironment{exercise}[1][]{
\refstepcounter{exer}\par\noindent\makebox[-3pt][r]{\scriptsize\color{red!90}\HandPencilLeft\quad}\textbf{\color{main}{
\refstepcounter{exer}\par\noindent\makebox[-3pt][r]{\scriptsize\color{red!90}\HandPencilLeft\quad}\textbf{\color{main}{%
\ifdefstring{\ELEGANT@lang}{en}{Exercise}{}
}\theexer #1 }\rmfamily %
}\theexer #1 \,}\rmfamily %
}{
\par\medskip\ignorespacesafterend %
}
@@ -547,39 +549,39 @@
\newenvironment{problem}[1][]{
\refstepcounter{prob}\par\noindent\textbf{\color{main}{%
\ifdefstring{\ELEGANT@lang}{en}{Problem}{}
}\theprob #1 }\rmfamily %
}\theprob #1 \,}\rmfamily %
}{
\par\medskip\ignorespacesafterend %
}
\newenvironment{note}{\par\noindent{\makebox[0pt][r]{\scriptsize\color{red!90}\textdbend\quad}\textbf{\color{second}
\ifdefstring{\ELEGANT@lang}{en}{Note}{}
\newenvironment{note}{\par\noindent{\makebox[0pt][r]{\scriptsize\color{red!90}\textdbend\quad}\textbf{\color{second}%
\ifdefstring{\ELEGANT@lang}{en}{Note}{}\,
}}\ifdefstring{\ELEGANT@lang}{en}{\itshape}{\kaishu}}{\par}
\newenvironment{proof}{\par\noindent\textbf{\color{second}
\ifdefstring{\ELEGANT@lang}{en}{Proof}{}
\newenvironment{proof}{\par\noindent\textbf{\color{second}%
\ifdefstring{\ELEGANT@lang}{en}{Proof}{}\;
}\color{black!90}\small}{
%\hfill$\Box$\quad
\par}
\newenvironment{remark}{\noindent\textbf{\color{second}
\ifdefstring{\ELEGANT@lang}{en}{Remark}{}
\newenvironment{remark}{\noindent\textbf{\color{second}%
\ifdefstring{\ELEGANT@lang}{en}{Remark}{}\,
}}{\par}
\newenvironment{assumption}{\par\noindent\textbf{\color{third}
\ifdefstring{\ELEGANT@lang}{en}{Assumption}{}
\newenvironment{assumption}{\par\noindent\textbf{\color{third}%
\ifdefstring{\ELEGANT@lang}{en}{Assumption}{}\,
}}{\par}
\newenvironment{conclusion}{\par\noindent\textbf{\color{third}
\ifdefstring{\ELEGANT@lang}{en}{Conclusion}{}
\newenvironment{conclusion}{\par\noindent\textbf{\color{third}%
\ifdefstring{\ELEGANT@lang}{en}{Conclusion}{}\,
}}{\par}
\newenvironment{solution}{\par\noindent\textbf{\color{main}
\ifdefstring{\ELEGANT@lang}{en}{Solution}{}
\newenvironment{solution}{\par\noindent\textbf{\color{main}%
\ifdefstring{\ELEGANT@lang}{en}{Solution}{}\;
}\ifdefstring{\ELEGANT@lang}{en}{\itshape}{\kaishu}}{\vskip2ex\par}
\newenvironment{property}{\par\noindent\textbf{\color{third}
\ifdefstring{\ELEGANT@lang}{en}{Property}{}
\newenvironment{property}{\par\noindent\textbf{\color{third}%
\ifdefstring{\ELEGANT@lang}{en}{Property}{}\;
}}{\par}
\newenvironment{custom}[1]{\par\noindent\textbf{\color{third}
\ifdefstring{\ELEGANT@lang}{en}{#1}{#1}
\ifdefstring{\ELEGANT@lang}{en}{#1}{#1}\,
}}{\par}
\RequirePackage{multicol}
@@ -612,7 +614,7 @@
\end{tcolorbox}}
\RequirePackage{adforn}
\newenvironment{problemset}[1][\ifdefstring{\ELEGANT@lang}{en}{\textbf{\chaptername\; Exercise}}{\textbf{\chaptername\; }}]{
\newenvironment{problemset}[1][\ifdefstring{\ELEGANT@lang}{en}{\textbf{\chaptername\, Exercise}}{\textbf{\chaptername\, }}]{
\begin{center}
\textcolor{structurecolor}{\Large\bfseries\adftripleflourishleft~#1~\adftripleflourishright}
\end{center}
@@ -648,8 +650,8 @@
\renewcommand{\headrulewidth}{1pt}
% \renewcommand{\headrule}{}
\fancypagestyle{plain}{\renewcommand{\headrulewidth}{0pt}\fancyhf{}\renewcommand{\headrule}{}}
\renewcommand{\sectionmark}[1]{\markright{\thesection\; #1}{} }
\renewcommand{\chaptermark}[1]{\markboth{\chaptername \; #1\;}{}}
\renewcommand{\sectionmark}[1]{\markright{\thesection\, #1}{} }
\renewcommand{\chaptermark}[1]{\markboth{\chaptername \, #1\,}{}}
%%
\newcommand*{\extrainfo}[1]{\def\@extrainfo{#1}}