-
Notifications
You must be signed in to change notification settings - Fork 0
/
icisdoc.cls
105 lines (86 loc) · 2.93 KB
/
icisdoc.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
\NeedsTeXFormat{LaTeX2e}
\ProvidesClass{icisdoc}[2014/03/01 ICIS Conference submission style]
\DeclareOption*{\PassOptionsToClass{\CurrentOption}{article}}
\ProcessOptions\relax
\LoadClass[11pt,letterpaper]{article}
% Must have the following two lines at the top of your document
% %!TEX TS-program = xelatex
% %!TEX encoding = UTF-8 Unicode
% Or you must manually choose to compile with XeLaTeX
% These 3 are required to use the Georgia font family
\RequirePackage{xltxtra}
\RequirePackage{fontspec}
\RequirePackage{xunicode}
\RequirePackage{graphicx}
\RequirePackage[labelsep=period,font=bf]{caption} % Replace caption colon with
% period
\RequirePackage[margin=1in]{geometry}
% \RequirePackage[total={7in,9.25in},top=0.75in,paper=letterpaper]{geometry}
\RequirePackage{fancyhdr}
% Gotta have that double space
\RequirePackage[doublespacing]{setspace}
% Get rid of spacing inside lists
\RequirePackage{enumitem}
\setlist{noitemsep}
\defaultfontfeatures{Scale=MatchLowercase}
\setmainfont[Ligatures={Common,TeX}]{Times New Roman}
% \setromanfont[Numbers=Uppercase]{Georgia}
% Set up a few different font sizes for sections and such
\renewcommand{\normalsize}{\fontsize{11pt}{12pt}\selectfont}
\renewcommand{\Huge}{\fontsize{20pt}{24pt}\selectfont}
\renewcommand{\LARGE}{\fontsize{13pt}{15pt}\selectfont}
\renewcommand{\Large}{\fontsize{12pt}{14pt}\selectfont}
\renewcommand{\large}{\fontsize{11pt}{13pt}\selectfont}
% \setlength{\textwidth}{7in}
% \setlength{\textheight}{9.25in}
\setlength{\parindent}{15pt}
\setlength{\parskip}{0pt}
% These are variables set in the frontmatter of the document
% Not exactly sure if I need this step, but it was in the example I found.
\let\@shorttitle\@empty
\newcommand{\shorttitle}[1]{\gdef\@shorttitle{#1}}
\renewcommand{\maketitle}{%
\begin{center} %
{\Huge\bfseries\@title\par}
{\Large\itshape\@author\par}
\end{center}
\thispagestyle{plain}\@thanks
}
% TODO: Figure out citation style. Of course, MISQ doesn't use APA.
\newcommand{\chapter}{%
\newpage
\@startsection
{section}{1}{0pt}{4pt}%
{4pt}{\bfseries\LARGE\centering}%
}
\renewcommand{\section}{%
\@startsection
{section}{1}{0pt}{4pt}%
{4pt}{\bfseries\LARGE}%
}
\renewcommand{\subsection}{%
\@startsection
{subsection}{2}{0pt}{4pt}%
{4pt}{\bfseries\large\itshape}%
}
\renewcommand{\subsubsection}{%
\@startsection
{subsubsection}{3}{0pt}{4pt}%
{4pt}{\bfseries}%
}
\setcounter{secnumdepth}{0}
% Header and footer info
\pagestyle{fancy}
\fancyhf{}
\fancyhead[L]{\textit{\@shorttitle}}
\fancyfoot[R]{\textit{ICIS Doctoral Consortium, %
Auckland 2014}\hspace{5mm}\textbf{\thepage}}
% No header on the first page. Only a footer
\fancypagestyle{plain}{
\fancyhf{}
\fancyfoot[R]{\textit{ICIS Doctoral Consortium, %
Auckland 2014}\hspace{5mm}\textbf{\thepage}}
}
% Get rid of the horizontal rules
\renewcommand{\headrulewidth}{0pt}
\renewcommand{\footrulewidth}{0pt}