-
Notifications
You must be signed in to change notification settings - Fork 0
/
ELSAJournalUtility.tex
133 lines (111 loc) · 3.69 KB
/
ELSAJournalUtility.tex
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
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Copyright (c) 2022 Kuan-Yu Chang
%
% This file may be distributed and/or modified
%
% 1. under the LaTeX Project Public License and/or
% 2. under the GNU Public License.
%
% The latest version of this file can be found at:
% https://github.com/elsa-lab/ELSAJournalUtility
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Required Packages
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\usepackage{changepage}
\usepackage{datetime}
\usepackage{tabularx}
\usepackage{xcolor}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Cover Letter
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Base
\newenvironment{base_cover_letter}[3]{
\begin{titlepage}
\def\paperTitle{#1}
\def\journalName{#2}
\def\authorName{#3}
\setlength{\parindent}{0pt}
\setlength{\parskip}{1.5em}
\fontsize{10pt}{12pt}\selectfont
\begin{center}
\LARGE \textbf{Cover Letter}
\end{center}
\bigskip
}{
Sincerely, \\
\authorName{}
\end{titlepage}
}
% Anonymous
\newenvironment{anonymous_cover_letter}[3]{
\begin{base_cover_letter}{#1}{#2}
{Authors of #3}
Dear Editors and Reviewers,
}{\end{base_cover_letter}}
% Normal
\newenvironment{cover_letter}[6]{
\begin{base_cover_letter}{#1}{#2}{#3}
\newdate{letterDate}{#5}{#4}{#6}
\begin{table}[h]
\fontsize{10pt}{12pt}\selectfont
\begin{tabularx}{\linewidth}{lX}
\textbf{Authors:} \\
& \authorName{} \\
\textbf{Address:} \\
& Department of Computer Science, \\
& National Tsing Hua University, \\
& No. 101, Section 2, Kuang-Fu Road, \\
& Hsinchu City 30013, \\
& Taiwan \\
\textbf{Phone:} \\
& +886-3-5731308 \\
\textbf{Email:} \\
& cylee@cs.nthu.edu.tw
\end{tabularx}
\end{table}
\hfill\usdate\displaydate{letterDate}
Dear Editors and Reviewers,
}{\end{base_cover_letter}}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Revision Highlighting
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Color definition
\AtBeginDocument{\colorlet{defaultcolor}{.}}
\newcommand{\todocolor}{orange}
\newcommand{\fixgrammarcolor}{brown}
\newcommand{\revisioncolor}{red}
\newcommand{\additioncolor}{blue}
% Commands to enable highlighting
\newcommand{\todotext}[1]{%
\color{\todocolor}{}[TODO] [#1]\color{defaultcolor}{}}
\newcommand{\todo}{%
\color{\todocolor}{}[TODO]\color{defaultcolor}{}}
\newcommand{\fixgrammar}[1]{%
\color{\fixgrammarcolor}{}#1\color{defaultcolor}{}}
\newcommand{\revision}[1]{%
\color{\revisioncolor}{}#1\color{defaultcolor}{}}
\newcommand{\addition}[1]{%
\color{\additioncolor}{}#1\color{defaultcolor}{}}
% Command to disable all highlighting
\newcommand{\nohighlight}{
\renewcommand{\todocolor}{defaultcolor}
\renewcommand{\additioncolor}{defaultcolor}
\renewcommand{\fixgrammarcolor}{defaultcolor}
\renewcommand{\revisioncolor}{defaultcolor}
}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Responses to Reviewers
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\newcommand{\commenter}[1]{%
\section*{\underline{\makebox[\textwidth][l]{\Large #1}}}}
\newenvironment{reviewer_comment}{
\bigskip
\subsubsection*{%
\textbf{\textit{\underline{Comments to the Author(s)}}}}
\begin{adjustwidth}{1cm}{}
\smallskip\bfseries\itshape
}{\end{adjustwidth}}
\newenvironment{author_response}{
\bigskip
\textbf{Response:}}{}