summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/jourrr/jourrr.cls
blob: f72d7077fcf44e2eb080e8e6ba7a1703cb8e8161 (plain)
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
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
\NeedsTeXFormat{LaTeX2e}
\ProvidesClass{jourrr}[2023/10/14 A LaTeX template for a journal rebuttal letter]

% load class
\LoadClass[11pt,a4paper]{article} % Font size and paper type

% include dependencies
\RequirePackage{graphicx}
\RequirePackage{fancyhdr}
\RequirePackage{parskip}
\RequirePackage[utf8]{inputenc}
\RequirePackage[english]{babel}
\RequirePackage[iso,american]{isodate}
\RequirePackage{fontawesome5}
\RequirePackage{geometry}
\RequirePackage{wasysym} 
\RequirePackage{array}
\RequirePackage{xcolor}
\RequirePackage{bookmark}

% no indent for whole document
\setlength\parindent{0pt}
\DeclareOption*{\PassOptionsToClass{\CurrentOption}{article}}
%----------------------------------------------------------------------
% process options
\ProcessOptions\relax

% styling of document
%----------------------------------------------------------------------

% set margins
 \newgeometry{ % Defaults for a4
    left=35mm, % default 25
    right=35mm, % default 25
    top=20mm, % default 20
    bottom=45mm} % default 20
\savegeometry{title}
 \newgeometry{ % Defaults for a4
    left=25mm, % default 25
    right=25mm, % default 25
    top=20mm, % default 20
    bottom=20mm} % default 20
\savegeometry{doc}

\setlength{\headheight}{42.0pt}

% set a little indendation for paragraphs
\setlength{\parindent}{0pt}

% space between paragraphs
\setlength{\parskip}{1em}

%----------------------------------------------------------------------
% new command for the information of author
\newcommand{\responseheader}[1]{
%\noindent
\fancyfoot{}
\renewcommand{\headrulewidth}{0pt}
\renewcommand{\footrulewidth}{0pt}

\pagestyle{fancy}
  \fancyhf{}
  % show in the middle
  \fancyhead[C]{\leavevmode\large
  \begin{tabular}[t]{c@{}}
    #1
  \end{tabular}}
}


%----------------------------------------------------------------------
% Your data
%----------------------------------------------------------------------
% % Name and Surname of the reviewer
\def\NameSurname#1{\def\@NameSurname{#1}}
\newcommand{\pNameSurname}{\@NameSurname}
%----------------------------------------------------------------------
% Submission data
%----------------------------------------------------------------------

% journal name
\def\JournalName#1{\def\@JournalName{#1}}
\newcommand{\pJournalName}{\@JournalName}

% title of your manuscript
\def\Title#1{\def\@Title{#1}}
\newcommand{\pTitle}{\@Title}

% manuscript Id
\def\ManuscriptID#1{\def\@ManuscriptID{#1}}
\newcommand{\pManuscriptID}{\@ManuscriptID}

% name of the Editor
\def\toEditor#1{\def\@toEditor{#1}}
\newcommand{\ptoEditor}{\@toEditor}

% name of the Editor
\def\Editor#1{\def\@Editor{#1}}
\newcommand{\pEditor}{\@Editor}

% name of the Associate Editor
\def\AssociateEditor#1{\def\@AssociateEditor{#1}}
\newcommand{\pAssociateEditor}{\@AssociateEditor}

% name of the Special issue (optional)
\def\SpecialIssue#1{\def\@SpecialIssue{#1}}
\newcommand{\pSpecialIssue}{\@SpecialIssue}


%
% FIRST PART
%

% Addressing the Person
\def\PersonAddressing#1{\def\@PersonAddressing{#1}}
\newcommand{\pPersonAddressing}{\@PersonAddressing}

% We thank editor
\def\Introduction#1{\def\@Introduction{#1}}
\newcommand{\pIntroduction}{\@Introduction}

% We thank reviewers
\def\ReviewerThank#1{\def\@ReviewerThank{#1}}
\newcommand{\pReviewerThank}{\@ReviewerThank}

% Valediction - Ending of the letter
\def\valediction#1{\def\@valediction{#1}}
\newcommand{\pvalediction}{\@valediction}

% Different predefined valedictions
\newcommand{\yourssincerely}[1]{Yours sincerely,\\}
\newcommand{\yoursfaithfully}[1]{Yours faithfully,\\}
\newcommand{\yourstruly}[1]{Yours truly,\\}
\newcommand{\bestregards}[1]{Best regards,\\}

% Signature
\def\signature#1{\def\@signature{#1}}
\newcommand{\psignature}{\@signature}

% SignaturePath
\def\signaturePath#1{\def\@signaturePath{#1}}
\newcommand{\pSignaturePath}{\@signaturePath}

% Show Signature command
\def \showSignature#1{
\vspace{-2cm}\begin{flushright}\includegraphics[width=4cm,height=4cm,keepaspectratio]{#1}\end{flushright}}

% Checkbox
\newcommand{\checkbox}{\Square} % Checkbox symbol command
\newcommand{\checkedbox}{\CheckedBox} % Checked checkbox symbol command

\newcommand{\completed}[1]{\ifthenelse{\equal{#1}{true}}{\rlap{{\checkedbox}}} {\hspace{0.6cm}\checkbox}} % if true - checked; else - unchecked (square)

% Page 2 - N commands

\newcounter{refereecounter}
\setcounter{refereecounter}{1}
\newcounter{commentcounter}
\setcounter{commentcounter}{0}
\newcounter{eiccommentcounter}
\setcounter{eiccommentcounter}{1}
\newcounter{aecommentcounter}
\setcounter{aecommentcounter}{1}

\newcommand{\referee}[0]{\underline{\large The authors’ reply to the Reviewer \therefereecounter:} \phantomsection \addcontentsline{toc}{section}{Author's reply to reviewer \therefereecounter} \\ \newline
\textbf{\Large Reviewer \therefereecounter:} \addtocounter{refereecounter}{1}\\\setcounter{commentcounter}{1}} 

\newcommand{\missingreferee}[0]{\addtocounter{refereecounter}{1}}

\newcommand{\response}[3]{%
  \noindent
  \begin{minipage}[t]{0.955\linewidth}
    \textbf{Response:} \color{#2}#3
  \end{minipage}%
  \hfill
  \begin{minipage}[t]{0.15\linewidth}
    {\Huge \completed{#1}}
  \end{minipage}
  \vspace{1em}  % adding some space after the command for separation
}

\newcommand{\comment}[1]{\textbf{Comment \thecommentcounter:} #1 \addtocounter{commentcounter}{1}}

% macros for responding editor/associate editor
\newcommand{\editorcomment}[1]{\textbf{Editor's Comment \theeiccommentcounter: } #1\addtocounter{eiccommentcounter}{1}}
\newcommand{\editorresponse}[0]{\underline{\large The authors’ reply to the Editor-in-Chief} \phantomsection \addcontentsline{toc}{section}{Editor-in-Chief}}

\newcommand{\associateeditorcomment}[1]{\textbf{Associate Editor's Comment \theaecommentcounter: } #1\addtocounter{aecommentcounter}{1}}
\newcommand{\associateeditorresponse}[0]{\underline{\large The authors’ reply to the Associate Editor} \phantomsection \addcontentsline{toc}{section}{Associate Editor}}