Skip to content

Commit

Permalink
Fix LaTeX error on overleaf when switching paper modes
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 16, 2024
1 parent 1ce8367 commit 1a9acb7
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 @@ -337,7 +337,15 @@
\def\subsection{\@ifstar\cvprssubsect\cvprsubsect}

%% --------- 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 1a9acb7

Please sign in to comment.