Skip to content

Commit c6d4c60

Browse files
committedMay 17, 2024·
Remove use of letltxmacro
1 parent 3b389d9 commit c6d4c60

File tree

2 files changed

+6
-7
lines changed

2 files changed

+6
-7
lines changed
 

‎newrevisor.sty

+5-6
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@
2626
%
2727
% See full documentation: https://github.com/MLopez-Ibanez/revision
2828
\RequirePackage{iftex}
29-
\RequirePackage{letltxmacro} % Replace with https://anorien.csc.warwick.ac.uk/mirrors/CTAN/macros/latex/contrib/l3packages/xparse.pdf
3029
\RequirePackage{etoolbox} % \csuse \ifdef
3130
\RequirePackage{xparse}
3231
\PassOptionsToPackage{dvipsnames}{xcolor}
@@ -96,19 +95,19 @@
9695
}
9796
\NewDocumentCommand{\mysout}{+m}{%
9897
% Force inline comments when deleting text, otherwise we get weird errors.
99-
\LetLtxMacro\origrevcomment\newrevisor@RevComment
98+
\NewCommandCopy\origrevcomment\newrevisor@RevComment
10099
\let\newrevisor@RevComment\newrevisor@RevInlineComment
101-
\LetLtxMacro\origref\ref% Sometimes \ref produces Extra }, or forgotten \endgroup.
100+
\NewCommandCopy\origref\ref% Sometimes \ref produces Extra }, or forgotten \endgroup.
102101
\renewcommand{\ref}[1]{\mbox{\origref{##1}}}%
103-
\LetLtxMacro\origcite\cite%
102+
\NewCommandCopy\origcite\cite%
104103
\renewcommand{\cite}[2][]{\mbox{\origcite[##1]{##2}}}%
105104
%\makeatletter%
106105
\@ifundefined{citet}{}{%
107-
\LetLtxMacro\origcitet\citet%
106+
\NewCommandCopy\origcitet\citet%
108107
\renewcommand{\citet}[2][]{\mbox{\origcitet[##1]{##2}}}%
109108
}%
110109
\@ifundefined{citep}{}{%
111-
\LetLtxMacro\origcitep\citep%
110+
\NewCommandCopy\origcitep\citep%
112111
\renewcommand{\citep}[2][]{\mbox{\origcitep[##1]{##2}}}%
113112
}%
114113
% \makeatother%

‎test

+1-1
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ check_snapshot() {
5151
fi
5252
diff -q ${old} ${new} > /dev/null
5353
if [ $? -ne 0 ]; then
54-
echo "Error: ${old} and ${new} are different"
54+
echo "Error: ${old} and ${new} are different (use diffimg to visualize the differences)"
5555
ERROR=1
5656
else
5757
rm -f ${new}

0 commit comments

Comments
 (0)
Please sign in to comment.