forked from pyne/ans-winter-2013
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ansconf.cls
128 lines (104 loc) · 4.39 KB
/
ansconf.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
\NeedsTeXFormat{LaTeX2e}
\ProvidesClass{ansconf}[2012/09/21]
\LoadClass[11pt,twoside]{article}
\typeout{Loading ANS conference document class: includes [11pt,twoside]{article}}
\typeout{adapted by Paul K. Romano from R.C. Martineau at INL, from A. Sood at
LANL, from J. Wagner (ORNL) who obtained the original class file by Jim Warsa,
LANL, 16 July 2002}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Packages needed
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\RequirePackage{cite} % texlive-latex-recommended
\RequirePackage{titlesec} % texlive-latex-extra
\RequirePackage{setspace} % texlive-latex-recommended
\RequirePackage{indentfirst}
\RequirePackage{fancyhdr} % texlive-latex-base
\RequirePackage{times} % texlive-fonts-recommended
\RequirePackage{lastpage} % texlive-latex-extra
\RequirePackage{caption} % texlive-latex-recommended
\RequirePackage{titling} % texlive-latex-extra
\RequirePackage{authblk} % texlive-latex-extra
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% page layout stuff
\setlength{\textwidth}{6.5in}
\setlength{\textheight}{9.0in}
\setlength{\marginparsep}{0pt}
\setlength{\marginparwidth}{0pt}
\setlength{\oddsidemargin}{0pt}
\setlength{\evensidemargin}{0pt}
\setlength{\hoffset}{0pt}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% headers and such (fancyhdr)
%
\setlength{\voffset}{-46.8pt}
\setlength{\hoffset}{0.0in}
\setlength{\topmargin}{12pt}
\setlength{\headsep}{16.8pt}
\setlength{\headheight}{18pt}
\setlength{\footskip}{0.4in}
\setlength{\parindent}{0pt}
\addtolength{\parskip}{1.0\baselineskip}
\newcommand{\authorHead}[1]{\gdef\@authorHead{#1}}
\newcommand{\shortTitle}[1]{\gdef\@shortTitle{#1}}
\newcommand{\confTitle}[1]{\gdef\@confTitle{#1}}
\newcommand{\confLocation}[1]{\gdef\@confLocation{#1}}
\newcommand{\confPublished}[1]{\gdef\@confPublished{#1}}
\renewcommand{\headrulewidth}{0pt}
\renewcommand{\footrulewidth}{0pt}
% Header/footer for other pages
\fancyhf{}
\fancyhead[CE]{{\scriptsize \@authorHead}}
\fancyhead[CO]{{\scriptsize \@shortTitle}}
\lfoot{\scriptsize{\@confTitle, \\ \@confLocation.}}
\rfoot{\thepage/\pageref{LastPage}}
\pagestyle{fancy}
% Header/footer for first page
\fancypagestyle{plain}{
\fancyhf{}
\lhead{\scriptsize{\emph{\@confTitle} \\ \@confLocation, \@confPublished}}
\lfoot{}
}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Styles for \section, \subsection, \subsubsection
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\titlelabel{\thetitle. } % Add period after section number
% Set format for headings
\titleformat*{\section}{\normalsize\bfseries\centering\MakeUppercase}
\titleformat*{\subsection}{\normalsize\bfseries}
\titleformat*{\subsubsection}{\normalsize\bfseries}
% Set spacing for headings
\titlespacing{\section}{0pt}{1.0ex plus 1ex minus .2ex}{.2ex plus .2ex}
\titlespacing{\subsection}{0pt}{1.0ex plus 1ex minus .2ex}{.2ex plus .2ex}
\titlespacing{\subsubsection}{0pt}{1.0ex plus 1ex minus .2ex}{.2ex plus .2ex}
\renewcommand{\thefootnote}{\fnsymbol{footnote}}
\renewcommand{\footnotesize}{\fontsize{9}{10.8pt}\selectfont}
\renewcommand{\small}{\fontsize{10}{12pt}\selectfont}
\renewcommand{\large}{\fontsize{14}{16.8pt}\selectfont}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Captions for figures and tables
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\captionsetup{labelfont=bf, textfont=bf, labelsep=period}
\captionsetup[table]{skip=0pt}
\renewcommand{\thetable}{\@Roman\c@table}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Title/Author/Abstract block
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\setlength{\droptitle}{-44.9pt}
\pretitle{\begin{center}\large\bfseries\MakeUppercase}
\posttitle{\end{center}}
\renewcommand{\maketitlehookb}{
\vspace{10pt}
\let\oldparskip\parskip
\setlength{\parskip}{-7pt}
}
\renewcommand\Authfont{\normalsize\bfseries}
\setlength\affilsep{0pt}
\date{}
\renewcommand{\maketitlehookd}{
\setlength{\parskip}{\oldparskip}
\addtolength{\parskip}{1.0\baselineskip}
\vspace{-30pt}
}
\RequirePackage[style]{abstract}
\renewcommand{\abstitlestyle}[1]{\bfseries\centering\MakeUppercase#1}
\AtBeginDocument{\raggedright}