[latex3-commits] [latex3/latex2e] gh1230: do not load upquote just simulate it in the test (20de26c8)
github at latex-project.org
github at latex-project.org
Sat Dec 30 18:03:58 CET 2023
Repository : https://github.com/latex3/latex2e
On branch : gh1230
Link : https://github.com/latex3/latex2e/commit/20de26c8576eda9604b3a9d7f73c5632a27073e6
>---------------------------------------------------------------
commit 20de26c8576eda9604b3a9d7f73c5632a27073e6
Author: Frank Mittelbach <frank.mittelbach at latex-project.org>
Date: Sat Dec 30 18:03:58 2023 +0100
do not load upquote just simulate it in the test
>---------------------------------------------------------------
20de26c8576eda9604b3a9d7f73c5632a27073e6
base/testfiles-doc/github-1230.lvt | 30 +++++++++++++++++++++++++++++-
1 file changed, 29 insertions(+), 1 deletion(-)
diff --git a/base/testfiles-doc/github-1230.lvt b/base/testfiles-doc/github-1230.lvt
index 70937d01..adbc81de 100644
--- a/base/testfiles-doc/github-1230.lvt
+++ b/base/testfiles-doc/github-1230.lvt
@@ -1,6 +1,34 @@
\documentclass{article}
-\usepackage{upquote}
+
+% \usepackage{upquote}
+%
+% instead of loading the package (which is not available in the
+% test suite), we just simulate it:
+
+\makeatletter
+\newcommand\upquote at cmtt{cmtt}
+\newcommand\upquote at OTone{OT1}
+\ifx\encodingdefault\upquote at OTone
+ \ifx\ttdefault\upquote at cmtt\else\RequirePackage{textcomp}\fi
+\else
+ \RequirePackage{textcomp}
+\fi
+\begingroup
+\catcode`'=\active
+\catcode``=\active
+\g at addto@macro\@noligs
+ {\let'\textquotesingle
+ \let`\textasciigrave
+ \ifx\encodingdefault\upquote at OTone
+ \ifx\ttdefault\upquote at cmtt
+ \def'{\char13 }%
+ \def`{\char18 }%
+ \fi\fi}
+\endgroup
+\makeatother
+
+
\usepackage{doc}
% Input the test macros for latex 2e
More information about the latex3-commits
mailing list.