<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">\NeedsTeXFormat{LaTeX2e}
\ProvidesClass{zharticle}[2008/11/28 0.2 The LaTeX template for general chinese articles]
\typeout{Document Class `zharticle' v0.2 by Nobel Huang (2008/11/28)}

% å®šä¹‰é€‰é¡¹
\newif\ifwithdate\withdatefalse

\DeclareOption{withdate}{\withdatetrue \typeout{[zharticle]: With date.}}% æ˜¾ç¤ºæ—¥æœŸ
\DeclareOption*{\PassOptionsToClass{\CurrentOption}{scrartcl}}
\ProcessOptions

% åŠ&nbsp;è½½ä¾èµ–åŒ…
\LoadClass[a4paper, DIV=16, fontsize=9pt, twocolumn]{scrartcl}% åŒåˆ—æŽ’ç‰ˆ
\let\todayeng\today

\RequirePackage{doc}
\RequirePackage{ifpdf}
\RequirePackage{CJKutf8}
\RequirePackage{CJKnumb}
\ifpdf
\RequirePackage{hyperref}
\else
\RequirePackage[dvipdfmx]{hyperref}
\fi
\hypersetup{%
	unicode=true,%
	colorlinks=true,%
	linkcolor=blue,%
	urlcolor=black,%
	citecolor=black,%
	bookmarksopen=true,%
	bookmarksnumbered,%
	pdfpagemode=UseOutlines,%
	pdfstartview=Fit,%
	pdfpagelayout=OneColumn}
\RequirePackage{caption} % å®šä¹‰å›¾çš„æ&nbsp;‡é¢˜æ&nbsp;¼å¼ï¼šå±…ä¸­. ä½¿ç”¨caption3.0
\captionsetup{%
	format=plain,%
	labelformat=simple,%
	justification=centering,%
	singlelinecheck=off}
\RequirePackage[stable, flushmargin, perpage]{footmisc}
\RequirePackage{indentfirst}
\RequirePackage[numbers,sort&amp;compress]{natbib} % ä¿®æ”¹å¼•ç”¨å‚è€ƒæ–‡çŒ®æ&nbsp;¼å¼
\RequirePackage[rm, bf]{titlesec}
\RequirePackage{paralist}
\RequirePackage{balance}

% æ­£æ–‡é¢„å¤„ç†
\linespread{1.36}% è¡Œè·15pt
\setlength{\parskip}{0pt}% æ®µè½é—´è· Important
\renewcommand{\rmdefault}{ptm}% è‹±æ–‡ä¸ºtime new roman
\setlength{\bibsep}{0ex}% å‚è€ƒæ–‡çŒ®é—´è·
\setlength{\textfloatsep}{1ex}% æµ®åŠ¨ä½“é—´è·
\setlength{\intextsep}{1ex}
\setlength{\floatsep}{1ex}
\titlespacing*{\section}{0pt}{0pt}{0pt}% èŠ‚æ&nbsp;‡é¢˜é—´è·
\titlespacing*{\subsection}{0pt}{0pt}{0pt}
\titlespacing*{\subsubsection}{0pt}{0pt}{0pt}
\setdefaultenum{1)}{a)}{i.}{A.}% è®¾ç½®åˆ—è¡¨æ¨¡å¼
\setdefaultleftmargin{4ex}{}{}{}{}{}
\setlength{\textheight}{244mm}
\setlength{\textwidth}{170mm}
\setlength{\columnsep}{7mm}

\AtBeginDocument{%
	\InputIfFileExists{zharticle.cfg}% åŠ&nbsp;è½½é…ç½®æ–‡ä»¶
	{\typeout{[zharticle]: Load zharticle.cfg successfully!}}%
	{\typeout{[zharticle]: Load zharticle.cfg failed!}}%
	\begin{CJK*}{UTF8}{song}\CJKtilde\CJKindent\CJKcaption{zh-Hans}%
    \balance%
}
\AtEndDocument{%
	\end{CJK*}
}

% å‘½ä»¤
\newcommand{\@authoreng}{}
\renewcommand{\author}[2]{
	\def\@author{#1}
	\renewcommand{\@authoreng}{#2}
}

\newcommand{\@address}{}
\newcommand{\@addresseng}{}
\newcommand{\address}[2]{
	\renewcommand{\@address}{#1}
	\renewcommand{\@addresseng}{#2}
}

\newcommand{\@titleeng}{}
\renewcommand{\title}[2]{
	\def\@title{#1}
	\renewcommand{\@titleeng}{#2}
}

\newcommand{\@categorynumber}{}% ä¸­å›¾åˆ†ç±»å·
\newcommand{\categorynumber}[1]{\renewcommand{\@categorynumber}{#1}}

\newcommand{\@refmark}{}% æ–‡çŒ®æ&nbsp;‡è¯†ç&nbsp;
\newcommand{\refmark}[1]{\renewcommand{\@refmark}{#1}}

\newcommand{\@articleid}{}% æ–‡ç«&nbsp;ç¼–å·
\newcommand{\articleid}[1]{\renewcommand{\@articleid}{#1}}

\newcommand{\@abstract}{}
\newcommand{\@abstracteng}{}
\newcommand{\@keywords}{}
\newcommand{\@keywordseng}{}
\newcommand{\abstractkeyword}[4]{
	\renewcommand{\@abstract}{#1}
	\renewcommand{\@abstracteng}{#2}
	\renewcommand{\@keywords}{#3}
	\renewcommand{\@keywordseng}{#4}
}

\renewcommand{\@maketitle}{%
	\clearpage
	\let\footnote\thanks
	\ifx\@extratitle\@empty \else
		\noindent\@extratitle \next@tpage \if@twoside \null\next@tpage \fi
	\fi
	\setparsizes{\z@}{\z@}{\z@\@plus 1fil}\par@updaterelative
	\ifx\@titlehead\@empty \else
		\begin{minipage}[t]{\textwidth}
			\@titlehead
		\end{minipage}\par
	\fi
	\null
	\vskip 28pt%
	\begin{center}%
	\ifx\@subject\@empty \else
		{\subject@font \@subject \par}
		\vskip 1em
	\fi
	{\song\xiaoerhao \textbf{\@title} \par}%
	\vskip 2pt
	{\ifx\@subtitle\@empty\else\usekomafont{subtitle}\@subtitle\par\fi}%
	\vskip 6pt
	{\kai\wuhao	\@author \par}
	\vspace{0mm}
	{\song\liuhao (\@address) \par}
	\ifwithdate
	\vspace{0mm}
	{\song\liuhao \@date \par}%       % Set date in \large size.
	\else
	\fi
	\end{center}%
	\par
	\vspace{-1mm}
  
	\begin{abstract}{\@keywords}
	\@abstrac
	\end{abstract}

	\maketitleeng
	\begin{engabstract}{\@keywordseng}
	\@abstracten
	\end{engabstract}

	\vspace{1em}
  
	%è®¾ç½®æ–‡ä»¶å±žæ€§
	\GetFileInfo{zharticle.cls}
	\hypersetup{
		pdfauthor={\@author},
		pdftitle={\@title}, %æ–‡ä»¶æ&nbsp;‡é¢˜
		pdfsubject={\@title}, %æ–‡ä»¶ä¸»é¢˜
		pdfcreator={The zharticle class (v \fileversion)} % åº”ç”¨ç¨‹åº
	}
}

\newcommand{\maketitleeng}{% è¯·åœ¨\maketitleåŽè°ƒç”¨
	\begin{center}%
		\ifx\@subject\@empty \else
			{\subject@font \@subject \par}
			\vskip 1em
		\fi
		{\sihao \textbf{\@titleeng} \par}%
		\vskip 2pt
		{\ifx\@subtitle\@empty\else\usekomafont{subtitle}\@subtitle\par\fi}%
		\vskip 6pt
		\vspace{0mm}
		{\wuhao	\textit{\@authoreng} \par}
		\vspace{0mm}
		{\liuhao (\@addresseng)\par}
	\end{center}%
	\vspace{-1mm}%
}

\renewenvironment{abstract}[1]{% ä¸­æ–‡æ‘˜è¦, å…³é”®å­—ä½œä¸ºå‚æ•°
	\kai\xiaowuhao\noindent
	\textbf{\song æ‘˜è¦:~}\noindent
}{%
	\par\noindent
	\textbf{\song å…³é”®è¯:} \@keywords
	\par\noindent
	\textbf{\song ä¸­å›¾åˆ†ç±»å·:} \makebox[3cm][l]{\@categorynumber}%
	\textbf{\song æ–‡çŒ®æ&nbsp;‡è¯†ç&nbsp;:} \makebox[1.5cm][l]{\@refmark}%
	\textbf{\song æ–‡ç«&nbsp;ç¼–å·:}   \makebox[5cm][l]{\@articleid}
	\par
	\hypersetup{pdfkeywords={\@keywords}}
}

\newenvironment{engabstract}[1]{% è‹±æ–‡æ‘˜è¦
	\xiaowuhao\noindent
	\textbf{Abstract:}\noindent
}{%
	\par\noindent
	\textbf{Key words:} \@keywordseng
	\par
}

% å…¶ä»–
\let\orig@emph=\emph% ä¸­æ–‡å¼ºè°ƒ
\renewcommand{\emph}[1]{{\orig@emph{\kai#1}}}

% å‚è€ƒæ–‡çŒ®
\let\originalcite=\cite
\renewcommand{\cite}[1]{\textsuperscript{\originalcite{#1}}}
\renewcommand{\citet}[1]{\originalcite{#1}}

\bibliographystyle{zharticle}</pre></body></html>