-
Notifications
You must be signed in to change notification settings - Fork 0
/
compositionalityarticle.cls
186 lines (153 loc) · 3.93 KB
/
compositionalityarticle.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
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% compositionalityarticle.cls, v0.1, 2018/05/27
%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% This work may be distributed and/or modified under the
% conditions of the LaTeX Project Public License, either
% version 1.3 of this license or any later version.
% The latest version of this license is in
% http://www.latex-project.org/lppl.txt and
% version 1.3 or later is part of all distributions
% of LaTeX version 2005/12/01 or later.
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%
% For use with latex+dvipdfm, pdflatex, xelatex & lualatex
% For compiling with plain latex, please use latex+dvipdfm
% to produce the PDF, not dvis -> ps -> pdf nor dvipdf
%
\NeedsTeXFormat{LaTeX2e}
\ProvidesClass{compositionalityarticle}[2018/05/27, v0.1]
\LoadClass{extarticle}
%% Fonts and Language
\RequirePackage[utf8]{inputenc}
\RequirePackage[T1]{fontenc}
\RequirePackage{raleway}
\RequirePackage{amsmath,amsfonts,amssymb,amsthm}
\RequirePackage{lmodern}
%\RequirePackage{fouriernc}
\RequirePackage[light]{merriweather}
\DeclareMathSizes{\@xpt}{\@xipt}{8}{6}
\linespread{1.4}
\theoremstyle{definition}
\newtheorem{definition}{Definition}[section]
\RequirePackage{authblk}
%% Graphics tables and other formatting
\RequirePackage[
% twoside
% , letterpaper
]{geometry}
\RequirePackage{graphicx}
%% Bibliography
%% v1.41 (15/11/2016)
%% Use pnas-new.bst if available
%% If not, try to use pnas2011.bst instead
%% If both aren't available, fall back to
%% unsrtnat
\RequirePackage[numbers,sort&compress,merge,round]{natbib}
\renewcommand*{\bibfont}{\raggedright}
%% Headers and Footers
\RequirePackage{fancyhdr}
\pagestyle{fancy}
\fancyhead{}
\fancyfoot{}
\fancyfoot[L] {
\fontfamily{Raleway-TLF}
\color{mutedcoral}
\selectfont
\logo \hspace{0.3cm} Accepted in Compositionality \date
}
\fancyfoot[R]{
\fontfamily{Raleway-TLF}
\color{mutedcoral}
\selectfont
\thepage
}
\newcommand {\logo} {\raisebox{-0.25cm}[0.1cm]{\includegraphics[width=0.8cm, height=0.8cm]{logo}}}
\renewcommand \headrulewidth {0pt}
\renewcommand \footrulewidth {0.5pt}
\renewcommand \footrule {
\color{darkgray}
\hrule
\vspace{0.3cm}
}
\newcommand{\leadauthor}[1]{\def \@leadauthor{#1}}
\newcommand{\keywords}[1]{\def \@keywords{#1}}
\newcommand{\dates}[1]{\def \@dates{#1}}
\newcommand{\email}[1]{\def \@email{#1}}
%% Colors
\RequirePackage[svgnames]{xcolor}
\definecolor{mutedcoral}{RGB}{255,90,95}
\definecolor{palecoral}{RGB}{255,166,158}
\definecolor{darkgrey}{RGB}{51,51,51}
\definecolor{lightgrey}{RGB}{170,170,170}
%% Fonts
\newcommand \titlefont {
\color{mutedcoral}
\fontfamily{Raleway-TLF}
% \bfseries
\fontsize{22pt}{24pt}
\selectfont
}
\newcommand \datesfont {
\color{darkgray}
\fontfamily{Raleway-TLF}
\fontsize{8pt}{10pt}
\selectfont
}
\newcommand \abstractfont{\color{darkgray}\merriweatherlight\bfseries\selectfont}
\renewcommand \Authfont {
\color{darkgray}
\fontfamily{Raleway-TLF}
\fontsize{12pt}{14pt}
\selectfont
}
\renewcommand \Affilfont {
\color{darkgray}
\fontfamily{Raleway-TLF}
\fontsize{8pt}{10pt}
\selectfont
}
%% Abstract formatting
\renewenvironment{abstract}{\thispagestyle{fancy}\vspace{0.7cm}\abstractfont\par\noindent\ignorespaces}{\vspace{0.2cm}}
% maketitle
\renewcommand \@maketitle {
{
\raggedright
\baselineskip=24pt
\titlefont
\@title
\par
}
\vskip12pt
{
\raggedright
\@author
\par
}
\vskip2pt
{
\raggedright
\datesfont
\@ifundefined{@dates}{}{\@dates}
\par
}
}
% title section formatting
\RequirePackage[explicit]{titlesec}
\titleformat {\section}
{\large\fontfamily{Raleway-TLF}\bfseries}
{\thesection}
{0.5em}
{#1}
[]
\titleformat{\subsection}
{\sffamily\fontfamily{Raleway-TLF}\bfseries}
{\thesubsection}
{0.5em}
{#1}
[]
\renewcommand \normalsize {
% \merriweatherlight
\color{darkgray}
\selectfont
}