[latex3-commits] [latex3/latex2e] lab-review-02: fix dvilualatex: do not load glyphtounicode (f6a4be84)
github at latex-project.org
github at latex-project.org
Fri Jul 21 18:10:52 CEST 2023
Repository : https://github.com/latex3/latex2e
On branch : lab-review-02
Link : https://github.com/latex3/latex2e/commit/f6a4be846862ea95eb91346f16a029dc48c0320c
>---------------------------------------------------------------
commit f6a4be846862ea95eb91346f16a029dc48c0320c
Author: Ulrike Fischer <fischer at troubleshooting-tex.de>
Date: Fri Jul 21 18:10:52 2023 +0200
fix dvilualatex: do not load glyphtounicode
>---------------------------------------------------------------
f6a4be846862ea95eb91346f16a029dc48c0320c
required/latex-lab/changes.txt | 1 +
required/latex-lab/latex-lab-sec.dtx | 10 ++++++----
2 files changed, 7 insertions(+), 4 deletions(-)
diff --git a/required/latex-lab/changes.txt b/required/latex-lab/changes.txt
index f2ef318f..03910a58 100644
--- a/required/latex-lab/changes.txt
+++ b/required/latex-lab/changes.txt
@@ -2,6 +2,7 @@
* rename latex-lab-toc-tagging.dtx to latex-lab-toc.dtx
* clean up versions and package declarations
* remove firstaid for ltugboat, this is now handled by the class
+ * do not load glyphtounicode with dvilualatex
2023-07-19 Ulrike Fischer <Ulrike.Fischer at latex-project.org>
* really rename sec-tagging to sec
diff --git a/required/latex-lab/latex-lab-sec.dtx b/required/latex-lab/latex-lab-sec.dtx
index 0a9339a1..d20c5562 100644
--- a/required/latex-lab/latex-lab-sec.dtx
+++ b/required/latex-lab/latex-lab-sec.dtx
@@ -179,10 +179,12 @@
% \begin{macrocode}
%<*kernelchange>
\ifdefined\directlua
- \pdfvariable gentounicode =1
- \protected\def\pdfglyphtounicode {\pdfextension glyphtounicode }
- \protected\edef\pdfgentounicode {\pdfvariable gentounicode}
- \input{glyphtounicode}
+ \ifnum\outputmode > 0
+ \pdfvariable gentounicode =1
+ \protected\def\pdfglyphtounicode {\pdfextension glyphtounicode }
+ \protected\edef\pdfgentounicode {\pdfvariable gentounicode}
+ \input{glyphtounicode}
+ \fi
\fi
\ifdefined\pdfglyphtounicode
\input{glyphtounicode-cmex}
More information about the latex3-commits
mailing list.