-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathReview.sty
66 lines (60 loc) · 2.35 KB
/
Review.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
\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{Review}[2017/07/05 Literature review environment package]
\RequirePackage{ifthen}
\RequirePackage{float}
\RequirePackage{caption}
\RequirePackage{tocloft}
\RequirePackage{biblatex}
\RequirePackage{titlesec}
\RequirePackage{verbatim}
\RequirePackage{parskip}
\RequirePackage{changepage}
\newfloat{review@as@float}{t}{rvw}
\newcommand{\listreviewname}{List of Literature}
\newlistof[chapter]{review}{rvw}{\listreviewname}
\DeclareFieldFormat*{citetitle}{#1}
%\setlength{\parskip}{\medskipamount}
%\newcommand{\@minipagerestore}{\setlength{\parskip}{\medskipamount}}
\newenvironment{review}[3]
{
\addcontentsline{rvw}{review}{\citetitle{#1}}
% Adds the review to the table of contents
\noindent\ignorespaces
\LARGE \bfseries \citetitle{#1} \cite{#1} \vspace{0.3cm} \hrule height 1pt \vspace{0.3cm} \noindent
% Creates the title
\-\hspace{1cm} \normalsize \normalfont \citeauthor{#1} \vspace{0.1cm}\\
% Lists the authors
\-\hspace{1cm} \itshape \citeyear{#1} \vspace{0.2cm} \hrule \vspace{0.5cm}
% What year it was published
\begin{minipage}[t]{0.22\textwidth}
% Inserts keywords, the second argument of the environment
\scshape Keywords: \vspace{0.2cm} \hrule \vspace{0.2cm}
\normalfont \footnotesize
#2
\end{minipage}
\hfill
\begin{minipage}[t]{0.73\textwidth}
%Inserts the abstract, the third argument of the environment
\scshape Abstract \vspace{0.2cm} \hrule \vspace{0.2cm}
\normalfont \footnotesize
#3
\end{minipage}
\vspace{0.3cm} \hrule \vspace{0.3cm}
\begin{minipage}[t]{0.3\textwidth}
% Inserts the citation in the bibliography
\scshape Bibliography Entry: \vspace{0.2cm} \hrule \vspace{0.2cm}
\normalfont \small #1
\end{minipage}
\vspace{0.3cm} \hrule height 1pt \vspace{0.4cm}
\par
\centering
\begin{adjustwidth}{0.125\textwidth}{0.125\textwidth}
\setlength{\parindent}{1.5em}
\noindent \scshape \large R\,e\,v\,i\,e\,w:\vspace{0.2cm}\par
\normalfont \small
% Makes the review portion smaller as to make it readable
}
{
\end{adjustwidth}
\par\newpage
}