[latex3-commits] [git/LaTeX3-latex3-hyperref] cleanup-patches: remove numexpr/dimexpr tests (fb6f68b)
Ulrike Fischer
fischer at troubleshooting-tex.de
Mon Feb 21 15:44:27 CET 2022
Repository : https://github.com/latex3/hyperref
On branch : cleanup-patches
Link : https://github.com/latex3/hyperref/commit/fb6f68bb634977853e84dda0598a722e4ab30cb3
>---------------------------------------------------------------
commit fb6f68bb634977853e84dda0598a722e4ab30cb3
Author: Ulrike Fischer <fischer at troubleshooting-tex.de>
Date: Mon Feb 21 15:44:27 2022 +0100
remove numexpr/dimexpr tests
>---------------------------------------------------------------
fb6f68bb634977853e84dda0598a722e4ab30cb3
hyperref.dtx | 59 ++++++++++++++---------------------------------------------
1 file changed, 14 insertions(+), 45 deletions(-)
diff --git a/hyperref.dtx b/hyperref.dtx
index 74d07c4..8eee052 100644
--- a/hyperref.dtx
+++ b/hyperref.dtx
@@ -3833,10 +3833,6 @@
% |\number\dimexpr.25\dimexpr 123sp\relax\relax|
% \end{quote}
% \begin{macrocode}
-\begingroup\expandafter\expandafter\expandafter\endgroup
-\expandafter\ifx\csname numexpr\endcsname\relax
- \let\HyPsd at UTFviii\relax
-\else
\begingroup
\lccode`\~=`^^f4\relax
\lowercase{\endgroup
@@ -4037,9 +4033,6 @@
\relax\relax\relax
}%
% \end{macrocode}
-% \begin{macrocode}
-\fi
-% \end{macrocode}
%
% \begin{macro}{\HyPsd at utf@viii at undeferr}
% \cs{utf at viii@undeferr} comes from file |utf8x.def| from
@@ -6393,16 +6386,9 @@
\def\@pdfviewparams{ #2}%
\fi
}
-\begingroup\expandafter\expandafter\expandafter\endgroup
-\expandafter\ifx\csname numexpr\endcsname\relax
- \def\Hy at number#1{%
- \expandafter\@firstofone\expandafter{\number#1}%
- }%
-\else
- \def\Hy at number#1{%
- \the\numexpr#1\relax
+\def\Hy at number#1{%
+ \the\numexpr#1\relax
}%
-\fi
\define at key{Hyp}{pdfstartpage}{%
\ifx\\#1\\%
\let\@pdfstartpage\ltx at empty
@@ -9041,35 +9027,18 @@
\afterassignment\Hy at defaultbpAux
\dimen@=#2bp\relax{#1}{#2}%
}
-\begingroup\expandafter\expandafter\expandafter\endgroup
-\expandafter\ifx\csname dimexpr\endcsname\relax
- \def\Hy at defaultbpAux#1\relax#2#3{%
- \ifx!#1!%
- \endgroup
- \def#2{#3}%
- \else
- \dimen@=.99626\dimen@
- \edef\x{\endgroup
- \def\noexpand#2{%
- \strip at pt\dimen@
- }%
- }\x
- \fi
- }%
-\else
- \def\Hy at defaultbpAux#1\relax#2#3{%
- \ifx!#1!%
- \endgroup
- \def#2{#3}%
- \else
- \edef\x{\endgroup
- \def\noexpand#2{%
- \strip at pt\dimexpr\dimen@*800/803\relax
- }%
- }\x
- \fi
- }%
-\fi
+\def\Hy at defaultbpAux#1\relax#2#3{%
+ \ifx!#1!%
+ \endgroup
+ \def#2{#3}%
+ \else
+ \edef\x{\endgroup
+ \def\noexpand#2{%
+ \strip at pt\dimexpr\dimen@*800/803\relax
+ }%
+ }\x
+ \fi
+}%
\define at key{Field}{borderstyle}{%
\let\Hy at temp\Fld at borderstyle
\def\Fld at borderstyle{#1}%
More information about the latex3-commits
mailing list.