mirror of
https://github.com/ElegantLaTeX/ElegantBook.git
synced 2026-01-26 12:24:36 +08:00
fix problem/example/exercise space
This commit is contained in:
@@ -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}{
|
||||||
|
|||||||
Reference in New Issue
Block a user