-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathabstract_hutech.cls
147 lines (126 loc) · 4.54 KB
/
abstract_hutech.cls
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
% % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % %
% % % LaTeX document class for the letter-formatted Human Tech paper % % %
% % % Last edition 2015.10.30 by Chinook Mok % % % % % % % % % % % % % % %
% % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % %
\ProvidesClass{abstract_hutech}
\LoadClass[pdftex, a4size, twoside, 10pt, twocolumn]{article}
\usepackage[T1]{fontenc} % To use Times New Roman
\usepackage[utf8]{inputenc}% To use Times New Roman
\usepackage{mathptmx} % To use Times New Roman
\usepackage{fancyhdr} % To customize header and footer
\usepackage{ifthen} % To distinguish the first page in header
\usepackage{abstract} % To customize abstract
\usepackage{titlesec} % To resize the titles of section/subsection/etc...
\usepackage{indentfirst}
\usepackage{kotex} % korean paper
\usepackage{graphicx}
\usepackage[font=small,labelfont=bf,labelsep=period,skip=0pt]{caption} % Caption setup
\usepackage{ctable} % To customize table
\usepackage{cite} % To display citations as [1-3] instead of [1,2,3]
\usepackage{enumitem} % To remove the hanging indentation.
\usepackage{color} % To color header and footer as gray
%%% following packages are optional %%%
\usepackage{amssymb}
\usepackage{amsmath}
\usepackage{amsthm}
\usepackage[makeroom]{cancel} %To use cancelto of terms in equation
%%%%%%%%%% page setting %%%%%%%%%%%
\setlength{\paperwidth}{210mm}
\setlength{\paperheight}{297mm}
\setlength{\hoffset}{-1in}
\setlength{\oddsidemargin}{18mm}
\setlength{\evensidemargin}{18mm}
\setlength{\textwidth}{180mm}
\setlength{\marginparsep}{0mm}
\setlength{\marginparwidth}{0mm}
\setlength{\voffset}{-1in}
\setlength{\topmargin}{10mm}
\setlength{\headheight}{12pt}
\setlength{\headsep}{12pt}
\setlength{\textheight}{244mm}
%\setlength{\footskip}{56pt}
%%%% two column setting %%%
\setlength{\columnsep}{20pt}
%%%%%%%%% Header & Footer setting %%%%
\pagestyle{fancy}
%\rhead{}
%\chead{}
%\lhead{\ifthenelse{\value{page}=1}{\fontsize{12}{0}\selectfont $\bf{23}^{\bf rd}\textbf{ HumanTech Paper Award}$}{\fontsize{9}{0}\selectfont $23^{\rm rd}\textrm{ HumanTech Paper Award}$}}
\fancyhead[RO,LE]{\color{gray} \fontsize{9}{0}\selectfont $23^{\rm rd}\textrm{ HumanTech Paper Award}$}
\fancyhead[LO,RE]{}
\fancyfoot[RO,LE]{\color{gray} \thepage}
\fancyfoot[C]{}
\renewcommand{\headrulewidth}{0pt}
\fancypagestyle{firstpage}{
\fancyhf{}
\fancyhead[L]{\color{gray} \fontsize{12}{0}\selectfont $\bf{23}^{\bf rd}\textbf{ HumanTech Paper Award}$}
\fancyfoot[R]{\color{gray} \thepage}
}
\makeatletter
\let\ps@plain\ps@fancy
\makeatother
%%%%%%%% Title Setting %%%%%%
\makeatletter
\renewcommand{\maketitle}{\vspace*{8pt}\bgroup\setlength{\parindent}{0pt}
\begin{flushleft}
\fontsize{20}{0}\selectfont{\textbf{\vspace{15pt}\@title}}
\end{flushleft}\egroup
}
\makeatother
%%%%%%% Abstract Setting %%%%%
\renewcommand{\abstractname}{}
\renewcommand{\absnamepos}{empty}
\renewenvironment{abstract}
{\small
% \bfseries \abstractname\vspace{-2em}\vspace{0pt}
\list{}{
\setlength{\leftmargin}{0mm}
\setlength{\rightmargin}{\leftmargin}
}
\item\relax
}
{\endlist}
%%%%%% Section Title Setting %%%%%%%
\titleformat*{\section}{\fontsize{11}{11}\selectfont\bfseries}
\titleformat*{\subsection}{\fontsize{10}{10}\selectfont}
\def\thesection{\arabic{section}.}
\def\thesubsection{\arabic{section}.\arabic{subsection}.}
\makeatletter
\renewcommand{\@seccntformat}[1]{\csname the#1\endcsname\ }
\makeatother
%%%%% Caption(Figure/Table) Setting %%%%%%%
\captionsetup[figure]{
name=Fig., % Figure label (FIG: --> FIGURE)
singlelinecheck=off}
\captionsetup[table]{
name=Table, % Table label (Table --> TABLE)
singlelinecheck=off % Left aligned
}
%%%%% Theorem Setting %%%%%
\theoremstyle{plain}
\newtheorem{thm}{Theorem}
\theoremstyle{definition}
\newtheorem{defn}{Definition}
%%%%% Declaration of Modified mathsymbol `mycdot' %%%%%
\newcommand*\mycdot{{\mkern -1mu\cdot\mkern -1mu}}
%%%% Reference Setting %%%%
\bibliographystyle{abstract_hutech}
\renewcommand\refname{REFERENCES}
\makeatletter
\renewcommand{\@biblabel}[1]{[#1]\hfill}
\makeatother
\makeatletter
\renewenvironment{thebibliography}[1]
{\section*{\refname}%
\@mkboth{\MakeUppercase\refname}{\MakeUppercase\refname}%
\begin{enumerate}[label={[\arabic{enumi}]},itemindent=*,leftmargin=0pt,itemsep=-3pt]
\@openbib@code
\sloppy
\clubpenalty4000
\@clubpenalty \clubpenalty
\widowpenalty4000
\sfcode`\.\@m}
{\def\@noitemerr
{\@latex@warning{Empty `thebibliography' environment}}%
\end{enumerate}}
\makeatother