Skip to content

Commit

Permalink
Fix LaTeX error on Overleaf when switching paper modes (#50)
Browse files Browse the repository at this point in the history
In review and rebuttal mode, we use the "lineno" package for numbering lines. When switching to a different mode, the "`\@LN`" macro may remain in cached `.aux` files, leading to build errors (#49).

Defining the macro as empty fixes that (https://tex.stackexchange.com/a/125779).
  • Loading branch information
cr333 authored Oct 17, 2024
1 parent f66f1ef commit 807fc55
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion cvpr.sty
Original file line number Diff line number Diff line change
Expand Up @@ -344,7 +344,15 @@
\def\subsubsection{\@ifstar\cvprssubsubsect\cvprsubsubsect}

%% --------- Page background marks: Ruler and confidentiality (only for review and rebuttal)
\iftoggle{cvprfinal}{}{
\iftoggle{cvprfinal}{
% In review and rebuttal mode, we use the "lineno" package for numbering lines.
% When switching to a different mode, the "\@LN" macro may remain in cached .aux files,
% leading to build errors (https://github.com/cvpr-org/author-kit/issues/49).
% Defining the macro as empty fixes that (https://tex.stackexchange.com/a/125779).
\makeatletter
\providecommand{\@LN}[2]{}
\makeatother
}{
% ----- define vruler
\makeatletter
\newbox\cvprrulerbox
Expand Down

0 comments on commit 807fc55

Please sign in to comment.