-
Notifications
You must be signed in to change notification settings - Fork 0
/
stroop.sty
590 lines (493 loc) · 20 KB
/
stroop.sty
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
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
% StroopNLP style helper.
%
% by Vlad Niculae <v.niculae@uva.nl>
%
% Based on:
%%% NERT lab (http://nert.georgetown.edu/) stylesheet
%%% Created by Nathan Schneider
%%% Feel free to use, modify, and share.
%%% https://www.overleaf.com/project/5db4fd68be57c00001336e73
%
% This is to be used in combination with a venue-specific stylesheet.
% Read the venue's formatting instructions to be sure your submission complies.
%
% Tested with
% -- jmlr2e.sty, November 2021
% -- acl.sty, November 2021
\NeedsTeXFormat{LaTeX2e}[1994/06/01]
\ProvidesPackage{stroop}
[2021/11/10 v0.01 StroopNLP recommended defaults and macros for papers]
% avoid 'too many math alphabets' error
\newcommand\bmmax{0}
\newcommand\hmmax{0}
%% IMPORTS
\RequirePackage[T1]{fontenc}
\RequirePackage[utf8]{inputenc}
\RequirePackage[a-1b]{pdfx} % for PDF/A-1b
\RequirePackage{xcolor}
\RequirePackage{relsize} % relative font sizes (e.g. \smaller). must precede ACL style
\RequirePackage{hyperref}
\RequirePackage{microtype}
\RequirePackage{paralist} % in-paragraph enumerations
\RequirePackage{dsfont}
\RequirePackage[shortlabels]{enumitem} % customizable lists
\RequirePackage{xspace}
\RequirePackage{xparse} % for fancy custom macros (\NewDocumentEnvironment, etc.)
\RequirePackage{mdframed}
%\usepackage{natbib}
\newif\if@strooptimes
\newif\if@stroopfourier
\newif\if@stroopnoalg
\newif\if@stroopspace
\DeclareOption{times}{%
\@strooptimestrue
}
\DeclareOption{fourier}{%
\@stroopfouriertrue
}
\DeclareOption{noalg}{%
\@stroopnoalgtrue
}
\DeclareOption{savespace}{%
\@stroopspacetrue
}
\ProcessOptions*
\if@strooptimes
\RequirePackage{newtxtext} % modern Times clone
%\usepackage{stickstootext} b Better, but not compatible
\RequirePackage[scaled=.8]{beramono}
\RequirePackage[defaultsans,scale=.88]{opensans}
\fi
\if@stroopfourier
\RequirePackage{fouriernc}
\RequirePackage[scaled=.8]{beramono}
\RequirePackage[defaultsans,scale=.88]{opensans}
\fi
%% Math font packages
\RequirePackage{stmaryrd}
\RequirePackage{pifont}
\if@strooptimes
\RequirePackage[stickstoo,varbb]{newtxmath}
\else
\RequirePackage{mathtools}
\RequirePackage{amssymb}
\RequirePackage{amsmath}
\fi
\RequirePackage{nameref}
\RequirePackage{cleveref}
\RequirePackage{bm}
\RequirePackage{footnote}
\RequirePackage{fnpct} % footnotes after punctuation
% Tables
\RequirePackage{array}
\RequirePackage{multirow}
\RequirePackage{booktabs} % pretty tables
\RequirePackage{multicol}
\RequirePackage{supertabular} % tabular substitute that wraps across columns/pages (longtable doesn't work with 2-column layout)
\newcolumntype{H}{>{\setbox0=\hbox\bgroup}c<{\egroup}@{}} % hidden column
%\RequirePackage[small,bf,skip=5pt]{caption} % caption loaded in acl2020.sty but not jmlr2e
\RequirePackage{caption} % caption loaded in acl2020.sty but not jmlr2e
\RequirePackage[normalem]{ulem} % \uline
\RequirePackage{graphicx}
\RequirePackage{subcaption} % not sure about this one
\RequirePackage{url}
\RequirePackage{breakurl}
\RequirePackage{nicefrac}
\RequirePackage{linguex}
\renewcommand{\firstrefdash}{} % don't put a hyphen between example number and subexample letter
% algorithms
\if@stroopnoalg
\else
\RequirePackage{algorithm}
\RequirePackage[noend]{algorithmic}
\algsetup{linenosize=\footnotesize\color{gray}}
\renewcommand{\algorithmiccomment}[1]{\hfill\footnotesize\color{gray}{\# #1}}
\fi
%\usepackage{sidecap} % side captions
%\usepackage{rotating} % sideways
% \usepackage[pdftex]{graphicx}
% Italicize subparagraph headings
% fails right now with jmlr2e -- vn
%\usepackage{titlesec}
%\titleformat*{\subparagraph}{\itshape}
%\titlespacing{\subparagraph}{%
%1em}{% left margin
%0pt}{% space before (vertical)
%1em}% space after (horizontal)
\definecolor{darkblue}{rgb}{0, 0, 0.75}
\hypersetup{colorlinks=true, citecolor=darkblue, linkcolor=darkblue, urlcolor=darkblue}
% Email macros
\newcommand{\emldisplay}[2]{\texttt{\href{mailto:#1}{#2}}}
\newcommand{\eml}[1]{\emldisplay{#1}{#1}}
% turn on space saving
\if@stroopspace
\setitemize{noitemsep,topsep=0em} %leftmargin=1em,iciteposstemindent=-1em
\setenumerate{noitemsep,leftmargin=0em,itemindent=13pt,topsep=0em}
% customize \paragraph spacing
\makeatletter
\renewcommand{\paragraph}{%
\@startsection{paragraph}{4}%
{\z@}{.2ex \@plus 1ex \@minus .2ex}{-1em}%
{\normalfont\normalsize\bfseries}%
}
\makeatother
\fi
% listings: figure out when needed
% \usepackage{listings}
% \lstset{
% basicstyle=\itshape,
% xleftmargin=3em,
% aboveskip=0pt,
% belowskip=-3pt, %-.5\baselineskip, % correct for extra paragraph break inserted after listing
% literate={->}{$\rightarrow$}{2}
% {α}{$\alpha$}{1}
% {δ}{$\delta$}{1}
% {(}{$($}{1}
% {)}{$)$}{1}
% {[}{$[$}{1}
% {]}{$]$}{1}
% {|}{$|$}{1}
% {+}{\ensuremath{^+}}{1}
% {*}{\ensuremath{^*}}{1}
% }
\newcommand{\chk}{\ding{51}} % checkmark
\newcommand{\xxx}{\textcolor{mdred}{\ding{55}}} % X mark
\captionsetup{labelfont=bf,skip=5pt}
% colored frame box
\newcommand{\cfbox}[2]{%
\colorlet{currentcolor}{.}%
{\color{#1}%
\fbox{\color{currentcolor}#2}}%
}
%{\renewcommand{\theExRBr}{}\LLast}--{\renewcommand{\theExLBr}{}\Last} % put range inside parentheses
\renewcommand{\resetExdefaults}{%
\setlength{\Exlabelsep}{.25em}% was 1.3em, way too wide
\setlength{\Extopsep}{.66\baselineskip}%
\setlength{\SubSubExleftmargin}{1.9em}% was 2.4em, too wide
\setlength{\SubExleftmargin}{1.5em}% was 2em, too wide
\setlength{\Exindent}{0pt}%
\setlength{\Exlabelwidth}{4em}%
\setlength{\alignSubExnegindent}{\Exlabelsep}%
\ifalignSubEx\addtolength{\Exlabelsep}{.7em}%
\addtolength{\alignSubExnegindent}{.7em}\fi
\setlength{\Exredux}{-\baselineskip}%
}
% let cleveref settings below handle parentheses in cross-references
\renewcommand{\theExLBr}{}
\renewcommand{\theExRBr}{}
\renewcommand{\theFnExLBr}{}
\renewcommand{\theFnExRBr}{}
% use \S for all references to all kinds of sections, and \P to paragraphs
% (sadly, we cannot use the simpler \crefname{} macro because it would insert a space after the symbol)
\crefformat{section}{\S#2#1#3}
\crefformat{subsection}{\S#2#1#3}
\crefformat{subsubsection}{\S#2#1#3}
\crefformat{paragraph}{\P#2#1#3}
\crefformat{subparagraph}{\P#2#1#3}
%\crefmultiformat{part}{\S#2#1#3}{ and~\S#2#1#3}{, \S#2#1#3}{, and~\S#2#1#3}
%\crefmultiformat{chapter}{\S#2#1#3}{ and~\S#2#1#3}{, \S#2#1#3}{, and~\S#2#1#3}
\crefmultiformat{section}{\S#2#1#3}{ and~\S#2#1#3}{, \S#2#1#3}{, and~\S#2#1#3}
\crefmultiformat{subsection}{\S#2#1#3}{ and~\S#2#1#3}{, \S#2#1#3}{, and~\S#2#1#3}
\crefmultiformat{subsubsection}{\S#2#1#3}{ and~\S#2#1#3}{, \S#2#1#3}{, and~\S#2#1#3}
\crefmultiformat{paragraph}{\P\P#2#1#3}{ and~#2#1#3}{, #2#1#3}{, and~#2#1#3}
\crefmultiformat{subparagraph}{\P\P#2#1#3}{ and~#2#1#3}{, #2#1#3}{, and~#2#1#3}
%\crefrangeformat{part}{\mbox{\S\S#3#1#4--#5#2#6}}
%\crefrangeformat{chapter}{\mbox{\S\S#3#1#4--#5#2#6}}
\crefrangeformat{section}{\mbox{\S\S#3#1#4--#5#2#6}}
\crefrangeformat{subsection}{\mbox{\S\S#3#1#4--#5#2#6}}
\crefrangeformat{subsubsection}{\mbox{\S\S#3#1#4--#5#2#6}}
\crefrangeformat{paragraph}{\mbox{\P\P#3#1#4--#5#2#6}}
\crefrangeformat{subparagraph}{\mbox{\P\P#3#1#4--#5#2#6}}
% for \label[appsec]{...}
\crefname{part}{Part}{Parts}
\Crefname{part}{Part}{Parts}
\crefname{chapter}{ch.}{Ch.}
\Crefname{chapter}{Ch.}{Ch.}
\crefname{footnote}{fn.}{Fn.}
\Crefname{footnote}{Fn.}{Fn.}
\crefname{figure}{figure}{Figures}
\crefname{subfigure}{figure}{Figures}
\Crefname{subfigure}{Figure}{Figures}
\crefname{appsec}{appendix}{Appendices}
\Crefname{appsec}{Appendix}{Appendices}
\crefname{algocf}{algorithm}{Algorithms}
\Crefname{algocf}{Algorithm}{Algorithms}
% linguex
\crefname{ExNo}{example}{Examples}
\Crefname{ExNo}{Example}{Examples}
\crefname{SubExNo}{example}{Examples}
\Crefname{SubExNo}{Example}{Examples}
\crefname{SubSubExNo}{example}{Examples}
\Crefname{SubSubExNo}{Example}{Examples}
\crefformat{ExNo}{(#2#1#3)}
\crefformat{SubExNo}{(#2#1#3)}
\crefformat{SubSubExNo}{(#2#1#3)}
\crefrangeformat{ExNo}{\mbox{(#3#1#4--#5#2#6)}}
\crefrangeformat{SubExNo}{\mbox{(#3#1#4--#5#2#6)}}
\crefrangeformat{SubSubExNo}{\mbox{(#3#1#4--#5#2#6)}}
\crefmultiformat{ExNo}{(#2#1#3}{, #2#1#3)}{, #2#1#3}{, #2#1#3)}
\crefmultiformat{SubExNo}{(#2#1#3}{, #2#1#3)}{, #2#1#3}{, #2#1#3)}
\crefmultiformat{SubSubExNo}{(#2#1#3}{, #2#1#3)}{, #2#1#3}{, #2#1#3)}
\crefrangemultiformat{ExNo}{(#3#1#4--#5#2#6}{, #3#1#4--#5#2#6)}{, #3#1#4--#5#2#6}{, #3#1#4--#5#2#6)}
\crefrangemultiformat{SubExNo}{(#3#1#4--#5#2#6}{, #3#1#4--#5#2#6)}{, #3#1#4--#5#2#6}{, #3#1#4--#5#2#6)}
\crefrangemultiformat{SubSubExNo}{(#3#1#4--#5#2#6}{, #3#1#4--#5#2#6)}{, #3#1#4--#5#2#6}{, #3#1#4--#5#2#6)}
\ifx\creflastconjunction\undefined%
\newcommand{\creflastconjunction}{, and\nobreakspace} % Oxford comma for lists
\else%
\renewcommand{\creflastconjunction}{, and\nobreakspace} % Oxford comma for lists
\fi%
\newcommand*{\Fullref}[1]{\hyperref[{#1}]{\Cref*{#1}: \nameref*{#1}}}
\newcommand*{\fullref}[1]{\hyperref[{#1}]{\cref*{#1}: \nameref{#1}}}
\newcommand{\fnref}[1]{fn.~\ref{#1}} % don't use \cref{} due to bug in (now out-of-date) cleveref package w.r.t. footnotes
\newcommand{\Fnref}[1]{Fn.~\ref{#1}}
%\captionsetup[subfigure]{labelformat=simple}
%\renewcommand\thesubfigure{(\alph{subfigure})}
\newcommand{\backtick}[0]{\textasciigrave}
\NewDocumentEnvironment{itmize}{}{\begin{itemize}[noitemsep]}{\end{itemize}}
\NewDocumentEnvironment{enumrate}{}{\begin{enumerate}[noitemsep]}{\end{enumerate}}
\let\Item\item
\renewcommand\enddescription{\endlist\global\let\item\Item}
\NewDocumentEnvironment{describe}{}{\renewcommand\item[1][]{\Item \textbf{##1:} }\begin{itemize}[\null,leftmargin=0em]}{\end{itemize}} % leftmargin=1em,itemindent=-1em to dedent the heading
\NewDocumentEnvironment{edescribe}{}{\renewcommand\item[1][]{\Item \textbf{##1:} }\begin{enumerate}}{\end{enumerate}}
%\usepackage{color}
\definecolor{orange}{rgb}{1,0.5,0}
\definecolor{mdred}{rgb}{0.7,0,0}
\definecolor{mdgreen}{rgb}{0.05,0.6,0.05}
\definecolor{mdblue}{rgb}{0,0,0.7}
\definecolor{dkblue}{rgb}{0,0,0.5}
\definecolor{dkgray}{rgb}{0.3,0.3,0.3}
\definecolor{slate}{rgb}{0.25,0.25,0.4}
\definecolor{gray}{rgb}{0.5,0.5,0.5}
\definecolor{ltgray}{rgb}{0.7,0.7,0.7}
\definecolor{purple}{rgb}{0.7,0,1.0}
\definecolor{lavender}{rgb}{0.65,0.55,1.0}
% Settings for algorithm listings
%\lstset{
%upquote=true,
%showstringspaces=false,
%formfeed=\newpage,
%tabsize=1,
%commentstyle=\itshape\color{lavender},
%basicstyle=\normalsize\smaller[0.5]\ttfamily,
%keywordstyle=\bfseries\color{magenta},
%emph={upward,downward,tc},
%emphstyle=\underbar,
%aboveskip=1ex plus .25ex minus .25ex,
%belowskip=1ex plus .25ex minus .25ex,
%xleftmargin=1em,
%xrightmargin=1em
%}
% % Per http://tex.stackexchange.com/questions/73912/python-as-keyword-ignored-in-listings
% \lstnewenvironment{Python}[1][]
% {\lstset{language=Python,
% morekeywords=as,
% #1}
% }
% {}
%
% \lstnewenvironment{Output}[1][]
% {\lstset{#1}
% }
% {}
% \renewcommand{\lstlistingname}{Algorithm}
\newcommand{\ensuretext}[1]{#1}
% Author comments
\newcommand{\nbc}[3]{\ensuretext%
{\colorbox{#2}{\bfseries\sffamily\scriptsize\textcolor{white}{#1}}}~%
{\textcolor{#2}{\sf$\blacktriangleright${\small\textit{#3}}$\blacktriangleleft$}}
}
%\renewcommand{\nbc}[4]{\unskip}
\newcommand{\vn}[1]{\nbc{VN}{mdgreen}{#1}}
\newcommand{\et}[1]{\nbc{ET}{magenta}{#1}}
\newcommand{\st}[1]{\nbc{ST}{purple}{#1}}
\newcommand{\wm}[1]{\nbc{WM}{orange}{#1}}
\newcommand{\mn}[1]{\nbc{MN}{gray}{#1}}
\newcommand{\overbar}[1]{\mkern 1.5mu\overline{\mkern-1.5mu#1\mkern-1.5mu}\mkern 1.5mu} % \bar is too narrow in math
% Boxed number (command borrowed from an HPSG document)
\newcommand{\svar}[1]
{\setbox2=\hbox{$\scriptstyle #1$}\lower.2ex\vbox{\hrule
\hbox{\vrule\kern1.25pt
\vbox{\kern1.25pt\box2\kern1.25pt}\kern1.25pt\vrule}\hrule}}
% gray bg variant
\newcommand{\SVAR}[1]
{\setbox2=\hbox{$\scriptstyle #1$}\lower.2ex\vbox{\hrule
\hbox{\bgroup\fboxsep=0pt\colorbox{ltgray}{\vrule\kern1.25pt
\vbox{\kern1.25pt\box2\kern1.25pt}\kern1.25pt\vrule}\egroup}\hrule}}
\newcommand{\term}[1]{\textbf{#1}} % term being defined
\newcommand{\citeposs}[2][]{\citeauthor{#2}'s (\citeyear[#1]{#2})}
\newcommand{\Citeposs}[2][]{\Citeauthor{#2}'s (\citeyear[#1]{#2})}
% Space savers - uncomment/adjust if needed, ensure nothing overlaps
% % From http://www.eng.cam.ac.uk/help/tpl/textprocessing/squeeze.html
% \addtolength{\textfloatsep}{-.3cm} % space between last top float or first bottom float and the text.
% %\addtolength{\intextsep}{-1cm} % space left on top and bottom of an in-text float.
% \addtolength{\abovedisplayskip}{-1cm} % space before maths
% \addtolength{\belowdisplayskip}{-1cm} % space after maths
% %\addtolength{\topsep}{-.5cm} %space between first item and preceding paragraph
% \setlength{\belowcaptionskip}{-.15cm}
% \setlength{\intextsep}{0pt plus 2pt} % default value 12pt plus 2pt minus 2pt
% Special macros
\newcommand{\w}[1]{\textit{#1}} % word
\newcommand{\p}[1]{\textbf{\textsf{#1}}} % preposition type
\newcommand{\lbl}[1]{\textsc{#1}} % class label
\newcommand{\sst}[1]{\lbl{#1}} % supersense tag label
\newcommand{\nsst}[1]{\sst{n:#1}} % noun supersense tag label
\newcommand{\vsst}[1]{\sst{v:#1}} % verb supersense tag label
\newcommand{\psst}[1]{\textcolor{mdgreen}{\sst{#1}}} % preposition supersense tag label
\newcommand{\olbl}[1]{\textcolor{purple}{\textrm{#1}}} % other label: `i, `d, etc.
%\newcommand{\nsst}[1]{\sst{#1~\textroundcap{\vphantom{-}}~}} % noun supersense tag label
%\newcommand{\vsst}[1]{\sst{#1\raisebox{-1.5pt}{\textasciicaron}}} % verb supersense tag label
%\newcommand{\psst}[1]{\sst{#1\raisebox{2pt}{\rotatebox{180}{\textsublhalfring{\phantom{.}}}}}} %\textcorner % preposition supersense tag label
\newcommand{\rf}[2]{\psst{#1}$\leadsto$\psst{#2}}
\newcommand{\rff}[3]{\psst{#1}$\leadsto$\psst{#2}$\leadsto$\psst{#3}}
\newcommand{\tg}[1]{\texttt{#1}} % supersense tag name
\newcommand{\tagdef}[1]{#1\hfill} % tag definition
\newcommand{\tagt}[2]{\ensuremath{\underset{\textrm{\textlarger{\tg{#2}}}\strut}{\w{#1}\rule[-.3\baselineskip]{0pt}{0pt}}}} % tag text (a word or phrase) with an SST. (second arg is the tag)
\newcommand{\glosst}[2]{\ensuremath{\underset{\textrm{#2}}{\textrm{#1}}}} % gloss text (a word or phrase) (second arg is the gloss)
\newcommand{\AnnA}[0]{\mbox{\textbf{Ann-A}}} % annotator A
\newcommand{\AnnB}[0]{\mbox{\textbf{Ann-B}}} % annotator B
\newcommand{\sys}[1]{\mbox{\textbf{#1}}} % name of a system (one of our experimental conditions)
\newcommand{\dataset}[1]{\mbox{\textsc{#1}}} % one of the datasets in our experiments
\newcommand{\datasplit}[1]{\mbox{\textbf{#1}}} % portion one of the datasets in our experiments
\newcommand{\fnf}[1]{\textsc{\textsf{#1}}} % FrameNet frame
\newcommand{\fnr}[1]{\textbf{\textsf{#1}}} % FrameNet role (frame element name)
\newcommand{\fnrel}[1]{\textsl{#1}} % FrameNet frame relation type
\newcommand{\fnst}[1]{\textsl{#1}} % FrameNet semantic type
\newcommand{\fnlu}[1]{\textsf{#1}} % FrameNet lexical unit (predicate)
\newcommand{\pbf}[1]{\mbox{\textsf{#1}}} % PropBank frame (roleset)
\newcommand{\pbr}[1]{\textbf{\textsf{#1}}} % PropBank role (numbered or modifier argument label)
\newcommand{\vpred}[1]{\textbf{#1}} % verb predicate
%\newcommand{\lex}[1]{\textsmaller{\textsf{\textcolor{slate}{\textbf{#1}}}}} % example lexical item
\newcommand{\lex}[1]{\textit{#1}} % lexical item/lexical example
\newcommand{\pex}[1]{\textit{#1}} % phrasal example - don't index by default
%\newcommand{\w}[1]{\textit{#1}} % word
\newcommand{\gap}[0]{\ \ } % space around gap contents
\newcommand{\tat}[0]{\textasciitilde}
% PAPER LIFECYCLE CONTROLS
\newcommand{\draftversion}[1]{} % for the draft version only
\newcommand{\subversion}[1]{#1} % for the submission version only
%\newcommand{\subversion}[1]{}
%\newcommand{\finalversion}[1]{#1}
\newcommand{\finalversion}[1]{}
\newcommand{\shortlong}[2]{#1} % short vs. long version of the paper
\newcommand{\shortversion}[1]{}
\newcommand{\considercutting}[1]{#1}
%\newcommand{\longversion}[1]{#1}
\newcommand{\longversion}[1]{} % ...if only there were more space...
\newcommand{\anonversion}[1]{#1} % for the anonymized version only
\newcommand{\nonanonversion}[1]{} % for non-anonymized versions only
\newcommand\blfootnote[1]{%
\begingroup
\renewcommand\thefootnote{}\footnote{#1}%
\addtocounter{footnote}{-1}%
\endgroup
}
%%%%%%%%%% HYPHENATION
\hyphenation{WordNet}
\hyphenation{WordNets}
\hyphenation{FrameNet}
\hyphenation{SemCor}
\hyphenation{SemEval}
\hyphenation{ParsedSemCor}
\hyphenation{VerbNet}
\hyphenation{PennConverter}
\hyphenation{an-aly-sis}
\hyphenation{an-aly-ses}
\hyphenation{an-aly-tic}
\hyphenation{an-aly-tics}
\hyphenation{an-aly-ti-cal}
\hyphenation{base-line}
\hyphenation{comb-over}
\hyphenation{de-ve-lop-ed}
\hyphenation{mono-claus-al}
\hyphenation{mono-mor-phem-ic}
\hyphenation{news-text}
\hyphenation{nomi-nal}
\hyphenation{per-cept}
\hyphenation{per-cepts}
\hyphenation{post-edit-ing}
\hyphenation{shriv-eled}
\hyphenation{Huddle-ston}
\hyphenation{par-ti-ci-pant}
\hyphenation{par-ti-ci-pants}
\hyphenation{par-ti-ci-pa-tion}
%%%%%%%% Math
% common math
\newcommand{\DP}[2]{{{\langle}{#1}, {#2}{\rangle}}}
\newcommand{\norm}[1]{\left\lVert#1\right\rVert}
\providecommand{\abs}[1]{\left\lvert#1\right\rvert}
\newcommand{\indep}{{\perp}\!\!\!{\perp}}
\newcommand{\T}{^\top}
\newcommand{\inv}{^{-1}}
% partial derivative fraction notation
\newcommand\pfrac[2]{\frac{{\partial}#1}{{\partial}#2}}
%% pixel-perfect rendering of common abbrevs
\newcommand*{\wrt}{\textit{w.\nobreak\hspace{.07em}r.\nobreak\hspace{.07em}t.}\@\xspace}
\renewcommand*{\eg}{\textit{e.\nobreak\hspace{.07em}g.}\@\xspace}
\newcommand*{\ie}{\textit{i.\nobreak\hspace{.07em}e.}\@\xspace}
\newcommand*{\cf}{\textit{cf.}\@\xspace}
% calligraphic sets / manifolds / etc
% neat solution thanks to egreg
\ExplSyntaxOn
\NewDocumentCommand{\definealphabet}{mmmm}
{% #1 = prefix, #2 = command, #3 = start, #4 = end
\int_step_inline:nnn { `#3 } { `#4 }
{
\cs_new_protected:cpx { #1 \char_generate:nn { ##1 }{ 11 } }
{
\exp_not:N #2 { \char_generate:nn { ##1 } { 11 } }
}
}
}
\ExplSyntaxOff
\definealphabet{bb}{\mathbb}{A}{Z}
\definealphabet{c}{\mathcal}{A}{Z}
\definealphabet{mb}{\bm}{A}{Z}
\definealphabet{mb}{\bm}{a}{z}
\newcommand\ones{\bm{1}}
\newcommand\zeros{\bm{0}}
% operators
\newcommand\operstyle[1]{#1}
\DeclareMathOperator*{\argmax}{arg\,max}
\DeclareMathOperator*{\argmin}{arg\,min}
\DeclareMathOperator*{\conv}{\operstyle{conv}}
\DeclareMathOperator*{\cone}{\operstyle{cone}}
\DeclareMathOperator*{\dom}{\operstyle{dom}}
\DeclareMathOperator*{\relint}{\operstyle{relint}}
%\RedeclareMathOperator*{\dim}{\operstyle{dim}}
\DeclareMathOperator*{\diag}{\operstyle{diag}}
\DeclareMathOperator*{\sign}{\operstyle{sign}}
\DeclareMathOperator*{\logsumexp}{\operstyle{log\,sum\,exp}}
\DeclareMathOperator*{\minz}{\operstyle{minimize}}
\DeclareMathOperator*{\maxz}{\operstyle{maximize}}
\DeclareMathOperator{\idop}{\operstyle{Id}}
\newcommand{\range}[1]{\llbracket#1{\rrbracket}}
\newcommand{\proj}[1]{\textstyle \mathop{\bm{\operstyle{proj}}}_{#1}}
\newcommand{\id}[1]{\idop_{#1}}
\newcommand{\prox}[1]{\textstyle \mathop{\bm{\operstyle{prox}}}_{#1}}
\newcommand{\iverson}{\imath}
\newcommand\dif{\mathop{}\!\mathrm{d}}
%% theorems
\definecolor{theoremcolor}{rgb}{0.94, 0.94, 0.94}
\mdfsetup{
backgroundcolor=theoremcolor,
linewidth=0pt,
}
\makeatletter
\def\cleartheorem#1{%
\expandafter\let\csname#1\endcsname\relax
\expandafter\let\csname c@#1\endcsname\relax
}
\makeatother
\cleartheorem{example}
\newmdtheoremenv[linewidth=0pt,innerleftmargin=4pt,innerrightmargin=4pt]{example}{Example}
\cleartheorem{theorem}
\newmdtheoremenv[linewidth=0pt,innerleftmargin=4pt,innerrightmargin=4pt]{theorem}{Theorem}
\cleartheorem{lemma}
\newmdtheoremenv{lemma}[theorem]{Lemma}
\cleartheorem{proposition}
\newmdtheoremenv[linewidth=0pt,innerleftmargin=4pt,innerrightmargin=4pt]{proposition}{Proposition}
\cleartheorem{definition}
\newmdtheoremenv[linewidth=0pt,innerleftmargin=4pt,innerrightmargin=4pt]{definition}{Definition}
\endinput
%%
%% End of file `stroop.sty'.