-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstd_artcl.tex
118 lines (94 loc) · 2.79 KB
/
std_artcl.tex
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
\documentclass[a4paper,12pt]{scrartcl}
% ========= Basic Packages =========
\usepackage{mathtools,amssymb}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage[english]{babel}
\usepackage{csquotes}
\usepackage[style=authoryear,sortcites=true,sorting=nyt,backend=biber,maxcitenames=2]{biblatex}
\usepackage{xpatch}
% ============ Useful Packages =================
\usepackage{amsthm,abstract,xcolor}
\usepackage[inline]{enumitem}
\usepackage{stix2} % Text and math font
% ============== Various Configurations ============
% Mathematics
\DeclareMathOperator*{\argmax}{argmax}
\DeclareMathOperator*{\argmin}{argmin}
% Redefining eqref command
\xpretocmd{\eqref}{Eq.~}{}{}
% Creating new environments
\newtheorem{lemma}{Lemma}
\newtheorem{prop}{Proposition}
\newtheorem{defn}{Definition}
% Defining custom colors
\definecolor{midnightblue}{rgb}{0.1, 0.1, 0.44}
\definecolor{bostonuniversityred}{rgb}{0.8, 0.0, 0.0}
\definecolor{cornellred}{rgb}{0.7, 0.11, 0.11}
\usepackage[colorlinks=true,allcolors=midnightblue]{hyperref}
\DeclareCiteCommand{\cite}
{\color{midnightblue}\usebibmacro{prenote}}%
{\usebibmacro{citeindex}%
\usebibmacro{cite}}
{\multicitedelim}
{\usebibmacro{postnote}}
\DeclareCiteCommand{\parencite}[\mkcolorbibparens]
{\usebibmacro{prenote}}%
{\usebibmacro{citeindex}%
\usebibmacro{cite}}
{\multicitedelim}
{\usebibmacro{postnote}}
\makeatletter
\newrobustcmd{\mkcolorbibparens}[1]{%
\begingroup
\color{midnightblue}%
\blx@blxinit
\blx@setsfcodes
\bibopenparen#1\bibcloseparen
\endgroup}
\makeatother
\newcommand{\colortextcite}[1]{\textcolor{midnightblue}{\textcite{#1}}}
% Redefining abstract environment
\renewenvironment{abstract}{%
\par\noindent\begin{minipage}{\textwidth}
\rule{\textwidth}{1pt}\\
\textbf{Abstract:}}
{\par\noindent\rule{\textwidth}{1pt}\end{minipage}}
%
\makeatletter
\renewcommand\@maketitle{%
\hfill
\begin{minipage}{\textwidth}
\vskip 2em
\let\footnote\thanks
{\LARGE \@title \par }
\vskip 1.5em
{\large \@author \par }
\end{minipage}
\vskip 1em \par
}
\makeatother
% Formatting citations
\AtEveryBibitem{
\clearfield{month}
}
\DeclareLanguageMapping{american}{american-apa}
% Removes "retrieved from on date" from bibliography entry unless it is a wiki URL, which is closer to the spirit of APA's rule. See biblatex-apa documentation for more info.
\DeclareSourcemap{
\maps[datatype=bibtex]{
\map{
\step[fieldsource=url,
notmatch=\regexp{wiki},
final=1]
\step[fieldset=urldate, null]
}
}
}
\renewcommand*{\nameyeardelim}{\addcomma\space} % Include comma in authoryear citation style
\addbibresource{bibliography.bib} % Bib source
\title{}
\author{}
\date{}
\begin{document}
\maketitle
\end{document}