forked from sjbutler/rebuttal
-
Notifications
You must be signed in to change notification settings - Fork 0
/
rebuttal.sty
62 lines (49 loc) · 1.8 KB
/
rebuttal.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
%% Simple LaTeX class for responses to journal reviews
%%
%% Copyright (C) 2019 University of Skövde.
%% Written by Simon Butler as part of the LIM-IT project.
%% Distributed under the terms of the CC-BY-SA v3.0 Licence
%%
%% The rebuttal class is based on macros defined by
%% Friedemann Zenke and published in an example rebuttal at:
%% https://fzenke.net/index.php/goodies/latex-rebuttal/
%% Copyright (C) 2019 Friedemann Zenke, fzenke.net
%% Based on examples by Dirk Eddelbuettel, Fran and others from
%% https://tex.stackexchange.com/questions/2317/latex-style-or-macro-for-detailed-response-to-referee-report
%% Licensed under cc by-sa 3.0 with attribution required.
\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{rebuttal}[2019/02/06 v0.1.0 (S. Butler)]
\RequirePackage{xifthen}
\newcommand{\rebuttalskip}{\bigskip}
\DeclareOption{table}{
\renewcommand{\rebuttalskip}{}
}
\DeclareOption{plain}{
\renewcommand{\rebuttalskip}{\bigskip}
}
\ExecuteOptions{plain}
\ProcessOptions
% define counters for reviewers and their points
\newcounter{reviewer}
\setcounter{reviewer}{0}
\newcounter{point}[reviewer]
\setcounter{point}{0}
% Format the reviewer/point reference.
\renewcommand{\thepoint}{\thereviewer.\arabic{point}}
% Heading for reviewer section
\newcommand{\reviewersection}{\stepcounter{reviewer} \bigskip \hrule
\section*{Reviewer \thereviewer}}
\newenvironment{point}{%
\refstepcounter{point}{\rebuttalskip\noindent\textbf{Point~\thepoint}}:\ %
}{%
\par%
}%
\newenvironment{response}{%
\noindent\begin{sf}\textbf{Response}:\ %
} {%
\end{sf}\par%
}%
%% Short point and response
\newcommand{\shortpoint}[1]{\refstepcounter{point}{\rebuttalskip\noindent\textbf{Point~\thepoint}}:\ #1\par }
\newcommand{\shortresponse}[1]{\noindent\begin{sf}\textbf{Response}:\ #1 \end{sf}\par}
\endinput