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