Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- \documentclass{ctexart}
- \makeatletter
- \def\@stuid{}
- \DeclareRobustCommand*\studentid[1]{\gdef\@stuid{#1}}
- \def\@major{}
- \DeclareRobustCommand*\major[1]{\gdef\@major{#1}}
- \def\@teacher{}
- \DeclareRobustCommand*\teacher[1]{\gdef\@teacher{#1}}
- \def\@maketitle{%
- \newpage
- \null
- \vskip 2em%
- \begin{center}%
- \let \footnote \thanks
- {\LARGE \@title \par}%
- \vskip 3em%
- {
- \@author \hfill \@stuid \hfill \@major \hfill \@teacher
- \par
- }%
- \end{center}%
- }
- \makeatother
- \title{这里是标题}
- \author{郑王翔鸣}
- \studentid{202228000206085}
- \major{计算数学}
- \teacher{导师}
- \begin{document}
- \maketitle
- \noindent\dotfill
- \begin{abstract}
- 这里是一些摘要
- \end{abstract}
- \dotfill
- \end{document}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement