Skip to content

Commit

Permalink
Remove old patch for lineno
Browse files Browse the repository at this point in the history
  • Loading branch information
joppebos committed Nov 27, 2024
1 parent 417c1c8 commit 533d7cd
Showing 1 changed file with 2 additions and 23 deletions.
25 changes: 2 additions & 23 deletions iacrcc/iacrcc.cls
Original file line number Diff line number Diff line change
Expand Up @@ -1293,29 +1293,8 @@
\newcommand\IACR@linenumbers{%
% lineno: line numbers on paragraphs
\RequirePackage[mathlines]{lineno}
\def\linenumberfont{\normalfont\tiny\sffamily\color{gray}}
% Taken from http://phaseportrait.blogspot.fr/2007/08/lineno-and-amsmath-compatibility.html
\newcommand*\patchAmsMathEnvironmentForLineno[1]{%
\expandafter\let\csname old##1\expandafter\endcsname\csname ##1\endcsname
\expandafter\let\csname oldend##1\expandafter\endcsname\csname end##1\endcsname
\renewenvironment{##1}%
{\linenomathWithnumbersforAMS\csname old##1\endcsname}%
{\csname oldend##1\endcsname\endlinenomath}%
}%
\newcommand*\patchBothAmsMathEnvironmentsForLineno[1]{%
\patchAmsMathEnvironmentForLineno{##1}%
\patchAmsMathEnvironmentForLineno{##1*}%
}%
\AtBeginDocument{%
\linenumbers
\patchAmsMathEnvironmentForLineno{equation*}%
\patchBothAmsMathEnvironmentsForLineno{align}%
\patchBothAmsMathEnvironmentsForLineno{flalign}%
\patchBothAmsMathEnvironmentsForLineno{alignat}%
\patchBothAmsMathEnvironmentsForLineno{gather}%
\patchBothAmsMathEnvironmentsForLineno{multline}%
}
\RequirePackage[mathlines,sep=11pt,width=11pt]{lineno}
\linenumbers%
}
\ifcsstring{@IACRversion}{submission}{\IACR@linenumbers}{}
\ifcsstring{@IACRversion}{final}{%
Expand Down

0 comments on commit 533d7cd

Please sign in to comment.