remove indent in bastract kaishu in title

This commit is contained in:
EthanDeng
2019-04-25 10:44:26 +08:00
parent 3875fde2ae
commit b5f5115193
8 changed files with 26 additions and 61 deletions

View File

@@ -24,8 +24,7 @@
% \PassOptionsToClass{11pt}{article}
\DeclareOption*{\PassOptionsToClass{\CurrentOption}{article}}
\ProcessOptions\relax
\DeclareDefaultOption{\PassOptionsToClass{\CurrentOption}{article}}
\ProcessKeyvalOptions*\relax
\LoadClass{article}
@@ -68,6 +67,8 @@
% settings for the geometry
\RequirePackage{hyperref}
\hypersetup{
pdfborder={0 0 0},
colorlinks=true,
@@ -79,13 +80,16 @@
}
\RequirePackage[left=1in, right=1in, top=1in, bottom=1in,headheight=0pt,headsep=0pt]{geometry}
\setlength{\voffset}{-0.75in}
% \setlength{\voffset}{-0.75in}
\setlength{\headsep}{5pt}
% add the \email cmd
\newcommand\email[1]{\href{mailto:#1}{\nolinkurl{#1}}}
\PassOptionsToPackage{no-math}{fontspec}
\ifdefstring{\ELEGANT@lang}{cn}{
\RequirePackage[UTF8, scheme=plain]{ctex}
}
\RequirePackage[T1]{fontenc}
\RequirePackage{newtxtext}
\RequirePackage{newtxmath}
@@ -110,14 +114,15 @@
\renewcommand\refname{} %
\renewcommand\figurename{} %
\renewcommand\tablename{}%
\newcommand\versiontext{\itshape }%
\newcommand\updatetext{\itshape }%
\newcommand\versiontext{}%
\newcommand\updatetext{}%
\renewcommand\abstractname{\hspace{2em}}
\setlength{\parindent}{2em}
\renewcommand{\abstracttextfont}{\small\sffamily\kaishu}
\renewcommand{\abstracttextfont}{\small\sffamily\kaishu\noindent\ignorespaces}
\newcommand{\keywords}[1]{\vskip2ex\par\noindent\normalfont{\bfseries : } #1}
\newcommand\figref[1]{{\bfseries ~\ref{#1}}}
\newcommand\tabref[1]{{\bfseries ~\ref{#1}}}
\RequirePackage[authoryear]{gbt7714}
}{\relax}
\ifdefstring{\ELEGANT@lang}{en}{
\theoremstyle{plain}% default
@@ -136,14 +141,16 @@
\renewcommand*{\proofname}{\normalfont\bfseries Proof}%
\newcommand\versiontext{\itshape Version: }%
\newcommand\updatetext{\itshape Update: }%
\renewcommand{\abstracttextfont}{\sffamily\small\kaishu}
\renewcommand{\abstracttextfont}{\sffamily\small\noindent\ignorespaces}
\newcommand{\keywords}[1]{\vskip2ex\par\noindent\normalfont{\bfseries Keywords: } #1}
\newcommand\figref[1]{{\bfseries Figure~\ref{#1}}}
\newcommand\tabref[1]{{\bfseries Table~\ref{#1}}}
\bibliographystyle{aer}
}{\relax}
\AtBeginEnvironment{verbatim}{\microtypesetup{activate=false}}
\def\IfEmpty#1{%
\edef\1{\the#1}
\ifx\1\empty
@@ -203,12 +210,12 @@
\vskip 1.5em%
\IfEmpty\version
\else
{\small \normalfont\kaishu \versiontext \itshape\the\version}
{\small\normalfont\ifdefstring{\ELEGANT@lang}{en}{\itshape}{\kaishu}\versiontext\the\version}
\fi
\ifx\@date\empty
\else
\vskip 0.1em%
{\small\normalfont\kaishu \updatetext \itshape \@date}%
{\small\normalfont\ifdefstring{\ELEGANT@lang}{en}{\itshape}{\kaishu}\updatetext\@date}%
\fi
\end{center}%
\par