Skip to content

Commit

Permalink
fix problem/example/exercise space
Browse files Browse the repository at this point in the history
  • Loading branch information
EthanDeng committed Mar 20, 2020
1 parent 09b71b9 commit 6ab10be
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions elegantbook.cls
Original file line number Diff line number Diff line change
Expand Up @@ -650,7 +650,7 @@
\renewcommand{\theexam}{\thechapter.\arabic{exam}}
\newenvironment{example}[1][]{
\refstepcounter{exam}
\par\noindent\textbf{\color{main}{\examplename}\theexam #1 }\rmfamily}{
\par\noindent\textbf{\color{main}{\examplename} \theexam #1 }\rmfamily}{
\par\ignorespacesafterend}

%% Exercise with counter
Expand All @@ -661,7 +661,7 @@
\refstepcounter{exer}
\par\noindent\makebox[-3pt][r]{
\scriptsize\color{red!90}\HandPencilLeft\quad}
\textbf{\color{main}{\exercisename}\theexer #1 }\rmfamily}{
\textbf{\color{main}{\exercisename} \theexer #1 }\rmfamily}{
\par\ignorespacesafterend}

%% Problem with counter
Expand All @@ -670,7 +670,7 @@
\renewcommand{\theprob}{\thechapter.\arabic{prob}}
\newenvironment{problem}[1][]{
\refstepcounter{prob}
\par\noindent\textbf{\color{main}{\problemname}\theprob #1 }\rmfamily}{
\par\noindent\textbf{\color{main}{\problemname} \theprob #1 }\rmfamily}{
\par\ignorespacesafterend}

\newenvironment{note}{
Expand Down

0 comments on commit 6ab10be

Please sign in to comment.