forked from YuejiaoGong/latex-response-template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
responseletter.sty
119 lines (97 loc) · 2.11 KB
/
responseletter.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
\ProvidesPackage{responseletter}
% Author: Hunter Hwang
%%%%%%%%%%%%%%%%%%%%%%%% Package %%%%%%%%%%%%%%%%%%%%%%%%%%%
% page size setting
\RequirePackage{geometry}
\geometry{
a4paper,
left=15mm,
right=15mm,
top=15mm,
bottom=15mm,
marginparwidth=15mm
}
% To add author blocks to the front-matter
\RequirePackage{authblk}
% Reference
\RequirePackage[style=ieee,refsection=subsection]{biblatex}
% Color
\RequirePackage{xcolor}
% Text decoration
\RequirePackage{soul}
% Indent first line automatically
\usepackage{indentfirst}
%%%%%%%%%%%%%%%%%%%%%%%% Common Part of Comment %%%%%%%%%%%%%%%%%%%%%%%%%%%
\newenvironment{Draft}{
\ifx \IfDraft True {
}{
}
\fi
}
%%%%%%%%%%%%%%%%%%%%%%%% Labels %%%%%%%%%%%%%%%%%%%%%%%%%%%
\newcommand{\Label}[2]{
\colorbox{#1}{\color{white} \textbf{#2}}
}
\newcommand{\Hard}{
\Label{red}{Hard}
}
\newcommand{\Medium}{
\Label{yellow}{Medium}
}
\newcommand{\Easy}{
\Label{green}{Easy}
}
\newcommand{\Done}{
\Label{blue}{Done}
}
\newcommand{\InProcess}{
\Label{cyan}{Done}
}
%%%%%%%%%%%%%%%%%%%%%%%% Common Part of Comment %%%%%%%%%%%%%%%%%%%%%%%%%%%
\makeatletter
\renewcommand{\@seccntformat}[1]{}
\makeatother
\newenvironment{CommentSummary}{
\subsection*{Comments to the Authors:}
%\begin{quotation}
\begin{em}
}{
\end{em}
%\end{quotation}
}
\newenvironment{Response}{
\subsection*{Response}
}{
\vspace{2cm}
}
%%%%%%%%%%%%%%%%%%%%%%%%%%% Editors %%%%%%%%%%%%%%%%%%%%%%%%%%%
\newenvironment{Editor}[1][Editor]{
\section{#1}
}{
\pagebreak
}
%%%%%%%%%%%%%%%%%%%%%%%%%%% Reviewer %%%%%%%%%%%%%%%%%%%%%%%%%%%
\newcounter{ReviewerCounter}
\setcounter{ReviewerCounter}{1}
\newcounter{ReviewerCommentCounter}[section]
\newenvironment{Reviewer}[1][\arabic{ReviewerCounter}]{
\ifx #1 \empty {
\section{Reviewer #1}
} \else {
\setcounter{ReviewerCounter}{#1}
\section{Reviewer \arabic{ReviewerCounter}}
}
\fi
\stepcounter{ReviewerCounter}
}{
\pagebreak
}
\newenvironment{ReviewerComment}{
\stepcounter{ReviewerCommentCounter}
\subsection{Comment \Roman{ReviewerCommentCounter}}
%\begin{quotation}
\begin{em}
}{
\end{em}
%\end{quotation}
}