fix problem/example/exercise space

This commit is contained in:
EthanDeng
2020-03-21 00:23:42 +08:00
parent 09b71b9ab7
commit 6ab10beda8

View File

@@ -650,7 +650,7 @@
\renewcommand{\theexam}{\thechapter.\arabic{exam}} \renewcommand{\theexam}{\thechapter.\arabic{exam}}
\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\ignorespacesafterend} \par\ignorespacesafterend}
%% Exercise with counter %% Exercise with counter
@@ -661,7 +661,7 @@
\refstepcounter{exer} \refstepcounter{exer}
\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\ignorespacesafterend} \par\ignorespacesafterend}
%% Problem with counter %% Problem with counter
@@ -670,7 +670,7 @@
\renewcommand{\theprob}{\thechapter.\arabic{prob}} \renewcommand{\theprob}{\thechapter.\arabic{prob}}
\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\ignorespacesafterend} \par\ignorespacesafterend}
\newenvironment{note}{ \newenvironment{note}{