-
Notifications
You must be signed in to change notification settings - Fork 23
/
Copy pathreviewresponse.cls
64 lines (53 loc) · 1.67 KB
/
reviewresponse.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
% Copyright Javier Sánchez-Monedero.
% Please report bugs and suggestions to (jsanchezm at uco.es)
%
% This document is released under a Creative Commons Licence
% CC-BY-SA (http://creativecommons.org/licenses/by-sa/3.0/)
%
\ProvidesClass{reviewresponse}[2014/01/29]
\NeedsTeXFormat{LaTeX2e}
\DeclareOption*{\InputIfFileExists{\CurrentOption}{}{%
\PassOptionsToClass{\CurrentOption}{article}}}
\ProcessOptions \relax
\LoadClass{article}
\RequirePackage{a4wide}
\RequirePackage{palatino}
\RequirePackage{verbatim}
\RequirePackage{color}
\RequirePackage{url}
\RequirePackage{fancyhdr}
\RequirePackage{fancybox}
\RequirePackage{fancyvrb}
\RequirePackage[authoryear]{natbib}
\RequirePackage{tcolorbox}
\RequirePackage[parfill]{parskip}
%%%%%%%%%%%% headings setup %%%%%%%%%%%%
\pagestyle{fancy}
% clear styles
\fancyhf{}
% odd pages -> chapter name
\fancyhead[LO]{\leftmark}
% even pages
\fancyhead[RE]{\myJournal -- \myShortTitle}
% odd/even pages
\fancyhead[RO,LE]{\thepage}
\renewcommand{\sectionmark}[1]{\markboth{\textbf{\thesection. #1}}{}}
%\renewcommand{\subsectionmark}[1]{\markright{\textbf{\thesection. #1}}}
% line under headings
\renewcommand{\headrulewidth}{0.6pt}
% line over foot
%\renewcommand{\footrulewidth}{0.6pt}
% increases heading weight
\setlength{\headheight}{1.5\headheight}
\fancyfoot{}
\newcommand{\newtext}[1]{\textcolor{blue}{#1}}
% New revisor comment command
\newcounter{comments}[section]
\newcommand{\rcomment}[1]
{
\stepcounter{comments}
\addcontentsline{toc}{subsection}{Reviewer \arabic{section} Comment \arabic{comments}}
\begin{tcolorbox}[colback=blue!5,colframe=white!45!black,title=Reviewer \arabic{section} Comment \arabic{comments}]
#1
\end{tcolorbox}
}