% ============================================================
% Response Letter Template (TPAMI / IEEE-style)
% GUIDELINE FOR USERS
%
% Philosophy:
% - Be respectful and professional.
% - Address EVERY comment explicitly.
% - Make changes easy to find using highlighted revision blocks.
% - Provide line & page numbers back to the main paper.
%
% Document structure:
% 1) Title page + meta info (ID, title, authors, date)
% 2) Notes of Format – explain colors / conventions
% 3) Sections to editors:
% \eicsection{...} – To Editor-in-Chief
% \aesection{...} – To Associate Editor
% 4) One section per reviewer:
% \reviewersection{Short summary or general remarks}
% 5) For each reviewer comment:
% \begin{point}
% (Paste the reviewer’s comment here, in BLUE)
% \end{point}
% \begin{reply}
% (Your reply in BLACK)
% \end{reply}
% \begin{revision}{Optional short title}
% (Copy the revised manuscript text here. It is highlighted.)
% \end{revision}
%
% Key environments and commands:
%
% - Reviewer comment:
% \begin{point}
% (Reviewer text)
% \end{point}
%
% - Your reply:
% \begin{reply}
% (Your explanation, reasoning, new results, etc.)
% \end{reply}
%
% - Revision snippet (highlighted, line+page included automatically):
% \begin{revision}{Short description of the change}
% (Exact text from the revised manuscript, including equations,
% figures, or tables.)
% \end{revision}
%
% Inside a revision block you can safely use:
% - Normal text, equations, algorithms
% - Figures and tables:
% \begin{figure}
% ...
% \MSfigcaption{fig:label}{Caption text}{}
% \end{figure}
%
% \begin{table}
% ...
% \MStabcaption{tab:label}{Caption text}
% \end{table}
%
% Figures / tables are rendered as non-floating blocks inside the
% tcolorbox, with consistent caption style.
%
% - Cross-referencing the main paper:
% * This template uses \externaldocument{refs} to read labels
% from the main paper (refs.aux).
% * Use \cref{fig:xxx}, \cref{tab:yyy}, \cref{eq:zzz} in replies.
% * \MSfigcaption and \MStabcaption automatically show where the
% figure/table appears in the main paper:
% “Fig. xx is on Page yy of the main paper”.
%
% - Line & Page helper:
% The macro \linepage{<line>}{<page>} prints a right-aligned note:
% “Main Paper Location — Line <line>, Page <page>”
% This is called automatically at the end of each revision block
% when the corresponding label exists.
%
% Recommended writing pattern for each point:
%
% \begin{point}
% (Paste the original comment. You can split it into items if long.)
% \end{point}
% \begin{reply}
% 1) Thank the reviewer, acknowledge the issue.
% 2) Explain your understanding of the concern.
% 3) Provide technical clarification / new experiments / analysis.
% 4) Explicitly say what you changed in the manuscript.
% 5) Refer to the revision snippet below if needed.
% \end{reply}
% \begin{revision}{Short title (e.g., “Robustness to Imbalance”)}
% (Paste the exact revised text from the main paper, including
% equations, figures, tables. The text here should match the final
% main manuscript version.)
% \end{revision}
%
% Typical workflow:
% - Step 1: Read all reviews and AE summary.
% - Step 2: For each reviewer, create a \reviewersection{...}.
% - Step 3: For each numbered comment, use a point–reply–revision trio.
% - Step 4: Update the main paper and copy the final paragraphs /
% sections into the corresponding revision blocks.
% - Step 5: Ensure all labels (fig, tab, eq) exist in the main paper
% and refs.aux is up to date.
% - Step 6: Compile and check that:
% * Colors are correct (blue for comments, black for replies,
% red/highlightcolor for revisions),
% * Cross-references (\cref, \ref, \pageref) are correct,
% * Line/page notes appear at the end of revision boxes.
%
% Notes:
% - This template is tuned for journals like TPAMI / IEEE where a
% detailed, carefully cross-referenced response is appreciated.
% - You can easily adapt it to other venues by:
% * Updating colors or wording in \linepage
% * Adjusting section titles in \eicsection, \aesection, etc.
% - Try to keep replies concise but precise. Use revision blocks to show
% the *final* text instead of in-reply pseudo-code or sketches.
%
% ============================================================
% LaTeX rebuttal letter example.
\documentclass[12pt]{article}
\usepackage[utf8]{inputenc}
\usepackage{fullpage}
\usepackage{framed} % to add frames around comments
\usepackage[table]{xcolor}
\usepackage{color}
\usepackage{soul}
\usepackage{makecell}
\usepackage{pifont}
\usepackage{multirow}
\usepackage{amssymb}
\usepackage{amsmath}
\usepackage{amsthm}
\usepackage{amsfonts}
\usepackage{mathrsfs}
\usepackage{bm}
\usepackage{booktabs}
\usepackage{pdfpages}
\usepackage{caption}
\usepackage{colortbl}
\usepackage{overpic}
\usepackage{blindtext}
\usepackage{times}
\usepackage{xifthen}
\usepackage{lineno}
\usepackage{etoolbox}
% color box
\usepackage[most]{tcolorbox}
\tcbuselibrary{skins, breakable, theorems}
% dashed line
\usepackage{arydshln}
\setlength\dashlinedash{1pt}
\setlength\dashlinegap{2pt}
\setlength\arrayrulewidth{1pt}
% title format
\usepackage{setspace}
\usepackage{titlesec}
\titleformat{\section}{\normalfont\bfseries}{\thesection}{1em}{\setstretch{0.1}}
\titleformat{\subsection}{\normalfont\itshape}{\color{blue} \thesubsection}{0.5em}{\setstretch{0.1}}
% 1.5 spacing for the line
\renewcommand{\baselinestretch}{1.5}
% subsection with alphabets
\renewcommand{\thesubsection}{\alph{subsection})}
% default figure folders
\usepackage{graphicx}
\graphicspath{{figures/}{figs/}}
% algorithm
\usepackage[ruled]{algorithm2e}
\newcommand{\mycommfont}[1]{\footnotesize\ttfamily\color{green!65!blue}{#1}}
\SetCommentSty{mycommfont}
\newcommand{\mathcolorbox}[2]{\colorbox{#1}{$\displaystyle #2$}}
\definecolor{cvprblue}{rgb}{0.21,0.49,0.74}
\colorlet{cvprblue}{blue}
\newcommand{\myPara}[1]{\vspace{.0in}\noindent\textbf{#1}.\ }
% hyperref
\usepackage[colorlinks,
bookmarks = True,
linkcolor = cvprblue,
anchorcolor = blue,
citecolor = cvprblue,
CJKbookmarks = True
]{hyperref}
\usepackage[]{cleveref}
\crefname{algocf}{alg.}{algs.}
\Crefname{line}{Algorithm}{Algorithms}
\crefformat{footnote}{#2\footnotemark[#1]#3}
\crefname{equation}{Eq.}{Eqs.}
\crefname{figure}{Fig.}{Figs.}
\crefname{table}{Tab.}{Tabs.}
\Crefname{table}{Table}{Tables}
\crefname{section}{Sec.}{Secs.}
\Crefname{section}{Section}{Sections}
\crefname{algocf}{alg.}{algs.}
\Crefname{line}{Algorithm}{Algorithms}
\crefformat{footnote}{#2\footnotemark[#1]#3}
% icons
\usepackage[misc]{ifsym}
\usepackage{bbding}
% ========== Version ==========
\gdef\version{r1}
% ========== external reference ==========
\usepackage{xr}
% 把 refs 换成你正稿主 tex 文件名(不带 .tex),例如 \externaldocument{TPAMI_main}
\externaldocument{refs}
% 可选:提前读 .aux
\makeatletter
\InputIfFileExists{refs.aux}{}{}
\makeatother
% ========== counters ==========
\newcounter{reviewer}
\setcounter{reviewer}{0}
\newcounter{point}
\setcounter{point}{0}
\newcounter{rev}
\setcounter{rev}{0}
\renewcommand{\thepoint}{C\thereviewer.\arabic{point}} % reviewer point number
\renewcommand{\therev}{\alph{rev}} % revision number
% ========== sections ==========
\newcommand{\eicsection}[1]{%
\newpage
\phantomsection
\addcontentsline{toc}{section}{To Editor-in-Chief}%
\section*{To Editor-in-Chief}%
\hrule
\hrule
\bigskip
\color{blue}%
\ifblank{#1}{}{%
\textbf{Summary:} #1%
}%
\color{black}%
}
\newcommand{\aesection}[1]{%
\newpage
\phantomsection
\addcontentsline{toc}{section}{To Associate Editor}%
\section*{To Associate Editor}%
\hrule
\hrule
\bigskip
\color{blue}%
\ifblank{#1}{}{%
\textbf{Summary:} #1%
}%
\color{black}%
}
\newcommand{\reviewersection}[1]{%
\setcounter{point}{0}%
\stepcounter{reviewer}%
\newpage
\phantomsection
\addcontentsline{toc}{section}{To Reviewer \thereviewer}%
\section*{To Reviewer \thereviewer}%
\hrule
\hrule
\bigskip
\color{blue}%
\ifblank{#1}{}{%
\textbf{Summary:} #1%
}%
\color{black}%
}
% ========== environments: point / revision / reply ==========
\newenvironment{point}{%
\refstepcounter{point}%
\bigskip
\noindent{\textbf{Reviewer~Comment~\thepoint}} ---\color{blue}%
\phantomsection
\addcontentsline{toc}{subsection}{Reviewer Comment \thepoint}%
\label{comment:\thepoint}%
}{\par}
\colorlet{highlightcolor}{red!75!black}
\makeatletter
\providecommand{\nicematrix@redefine@check@rerun}{}
\makeatother
\let\OrigCaptionMS\caption
\newenvironment{revision}[1]{%
\medskip
\refstepcounter{rev}%
\ifblank{#1}{%
\begin{tcolorbox}[
breakable,
enhanced,
coltext=highlightcolor,
title=Revision~\thepoint%
\ifnum\value{rev}>1 -\therev\fi
]%
}{%
\begin{tcolorbox}[
breakable,
enhanced,
coltext=highlightcolor,
title=Revision~\thepoint%
\ifnum\value{rev}>0 \therev\fi
: #1
]%
}%
}{%
% ------- 以下保持你原来的结束逻辑 -------
\medskip
\ifnum\value{rev}>1
\ifcsdef{r@\version:\thepoint-\therev}{%
\linepage{\ref{\version:\thepoint-\therev}}{\pageref{\version:\thepoint-\therev}}%
}{}%
\else
\ifcsdef{r@\version:\thepoint}{%
\linepage{\ref{\version:\thepoint}}{\pageref{\version:\thepoint}}%
}{}%
\fi
\end{tcolorbox}
\medskip
}
\newenvironment{reply}{%
\setcounter{rev}{0}%
\color{black}%
\medskip
\noindent\textbf{Reply}:\ %
}{%
\medskip
}
% ========== Line & Page ==========
\newcommand{\linepage}[2]{%
\par\rightline{\bf\color{black}Main Paper Location — Line~#1, Page~#2}%
}
\newcommand{\pageonly}[1]{%
\par\rightline{\color{black}\textbf{Page #1}}%
}
% ========== footnote helpers ==========
\ifthenelse{\isundefined{\footref}}{%
\newcommand{\footref}[1]{%
$^{\ref{#1}}$%
}%
}{}
\newcommand{\footlabel}[2]{%
\addtocounter{footnote}{1}%
\footnotetext[\thefootnote]{%
\addtocounter{footnote}{-1}%
\refstepcounter{footnote}\label{#1}%
~#2%
}%
{\footref{#1}}%
}
% ========== 图表样式 ==========
\usepackage{subcaption}
\usepackage{refcount} % 从正稿读取编号
\DeclareCaptionLabelSeparator{quadsep}{\quad}
\captionsetup[figure]{font={footnotesize,rm}}
\renewcommand\thesubfigure{(\alph{subfigure})}
\captionsetup[table]{font={footnotesize,sc},labelsep=quadsep,justification=centering}
% ========== 在 revision 中允许非浮动 figure/table ==========
\newif\ifinrevision
\inrevisionfalse
\AtBeginEnvironment{revision}{\inrevisiontrue}
\AtEndEnvironment{revision}{\inrevisionfalse}
\let\origfigure\figure
\let\endorigfigure\endfigure
\let\origtable\table
\let\endorigtable\endtable
\renewenvironment{figure}[1][]{%
\ifinrevision
\par\medskip\noindent
\begin{minipage}{\linewidth}%
\captionsetup{type=figure}%
\else
\origfigure[#1]%
\fi
}{%
\ifinrevision
\end{minipage}%
\par\medskip
\else
\endorigfigure
\fi
}
\renewenvironment{table}[1][]{%
\ifinrevision
\par\medskip\noindent
\begin{minipage}{\linewidth}%
\captionsetup{type=table}%
\else
\origtable[#1]%
\fi
}{%
\ifinrevision
\end{minipage}%
\par\medskip
\else
\endorigtable
\fi
}
% ---------- figure* in revision ----------
\makeatletter
\renewenvironment{figure*}[1][]{%
\ifinrevision
\par\medskip\noindent
\begin{minipage}{\linewidth}%
\captionsetup{type=figure}%
\else
\begin{figure}[#1]%
\fi
}{%
\ifinrevision
\end{minipage}%
\par\medskip
\else
\end{figure}%
\fi
}
\renewenvironment{table*}[1][]{%
\ifinrevision
\par\medskip\noindent
\begin{minipage}{\linewidth}%
\captionsetup{type=table}%
\else
\begin{table}[#1]%
\fi
}{%
\ifinrevision
\end{minipage}%
\par\medskip
\else
\end{table}%
\fi
}
\makeatother
% ========== 用正稿编号的 caption 命令 ==========
\newcommand{\MSfigcaption}[3]{%
\ifcsdef{r@#1}{%
\caption*{Fig.~\ref*{#1}:\color{highlightcolor}~#2
{\color{gray}(\textbf{Fig.~\ref{#1}} is on \textbf{Page~\pageref{#1}} of the main paper)}%
}%
}{%
\caption{#2}%
}%
}
\newcommand{\MStabcaption}[2]{%
\ifcsdef{r@#1}{%
\caption*{\textsc{TABLE}~\ref*{#1}\quad\color{highlightcolor}#2
{\color{gray}\rm(\textbf{\cref{#1}} is on \textbf{Page~\pageref{#1}} of the main paper)}%
}%
}{%
\caption{#2}%
}%
}
% ============= 用正稿编号的公式编号(无超链接) =============
\newcommand{\MSeqlabel}[1]{%
\ifcsdef{r@#1}{%
\tag*{(\ref*{#1})}%
}{%
\refstepcounter{equation}%
\tag{\theequation}%
}%
}
\newcommand{\MSlinelabel}[1]{}
%%%%%%%%%%%%%%%%%% Paper Information (Fill Manually) %%%%%%%%%%%%%%%%%%
% --------- Authors (names only, affiliations shown via footnotes) ----------
\def\myauthor{
First Author\footlabel{aff1}{Affiliation 1},\,
Second Author\footlabel{aff2}{Affiliation 2},\,
Third Author\footlabel{aff3}{Affiliation 3},\,
Fourth Author\footref{aff1},\,
Fifth Author\footref{aff2},\,
Sixth Author\footref{aff3}$^{,}$\Envelope
}
% --------- Corresponding Author(s) ----------
\def\mycoauthor{The Authors}
% --------- Title of the Manuscript ----------
\def\mytitle{
\textit{[Insert Your Manuscript Title Here]}
}
% --------- Article / Submission Number ----------
\def\myarticleno{[Manuscript-ID or Submission Number]}
% --------- Date ----------
\def\mydate{\today}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\begin{document}
\begin{titlepage}
\newpage
\noindent
\textbf{\myarticleno} \\
\textit{\mytitle} \\
\myauthor
\begin{center}
\vspace{1cm}
\Large \textbf{Response to Editors \& Reviewers}
\vspace{1cm}
\end{center}
\begin{tcolorbox}[breakable, title = To editors and reviewers]
Dear editors and reviewers,
\quad Our sincere thanks go out to the editors and reviewers who reviewed our manuscript and provided constructive comments that significantly improved it. We have made detailed revisions, and the main changes are:
\begin{itemize}
\setlength{\parskip}{0pt}
\item (Summarize major change 1)
\item (Summarize major change 2)
\item (Summarize major change 3)
\end{itemize}
Best regards, \\
\mycoauthor \\
\mydate
\end{tcolorbox}
\end{titlepage}
% 目录
\tableofcontents
\newpage
% format notes
\section*{Notes of Format}
\phantomsection
\addcontentsline{toc}{section}{Notes of Format}%
\noindent Dear all,
\vspace{0.8em}
\indent We sincerely thank you once again for reviewing and processing our manuscript, and we greatly appreciate the constructive comments and valuable suggestions provided. Following these insightful remarks, we have thoroughly revised the manuscript.
Below is our point-by-point response to the editors and reviewers. For clarity, we first reproduce each comment and then provide our corresponding response and the revisions made. Reviewer and editor comments are shown in \textcolor{blue}{blue}, while our responses appear in black. All modifications in the revised manuscript are highlighted in {\color{red!80!black} red} to facilitate cross-referencing.
For convenience, the formatting conventions used throughout this response are summarized:
\begin{table}[h]
\centering
\small
\label{tab:format-notation}
\vspace{0.5em}
\begin{tabular}{ll}
\textbf{Style / Color} & \textbf{Meaning} \\
\midrule
\textcolor{blue}{Blue text} & Reviewer or editor comments \\
Black text & Authors' responses \\
\fcolorbox{black}{gray!10}{\color{red!80!black}Red text in manuscript} & Revisions in the revised manuscript \\
\textit{Italic text} & Quoted expressions when appropriate \\
\textbf{Bold text} & Emphasis on key clarifications \\
\end{tabular}
\end{table}
\vspace{1.2em}
\noindent Best regards,\\
\noindent \mycoauthor\\
\noindent \mydate
% 接下来按需填充 \eicsection, \aesection, \reviewersection, point/reply/revision 等内容
% ===================== Guide: Editor-in-Chief Section =====================
\newpage
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% =========================== EIC SECTION ====================================
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\eicsection{
The manuscript requires substantial revisions based on reviewer comments.
Please address methodological clarity, dataset issues, and experimental justification.
}
\begin{reply}
We sincerely thank the Editor-in-Chief for handling our manuscript.
We have carefully addressed all comments and substantially improved the paper.
A summary of major revisions:
\begin{itemize}
\item Clearer methodological explanation,
\item Additional experiments and baselines,
\item Expanded dataset analysis (imbalance, distributions),
\item Improved figures and captions.
\end{itemize}
\end{reply}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% =========================== AE SECTION =====================================
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\aesection{
Both reviewers raised important concerns about the methodology and evaluation.
Please provide clearer explanations and more comprehensive experiments.
}
\begin{reply}
We thank the Associate Editor for the helpful summary.
All concerns raised by reviewers have been addressed,
and detailed revisions are shown in each corresponding item below.
\end{reply}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% =========================== REVIEWER 1 =====================================
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\reviewersection{
The method is interesting but key components need to be clarified further.
}
% ---------- Point 1 ----------
\begin{point}
The two-stage alignment procedure is not sufficiently justified.
\end{point}
\begin{reply}
Thank you for the comment.
We rewrote the methodology section to clarify why visual–visual alignment
precedes visual–text alignment. The updated text:
\begin{revision}{Two-stage alignment clarification}
\input{r1/sample}
\end{revision}
\end{reply}
% ---------- Point 2 ----------
\begin{point}
The paper should discuss limitations and potential failure cases.
\end{point}
\begin{reply}
We agree. We added a new paragraph summarizing limitations.
Updated content:
\begin{revision}{Limitations and failure modes}
\input{r1/sample_tab}
\end{revision}
\end{reply}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% =========================== REVIEWER 2 =====================================
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\reviewersection{
The experimental section lacks robustness evaluations and updated baselines.
}
% ---------- Point 1 ----------
\begin{point}
Class imbalance appears severe. How is it addressed?
\end{point}
\begin{reply}
We added a detailed imbalance analysis using a diversity index \(\alpha\).
New subsection:
\begin{revision}{Imbalance analysis}
\input{r1/sample}
\end{revision}
\end{reply}
% ---------- Point 2 ----------
\begin{point}
Please update Table~3 with more recent 2024–2025 baselines.
\end{point}
\begin{reply}
We added three new baselines and updated the table:
\begin{revision}{Updated comparison table}
\begin{center}
\begin{minipage}{0.85\linewidth}
\input{r1/sample_tab}
\end{minipage}
\end{center}
\end{revision}
\end{reply}
% ---------- Point 3 ----------
\begin{point}
Figures are not clear. Please enlarge fonts and improve resolution.
\end{point}
\begin{reply}
We regenerated all figures. Example improved figure:
\begin{revision}{Updated figure placeholder}
\begin{figure}[!t]
\centering
\fbox{\rule{0pt}{1.8in} \rule{0.85\linewidth}{0pt}} % placeholder box
\MSfigcaption{fig:placeholder}{Placeholder improved figure}{}
\end{figure}
\end{revision}
\end{reply}
% guide
\input{guide}
\end{document}