remove space

This commit is contained in:
EthanDeng
2019-06-05 22:19:53 +08:00
parent 97a9668bd0
commit 195e2634e3

View File

@@ -268,12 +268,14 @@
\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\;} \renewcommand{\chaptername}{ \thechapter\,}
\ifdefstring{\ELEGANT@cite}{authoryear}{ \ifdefstring{\ELEGANT@cite}{authoryear}{
\RequirePackage[authoryear]{gbt7714}}{\relax} \RequirePackage[authoryear]{gbt7714}
}{\relax}
\ifdefstring{\ELEGANT@cite}{numbers}{ \ifdefstring{\ELEGANT@cite}{numbers}{
\RequirePackage[numbers]{gbt7714}}{\relax} \RequirePackage[numbers]{gbt7714}
% \bibliographystyle{aer} }{\relax}
\bibliographystyle{abbrv}
}{\relax} }{\relax}
\ifdefstring{\ELEGANT@lang}{en}{ \ifdefstring{\ELEGANT@lang}{en}{
\newcommand\figref[1]{\textbf{Figure}~\ref{#1}} \newcommand\figref[1]{\textbf{Figure}~\ref{#1}}
@@ -526,9 +528,9 @@
\setcounter{exam}{0} \setcounter{exam}{0}
\renewcommand{\theexam}{\thechapter.\arabic{exam}} \renewcommand{\theexam}{\thechapter.\arabic{exam}}
\newenvironment{example}[1][]{ \newenvironment{example}[1][]{
\refstepcounter{exam}\par\noindent\textbf{\color{main}{ \refstepcounter{exam}\par\noindent\textbf{\color{main}{%
\ifdefstring{\ELEGANT@lang}{en}{Example}{} \ifdefstring{\ELEGANT@lang}{en}{Example}{}
}\theexam #1 }\rmfamily % }\theexam #1 \,}\rmfamily %
}{ }{
\par\medskip\ignorespacesafterend % \par\medskip\ignorespacesafterend %
} }
@@ -538,9 +540,9 @@
\setcounter{exer}{0} \setcounter{exer}{0}
\renewcommand{\theexer}{\thechapter.\arabic{exer}} \renewcommand{\theexer}{\thechapter.\arabic{exer}}
\newenvironment{exercise}[1][]{ \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}{} \ifdefstring{\ELEGANT@lang}{en}{Exercise}{}
}\theexer #1 }\rmfamily % }\theexer #1 \,}\rmfamily %
}{ }{
\par\medskip\ignorespacesafterend % \par\medskip\ignorespacesafterend %
} }
@@ -552,39 +554,39 @@
\newenvironment{problem}[1][]{ \newenvironment{problem}[1][]{
\refstepcounter{prob}\par\noindent\textbf{\color{main}{% \refstepcounter{prob}\par\noindent\textbf{\color{main}{%
\ifdefstring{\ELEGANT@lang}{en}{Problem}{} \ifdefstring{\ELEGANT@lang}{en}{Problem}{}
}\theprob #1 }\rmfamily % }\theprob #1 \,}\rmfamily %
}{ }{
\par\medskip\ignorespacesafterend % \par\medskip\ignorespacesafterend %
} }
\newenvironment{note}{\par\noindent{\makebox[0pt][r]{\scriptsize\color{red!90}\textdbend\quad}\textbf{\color{second} \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}{Note}{}\,
}}\ifdefstring{\ELEGANT@lang}{en}{\itshape}{\kaishu}}{\par} }}\ifdefstring{\ELEGANT@lang}{en}{\itshape}{\kaishu}}{\par}
\newenvironment{proof}{\par\noindent\textbf{\color{second} \newenvironment{proof}{\par\noindent\textbf{\color{second}%
\ifdefstring{\ELEGANT@lang}{en}{Proof}{} \ifdefstring{\ELEGANT@lang}{en}{Proof}{}\;
}\color{black!90}\small}{ }\color{black!90}\small}{
%\hfill$\Box$\quad %\hfill$\Box$\quad
\par} \par}
\newenvironment{remark}{\noindent\textbf{\color{second} \newenvironment{remark}{\noindent\textbf{\color{second}%
\ifdefstring{\ELEGANT@lang}{en}{Remark}{} \ifdefstring{\ELEGANT@lang}{en}{Remark}{}\,
}}{\par} }}{\par}
\newenvironment{assumption}{\par\noindent\textbf{\color{third} \newenvironment{assumption}{\par\noindent\textbf{\color{third}%
\ifdefstring{\ELEGANT@lang}{en}{Assumption}{} \ifdefstring{\ELEGANT@lang}{en}{Assumption}{}\,
}}{\par} }}{\par}
\newenvironment{conclusion}{\par\noindent\textbf{\color{third} \newenvironment{conclusion}{\par\noindent\textbf{\color{third}%
\ifdefstring{\ELEGANT@lang}{en}{Conclusion}{} \ifdefstring{\ELEGANT@lang}{en}{Conclusion}{}\,
}}{\par} }}{\par}
\newenvironment{solution}{\par\noindent\textbf{\color{main} \newenvironment{solution}{\par\noindent\textbf{\color{main}%
\ifdefstring{\ELEGANT@lang}{en}{Solution}{} \ifdefstring{\ELEGANT@lang}{en}{Solution}{}\;
}\ifdefstring{\ELEGANT@lang}{en}{\itshape}{\kaishu}}{\vskip2ex\par} }\ifdefstring{\ELEGANT@lang}{en}{\itshape}{\kaishu}}{\vskip2ex\par}
\newenvironment{property}{\par\noindent\textbf{\color{third} \newenvironment{property}{\par\noindent\textbf{\color{third}%
\ifdefstring{\ELEGANT@lang}{en}{Property}{} \ifdefstring{\ELEGANT@lang}{en}{Property}{}\;
}}{\par} }}{\par}
\newenvironment{custom}[1]{\par\noindent\textbf{\color{third} \newenvironment{custom}[1]{\par\noindent\textbf{\color{third}
\ifdefstring{\ELEGANT@lang}{en}{#1}{#1} \ifdefstring{\ELEGANT@lang}{en}{#1}{#1}\,
}}{\par} }}{\par}
\RequirePackage{multicol} \RequirePackage{multicol}
@@ -617,7 +619,7 @@
\end{tcolorbox}} \end{tcolorbox}}
\RequirePackage{adforn} \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} \begin{center}
\textcolor{structurecolor}{\Large\bfseries\adftripleflourishleft~#1~\adftripleflourishright} \textcolor{structurecolor}{\Large\bfseries\adftripleflourishleft~#1~\adftripleflourishright}
\end{center} \end{center}
@@ -653,8 +655,8 @@
\renewcommand{\headrulewidth}{1pt} \renewcommand{\headrulewidth}{1pt}
% \renewcommand{\headrule}{} % \renewcommand{\headrule}{}
\fancypagestyle{plain}{\renewcommand{\headrulewidth}{0pt}\fancyhf{}\renewcommand{\headrule}{}} \fancypagestyle{plain}{\renewcommand{\headrulewidth}{0pt}\fancyhf{}\renewcommand{\headrule}{}}
\renewcommand{\sectionmark}[1]{\markright{\thesection\; #1}{} } \renewcommand{\sectionmark}[1]{\markright{\thesection\, #1}{} }
\renewcommand{\chaptermark}[1]{\markboth{\chaptername \; #1\;}{}} \renewcommand{\chaptermark}[1]{\markboth{\chaptername \, #1\,}{}}
%% %%
\newcommand*{\extrainfo}[1]{\def\@extrainfo{#1}} \newcommand*{\extrainfo}[1]{\def\@extrainfo{#1}}