-
Notifications
You must be signed in to change notification settings - Fork 0
/
response_to_reviewers.cls
69 lines (58 loc) · 1.54 KB
/
response_to_reviewers.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
\ProvidesClass{response_to_reviewers}[2024/01/22, v1.0]
\LoadClass[11pt]{article}
\RequirePackage[utf8]{inputenc}
\RequirePackage{fullpage}
\RequirePackage[colorlinks=true, allcolors=blue]{hyperref}
\RequirePackage[numbers,super,sort]{natbib}
\bibliographystyle{unsrtnat}
% Define counters for the custom sections
\RequirePackage{xifthen}
\newcounter{reviewer}
\setcounter{reviewer}{0}
\newcounter{point}[reviewer]
\setcounter{point}{0}
\newcounter{reply}[reviewer]
\setcounter{reply}{0}
% Define format for how to handle point and reply
\renewcommand{\thepoint}{\thereviewer.\arabic{point}}
\renewcommand{\thereply}{\thereviewer.\arabic{reply}}
% command declarations for reviewer points and our responses
\newcommand{\reviewersection}{
\refstepcounter{reviewer}
\bigskip \hrule
\section*{Reviewer \thereviewer}
}
\newenvironment{point}{
\refstepcounter{point}
\bigskip \noindent
{
\textbf{Reviewer~Point~\thepoint} } ---\
}
{\par }
\newcommand{\shortpoint}[1]{
\refstepcounter{point}
\bigskip \noindent
{
\textbf{
Reviewer~Point~\thepoint
}
}
---~#1\par
}
\newenvironment{reply}
{
\refstepcounter{reply}
\medskip \noindent
\begin{sf}\textbf{Reply}:\
}
{
\medskip \end{sf}
}
\newcommand{\shortreply}[2][]{
\medskip \noindent
\begin{sf}\textbf{Reply}:\ #2
\ifthenelse{\equal{#1}{}}{}{ \hfill \footnotesize (#1)}%
\medskip \end{sf}}
% \autoref formatting
\newcommand{\pointautorefname}{Pt.}
\newcommand{\replyautorefname}{Rp.}